Class: Ansible::Ruby::Modules::Cloudwatchlogs_log_group

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

Overview

Create or delete log_group in CloudWatchLogs.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

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

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

Constructor Details

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

Instance Method Details

#kms_key_idString?

Returns The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.

Returns:

  • (String, nil)

    The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.



20
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/cloudwatchlogs_log_group.rb', line 20

attribute :kms_key_id

#log_group_nameString

Returns The name of the log group.

Returns:

  • (String)

    The name of the log group.



16
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/cloudwatchlogs_log_group.rb', line 16

attribute :log_group_name

#overwriteBoolean?

Returns Whether an existing log group should be overwritten on create.

Returns:

  • (Boolean, nil)

    Whether an existing log group should be overwritten on create.



31
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/cloudwatchlogs_log_group.rb', line 31

attribute :overwrite

#retentionObject?

Returns The number of days to retain the log events in the specified log group. Valid values are: [1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, 3653].

Returns:

  • (Object, nil)

    The number of days to retain the log events in the specified log group. Valid values are: [1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, 3653]



28
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/cloudwatchlogs_log_group.rb', line 28

attribute :retention

#state:present, ...

Returns Whether the rule is present, absent or get.

Returns:

  • (:present, :absent, nil)

    Whether the rule is present, absent or get



12
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/cloudwatchlogs_log_group.rb', line 12

attribute :state

#tagsHash?

Returns The key-value pairs to use for the tags.

Returns:

  • (Hash, nil)

    The key-value pairs to use for the tags.



24
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/cloudwatchlogs_log_group.rb', line 24

attribute :tags