@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:42.570Z") public class CfnLocalGatewayRoute extends CfnResource implements IInspectable
Creates a static route for the specified local gateway route table. You must specify one of the following targets:
LocalGatewayVirtualInterfaceGroupId
NetworkInterfaceId
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.ec2.*; CfnLocalGatewayRoute cfnLocalGatewayRoute = CfnLocalGatewayRoute.Builder.create(this, "MyCfnLocalGatewayRoute") .destinationCidrBlock("destinationCidrBlock") .localGatewayRouteTableId("localGatewayRouteTableId") // the properties below are optional .localGatewayVirtualInterfaceGroupId("localGatewayVirtualInterfaceGroupId") .networkInterfaceId("networkInterfaceId") .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnLocalGatewayRoute.Builder
A fluent builder for
CfnLocalGatewayRoute . |
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnLocalGatewayRoute(Construct scope,
java.lang.String id,
CfnLocalGatewayRouteProps props)
Create a new `AWS::EC2::LocalGatewayRoute`.
|
protected |
CfnLocalGatewayRoute(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnLocalGatewayRoute(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrState()
The state of the local gateway route table.
|
java.lang.String |
getAttrType()
The type of local gateway route.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getDestinationCidrBlock()
The CIDR block used for destination matches.
|
java.lang.String |
getLocalGatewayRouteTableId()
The ID of the local gateway route table.
|
java.lang.String |
getLocalGatewayVirtualInterfaceGroupId()
The ID of the virtual interface group.
|
java.lang.String |
getNetworkInterfaceId()
The ID of the network interface.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setDestinationCidrBlock(java.lang.String value)
The CIDR block used for destination matches.
|
void |
setLocalGatewayRouteTableId(java.lang.String value)
The ID of the local gateway route table.
|
void |
setLocalGatewayVirtualInterfaceGroupId(java.lang.String value)
The ID of the virtual interface group.
|
void |
setNetworkInterfaceId(java.lang.String value)
The ID of the network interface.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnLocalGatewayRoute(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnLocalGatewayRoute(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnLocalGatewayRoute(Construct scope, java.lang.String id, CfnLocalGatewayRouteProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrState()
public java.lang.String getAttrType()
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.String getDestinationCidrBlock()
public void setDestinationCidrBlock(java.lang.String value)
public java.lang.String getLocalGatewayRouteTableId()
public void setLocalGatewayRouteTableId(java.lang.String value)
public java.lang.String getLocalGatewayVirtualInterfaceGroupId()
public void setLocalGatewayVirtualInterfaceGroupId(java.lang.String value)
public java.lang.String getNetworkInterfaceId()
public void setNetworkInterfaceId(java.lang.String value)