CfnRecordSetGroupProps
- class aws_cdk.aws_route53.CfnRecordSetGroupProps(*, comment=None, hosted_zone_id=None, hosted_zone_name=None, record_sets=None)
Bases:
objectProperties for defining a
CfnRecordSetGroup.- 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 eitherHostedZoneNameorHostedZoneId, but not both. If you have multiple hosted zones with the same domain name, you must specify the hosted zone usingHostedZoneId.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 theHostedZoneName. When you create a stack using anAWS::Route53::RecordSetthat specifiesHostedZoneName, AWS CloudFormation attempts to find a hosted zone whose name matches theHostedZoneName. 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 eitherHostedZoneNameorHostedZoneId, but not both. If you have multiple hosted zones with the same domain name, you must specify the hosted zone usingHostedZoneId.record_sets (
Union[IResolvable,Sequence[Union[IResolvable,RecordSetProperty,Dict[str,Any]]],None]) – A complex type that contains oneRecordSetelement for each record that you want to create.
- See:
- 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_route53 as route53 cfn_record_set_group_props = route53.CfnRecordSetGroupProps( comment="comment", hosted_zone_id="hostedZoneId", hosted_zone_name="hostedZoneName", record_sets=[route53.CfnRecordSetGroup.RecordSetProperty( name="name", type="type", # the properties below are optional alias_target=route53.CfnRecordSetGroup.AliasTargetProperty( dns_name="dnsName", hosted_zone_id="hostedZoneId", # the properties below are optional evaluate_target_health=False ), cidr_routing_config=route53.CfnRecordSetGroup.CidrRoutingConfigProperty( collection_id="collectionId", location_name="locationName" ), failover="failover", geo_location=route53.CfnRecordSetGroup.GeoLocationProperty( continent_code="continentCode", country_code="countryCode", subdivision_code="subdivisionCode" ), geo_proximity_location=route53.CfnRecordSetGroup.GeoProximityLocationProperty( aws_region="awsRegion", bias=123, coordinates=route53.CfnRecordSetGroup.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, region="region", resource_records=["resourceRecords"], set_identifier="setIdentifier", ttl="ttl", weight=123 )] )
Attributes
- comment
Any comments you want to include about a change batch request.
- hosted_zone_id
The ID of the hosted zone that you want to create records in.
Specify either
HostedZoneNameorHostedZoneId, but not both. If you have multiple hosted zones with the same domain name, you must specify the hosted zone usingHostedZoneId.
- 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 theHostedZoneName.When you create a stack using an
AWS::Route53::RecordSetthat specifiesHostedZoneName, AWS CloudFormation attempts to find a hosted zone whose name matches theHostedZoneName. 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
HostedZoneNameorHostedZoneId, but not both. If you have multiple hosted zones with the same domain name, you must specify the hosted zone usingHostedZoneId.
- record_sets
A complex type that contains one
RecordSetelement for each record that you want to create.