CfnResourceSetProps

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

Bases: object

Properties for defining a CfnResourceSet.

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

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

  • resource_set_type (str) – The resource type of the resources in the resource set. Enter one of the following values for resource type:. AWS::AutoScaling::AutoScalingGroup, AWS::CloudWatch::Alarm, AWS::EC2::CustomerGateway, AWS::DynamoDB::Table, AWS::EC2::Volume, AWS::ElasticLoadBalancing::LoadBalancer, AWS::ElasticLoadBalancingV2::LoadBalancer, 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.

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

Link

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.
import aws_cdk.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_name="resourceSetName",
    resource_set_type="resourceSetType",

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

Attributes

resource_set_name

The name of the resource set to create.

Link

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

Return type

str

resource_set_type

.

AWS::AutoScaling::AutoScalingGroup, AWS::CloudWatch::Alarm, AWS::EC2::CustomerGateway, AWS::DynamoDB::Table, AWS::EC2::Volume, AWS::ElasticLoadBalancing::LoadBalancer, AWS::ElasticLoadBalancingV2::LoadBalancer, 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.

Link

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

Return type

str

resources

A list of resource objects in the resource set.

Link

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

Return type

Union[IResolvable, List[Union[ResourceProperty, IResolvable]]]

tags

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

Link

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

Return type

Optional[List[CfnTag]]