Skip to content
v2.278.0

RoutingTypeProperty Struct ​

Example ​

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
# 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
// 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();
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"
    }
};
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 ​

failoveroptionalIResolvable | CfnUserPoolDomain.FailoverTypePropertyfailoveroptionaltyping.Union[IResolvable, FailoverTypeProperty]failoveroptionalIResolvableFailoveroptionalIResolvableFailoveroptionalinterface{} #