Trail

cloudtrail.services.k8s.aws/v1alpha1

TypeLink
GoDoccloudtrail-controller/apis/v1alpha1#Trail

Metadata

PropertyValue
ScopeNamespaced
KindTrail
ListKindTrailList
Pluraltrails
Singulartrail

The settings for a trail.

Spec

cloudWatchLogsLogGroupARN: string
cloudWatchLogsRoleARN: string
enableLogFileValidation: boolean
includeGlobalServiceEvents: boolean
isMultiRegionTrail: boolean
isOrganizationTrail: boolean
kmsKeyID: string
name: string
s3BucketName: string
s3KeyPrefix: string
snsTopicName: string
tags:
- key: string
  value: string
FieldDescription
cloudWatchLogsLogGroupARN
Optional
string
Specifies a log group name using an Amazon Resource Name (ARN), a unique
identifier that represents the log group to which CloudTrail logs will be
delivered. Not required unless you specify CloudWatchLogsRoleArn.
cloudWatchLogsRoleARN
Optional
string
Specifies the role for the CloudWatch Logs endpoint to assume to write to
a user’s log group.
enableLogFileValidation
Optional
boolean
Specifies whether log file integrity validation is enabled. The default is
false.


When you disable log file integrity validation, the chain of digest files
is broken after one hour. CloudTrail does not create digest files for log
files that were delivered during a period in which log file integrity validation
was disabled. For example, if you enable log file integrity validation at
noon on January 1, disable it at noon on January 2, and re-enable it at noon
on January 10, digest files will not be created for the log files delivered
from noon on January 2 to noon on January 10. The same applies whenever you
stop CloudTrail logging or delete a trail.
includeGlobalServiceEvents
Optional
boolean
Specifies whether the trail is publishing events from global services such
as IAM to the log files.
isMultiRegionTrail
Optional
boolean
Specifies whether the trail is created in the current region or in all regions.
The default is false, which creates a trail only in the region where you
are signed in. As a best practice, consider creating trails that log events
in all regions.
isOrganizationTrail
Optional
boolean
Specifies whether the trail is created for all accounts in an organization
in Organizations, or only for the current Amazon Web Services account. The
default is false, and cannot be true unless the call is made on behalf of
an Amazon Web Services account that is the management account for an organization
in Organizations.
kmsKeyID
Optional
string
Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail.
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.


CloudTrail also supports KMS multi-Region keys. For more information about
multi-Region keys, see Using multi-Region keys (https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html)
in the Key Management Service Developer Guide.


Examples:


* alias/MyAliasName


* arn:aws:kms:us-east-2:123456789012:alias/MyAliasName


* arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012


* 12345678-1234-1234-1234-123456789012
name
Required
string
Specifies the name of the trail. The name must meet the following requirements:


* Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores
(_), or dashes (-)


* Start with a letter or number, and end with a letter or number


* Be between 3 and 128 characters


* Have no adjacent periods, underscores or dashes. Names like my-_namespace
and my–namespace are not valid.


* Not be in IP address format (for example, 192.168.5.4)
s3BucketName
Required
string
Specifies the name of the Amazon S3 bucket designated for publishing log
files. See Amazon S3 Bucket Naming Requirements (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/create_trail_naming_policy.html).
s3KeyPrefix
Optional
string
Specifies the Amazon S3 key prefix that comes after the name of the bucket
you have designated for log file delivery. For more information, see Finding
Your CloudTrail Log Files (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-find-log-files.html).
The maximum length is 200 characters.
snsTopicName
Optional
string
Specifies the name of the Amazon SNS topic defined for notification of log
file delivery. The maximum length is 256 characters.
tags
Optional
array
tags.[]
Required
object
A custom key-value pair associated with a resource such as a CloudTrail trail.
tags.[].value
Optional
string

Status

ackResourceMetadata: 
  arn: string
  ownerAccountID: string
  region: string
conditions:
- lastTransitionTime: string
  message: string
  reason: string
  status: string
  type: string
logFileValidationEnabled: boolean
snsTopicARN: string
FieldDescription
ackResourceMetadata
Optional
object
All CRs managed by ACK have a common Status.ACKResourceMetadata member
that is used to contain resource sync state, account ownership,
constructed ARN for the resource
ackResourceMetadata.arn
Optional
string
ARN is the Amazon Resource Name for the resource. This is a
globally-unique identifier and is set only by the ACK service controller
once the controller has orchestrated the creation of the resource OR
when it has verified that an “adopted” resource (a resource where the
ARN annotation was set by the Kubernetes user on the CR) exists and
matches the supplied CR’s Spec field values.
TODO(vijat@): Find a better strategy for resources that do not have ARN in CreateOutputResponse
https://github.com/aws/aws-controllers-k8s/issues/270
ackResourceMetadata.ownerAccountID
Required
string
OwnerAccountID is the AWS Account ID of the account that owns the
backend AWS service API resource.
ackResourceMetadata.region
Required
string
Region is the AWS region in which the resource exists or will exist.
conditions
Optional
array
All CRS managed by ACK have a common Status.Conditions member that
contains a collection of ackv1alpha1.Condition objects that describe
the various terminal states of the CR and its backend AWS service API
resource
conditions.[]
Required
object
Condition is the common struct used by all CRDs managed by ACK service
controllers to indicate terminal states of the CR and its backend AWS
service API resource
conditions.[].message
Optional
string
A human readable message indicating details about the transition.
conditions.[].reason
Optional
string
The reason for the condition’s last transition.
conditions.[].status
Optional
string
Status of the condition, one of True, False, Unknown.
conditions.[].type
Optional
string
Type is the type of the Condition
logFileValidationEnabled
Optional
boolean
Specifies whether log file integrity validation is enabled.
snsTopicARN
Optional
string
Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications
when log files are delivered. The format of a topic ARN is:


arn:aws:sns:us-east-2:123456789012:MyTopic