AccessPoint
Provides an Elastic File System (EFS) access point.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var test = new Aws.Efs.AccessPoint("test", new Aws.Efs.AccessPointArgs
{
FileSystemId = aws_efs_file_system.Foo.Id,
});
}
}
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.NewAccessPoint(ctx, "test", &efs.AccessPointArgs{
FileSystemId: pulumi.String(aws_efs_file_system.Foo.Id),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
test = aws.efs.AccessPoint("test", file_system_id=aws_efs_file_system["foo"]["id"])import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = new aws.efs.AccessPoint("test", {
fileSystemId: aws_efs_file_system_foo.id,
});Create a AccessPoint Resource
new AccessPoint(name: string, args: AccessPointArgs, opts?: CustomResourceOptions);def AccessPoint(resource_name, opts=None, file_system_id=None, posix_user=None, root_directory=None, tags=None, __props__=None);func NewAccessPoint(ctx *Context, name string, args AccessPointArgs, opts ...ResourceOption) (*AccessPoint, error)public AccessPoint(string name, AccessPointArgs args, CustomResourceOptions? opts = null)- 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.
- opts ResourceOptions
- A bag of options that control this 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.
AccessPoint Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The AccessPoint resource accepts the following input properties:
- File
System stringId The ID of the file system for which the access point is intended.
- Posix
User AccessPoint Posix User Args The operating system user and group applied to all file system requests made using the access point. See Posix User below.
- Root
Directory AccessPoint Root Directory Args Specifies the directory on the Amazon EFS file system that the access point provides access to. See Root Directory below.
- Dictionary<string, string>
Key-value mapping of resource tags.
- File
System stringId The ID of the file system for which the access point is intended.
- Posix
User AccessPoint Posix User The operating system user and group applied to all file system requests made using the access point. See Posix User below.
- Root
Directory AccessPoint Root Directory Specifies the directory on the Amazon EFS file system that the access point provides access to. See Root Directory below.
- map[string]string
Key-value mapping of resource tags.
- file
System stringId The ID of the file system for which the access point is intended.
- posix
User AccessPoint Posix User The operating system user and group applied to all file system requests made using the access point. See Posix User below.
- root
Directory AccessPoint Root Directory Specifies the directory on the Amazon EFS file system that the access point provides access to. See Root Directory below.
- {[key: string]: string}
Key-value mapping of resource tags.
- file_
system_ strid The ID of the file system for which the access point is intended.
- posix_
user Dict[AccessPoint Posix User] The operating system user and group applied to all file system requests made using the access point. See Posix User below.
- root_
directory Dict[AccessPoint Root Directory] Specifies the directory on the Amazon EFS file system that the access point provides access to. See Root Directory below.
- Dict[str, str]
Key-value mapping of resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the AccessPoint resource produces the following output properties:
Look up an 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): AccessPointstatic get(resource_name, id, opts=None, arn=None, file_system_arn=None, file_system_id=None, owner_id=None, posix_user=None, root_directory=None, tags=None, __props__=None);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)- 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.
The following state arguments are supported:
- Arn string
Amazon Resource Name of the access point.
- File
System stringArn Amazon Resource Name of the file system.
- File
System stringId The ID of the file system for which the access point is intended.
- Owner
Id string - Posix
User AccessPoint Posix User Args The operating system user and group applied to all file system requests made using the access point. See Posix User below.
- Root
Directory AccessPoint Root Directory Args Specifies the directory on the Amazon EFS file system that the access point provides access to. See Root Directory below.
- Dictionary<string, string>
Key-value mapping of resource tags.
- Arn string
Amazon Resource Name of the access point.
- File
System stringArn Amazon Resource Name of the file system.
- File
System stringId The ID of the file system for which the access point is intended.
- Owner
Id string - Posix
User AccessPoint Posix User The operating system user and group applied to all file system requests made using the access point. See Posix User below.
- Root
Directory AccessPoint Root Directory Specifies the directory on the Amazon EFS file system that the access point provides access to. See Root Directory below.
- map[string]string
Key-value mapping of resource tags.
- arn string
Amazon Resource Name of the access point.
- file
System stringArn Amazon Resource Name of the file system.
- file
System stringId The ID of the file system for which the access point is intended.
- owner
Id string - posix
User AccessPoint Posix User The operating system user and group applied to all file system requests made using the access point. See Posix User below.
- root
Directory AccessPoint Root Directory Specifies the directory on the Amazon EFS file system that the access point provides access to. See Root Directory below.
- {[key: string]: string}
Key-value mapping of resource tags.
- arn str
Amazon Resource Name of the access point.
- file_
system_ strarn Amazon Resource Name of the file system.
- file_
system_ strid The ID of the file system for which the access point is intended.
- owner_
id str - posix_
user Dict[AccessPoint Posix User] The operating system user and group applied to all file system requests made using the access point. See Posix User below.
- root_
directory Dict[AccessPoint Root Directory] Specifies the directory on the Amazon EFS file system that the access point provides access to. See Root Directory below.
- Dict[str, str]
Key-value mapping of resource tags.
Supporting Types
AccessPointPosixUser
- gid float
The POSIX group ID used for all file system operations using this access point.
- uid float
The 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.
AccessPointRootDirectory
- Creation
Info AccessPoint Root Directory Creation Info Args Specifies the POSIX IDs and permissions to apply to the access point’s Root Directory. See Creation Info below.
- Path string
Specifies the 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 Specifies the POSIX IDs and permissions to apply to the access point’s Root Directory. See Creation Info below.
- Path string
Specifies the 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 Specifies the POSIX IDs and permissions to apply to the access point’s Root Directory. See Creation Info below.
- path string
Specifies the 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 Dict[AccessPoint Root Directory Creation Info] Specifies the POSIX IDs and permissions to apply to the access point’s Root Directory. See Creation Info below.
- path str
Specifies the 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
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.