@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:36:52.661Z") public class CfnCustomerGateway extends CfnResource implements IInspectable
Specifies a customer gateway.
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.*; CfnCustomerGateway cfnCustomerGateway = CfnCustomerGateway.Builder.create(this, "MyCfnCustomerGateway") .bgpAsn(123) .ipAddress("ipAddress") .type("type") // the properties below are optional .deviceName("deviceName") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnCustomerGateway.Builder
A fluent builder for
CfnCustomerGateway . |
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 |
---|---|
|
CfnCustomerGateway(Construct scope,
java.lang.String id,
CfnCustomerGatewayProps props)
Create a new `AWS::EC2::CustomerGateway`.
|
protected |
CfnCustomerGateway(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnCustomerGateway(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrCustomerGatewayId()
The ID of the customer gateway.
|
java.lang.Number |
getBgpAsn()
For devices that support BGP, the customer gateway's BGP ASN.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getDeviceName()
The name of customer gateway device.
|
java.lang.String |
getIpAddress()
IPv4 address for the customer gateway device's outside interface.
|
TagManager |
getTags()
One or more tags for the customer gateway.
|
java.lang.String |
getType()
The type of VPN connection that this customer gateway supports ( `ipsec.1` ).
|
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 |
setBgpAsn(java.lang.Number value)
For devices that support BGP, the customer gateway's BGP ASN.
|
void |
setDeviceName(java.lang.String value)
The name of customer gateway device.
|
void |
setIpAddress(java.lang.String value)
IPv4 address for the customer gateway device's outside interface.
|
void |
setType(java.lang.String value)
The type of VPN connection that this customer gateway supports ( `ipsec.1` ).
|
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 CfnCustomerGateway(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnCustomerGateway(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnCustomerGateway(Construct scope, java.lang.String id, CfnCustomerGatewayProps 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 getAttrCustomerGatewayId()
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public TagManager getTags()
public java.lang.Number getBgpAsn()
Default: 65000
public void setBgpAsn(java.lang.Number value)
Default: 65000
public java.lang.String getIpAddress()
The address must be static.
public void setIpAddress(java.lang.String value)
The address must be static.
public java.lang.String getType()
public void setType(java.lang.String value)
public java.lang.String getDeviceName()
public void setDeviceName(java.lang.String value)