Class CfnResourceConfiguration
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.CfnResourceConfiguration
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IResourceConfigurationRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-12-01T16:02:31.311Z")
@Stability(Stable)
public class CfnResourceConfiguration
extends CfnResource
implements IInspectable, IResourceConfigurationRef, ITaggableV2
Creates a resource configuration.
A resource configuration defines a specific resource. You can associate a resource configuration with a service network or a VPC endpoint.
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.*;
CfnResourceConfiguration cfnResourceConfiguration = CfnResourceConfiguration.Builder.create(this, "MyCfnResourceConfiguration")
.name("name")
.resourceConfigurationType("resourceConfigurationType")
// the properties below are optional
.allowAssociationToSharableServiceNetwork(false)
.customDomainName("customDomainName")
.domainVerificationId("domainVerificationId")
.groupDomain("groupDomain")
.portRanges(List.of("portRanges"))
.protocolType("protocolType")
.resourceConfigurationAuthType("resourceConfigurationAuthType")
.resourceConfigurationDefinition(ResourceConfigurationDefinitionProperty.builder()
.arnResource("arnResource")
.dnsResource(DnsResourceProperty.builder()
.domainName("domainName")
.ipAddressType("ipAddressType")
.build())
.ipResource("ipResource")
.build())
.resourceConfigurationGroupId("resourceConfigurationGroupId")
.resourceGatewayId("resourceGatewayId")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnResourceConfiguration.static interfaceThe domain name of the resource configuration.static interfaceIdentifies the resource configuration in one of the following ways:.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.IResourceConfigurationRef
IResourceConfigurationRef.Jsii$Default, IResourceConfigurationRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnResourceConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnResourceConfiguration(software.amazon.jsii.JsiiObjectRef objRef) CfnResourceConfiguration(software.constructs.Construct scope, String id, CfnResourceConfigurationProps props) Create a newAWS::VpcLattice::ResourceConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringSpecifies whether the resource configuration can be associated with a sharable service network.The Amazon Resource Name (ARN) of the resource configuration.The ID of the resource configuration.Tag Manager which manages the tags for this resource.The custom domain name.The domain verification ID.(GROUP) The group domain for a group resource configuration.getName()The name of the resource configuration.(SINGLE, GROUP, CHILD) The TCP port ranges that a consumer can use to access a resource configuration (for example: 1-65535).(SINGLE, GROUP) The protocol accepted by the resource configuration.The auth type for the resource configuration.Identifies the resource configuration in one of the following ways:.The ID of the group resource configuration.A reference to a ResourceConfiguration resource.The type of resource configuration.The ID of the resource gateway.getTags()The tags for the resource configuration.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnResourceConfiguration.renderProperties(Map<String, Object> props) voidSpecifies whether the resource configuration can be associated with a sharable service network.voidSpecifies whether the resource configuration can be associated with a sharable service network.voidsetCustomDomainName(String value) The custom domain name.voidsetDomainVerificationId(String value) The domain verification ID.voidsetGroupDomain(String value) (GROUP) The group domain for a group resource configuration.voidThe name of the resource configuration.voidsetPortRanges(List<String> value) (SINGLE, GROUP, CHILD) The TCP port ranges that a consumer can use to access a resource configuration (for example: 1-65535).voidsetProtocolType(String value) (SINGLE, GROUP) The protocol accepted by the resource configuration.voidThe auth type for the resource configuration.voidIdentifies the resource configuration in one of the following ways:.voidsetResourceConfigurationDefinition(CfnResourceConfiguration.ResourceConfigurationDefinitionProperty value) Identifies the resource configuration in one of the following ways:.voidThe ID of the group resource configuration.voidThe type of resource configuration.voidsetResourceGatewayId(String value) The ID of the resource gateway.voidThe tags for the resource configuration.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
-
CfnResourceConfiguration
protected CfnResourceConfiguration(software.amazon.jsii.JsiiObjectRef objRef) -
CfnResourceConfiguration
protected CfnResourceConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnResourceConfiguration
@Stability(Stable) public CfnResourceConfiguration(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnResourceConfigurationProps props) Create a newAWS::VpcLattice::ResourceConfiguration.- 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
-
arnForResourceConfiguration
@Stability(Stable) @NotNull public static String arnForResourceConfiguration(@NotNull IResourceConfigurationRef resource) - Parameters:
resource- This parameter is required.
-
isCfnResourceConfiguration
Checks whether the given object is a CfnResourceConfiguration.- 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 resource configuration. -
getAttrId
The ID of the resource configuration. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getResourceConfigurationRef
A reference to a ResourceConfiguration resource.- Specified by:
getResourceConfigurationRefin interfaceIResourceConfigurationRef
-
getName
The name of the resource configuration. -
setName
The name of the resource configuration. -
getResourceConfigurationType
The type of resource configuration.A resource configuration can be one of the following types:.
-
setResourceConfigurationType
The type of resource configuration.A resource configuration can be one of the following types:.
-
getAllowAssociationToSharableServiceNetwork
Specifies whether the resource configuration can be associated with a sharable service network.Returns union: either
BooleanorIResolvable -
setAllowAssociationToSharableServiceNetwork
Specifies whether the resource configuration can be associated with a sharable service network. -
setAllowAssociationToSharableServiceNetwork
@Stability(Stable) public void setAllowAssociationToSharableServiceNetwork(@Nullable IResolvable value) Specifies whether the resource configuration can be associated with a sharable service network. -
getCustomDomainName
The custom domain name. -
setCustomDomainName
The custom domain name. -
getDomainVerificationId
The domain verification ID. -
setDomainVerificationId
The domain verification ID. -
getGroupDomain
(GROUP) The group domain for a group resource configuration. -
setGroupDomain
(GROUP) The group domain for a group resource configuration. -
getPortRanges
(SINGLE, GROUP, CHILD) The TCP port ranges that a consumer can use to access a resource configuration (for example: 1-65535). -
setPortRanges
(SINGLE, GROUP, CHILD) The TCP port ranges that a consumer can use to access a resource configuration (for example: 1-65535). -
getProtocolType
(SINGLE, GROUP) The protocol accepted by the resource configuration. -
setProtocolType
(SINGLE, GROUP) The protocol accepted by the resource configuration. -
getResourceConfigurationAuthType
The auth type for the resource configuration. -
setResourceConfigurationAuthType
The auth type for the resource configuration. -
getResourceConfigurationDefinition
Identifies the resource configuration in one of the following ways:.Returns union: either
IResolvableorCfnResourceConfiguration.ResourceConfigurationDefinitionProperty -
setResourceConfigurationDefinition
Identifies the resource configuration in one of the following ways:. -
setResourceConfigurationDefinition
@Stability(Stable) public void setResourceConfigurationDefinition(@Nullable CfnResourceConfiguration.ResourceConfigurationDefinitionProperty value) Identifies the resource configuration in one of the following ways:. -
getResourceConfigurationGroupId
The ID of the group resource configuration. -
setResourceConfigurationGroupId
The ID of the group resource configuration. -
getResourceGatewayId
The ID of the resource gateway. -
setResourceGatewayId
The ID of the resource gateway. -
getTags
The tags for the resource configuration. -
setTags
The tags for the resource configuration.
-