Class CfnTrafficPolicyInstance.Builder
java.lang.Object
software.amazon.awscdk.services.route53.CfnTrafficPolicyInstance.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTrafficPolicyInstance>
- Enclosing class:
CfnTrafficPolicyInstance
@Stability(Stable)
public static final class CfnTrafficPolicyInstance.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTrafficPolicyInstance>
A fluent builder for
CfnTrafficPolicyInstance.-
Method Summary
Modifier and TypeMethodDescriptionbuild()hostedZoneId(String hostedZoneId) The ID of the hosted zone that Amazon Route 53 creates the resource record sets in.The domain name, or subdomain name, for which Amazon Route 53 answers DNS queries by using the resource record sets it creates for this traffic policy instance.trafficPolicyId(String trafficPolicyId) The ID of the traffic policy that Amazon Route 53 uses to create resource record sets in the specified hosted zone.trafficPolicyVersion(Number trafficPolicyVersion) The version of the traffic policy that Amazon Route 53 uses to create resource record sets in the specified hosted zone.The TTL that Amazon Route 53 assigns to all of the resource record sets that it creates in the specified hosted zone.
-
Method Details
-
create
@Stability(Stable) public static CfnTrafficPolicyInstance.Builder create(software.constructs.Construct scope, 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.- Returns:
- a new instance of
CfnTrafficPolicyInstance.Builder.
-
hostedZoneId
The ID of the hosted zone that Amazon Route 53 creates the resource record sets in.The bare ID as Route 53 returns it, without a /hostedzone/ prefix.
- Parameters:
hostedZoneId- The ID of the hosted zone that Amazon Route 53 creates the resource record sets in. This parameter is required.- Returns:
this- See Also:
-
name
The domain name, or subdomain name, for which Amazon Route 53 answers DNS queries by using the resource record sets it creates for this traffic policy instance.Must be lower-case and end with a trailing dot, which is the form Route 53 returns: Route 53 normalizes DNS names, so admitting another form would neither round-trip through Read nor guarantee that a change to this property changes the resource's identity.
- Parameters:
name- The domain name, or subdomain name, for which Amazon Route 53 answers DNS queries by using the resource record sets it creates for this traffic policy instance. This parameter is required.- Returns:
this- See Also:
-
trafficPolicyId
The ID of the traffic policy that Amazon Route 53 uses to create resource record sets in the specified hosted zone.Lower-case, as Route 53 returns it.
- Parameters:
trafficPolicyId- The ID of the traffic policy that Amazon Route 53 uses to create resource record sets in the specified hosted zone. This parameter is required.- Returns:
this- See Also:
-
trafficPolicyVersion
@Stability(Stable) public CfnTrafficPolicyInstance.Builder trafficPolicyVersion(Number trafficPolicyVersion) The version of the traffic policy that Amazon Route 53 uses to create resource record sets in the specified hosted zone.- Parameters:
trafficPolicyVersion- The version of the traffic policy that Amazon Route 53 uses to create resource record sets in the specified hosted zone. This parameter is required.- Returns:
this- See Also:
-
ttl
The TTL that Amazon Route 53 assigns to all of the resource record sets that it creates in the specified hosted zone.- Parameters:
ttl- The TTL that Amazon Route 53 assigns to all of the resource record sets that it creates in the specified hosted zone. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTrafficPolicyInstance>- Returns:
- a newly built instance of
CfnTrafficPolicyInstance.
-