1. Packages
  2. AWS
  3. API Docs
  4. s3
  5. FilesMountTarget
Viewing docs for AWS v7.26.0
published on Thursday, Apr 16, 2026 by Pulumi
aws logo
Viewing docs for AWS v7.26.0
published on Thursday, Apr 16, 2026 by Pulumi

    Manages an S3 Files Mount Target.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.s3.FilesMountTarget("example", {
        fileSystemId: exampleAwsS3filesFileSystem.id,
        subnetId: exampleAwsSubnet.id,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.s3.FilesMountTarget("example",
        file_system_id=example_aws_s3files_file_system["id"],
        subnet_id=example_aws_subnet["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/s3"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := s3.NewFilesMountTarget(ctx, "example", &s3.FilesMountTargetArgs{
    			FileSystemId: pulumi.Any(exampleAwsS3filesFileSystem.Id),
    			SubnetId:     pulumi.Any(exampleAwsSubnet.Id),
    		})
    		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 example = new Aws.S3.FilesMountTarget("example", new()
        {
            FileSystemId = exampleAwsS3filesFileSystem.Id,
            SubnetId = exampleAwsSubnet.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.s3.FilesMountTarget;
    import com.pulumi.aws.s3.FilesMountTargetArgs;
    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) {
            var example = new FilesMountTarget("example", FilesMountTargetArgs.builder()
                .fileSystemId(exampleAwsS3filesFileSystem.id())
                .subnetId(exampleAwsSubnet.id())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:s3:FilesMountTarget
        properties:
          fileSystemId: ${exampleAwsS3filesFileSystem.id}
          subnetId: ${exampleAwsSubnet.id}
    

    Create FilesMountTarget Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new FilesMountTarget(name: string, args: FilesMountTargetArgs, opts?: CustomResourceOptions);
    @overload
    def FilesMountTarget(resource_name: str,
                         args: FilesMountTargetArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def FilesMountTarget(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         file_system_id: Optional[str] = None,
                         subnet_id: Optional[str] = None,
                         ip_address_type: Optional[str] = None,
                         ipv4_address: Optional[str] = None,
                         ipv6_address: Optional[str] = None,
                         region: Optional[str] = None,
                         security_groups: Optional[Sequence[str]] = None,
                         timeouts: Optional[FilesMountTargetTimeoutsArgs] = None)
    func NewFilesMountTarget(ctx *Context, name string, args FilesMountTargetArgs, opts ...ResourceOption) (*FilesMountTarget, error)
    public FilesMountTarget(string name, FilesMountTargetArgs args, CustomResourceOptions? opts = null)
    public FilesMountTarget(String name, FilesMountTargetArgs args)
    public FilesMountTarget(String name, FilesMountTargetArgs args, CustomResourceOptions options)
    
    type: aws:s3:FilesMountTarget
    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 FilesMountTargetArgs
    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 FilesMountTargetArgs
    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 FilesMountTargetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FilesMountTargetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FilesMountTargetArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var filesMountTargetResource = new Aws.S3.FilesMountTarget("filesMountTargetResource", new()
    {
        FileSystemId = "string",
        SubnetId = "string",
        IpAddressType = "string",
        Ipv4Address = "string",
        Ipv6Address = "string",
        Region = "string",
        SecurityGroups = new[]
        {
            "string",
        },
        Timeouts = new Aws.S3.Inputs.FilesMountTargetTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := s3.NewFilesMountTarget(ctx, "filesMountTargetResource", &s3.FilesMountTargetArgs{
    	FileSystemId:  pulumi.String("string"),
    	SubnetId:      pulumi.String("string"),
    	IpAddressType: pulumi.String("string"),
    	Ipv4Address:   pulumi.String("string"),
    	Ipv6Address:   pulumi.String("string"),
    	Region:        pulumi.String("string"),
    	SecurityGroups: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Timeouts: &s3.FilesMountTargetTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var filesMountTargetResource = new FilesMountTarget("filesMountTargetResource", FilesMountTargetArgs.builder()
        .fileSystemId("string")
        .subnetId("string")
        .ipAddressType("string")
        .ipv4Address("string")
        .ipv6Address("string")
        .region("string")
        .securityGroups("string")
        .timeouts(FilesMountTargetTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    files_mount_target_resource = aws.s3.FilesMountTarget("filesMountTargetResource",
        file_system_id="string",
        subnet_id="string",
        ip_address_type="string",
        ipv4_address="string",
        ipv6_address="string",
        region="string",
        security_groups=["string"],
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const filesMountTargetResource = new aws.s3.FilesMountTarget("filesMountTargetResource", {
        fileSystemId: "string",
        subnetId: "string",
        ipAddressType: "string",
        ipv4Address: "string",
        ipv6Address: "string",
        region: "string",
        securityGroups: ["string"],
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: aws:s3:FilesMountTarget
    properties:
        fileSystemId: string
        ipAddressType: string
        ipv4Address: string
        ipv6Address: string
        region: string
        securityGroups:
            - string
        subnetId: string
        timeouts:
            create: string
            delete: string
            update: string
    

    FilesMountTarget 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 FilesMountTarget resource accepts the following input properties:

    FileSystemId string
    File system ID. Changing this value forces replacement.
    SubnetId string

    Subnet ID. Changing this value forces replacement.

    The following arguments are optional:

    IpAddressType string
    IP address type.
    Ipv4Address string
    IPv4 address.
    Ipv6Address string
    IPv6 address.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    SecurityGroups List<string>
    Security group IDs.
    Timeouts FilesMountTargetTimeouts
    FileSystemId string
    File system ID. Changing this value forces replacement.
    SubnetId string

    Subnet ID. Changing this value forces replacement.

    The following arguments are optional:

    IpAddressType string
    IP address type.
    Ipv4Address string
    IPv4 address.
    Ipv6Address string
    IPv6 address.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    SecurityGroups []string
    Security group IDs.
    Timeouts FilesMountTargetTimeoutsArgs
    fileSystemId String
    File system ID. Changing this value forces replacement.
    subnetId String

    Subnet ID. Changing this value forces replacement.

    The following arguments are optional:

    ipAddressType String
    IP address type.
    ipv4Address String
    IPv4 address.
    ipv6Address String
    IPv6 address.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    securityGroups List<String>
    Security group IDs.
    timeouts FilesMountTargetTimeouts
    fileSystemId string
    File system ID. Changing this value forces replacement.
    subnetId string

    Subnet ID. Changing this value forces replacement.

    The following arguments are optional:

    ipAddressType string
    IP address type.
    ipv4Address string
    IPv4 address.
    ipv6Address string
    IPv6 address.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    securityGroups string[]
    Security group IDs.
    timeouts FilesMountTargetTimeouts
    file_system_id str
    File system ID. Changing this value forces replacement.
    subnet_id str

    Subnet ID. Changing this value forces replacement.

    The following arguments are optional:

    ip_address_type str
    IP address type.
    ipv4_address str
    IPv4 address.
    ipv6_address str
    IPv6 address.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    security_groups Sequence[str]
    Security group IDs.
    timeouts FilesMountTargetTimeoutsArgs
    fileSystemId String
    File system ID. Changing this value forces replacement.
    subnetId String

    Subnet ID. Changing this value forces replacement.

    The following arguments are optional:

    ipAddressType String
    IP address type.
    ipv4Address String
    IPv4 address.
    ipv6Address String
    IPv6 address.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    securityGroups List<String>
    Security group IDs.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the FilesMountTarget resource produces the following output properties:

    AvailabilityZoneId string
    Availability Zone ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    NetworkInterfaceId string
    Network interface ID.
    OwnerId string
    AWS account ID of the owner.
    Status string
    Mount target status.
    StatusMessage string
    Status message.
    VpcId string
    VPC ID.
    AvailabilityZoneId string
    Availability Zone ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    NetworkInterfaceId string
    Network interface ID.
    OwnerId string
    AWS account ID of the owner.
    Status string
    Mount target status.
    StatusMessage string
    Status message.
    VpcId string
    VPC ID.
    availabilityZoneId String
    Availability Zone ID.
    id String
    The provider-assigned unique ID for this managed resource.
    networkInterfaceId String
    Network interface ID.
    ownerId String
    AWS account ID of the owner.
    status String
    Mount target status.
    statusMessage String
    Status message.
    vpcId String
    VPC ID.
    availabilityZoneId string
    Availability Zone ID.
    id string
    The provider-assigned unique ID for this managed resource.
    networkInterfaceId string
    Network interface ID.
    ownerId string
    AWS account ID of the owner.
    status string
    Mount target status.
    statusMessage string
    Status message.
    vpcId string
    VPC ID.
    availability_zone_id str
    Availability Zone ID.
    id str
    The provider-assigned unique ID for this managed resource.
    network_interface_id str
    Network interface ID.
    owner_id str
    AWS account ID of the owner.
    status str
    Mount target status.
    status_message str
    Status message.
    vpc_id str
    VPC ID.
    availabilityZoneId String
    Availability Zone ID.
    id String
    The provider-assigned unique ID for this managed resource.
    networkInterfaceId String
    Network interface ID.
    ownerId String
    AWS account ID of the owner.
    status String
    Mount target status.
    statusMessage String
    Status message.
    vpcId String
    VPC ID.

    Look up Existing FilesMountTarget Resource

    Get an existing FilesMountTarget resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: FilesMountTargetState, opts?: CustomResourceOptions): FilesMountTarget
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            availability_zone_id: Optional[str] = None,
            file_system_id: Optional[str] = None,
            ip_address_type: Optional[str] = None,
            ipv4_address: Optional[str] = None,
            ipv6_address: Optional[str] = None,
            network_interface_id: Optional[str] = None,
            owner_id: Optional[str] = None,
            region: Optional[str] = None,
            security_groups: Optional[Sequence[str]] = None,
            status: Optional[str] = None,
            status_message: Optional[str] = None,
            subnet_id: Optional[str] = None,
            timeouts: Optional[FilesMountTargetTimeoutsArgs] = None,
            vpc_id: Optional[str] = None) -> FilesMountTarget
    func GetFilesMountTarget(ctx *Context, name string, id IDInput, state *FilesMountTargetState, opts ...ResourceOption) (*FilesMountTarget, error)
    public static FilesMountTarget Get(string name, Input<string> id, FilesMountTargetState? state, CustomResourceOptions? opts = null)
    public static FilesMountTarget get(String name, Output<String> id, FilesMountTargetState state, CustomResourceOptions options)
    resources:  _:    type: aws:s3:FilesMountTarget    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AvailabilityZoneId string
    Availability Zone ID.
    FileSystemId string
    File system ID. Changing this value forces replacement.
    IpAddressType string
    IP address type.
    Ipv4Address string
    IPv4 address.
    Ipv6Address string
    IPv6 address.
    NetworkInterfaceId string
    Network interface ID.
    OwnerId string
    AWS account ID of the owner.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    SecurityGroups List<string>
    Security group IDs.
    Status string
    Mount target status.
    StatusMessage string
    Status message.
    SubnetId string

    Subnet ID. Changing this value forces replacement.

    The following arguments are optional:

    Timeouts FilesMountTargetTimeouts
    VpcId string
    VPC ID.
    AvailabilityZoneId string
    Availability Zone ID.
    FileSystemId string
    File system ID. Changing this value forces replacement.
    IpAddressType string
    IP address type.
    Ipv4Address string
    IPv4 address.
    Ipv6Address string
    IPv6 address.
    NetworkInterfaceId string
    Network interface ID.
    OwnerId string
    AWS account ID of the owner.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    SecurityGroups []string
    Security group IDs.
    Status string
    Mount target status.
    StatusMessage string
    Status message.
    SubnetId string

    Subnet ID. Changing this value forces replacement.

    The following arguments are optional:

    Timeouts FilesMountTargetTimeoutsArgs
    VpcId string
    VPC ID.
    availabilityZoneId String
    Availability Zone ID.
    fileSystemId String
    File system ID. Changing this value forces replacement.
    ipAddressType String
    IP address type.
    ipv4Address String
    IPv4 address.
    ipv6Address String
    IPv6 address.
    networkInterfaceId String
    Network interface ID.
    ownerId String
    AWS account ID of the owner.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    securityGroups List<String>
    Security group IDs.
    status String
    Mount target status.
    statusMessage String
    Status message.
    subnetId String

    Subnet ID. Changing this value forces replacement.

    The following arguments are optional:

    timeouts FilesMountTargetTimeouts
    vpcId String
    VPC ID.
    availabilityZoneId string
    Availability Zone ID.
    fileSystemId string
    File system ID. Changing this value forces replacement.
    ipAddressType string
    IP address type.
    ipv4Address string
    IPv4 address.
    ipv6Address string
    IPv6 address.
    networkInterfaceId string
    Network interface ID.
    ownerId string
    AWS account ID of the owner.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    securityGroups string[]
    Security group IDs.
    status string
    Mount target status.
    statusMessage string
    Status message.
    subnetId string

    Subnet ID. Changing this value forces replacement.

    The following arguments are optional:

    timeouts FilesMountTargetTimeouts
    vpcId string
    VPC ID.
    availability_zone_id str
    Availability Zone ID.
    file_system_id str
    File system ID. Changing this value forces replacement.
    ip_address_type str
    IP address type.
    ipv4_address str
    IPv4 address.
    ipv6_address str
    IPv6 address.
    network_interface_id str
    Network interface ID.
    owner_id str
    AWS account ID of the owner.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    security_groups Sequence[str]
    Security group IDs.
    status str
    Mount target status.
    status_message str
    Status message.
    subnet_id str

    Subnet ID. Changing this value forces replacement.

    The following arguments are optional:

    timeouts FilesMountTargetTimeoutsArgs
    vpc_id str
    VPC ID.
    availabilityZoneId String
    Availability Zone ID.
    fileSystemId String
    File system ID. Changing this value forces replacement.
    ipAddressType String
    IP address type.
    ipv4Address String
    IPv4 address.
    ipv6Address String
    IPv6 address.
    networkInterfaceId String
    Network interface ID.
    ownerId String
    AWS account ID of the owner.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    securityGroups List<String>
    Security group IDs.
    status String
    Mount target status.
    statusMessage String
    Status message.
    subnetId String

    Subnet ID. Changing this value forces replacement.

    The following arguments are optional:

    timeouts Property Map
    vpcId String
    VPC ID.

    Supporting Types

    FilesMountTargetTimeouts, FilesMountTargetTimeoutsArgs

    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).

    Import

    Identity Schema

    Required

    • id - Identifier of the mount target.

    Optional

    • accountId (String) AWS Account where this resource is managed.
    • region (String) Region where this resource is managed.

    Using pulumi import, import S3 Files Mount Target using id. For example:

    $ pulumi import aws:s3/filesMountTarget:FilesMountTarget example fsmt-1234567890abcdef0
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    Viewing docs for AWS v7.26.0
    published on Thursday, Apr 16, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.