Class: Ansible::Ruby::Modules::S3_lifecycle
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::S3_lifecycle
- Defined in:
- lib/ansible/ruby/modules/generated/extras/cloud/amazon/s3_lifecycle.rb
Overview
Manage s3 bucket lifecycle rules in AWS
Instance Method Summary collapse
-
#expiration_date ⇒ String?
Indicates the lifetime of the objects that are subject to the rule by the date they will expire.
-
#expiration_days ⇒ Integer?
Indicates the lifetime, in days, of the objects that are subject to the rule.
-
#name ⇒ String
Name of the s3 bucket.
-
#prefix ⇒ String?
Prefix identifying one or more objects to which the rule applies.
-
#rule_id ⇒ Object?
Unique identifier for the rule.
-
#state ⇒ :present, ...
Create or remove the lifecycle rule.
-
#status ⇒ :enabled, ...
If ‘enabled’, the rule is currently being applied.
-
#storage_class ⇒ :glacier?
The storage class to transition to.
-
#transition_date ⇒ String?
Indicates the lifetime of the objects that are subject to the rule by the date they will transition to a different storage class.
-
#transition_days ⇒ Integer?
Indicates when, in days, an object transitions to a different storage class.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#expiration_date ⇒ String?
Returns Indicates the lifetime of the objects that are subject to the rule by the date they will expire. The value must be ISO-8601 format, the time must be midnight and a GMT timezone must be specified.
15 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/s3_lifecycle.rb', line 15 attribute :expiration_date |
#expiration_days ⇒ Integer?
Returns Indicates the lifetime, in days, of the objects that are subject to the rule. The value must be a non-zero positive integer.
19 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/s3_lifecycle.rb', line 19 attribute :expiration_days |
#name ⇒ String
Returns Name of the s3 bucket.
11 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/s3_lifecycle.rb', line 11 attribute :name |
#prefix ⇒ String?
Returns Prefix identifying one or more objects to which the rule applies. If no prefix is specified, the rule will apply to the whole bucket.
23 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/s3_lifecycle.rb', line 23 attribute :prefix |
#rule_id ⇒ Object?
Returns Unique identifier for the rule. The value cannot be longer than 255 characters. A unique value for the rule will be generated if no value is provided.
27 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/s3_lifecycle.rb', line 27 attribute :rule_id |
#state ⇒ :present, ...
Returns Create or remove the lifecycle rule.
30 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/s3_lifecycle.rb', line 30 attribute :state |
#status ⇒ :enabled, ...
Returns If ‘enabled’, the rule is currently being applied. If ‘disabled’, the rule is not currently being applied.
34 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/s3_lifecycle.rb', line 34 attribute :status |
#storage_class ⇒ :glacier?
Returns The storage class to transition to. Currently there is only one valid value - ‘glacier’.
38 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/s3_lifecycle.rb', line 38 attribute :storage_class |
#transition_date ⇒ String?
Returns Indicates the lifetime of the objects that are subject to the rule by the date they will transition to a different storage class. The value must be ISO-8601 format, the time must be midnight and a GMT timezone must be specified. If transition_days is not specified, this parameter is required.
42 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/s3_lifecycle.rb', line 42 attribute :transition_date |
#transition_days ⇒ Integer?
Returns Indicates when, in days, an object transitions to a different storage class. If transition_date is not specified, this parameter is required.
46 |
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/s3_lifecycle.rb', line 46 attribute :transition_days |