Class: Ansible::Ruby::Modules::Cloudtrail
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Cloudtrail
- 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
-
#cloudwatch_logs_log_group_arn ⇒ String?
A full ARN specifying a valid CloudWatch log group to which CloudTrail logs will be delivered.
-
#cloudwatch_logs_role_arn ⇒ String?
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).
-
#enable_log_file_validation ⇒ Boolean?
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.
-
#enable_logging ⇒ Boolean?
Start or stop the CloudTrail logging.
-
#include_global_events ⇒ Boolean?
Record API calls from global services such as IAM and STS.
-
#is_multi_region_trail ⇒ Boolean?
Specify whether the trail belongs only to one region or exists in all regions.
-
#kms_key_id ⇒ String?
Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail.
-
#name ⇒ 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.
-
#s3_bucket_name ⇒ String?
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).
-
#s3_key_prefix ⇒ String?
S3 Key prefix for delivered log files.
-
#sns_topic_name ⇒ Object?
SNS Topic name to send notifications to when a log file is delivered.
-
#state ⇒ :present, ...
Add or remove CloudTrail configuration.,The following states have been preserved for backwards compatibility.
-
#tags ⇒ Object?
A hash/dictionary of tags to be applied to the CloudTrail resource.,Remove completely or specify an empty dictionary to remove all tags.
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
#cloudwatch_logs_log_group_arn ⇒ String?
51 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/cloudtrail.rb', line 51 attribute :cloudwatch_logs_log_group_arn |
#cloudwatch_logs_role_arn ⇒ String?
47 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/cloudtrail.rb', line 47 attribute :cloudwatch_logs_role_arn |
#enable_log_file_validation ⇒ Boolean?
36 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/cloudtrail.rb', line 36 attribute :enable_log_file_validation |
#enable_logging ⇒ Boolean?
20 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/cloudtrail.rb', line 20 attribute :enable_logging |
#include_global_events ⇒ Boolean?
40 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/cloudtrail.rb', line 40 attribute :include_global_events |
#is_multi_region_trail ⇒ Boolean?
32 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/cloudtrail.rb', line 32 attribute :is_multi_region_trail |
#kms_key_id ⇒ String?
55 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/cloudtrail.rb', line 55 attribute :kms_key_id |
#name ⇒ String
16 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/cloudtrail.rb', line 16 attribute :name |
#s3_bucket_name ⇒ String?
24 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/cloudtrail.rb', line 24 attribute :s3_bucket_name |
#s3_key_prefix ⇒ String?
28 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/cloudtrail.rb', line 28 attribute :s3_key_prefix |
#sns_topic_name ⇒ Object?
44 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/cloudtrail.rb', line 44 attribute :sns_topic_name |
#state ⇒ :present, ...
12 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/cloudtrail.rb', line 12 attribute :state |
#tags ⇒ Object?
59 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/cloudtrail.rb', line 59 attribute :tags |