NfsFileShare
Manages an AWS Storage Gateway NFS File Share.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.StorageGateway.NfsFileShare("example", new Aws.StorageGateway.NfsFileShareArgs
{
ClientLists =
{
"0.0.0.0/0",
},
GatewayArn = aws_storagegateway_gateway.Example.Arn,
LocationArn = aws_s3_bucket.Example.Arn,
RoleArn = aws_iam_role.Example.Arn,
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/storagegateway"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := storagegateway.NewNfsFileShare(ctx, "example", &storagegateway.NfsFileShareArgs{
ClientLists: pulumi.StringArray{
pulumi.String("0.0.0.0/0"),
},
GatewayArn: pulumi.String(aws_storagegateway_gateway.Example.Arn),
LocationArn: pulumi.String(aws_s3_bucket.Example.Arn),
RoleArn: pulumi.String(aws_iam_role.Example.Arn),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
example = aws.storagegateway.NfsFileShare("example",
client_lists=["0.0.0.0/0"],
gateway_arn=aws_storagegateway_gateway["example"]["arn"],
location_arn=aws_s3_bucket["example"]["arn"],
role_arn=aws_iam_role["example"]["arn"])import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.storagegateway.NfsFileShare("example", {
clientLists: ["0.0.0.0/0"],
gatewayArn: aws_storagegateway_gateway_example.arn,
locationArn: aws_s3_bucket_example.arn,
roleArn: aws_iam_role_example.arn,
});Create a NfsFileShare Resource
new NfsFileShare(name: string, args: NfsFileShareArgs, opts?: CustomResourceOptions);def NfsFileShare(resource_name, opts=None, client_lists=None, default_storage_class=None, gateway_arn=None, guess_mime_type_enabled=None, kms_encrypted=None, kms_key_arn=None, location_arn=None, nfs_file_share_defaults=None, object_acl=None, read_only=None, requester_pays=None, role_arn=None, squash=None, tags=None, __props__=None);func NewNfsFileShare(ctx *Context, name string, args NfsFileShareArgs, opts ...ResourceOption) (*NfsFileShare, error)public NfsFileShare(string name, NfsFileShareArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args NfsFileShareArgs
- 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 NfsFileShareArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NfsFileShareArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
NfsFileShare Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The NfsFileShare resource accepts the following input properties:
- Client
Lists List<string> The list of clients that are allowed to access the file gateway. The list must contain either valid IP addresses or valid CIDR blocks. Set to
["0.0.0.0/0"]to not limit access. Minimum 1 item. Maximum 100 items.- Gateway
Arn string Amazon Resource Name (ARN) of the file gateway.
- Location
Arn string The ARN of the backed storage used for storing file data.
- Role
Arn string The ARN of the AWS Identity and Access Management (IAM) role that a file gateway assumes when it accesses the underlying storage.
- Default
Storage stringClass The default storage class for objects put into an Amazon S3 bucket by the file gateway. Defaults to
S3_STANDARD. Valid values:S3_STANDARD,S3_STANDARD_IA,S3_ONEZONE_IA.- Guess
Mime boolType Enabled Boolean value that enables guessing of the MIME type for uploaded objects based on file extensions. Defaults to
true.- Kms
Encrypted bool Boolean value if
trueto use Amazon S3 server side encryption with your own AWS KMS key, orfalseto use a key managed by Amazon S3. Defaults tofalse.- Kms
Key stringArn Amazon Resource Name (ARN) for KMS key used for Amazon S3 server side encryption. This value can only be set when
kms_encryptedis true.-
Nfs
File Share Nfs File Share Defaults Args Nested argument with file share default values. More information below.
- Object
Acl string Access Control List permission for S3 bucket objects. Defaults to
private.- Read
Only bool Boolean to indicate write status of file share. File share does not accept writes if
true. Defaults tofalse.- Requester
Pays bool Boolean who pays the cost of the request and the data download from the Amazon S3 bucket. Set this value to
trueif you want the requester to pay instead of the bucket owner. Defaults tofalse.- Squash string
Maps a user to anonymous user. Defaults to
RootSquash. Valid values:RootSquash(only root is mapped to anonymous user),NoSquash(no one is mapped to anonymous user),AllSquash(everyone is mapped to anonymous user)- Dictionary<string, string>
Key-value map of resource tags
- Client
Lists []string The list of clients that are allowed to access the file gateway. The list must contain either valid IP addresses or valid CIDR blocks. Set to
["0.0.0.0/0"]to not limit access. Minimum 1 item. Maximum 100 items.- Gateway
Arn string Amazon Resource Name (ARN) of the file gateway.
- Location
Arn string The ARN of the backed storage used for storing file data.
- Role
Arn string The ARN of the AWS Identity and Access Management (IAM) role that a file gateway assumes when it accesses the underlying storage.
- Default
Storage stringClass The default storage class for objects put into an Amazon S3 bucket by the file gateway. Defaults to
S3_STANDARD. Valid values:S3_STANDARD,S3_STANDARD_IA,S3_ONEZONE_IA.- Guess
Mime boolType Enabled Boolean value that enables guessing of the MIME type for uploaded objects based on file extensions. Defaults to
true.- Kms
Encrypted bool Boolean value if
trueto use Amazon S3 server side encryption with your own AWS KMS key, orfalseto use a key managed by Amazon S3. Defaults tofalse.- Kms
Key stringArn Amazon Resource Name (ARN) for KMS key used for Amazon S3 server side encryption. This value can only be set when
kms_encryptedis true.-
Nfs
File Share Nfs File Share Defaults Nested argument with file share default values. More information below.
- Object
Acl string Access Control List permission for S3 bucket objects. Defaults to
private.- Read
Only bool Boolean to indicate write status of file share. File share does not accept writes if
true. Defaults tofalse.- Requester
Pays bool Boolean who pays the cost of the request and the data download from the Amazon S3 bucket. Set this value to
trueif you want the requester to pay instead of the bucket owner. Defaults tofalse.- Squash string
Maps a user to anonymous user. Defaults to
RootSquash. Valid values:RootSquash(only root is mapped to anonymous user),NoSquash(no one is mapped to anonymous user),AllSquash(everyone is mapped to anonymous user)- map[string]string
Key-value map of resource tags
- client
Lists string[] The list of clients that are allowed to access the file gateway. The list must contain either valid IP addresses or valid CIDR blocks. Set to
["0.0.0.0/0"]to not limit access. Minimum 1 item. Maximum 100 items.- gateway
Arn string Amazon Resource Name (ARN) of the file gateway.
- location
Arn string The ARN of the backed storage used for storing file data.
- role
Arn string The ARN of the AWS Identity and Access Management (IAM) role that a file gateway assumes when it accesses the underlying storage.
- default
Storage stringClass The default storage class for objects put into an Amazon S3 bucket by the file gateway. Defaults to
S3_STANDARD. Valid values:S3_STANDARD,S3_STANDARD_IA,S3_ONEZONE_IA.- guess
Mime booleanType Enabled Boolean value that enables guessing of the MIME type for uploaded objects based on file extensions. Defaults to
true.- kms
Encrypted boolean Boolean value if
trueto use Amazon S3 server side encryption with your own AWS KMS key, orfalseto use a key managed by Amazon S3. Defaults tofalse.- kms
Key stringArn Amazon Resource Name (ARN) for KMS key used for Amazon S3 server side encryption. This value can only be set when
kms_encryptedis true.-
Nfs
File Share Nfs File Share Defaults Nested argument with file share default values. More information below.
- object
Acl string Access Control List permission for S3 bucket objects. Defaults to
private.- read
Only boolean Boolean to indicate write status of file share. File share does not accept writes if
true. Defaults tofalse.- requester
Pays boolean Boolean who pays the cost of the request and the data download from the Amazon S3 bucket. Set this value to
trueif you want the requester to pay instead of the bucket owner. Defaults tofalse.- squash string
Maps a user to anonymous user. Defaults to
RootSquash. Valid values:RootSquash(only root is mapped to anonymous user),NoSquash(no one is mapped to anonymous user),AllSquash(everyone is mapped to anonymous user)- {[key: string]: string}
Key-value map of resource tags
- client_
lists List[str] The list of clients that are allowed to access the file gateway. The list must contain either valid IP addresses or valid CIDR blocks. Set to
["0.0.0.0/0"]to not limit access. Minimum 1 item. Maximum 100 items.- gateway_
arn str Amazon Resource Name (ARN) of the file gateway.
- location_
arn str The ARN of the backed storage used for storing file data.
- role_
arn str The ARN of the AWS Identity and Access Management (IAM) role that a file gateway assumes when it accesses the underlying storage.
- default_
storage_ strclass The default storage class for objects put into an Amazon S3 bucket by the file gateway. Defaults to
S3_STANDARD. Valid values:S3_STANDARD,S3_STANDARD_IA,S3_ONEZONE_IA.- guess_
mime_ booltype_ enabled Boolean value that enables guessing of the MIME type for uploaded objects based on file extensions. Defaults to
true.- kms_
encrypted bool Boolean value if
trueto use Amazon S3 server side encryption with your own AWS KMS key, orfalseto use a key managed by Amazon S3. Defaults tofalse.- kms_
key_ strarn Amazon Resource Name (ARN) for KMS key used for Amazon S3 server side encryption. This value can only be set when
kms_encryptedis true.-
Dict[Nfs
File Share Nfs File Share Defaults] Nested argument with file share default values. More information below.
- object_
acl str Access Control List permission for S3 bucket objects. Defaults to
private.- read_
only bool Boolean to indicate write status of file share. File share does not accept writes if
true. Defaults tofalse.- requester_
pays bool Boolean who pays the cost of the request and the data download from the Amazon S3 bucket. Set this value to
trueif you want the requester to pay instead of the bucket owner. Defaults tofalse.- squash str
Maps a user to anonymous user. Defaults to
RootSquash. Valid values:RootSquash(only root is mapped to anonymous user),NoSquash(no one is mapped to anonymous user),AllSquash(everyone is mapped to anonymous user)- Dict[str, str]
Key-value map of resource tags
Outputs
All input properties are implicitly available as output properties. Additionally, the NfsFileShare resource produces the following output properties:
Look up an Existing NfsFileShare Resource
Get an existing NfsFileShare 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?: NfsFileShareState, opts?: CustomResourceOptions): NfsFileSharestatic get(resource_name, id, opts=None, arn=None, client_lists=None, default_storage_class=None, fileshare_id=None, gateway_arn=None, guess_mime_type_enabled=None, kms_encrypted=None, kms_key_arn=None, location_arn=None, nfs_file_share_defaults=None, object_acl=None, path=None, read_only=None, requester_pays=None, role_arn=None, squash=None, tags=None, __props__=None);func GetNfsFileShare(ctx *Context, name string, id IDInput, state *NfsFileShareState, opts ...ResourceOption) (*NfsFileShare, error)public static NfsFileShare Get(string name, Input<string> id, NfsFileShareState? 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 (ARN) of the NFS File Share.
- Client
Lists List<string> The list of clients that are allowed to access the file gateway. The list must contain either valid IP addresses or valid CIDR blocks. Set to
["0.0.0.0/0"]to not limit access. Minimum 1 item. Maximum 100 items.- Default
Storage stringClass The default storage class for objects put into an Amazon S3 bucket by the file gateway. Defaults to
S3_STANDARD. Valid values:S3_STANDARD,S3_STANDARD_IA,S3_ONEZONE_IA.- string
ID of the NFS File Share.
- Gateway
Arn string Amazon Resource Name (ARN) of the file gateway.
- Guess
Mime boolType Enabled Boolean value that enables guessing of the MIME type for uploaded objects based on file extensions. Defaults to
true.- Kms
Encrypted bool Boolean value if
trueto use Amazon S3 server side encryption with your own AWS KMS key, orfalseto use a key managed by Amazon S3. Defaults tofalse.- Kms
Key stringArn Amazon Resource Name (ARN) for KMS key used for Amazon S3 server side encryption. This value can only be set when
kms_encryptedis true.- Location
Arn string The ARN of the backed storage used for storing file data.
-
Nfs
File Share Nfs File Share Defaults Args Nested argument with file share default values. More information below.
- Object
Acl string Access Control List permission for S3 bucket objects. Defaults to
private.- Path string
File share path used by the NFS client to identify the mount point.
- Read
Only bool Boolean to indicate write status of file share. File share does not accept writes if
true. Defaults tofalse.- Requester
Pays bool Boolean who pays the cost of the request and the data download from the Amazon S3 bucket. Set this value to
trueif you want the requester to pay instead of the bucket owner. Defaults tofalse.- Role
Arn string The ARN of the AWS Identity and Access Management (IAM) role that a file gateway assumes when it accesses the underlying storage.
- Squash string
Maps a user to anonymous user. Defaults to
RootSquash. Valid values:RootSquash(only root is mapped to anonymous user),NoSquash(no one is mapped to anonymous user),AllSquash(everyone is mapped to anonymous user)- Dictionary<string, string>
Key-value map of resource tags
- Arn string
Amazon Resource Name (ARN) of the NFS File Share.
- Client
Lists []string The list of clients that are allowed to access the file gateway. The list must contain either valid IP addresses or valid CIDR blocks. Set to
["0.0.0.0/0"]to not limit access. Minimum 1 item. Maximum 100 items.- Default
Storage stringClass The default storage class for objects put into an Amazon S3 bucket by the file gateway. Defaults to
S3_STANDARD. Valid values:S3_STANDARD,S3_STANDARD_IA,S3_ONEZONE_IA.- string
ID of the NFS File Share.
- Gateway
Arn string Amazon Resource Name (ARN) of the file gateway.
- Guess
Mime boolType Enabled Boolean value that enables guessing of the MIME type for uploaded objects based on file extensions. Defaults to
true.- Kms
Encrypted bool Boolean value if
trueto use Amazon S3 server side encryption with your own AWS KMS key, orfalseto use a key managed by Amazon S3. Defaults tofalse.- Kms
Key stringArn Amazon Resource Name (ARN) for KMS key used for Amazon S3 server side encryption. This value can only be set when
kms_encryptedis true.- Location
Arn string The ARN of the backed storage used for storing file data.
-
Nfs
File Share Nfs File Share Defaults Nested argument with file share default values. More information below.
- Object
Acl string Access Control List permission for S3 bucket objects. Defaults to
private.- Path string
File share path used by the NFS client to identify the mount point.
- Read
Only bool Boolean to indicate write status of file share. File share does not accept writes if
true. Defaults tofalse.- Requester
Pays bool Boolean who pays the cost of the request and the data download from the Amazon S3 bucket. Set this value to
trueif you want the requester to pay instead of the bucket owner. Defaults tofalse.- Role
Arn string The ARN of the AWS Identity and Access Management (IAM) role that a file gateway assumes when it accesses the underlying storage.
- Squash string
Maps a user to anonymous user. Defaults to
RootSquash. Valid values:RootSquash(only root is mapped to anonymous user),NoSquash(no one is mapped to anonymous user),AllSquash(everyone is mapped to anonymous user)- map[string]string
Key-value map of resource tags
- arn string
Amazon Resource Name (ARN) of the NFS File Share.
- client
Lists string[] The list of clients that are allowed to access the file gateway. The list must contain either valid IP addresses or valid CIDR blocks. Set to
["0.0.0.0/0"]to not limit access. Minimum 1 item. Maximum 100 items.- default
Storage stringClass The default storage class for objects put into an Amazon S3 bucket by the file gateway. Defaults to
S3_STANDARD. Valid values:S3_STANDARD,S3_STANDARD_IA,S3_ONEZONE_IA.- string
ID of the NFS File Share.
- gateway
Arn string Amazon Resource Name (ARN) of the file gateway.
- guess
Mime booleanType Enabled Boolean value that enables guessing of the MIME type for uploaded objects based on file extensions. Defaults to
true.- kms
Encrypted boolean Boolean value if
trueto use Amazon S3 server side encryption with your own AWS KMS key, orfalseto use a key managed by Amazon S3. Defaults tofalse.- kms
Key stringArn Amazon Resource Name (ARN) for KMS key used for Amazon S3 server side encryption. This value can only be set when
kms_encryptedis true.- location
Arn string The ARN of the backed storage used for storing file data.
-
Nfs
File Share Nfs File Share Defaults Nested argument with file share default values. More information below.
- object
Acl string Access Control List permission for S3 bucket objects. Defaults to
private.- path string
File share path used by the NFS client to identify the mount point.
- read
Only boolean Boolean to indicate write status of file share. File share does not accept writes if
true. Defaults tofalse.- requester
Pays boolean Boolean who pays the cost of the request and the data download from the Amazon S3 bucket. Set this value to
trueif you want the requester to pay instead of the bucket owner. Defaults tofalse.- role
Arn string The ARN of the AWS Identity and Access Management (IAM) role that a file gateway assumes when it accesses the underlying storage.
- squash string
Maps a user to anonymous user. Defaults to
RootSquash. Valid values:RootSquash(only root is mapped to anonymous user),NoSquash(no one is mapped to anonymous user),AllSquash(everyone is mapped to anonymous user)- {[key: string]: string}
Key-value map of resource tags
- arn str
Amazon Resource Name (ARN) of the NFS File Share.
- client_
lists List[str] The list of clients that are allowed to access the file gateway. The list must contain either valid IP addresses or valid CIDR blocks. Set to
["0.0.0.0/0"]to not limit access. Minimum 1 item. Maximum 100 items.- default_
storage_ strclass The default storage class for objects put into an Amazon S3 bucket by the file gateway. Defaults to
S3_STANDARD. Valid values:S3_STANDARD,S3_STANDARD_IA,S3_ONEZONE_IA.- str
ID of the NFS File Share.
- gateway_
arn str Amazon Resource Name (ARN) of the file gateway.
- guess_
mime_ booltype_ enabled Boolean value that enables guessing of the MIME type for uploaded objects based on file extensions. Defaults to
true.- kms_
encrypted bool Boolean value if
trueto use Amazon S3 server side encryption with your own AWS KMS key, orfalseto use a key managed by Amazon S3. Defaults tofalse.- kms_
key_ strarn Amazon Resource Name (ARN) for KMS key used for Amazon S3 server side encryption. This value can only be set when
kms_encryptedis true.- location_
arn str The ARN of the backed storage used for storing file data.
-
Dict[Nfs
File Share Nfs File Share Defaults] Nested argument with file share default values. More information below.
- object_
acl str Access Control List permission for S3 bucket objects. Defaults to
private.- path str
File share path used by the NFS client to identify the mount point.
- read_
only bool Boolean to indicate write status of file share. File share does not accept writes if
true. Defaults tofalse.- requester_
pays bool Boolean who pays the cost of the request and the data download from the Amazon S3 bucket. Set this value to
trueif you want the requester to pay instead of the bucket owner. Defaults tofalse.- role_
arn str The ARN of the AWS Identity and Access Management (IAM) role that a file gateway assumes when it accesses the underlying storage.
- squash str
Maps a user to anonymous user. Defaults to
RootSquash. Valid values:RootSquash(only root is mapped to anonymous user),NoSquash(no one is mapped to anonymous user),AllSquash(everyone is mapped to anonymous user)- Dict[str, str]
Key-value map of resource tags
Supporting Types
NfsFileShareNfsFileShareDefaults
- Directory
Mode string The Unix directory mode in the string form “nnnn”. Defaults to
"0777".- File
Mode string The Unix file mode in the string form “nnnn”. Defaults to
"0666".- Group
Id int The default group ID for the file share (unless the files have another group ID specified). Defaults to
65534(nfsnobody). Valid values:0through4294967294.- Owner
Id int The default owner ID for the file share (unless the files have another owner ID specified). Defaults to
65534(nfsnobody). Valid values:0through4294967294.
- Directory
Mode string The Unix directory mode in the string form “nnnn”. Defaults to
"0777".- File
Mode string The Unix file mode in the string form “nnnn”. Defaults to
"0666".- Group
Id int The default group ID for the file share (unless the files have another group ID specified). Defaults to
65534(nfsnobody). Valid values:0through4294967294.- Owner
Id int The default owner ID for the file share (unless the files have another owner ID specified). Defaults to
65534(nfsnobody). Valid values:0through4294967294.
- directory
Mode string The Unix directory mode in the string form “nnnn”. Defaults to
"0777".- file
Mode string The Unix file mode in the string form “nnnn”. Defaults to
"0666".- group
Id number The default group ID for the file share (unless the files have another group ID specified). Defaults to
65534(nfsnobody). Valid values:0through4294967294.- owner
Id number The default owner ID for the file share (unless the files have another owner ID specified). Defaults to
65534(nfsnobody). Valid values:0through4294967294.
- directory
Mode str The Unix directory mode in the string form “nnnn”. Defaults to
"0777".- file
Mode str The Unix file mode in the string form “nnnn”. Defaults to
"0666".- group
Id float The default group ID for the file share (unless the files have another group ID specified). Defaults to
65534(nfsnobody). Valid values:0through4294967294.- owner_
id float The default owner ID for the file share (unless the files have another owner ID specified). Defaults to
65534(nfsnobody). Valid values:0through4294967294.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.