Class CfnResourceGateway
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.CfnResourceGateway
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IResourceGatewayRef,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.315Z")
@Stability(Stable)
public class CfnResourceGateway
extends CfnResource
implements IInspectable, IResourceGatewayRef, ITaggableV2
A resource gateway is a point of ingress into the VPC where a resource resides.
It spans multiple Availability Zones. For your resource to be accessible from all Availability Zones, you should create your resource gateways to span as many Availability Zones as possible. A VPC can have multiple resource gateways.
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.*;
CfnResourceGateway cfnResourceGateway = CfnResourceGateway.Builder.create(this, "MyCfnResourceGateway")
.name("name")
.subnetIds(List.of("subnetIds"))
.vpcIdentifier("vpcIdentifier")
// the properties below are optional
.ipAddressType("ipAddressType")
.ipv4AddressesPerEni(123)
.securityGroupIds(List.of("securityGroupIds"))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
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.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.IResourceGatewayRef
IResourceGatewayRef.Jsii$Default, IResourceGatewayRef.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
ConstructorsModifierConstructorDescriptionprotectedCfnResourceGateway(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnResourceGateway(software.amazon.jsii.JsiiObjectRef objRef) CfnResourceGateway(software.constructs.Construct scope, String id, CfnResourceGatewayProps props) Create a newAWS::VpcLattice::ResourceGateway. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForResourceGateway(IResourceGatewayRef resource) The Amazon Resource Name (ARN) of the resource gateway.The ID of the resource gateway.Tag Manager which manages the tags for this resource.The type of IP address used by the resource gateway.The number of IPv4 addresses in each ENI for the resource gateway.getName()The name of the resource gateway.A reference to a ResourceGateway resource.The IDs of the security groups applied to the resource gateway.The IDs of the VPC subnets for the resource gateway.getTags()The tags for the resource gateway.The ID of the VPC for the resource gateway.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnResourceGateway.renderProperties(Map<String, Object> props) voidsetIpAddressType(String value) The type of IP address used by the resource gateway.voidsetIpv4AddressesPerEni(Number value) The number of IPv4 addresses in each ENI for the resource gateway.voidThe name of the resource gateway.voidsetSecurityGroupIds(List<String> value) The IDs of the security groups applied to the resource gateway.voidsetSubnetIds(List<String> value) The IDs of the VPC subnets for the resource gateway.voidThe tags for the resource gateway.voidsetVpcIdentifier(String value) The ID of the VPC for the resource gateway.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
-
CfnResourceGateway
protected CfnResourceGateway(software.amazon.jsii.JsiiObjectRef objRef) -
CfnResourceGateway
protected CfnResourceGateway(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnResourceGateway
@Stability(Stable) public CfnResourceGateway(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnResourceGatewayProps props) Create a newAWS::VpcLattice::ResourceGateway.- 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
-
arnForResourceGateway
@Stability(Stable) @NotNull public static String arnForResourceGateway(@NotNull IResourceGatewayRef resource) - Parameters:
resource- This parameter is required.
-
isCfnResourceGateway
Checks whether the given object is a CfnResourceGateway.- 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 gateway. -
getAttrId
The ID of the resource gateway. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getResourceGatewayRef
A reference to a ResourceGateway resource.- Specified by:
getResourceGatewayRefin interfaceIResourceGatewayRef
-
getName
The name of the resource gateway. -
setName
The name of the resource gateway. -
getSubnetIds
The IDs of the VPC subnets for the resource gateway. -
setSubnetIds
The IDs of the VPC subnets for the resource gateway. -
getVpcIdentifier
The ID of the VPC for the resource gateway. -
setVpcIdentifier
The ID of the VPC for the resource gateway. -
getIpAddressType
The type of IP address used by the resource gateway. -
setIpAddressType
The type of IP address used by the resource gateway. -
getIpv4AddressesPerEni
The number of IPv4 addresses in each ENI for the resource gateway. -
setIpv4AddressesPerEni
The number of IPv4 addresses in each ENI for the resource gateway. -
getSecurityGroupIds
The IDs of the security groups applied to the resource gateway. -
setSecurityGroupIds
The IDs of the security groups applied to the resource gateway. -
getTags
The tags for the resource gateway. -
setTags
The tags for the resource gateway.
-