Class: Ansible::Ruby::Modules::S3_lifecycle

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/extras/cloud/amazon/s3_lifecycle.rb

Instance Method Summary collapse

Methods inherited from Base

#to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, #initialize, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#expiration_dateString?

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.

Returns:

  • (String, nil)

    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.



14
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/s3_lifecycle.rb', line 14

attribute :expiration_date

#expiration_daysInteger?

Returns Indicates the lifetime, in days, of the objects that are subject to the rule. The value must be a non-zero positive integer.

Returns:

  • (Integer, nil)

    Indicates the lifetime, in days, of the objects that are subject to the rule. The value must be a non-zero positive integer.



18
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/s3_lifecycle.rb', line 18

attribute :expiration_days

#nameString

Returns Name of the s3 bucket.

Returns:

  • (String)

    Name of the s3 bucket



10
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/s3_lifecycle.rb', line 10

attribute :name

#prefixString?

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.

Returns:

  • (String, nil)

    Prefix identifying one or more objects to which the rule applies. If no prefix is specified, the rule will apply to the whole bucket.



22
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/s3_lifecycle.rb', line 22

attribute :prefix

#rule_idObject?

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.

Returns:

  • (Object, nil)

    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.



26
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/s3_lifecycle.rb', line 26

attribute :rule_id

#state:present, ...

Returns Create or remove the lifecycle rule.

Returns:

  • (:present, :absent, nil)

    Create or remove the lifecycle rule



29
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/s3_lifecycle.rb', line 29

attribute :state

#status:enabled, ...

Returns If ‘enabled’, the rule is currently being applied. If ‘disabled’, the rule is not currently being applied.

Returns:

  • (:enabled, :disabled, nil)

    If ‘enabled’, the rule is currently being applied. If ‘disabled’, the rule is not currently being applied.



33
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/s3_lifecycle.rb', line 33

attribute :status

#storage_class:glacier?

Returns The storage class to transition to. Currently there is only one valid value - ‘glacier’.

Returns:

  • (:glacier, nil)

    The storage class to transition to. Currently there is only one valid value - ‘glacier’.



37
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/s3_lifecycle.rb', line 37

attribute :storage_class

#transition_dateString?

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.

Returns:

  • (String, nil)

    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.



41
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/s3_lifecycle.rb', line 41

attribute :transition_date

#transition_daysInteger?

Returns Indicates when, in days, an object transitions to a different storage class. If transition_date is not specified, this parameter is required.

Returns:

  • (Integer, nil)

    Indicates when, in days, an object transitions to a different storage class. If transition_date is not specified, this parameter is required.



45
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/s3_lifecycle.rb', line 45

attribute :transition_days