You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::StorageGateway::Types::NFSFileShareDefaults

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-storagegateway/lib/aws-sdk-storagegateway/types.rb

Overview

Note:

When making an API call, you may pass NFSFileShareDefaults data as a hash:

{
  file_mode: "PermissionMode",
  directory_mode: "PermissionMode",
  group_id: 1,
  owner_id: 1,
}

Describes file share default values. Files and folders stored as Amazon S3 objects in S3 buckets don't, by default, have Unix file permissions assigned to them. Upon discovery in an S3 bucket by Storage Gateway, the S3 objects that represent files and folders are assigned these default Unix permissions. This operation is only supported in the file gateway architecture.

Instance Attribute Summary collapse

Instance Attribute Details

#directory_modeString

The Unix directory mode in the form "nnnn". For example, "0666" represents the default access mode for all directories inside the file share. The default value is 0777.

Returns:

  • (String)


2774
2775
2776
2777
2778
2779
2780
# File 'gems/aws-sdk-storagegateway/lib/aws-sdk-storagegateway/types.rb', line 2774

class NFSFileShareDefaults < Struct.new(
  :file_mode,
  :directory_mode,
  :group_id,
  :owner_id)
  include Aws::Structure
end

#file_modeString

The Unix file mode in the form "nnnn". For example, "0666" represents the default file mode inside the file share. The default value is 0666.

Returns:

  • (String)


2774
2775
2776
2777
2778
2779
2780
# File 'gems/aws-sdk-storagegateway/lib/aws-sdk-storagegateway/types.rb', line 2774

class NFSFileShareDefaults < Struct.new(
  :file_mode,
  :directory_mode,
  :group_id,
  :owner_id)
  include Aws::Structure
end

#group_idInteger

The default group ID for the file share (unless the files have another group ID specified). The default value is nfsnobody.

Returns:

  • (Integer)


2774
2775
2776
2777
2778
2779
2780
# File 'gems/aws-sdk-storagegateway/lib/aws-sdk-storagegateway/types.rb', line 2774

class NFSFileShareDefaults < Struct.new(
  :file_mode,
  :directory_mode,
  :group_id,
  :owner_id)
  include Aws::Structure
end

#owner_idInteger

The default owner ID for files in the file share (unless the files have another owner ID specified). The default value is nfsnobody.

Returns:

  • (Integer)


2774
2775
2776
2777
2778
2779
2780
# File 'gems/aws-sdk-storagegateway/lib/aws-sdk-storagegateway/types.rb', line 2774

class NFSFileShareDefaults < Struct.new(
  :file_mode,
  :directory_mode,
  :group_id,
  :owner_id)
  include Aws::Structure
end