Class: Ansible::Ruby::Modules::Cloudtrail

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

Overview

Creates, deletes, or updates CloudTrail configuration. Ensures logging is also enabled.

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

#cloudwatch_logs_log_group_arnString?

Returns A full ARN specifying a valid CloudWatch log group to which CloudTrail logs will be delivered. The log group should already exist.,See U(docs.aws.amazon.com/awscloudtrail/latest/userguide/send-cloudtrail-events-to-cloudwatch-logs.html),Required when C(cloudwatch_logs_role_arn).

Returns:



51
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/cloudtrail.rb', line 51

attribute :cloudwatch_logs_log_group_arn

#cloudwatch_logs_role_arnString?

Returns Specifies a full ARN for an IAM role that assigns the proper permissions for CloudTrail to create and write to the log group.,See U(docs.aws.amazon.com/awscloudtrail/latest/userguide/send-cloudtrail-events-to-cloudwatch-logs.html),Required when C(cloudwatch_logs_log_group_arn).

Returns:



47
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/cloudtrail.rb', line 47

attribute :cloudwatch_logs_role_arn

#enable_log_file_validationBoolean?

Returns Specifies whether log file integrity validation is enabled.,CloudTrail will create a hash for every log file delivered and produce a signed digest file that can be used to ensure log files have not been tampered.

Returns:

  • (Boolean, nil)

    Specifies whether log file integrity validation is enabled.,CloudTrail will create a hash for every log file delivered and produce a signed digest file that can be used to ensure log files have not been tampered.



36
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/cloudtrail.rb', line 36

attribute :enable_log_file_validation

#enable_loggingBoolean?

Returns Start or stop the CloudTrail logging. If stopped the trail will be paused and will not record events or deliver log files.

Returns:

  • (Boolean, nil)

    Start or stop the CloudTrail logging. If stopped the trail will be paused and will not record events or deliver log files.



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

attribute :enable_logging

#include_global_eventsBoolean?

Returns Record API calls from global services such as IAM and STS.

Returns:

  • (Boolean, nil)

    Record API calls from global services such as IAM and STS.



40
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/cloudtrail.rb', line 40

attribute :include_global_events

#is_multi_region_trailBoolean?

Returns Specify whether the trail belongs only to one region or exists in all regions.

Returns:

  • (Boolean, nil)

    Specify whether the trail belongs only to one region or exists in all regions.



32
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/cloudtrail.rb', line 32

attribute :is_multi_region_trail

#kms_key_idString?

Returns Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. This also has the effect of enabling log file encryption.,The value can be an alias name prefixed by “alias/”, a fully specified ARN to an alias, a fully specified ARN to a key, or a globally unique identifier.,See U(docs.aws.amazon.com/awscloudtrail/latest/userguide/encrypting-cloudtrail-log-files-with-aws-kms.html).

Returns:



55
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/cloudtrail.rb', line 55

attribute :kms_key_id

#nameString

Returns Name for the CloudTrail.,Names are unique per-region unless the CloudTrail is a multi-region trail, in which case it is unique per-account.

Returns:

  • (String)

    Name for the CloudTrail.,Names are unique per-region unless the CloudTrail is a multi-region trail, in which case it is unique per-account.



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

attribute :name

#s3_bucket_nameString?

Returns An existing S3 bucket where CloudTrail will deliver log files.,This bucket should exist and have the proper policy.,See U(docs.aws.amazon.com/awscloudtrail/latest/userguide/aggregating_logs_regions_bucket_policy.html),Required when C(state=present).

Returns:



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

attribute :s3_bucket_name

#s3_key_prefixString?

Returns S3 Key prefix for delivered log files. A trailing slash is not necessary and will be removed.

Returns:

  • (String, nil)

    S3 Key prefix for delivered log files. A trailing slash is not necessary and will be removed.



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

attribute :s3_key_prefix

#sns_topic_nameObject?

Returns SNS Topic name to send notifications to when a log file is delivered.

Returns:

  • (Object, nil)

    SNS Topic name to send notifications to when a log file is delivered



44
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/cloudtrail.rb', line 44

attribute :sns_topic_name

#state:present, ...

Returns Add or remove CloudTrail configuration.,The following states have been preserved for backwards compatibility. C(state=enabled) and C(state=disabled).,enabled=present and disabled=absent.

Returns:

  • (:present, :absent, :enabled, :disabled)

    Add or remove CloudTrail configuration.,The following states have been preserved for backwards compatibility. C(state=enabled) and C(state=disabled).,enabled=present and disabled=absent.



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

attribute :state

#tagsObject?

Returns A hash/dictionary of tags to be applied to the CloudTrail resource.,Remove completely or specify an empty dictionary to remove all tags.

Returns:

  • (Object, nil)

    A hash/dictionary of tags to be applied to the CloudTrail resource.,Remove completely or specify an empty dictionary to remove all tags.



59
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/cloudtrail.rb', line 59

attribute :tags