CfnRecordSetGroupMixinProps

class aws_cdk.mixins_preview.aws_route53.mixins.CfnRecordSetGroupMixinProps(*, comment=None, hosted_zone_id=None, hosted_zone_name=None, record_sets=None)

Bases: object

Properties for CfnRecordSetGroupPropsMixin.

Parameters:
  • comment (Optional[str]) – Optional: Any comments you want to include about a change batch request.

  • hosted_zone_id (Optional[str]) – The ID of the hosted zone that you want to create records in. Specify either HostedZoneName or HostedZoneId , but not both. If you have multiple hosted zones with the same domain name, you must specify the hosted zone using HostedZoneId .

  • hosted_zone_name (Optional[str]) – The name of the hosted zone that you want to create records in. You must include a trailing dot (for example, www.example.com. ) as part of the HostedZoneName . When you create a stack using an AWS::Route53::RecordSet that specifies HostedZoneName , AWS CloudFormation attempts to find a hosted zone whose name matches the HostedZoneName . If AWS CloudFormation can’t find a hosted zone with a matching domain name, or if there is more than one hosted zone with the specified domain name, AWS CloudFormation will not create the stack. Specify either HostedZoneName or HostedZoneId , but not both. If you have multiple hosted zones with the same domain name, you must specify the hosted zone using HostedZoneId .

  • record_sets (Union[IResolvable, Sequence[Union[IResolvable, RecordSetProperty, Dict[str, Any]]], None]) – A complex type that contains one RecordSet element for each record that you want to create.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-recordsetgroup.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.mixins_preview.aws_route53 import mixins as route53_mixins

cfn_record_set_group_mixin_props = route53_mixins.CfnRecordSetGroupMixinProps(
    comment="comment",
    hosted_zone_id="hostedZoneId",
    hosted_zone_name="hostedZoneName",
    record_sets=[route53_mixins.CfnRecordSetGroupPropsMixin.RecordSetProperty(
        alias_target=route53_mixins.CfnRecordSetGroupPropsMixin.AliasTargetProperty(
            dns_name="dnsName",
            evaluate_target_health=False,
            hosted_zone_id="hostedZoneId"
        ),
        cidr_routing_config=route53_mixins.CfnRecordSetGroupPropsMixin.CidrRoutingConfigProperty(
            collection_id="collectionId",
            location_name="locationName"
        ),
        failover="failover",
        geo_location=route53_mixins.CfnRecordSetGroupPropsMixin.GeoLocationProperty(
            continent_code="continentCode",
            country_code="countryCode",
            subdivision_code="subdivisionCode"
        ),
        geo_proximity_location=route53_mixins.CfnRecordSetGroupPropsMixin.GeoProximityLocationProperty(
            aws_region="awsRegion",
            bias=123,
            coordinates=route53_mixins.CfnRecordSetGroupPropsMixin.CoordinatesProperty(
                latitude="latitude",
                longitude="longitude"
            ),
            local_zone_group="localZoneGroup"
        ),
        health_check_id="healthCheckId",
        hosted_zone_id="hostedZoneId",
        hosted_zone_name="hostedZoneName",
        multi_value_answer=False,
        name="name",
        region="region",
        resource_records=["resourceRecords"],
        set_identifier="setIdentifier",
        ttl="ttl",
        type="type",
        weight=123
    )]
)

Attributes

comment
  • Any comments you want to include about a change batch request.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-recordsetgroup.html#cfn-route53-recordsetgroup-comment

Type:

*Optional

hosted_zone_id

The ID of the hosted zone that you want to create records in.

Specify either HostedZoneName or HostedZoneId , but not both. If you have multiple hosted zones with the same domain name, you must specify the hosted zone using HostedZoneId .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-recordsetgroup.html#cfn-route53-recordsetgroup-hostedzoneid

hosted_zone_name

The name of the hosted zone that you want to create records in.

You must include a trailing dot (for example, www.example.com. ) as part of the HostedZoneName .

When you create a stack using an AWS::Route53::RecordSet that specifies HostedZoneName , AWS CloudFormation attempts to find a hosted zone whose name matches the HostedZoneName . If AWS CloudFormation can’t find a hosted zone with a matching domain name, or if there is more than one hosted zone with the specified domain name, AWS CloudFormation will not create the stack.

Specify either HostedZoneName or HostedZoneId , but not both. If you have multiple hosted zones with the same domain name, you must specify the hosted zone using HostedZoneId .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-recordsetgroup.html#cfn-route53-recordsetgroup-hostedzonename

record_sets

A complex type that contains one RecordSet element for each record that you want to create.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-recordsetgroup.html#cfn-route53-recordsetgroup-recordsets