Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

AWS Classic

v4.25.0 published on Friday, Oct 15, 2021 by Pulumi

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/v4/go/aws/efs"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		mountTargetId := ""
		if param := cfg.Get("mountTargetId"); param != "" {
			mountTargetId = param
		}
		opt0 := mountTargetId
		_, err := efs.LookupMountTarget(ctx, &efs.LookupMountTargetArgs{
			MountTargetId: &opt0,
		}, 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 = aws.efs.getMountTarget({
    mountTargetId: mountTargetId,
});

Using getMountTarget

function getMountTarget(args: GetMountTargetArgs, opts?: InvokeOptions): Promise<GetMountTargetResult>
def get_mount_target(access_point_id: Optional[str] = None,
                     file_system_id: Optional[str] = None,
                     mount_target_id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetMountTargetResult
func LookupMountTarget(ctx *Context, args *LookupMountTargetArgs, opts ...InvokeOption) (*LookupMountTargetResult, error)

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

public static class GetMountTarget {
    public static Task<GetMountTargetResult> InvokeAsync(GetMountTargetArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

AccessPointId string
ID or ARN of the access point whose mount target that you want to find. It must be included if a file_system_id and mount_target_id are not included.
FileSystemId string
ID or ARN of the file system whose mount target that you want to find. It must be included if an access_point_id and mount_target_id are not included.
MountTargetId string
ID or ARN of the mount target that you want to find. It must be included in your request if an access_point_id and file_system_id are not included.
AccessPointId string
ID or ARN of the access point whose mount target that you want to find. It must be included if a file_system_id and mount_target_id are not included.
FileSystemId string
ID or ARN of the file system whose mount target that you want to find. It must be included if an access_point_id and mount_target_id are not included.
MountTargetId string
ID or ARN of the mount target that you want to find. It must be included in your request if an access_point_id and file_system_id are not included.
accessPointId string
ID or ARN of the access point whose mount target that you want to find. It must be included if a file_system_id and mount_target_id are not included.
fileSystemId string
ID or ARN of the file system whose mount target that you want to find. It must be included if an access_point_id and mount_target_id are not included.
mountTargetId string
ID or ARN of the mount target that you want to find. It must be included in your request if an access_point_id and file_system_id are not included.
access_point_id str
ID or ARN of the access point whose mount target that you want to find. It must be included if a file_system_id and mount_target_id are not included.
file_system_id str
ID or ARN of the file system whose mount target that you want to find. It must be included if an access_point_id and mount_target_id are not included.
mount_target_id str
ID or ARN of the mount target that you want to find. It must be included in your request if an access_point_id and file_system_id are not included.

getMountTarget Result

The following output properties are available:

AvailabilityZoneId string
The unique and consistent identifier of the Availability Zone (AZ) that the mount target resides in.
AvailabilityZoneName string
The name of the Availability Zone (AZ) that the mount target resides in.
DnsName string
The DNS name for the EFS file system.
FileSystemArn string
Amazon Resource Name of the file system for which the mount target is intended.
FileSystemId string
Id string
The provider-assigned unique ID for this managed resource.
IpAddress string
Address at which the file system may be mounted via the mount target.
MountTargetDnsName string
The DNS name for the given subnet/AZ per documented convention.
MountTargetId string
NetworkInterfaceId string
The ID of the network interface that Amazon EFS created when it created the mount target.
OwnerId string
AWS account ID that owns the resource.
SecurityGroups List<string>
List of VPC security group IDs attached to the mount target.
SubnetId string
ID of the mount target’s subnet.
AccessPointId string
AvailabilityZoneId string
The unique and consistent identifier of the Availability Zone (AZ) that the mount target resides in.
AvailabilityZoneName string
The name of the Availability Zone (AZ) that the mount target resides in.
DnsName string
The DNS name for the EFS file system.
FileSystemArn string
Amazon Resource Name of the file system for which the mount target is intended.
FileSystemId string
Id string
The provider-assigned unique ID for this managed resource.
IpAddress string
Address at which the file system may be mounted via the mount target.
MountTargetDnsName string
The DNS name for the given subnet/AZ per documented convention.
MountTargetId string
NetworkInterfaceId string
The ID of the network interface that Amazon EFS created when it created the mount target.
OwnerId string
AWS account ID that owns the resource.
SecurityGroups []string
List of VPC security group IDs attached to the mount target.
SubnetId string
ID of the mount target’s subnet.
AccessPointId string
availabilityZoneId string
The unique and consistent identifier of the Availability Zone (AZ) that the mount target resides in.
availabilityZoneName string
The name of the Availability Zone (AZ) that the mount target resides in.
dnsName string
The DNS name for the EFS file system.
fileSystemArn string
Amazon Resource Name of the file system for which the mount target is intended.
fileSystemId string
id string
The provider-assigned unique ID for this managed resource.
ipAddress string
Address at which the file system may be mounted via the mount target.
mountTargetDnsName string
The DNS name for the given subnet/AZ per documented convention.
mountTargetId string
networkInterfaceId string
The ID of the network interface that Amazon EFS created when it created the mount target.
ownerId string
AWS account ID that owns the resource.
securityGroups string[]
List of VPC security group IDs attached to the mount target.
subnetId string
ID of the mount target’s subnet.
accessPointId string
availability_zone_id str
The unique and consistent identifier of the Availability Zone (AZ) that the mount target resides in.
availability_zone_name str
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_arn str
Amazon Resource Name of the file system for which the mount target is intended.
file_system_id str
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_dns_name str
The DNS name for the given subnet/AZ per documented convention.
mount_target_id str
network_interface_id str
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 Sequence[str]
List of VPC security group IDs attached to the mount target.
subnet_id str
ID of the mount target’s subnet.
access_point_id str

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.