@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)", date="2022-06-22T23:27:55.978Z") public class CfnMountTarget extends CfnResource implements IInspectable
The AWS::EFS::MountTarget
resource is an Amazon EFS resource that creates a mount target for an EFS file system. You can then mount the file system on Amazon EC2 instances or other resources by using the mount target.
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.efs.*; CfnMountTarget cfnMountTarget = CfnMountTarget.Builder.create(this, "MyCfnMountTarget") .fileSystemId("fileSystemId") .securityGroups(List.of("securityGroups")) .subnetId("subnetId") // the properties below are optional .ipAddress("ipAddress") .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnMountTarget.Builder
A fluent builder for
CfnMountTarget . |
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 |
---|---|
|
CfnMountTarget(Construct scope,
java.lang.String id,
CfnMountTargetProps props)
Create a new `AWS::EFS::MountTarget`.
|
protected |
CfnMountTarget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnMountTarget(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrId()
The ID of the Amazon EFS file system that the mount target provides access to.
|
java.lang.String |
getAttrIpAddress()
The IPv4 address of the mount target.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getFileSystemId()
The ID of the file system for which to create the mount target.
|
java.lang.String |
getIpAddress()
Valid IPv4 address within the address range of the specified subnet.
|
java.util.List<java.lang.String> |
getSecurityGroups()
Up to five VPC security group IDs, of the form `sg-xxxxxxxx` .
|
java.lang.String |
getSubnetId()
The ID of the subnet to add the mount target in.
|
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 |
setFileSystemId(java.lang.String value)
The ID of the file system for which to create the mount target.
|
void |
setIpAddress(java.lang.String value)
Valid IPv4 address within the address range of the specified subnet.
|
void |
setSecurityGroups(java.util.List<java.lang.String> value)
Up to five VPC security group IDs, of the form `sg-xxxxxxxx` .
|
void |
setSubnetId(java.lang.String value)
The ID of the subnet to add the mount target in.
|
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 CfnMountTarget(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnMountTarget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnMountTarget(Construct scope, java.lang.String id, CfnMountTargetProps 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 getAttrId()
Example: fs-0123456789111222a
public java.lang.String getAttrIpAddress()
Example: 192.0.2.0
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.String getFileSystemId()
public void setFileSystemId(java.lang.String value)
public java.util.List<java.lang.String> getSecurityGroups()
These must be for the same VPC as subnet specified.
public void setSecurityGroups(java.util.List<java.lang.String> value)
These must be for the same VPC as subnet specified.
public java.lang.String getSubnetId()
For file systems that use One Zone storage classes, use the subnet that is associated with the file system's Availability Zone.
public void setSubnetId(java.lang.String value)
For file systems that use One Zone storage classes, use the subnet that is associated with the file system's Availability Zone.
public java.lang.String getIpAddress()
public void setIpAddress(java.lang.String value)