We recommend new projects start with resources from the AWS provider.
aws-native.efs.MountTarget
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
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.
Create MountTarget Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MountTarget(name: string, args: MountTargetArgs, opts?: CustomResourceOptions);
@overload
def MountTarget(resource_name: str,
args: MountTargetArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MountTarget(resource_name: str,
opts: Optional[ResourceOptions] = None,
file_system_id: Optional[str] = None,
security_groups: Optional[Sequence[str]] = None,
subnet_id: Optional[str] = None,
ip_address: Optional[str] = None)
func NewMountTarget(ctx *Context, name string, args MountTargetArgs, opts ...ResourceOption) (*MountTarget, error)
public MountTarget(string name, MountTargetArgs args, CustomResourceOptions? opts = null)
public MountTarget(String name, MountTargetArgs args)
public MountTarget(String name, MountTargetArgs args, CustomResourceOptions options)
type: aws-native:efs:MountTarget
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args MountTargetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args MountTargetArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args MountTargetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MountTargetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MountTargetArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
MountTarget Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The MountTarget resource accepts the following input properties:
- File
System stringId - The ID of the file system for which to create the mount target.
- Security
Groups List<string> - Up to five VPC security group IDs, of the form
sg-xxxxxxxx
. These must be for the same VPC as subnet specified. - Subnet
Id string - The ID of the subnet to add the mount target in. For One Zone file systems, use the subnet that is associated with the file system's Availability Zone.
- Ip
Address string - Valid IPv4 address within the address range of the specified subnet.
- File
System stringId - The ID of the file system for which to create the mount target.
- Security
Groups []string - Up to five VPC security group IDs, of the form
sg-xxxxxxxx
. These must be for the same VPC as subnet specified. - Subnet
Id string - The ID of the subnet to add the mount target in. For One Zone file systems, use the subnet that is associated with the file system's Availability Zone.
- Ip
Address string - Valid IPv4 address within the address range of the specified subnet.
- file
System StringId - The ID of the file system for which to create the mount target.
- security
Groups List<String> - Up to five VPC security group IDs, of the form
sg-xxxxxxxx
. These must be for the same VPC as subnet specified. - subnet
Id String - The ID of the subnet to add the mount target in. For One Zone file systems, use the subnet that is associated with the file system's Availability Zone.
- ip
Address String - Valid IPv4 address within the address range of the specified subnet.
- file
System stringId - The ID of the file system for which to create the mount target.
- security
Groups string[] - Up to five VPC security group IDs, of the form
sg-xxxxxxxx
. These must be for the same VPC as subnet specified. - subnet
Id string - The ID of the subnet to add the mount target in. For One Zone file systems, use the subnet that is associated with the file system's Availability Zone.
- ip
Address string - Valid IPv4 address within the address range of the specified subnet.
- file_
system_ strid - The ID of the file system for which to create the mount target.
- security_
groups Sequence[str] - Up to five VPC security group IDs, of the form
sg-xxxxxxxx
. These must be for the same VPC as subnet specified. - subnet_
id str - The ID of the subnet to add the mount target in. For One Zone file systems, use the subnet that is associated with the file system's Availability Zone.
- ip_
address str - Valid IPv4 address within the address range of the specified subnet.
- file
System StringId - The ID of the file system for which to create the mount target.
- security
Groups List<String> - Up to five VPC security group IDs, of the form
sg-xxxxxxxx
. These must be for the same VPC as subnet specified. - subnet
Id String - The ID of the subnet to add the mount target in. For One Zone file systems, use the subnet that is associated with the file system's Availability Zone.
- ip
Address String - Valid IPv4 address within the address range of the specified subnet.
Outputs
All input properties are implicitly available as output properties. Additionally, the MountTarget resource produces the following output properties:
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.