aws.storagegateway.SmbFileShare
Explore with Pulumi AI
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 theaws.storagegateway.Gateway
resource.
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,
});
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"])
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
})
}
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,
});
});
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());
}
}
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 theaws.storagegateway.Gateway
resource.
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,
});
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"])
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
})
}
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,
});
});
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());
}
}
resources:
example:
type: aws:storagegateway:SmbFileShare
properties:
authentication: GuestAccess
gatewayArn: ${exampleAwsStoragegatewayGateway.arn}
locationArn: ${exampleAwsS3Bucket.arn}
roleArn: ${exampleAwsIamRole.arn}
Create SmbFileShare Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SmbFileShare(name: string, args: SmbFileShareArgs, opts?: CustomResourceOptions);
@overload
def SmbFileShare(resource_name: str,
args: SmbFileShareArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SmbFileShare(resource_name: str,
opts: Optional[ResourceOptions] = None,
gateway_arn: Optional[str] = None,
role_arn: Optional[str] = None,
location_arn: Optional[str] = None,
kms_encrypted: Optional[bool] = None,
audit_destination_arn: Optional[str] = None,
cache_attributes: Optional[SmbFileShareCacheAttributesArgs] = None,
case_sensitivity: Optional[str] = None,
default_storage_class: Optional[str] = None,
file_share_name: Optional[str] = None,
authentication: Optional[str] = None,
guess_mime_type_enabled: Optional[bool] = None,
invalid_user_lists: Optional[Sequence[str]] = None,
access_based_enumeration: Optional[bool] = None,
kms_key_arn: Optional[str] = None,
bucket_region: Optional[str] = None,
notification_policy: Optional[str] = None,
object_acl: Optional[str] = None,
oplocks_enabled: Optional[bool] = None,
read_only: Optional[bool] = None,
requester_pays: Optional[bool] = None,
admin_user_lists: Optional[Sequence[str]] = None,
smb_acl_enabled: Optional[bool] = None,
tags: Optional[Mapping[str, str]] = None,
valid_user_lists: Optional[Sequence[str]] = None,
vpc_endpoint_dns_name: Optional[str] = None)
func NewSmbFileShare(ctx *Context, name string, args SmbFileShareArgs, opts ...ResourceOption) (*SmbFileShare, error)
public SmbFileShare(string name, SmbFileShareArgs args, CustomResourceOptions? opts = null)
public SmbFileShare(String name, SmbFileShareArgs args)
public SmbFileShare(String name, SmbFileShareArgs args, CustomResourceOptions options)
type: aws:storagegateway:SmbFileShare
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SmbFileShareArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SmbFileShareArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SmbFileShareArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SmbFileShareArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SmbFileShareArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var smbFileShareResource = new Aws.StorageGateway.SmbFileShare("smbFileShareResource", new()
{
GatewayArn = "string",
RoleArn = "string",
LocationArn = "string",
KmsEncrypted = false,
AuditDestinationArn = "string",
CacheAttributes = new Aws.StorageGateway.Inputs.SmbFileShareCacheAttributesArgs
{
CacheStaleTimeoutInSeconds = 0,
},
CaseSensitivity = "string",
DefaultStorageClass = "string",
FileShareName = "string",
Authentication = "string",
GuessMimeTypeEnabled = false,
InvalidUserLists = new[]
{
"string",
},
AccessBasedEnumeration = false,
KmsKeyArn = "string",
BucketRegion = "string",
NotificationPolicy = "string",
ObjectAcl = "string",
OplocksEnabled = false,
ReadOnly = false,
RequesterPays = false,
AdminUserLists = new[]
{
"string",
},
SmbAclEnabled = false,
Tags =
{
{ "string", "string" },
},
ValidUserLists = new[]
{
"string",
},
VpcEndpointDnsName = "string",
});
example, err := storagegateway.NewSmbFileShare(ctx, "smbFileShareResource", &storagegateway.SmbFileShareArgs{
GatewayArn: pulumi.String("string"),
RoleArn: pulumi.String("string"),
LocationArn: pulumi.String("string"),
KmsEncrypted: pulumi.Bool(false),
AuditDestinationArn: pulumi.String("string"),
CacheAttributes: &storagegateway.SmbFileShareCacheAttributesArgs{
CacheStaleTimeoutInSeconds: pulumi.Int(0),
},
CaseSensitivity: pulumi.String("string"),
DefaultStorageClass: pulumi.String("string"),
FileShareName: pulumi.String("string"),
Authentication: pulumi.String("string"),
GuessMimeTypeEnabled: pulumi.Bool(false),
InvalidUserLists: pulumi.StringArray{
pulumi.String("string"),
},
AccessBasedEnumeration: pulumi.Bool(false),
KmsKeyArn: pulumi.String("string"),
BucketRegion: pulumi.String("string"),
NotificationPolicy: pulumi.String("string"),
ObjectAcl: pulumi.String("string"),
OplocksEnabled: pulumi.Bool(false),
ReadOnly: pulumi.Bool(false),
RequesterPays: pulumi.Bool(false),
AdminUserLists: pulumi.StringArray{
pulumi.String("string"),
},
SmbAclEnabled: pulumi.Bool(false),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
ValidUserLists: pulumi.StringArray{
pulumi.String("string"),
},
VpcEndpointDnsName: pulumi.String("string"),
})
var smbFileShareResource = new SmbFileShare("smbFileShareResource", SmbFileShareArgs.builder()
.gatewayArn("string")
.roleArn("string")
.locationArn("string")
.kmsEncrypted(false)
.auditDestinationArn("string")
.cacheAttributes(SmbFileShareCacheAttributesArgs.builder()
.cacheStaleTimeoutInSeconds(0)
.build())
.caseSensitivity("string")
.defaultStorageClass("string")
.fileShareName("string")
.authentication("string")
.guessMimeTypeEnabled(false)
.invalidUserLists("string")
.accessBasedEnumeration(false)
.kmsKeyArn("string")
.bucketRegion("string")
.notificationPolicy("string")
.objectAcl("string")
.oplocksEnabled(false)
.readOnly(false)
.requesterPays(false)
.adminUserLists("string")
.smbAclEnabled(false)
.tags(Map.of("string", "string"))
.validUserLists("string")
.vpcEndpointDnsName("string")
.build());
smb_file_share_resource = aws.storagegateway.SmbFileShare("smbFileShareResource",
gateway_arn="string",
role_arn="string",
location_arn="string",
kms_encrypted=False,
audit_destination_arn="string",
cache_attributes={
"cache_stale_timeout_in_seconds": 0,
},
case_sensitivity="string",
default_storage_class="string",
file_share_name="string",
authentication="string",
guess_mime_type_enabled=False,
invalid_user_lists=["string"],
access_based_enumeration=False,
kms_key_arn="string",
bucket_region="string",
notification_policy="string",
object_acl="string",
oplocks_enabled=False,
read_only=False,
requester_pays=False,
admin_user_lists=["string"],
smb_acl_enabled=False,
tags={
"string": "string",
},
valid_user_lists=["string"],
vpc_endpoint_dns_name="string")
const smbFileShareResource = new aws.storagegateway.SmbFileShare("smbFileShareResource", {
gatewayArn: "string",
roleArn: "string",
locationArn: "string",
kmsEncrypted: false,
auditDestinationArn: "string",
cacheAttributes: {
cacheStaleTimeoutInSeconds: 0,
},
caseSensitivity: "string",
defaultStorageClass: "string",
fileShareName: "string",
authentication: "string",
guessMimeTypeEnabled: false,
invalidUserLists: ["string"],
accessBasedEnumeration: false,
kmsKeyArn: "string",
bucketRegion: "string",
notificationPolicy: "string",
objectAcl: "string",
oplocksEnabled: false,
readOnly: false,
requesterPays: false,
adminUserLists: ["string"],
smbAclEnabled: false,
tags: {
string: "string",
},
validUserLists: ["string"],
vpcEndpointDnsName: "string",
});
type: aws:storagegateway:SmbFileShare
properties:
accessBasedEnumeration: false
adminUserLists:
- string
auditDestinationArn: string
authentication: string
bucketRegion: string
cacheAttributes:
cacheStaleTimeoutInSeconds: 0
caseSensitivity: string
defaultStorageClass: string
fileShareName: string
gatewayArn: string
guessMimeTypeEnabled: false
invalidUserLists:
- string
kmsEncrypted: false
kmsKeyArn: string
locationArn: string
notificationPolicy: string
objectAcl: string
oplocksEnabled: false
readOnly: false
requesterPays: false
roleArn: string
smbAclEnabled: false
tags:
string: string
validUserLists:
- string
vpcEndpointDnsName: string
SmbFileShare Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SmbFileShare resource accepts the following input properties:
- 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.
- Access
Based boolEnumeration - The files and folders on this share will only be visible to users with read access. Default value is
false
. - Admin
User List<string>Lists - A list of users in the Active Directory that have admin access to the file share. Only valid if
authentication
is set toActiveDirectory
. - Audit
Destination stringArn - The Amazon Resource Name (ARN) of the CloudWatch Log Group used for the audit logs.
- Authentication string
- The authentication method that users use to access the file share. Defaults to
ActiveDirectory
. Valid values:ActiveDirectory
,GuestAccess
. - Bucket
Region string - The region of the S3 buck used by the file share. Required when specifying a
vpc_endpoint_dns_name
. - Cache
Attributes SmbFile Share Cache Attributes 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.- Case
Sensitivity string - The case of an object name in an Amazon S3 bucket. For
ClientSpecified
, the client determines the case sensitivity. ForCaseSensitive
, the gateway determines the case sensitivity. The default value isClientSpecified
. - Default
Storage stringClass - The default storage class for objects put into an Amazon S3 bucket by the file gateway. Defaults to
S3_STANDARD
. - string
- The name of the file share. Must be set if an S3 prefix name is set in
location_arn
. - Guess
Mime boolType Enabled - Boolean value that enables guessing of the MIME type for uploaded objects based on file extensions. Defaults to
true
. - Invalid
User List<string>Lists - A list of users in the Active Directory that are not allowed to access the file share. Only valid if
authentication
is set toActiveDirectory
. - Kms
Encrypted bool - Boolean value if
true
to use Amazon S3 server side encryption with your own AWS KMS key, orfalse
to 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_encrypted
is true. - Notification
Policy string - The notification policy of the file share. For more information see the AWS Documentation. Default value is
{}
. - Object
Acl string - Access Control List permission for S3 objects. Defaults to
private
. - Oplocks
Enabled bool - Boolean to indicate Opportunistic lock (oplock) status. Defaults to
true
. - 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
true
if you want the requester to pay instead of the bucket owner. Defaults tofalse
. - Smb
Acl boolEnabled - Set this value to
true
to enable ACL (access control list) on the SMB fileshare. Set it tofalse
to map file and directory permissions to the POSIX permissions. This setting applies only toActiveDirectory
authentication type. - Dictionary<string, string>
- 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. - Valid
User List<string>Lists - 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 toActiveDirectory
. - Vpc
Endpoint stringDns Name - The DNS name of the VPC endpoint for S3 private link.
- 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.
- Access
Based boolEnumeration - The files and folders on this share will only be visible to users with read access. Default value is
false
. - Admin
User []stringLists - A list of users in the Active Directory that have admin access to the file share. Only valid if
authentication
is set toActiveDirectory
. - Audit
Destination stringArn - The Amazon Resource Name (ARN) of the CloudWatch Log Group used for the audit logs.
- Authentication string
- The authentication method that users use to access the file share. Defaults to
ActiveDirectory
. Valid values:ActiveDirectory
,GuestAccess
. - Bucket
Region string - The region of the S3 buck used by the file share. Required when specifying a
vpc_endpoint_dns_name
. - Cache
Attributes SmbFile Share Cache Attributes Args 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.- Case
Sensitivity string - The case of an object name in an Amazon S3 bucket. For
ClientSpecified
, the client determines the case sensitivity. ForCaseSensitive
, the gateway determines the case sensitivity. The default value isClientSpecified
. - Default
Storage stringClass - The default storage class for objects put into an Amazon S3 bucket by the file gateway. Defaults to
S3_STANDARD
. - string
- The name of the file share. Must be set if an S3 prefix name is set in
location_arn
. - Guess
Mime boolType Enabled - Boolean value that enables guessing of the MIME type for uploaded objects based on file extensions. Defaults to
true
. - Invalid
User []stringLists - A list of users in the Active Directory that are not allowed to access the file share. Only valid if
authentication
is set toActiveDirectory
. - Kms
Encrypted bool - Boolean value if
true
to use Amazon S3 server side encryption with your own AWS KMS key, orfalse
to 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_encrypted
is true. - Notification
Policy string - The notification policy of the file share. For more information see the AWS Documentation. Default value is
{}
. - Object
Acl string - Access Control List permission for S3 objects. Defaults to
private
. - Oplocks
Enabled bool - Boolean to indicate Opportunistic lock (oplock) status. Defaults to
true
. - 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
true
if you want the requester to pay instead of the bucket owner. Defaults tofalse
. - Smb
Acl boolEnabled - Set this value to
true
to enable ACL (access control list) on the SMB fileshare. Set it tofalse
to map file and directory permissions to the POSIX permissions. This setting applies only toActiveDirectory
authentication type. - map[string]string
- 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. - Valid
User []stringLists - 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 toActiveDirectory
. - Vpc
Endpoint stringDns Name - The DNS name of the VPC endpoint for S3 private link.
- 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.
- access
Based BooleanEnumeration - The files and folders on this share will only be visible to users with read access. Default value is
false
. - admin
User List<String>Lists - A list of users in the Active Directory that have admin access to the file share. Only valid if
authentication
is set toActiveDirectory
. - audit
Destination StringArn - The Amazon Resource Name (ARN) of the CloudWatch Log Group used for the audit logs.
- authentication String
- The authentication method that users use to access the file share. Defaults to
ActiveDirectory
. Valid values:ActiveDirectory
,GuestAccess
. - bucket
Region String - The region of the S3 buck used by the file share. Required when specifying a
vpc_endpoint_dns_name
. - cache
Attributes SmbFile Share Cache Attributes 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.- case
Sensitivity String - The case of an object name in an Amazon S3 bucket. For
ClientSpecified
, the client determines the case sensitivity. ForCaseSensitive
, the gateway determines the case sensitivity. The default value isClientSpecified
. - default
Storage StringClass - The default storage class for objects put into an Amazon S3 bucket by the file gateway. Defaults to
S3_STANDARD
. - String
- The name of the file share. Must be set if an S3 prefix name is set in
location_arn
. - guess
Mime BooleanType Enabled - Boolean value that enables guessing of the MIME type for uploaded objects based on file extensions. Defaults to
true
. - invalid
User List<String>Lists - A list of users in the Active Directory that are not allowed to access the file share. Only valid if
authentication
is set toActiveDirectory
. - kms
Encrypted Boolean - Boolean value if
true
to use Amazon S3 server side encryption with your own AWS KMS key, orfalse
to 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_encrypted
is true. - notification
Policy String - The notification policy of the file share. For more information see the AWS Documentation. Default value is
{}
. - object
Acl String - Access Control List permission for S3 objects. Defaults to
private
. - oplocks
Enabled Boolean - Boolean to indicate Opportunistic lock (oplock) status. Defaults to
true
. - 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
true
if you want the requester to pay instead of the bucket owner. Defaults tofalse
. - smb
Acl BooleanEnabled - Set this value to
true
to enable ACL (access control list) on the SMB fileshare. Set it tofalse
to map file and directory permissions to the POSIX permissions. This setting applies only toActiveDirectory
authentication type. - Map<String,String>
- 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. - valid
User List<String>Lists - 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 toActiveDirectory
. - vpc
Endpoint StringDns Name - The DNS name of the VPC endpoint for S3 private link.
- 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.
- access
Based booleanEnumeration - The files and folders on this share will only be visible to users with read access. Default value is
false
. - admin
User string[]Lists - A list of users in the Active Directory that have admin access to the file share. Only valid if
authentication
is set toActiveDirectory
. - audit
Destination stringArn - The Amazon Resource Name (ARN) of the CloudWatch Log Group used for the audit logs.
- authentication string
- The authentication method that users use to access the file share. Defaults to
ActiveDirectory
. Valid values:ActiveDirectory
,GuestAccess
. - bucket
Region string - The region of the S3 buck used by the file share. Required when specifying a
vpc_endpoint_dns_name
. - cache
Attributes SmbFile Share Cache Attributes 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.- case
Sensitivity string - The case of an object name in an Amazon S3 bucket. For
ClientSpecified
, the client determines the case sensitivity. ForCaseSensitive
, the gateway determines the case sensitivity. The default value isClientSpecified
. - default
Storage stringClass - The default storage class for objects put into an Amazon S3 bucket by the file gateway. Defaults to
S3_STANDARD
. - string
- The name of the file share. Must be set if an S3 prefix name is set in
location_arn
. - guess
Mime booleanType Enabled - Boolean value that enables guessing of the MIME type for uploaded objects based on file extensions. Defaults to
true
. - invalid
User string[]Lists - A list of users in the Active Directory that are not allowed to access the file share. Only valid if
authentication
is set toActiveDirectory
. - kms
Encrypted boolean - Boolean value if
true
to use Amazon S3 server side encryption with your own AWS KMS key, orfalse
to 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_encrypted
is true. - notification
Policy string - The notification policy of the file share. For more information see the AWS Documentation. Default value is
{}
. - object
Acl string - Access Control List permission for S3 objects. Defaults to
private
. - oplocks
Enabled boolean - Boolean to indicate Opportunistic lock (oplock) status. Defaults to
true
. - 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
true
if you want the requester to pay instead of the bucket owner. Defaults tofalse
. - smb
Acl booleanEnabled - Set this value to
true
to enable ACL (access control list) on the SMB fileshare. Set it tofalse
to map file and directory permissions to the POSIX permissions. This setting applies only toActiveDirectory
authentication type. - {[key: string]: string}
- 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. - valid
User string[]Lists - 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 toActiveDirectory
. - vpc
Endpoint stringDns Name - The DNS name of the VPC endpoint for S3 private link.
- 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.
- access_
based_ boolenumeration - The files and folders on this share will only be visible to users with read access. Default value is
false
. - admin_
user_ Sequence[str]lists - A list of users in the Active Directory that have admin access to the file share. Only valid if
authentication
is set toActiveDirectory
. - audit_
destination_ strarn - The Amazon Resource Name (ARN) of the CloudWatch Log Group used for the audit logs.
- authentication str
- The authentication method that users use to access the file share. Defaults to
ActiveDirectory
. Valid values:ActiveDirectory
,GuestAccess
. - bucket_
region str - The region of the S3 buck used by the file share. Required when specifying a
vpc_endpoint_dns_name
. - cache_
attributes SmbFile Share Cache Attributes Args 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.- case_
sensitivity str - The case of an object name in an Amazon S3 bucket. For
ClientSpecified
, the client determines the case sensitivity. ForCaseSensitive
, the gateway determines the case sensitivity. The default value isClientSpecified
. - default_
storage_ strclass - The default storage class for objects put into an Amazon S3 bucket by the file gateway. Defaults to
S3_STANDARD
. - str
- The name of the file share. Must be set if an S3 prefix name is set in
location_arn
. - guess_
mime_ booltype_ enabled - Boolean value that enables guessing of the MIME type for uploaded objects based on file extensions. Defaults to
true
. - invalid_
user_ Sequence[str]lists - A list of users in the Active Directory that are not allowed to access the file share. Only valid if
authentication
is set toActiveDirectory
. - kms_
encrypted bool - Boolean value if
true
to use Amazon S3 server side encryption with your own AWS KMS key, orfalse
to 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_encrypted
is true. - notification_
policy str - The notification policy of the file share. For more information see the AWS Documentation. Default value is
{}
. - object_
acl str - Access Control List permission for S3 objects. Defaults to
private
. - oplocks_
enabled bool - Boolean to indicate Opportunistic lock (oplock) status. Defaults to
true
. - 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
true
if you want the requester to pay instead of the bucket owner. Defaults tofalse
. - smb_
acl_ boolenabled - Set this value to
true
to enable ACL (access control list) on the SMB fileshare. Set it tofalse
to map file and directory permissions to the POSIX permissions. This setting applies only toActiveDirectory
authentication type. - Mapping[str, str]
- 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. - valid_
user_ Sequence[str]lists - 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 toActiveDirectory
. - vpc_
endpoint_ strdns_ name - The DNS name of the VPC endpoint for S3 private link.
- 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.
- access
Based BooleanEnumeration - The files and folders on this share will only be visible to users with read access. Default value is
false
. - admin
User List<String>Lists - A list of users in the Active Directory that have admin access to the file share. Only valid if
authentication
is set toActiveDirectory
. - audit
Destination StringArn - The Amazon Resource Name (ARN) of the CloudWatch Log Group used for the audit logs.
- authentication String
- The authentication method that users use to access the file share. Defaults to
ActiveDirectory
. Valid values:ActiveDirectory
,GuestAccess
. - bucket
Region String - The region of the S3 buck used by the file share. Required when specifying a
vpc_endpoint_dns_name
. - cache
Attributes Property Map 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.- case
Sensitivity String - The case of an object name in an Amazon S3 bucket. For
ClientSpecified
, the client determines the case sensitivity. ForCaseSensitive
, the gateway determines the case sensitivity. The default value isClientSpecified
. - default
Storage StringClass - The default storage class for objects put into an Amazon S3 bucket by the file gateway. Defaults to
S3_STANDARD
. - String
- The name of the file share. Must be set if an S3 prefix name is set in
location_arn
. - guess
Mime BooleanType Enabled - Boolean value that enables guessing of the MIME type for uploaded objects based on file extensions. Defaults to
true
. - invalid
User List<String>Lists - A list of users in the Active Directory that are not allowed to access the file share. Only valid if
authentication
is set toActiveDirectory
. - kms
Encrypted Boolean - Boolean value if
true
to use Amazon S3 server side encryption with your own AWS KMS key, orfalse
to 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_encrypted
is true. - notification
Policy String - The notification policy of the file share. For more information see the AWS Documentation. Default value is
{}
. - object
Acl String - Access Control List permission for S3 objects. Defaults to
private
. - oplocks
Enabled Boolean - Boolean to indicate Opportunistic lock (oplock) status. Defaults to
true
. - 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
true
if you want the requester to pay instead of the bucket owner. Defaults tofalse
. - smb
Acl BooleanEnabled - Set this value to
true
to enable ACL (access control list) on the SMB fileshare. Set it tofalse
to map file and directory permissions to the POSIX permissions. This setting applies only toActiveDirectory
authentication type. - Map<String>
- 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. - valid
User List<String>Lists - 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 toActiveDirectory
. - vpc
Endpoint StringDns Name - The DNS name of the VPC endpoint for S3 private link.
Outputs
All input properties are implicitly available as output properties. Additionally, the SmbFileShare resource produces the following output properties:
- Arn string
- Amazon Resource Name (ARN) of the SMB File Share.
- string
- ID of the SMB File Share.
- Id string
- The provider-assigned unique ID for this managed resource.
- Path string
- File share path used by the NFS client to identify the mount point.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- Amazon Resource Name (ARN) of the SMB File Share.
- string
- ID of the SMB File Share.
- Id string
- The provider-assigned unique ID for this managed resource.
- Path string
- File share path used by the NFS client to identify the mount point.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- Amazon Resource Name (ARN) of the SMB File Share.
- String
- ID of the SMB File Share.
- id String
- The provider-assigned unique ID for this managed resource.
- path String
- File share path used by the NFS client to identify the mount point.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- Amazon Resource Name (ARN) of the SMB File Share.
- string
- ID of the SMB File Share.
- id string
- The provider-assigned unique ID for this managed resource.
- path string
- File share path used by the NFS client to identify the mount point.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- Amazon Resource Name (ARN) of the SMB File Share.
- str
- ID of the SMB File Share.
- id str
- The provider-assigned unique ID for this managed resource.
- path str
- File share path used by the NFS client to identify the mount point.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- Amazon Resource Name (ARN) of the SMB File Share.
- String
- ID of the SMB File Share.
- id String
- The provider-assigned unique ID for this managed resource.
- path String
- File share path used by the NFS client to identify the mount point.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Look up Existing SmbFileShare Resource
Get an existing SmbFileShare 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?: SmbFileShareState, opts?: CustomResourceOptions): SmbFileShare
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_based_enumeration: Optional[bool] = None,
admin_user_lists: Optional[Sequence[str]] = None,
arn: Optional[str] = None,
audit_destination_arn: Optional[str] = None,
authentication: Optional[str] = None,
bucket_region: Optional[str] = None,
cache_attributes: Optional[SmbFileShareCacheAttributesArgs] = None,
case_sensitivity: Optional[str] = None,
default_storage_class: Optional[str] = None,
file_share_name: Optional[str] = None,
fileshare_id: Optional[str] = None,
gateway_arn: Optional[str] = None,
guess_mime_type_enabled: Optional[bool] = None,
invalid_user_lists: Optional[Sequence[str]] = None,
kms_encrypted: Optional[bool] = None,
kms_key_arn: Optional[str] = None,
location_arn: Optional[str] = None,
notification_policy: Optional[str] = None,
object_acl: Optional[str] = None,
oplocks_enabled: Optional[bool] = None,
path: Optional[str] = None,
read_only: Optional[bool] = None,
requester_pays: Optional[bool] = None,
role_arn: Optional[str] = None,
smb_acl_enabled: Optional[bool] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
valid_user_lists: Optional[Sequence[str]] = None,
vpc_endpoint_dns_name: Optional[str] = None) -> SmbFileShare
func GetSmbFileShare(ctx *Context, name string, id IDInput, state *SmbFileShareState, opts ...ResourceOption) (*SmbFileShare, error)
public static SmbFileShare Get(string name, Input<string> id, SmbFileShareState? state, CustomResourceOptions? opts = null)
public static SmbFileShare get(String name, Output<String> id, SmbFileShareState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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.
- Access
Based boolEnumeration - The files and folders on this share will only be visible to users with read access. Default value is
false
. - Admin
User List<string>Lists - A list of users in the Active Directory that have admin access to the file share. Only valid if
authentication
is set toActiveDirectory
. - Arn string
- Amazon Resource Name (ARN) of the SMB File Share.
- Audit
Destination stringArn - The Amazon Resource Name (ARN) of the CloudWatch Log Group used for the audit logs.
- Authentication string
- The authentication method that users use to access the file share. Defaults to
ActiveDirectory
. Valid values:ActiveDirectory
,GuestAccess
. - Bucket
Region string - The region of the S3 buck used by the file share. Required when specifying a
vpc_endpoint_dns_name
. - Cache
Attributes SmbFile Share Cache Attributes 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.- Case
Sensitivity string - The case of an object name in an Amazon S3 bucket. For
ClientSpecified
, the client determines the case sensitivity. ForCaseSensitive
, the gateway determines the case sensitivity. The default value isClientSpecified
. - Default
Storage stringClass - The default storage class for objects put into an Amazon S3 bucket by the file gateway. Defaults to
S3_STANDARD
. - string
- The name of the file share. Must be set if an S3 prefix name is set in
location_arn
. - string
- ID of the SMB 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
. - Invalid
User List<string>Lists - A list of users in the Active Directory that are not allowed to access the file share. Only valid if
authentication
is set toActiveDirectory
. - Kms
Encrypted bool - Boolean value if
true
to use Amazon S3 server side encryption with your own AWS KMS key, orfalse
to 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_encrypted
is true. - Location
Arn string - The ARN of the backed storage used for storing file data.
- Notification
Policy string - The notification policy of the file share. For more information see the AWS Documentation. Default value is
{}
. - Object
Acl string - Access Control List permission for S3 objects. Defaults to
private
. - Oplocks
Enabled bool - Boolean to indicate Opportunistic lock (oplock) status. Defaults to
true
. - 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
true
if 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.
- Smb
Acl boolEnabled - Set this value to
true
to enable ACL (access control list) on the SMB fileshare. Set it tofalse
to map file and directory permissions to the POSIX permissions. This setting applies only toActiveDirectory
authentication type. - Dictionary<string, string>
- 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. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Valid
User List<string>Lists - 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 toActiveDirectory
. - Vpc
Endpoint stringDns Name - The DNS name of the VPC endpoint for S3 private link.
- Access
Based boolEnumeration - The files and folders on this share will only be visible to users with read access. Default value is
false
. - Admin
User []stringLists - A list of users in the Active Directory that have admin access to the file share. Only valid if
authentication
is set toActiveDirectory
. - Arn string
- Amazon Resource Name (ARN) of the SMB File Share.
- Audit
Destination stringArn - The Amazon Resource Name (ARN) of the CloudWatch Log Group used for the audit logs.
- Authentication string
- The authentication method that users use to access the file share. Defaults to
ActiveDirectory
. Valid values:ActiveDirectory
,GuestAccess
. - Bucket
Region string - The region of the S3 buck used by the file share. Required when specifying a
vpc_endpoint_dns_name
. - Cache
Attributes SmbFile Share Cache Attributes Args 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.- Case
Sensitivity string - The case of an object name in an Amazon S3 bucket. For
ClientSpecified
, the client determines the case sensitivity. ForCaseSensitive
, the gateway determines the case sensitivity. The default value isClientSpecified
. - Default
Storage stringClass - The default storage class for objects put into an Amazon S3 bucket by the file gateway. Defaults to
S3_STANDARD
. - string
- The name of the file share. Must be set if an S3 prefix name is set in
location_arn
. - string
- ID of the SMB 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
. - Invalid
User []stringLists - A list of users in the Active Directory that are not allowed to access the file share. Only valid if
authentication
is set toActiveDirectory
. - Kms
Encrypted bool - Boolean value if
true
to use Amazon S3 server side encryption with your own AWS KMS key, orfalse
to 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_encrypted
is true. - Location
Arn string - The ARN of the backed storage used for storing file data.
- Notification
Policy string - The notification policy of the file share. For more information see the AWS Documentation. Default value is
{}
. - Object
Acl string - Access Control List permission for S3 objects. Defaults to
private
. - Oplocks
Enabled bool - Boolean to indicate Opportunistic lock (oplock) status. Defaults to
true
. - 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
true
if 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.
- Smb
Acl boolEnabled - Set this value to
true
to enable ACL (access control list) on the SMB fileshare. Set it tofalse
to map file and directory permissions to the POSIX permissions. This setting applies only toActiveDirectory
authentication type. - map[string]string
- 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. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Valid
User []stringLists - 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 toActiveDirectory
. - Vpc
Endpoint stringDns Name - The DNS name of the VPC endpoint for S3 private link.
- access
Based BooleanEnumeration - The files and folders on this share will only be visible to users with read access. Default value is
false
. - admin
User List<String>Lists - A list of users in the Active Directory that have admin access to the file share. Only valid if
authentication
is set toActiveDirectory
. - arn String
- Amazon Resource Name (ARN) of the SMB File Share.
- audit
Destination StringArn - The Amazon Resource Name (ARN) of the CloudWatch Log Group used for the audit logs.
- authentication String
- The authentication method that users use to access the file share. Defaults to
ActiveDirectory
. Valid values:ActiveDirectory
,GuestAccess
. - bucket
Region String - The region of the S3 buck used by the file share. Required when specifying a
vpc_endpoint_dns_name
. - cache
Attributes SmbFile Share Cache Attributes 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.- case
Sensitivity String - The case of an object name in an Amazon S3 bucket. For
ClientSpecified
, the client determines the case sensitivity. ForCaseSensitive
, the gateway determines the case sensitivity. The default value isClientSpecified
. - default
Storage StringClass - The default storage class for objects put into an Amazon S3 bucket by the file gateway. Defaults to
S3_STANDARD
. - String
- The name of the file share. Must be set if an S3 prefix name is set in
location_arn
. - String
- ID of the SMB 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
. - invalid
User List<String>Lists - A list of users in the Active Directory that are not allowed to access the file share. Only valid if
authentication
is set toActiveDirectory
. - kms
Encrypted Boolean - Boolean value if
true
to use Amazon S3 server side encryption with your own AWS KMS key, orfalse
to 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_encrypted
is true. - location
Arn String - The ARN of the backed storage used for storing file data.
- notification
Policy String - The notification policy of the file share. For more information see the AWS Documentation. Default value is
{}
. - object
Acl String - Access Control List permission for S3 objects. Defaults to
private
. - oplocks
Enabled Boolean - Boolean to indicate Opportunistic lock (oplock) status. Defaults to
true
. - 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
true
if 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.
- smb
Acl BooleanEnabled - Set this value to
true
to enable ACL (access control list) on the SMB fileshare. Set it tofalse
to map file and directory permissions to the POSIX permissions. This setting applies only toActiveDirectory
authentication type. - Map<String,String>
- 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. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - valid
User List<String>Lists - 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 toActiveDirectory
. - vpc
Endpoint StringDns Name - The DNS name of the VPC endpoint for S3 private link.
- access
Based booleanEnumeration - The files and folders on this share will only be visible to users with read access. Default value is
false
. - admin
User string[]Lists - A list of users in the Active Directory that have admin access to the file share. Only valid if
authentication
is set toActiveDirectory
. - arn string
- Amazon Resource Name (ARN) of the SMB File Share.
- audit
Destination stringArn - The Amazon Resource Name (ARN) of the CloudWatch Log Group used for the audit logs.
- authentication string
- The authentication method that users use to access the file share. Defaults to
ActiveDirectory
. Valid values:ActiveDirectory
,GuestAccess
. - bucket
Region string - The region of the S3 buck used by the file share. Required when specifying a
vpc_endpoint_dns_name
. - cache
Attributes SmbFile Share Cache Attributes 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.- case
Sensitivity string - The case of an object name in an Amazon S3 bucket. For
ClientSpecified
, the client determines the case sensitivity. ForCaseSensitive
, the gateway determines the case sensitivity. The default value isClientSpecified
. - default
Storage stringClass - The default storage class for objects put into an Amazon S3 bucket by the file gateway. Defaults to
S3_STANDARD
. - string
- The name of the file share. Must be set if an S3 prefix name is set in
location_arn
. - string
- ID of the SMB 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
. - invalid
User string[]Lists - A list of users in the Active Directory that are not allowed to access the file share. Only valid if
authentication
is set toActiveDirectory
. - kms
Encrypted boolean - Boolean value if
true
to use Amazon S3 server side encryption with your own AWS KMS key, orfalse
to 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_encrypted
is true. - location
Arn string - The ARN of the backed storage used for storing file data.
- notification
Policy string - The notification policy of the file share. For more information see the AWS Documentation. Default value is
{}
. - object
Acl string - Access Control List permission for S3 objects. Defaults to
private
. - oplocks
Enabled boolean - Boolean to indicate Opportunistic lock (oplock) status. Defaults to
true
. - 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
true
if 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.
- smb
Acl booleanEnabled - Set this value to
true
to enable ACL (access control list) on the SMB fileshare. Set it tofalse
to map file and directory permissions to the POSIX permissions. This setting applies only toActiveDirectory
authentication type. - {[key: string]: string}
- 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. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - valid
User string[]Lists - 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 toActiveDirectory
. - vpc
Endpoint stringDns Name - The DNS name of the VPC endpoint for S3 private link.
- access_
based_ boolenumeration - The files and folders on this share will only be visible to users with read access. Default value is
false
. - admin_
user_ Sequence[str]lists - A list of users in the Active Directory that have admin access to the file share. Only valid if
authentication
is set toActiveDirectory
. - arn str
- Amazon Resource Name (ARN) of the SMB File Share.
- audit_
destination_ strarn - The Amazon Resource Name (ARN) of the CloudWatch Log Group used for the audit logs.
- authentication str
- The authentication method that users use to access the file share. Defaults to
ActiveDirectory
. Valid values:ActiveDirectory
,GuestAccess
. - bucket_
region str - The region of the S3 buck used by the file share. Required when specifying a
vpc_endpoint_dns_name
. - cache_
attributes SmbFile Share Cache Attributes Args 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.- case_
sensitivity str - The case of an object name in an Amazon S3 bucket. For
ClientSpecified
, the client determines the case sensitivity. ForCaseSensitive
, the gateway determines the case sensitivity. The default value isClientSpecified
. - default_
storage_ strclass - The default storage class for objects put into an Amazon S3 bucket by the file gateway. Defaults to
S3_STANDARD
. - str
- The name of the file share. Must be set if an S3 prefix name is set in
location_arn
. - str
- ID of the SMB 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
. - invalid_
user_ Sequence[str]lists - A list of users in the Active Directory that are not allowed to access the file share. Only valid if
authentication
is set toActiveDirectory
. - kms_
encrypted bool - Boolean value if
true
to use Amazon S3 server side encryption with your own AWS KMS key, orfalse
to 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_encrypted
is true. - location_
arn str - The ARN of the backed storage used for storing file data.
- notification_
policy str - The notification policy of the file share. For more information see the AWS Documentation. Default value is
{}
. - object_
acl str - Access Control List permission for S3 objects. Defaults to
private
. - oplocks_
enabled bool - Boolean to indicate Opportunistic lock (oplock) status. Defaults to
true
. - 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
true
if 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.
- smb_
acl_ boolenabled - Set this value to
true
to enable ACL (access control list) on the SMB fileshare. Set it tofalse
to map file and directory permissions to the POSIX permissions. This setting applies only toActiveDirectory
authentication type. - Mapping[str, str]
- 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. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - valid_
user_ Sequence[str]lists - 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 toActiveDirectory
. - vpc_
endpoint_ strdns_ name - The DNS name of the VPC endpoint for S3 private link.
- access
Based BooleanEnumeration - The files and folders on this share will only be visible to users with read access. Default value is
false
. - admin
User List<String>Lists - A list of users in the Active Directory that have admin access to the file share. Only valid if
authentication
is set toActiveDirectory
. - arn String
- Amazon Resource Name (ARN) of the SMB File Share.
- audit
Destination StringArn - The Amazon Resource Name (ARN) of the CloudWatch Log Group used for the audit logs.
- authentication String
- The authentication method that users use to access the file share. Defaults to
ActiveDirectory
. Valid values:ActiveDirectory
,GuestAccess
. - bucket
Region String - The region of the S3 buck used by the file share. Required when specifying a
vpc_endpoint_dns_name
. - cache
Attributes Property Map 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.- case
Sensitivity String - The case of an object name in an Amazon S3 bucket. For
ClientSpecified
, the client determines the case sensitivity. ForCaseSensitive
, the gateway determines the case sensitivity. The default value isClientSpecified
. - default
Storage StringClass - The default storage class for objects put into an Amazon S3 bucket by the file gateway. Defaults to
S3_STANDARD
. - String
- The name of the file share. Must be set if an S3 prefix name is set in
location_arn
. - String
- ID of the SMB 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
. - invalid
User List<String>Lists - A list of users in the Active Directory that are not allowed to access the file share. Only valid if
authentication
is set toActiveDirectory
. - kms
Encrypted Boolean - Boolean value if
true
to use Amazon S3 server side encryption with your own AWS KMS key, orfalse
to 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_encrypted
is true. - location
Arn String - The ARN of the backed storage used for storing file data.
- notification
Policy String - The notification policy of the file share. For more information see the AWS Documentation. Default value is
{}
. - object
Acl String - Access Control List permission for S3 objects. Defaults to
private
. - oplocks
Enabled Boolean - Boolean to indicate Opportunistic lock (oplock) status. Defaults to
true
. - 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
true
if 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.
- smb
Acl BooleanEnabled - Set this value to
true
to enable ACL (access control list) on the SMB fileshare. Set it tofalse
to map file and directory permissions to the POSIX permissions. This setting applies only toActiveDirectory
authentication type. - Map<String>
- 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. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - valid
User List<String>Lists - 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 toActiveDirectory
. - vpc
Endpoint StringDns Name - The DNS name of the VPC endpoint for S3 private link.
Supporting Types
SmbFileShareCacheAttributes, SmbFileShareCacheAttributesArgs
- Cache
Stale intTimeout In Seconds - Refreshes a file share's cache by using Time To Live (TTL). TTL is the length of time since the last refresh after which access to the directory would cause the file gateway to first refresh that directory's contents from the Amazon S3 bucket. Valid Values: 300 to 2,592,000 seconds (5 minutes to 30 days)
- Cache
Stale intTimeout In Seconds - Refreshes a file share's cache by using Time To Live (TTL). TTL is the length of time since the last refresh after which access to the directory would cause the file gateway to first refresh that directory's contents from the Amazon S3 bucket. Valid Values: 300 to 2,592,000 seconds (5 minutes to 30 days)
- cache
Stale IntegerTimeout In Seconds - Refreshes a file share's cache by using Time To Live (TTL). TTL is the length of time since the last refresh after which access to the directory would cause the file gateway to first refresh that directory's contents from the Amazon S3 bucket. Valid Values: 300 to 2,592,000 seconds (5 minutes to 30 days)
- cache
Stale numberTimeout In Seconds - Refreshes a file share's cache by using Time To Live (TTL). TTL is the length of time since the last refresh after which access to the directory would cause the file gateway to first refresh that directory's contents from the Amazon S3 bucket. Valid Values: 300 to 2,592,000 seconds (5 minutes to 30 days)
- cache_
stale_ inttimeout_ in_ seconds - Refreshes a file share's cache by using Time To Live (TTL). TTL is the length of time since the last refresh after which access to the directory would cause the file gateway to first refresh that directory's contents from the Amazon S3 bucket. Valid Values: 300 to 2,592,000 seconds (5 minutes to 30 days)
- cache
Stale NumberTimeout In Seconds - Refreshes a file share's cache by using Time To Live (TTL). TTL is the length of time since the last refresh after which access to the directory would cause the file gateway to first refresh that directory's contents from the Amazon S3 bucket. Valid Values: 300 to 2,592,000 seconds (5 minutes to 30 days)
Import
Using pulumi import
, import aws_storagegateway_smb_file_share
using the SMB File Share Amazon Resource Name (ARN). For example:
$ pulumi import aws:storagegateway/smbFileShare:SmbFileShare example arn:aws:storagegateway:us-east-1:123456789012:share/share-12345678
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.