Class CfnServiceNetworkServiceAssociation
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.vpclattice.CfnServiceNetworkServiceAssociation
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IServiceNetworkServiceAssociationRef,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:47.125Z")
@Stability(Stable)
public class CfnServiceNetworkServiceAssociation
extends CfnResource
implements IInspectable, IServiceNetworkServiceAssociationRef, ITaggable
Associates the specified service with the specified service network.
For more information, see Manage service associations in the Amazon VPC Lattice User Guide .
You can't use this operation if the service and service network are already associated or if there is a disassociation or deletion in progress. If the association fails, you can retry the operation by deleting the association and recreating it.
You cannot associate a service and service network that are shared with a caller. The caller must own either the service or the service network.
As a result of this operation, the association is created in the service network account and the association owner account.
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.vpclattice.*;
CfnServiceNetworkServiceAssociation cfnServiceNetworkServiceAssociation = CfnServiceNetworkServiceAssociation.Builder.create(this, "MyCfnServiceNetworkServiceAssociation")
.dnsEntry(DnsEntryProperty.builder()
.domainName("domainName")
.hostedZoneId("hostedZoneId")
.build())
.serviceIdentifier("serviceIdentifier")
.serviceNetworkIdentifier("serviceNetworkIdentifier")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnServiceNetworkServiceAssociation.static interfaceThe DNS information.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.vpclattice.IServiceNetworkServiceAssociationRef
IServiceNetworkServiceAssociationRef.Jsii$Default, IServiceNetworkServiceAssociationRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnServiceNetworkServiceAssociation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnServiceNetworkServiceAssociation(software.amazon.jsii.JsiiObjectRef objRef) CfnServiceNetworkServiceAssociation(software.constructs.Construct scope, String id) Create a newAWS::VpcLattice::ServiceNetworkServiceAssociation.CfnServiceNetworkServiceAssociation(software.constructs.Construct scope, String id, CfnServiceNetworkServiceAssociationProps props) Create a newAWS::VpcLattice::ServiceNetworkServiceAssociation. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringThe Amazon Resource Name (ARN) of the association between the service network and the service.The date and time that the association was created, specified in ISO-8601 format.The domain name of the service.The ID of the hosted zone.The ID of the of the association between the service network and the service.The Amazon Resource Name (ARN) of the service.The ID of the service.The name of the service.The Amazon Resource Name (ARN) of the service network.The ID of the service network.The name of the service network.The status of the association between the service network and the service.The DNS information of the service.The ID or ARN of the service.The ID or ARN of the service network.A reference to a ServiceNetworkServiceAssociation resource.getTags()Tag Manager which manages the tags for this resource.The tags for the association.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnServiceNetworkServiceAssociation.renderProperties(Map<String, Object> props) voidsetDnsEntry(IResolvable value) The DNS information of the service.voidThe DNS information of the service.voidsetServiceIdentifier(String value) The ID or ARN of the service.voidThe ID or ARN of the service network.voidsetTagsRaw(List<CfnTag> value) The tags for the association.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods 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
getNodeMethods 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
-
CfnServiceNetworkServiceAssociation
protected CfnServiceNetworkServiceAssociation(software.amazon.jsii.JsiiObjectRef objRef) -
CfnServiceNetworkServiceAssociation
protected CfnServiceNetworkServiceAssociation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnServiceNetworkServiceAssociation
@Stability(Stable) public CfnServiceNetworkServiceAssociation(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnServiceNetworkServiceAssociationProps props) Create a newAWS::VpcLattice::ServiceNetworkServiceAssociation.- 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.
-
CfnServiceNetworkServiceAssociation
@Stability(Stable) public CfnServiceNetworkServiceAssociation(@NotNull software.constructs.Construct scope, @NotNull String id) Create a newAWS::VpcLattice::ServiceNetworkServiceAssociation.- 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
-
arnForServiceNetworkServiceAssociation
@Stability(Stable) @NotNull public static String arnForServiceNetworkServiceAssociation(@NotNull IServiceNetworkServiceAssociationRef resource) - Parameters:
resource- This parameter is required.
-
isCfnServiceNetworkServiceAssociation
@Stability(Stable) @NotNull public static Boolean isCfnServiceNetworkServiceAssociation(@NotNull Object x) Checks whether the given object is a CfnServiceNetworkServiceAssociation.- 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 association between the service network and the service. -
getAttrCreatedAt
The date and time that the association was created, specified in ISO-8601 format. -
getAttrDnsEntryDomainName
The domain name of the service. -
getAttrDnsEntryHostedZoneId
The ID of the hosted zone. -
getAttrId
The ID of the of the association between the service network and the service. -
getAttrServiceArn
The Amazon Resource Name (ARN) of the service. -
getAttrServiceId
The ID of the service. -
getAttrServiceName
The name of the service. -
getAttrServiceNetworkArn
The Amazon Resource Name (ARN) of the service network. -
getAttrServiceNetworkId
The ID of the service network. -
getAttrServiceNetworkName
The name of the service network. -
getAttrStatus
The status of the association between the service network and the service. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getServiceNetworkServiceAssociationRef
@Stability(Stable) @NotNull public ServiceNetworkServiceAssociationReference getServiceNetworkServiceAssociationRef()A reference to a ServiceNetworkServiceAssociation resource.- Specified by:
getServiceNetworkServiceAssociationRefin interfaceIServiceNetworkServiceAssociationRef
-
getTags
Tag Manager which manages the tags for this resource. -
getDnsEntry
The DNS information of the service.Returns union: either
IResolvableorCfnServiceNetworkServiceAssociation.DnsEntryProperty -
setDnsEntry
The DNS information of the service. -
setDnsEntry
@Stability(Stable) public void setDnsEntry(@Nullable CfnServiceNetworkServiceAssociation.DnsEntryProperty value) The DNS information of the service. -
getServiceIdentifier
The ID or ARN of the service. -
setServiceIdentifier
The ID or ARN of the service. -
getServiceNetworkIdentifier
The ID or ARN of the service network. -
setServiceNetworkIdentifier
The ID or ARN of the service network. -
getTagsRaw
The tags for the association. -
setTagsRaw
The tags for the association.
-