Class CfnRecordSetGroup.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRecordSetGroup>
- Enclosing class:
- CfnRecordSetGroup
CfnRecordSetGroup
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Optional: Any comments you want to include about a change batch request.static CfnRecordSetGroup.Builder
hostedZoneId
(String hostedZoneId) The ID of the hosted zone that you want to create records in.hostedZoneName
(String hostedZoneName) The name of the hosted zone that you want to create records in.recordSets
(List<? extends Object> recordSets) A complex type that contains oneRecordSet
element for each record that you want to create.recordSets
(IResolvable recordSets) A complex type that contains oneRecordSet
element for each record that you want to create.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnRecordSetGroup.Builder
.
-
comment
Optional: Any comments you want to include about a change batch request.- Parameters:
comment
- Optional: Any comments you want to include about a change batch request. This parameter is required.- Returns:
this
-
hostedZoneId
The ID of the hosted zone that you want to create records in.Specify either
HostedZoneName
orHostedZoneId
, but not both. If you have multiple hosted zones with the same domain name, you must specify the hosted zone usingHostedZoneId
.- Parameters:
hostedZoneId
- The ID of the hosted zone that you want to create records in. This parameter is required.- Returns:
this
-
hostedZoneName
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::RecordSet
that 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
HostedZoneName
orHostedZoneId
, but not both. If you have multiple hosted zones with the same domain name, you must specify the hosted zone usingHostedZoneId
.- Parameters:
hostedZoneName
- The name of the hosted zone that you want to create records in. This parameter is required.- Returns:
this
-
recordSets
A complex type that contains oneRecordSet
element for each record that you want to create.- Parameters:
recordSets
- A complex type that contains oneRecordSet
element for each record that you want to create. This parameter is required.- Returns:
this
-
recordSets
A complex type that contains oneRecordSet
element for each record that you want to create.- Parameters:
recordSets
- A complex type that contains oneRecordSet
element for each record that you want to create. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRecordSetGroup>
- Returns:
- a newly built instance of
CfnRecordSetGroup
.
-