Nfs File Share Args
data class NfsFileShareArgs(val auditDestinationArn: Output<String>? = null, val bucketRegion: Output<String>? = null, val cacheAttributes: Output<NfsFileShareCacheAttributesArgs>? = null, val clientLists: Output<List<String>>? = null, val defaultStorageClass: Output<String>? = null, val fileShareName: Output<String>? = null, val gatewayArn: Output<String>? = null, val guessMimeTypeEnabled: Output<Boolean>? = null, val kmsEncrypted: Output<Boolean>? = null, val kmsKeyArn: Output<String>? = null, val locationArn: Output<String>? = null, val nfsFileShareDefaults: Output<NfsFileShareNfsFileShareDefaultsArgs>? = null, val notificationPolicy: Output<String>? = null, val objectAcl: Output<String>? = null, val readOnly: Output<Boolean>? = null, val requesterPays: Output<Boolean>? = null, val roleArn: Output<String>? = null, val squash: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val vpcEndpointDnsName: Output<String>? = null) : ConvertibleToJava<NfsFileShareArgs>
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,
});Content copied to clipboard
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"])Content copied to clipboard
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,
});
});Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/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
})
}Content copied to clipboard
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.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 NfsFileShare("example", NfsFileShareArgs.builder()
.clientLists("0.0.0.0/0")
.gatewayArn(exampleAwsStoragegatewayGateway.arn())
.locationArn(exampleAwsS3Bucket.arn())
.roleArn(exampleAwsIamRole.arn())
.build());
}
}Content copied to clipboard
resources:
example:
type: aws:storagegateway:NfsFileShare
properties:
clientLists:
- 0.0.0.0/0
gatewayArn: ${exampleAwsStoragegatewayGateway.arn}
locationArn: ${exampleAwsS3Bucket.arn}
roleArn: ${exampleAwsIamRole.arn}Content copied to clipboard
Import
Using pulumi import, import aws_storagegateway_nfs_file_share using the NFS File Share Amazon Resource Name (ARN). For example:
$ pulumi import aws:storagegateway/nfsFileShare:NfsFileShare example arn:aws:storagegateway:us-east-1:123456789012:share/share-12345678Content copied to clipboard
Constructors
Link copied to clipboard
fun NfsFileShareArgs(auditDestinationArn: Output<String>? = null, bucketRegion: Output<String>? = null, cacheAttributes: Output<NfsFileShareCacheAttributesArgs>? = null, clientLists: Output<List<String>>? = null, defaultStorageClass: Output<String>? = null, fileShareName: Output<String>? = null, gatewayArn: Output<String>? = null, guessMimeTypeEnabled: Output<Boolean>? = null, kmsEncrypted: Output<Boolean>? = null, kmsKeyArn: Output<String>? = null, locationArn: Output<String>? = null, nfsFileShareDefaults: Output<NfsFileShareNfsFileShareDefaultsArgs>? = null, notificationPolicy: Output<String>? = null, objectAcl: Output<String>? = null, readOnly: Output<Boolean>? = null, requesterPays: Output<Boolean>? = null, roleArn: Output<String>? = null, squash: Output<String>? = null, tags: Output<Map<String, String>>? = null, vpcEndpointDnsName: Output<String>? = null)
Functions
Properties
Link copied to clipboard
The default storage class for objects put into an Amazon S3 bucket by the file gateway. Defaults to S3_STANDARD.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The notification policy of the file share. For more information see the AWS Documentation. Default value is {}.
Link copied to clipboard