Class CfnTrafficPolicyInstance
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.route53.CfnTrafficPolicyInstance
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,ITrafficPolicyInstanceRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)",
date="2026-09-30T11:05:00.001Z")
@Stability(Stable)
public class CfnTrafficPolicyInstance
extends CfnResource
implements IInspectable, ITrafficPolicyInstanceRef
Resource Type definition for AWS::Route53::TrafficPolicyInstance.
Applies a version of a Route 53 traffic policy to a DNS name in a public hosted zone, and Route 53 creates and owns the resource record sets that answer queries for that name.
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.*;
CfnTrafficPolicyInstance cfnTrafficPolicyInstance = CfnTrafficPolicyInstance.Builder.create(this, "MyCfnTrafficPolicyInstance")
.hostedZoneId("hostedZoneId")
.name("name")
.trafficPolicyId("trafficPolicyId")
.trafficPolicyVersion(123)
.ttl(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnTrafficPolicyInstance.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.route53.ITrafficPolicyInstanceRef
ITrafficPolicyInstanceRef.Jsii$Default, ITrafficPolicyInstanceRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnTrafficPolicyInstance(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnTrafficPolicyInstance(software.amazon.jsii.JsiiObjectRef objRef) CfnTrafficPolicyInstance(software.constructs.Construct scope, String id, CfnTrafficPolicyInstanceProps props) Create a newAWS::Route53::TrafficPolicyInstance. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringThe Amazon Resource Name (ARN) of the traffic policy instance.The ID that Amazon Route 53 assigned to the traffic policy instance when it was created.The current state of the traffic policy instance.The DNS type that Amazon Route 53 assigned to all of the resource record sets that it created for this traffic policy instance.The ID of the hosted zone that Amazon Route 53 creates the resource record sets in.getName()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.The ID of the traffic policy that Amazon Route 53 uses to create resource record sets in the specified hosted zone.A reference to a TrafficPolicyInstance resource.The version of the traffic policy that Amazon Route 53 uses to create resource record sets in the specified hosted zone.getTtl()The TTL that Amazon Route 53 assigns to all of the resource record sets that it creates in the specified hosted zone.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnTrafficPolicyInstance.renderProperties(Map<String, Object> props) voidsetHostedZoneId(String value) The ID of the hosted zone that Amazon Route 53 creates the resource record sets in.voidThe 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.voidsetTrafficPolicyId(String value) The ID of the traffic policy that Amazon Route 53 uses to create resource record sets in the specified hosted zone.voidsetTrafficPolicyVersion(Number value) The version of the traffic policy that Amazon Route 53 uses to create resource record sets in the specified hosted zone.voidThe TTL that Amazon Route 53 assigns to all of the resource record sets that it creates in the specified hosted zone.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnTrafficPolicyInstance
protected CfnTrafficPolicyInstance(software.amazon.jsii.JsiiObjectRef objRef) -
CfnTrafficPolicyInstance
protected CfnTrafficPolicyInstance(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnTrafficPolicyInstance
@Stability(Stable) public CfnTrafficPolicyInstance(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnTrafficPolicyInstanceProps props) Create a newAWS::Route53::TrafficPolicyInstance.- 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. This parameter is required.
-
-
Method Details
-
arnForTrafficPolicyInstance
@Stability(Stable) @NotNull public static String arnForTrafficPolicyInstance(@NotNull ITrafficPolicyInstanceRef resource) - Parameters:
resource- This parameter is required.
-
isCfnTrafficPolicyInstance
Checks whether the given object is a CfnTrafficPolicyInstance.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of the traffic policy instance. -
getAttrId
The ID that Amazon Route 53 assigned to the traffic policy instance when it was created. -
getAttrState
The current state of the traffic policy instance.A steady-state instance is Applied.
-
getAttrTrafficPolicyType
The DNS type that Amazon Route 53 assigned to all of the resource record sets that it created for this traffic policy instance.Route 53 derives it from the referenced traffic policy.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getTrafficPolicyInstanceRef
A reference to a TrafficPolicyInstance resource.- Specified by:
getTrafficPolicyInstanceRefin interfaceITrafficPolicyInstanceRef
-
getHostedZoneId
The ID of the hosted zone that Amazon Route 53 creates the resource record sets in. -
setHostedZoneId
The ID of the hosted zone that Amazon Route 53 creates the resource record sets in. -
getName
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. -
setName
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. -
getTrafficPolicyId
The ID of the traffic policy that Amazon Route 53 uses to create resource record sets in the specified hosted zone. -
setTrafficPolicyId
The ID of the traffic policy that Amazon Route 53 uses to create resource record sets in the specified hosted zone. -
getTrafficPolicyVersion
The version of the traffic policy that Amazon Route 53 uses to create resource record sets in the specified hosted zone. -
setTrafficPolicyVersion
The version of the traffic policy that Amazon Route 53 uses to create resource record sets in the specified hosted zone. -
getTtl
The TTL that Amazon Route 53 assigns to all of the resource record sets that it creates in the specified hosted zone. -
setTtl
The TTL that Amazon Route 53 assigns to all of the resource record sets that it creates in the specified hosted zone.
-