1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. efs
  5. getMountTarget

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi

aws-native.efs.getMountTarget

Explore with Pulumi AI

aws-native logo

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi

    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.

    Using getMountTarget

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getMountTarget(args: GetMountTargetArgs, opts?: InvokeOptions): Promise<GetMountTargetResult>
    function getMountTargetOutput(args: GetMountTargetOutputArgs, opts?: InvokeOptions): Output<GetMountTargetResult>
    def get_mount_target(id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetMountTargetResult
    def get_mount_target_output(id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetMountTargetResult]
    func LookupMountTarget(ctx *Context, args *LookupMountTargetArgs, opts ...InvokeOption) (*LookupMountTargetResult, error)
    func LookupMountTargetOutput(ctx *Context, args *LookupMountTargetOutputArgs, opts ...InvokeOption) LookupMountTargetResultOutput

    > Note: This function is named LookupMountTarget in the Go SDK.

    public static class GetMountTarget 
    {
        public static Task<GetMountTargetResult> InvokeAsync(GetMountTargetArgs args, InvokeOptions? opts = null)
        public static Output<GetMountTargetResult> Invoke(GetMountTargetInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMountTargetResult> getMountTarget(GetMountTargetArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws-native:efs:getMountTarget
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string

    The ID of the Amazon EFS file system that the mount target provides access to.

    Example: fs-0123456789111222a

    Id string

    The ID of the Amazon EFS file system that the mount target provides access to.

    Example: fs-0123456789111222a

    id String

    The ID of the Amazon EFS file system that the mount target provides access to.

    Example: fs-0123456789111222a

    id string

    The ID of the Amazon EFS file system that the mount target provides access to.

    Example: fs-0123456789111222a

    id str

    The ID of the Amazon EFS file system that the mount target provides access to.

    Example: fs-0123456789111222a

    id String

    The ID of the Amazon EFS file system that the mount target provides access to.

    Example: fs-0123456789111222a

    getMountTarget Result

    The following output properties are available:

    Id string

    The ID of the Amazon EFS file system that the mount target provides access to.

    Example: fs-0123456789111222a

    SecurityGroups List<string>
    Up to five VPC security group IDs, of the form sg-xxxxxxxx. These must be for the same VPC as subnet specified.
    Id string

    The ID of the Amazon EFS file system that the mount target provides access to.

    Example: fs-0123456789111222a

    SecurityGroups []string
    Up to five VPC security group IDs, of the form sg-xxxxxxxx. These must be for the same VPC as subnet specified.
    id String

    The ID of the Amazon EFS file system that the mount target provides access to.

    Example: fs-0123456789111222a

    securityGroups List<String>
    Up to five VPC security group IDs, of the form sg-xxxxxxxx. These must be for the same VPC as subnet specified.
    id string

    The ID of the Amazon EFS file system that the mount target provides access to.

    Example: fs-0123456789111222a

    securityGroups string[]
    Up to five VPC security group IDs, of the form sg-xxxxxxxx. These must be for the same VPC as subnet specified.
    id str

    The ID of the Amazon EFS file system that the mount target provides access to.

    Example: fs-0123456789111222a

    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.
    id String

    The ID of the Amazon EFS file system that the mount target provides access to.

    Example: fs-0123456789111222a

    securityGroups List<String>
    Up to five VPC security group IDs, of the form sg-xxxxxxxx. These must be for the same VPC as subnet specified.

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    We recommend new projects start with resources from the AWS provider.

    AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi