# CompromisedCredentialsRiskConfigurationTypeProperty

Settings for compromised-credentials actions and authentication-event sources with advanced security features in full-function `ENFORCED` mode.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cognito as cognito } from 'aws-cdk-lib';
const compromisedCredentialsRiskConfigurationTypeProperty: cognito.CfnUserPoolRiskConfigurationAttachment.CompromisedCredentialsRiskConfigurationTypeProperty = {
  actions: {
    eventAction: 'eventAction',
  },

  // the properties below are optional
  eventFilter: ['eventFilter'],
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cognito as cognito

compromised_credentials_risk_configuration_type_property = cognito.CfnUserPoolRiskConfigurationAttachment.CompromisedCredentialsRiskConfigurationTypeProperty(
    actions=cognito.CfnUserPoolRiskConfigurationAttachment.CompromisedCredentialsActionsTypeProperty(
        event_action="eventAction"
    ),

    # the properties below are optional
    event_filter=["eventFilter"]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cognito.*;

CompromisedCredentialsRiskConfigurationTypeProperty compromisedCredentialsRiskConfigurationTypeProperty = CompromisedCredentialsRiskConfigurationTypeProperty.builder()
        .actions(CompromisedCredentialsActionsTypeProperty.builder()
                .eventAction("eventAction")
                .build())

        // the properties below are optional
        .eventFilter(List.of("eventFilter"))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Cognito;

var compromisedCredentialsRiskConfigurationTypeProperty = new CompromisedCredentialsRiskConfigurationTypeProperty {
    Actions = new CompromisedCredentialsActionsTypeProperty {
        EventAction = "eventAction"
    },

    // the properties below are optional
    EventFilter = new [] { "eventFilter" }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

compromisedCredentialsRiskConfigurationTypeProperty := &CompromisedCredentialsRiskConfigurationTypeProperty{
	Actions: &CompromisedCredentialsActionsTypeProperty{
		EventAction: jsii.String("eventAction"),
	},

	// the properties below are optional
	EventFilter: []*string{
		jsii.String("eventFilter"),
	},
}
```

## Properties

- `actions`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnUserPoolRiskConfigurationAttachment.CompromisedCredentialsActionsTypeProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cognito.CfnUserPoolRiskConfigurationAttachment.CompromisedCredentialsActionsTypeProperty.html) (required) — Settings for the actions that you want your user pool to take when Amazon Cognito detects compromised credentials.

- `eventFilter`: string[] — Settings for the sign-in activity where you want to configure compromised-credentials actions.

  Defaults to all events.
