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
,ITaggable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-27T16:51:06.388Z")
@Stability(Stable)
public class CfnServiceNetworkServiceAssociation
extends CfnResource
implements IInspectable, ITaggable
Associates a service with a 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
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnServiceNetworkServiceAssociation
.static interface
The DNS information.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnServiceNetworkServiceAssociation
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnServiceNetworkServiceAssociation
(software.amazon.jsii.JsiiObjectRef objRef) CfnServiceNetworkServiceAssociation
(software.constructs.Construct scope, String id) CfnServiceNetworkServiceAssociation
(software.constructs.Construct scope, String id, CfnServiceNetworkServiceAssociationProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe 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 Amazon Resource Name (ARN) of the service.The ID or Amazon Resource Name (ARN) of the service network.getTags()
Tag Manager which manages the tags for this resource.The tags for the association.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setDnsEntry
(IResolvable value) The DNS information of the service.void
The DNS information of the service.void
setServiceIdentifier
(String value) The ID or Amazon Resource Name (ARN) of the service.void
The ID or Amazon Resource Name (ARN) of the service network.void
setTagsRaw
(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, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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) - 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) - 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
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in 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:
renderProperties
in 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:
getCfnProperties
in classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getDnsEntry
The DNS information of the service. -
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 Amazon Resource Name (ARN) of the service. -
setServiceIdentifier
The ID or Amazon Resource Name (ARN) of the service. -
getServiceNetworkIdentifier
The ID or Amazon Resource Name (ARN) of the service network. -
setServiceNetworkIdentifier
The ID or Amazon Resource Name (ARN) of the service network. -
getTagsRaw
The tags for the association. -
setTagsRaw
The tags for the association.
-