We recommend new projects start with resources from the AWS provider.
published on Monday, Nov 2, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Monday, Nov 2, 2026 by Pulumi
Resource Type definition for AWS::StorageGateway::SMBFileShare. An SMB file share exposes an Amazon S3 bucket through a Storage Gateway file gateway, so clients read and write objects as files over SMB. The share’s variant is fixed by its resource type rather than by a property: the service constructs the two variants with different APIs, and a property carrying the choice would belong to neither API’s input.
Using getSmbFileShare
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSmbFileShare(args: GetSmbFileShareArgs, opts?: InvokeOptions): Promise<GetSmbFileShareResult>
function getSmbFileShareOutput(args: GetSmbFileShareOutputArgs, opts?: InvokeOutputOptions): Output<GetSmbFileShareResult>def get_smb_file_share(file_share_arn: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSmbFileShareResult
def get_smb_file_share_output(file_share_arn: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetSmbFileShareResult]func LookupSmbFileShare(ctx *Context, args *LookupSmbFileShareArgs, opts ...InvokeOption) (*LookupSmbFileShareResult, error)
func LookupSmbFileShareOutput(ctx *Context, args *LookupSmbFileShareOutputArgs, opts ...InvokeOption) LookupSmbFileShareResultOutput> Note: This function is named LookupSmbFileShare in the Go SDK.
public static class GetSmbFileShare
{
public static Task<GetSmbFileShareResult> InvokeAsync(GetSmbFileShareArgs args, InvokeOptions? opts = null)
public static Output<GetSmbFileShareResult> Invoke(GetSmbFileShareInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetSmbFileShareResult> Invoke(GetSmbFileShareInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetSmbFileShareResult> getSmbFileShare(GetSmbFileShareArgs args, InvokeOptions options)
public static Output<GetSmbFileShareResult> getSmbFileShare(GetSmbFileShareArgs args, InvokeOptions options)
public static Output<GetSmbFileShareResult> getSmbFileShare(GetSmbFileShareArgs args, InvokeOutputOptions options)
fn::invoke:
function: aws-native:storagegateway:getSmbFileShare
arguments:
# arguments dictionarydata "aws-native_storagegateway_get_smb_file_share" "name" {
# arguments
}The following arguments are supported:
- string
- The ARN of the file share.
- string
- The ARN of the file share.
- string
- The ARN of the file share.
- String
- The ARN of the file share.
- string
- The ARN of the file share.
- str
- The ARN of the file share.
- String
- The ARN of the file share.
getSmbFileShare Result
The following output properties are available:
- Access
Based boolEnumeration - Whether clients see only the files and folders they may access.
- Admin
User List<string>List - Users and groups granted administrative privileges on the SMB share.
- Audit
Destination stringArn - The ARN of the CloudWatch log group that receives the share's audit logs. Removing this property from a template detaches audit logging: the update sends the empty string, which the service treats as the reset.
- Cache
Attributes Pulumi.Aws Native. Storage Gateway. Outputs. Smb File Share Cache Attributes - Case
Sensitivity Pulumi.Aws Native. Storage Gateway. Smb File Share Case Sensitivity - Whether the SMB share is case sensitive or defers to the client.
- Default
Storage stringClass - The S3 storage class for new objects. The service accepts S3_STANDARD, S3_INTELLIGENT_TIERING, S3_STANDARD_IA and S3_ONEZONE_IA; it is a length-bounded string in the API model rather than an enumeration.
- Encryption
Type Pulumi.Aws Native. Storage Gateway. Smb File Share Encryption Type - The server-side encryption the gateway applies to objects it writes.
- string
- The ARN of the file share.
- string
- The ID of the file share.
- string
- The name of the file share, which defaults to the bucket name when omitted. Removing this property from a template leaves the share's current value: the service documents no value that resets it.
- string
- The status of the file share. The service reports CREATING, UPDATING, AVAILABLE, DELETING and FORCE_DELETING; it is a length-bounded string in the API model rather than an enumeration.
- Guess
Mime boolType Enabled - Whether the gateway infers the MIME type of uploaded objects from their extension.
- Invalid
User List<string>List - Users and groups denied access to the SMB share.
- Kms
Encrypted bool - Deprecated by the service in favour of EncryptionType; true selects KMS encryption. Retained because it remains readable and settable.
- Kms
Key string - The KMS key used for encryption, when EncryptionType selects KMS. Removing this property from a template leaves the share's current value: the service documents no value that resets it.
- Notification
Policy string - The upload-notification settling period, as a JSON document.
- Object
Acl Pulumi.Aws Native. Storage Gateway. Smb File Share Object Acl - The canned S3 ACL applied to objects the gateway writes.
- Oplocks
Enabled bool - Whether the SMB share grants opportunistic locks. Removing this property from a template leaves the live value unchanged rather than restoring the created default, because that default depends on the gateway's software version -- opportunistic locking is enabled by default only on appliances at 1.19.0.0 or above -- and the version is not part of this resource. Set the value explicitly rather than relying on removal.
- Path string
- The export path the share is mounted or mapped at.
- Read
Only bool - Whether clients may write to the share.
- Requester
Pays bool - Whether the bucket is a Requester Pays bucket.
- Smbacl
Enabled bool - Whether the SMB share uses Windows ACLs rather than POSIX permissions.
-
List<Pulumi.
Aws Native. Outputs. Tag> - Tags assigned to the file share.
- Valid
User List<string>List - Users and groups permitted to access the SMB share.
- Access
Based boolEnumeration - Whether clients see only the files and folders they may access.
- Admin
User []stringList - Users and groups granted administrative privileges on the SMB share.
- Audit
Destination stringArn - The ARN of the CloudWatch log group that receives the share's audit logs. Removing this property from a template detaches audit logging: the update sends the empty string, which the service treats as the reset.
- Cache
Attributes SmbFile Share Cache Attributes - Case
Sensitivity SmbFile Share Case Sensitivity - Whether the SMB share is case sensitive or defers to the client.
- Default
Storage stringClass - The S3 storage class for new objects. The service accepts S3_STANDARD, S3_INTELLIGENT_TIERING, S3_STANDARD_IA and S3_ONEZONE_IA; it is a length-bounded string in the API model rather than an enumeration.
- Encryption
Type SmbFile Share Encryption Type - The server-side encryption the gateway applies to objects it writes.
- string
- The ARN of the file share.
- string
- The ID of the file share.
- string
- The name of the file share, which defaults to the bucket name when omitted. Removing this property from a template leaves the share's current value: the service documents no value that resets it.
- string
- The status of the file share. The service reports CREATING, UPDATING, AVAILABLE, DELETING and FORCE_DELETING; it is a length-bounded string in the API model rather than an enumeration.
- Guess
Mime boolType Enabled - Whether the gateway infers the MIME type of uploaded objects from their extension.
- Invalid
User []stringList - Users and groups denied access to the SMB share.
- Kms
Encrypted bool - Deprecated by the service in favour of EncryptionType; true selects KMS encryption. Retained because it remains readable and settable.
- Kms
Key string - The KMS key used for encryption, when EncryptionType selects KMS. Removing this property from a template leaves the share's current value: the service documents no value that resets it.
- Notification
Policy string - The upload-notification settling period, as a JSON document.
- Object
Acl SmbFile Share Object Acl - The canned S3 ACL applied to objects the gateway writes.
- Oplocks
Enabled bool - Whether the SMB share grants opportunistic locks. Removing this property from a template leaves the live value unchanged rather than restoring the created default, because that default depends on the gateway's software version -- opportunistic locking is enabled by default only on appliances at 1.19.0.0 or above -- and the version is not part of this resource. Set the value explicitly rather than relying on removal.
- Path string
- The export path the share is mounted or mapped at.
- Read
Only bool - Whether clients may write to the share.
- Requester
Pays bool - Whether the bucket is a Requester Pays bucket.
- Smbacl
Enabled bool - Whether the SMB share uses Windows ACLs rather than POSIX permissions.
- Tag
- Tags assigned to the file share.
- Valid
User []stringList - Users and groups permitted to access the SMB share.
- access_
based_ boolenumeration - Whether clients see only the files and folders they may access.
- admin_
user_ list(string)list - Users and groups granted administrative privileges on the SMB share.
- audit_
destination_ stringarn - The ARN of the CloudWatch log group that receives the share's audit logs. Removing this property from a template detaches audit logging: the update sends the empty string, which the service treats as the reset.
- cache_
attributes object - case_
sensitivity "ClientSpecified" | "Case Sensitive" - Whether the SMB share is case sensitive or defers to the client.
- default_
storage_ stringclass - The S3 storage class for new objects. The service accepts S3_STANDARD, S3_INTELLIGENT_TIERING, S3_STANDARD_IA and S3_ONEZONE_IA; it is a length-bounded string in the API model rather than an enumeration.
- encryption_
type "SseS3" | "Sse Kms" | "Dsse Kms" - The server-side encryption the gateway applies to objects it writes.
- string
- The ARN of the file share.
- string
- The ID of the file share.
- string
- The name of the file share, which defaults to the bucket name when omitted. Removing this property from a template leaves the share's current value: the service documents no value that resets it.
- string
- The status of the file share. The service reports CREATING, UPDATING, AVAILABLE, DELETING and FORCE_DELETING; it is a length-bounded string in the API model rather than an enumeration.
- guess_
mime_ booltype_ enabled - Whether the gateway infers the MIME type of uploaded objects from their extension.
- invalid_
user_ list(string)list - Users and groups denied access to the SMB share.
- kms_
encrypted bool - Deprecated by the service in favour of EncryptionType; true selects KMS encryption. Retained because it remains readable and settable.
- kms_
key string - The KMS key used for encryption, when EncryptionType selects KMS. Removing this property from a template leaves the share's current value: the service documents no value that resets it.
- notification_
policy string - The upload-notification settling period, as a JSON document.
- object_
acl "private" | "public-read" | "public-read-write" | "authenticated-read" | "bucket-owner-read" | "bucket-owner-full-control" | "aws-exec-read" - The canned S3 ACL applied to objects the gateway writes.
- oplocks_
enabled bool - Whether the SMB share grants opportunistic locks. Removing this property from a template leaves the live value unchanged rather than restoring the created default, because that default depends on the gateway's software version -- opportunistic locking is enabled by default only on appliances at 1.19.0.0 or above -- and the version is not part of this resource. Set the value explicitly rather than relying on removal.
- path string
- The export path the share is mounted or mapped at.
- read_
only bool - Whether clients may write to the share.
- requester_
pays bool - Whether the bucket is a Requester Pays bucket.
- smbacl_
enabled bool - Whether the SMB share uses Windows ACLs rather than POSIX permissions.
- list(object)
- Tags assigned to the file share.
- valid_
user_ list(string)list - Users and groups permitted to access the SMB share.
- access
Based BooleanEnumeration - Whether clients see only the files and folders they may access.
- admin
User List<String>List - Users and groups granted administrative privileges on the SMB share.
- audit
Destination StringArn - The ARN of the CloudWatch log group that receives the share's audit logs. Removing this property from a template detaches audit logging: the update sends the empty string, which the service treats as the reset.
- cache
Attributes SmbFile Share Cache Attributes - case
Sensitivity SmbFile Share Case Sensitivity - Whether the SMB share is case sensitive or defers to the client.
- default
Storage StringClass - The S3 storage class for new objects. The service accepts S3_STANDARD, S3_INTELLIGENT_TIERING, S3_STANDARD_IA and S3_ONEZONE_IA; it is a length-bounded string in the API model rather than an enumeration.
- encryption
Type SmbFile Share Encryption Type - The server-side encryption the gateway applies to objects it writes.
- String
- The ARN of the file share.
- String
- The ID of the file share.
- String
- The name of the file share, which defaults to the bucket name when omitted. Removing this property from a template leaves the share's current value: the service documents no value that resets it.
- String
- The status of the file share. The service reports CREATING, UPDATING, AVAILABLE, DELETING and FORCE_DELETING; it is a length-bounded string in the API model rather than an enumeration.
- guess
Mime BooleanType Enabled - Whether the gateway infers the MIME type of uploaded objects from their extension.
- invalid
User List<String>List - Users and groups denied access to the SMB share.
- kms
Encrypted Boolean - Deprecated by the service in favour of EncryptionType; true selects KMS encryption. Retained because it remains readable and settable.
- kms
Key String - The KMS key used for encryption, when EncryptionType selects KMS. Removing this property from a template leaves the share's current value: the service documents no value that resets it.
- notification
Policy String - The upload-notification settling period, as a JSON document.
- object
Acl SmbFile Share Object Acl - The canned S3 ACL applied to objects the gateway writes.
- oplocks
Enabled Boolean - Whether the SMB share grants opportunistic locks. Removing this property from a template leaves the live value unchanged rather than restoring the created default, because that default depends on the gateway's software version -- opportunistic locking is enabled by default only on appliances at 1.19.0.0 or above -- and the version is not part of this resource. Set the value explicitly rather than relying on removal.
- path String
- The export path the share is mounted or mapped at.
- read
Only Boolean - Whether clients may write to the share.
- requester
Pays Boolean - Whether the bucket is a Requester Pays bucket.
- smbacl
Enabled Boolean - Whether the SMB share uses Windows ACLs rather than POSIX permissions.
- List<Tag>
- Tags assigned to the file share.
- valid
User List<String>List - Users and groups permitted to access the SMB share.
- access
Based booleanEnumeration - Whether clients see only the files and folders they may access.
- admin
User string[]List - Users and groups granted administrative privileges on the SMB share.
- audit
Destination stringArn - The ARN of the CloudWatch log group that receives the share's audit logs. Removing this property from a template detaches audit logging: the update sends the empty string, which the service treats as the reset.
- cache
Attributes SmbFile Share Cache Attributes - case
Sensitivity SmbFile Share Case Sensitivity - Whether the SMB share is case sensitive or defers to the client.
- default
Storage stringClass - The S3 storage class for new objects. The service accepts S3_STANDARD, S3_INTELLIGENT_TIERING, S3_STANDARD_IA and S3_ONEZONE_IA; it is a length-bounded string in the API model rather than an enumeration.
- encryption
Type SmbFile Share Encryption Type - The server-side encryption the gateway applies to objects it writes.
- string
- The ARN of the file share.
- string
- The ID of the file share.
- string
- The name of the file share, which defaults to the bucket name when omitted. Removing this property from a template leaves the share's current value: the service documents no value that resets it.
- string
- The status of the file share. The service reports CREATING, UPDATING, AVAILABLE, DELETING and FORCE_DELETING; it is a length-bounded string in the API model rather than an enumeration.
- guess
Mime booleanType Enabled - Whether the gateway infers the MIME type of uploaded objects from their extension.
- invalid
User string[]List - Users and groups denied access to the SMB share.
- kms
Encrypted boolean - Deprecated by the service in favour of EncryptionType; true selects KMS encryption. Retained because it remains readable and settable.
- kms
Key string - The KMS key used for encryption, when EncryptionType selects KMS. Removing this property from a template leaves the share's current value: the service documents no value that resets it.
- notification
Policy string - The upload-notification settling period, as a JSON document.
- object
Acl SmbFile Share Object Acl - The canned S3 ACL applied to objects the gateway writes.
- oplocks
Enabled boolean - Whether the SMB share grants opportunistic locks. Removing this property from a template leaves the live value unchanged rather than restoring the created default, because that default depends on the gateway's software version -- opportunistic locking is enabled by default only on appliances at 1.19.0.0 or above -- and the version is not part of this resource. Set the value explicitly rather than relying on removal.
- path string
- The export path the share is mounted or mapped at.
- read
Only boolean - Whether clients may write to the share.
- requester
Pays boolean - Whether the bucket is a Requester Pays bucket.
- smbacl
Enabled boolean - Whether the SMB share uses Windows ACLs rather than POSIX permissions.
- Tag[]
- Tags assigned to the file share.
- valid
User string[]List - Users and groups permitted to access the SMB share.
- access_
based_ boolenumeration - Whether clients see only the files and folders they may access.
- admin_
user_ Sequence[str]list - Users and groups granted administrative privileges on the SMB share.
- audit_
destination_ strarn - The ARN of the CloudWatch log group that receives the share's audit logs. Removing this property from a template detaches audit logging: the update sends the empty string, which the service treats as the reset.
- cache_
attributes SmbFile Share Cache Attributes - case_
sensitivity SmbFile Share Case Sensitivity - Whether the SMB share is case sensitive or defers to the client.
- default_
storage_ strclass - The S3 storage class for new objects. The service accepts S3_STANDARD, S3_INTELLIGENT_TIERING, S3_STANDARD_IA and S3_ONEZONE_IA; it is a length-bounded string in the API model rather than an enumeration.
- encryption_
type SmbFile Share Encryption Type - The server-side encryption the gateway applies to objects it writes.
- str
- The ARN of the file share.
- str
- The ID of the file share.
- str
- The name of the file share, which defaults to the bucket name when omitted. Removing this property from a template leaves the share's current value: the service documents no value that resets it.
- str
- The status of the file share. The service reports CREATING, UPDATING, AVAILABLE, DELETING and FORCE_DELETING; it is a length-bounded string in the API model rather than an enumeration.
- guess_
mime_ booltype_ enabled - Whether the gateway infers the MIME type of uploaded objects from their extension.
- invalid_
user_ Sequence[str]list - Users and groups denied access to the SMB share.
- kms_
encrypted bool - Deprecated by the service in favour of EncryptionType; true selects KMS encryption. Retained because it remains readable and settable.
- kms_
key str - The KMS key used for encryption, when EncryptionType selects KMS. Removing this property from a template leaves the share's current value: the service documents no value that resets it.
- notification_
policy str - The upload-notification settling period, as a JSON document.
- object_
acl SmbFile Share Object Acl - The canned S3 ACL applied to objects the gateway writes.
- oplocks_
enabled bool - Whether the SMB share grants opportunistic locks. Removing this property from a template leaves the live value unchanged rather than restoring the created default, because that default depends on the gateway's software version -- opportunistic locking is enabled by default only on appliances at 1.19.0.0 or above -- and the version is not part of this resource. Set the value explicitly rather than relying on removal.
- path str
- The export path the share is mounted or mapped at.
- read_
only bool - Whether clients may write to the share.
- requester_
pays bool - Whether the bucket is a Requester Pays bucket.
- smbacl_
enabled bool - Whether the SMB share uses Windows ACLs rather than POSIX permissions.
- Sequence[root_Tag]
- Tags assigned to the file share.
- valid_
user_ Sequence[str]list - Users and groups permitted to access the SMB share.
- access
Based BooleanEnumeration - Whether clients see only the files and folders they may access.
- admin
User List<String>List - Users and groups granted administrative privileges on the SMB share.
- audit
Destination StringArn - The ARN of the CloudWatch log group that receives the share's audit logs. Removing this property from a template detaches audit logging: the update sends the empty string, which the service treats as the reset.
- cache
Attributes Property Map - case
Sensitivity "ClientSpecified" | "Case Sensitive" - Whether the SMB share is case sensitive or defers to the client.
- default
Storage StringClass - The S3 storage class for new objects. The service accepts S3_STANDARD, S3_INTELLIGENT_TIERING, S3_STANDARD_IA and S3_ONEZONE_IA; it is a length-bounded string in the API model rather than an enumeration.
- encryption
Type "SseS3" | "Sse Kms" | "Dsse Kms" - The server-side encryption the gateway applies to objects it writes.
- String
- The ARN of the file share.
- String
- The ID of the file share.
- String
- The name of the file share, which defaults to the bucket name when omitted. Removing this property from a template leaves the share's current value: the service documents no value that resets it.
- String
- The status of the file share. The service reports CREATING, UPDATING, AVAILABLE, DELETING and FORCE_DELETING; it is a length-bounded string in the API model rather than an enumeration.
- guess
Mime BooleanType Enabled - Whether the gateway infers the MIME type of uploaded objects from their extension.
- invalid
User List<String>List - Users and groups denied access to the SMB share.
- kms
Encrypted Boolean - Deprecated by the service in favour of EncryptionType; true selects KMS encryption. Retained because it remains readable and settable.
- kms
Key String - The KMS key used for encryption, when EncryptionType selects KMS. Removing this property from a template leaves the share's current value: the service documents no value that resets it.
- notification
Policy String - The upload-notification settling period, as a JSON document.
- object
Acl "private" | "public-read" | "public-read-write" | "authenticated-read" | "bucket-owner-read" | "bucket-owner-full-control" | "aws-exec-read" - The canned S3 ACL applied to objects the gateway writes.
- oplocks
Enabled Boolean - Whether the SMB share grants opportunistic locks. Removing this property from a template leaves the live value unchanged rather than restoring the created default, because that default depends on the gateway's software version -- opportunistic locking is enabled by default only on appliances at 1.19.0.0 or above -- and the version is not part of this resource. Set the value explicitly rather than relying on removal.
- path String
- The export path the share is mounted or mapped at.
- read
Only Boolean - Whether clients may write to the share.
- requester
Pays Boolean - Whether the bucket is a Requester Pays bucket.
- smbacl
Enabled Boolean - Whether the SMB share uses Windows ACLs rather than POSIX permissions.
- List<Property Map>
- Tags assigned to the file share.
- valid
User List<String>List - Users and groups permitted to access the SMB share.
Supporting Types
SmbFileShareCacheAttributes
- Cache
Stale intTimeout In Seconds - How long the directory contents cached by the gateway are considered valid.
- Cache
Stale intTimeout In Seconds - How long the directory contents cached by the gateway are considered valid.
- cache_
stale_ numbertimeout_ in_ seconds - How long the directory contents cached by the gateway are considered valid.
- cache
Stale IntegerTimeout In Seconds - How long the directory contents cached by the gateway are considered valid.
- cache
Stale numberTimeout In Seconds - How long the directory contents cached by the gateway are considered valid.
- cache_
stale_ inttimeout_ in_ seconds - How long the directory contents cached by the gateway are considered valid.
- cache
Stale NumberTimeout In Seconds - How long the directory contents cached by the gateway are considered valid.
SmbFileShareCaseSensitivity
SmbFileShareEncryptionType
SmbFileShareObjectAcl
Tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Monday, Nov 2, 2026 by Pulumi