CfnResourceSetProps

class aws_cdk.aws_route53recoveryreadiness.CfnResourceSetProps(*, resources, resource_set_type, resource_set_name=None, tags=None)

Bases: object

Properties for defining a CfnResourceSet.

Parameters:
  • resources (Union[IResolvable, Sequence[Union[IResolvable, ResourceProperty, Dict[str, Any]]]]) – A list of resource objects in the resource set.

  • resource_set_type (str) – The resource type of the resources in the resource set. Enter one of the following values for resource type:. AWS::ApiGateway::Stage, AWS::ApiGatewayV2::Stage, AWS::AutoScaling::AutoScalingGroup, AWS::CloudWatch::Alarm, AWS::EC2::CustomerGateway, AWS::DynamoDB::Table, AWS::EC2::Volume, AWS::ElasticLoadBalancing::LoadBalancer, AWS::ElasticLoadBalancingV2::LoadBalancer, AWS::Lambda::Function, AWS::MSK::Cluster, AWS::RDS::DBCluster, AWS::Route53::HealthCheck, AWS::SQS::Queue, AWS::SNS::Topic, AWS::SNS::Subscription, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway, AWS::Route53RecoveryReadiness::DNSTargetResource. Note that AWS::Route53RecoveryReadiness::DNSTargetResource is only used for this setting. It isn’t an actual AWS CloudFormation resource type.

  • resource_set_name (Optional[str]) – The name of the resource set to create.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – A tag to associate with the parameters for a resource set.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53recoveryreadiness-resourceset.html

ExampleMetadata:

fixture=_generated

Example:

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

cfn_resource_set_props = route53recoveryreadiness.CfnResourceSetProps(
    resources=[route53recoveryreadiness.CfnResourceSet.ResourceProperty(
        component_id="componentId",
        dns_target_resource=route53recoveryreadiness.CfnResourceSet.DNSTargetResourceProperty(
            domain_name="domainName",
            hosted_zone_arn="hostedZoneArn",
            record_set_id="recordSetId",
            record_type="recordType",
            target_resource=route53recoveryreadiness.CfnResourceSet.TargetResourceProperty(
                nlb_resource=route53recoveryreadiness.CfnResourceSet.NLBResourceProperty(
                    arn="arn"
                ),
                r53_resource=route53recoveryreadiness.CfnResourceSet.R53ResourceRecordProperty(
                    domain_name="domainName",
                    record_set_id="recordSetId"
                )
            )
        ),
        readiness_scopes=["readinessScopes"],
        resource_arn="resourceArn"
    )],
    resource_set_type="resourceSetType",

    # the properties below are optional
    resource_set_name="resourceSetName",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

resource_set_name

The name of the resource set to create.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53recoveryreadiness-resourceset.html#cfn-route53recoveryreadiness-resourceset-resourcesetname

resource_set_type

.

AWS::ApiGateway::Stage, AWS::ApiGatewayV2::Stage, AWS::AutoScaling::AutoScalingGroup, AWS::CloudWatch::Alarm, AWS::EC2::CustomerGateway, AWS::DynamoDB::Table, AWS::EC2::Volume, AWS::ElasticLoadBalancing::LoadBalancer, AWS::ElasticLoadBalancingV2::LoadBalancer, AWS::Lambda::Function, AWS::MSK::Cluster, AWS::RDS::DBCluster, AWS::Route53::HealthCheck, AWS::SQS::Queue, AWS::SNS::Topic, AWS::SNS::Subscription, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway, AWS::Route53RecoveryReadiness::DNSTargetResource.

Note that AWS::Route53RecoveryReadiness::DNSTargetResource is only used for this setting. It isn’t an actual AWS CloudFormation resource type.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53recoveryreadiness-resourceset.html#cfn-route53recoveryreadiness-resourceset-resourcesettype

Type:

The resource type of the resources in the resource set. Enter one of the following values for resource type

resources

A list of resource objects in the resource set.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53recoveryreadiness-resourceset.html#cfn-route53recoveryreadiness-resourceset-resources

tags

A tag to associate with the parameters for a resource set.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53recoveryreadiness-resourceset.html#cfn-route53recoveryreadiness-resourceset-tags