Try AWS Native preview for resources not in the classic version.
aws.efs.AccessPoint
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Provides an Elastic File System (EFS) access point.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = new aws.efs.AccessPoint("test", {fileSystemId: foo.id});
import pulumi
import pulumi_aws as aws
test = aws.efs.AccessPoint("test", file_system_id=foo["id"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/efs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := efs.NewAccessPoint(ctx, "test", &efs.AccessPointArgs{
FileSystemId: pulumi.Any(foo.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 test = new Aws.Efs.AccessPoint("test", new()
{
FileSystemId = foo.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.efs.AccessPoint;
import com.pulumi.aws.efs.AccessPointArgs;
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 test = new AccessPoint("test", AccessPointArgs.builder()
.fileSystemId(foo.id())
.build());
}
}
resources:
test:
type: aws:efs:AccessPoint
properties:
fileSystemId: ${foo.id}
Create AccessPoint Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AccessPoint(name: string, args: AccessPointArgs, opts?: CustomResourceOptions);
@overload
def AccessPoint(resource_name: str,
args: AccessPointArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AccessPoint(resource_name: str,
opts: Optional[ResourceOptions] = None,
file_system_id: Optional[str] = None,
posix_user: Optional[AccessPointPosixUserArgs] = None,
root_directory: Optional[AccessPointRootDirectoryArgs] = None,
tags: Optional[Mapping[str, str]] = None)
func NewAccessPoint(ctx *Context, name string, args AccessPointArgs, opts ...ResourceOption) (*AccessPoint, error)
public AccessPoint(string name, AccessPointArgs args, CustomResourceOptions? opts = null)
public AccessPoint(String name, AccessPointArgs args)
public AccessPoint(String name, AccessPointArgs args, CustomResourceOptions options)
type: aws:efs:AccessPoint
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 AccessPointArgs
- 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 AccessPointArgs
- 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 AccessPointArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccessPointArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AccessPointArgs
- 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 accessPointResource = new Aws.Efs.AccessPoint("accessPointResource", new()
{
FileSystemId = "string",
PosixUser = new Aws.Efs.Inputs.AccessPointPosixUserArgs
{
Gid = 0,
Uid = 0,
SecondaryGids = new[]
{
0,
},
},
RootDirectory = new Aws.Efs.Inputs.AccessPointRootDirectoryArgs
{
CreationInfo = new Aws.Efs.Inputs.AccessPointRootDirectoryCreationInfoArgs
{
OwnerGid = 0,
OwnerUid = 0,
Permissions = "string",
},
Path = "string",
},
Tags =
{
{ "string", "string" },
},
});
example, err := efs.NewAccessPoint(ctx, "accessPointResource", &efs.AccessPointArgs{
FileSystemId: pulumi.String("string"),
PosixUser: &efs.AccessPointPosixUserArgs{
Gid: pulumi.Int(0),
Uid: pulumi.Int(0),
SecondaryGids: pulumi.IntArray{
pulumi.Int(0),
},
},
RootDirectory: &efs.AccessPointRootDirectoryArgs{
CreationInfo: &efs.AccessPointRootDirectoryCreationInfoArgs{
OwnerGid: pulumi.Int(0),
OwnerUid: pulumi.Int(0),
Permissions: pulumi.String("string"),
},
Path: pulumi.String("string"),
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var accessPointResource = new AccessPoint("accessPointResource", AccessPointArgs.builder()
.fileSystemId("string")
.posixUser(AccessPointPosixUserArgs.builder()
.gid(0)
.uid(0)
.secondaryGids(0)
.build())
.rootDirectory(AccessPointRootDirectoryArgs.builder()
.creationInfo(AccessPointRootDirectoryCreationInfoArgs.builder()
.ownerGid(0)
.ownerUid(0)
.permissions("string")
.build())
.path("string")
.build())
.tags(Map.of("string", "string"))
.build());
access_point_resource = aws.efs.AccessPoint("accessPointResource",
file_system_id="string",
posix_user={
"gid": 0,
"uid": 0,
"secondaryGids": [0],
},
root_directory={
"creationInfo": {
"ownerGid": 0,
"ownerUid": 0,
"permissions": "string",
},
"path": "string",
},
tags={
"string": "string",
})
const accessPointResource = new aws.efs.AccessPoint("accessPointResource", {
fileSystemId: "string",
posixUser: {
gid: 0,
uid: 0,
secondaryGids: [0],
},
rootDirectory: {
creationInfo: {
ownerGid: 0,
ownerUid: 0,
permissions: "string",
},
path: "string",
},
tags: {
string: "string",
},
});
type: aws:efs:AccessPoint
properties:
fileSystemId: string
posixUser:
gid: 0
secondaryGids:
- 0
uid: 0
rootDirectory:
creationInfo:
ownerGid: 0
ownerUid: 0
permissions: string
path: string
tags:
string: string
AccessPoint Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The AccessPoint resource accepts the following input properties:
- File
System stringId - ID of the file system for which the access point is intended.
- Posix
User AccessPoint Posix User - Operating system user and group applied to all file system requests made using the access point. Detailed below.
- Root
Directory AccessPoint Root Directory - Directory on the Amazon EFS file system that the access point provides access to. Detailed below.
- Dictionary<string, string>
- Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level
- File
System stringId - ID of the file system for which the access point is intended.
- Posix
User AccessPoint Posix User Args - Operating system user and group applied to all file system requests made using the access point. Detailed below.
- Root
Directory AccessPoint Root Directory Args - Directory on the Amazon EFS file system that the access point provides access to. Detailed below.
- map[string]string
- Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level
- file
System StringId - ID of the file system for which the access point is intended.
- posix
User AccessPoint Posix User - Operating system user and group applied to all file system requests made using the access point. Detailed below.
- root
Directory AccessPoint Root Directory - Directory on the Amazon EFS file system that the access point provides access to. Detailed below.
- Map<String,String>
- Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level
- file
System stringId - ID of the file system for which the access point is intended.
- posix
User AccessPoint Posix User - Operating system user and group applied to all file system requests made using the access point. Detailed below.
- root
Directory AccessPoint Root Directory - Directory on the Amazon EFS file system that the access point provides access to. Detailed below.
- {[key: string]: string}
- Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level
- file_
system_ strid - ID of the file system for which the access point is intended.
- posix_
user AccessPoint Posix User Args - Operating system user and group applied to all file system requests made using the access point. Detailed below.
- root_
directory AccessPoint Root Directory Args - Directory on the Amazon EFS file system that the access point provides access to. Detailed below.
- Mapping[str, str]
- Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level
- file
System StringId - ID of the file system for which the access point is intended.
- posix
User Property Map - Operating system user and group applied to all file system requests made using the access point. Detailed below.
- root
Directory Property Map - Directory on the Amazon EFS file system that the access point provides access to. Detailed below.
- Map<String>
- Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level
Outputs
All input properties are implicitly available as output properties. Additionally, the AccessPoint resource produces the following output properties:
- Arn string
- ARN of the access point.
- File
System stringArn - ARN of the file system.
- Id string
- The provider-assigned unique ID for this managed resource.
- Owner
Id string - Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- ARN of the access point.
- File
System stringArn - ARN of the file system.
- Id string
- The provider-assigned unique ID for this managed resource.
- Owner
Id string - map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- ARN of the access point.
- file
System StringArn - ARN of the file system.
- id String
- The provider-assigned unique ID for this managed resource.
- owner
Id String - Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- ARN of the access point.
- file
System stringArn - ARN of the file system.
- id string
- The provider-assigned unique ID for this managed resource.
- owner
Id string - {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- ARN of the access point.
- file_
system_ strarn - ARN of the file system.
- id str
- The provider-assigned unique ID for this managed resource.
- owner_
id str - Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- ARN of the access point.
- file
System StringArn - ARN of the file system.
- id String
- The provider-assigned unique ID for this managed resource.
- owner
Id String - Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Look up Existing AccessPoint Resource
Get an existing AccessPoint 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?: AccessPointState, opts?: CustomResourceOptions): AccessPoint
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
file_system_arn: Optional[str] = None,
file_system_id: Optional[str] = None,
owner_id: Optional[str] = None,
posix_user: Optional[AccessPointPosixUserArgs] = None,
root_directory: Optional[AccessPointRootDirectoryArgs] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None) -> AccessPoint
func GetAccessPoint(ctx *Context, name string, id IDInput, state *AccessPointState, opts ...ResourceOption) (*AccessPoint, error)
public static AccessPoint Get(string name, Input<string> id, AccessPointState? state, CustomResourceOptions? opts = null)
public static AccessPoint get(String name, Output<String> id, AccessPointState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Arn string
- ARN of the access point.
- File
System stringArn - ARN of the file system.
- File
System stringId - ID of the file system for which the access point is intended.
- Owner
Id string - Posix
User AccessPoint Posix User - Operating system user and group applied to all file system requests made using the access point. Detailed below.
- Root
Directory AccessPoint Root Directory - Directory on the Amazon EFS file system that the access point provides access to. Detailed below.
- Dictionary<string, string>
- Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level - Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- ARN of the access point.
- File
System stringArn - ARN of the file system.
- File
System stringId - ID of the file system for which the access point is intended.
- Owner
Id string - Posix
User AccessPoint Posix User Args - Operating system user and group applied to all file system requests made using the access point. Detailed below.
- Root
Directory AccessPoint Root Directory Args - Directory on the Amazon EFS file system that the access point provides access to. Detailed below.
- map[string]string
- Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level - map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- ARN of the access point.
- file
System StringArn - ARN of the file system.
- file
System StringId - ID of the file system for which the access point is intended.
- owner
Id String - posix
User AccessPoint Posix User - Operating system user and group applied to all file system requests made using the access point. Detailed below.
- root
Directory AccessPoint Root Directory - Directory on the Amazon EFS file system that the access point provides access to. Detailed below.
- Map<String,String>
- Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level - Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- ARN of the access point.
- file
System stringArn - ARN of the file system.
- file
System stringId - ID of the file system for which the access point is intended.
- owner
Id string - posix
User AccessPoint Posix User - Operating system user and group applied to all file system requests made using the access point. Detailed below.
- root
Directory AccessPoint Root Directory - Directory on the Amazon EFS file system that the access point provides access to. Detailed below.
- {[key: string]: string}
- Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level - {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- ARN of the access point.
- file_
system_ strarn - ARN of the file system.
- file_
system_ strid - ID of the file system for which the access point is intended.
- owner_
id str - posix_
user AccessPoint Posix User Args - Operating system user and group applied to all file system requests made using the access point. Detailed below.
- root_
directory AccessPoint Root Directory Args - Directory on the Amazon EFS file system that the access point provides access to. Detailed below.
- Mapping[str, str]
- Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level - Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- ARN of the access point.
- file
System StringArn - ARN of the file system.
- file
System StringId - ID of the file system for which the access point is intended.
- owner
Id String - posix
User Property Map - Operating system user and group applied to all file system requests made using the access point. Detailed below.
- root
Directory Property Map - Directory on the Amazon EFS file system that the access point provides access to. Detailed below.
- Map<String>
- Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level - Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Supporting Types
AccessPointPosixUser, AccessPointPosixUserArgs
- Gid int
- POSIX group ID used for all file system operations using this access point.
- Uid int
- POSIX user ID used for all file system operations using this access point.
- Secondary
Gids List<int> - Secondary POSIX group IDs used for all file system operations using this access point.
- Gid int
- POSIX group ID used for all file system operations using this access point.
- Uid int
- POSIX user ID used for all file system operations using this access point.
- Secondary
Gids []int - Secondary POSIX group IDs used for all file system operations using this access point.
- gid Integer
- POSIX group ID used for all file system operations using this access point.
- uid Integer
- POSIX user ID used for all file system operations using this access point.
- secondary
Gids List<Integer> - Secondary POSIX group IDs used for all file system operations using this access point.
- gid number
- POSIX group ID used for all file system operations using this access point.
- uid number
- POSIX user ID used for all file system operations using this access point.
- secondary
Gids number[] - Secondary POSIX group IDs used for all file system operations using this access point.
- gid int
- POSIX group ID used for all file system operations using this access point.
- uid int
- POSIX user ID used for all file system operations using this access point.
- secondary_
gids Sequence[int] - Secondary POSIX group IDs used for all file system operations using this access point.
- gid Number
- POSIX group ID used for all file system operations using this access point.
- uid Number
- POSIX user ID used for all file system operations using this access point.
- secondary
Gids List<Number> - Secondary POSIX group IDs used for all file system operations using this access point.
AccessPointRootDirectory, AccessPointRootDirectoryArgs
- Creation
Info AccessPoint Root Directory Creation Info - POSIX IDs and permissions to apply to the access point's Root Directory. See Creation Info below.
- Path string
- Path on the EFS file system to expose as the root directory to NFS clients using the access point to access the EFS file system. A path can have up to four subdirectories. If the specified path does not exist, you are required to provide
creation_info
.
- Creation
Info AccessPoint Root Directory Creation Info - POSIX IDs and permissions to apply to the access point's Root Directory. See Creation Info below.
- Path string
- Path on the EFS file system to expose as the root directory to NFS clients using the access point to access the EFS file system. A path can have up to four subdirectories. If the specified path does not exist, you are required to provide
creation_info
.
- creation
Info AccessPoint Root Directory Creation Info - POSIX IDs and permissions to apply to the access point's Root Directory. See Creation Info below.
- path String
- Path on the EFS file system to expose as the root directory to NFS clients using the access point to access the EFS file system. A path can have up to four subdirectories. If the specified path does not exist, you are required to provide
creation_info
.
- creation
Info AccessPoint Root Directory Creation Info - POSIX IDs and permissions to apply to the access point's Root Directory. See Creation Info below.
- path string
- Path on the EFS file system to expose as the root directory to NFS clients using the access point to access the EFS file system. A path can have up to four subdirectories. If the specified path does not exist, you are required to provide
creation_info
.
- creation_
info AccessPoint Root Directory Creation Info - POSIX IDs and permissions to apply to the access point's Root Directory. See Creation Info below.
- path str
- Path on the EFS file system to expose as the root directory to NFS clients using the access point to access the EFS file system. A path can have up to four subdirectories. If the specified path does not exist, you are required to provide
creation_info
.
- creation
Info Property Map - POSIX IDs and permissions to apply to the access point's Root Directory. See Creation Info below.
- path String
- Path on the EFS file system to expose as the root directory to NFS clients using the access point to access the EFS file system. A path can have up to four subdirectories. If the specified path does not exist, you are required to provide
creation_info
.
AccessPointRootDirectoryCreationInfo, AccessPointRootDirectoryCreationInfoArgs
- Owner
Gid int - POSIX group ID to apply to the
root_directory
. - Owner
Uid int - POSIX user ID to apply to the
root_directory
. - Permissions string
- POSIX permissions to apply to the RootDirectory, in the format of an octal number representing the file's mode bits.
- Owner
Gid int - POSIX group ID to apply to the
root_directory
. - Owner
Uid int - POSIX user ID to apply to the
root_directory
. - Permissions string
- POSIX permissions to apply to the RootDirectory, in the format of an octal number representing the file's mode bits.
- owner
Gid Integer - POSIX group ID to apply to the
root_directory
. - owner
Uid Integer - POSIX user ID to apply to the
root_directory
. - permissions String
- POSIX permissions to apply to the RootDirectory, in the format of an octal number representing the file's mode bits.
- owner
Gid number - POSIX group ID to apply to the
root_directory
. - owner
Uid number - POSIX user ID to apply to the
root_directory
. - permissions string
- POSIX permissions to apply to the RootDirectory, in the format of an octal number representing the file's mode bits.
- owner_
gid int - POSIX group ID to apply to the
root_directory
. - owner_
uid int - POSIX user ID to apply to the
root_directory
. - permissions str
- POSIX permissions to apply to the RootDirectory, in the format of an octal number representing the file's mode bits.
- owner
Gid Number - POSIX group ID to apply to the
root_directory
. - owner
Uid Number - POSIX user ID to apply to the
root_directory
. - permissions String
- POSIX permissions to apply to the RootDirectory, in the format of an octal number representing the file's mode bits.
Import
Using pulumi import
, import the EFS access points using the id
. For example:
$ pulumi import aws:efs/accessPoint:AccessPoint test fsap-52a643fb
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.
Try AWS Native preview for resources not in the classic version.