Class: Aws::S3::Encryption::Config
- Inherits:
-
Struct
- Object
- Struct
- Aws::S3::Encryption::Config
- Defined in:
- lib/aws-sdk-resources/services/s3/encryption/config.rb
Constant Summary collapse
- DEFAULTS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
{ client: lambda { S3::Client.new }, key_provider: lambda { msg = "must specify an :encryption_key or :key_provider" raise ArgumentError, msg }, materials_description: '{}', materials_location: :metadata, instruction_file_suffix: '.instruction', }
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
-
#instruction_file_suffix ⇒ Object
Returns the value of attribute instruction_file_suffix.
-
#key_provider ⇒ Object
Returns the value of attribute key_provider.
-
#materials_description ⇒ Object
Returns the value of attribute materials_description.
-
#materials_location ⇒ Object
Returns the value of attribute materials_location.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client
4 5 6 |
# File 'lib/aws-sdk-resources/services/s3/encryption/config.rb', line 4 def client @client end |
#instruction_file_suffix ⇒ Object
Returns the value of attribute instruction_file_suffix
4 5 6 |
# File 'lib/aws-sdk-resources/services/s3/encryption/config.rb', line 4 def instruction_file_suffix @instruction_file_suffix end |
#key_provider ⇒ Object
Returns the value of attribute key_provider
4 5 6 |
# File 'lib/aws-sdk-resources/services/s3/encryption/config.rb', line 4 def key_provider @key_provider end |
#materials_description ⇒ Object
Returns the value of attribute materials_description
4 5 6 |
# File 'lib/aws-sdk-resources/services/s3/encryption/config.rb', line 4 def materials_description @materials_description end |
#materials_location ⇒ Object
Returns the value of attribute materials_location
4 5 6 |
# File 'lib/aws-sdk-resources/services/s3/encryption/config.rb', line 4 def materials_location @materials_location end |
Class Method Details
Instance Method Details
#encryption_key=(master_key) ⇒ Object
23 24 25 |
# File 'lib/aws-sdk-resources/services/s3/encryption/config.rb', line 23 def encryption_key= master_key self[:key_provider] = DefaultKeyProvider.new(master_key) end |