Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.storagegateway.kotlin
import com.pulumi.aws.storagegateway.NfsFileShareArgs.builder
import com.pulumi.aws.storagegateway.kotlin.inputs.NfsFileShareCacheAttributesArgs
import com.pulumi.aws.storagegateway.kotlin.inputs.NfsFileShareCacheAttributesArgsBuilder
import com.pulumi.aws.storagegateway.kotlin.inputs.NfsFileShareNfsFileShareDefaultsArgs
import com.pulumi.aws.storagegateway.kotlin.inputs.NfsFileShareNfsFileShareDefaultsArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Manages an AWS Storage Gateway NFS File Share.
* ## Example Usage
*
* ```typescript
* 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,
* });
* ```
* ```python
* 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"])
* ```
* ```csharp
* 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,
* });
* });
* ```
* ```go
* 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
* })
* }
* ```
* ```java
* 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());
* }
* }
* ```
* ```yaml
* 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_nfs_file_share` using the NFS File Share Amazon Resource Name (ARN). For example:
* ```sh
* $ pulumi import aws:storagegateway/nfsFileShare:NfsFileShare example arn:aws:storagegateway:us-east-1:123456789012:share/share-12345678
* ```
* @property auditDestinationArn The Amazon Resource Name (ARN) of the storage used for audit logs.
* @property bucketRegion The region of the S3 bucket used by the file share. Required when specifying `vpc_endpoint_dns_name`.
* @property cacheAttributes Refresh cache information. see Cache Attributes for more details.
* @property clientLists 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.
* @property defaultStorageClass The default [storage class](https://docs.aws.amazon.com/storagegateway/latest/APIReference/API_CreateNFSFileShare.html#StorageGateway-CreateNFSFileShare-request-DefaultStorageClass) for objects put into an Amazon S3 bucket by the file gateway. Defaults to `S3_STANDARD`.
* @property fileShareName The name of the file share. Must be set if an S3 prefix name is set in `location_arn`.
* @property gatewayArn Amazon Resource Name (ARN) of the file gateway.
* @property guessMimeTypeEnabled Boolean value that enables guessing of the MIME type for uploaded objects based on file extensions. Defaults to `true`.
* @property kmsEncrypted Boolean value if `true` to use Amazon S3 server side encryption with your own AWS KMS key, or `false` to use a key managed by Amazon S3. Defaults to `false`.
* @property kmsKeyArn Amazon Resource Name (ARN) for KMS key used for Amazon S3 server side encryption. This value can only be set when `kms_encrypted` is true.
* @property locationArn The ARN of the backed storage used for storing file data.
* @property nfsFileShareDefaults Nested argument with file share default values. More information below. see NFS File Share Defaults for more details.
* @property notificationPolicy The notification policy of the file share. For more information see the [AWS Documentation](https://docs.aws.amazon.com/storagegateway/latest/APIReference/API_CreateNFSFileShare.html#StorageGateway-CreateNFSFileShare-request-NotificationPolicy). Default value is `{}`.
* @property objectAcl Access Control List permission for S3 objects. Defaults to `private`.
* @property readOnly Boolean to indicate write status of file share. File share does not accept writes if `true`. Defaults to `false`.
* @property requesterPays Boolean who pays the cost of the request and the data download from the Amazon S3 bucket. Set this value to `true` if you want the requester to pay instead of the bucket owner. Defaults to `false`.
* @property roleArn The ARN of the AWS Identity and Access Management (IAM) role that a file gateway assumes when it accesses the underlying storage.
* @property squash 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)
* @property tags Key-value map 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.
* @property vpcEndpointDnsName The DNS name of the VPC endpoint for S3 PrivateLink.
*/
public data class NfsFileShareArgs(
public val auditDestinationArn: Output? = null,
public val bucketRegion: Output? = null,
public val cacheAttributes: Output? = null,
public val clientLists: Output>? = null,
public val defaultStorageClass: Output? = null,
public val fileShareName: Output? = null,
public val gatewayArn: Output? = null,
public val guessMimeTypeEnabled: Output? = null,
public val kmsEncrypted: Output? = null,
public val kmsKeyArn: Output? = null,
public val locationArn: Output? = null,
public val nfsFileShareDefaults: Output? = null,
public val notificationPolicy: Output? = null,
public val objectAcl: Output? = null,
public val readOnly: Output? = null,
public val requesterPays: Output? = null,
public val roleArn: Output? = null,
public val squash: Output? = null,
public val tags: Output