@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.858Z") @Stability(value=Stable) 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. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnMountTarget(software.constructs.Construct scope,
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 |
|---|---|
String |
getAttrId()
The ID of the Amazon EFS file system that the mount target provides access to.
|
String |
getAttrIpAddress()
The IPv4 address of the mount target.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getFileSystemId()
The ID of the file system for which to create the mount target.
|
String |
getIpAddress()
Valid IPv4 address within the address range of the specified subnet.
|
List<String> |
getSecurityGroups()
Up to five VPC security group IDs, of the form `sg-xxxxxxxx` .
|
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 Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setFileSystemId(String value)
The ID of the file system for which to create the mount target.
|
void |
setIpAddress(String value)
Valid IPv4 address within the address range of the specified subnet.
|
void |
setSecurityGroups(List<String> value)
Up to five VPC security group IDs, of the form `sg-xxxxxxxx` .
|
void |
setSubnetId(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, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnMountTarget(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnMountTarget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnMountTarget(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
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.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrId()
Example: fs-0123456789111222a
@Stability(value=Stable) @NotNull public String getAttrIpAddress()
Example: 192.0.2.0
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getFileSystemId()
@Stability(value=Stable)
public void setFileSystemId(@NotNull
String value)
@Stability(value=Stable) @NotNull public List<String> getSecurityGroups()
These must be for the same VPC as subnet specified.
@Stability(value=Stable)
public void setSecurityGroups(@NotNull
List<String> value)
These must be for the same VPC as subnet specified.
@Stability(value=Stable) @NotNull public String getSubnetId()
For file systems that use One Zone storage classes, use the subnet that is associated with the file system's Availability Zone.
@Stability(value=Stable)
public void setSubnetId(@NotNull
String value)
For file systems that use One Zone storage classes, use the subnet that is associated with the file system's Availability Zone.
@Stability(value=Stable) @Nullable public String getIpAddress()
@Stability(value=Stable)
public void setIpAddress(@Nullable
String value)
Copyright © 2022. All rights reserved.