GetMountTarget
Provides information about an Elastic File System Mount Target (EFS).
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var config = new Config();
var mountTargetId = config.Get("mountTargetId") ?? "";
var byId = Output.Create(Aws.Efs.GetMountTarget.InvokeAsync(new Aws.Efs.GetMountTargetArgs
{
MountTargetId = mountTargetId,
}));
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/efs"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := efs.LookupMountTarget(ctx, &efs.LookupMountTargetArgs{
MountTargetId: mountTargetId,
}, nil)
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
config = pulumi.Config()
mount_target_id = config.get("mountTargetId")
if mount_target_id is None:
mount_target_id = ""
by_id = aws.efs.get_mount_target(mount_target_id=mount_target_id)import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const config = new pulumi.Config();
const mountTargetId = config.get("mountTargetId") || "";
const byId = pulumi.output(aws.efs.getMountTarget({
mountTargetId: mountTargetId,
}, { async: true }));Using GetMountTarget
function getMountTarget(args: GetMountTargetArgs, opts?: InvokeOptions): Promise<GetMountTargetResult>function get_mount_target(mount_target_id=None, opts=None)func LookupMountTarget(ctx *Context, args *LookupMountTargetArgs, opts ...InvokeOption) (*LookupMountTargetResult, error)Note: This function is named
LookupMountTargetin the Go SDK.
public static class GetMountTarget {
public static Task<GetMountTargetResult> InvokeAsync(GetMountTargetArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Mount
Target stringId ID of the mount target that you want to have described
- Mount
Target stringId ID of the mount target that you want to have described
- mount
Target stringId ID of the mount target that you want to have described
- mount_
target_ strid ID of the mount target that you want to have described
GetMountTarget Result
The following output properties are available:
- Availability
Zone stringId The unique and consistent identifier of the Availability Zone (AZ) that the mount target resides in.
- Availability
Zone stringName The name of the Availability Zone (AZ) that the mount target resides in.
- Dns
Name string The DNS name for the EFS file system.
- File
System stringArn Amazon Resource Name of the file system for which the mount target is intended.
- File
System stringId ID of the file system for which the mount target is intended.
- Id string
The provider-assigned unique ID for this managed resource.
- Ip
Address string Address at which the file system may be mounted via the mount target.
- Mount
Target stringDns Name The DNS name for the given subnet/AZ per documented convention.
- Mount
Target stringId - Network
Interface stringId The ID of the network interface that Amazon EFS created when it created the mount target.
- Owner
Id string AWS account ID that owns the resource.
- Security
Groups List<string> List of VPC security group IDs attached to the mount target.
- Subnet
Id string ID of the mount target’s subnet.
- Availability
Zone stringId The unique and consistent identifier of the Availability Zone (AZ) that the mount target resides in.
- Availability
Zone stringName The name of the Availability Zone (AZ) that the mount target resides in.
- Dns
Name string The DNS name for the EFS file system.
- File
System stringArn Amazon Resource Name of the file system for which the mount target is intended.
- File
System stringId ID of the file system for which the mount target is intended.
- Id string
The provider-assigned unique ID for this managed resource.
- Ip
Address string Address at which the file system may be mounted via the mount target.
- Mount
Target stringDns Name The DNS name for the given subnet/AZ per documented convention.
- Mount
Target stringId - Network
Interface stringId The ID of the network interface that Amazon EFS created when it created the mount target.
- Owner
Id string AWS account ID that owns the resource.
- Security
Groups []string List of VPC security group IDs attached to the mount target.
- Subnet
Id string ID of the mount target’s subnet.
- availability
Zone stringId The unique and consistent identifier of the Availability Zone (AZ) that the mount target resides in.
- availability
Zone stringName The name of the Availability Zone (AZ) that the mount target resides in.
- dns
Name string The DNS name for the EFS file system.
- file
System stringArn Amazon Resource Name of the file system for which the mount target is intended.
- file
System stringId ID of the file system for which the mount target is intended.
- id string
The provider-assigned unique ID for this managed resource.
- ip
Address string Address at which the file system may be mounted via the mount target.
- mount
Target stringDns Name The DNS name for the given subnet/AZ per documented convention.
- mount
Target stringId - network
Interface stringId The ID of the network interface that Amazon EFS created when it created the mount target.
- owner
Id string AWS account ID that owns the resource.
- security
Groups string[] List of VPC security group IDs attached to the mount target.
- subnet
Id string ID of the mount target’s subnet.
- availability_
zone_ strid The unique and consistent identifier of the Availability Zone (AZ) that the mount target resides in.
- availability_
zone_ strname The name of the Availability Zone (AZ) that the mount target resides in.
- dns_
name str The DNS name for the EFS file system.
- file_
system_ strarn Amazon Resource Name of the file system for which the mount target is intended.
- file_
system_ strid ID of the file system for which the mount target is intended.
- id str
The provider-assigned unique ID for this managed resource.
- ip_
address str Address at which the file system may be mounted via the mount target.
- mount_
target_ strdns_ name The DNS name for the given subnet/AZ per documented convention.
- mount_
target_ strid - network_
interface_ strid The ID of the network interface that Amazon EFS created when it created the mount target.
- owner_
id str AWS account ID that owns the resource.
- security_
groups List[str] List of VPC security group IDs attached to the mount target.
- subnet_
id str ID of the mount target’s subnet.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.