Class CfnServiceNetwork
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.CfnServiceNetwork
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IServiceNetworkRef,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.121Z")
@Stability(Stable)
public class CfnServiceNetwork
extends CfnResource
implements IInspectable, IServiceNetworkRef, ITaggable
Creates a service network.
A service network is a logical boundary for a collection of services. You can associate services and VPCs with a service network.
For more information, see Service networks in the Amazon VPC Lattice User Guide .
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.*;
CfnServiceNetwork cfnServiceNetwork = CfnServiceNetwork.Builder.create(this, "MyCfnServiceNetwork")
.authType("authType")
.name("name")
.sharingConfig(SharingConfigProperty.builder()
.enabled(false)
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnServiceNetwork.static interfaceSpecify if the service network should be enabled for sharing.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.IServiceNetworkRef
IServiceNetworkRef.Jsii$Default, IServiceNetworkRef.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
ConstructorsModifierConstructorDescriptionprotectedCfnServiceNetwork(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnServiceNetwork(software.amazon.jsii.JsiiObjectRef objRef) CfnServiceNetwork(software.constructs.Construct scope, String id) Create a newAWS::VpcLattice::ServiceNetwork.CfnServiceNetwork(software.constructs.Construct scope, String id, CfnServiceNetworkProps props) Create a newAWS::VpcLattice::ServiceNetwork. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForServiceNetwork(IServiceNetworkRef resource) The Amazon Resource Name (ARN) of the service network.The date and time that the service network was created, specified in ISO-8601 format.The ID of the service network.The date and time of the last update, specified in ISO-8601 format.The type of IAM policy.getName()The name of the service network.A reference to a ServiceNetwork resource.Specify if the service network should be enabled for sharing.getTags()Tag Manager which manages the tags for this resource.The tags for the service network.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnServiceNetwork.renderProperties(Map<String, Object> props) voidsetAuthType(String value) The type of IAM policy.voidThe name of the service network.voidsetSharingConfig(IResolvable value) Specify if the service network should be enabled for sharing.voidSpecify if the service network should be enabled for sharing.voidsetTagsRaw(List<CfnTag> value) The tags for the service network.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
-
CfnServiceNetwork
protected CfnServiceNetwork(software.amazon.jsii.JsiiObjectRef objRef) -
CfnServiceNetwork
protected CfnServiceNetwork(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnServiceNetwork
@Stability(Stable) public CfnServiceNetwork(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnServiceNetworkProps props) Create a newAWS::VpcLattice::ServiceNetwork.- 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.
-
CfnServiceNetwork
@Stability(Stable) public CfnServiceNetwork(@NotNull software.constructs.Construct scope, @NotNull String id) Create a newAWS::VpcLattice::ServiceNetwork.- 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
-
arnForServiceNetwork
@Stability(Stable) @NotNull public static String arnForServiceNetwork(@NotNull IServiceNetworkRef resource) - Parameters:
resource- This parameter is required.
-
isCfnServiceNetwork
Checks whether the given object is a CfnServiceNetwork.- 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 service network. -
getAttrCreatedAt
The date and time that the service network was created, specified in ISO-8601 format. -
getAttrId
The ID of the service network. -
getAttrLastUpdatedAt
The date and time of the last update, specified in ISO-8601 format. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getServiceNetworkRef
A reference to a ServiceNetwork resource.- Specified by:
getServiceNetworkRefin interfaceIServiceNetworkRef
-
getTags
Tag Manager which manages the tags for this resource. -
getAuthType
The type of IAM policy. -
setAuthType
The type of IAM policy. -
getName
The name of the service network. -
setName
The name of the service network. -
getSharingConfig
Specify if the service network should be enabled for sharing.Returns union: either
IResolvableorCfnServiceNetwork.SharingConfigProperty -
setSharingConfig
Specify if the service network should be enabled for sharing. -
setSharingConfig
@Stability(Stable) public void setSharingConfig(@Nullable CfnServiceNetwork.SharingConfigProperty value) Specify if the service network should be enabled for sharing. -
getTagsRaw
The tags for the service network. -
setTagsRaw
The tags for the service network.
-