Class CfnServiceNetwork
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::VpcLattice::ServiceNetwork.
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")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnServiceNetwork(Construct scope, String id) Create a newAWS::VpcLattice::ServiceNetwork.CfnServiceNetwork(Construct scope, String id, CfnServiceNetworkProps props) Create a newAWS::VpcLattice::ServiceNetwork.protectedCfnServiceNetwork(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnServiceNetwork(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe 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.getTags()The tags for the service network.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAuthType(String value) The type of IAM policy.voidThe name of the service network.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.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 Construct scope, @NotNull String id, @Nullable CfnServiceNetworkProps props) Create a newAWS::VpcLattice::ServiceNetwork.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
CfnServiceNetwork
Create a newAWS::VpcLattice::ServiceNetwork.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
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
-
getTags
The tags for the service network. -
getAuthType
The type of IAM policy.NONE: The resource does not use an IAM policy. This is the default.AWS_IAM: The resource uses an IAM policy. When this type is used, auth is enabled and an auth policy is required.
-
setAuthType
The type of IAM policy.NONE: The resource does not use an IAM policy. This is the default.AWS_IAM: The resource uses an IAM policy. When this type is used, auth is enabled and an auth policy is required.
-
getName
The name of the service network.The name must be unique to the account. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen.
If you don't specify a name, CloudFormation generates one. However, if you specify a name, and later want to replace the resource, you must specify a new name.
-
setName
The name of the service network.The name must be unique to the account. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen.
If you don't specify a name, CloudFormation generates one. However, if you specify a name, and later want to replace the resource, you must specify a new name.
-