AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi
aws.efs.getMountTarget
Explore with Pulumi AI
Provides information about an Elastic File System Mount Target (EFS).
Example Usage
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,
});
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)
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/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
}
_, err := efs.LookupMountTarget(ctx, &efs.LookupMountTargetArgs{
MountTargetId: pulumi.StringRef(mountTargetId),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var mountTargetId = config.Get("mountTargetId") ?? "";
var byId = Aws.Efs.GetMountTarget.Invoke(new()
{
MountTargetId = mountTargetId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.efs.EfsFunctions;
import com.pulumi.aws.efs.inputs.GetMountTargetArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var mountTargetId = config.get("mountTargetId").orElse("");
final var byId = EfsFunctions.getMountTarget(GetMountTargetArgs.builder()
.mountTargetId(mountTargetId)
.build());
}
}
configuration:
mountTargetId:
type: string
default:
variables:
byId:
fn::invoke:
Function: aws:efs:getMountTarget
Arguments:
mountTargetId: ${mountTargetId}
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(access_point_id: Optional[str] = None,
file_system_id: Optional[str] = None,
mount_target_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMountTargetResult
def get_mount_target_output(access_point_id: Optional[pulumi.Input[str]] = None,
file_system_id: Optional[pulumi.Input[str]] = None,
mount_target_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:efs/getMountTarget:getMountTarget
arguments:
# arguments dictionary
The following arguments are supported:
- Access
Point stringId - ID or ARN of the access point whose mount target that you want to find. It must be included if a
file_system_id
andmount_target_id
are not included. - File
System stringId - ID or ARN of the file system whose mount target that you want to find. It must be included if an
access_point_id
andmount_target_id
are not included. - Mount
Target stringId - ID or ARN of the mount target that you want to find. It must be included in your request if an
access_point_id
andfile_system_id
are not included.
- Access
Point stringId - ID or ARN of the access point whose mount target that you want to find. It must be included if a
file_system_id
andmount_target_id
are not included. - File
System stringId - ID or ARN of the file system whose mount target that you want to find. It must be included if an
access_point_id
andmount_target_id
are not included. - Mount
Target stringId - ID or ARN of the mount target that you want to find. It must be included in your request if an
access_point_id
andfile_system_id
are not included.
- access
Point StringId - ID or ARN of the access point whose mount target that you want to find. It must be included if a
file_system_id
andmount_target_id
are not included. - file
System StringId - ID or ARN of the file system whose mount target that you want to find. It must be included if an
access_point_id
andmount_target_id
are not included. - mount
Target StringId - ID or ARN of the mount target that you want to find. It must be included in your request if an
access_point_id
andfile_system_id
are not included.
- access
Point stringId - ID or ARN of the access point whose mount target that you want to find. It must be included if a
file_system_id
andmount_target_id
are not included. - file
System stringId - ID or ARN of the file system whose mount target that you want to find. It must be included if an
access_point_id
andmount_target_id
are not included. - mount
Target stringId - ID or ARN of the mount target that you want to find. It must be included in your request if an
access_point_id
andfile_system_id
are not included.
- access_
point_ strid - ID or ARN of the access point whose mount target that you want to find. It must be included if a
file_system_id
andmount_target_id
are not included. - file_
system_ strid - ID or ARN of the file system whose mount target that you want to find. It must be included if an
access_point_id
andmount_target_id
are not included. - mount_
target_ strid - ID or ARN of the mount target that you want to find. It must be included in your request if an
access_point_id
andfile_system_id
are not included.
- access
Point StringId - ID or ARN of the access point whose mount target that you want to find. It must be included if a
file_system_id
andmount_target_id
are not included. - file
System StringId - ID or ARN of the file system whose mount target that you want to find. It must be included if an
access_point_id
andmount_target_id
are not included. - mount
Target StringId - ID or ARN of the mount target that you want to find. It must be included in your request if an
access_point_id
andfile_system_id
are not included.
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 - 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 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.
- Access
Point stringId
- 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 - 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 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.
- Access
Point stringId
- 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 - 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 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.
- access
Point StringId
- 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 - 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 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.
- access
Point stringId
- 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 - 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 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 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_ strid
- 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 - 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 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.
- access
Point StringId
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.