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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.storagegateway.kotlin
import com.pulumi.aws.storagegateway.SmbFileShareArgs.builder
import com.pulumi.aws.storagegateway.kotlin.inputs.SmbFileShareCacheAttributesArgs
import com.pulumi.aws.storagegateway.kotlin.inputs.SmbFileShareCacheAttributesArgsBuilder
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 SMB File Share.
* ## Example Usage
* ### Active Directory Authentication
* > **NOTE:** The gateway must have already joined the Active Directory domain prior to SMB file share creationE.g., via "SMB Settings" in the AWS Storage Gateway console or `smb_active_directory_settings` in the `aws.storagegateway.Gateway` resource.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.storagegateway.SmbFileShare("example", {
* authentication: "ActiveDirectory",
* gatewayArn: exampleAwsStoragegatewayGateway.arn,
* locationArn: exampleAwsS3Bucket.arn,
* roleArn: exampleAwsIamRole.arn,
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.storagegateway.SmbFileShare("example",
* authentication="ActiveDirectory",
* 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.SmbFileShare("example", new()
* {
* Authentication = "ActiveDirectory",
* 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.NewSmbFileShare(ctx, "example", &storagegateway.SmbFileShareArgs{
* Authentication: pulumi.String("ActiveDirectory"),
* 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.SmbFileShare;
* import com.pulumi.aws.storagegateway.SmbFileShareArgs;
* 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 SmbFileShare("example", SmbFileShareArgs.builder()
* .authentication("ActiveDirectory")
* .gatewayArn(exampleAwsStoragegatewayGateway.arn())
* .locationArn(exampleAwsS3Bucket.arn())
* .roleArn(exampleAwsIamRole.arn())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:storagegateway:SmbFileShare
* properties:
* authentication: ActiveDirectory
* gatewayArn: ${exampleAwsStoragegatewayGateway.arn}
* locationArn: ${exampleAwsS3Bucket.arn}
* roleArn: ${exampleAwsIamRole.arn}
* ```
*
* ### Guest Authentication
* > **NOTE:** The gateway must have already had the SMB guest password set prior to SMB file share creationE.g., via "SMB Settings" in the AWS Storage Gateway console or `smb_guest_password` in the `aws.storagegateway.Gateway` resource.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.storagegateway.SmbFileShare("example", {
* authentication: "GuestAccess",
* gatewayArn: exampleAwsStoragegatewayGateway.arn,
* locationArn: exampleAwsS3Bucket.arn,
* roleArn: exampleAwsIamRole.arn,
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.storagegateway.SmbFileShare("example",
* authentication="GuestAccess",
* 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.SmbFileShare("example", new()
* {
* Authentication = "GuestAccess",
* 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.NewSmbFileShare(ctx, "example", &storagegateway.SmbFileShareArgs{
* Authentication: pulumi.String("GuestAccess"),
* 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.SmbFileShare;
* import com.pulumi.aws.storagegateway.SmbFileShareArgs;
* 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 SmbFileShare("example", SmbFileShareArgs.builder()
* .authentication("GuestAccess")
* .gatewayArn(exampleAwsStoragegatewayGateway.arn())
* .locationArn(exampleAwsS3Bucket.arn())
* .roleArn(exampleAwsIamRole.arn())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:storagegateway:SmbFileShare
* properties:
* authentication: GuestAccess
* gatewayArn: ${exampleAwsStoragegatewayGateway.arn}
* locationArn: ${exampleAwsS3Bucket.arn}
* roleArn: ${exampleAwsIamRole.arn}
* ```
*
* ## Import
* Using `pulumi import`, import `aws_storagegateway_smb_file_share` using the SMB File Share Amazon Resource Name (ARN). For example:
* ```sh
* $ pulumi import aws:storagegateway/smbFileShare:SmbFileShare example arn:aws:storagegateway:us-east-1:123456789012:share/share-12345678
* ```
* @property accessBasedEnumeration The files and folders on this share will only be visible to users with read access. Default value is `false`.
* @property adminUserLists A list of users in the Active Directory that have admin access to the file share. Only valid if `authentication` is set to `ActiveDirectory`.
* @property auditDestinationArn The Amazon Resource Name (ARN) of the CloudWatch Log Group used for the audit logs.
* @property authentication The authentication method that users use to access the file share. Defaults to `ActiveDirectory`. Valid values: `ActiveDirectory`, `GuestAccess`.
* @property bucketRegion The region of the S3 buck used by the file share. Required when specifying a `vpc_endpoint_dns_name`.
* @property cacheAttributes Refresh cache information. see `cache_attributes` Block for more details.
* **Note:** If you have previously included a `cache_attributes` block in your configuration, removing it will not reset the refresh cache value and the previous value will remain. You must explicitly set a new value to change it.
* @property caseSensitivity The case of an object name in an Amazon S3 bucket. For `ClientSpecified`, the client determines the case sensitivity. For `CaseSensitive`, the gateway determines the case sensitivity. The default value is `ClientSpecified`.
* @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 invalidUserLists A list of users in the Active Directory that are not allowed to access the file share. Only valid if `authentication` is set to `ActiveDirectory`.
* @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 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 oplocksEnabled Boolean to indicate Opportunistic lock (oplock) status. Defaults to `true`.
* @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 smbAclEnabled Set this value to `true` to enable ACL (access control list) on the SMB fileshare. Set it to `false` to map file and directory permissions to the POSIX permissions. This setting applies only to `ActiveDirectory` authentication type.
* @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 validUserLists A list of users in the Active Directory that are allowed to access the file share. If you need to specify an Active directory group, add '@' before the name of the group. It will be set on Allowed group in AWS console. Only valid if `authentication` is set to `ActiveDirectory`.
* @property vpcEndpointDnsName The DNS name of the VPC endpoint for S3 private link.
*/
public data class SmbFileShareArgs(
public val accessBasedEnumeration: Output? = null,
public val adminUserLists: Output>? = null,
public val auditDestinationArn: Output? = null,
public val authentication: Output? = null,
public val bucketRegion: Output? = null,
public val cacheAttributes: Output? = null,
public val caseSensitivity: Output? = null,
public val defaultStorageClass: Output? = null,
public val fileShareName: Output? = null,
public val gatewayArn: Output? = null,
public val guessMimeTypeEnabled: Output? = null,
public val invalidUserLists: Output>? = null,
public val kmsEncrypted: Output? = null,
public val kmsKeyArn: Output? = null,
public val locationArn: Output? = null,
public val notificationPolicy: Output? = null,
public val objectAcl: Output? = null,
public val oplocksEnabled: Output? = null,
public val readOnly: Output? = null,
public val requesterPays: Output? = null,
public val roleArn: Output? = null,
public val smbAclEnabled: Output? = null,
public val tags: Output