Class CfnMountTarget
The AWS::EFS::MountTarget
resource is an Amazon EFS resource that creates a mount target for an EFS file system.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.EFS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnMountTarget : CfnResource, IInspectable
Syntax (vb)
Public Class CfnMountTarget
Inherits CfnResource
Implements IInspectable
Remarks
You can then mount the file system on Amazon EC2 instances or other resources by using the mount target.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html
CloudformationResource: AWS::EFS::MountTarget
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EFS;
var cfnMountTarget = new CfnMountTarget(this, "MyCfnMountTarget", new CfnMountTargetProps {
FileSystemId = "fileSystemId",
SecurityGroups = new [] { "securityGroups" },
SubnetId = "subnetId",
// the properties below are optional
IpAddress = "ipAddress"
});
Synopsis
Constructors
CfnMountTarget(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnMountTarget(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnMountTarget(Construct, String, ICfnMountTargetProps) |
Properties
AttrId | The ID of the Amazon EFS file system that the mount target provides access to. |
AttrIpAddress | The IPv4 address of the mount target. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
FileSystemId | The ID of the file system for which to create the mount target. |
IpAddress | Valid IPv4 address within the address range of the specified subnet. |
SecurityGroups | Up to five VPC security group IDs, of the form |
SubnetId | The ID of the subnet to add the mount target in. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnMountTarget(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnMountTarget(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnMountTarget(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnMountTarget(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnMountTarget(Construct, String, ICfnMountTargetProps)
public CfnMountTarget(Construct scope, string id, ICfnMountTargetProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnMountTargetProps
Resource properties.
Properties
AttrId
The ID of the Amazon EFS file system that the mount target provides access to.
public virtual string AttrId { get; }
Property Value
System.String
Remarks
Example: fs-0123456789111222a
CloudformationAttribute: Id
AttrIpAddress
The IPv4 address of the mount target.
public virtual string AttrIpAddress { get; }
Property Value
System.String
Remarks
Example: 192.0.2.0
CloudformationAttribute: IpAddress
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
FileSystemId
The ID of the file system for which to create the mount target.
public virtual string FileSystemId { get; set; }
Property Value
System.String
IpAddress
Valid IPv4 address within the address range of the specified subnet.
public virtual string IpAddress { get; set; }
Property Value
System.String
SecurityGroups
Up to five VPC security group IDs, of the form sg-xxxxxxxx
.
public virtual string[] SecurityGroups { get; set; }
Property Value
System.String[]
SubnetId
The ID of the subnet to add the mount target in.
public virtual string SubnetId { get; set; }
Property Value
System.String
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>