# RoutingTypeProperty

- Source: Generated at build time
- Type last changed: v2.261.0 · 2 Jul 2026

## 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 routingTypeProperty: cognito.CfnUserPoolDomain.RoutingTypeProperty = {
  failover: {
    primaryRoute53HealthCheckId: 'primaryRoute53HealthCheckId',
    secondaryRegion: 'secondaryRegion',
  },
};
```

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

routing_type_property = cognito.CfnUserPoolDomain.RoutingTypeProperty(
    failover=cognito.CfnUserPoolDomain.FailoverTypeProperty(
        primary_route53_health_check_id="primaryRoute53HealthCheckId",
        secondary_region="secondaryRegion"
    )
)
```

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.*;

RoutingTypeProperty routingTypeProperty = RoutingTypeProperty.builder()
        .failover(FailoverTypeProperty.builder()
                .primaryRoute53HealthCheckId("primaryRoute53HealthCheckId")
                .secondaryRegion("secondaryRegion")
                .build())
        .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 routingTypeProperty = new RoutingTypeProperty {
    Failover = new FailoverTypeProperty {
        PrimaryRoute53HealthCheckId = "primaryRoute53HealthCheckId",
        SecondaryRegion = "secondaryRegion"
    }
};
```

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"

routingTypeProperty := &RoutingTypeProperty{
	Failover: &FailoverTypeProperty{
		PrimaryRoute53HealthCheckId: jsii.String("primaryRoute53HealthCheckId"),
		SecondaryRegion: jsii.String("secondaryRegion"),
	},
}
```

## Properties

- `failover`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnUserPoolDomain.FailoverTypeProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cognito.CfnUserPoolDomain.FailoverTypeProperty.html)
