Interface CfnRecordSetGroupProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnRecordSetGroupProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:42.996Z") @Stability(Stable) public interface CfnRecordSetGroupProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a CfnRecordSetGroup.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.route53.*;
 CfnRecordSetGroupProps cfnRecordSetGroupProps = CfnRecordSetGroupProps.builder()
         .comment("comment")
         .hostedZoneId("hostedZoneId")
         .hostedZoneName("hostedZoneName")
         .recordSets(List.of(RecordSetProperty.builder()
                 .name("name")
                 .type("type")
                 // the properties below are optional
                 .aliasTarget(AliasTargetProperty.builder()
                         .dnsName("dnsName")
                         .hostedZoneId("hostedZoneId")
                         // the properties below are optional
                         .evaluateTargetHealth(false)
                         .build())
                 .cidrRoutingConfig(CidrRoutingConfigProperty.builder()
                         .collectionId("collectionId")
                         .locationName("locationName")
                         .build())
                 .failover("failover")
                 .geoLocation(GeoLocationProperty.builder()
                         .continentCode("continentCode")
                         .countryCode("countryCode")
                         .subdivisionCode("subdivisionCode")
                         .build())
                 .healthCheckId("healthCheckId")
                 .hostedZoneId("hostedZoneId")
                 .hostedZoneName("hostedZoneName")
                 .multiValueAnswer(false)
                 .region("region")
                 .resourceRecords(List.of("resourceRecords"))
                 .setIdentifier("setIdentifier")
                 .ttl("ttl")
                 .weight(123)
                 .build()))
         .build();
 
  • Method Details

    • getComment

      @Stability(Stable) @Nullable default String getComment()
      Optional: Any comments you want to include about a change batch request.
    • getHostedZoneId

      @Stability(Stable) @Nullable default String getHostedZoneId()
      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 .

    • getHostedZoneName

      @Stability(Stable) @Nullable default String getHostedZoneName()
      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 .

    • getRecordSets

      @Stability(Stable) @Nullable default Object getRecordSets()
      A complex type that contains one RecordSet element for each record that you want to create.
    • builder

      @Stability(Stable) static CfnRecordSetGroupProps.Builder builder()
      Returns:
      a CfnRecordSetGroupProps.Builder of CfnRecordSetGroupProps