Class CfnRecordSetGroup

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-12T19:34:08.868Z") @Stability(Stable) public class CfnRecordSetGroup extends CfnResource implements IInspectable
A complex type that contains an optional comment, the name and ID of the hosted zone that you want to make changes in, and values for the records that you want to create.

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.*;
 CfnRecordSetGroup cfnRecordSetGroup = CfnRecordSetGroup.Builder.create(this, "MyCfnRecordSetGroup")
         .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())
                 .geoProximityLocation(GeoProximityLocationProperty.builder()
                         .awsRegion("awsRegion")
                         .bias(123)
                         .coordinates(CoordinatesProperty.builder()
                                 .latitude("latitude")
                                 .longitude("longitude")
                                 .build())
                         .localZoneGroup("localZoneGroup")
                         .build())
                 .healthCheckId("healthCheckId")
                 .hostedZoneId("hostedZoneId")
                 .hostedZoneName("hostedZoneName")
                 .multiValueAnswer(false)
                 .region("region")
                 .resourceRecords(List.of("resourceRecords"))
                 .setIdentifier("setIdentifier")
                 .ttl("ttl")
                 .weight(123)
                 .build()))
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnRecordSetGroup

      protected CfnRecordSetGroup(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnRecordSetGroup

      protected CfnRecordSetGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnRecordSetGroup

      @Stability(Stable) public CfnRecordSetGroup(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnRecordSetGroupProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties.
    • CfnRecordSetGroup

      @Stability(Stable) public CfnRecordSetGroup(@NotNull software.constructs.Construct scope, @NotNull String id)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrId

      @Stability(Stable) @NotNull public String getAttrId()
      Specifies a coordinate of the east–west position of a geographic point on the surface of the Earth.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getComment

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

      @Stability(Stable) public void setComment(@Nullable String value)
      Optional: Any comments you want to include about a change batch request.
    • getHostedZoneId

      @Stability(Stable) @Nullable public String getHostedZoneId()
      The ID of the hosted zone that you want to create records in.
    • setHostedZoneId

      @Stability(Stable) public void setHostedZoneId(@Nullable String value)
      The ID of the hosted zone that you want to create records in.
    • getHostedZoneName

      @Stability(Stable) @Nullable public String getHostedZoneName()
      The name of the hosted zone that you want to create records in.
    • setHostedZoneName

      @Stability(Stable) public void setHostedZoneName(@Nullable String value)
      The name of the hosted zone that you want to create records in.
    • getRecordSets

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

      @Stability(Stable) public void setRecordSets(@Nullable IResolvable value)
      A complex type that contains one RecordSet element for each record that you want to create.
    • setRecordSets

      @Stability(Stable) public void setRecordSets(@Nullable List<Object> value)
      A complex type that contains one RecordSet element for each record that you want to create.