NfsFileShare class
Manages an AWS Storage Gateway NFS File Share.
Example Usage
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: exampleAwsStoragegatewayGateway.arn,
locationArn: exampleAwsS3Bucket.arn,
roleArn: exampleAwsIamRole.arn,
});
import pulumi
import pulumi_aws as aws
example = aws.storagegateway.NfsFileShare("example",
client_lists=["0.0.0.0/0"],
gateway_arn=example_aws_storagegateway_gateway["arn"],
location_arn=example_aws_s3_bucket["arn"],
role_arn=example_aws_iam_role["arn"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.StorageGateway.NfsFileShare("example", new()
{
ClientLists = new[]
{
"0.0.0.0/0",
},
GatewayArn = exampleAwsStoragegatewayGateway.Arn,
LocationArn = exampleAwsS3Bucket.Arn,
RoleArn = exampleAwsIamRole.Arn,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/storagegateway"
"github.com/pulumi/pulumi/sdk/v3/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.Any(exampleAwsStoragegatewayGateway.Arn),
LocationArn: pulumi.Any(exampleAwsS3Bucket.Arn),
RoleArn: pulumi.Any(exampleAwsIamRole.Arn),
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_storagegateway_nfsfileshare" "example" {
client_lists = ["0.0.0.0/0"]
gateway_arn = exampleAwsStoragegatewayGateway.arn
location_arn = exampleAwsS3Bucket.arn
role_arn = exampleAwsIamRole.arn
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.storagegateway.NfsFileShare;
import com.pulumi.aws.storagegateway.NfsFileShareArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 NfsFileShare("example", NfsFileShareArgs.builder()
.clientLists("0.0.0.0/0")
.gatewayArn(exampleAwsStoragegatewayGateway.arn())
.locationArn(exampleAwsS3Bucket.arn())
.roleArn(exampleAwsIamRole.arn())
.build());
}
}
resources:
example:
type: aws:storagegateway:NfsFileShare
properties:
clientLists:
- 0.0.0.0/0
gatewayArn: ${exampleAwsStoragegatewayGateway.arn}
locationArn: ${exampleAwsS3Bucket.arn}
roleArn: ${exampleAwsIamRole.arn}
Import
Using pulumi import, import aws.storagegateway.NfsFileShare using the NFS File Share ARN. For example:
$ pulumi import aws:storagegateway/nfsFileShare:NfsFileShare example arn:aws:storagegateway:us-east-1:123456789012:share/share-12345678
Constructors
-
Creates a new NfsFileShare.
nameThe Pulumi resource name.argsArguments used to configure this NfsFileShare. The set of arguments for NfsFileShare.optionsResource options controlling this resource's behavior. - Creates a typed reference to an existing NfsFileShare resource.
Properties
-
arn
↔ Output<
String> -
ARN of the NFS File Share.
latefinal
-
auditDestinationArn
↔ Output<
String?> -
ARN of the storage used for audit logs.
latefinal
-
bucketRegion
↔ Output<
String?> -
The region of the S3 bucket used by the file share. Required when specifying
vpcEndpointDnsName.latefinal -
cacheAttributes
↔ Output<
NfsFileShareCacheAttributes?> -
Refresh cache information. see Cache Attributes for more details.
latefinal
-
childResources
→ Set<
Resource> -
finalinherited
-
clientLists
↔ Output<
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.latefinal -
completionSources
↔ Map<
String, IOutputCompletionSource> -
latefinalinherited
-
defaultStorageClass
↔ Output<
String?> -
The default storage class for objects put into an Amazon S3 bucket by the file gateway. Defaults to
S3_STANDARD.latefinal -
ID of the NFS File Share.
latefinal
-
The name of the file share. Must be set if an S3 prefix name is set in
locationArn.latefinal -
gatewayArn
↔ Output<
String> -
ARN of the file gateway.
latefinal
-
guessMimeTypeEnabled
↔ Output<
bool?> -
Boolean value that enables guessing of the MIME type for uploaded objects based on file extensions. Defaults to
true.latefinal - hashCode → int
-
The hash code for this object.
no setterinherited
-
id
↔ Output<
String> -
getter/setter pairinherited
- isCustom → bool
-
Returns whether this resource is provider-managed.
no setterinherited
- isProtected → bool
-
Returns whether this resource is protected from deletion.
no setterinherited
- isRemote → bool
-
Whether this resource is registered as remote.
no setterinherited
- isResourceReference → bool
-
Whether this instance represents a resource value returned over RPC.
finalinherited
-
kmsEncrypted
↔ Output<
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.latefinal -
kmsKeyArn
↔ Output<
String?> -
ARN for KMS key used for Amazon S3 server side encryption. This value can only be set when
kmsEncryptedis true.latefinal -
locationArn
↔ Output<
String> -
The ARN of the backed storage used for storing file data.
latefinal
-
Nested argument with file share default values. More information below. see NFS File Share Defaults for more details.
latefinal
-
notificationPolicy
↔ Output<
String?> -
The notification policy of the file share. For more information see the AWS Documentation. Default value is
{}.latefinal -
objectAcl
↔ Output<
String?> -
Access Control List permission for S3 objects. Defaults to
private.latefinal -
path
↔ Output<
String> -
File share path used by the NFS client to identify the mount point.
latefinal
-
readOnly
↔ Output<
bool?> -
Boolean to indicate write status of file share. File share does not accept writes if
true. Defaults tofalse.latefinal -
region
↔ Output<
String> -
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
latefinal
-
requesterPays
↔ Output<
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.latefinal -
resourceTransforms
→ List<
ResourceTransform> -
Inherited/explicit async transforms.
no setterinherited
-
roleArn
↔ Output<
String> -
The ARN of the AWS Identity and Access Management (IAM) role that a file gateway assumes when it accesses the underlying storage.
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
squash
↔ Output<
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)latefinal -
Key-value map of resource tags. .If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.latefinal -
A map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.latefinal -
transformations
→ List<
ResourceTransformation> -
Inherited/explicit legacy transformations.
no setterinherited
-
urn
↔ Output<
String> -
latefinalinherited
-
vpcEndpointDnsName
↔ Output<
String?> -
The DNS name of the VPC endpoint for S3 PrivateLink.
latefinal
Methods
-
failId(
Object error) → void -
Completes this resource ID with an error when registration fails.
inherited
-
failOutputs(
Object error) → void -
Completes all output properties with
error.inherited -
failUrn(
Object error) → void -
Completes this resource URN with an error when registration fails.
inherited
-
getProvider(
String moduleMember) → ProviderResource? -
Returns provider for
moduleMember's package, if configured.inherited -
getResourceName(
) → String -
Returns this resource's logical name.
inherited
-
getResourceType(
) → String -
Returns this resource's Pulumi type token.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerOutput<
T> (String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output< T> -
Registers a dynamic output property for this resource.
inherited
-
resolveId(
String? value, {required bool isKnown}) → void -
Resolves the provider-assigned ID for this resource.
inherited
-
resolveOutputs(
Struct outputs) → void -
Resolves all output properties from a monitor response payload.
inherited
-
resolveUrn(
String value) → void -
Resolves this resource's URN once assigned by the engine.
inherited
-
serializeProperties(
Map< String, dynamic> properties) → Future<Struct> -
Serializes resource properties for RPC transmission.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
get(
String name, Input< String> id, {NfsFileShareState? state, CustomResourceOptions? options}) → NfsFileShare -
Gets an existing NfsFileShare resource's state with the given
nameandid.