CloudTrail

5 resource kinds. Generated from the operator's CRD schemas.

API Group: aws.konfig.io/v1alpha1

CloudTrailChannel # CLOUD CONTROL · AWS::CloudTrail::Channel

CloudTrailChannel manages AWS::CloudTrail::Channel through the AWS Cloud Control API.

kubectl get cloudtrailchannels · example on GitHub

Example

# CloudTrailChannel — CloudTrail
# Full-options example generated from the CRD schema. Optional fields are
# included with sample values; delete what you don't need. Field reference:
# https://konfig-konector.io/docs/cloudtrail.html#cloudtrailchannel
apiVersion: aws.konfig.io/v1alpha1
kind: CloudTrailChannel
metadata:
  name: example-cloudtrailchannel
  namespace: default
spec:
  destinations:
  - location: example
    type: EVENT_DATA_STORE
  name: example-cloudtrailchannel
  providerRef:
    name: example-cloudtrailchannel
    region: us-east-1
  source: example
  tags:
  - key: example
    value: example

Spec

FieldTypeRequiredDescription
destinationsarray<object>—One or more resources to which events arriving through a channel are logged and stored.
destinations[].locationstringyesThe ARN of a resource that receives events from a channel.
destinations[].typeenumyesThe type of destination for events arriving from a channel. Allowed: EVENT_DATA_STORE
namestring—
providerRefobject—ProviderRef selects the AWSProvider (account/region) this resource is reconciled against.
providerRef.namestringyesName of a cluster-scoped AWSProvider.
providerRef.regionstring—Region overrides the provider's region for this resource only.
sourcestring—The ARN of an on-premises storage solution or application, or a partner event source.
tagsarray<object>—An array of key-value pairs to apply to this resource.
tags[].keystringyes
tags[].valuestringyes

Status

FieldTypeRequiredDescription
attemptinteger—Attempt counts failed create/delete requests; it salts the Cloud Control idempotency token so a retry is not served the cached failure.
awsProviderobject—AWSProvider confirms the account and region this resource was reconciled against.
awsProvider.accountIdstring—AccountID the resource lives in.
awsProvider.namestring—Name of the AWSProvider used; empty when the operator's own credentials were used.
awsProvider.regionstring—Region the resource lives in (empty for global services).
channelArnstring—Read-only: reported by AWS after creation.
conditionsarray<object>—Conditions describe the current state of the resource.
conditions[].lastTransitionTimestringyeslastTransitionTime is the last time the condition transitioned from one status to another.
conditions[].messagestringyesmessage is a human readable message indicating details about the transition.
conditions[].observedGenerationinteger—observedGeneration represents the .metadata.generation that the condition was set based upon.
conditions[].reasonstringyesreason contains a programmatic identifier indicating the reason for the condition's last transition.
conditions[].statusenumyesstatus of the condition, one of True, False, Unknown. Allowed: True, False, Unknown
conditions[].typestringyestype of condition in CamelCase or in foo.example.com/CamelCase.
identifierstring—Identifier is the Cloud Control primary identifier of the resource.
lastSyncTimestring—
observedGenerationinteger—
operationstring—Operation is the in-flight operation (CREATE, UPDATE, DELETE).
operationStatusstring—OperationStatus is the last reported operation status.
requestTokenstring—RequestToken tracks an in-flight asynchronous operation.

CloudTrailDashboard # CLOUD CONTROL · AWS::CloudTrail::Dashboard

CloudTrailDashboard manages AWS::CloudTrail::Dashboard through the AWS Cloud Control API.

kubectl get cloudtraildashboards · example on GitHub

Example

# CloudTrailDashboard — CloudTrail
# Full-options example generated from the CRD schema. Optional fields are
# included with sample values; delete what you don't need. Field reference:
# https://konfig-konector.io/docs/cloudtrail.html#cloudtraildashboard
apiVersion: aws.konfig.io/v1alpha1
kind: CloudTrailDashboard
metadata:
  name: example-cloudtraildashboard
  namespace: default
spec:
  name: example-cloudtraildashboard
  providerRef:
    name: example-cloudtraildashboard
    region: us-east-1
  refreshSchedule:
    frequency:
      unit: HOURS
      value: 1
    status: ENABLED
    timeOfDay: '2026-01-01T00:00:00Z'
  tags:
  - key: example
    value: example
  terminationProtectionEnabled: true
  widgets:
  - queryParameters:
    - example
    queryStatement: example
    viewProperties:
      key: value

Spec

FieldTypeRequiredDescription
namestring—The name of the dashboard.
providerRefobject—ProviderRef selects the AWSProvider (account/region) this resource is reconciled against.
providerRef.namestringyesName of a cluster-scoped AWSProvider.
providerRef.regionstring—Region overrides the provider's region for this resource only.
refreshScheduleobject—Configures the automatic refresh schedule for the dashboard.
refreshSchedule.frequencyobject—CloudTrailDashboardRefreshScheduleFrequency is a nested property type of AWS::CloudTrail::Dashboard.
refreshSchedule.frequency.unitenumyesThe frequency unit. Allowed: HOURS, DAYS
refreshSchedule.frequency.valueintegeryesThe frequency value.
refreshSchedule.statusenum—The status of the schedule. Allowed: ENABLED, DISABLED
refreshSchedule.timeOfDaystring—StartTime of the automatic schedule refresh.
tagsarray<object>—
tags[].keystringyes
tags[].valuestringyes
terminationProtectionEnabledboolean—Indicates whether the dashboard is protected from termination.
widgetsarray<object>—List of widgets on the dashboard
widgets[].queryParametersarray<string>—The placeholder keys in the QueryStatement.
widgets[].queryStatementstringyesThe SQL query statement on one or more event data stores.
widgets[].viewPropertiesmap<string>—The view properties of the widget.

Status

FieldTypeRequiredDescription
attemptinteger—Attempt counts failed create/delete requests; it salts the Cloud Control idempotency token so a retry is not served the cached failure.
awsProviderobject—AWSProvider confirms the account and region this resource was reconciled against.
awsProvider.accountIdstring—AccountID the resource lives in.
awsProvider.namestring—Name of the AWSProvider used; empty when the operator's own credentials were used.
awsProvider.regionstring—Region the resource lives in (empty for global services).
conditionsarray<object>—Conditions describe the current state of the resource.
conditions[].lastTransitionTimestringyeslastTransitionTime is the last time the condition transitioned from one status to another.
conditions[].messagestringyesmessage is a human readable message indicating details about the transition.
conditions[].observedGenerationinteger—observedGeneration represents the .metadata.generation that the condition was set based upon.
conditions[].reasonstringyesreason contains a programmatic identifier indicating the reason for the condition's last transition.
conditions[].statusenumyesstatus of the condition, one of True, False, Unknown. Allowed: True, False, Unknown
conditions[].typestringyestype of condition in CamelCase or in foo.example.com/CamelCase.
createdTimestampstring—The timestamp of the dashboard creation.
dashboardArnstring—The ARN of the dashboard.
identifierstring—Identifier is the Cloud Control primary identifier of the resource.
lastSyncTimestring—
observedGenerationinteger—
operationstring—Operation is the in-flight operation (CREATE, UPDATE, DELETE).
operationStatusstring—OperationStatus is the last reported operation status.
requestTokenstring—RequestToken tracks an in-flight asynchronous operation.
statusenum—The status of the dashboard. Allowed: CREATING, CREATED, UPDATING, UPDATED, DELETING
typeenum—The type of the dashboard. Allowed: MANAGED, CUSTOM
updatedTimestampstring—The timestamp showing when the dashboard was updated, if applicable.

CloudTrailEventDataStore # CLOUD CONTROL · AWS::CloudTrail::EventDataStore

CloudTrailEventDataStore manages AWS::CloudTrail::EventDataStore through the AWS Cloud Control API.

kubectl get cloudtraileventdatastores · example on GitHub

Example

# CloudTrailEventDataStore — CloudTrail
# Full-options example generated from the CRD schema. Optional fields are
# included with sample values; delete what you don't need. Field reference:
# https://konfig-konector.io/docs/cloudtrail.html#cloudtraileventdatastore
apiVersion: aws.konfig.io/v1alpha1
kind: CloudTrailEventDataStore
metadata:
  name: example-cloudtraileventdatastore
  namespace: default
spec:
  advancedEventSelectors:
  - fieldSelectors:
    - endsWith:
      - example
      equals:
      - example
      field: example
      notEndsWith:
      - example
      notEquals:
      - example
      notStartsWith:
      - example
      startsWith:
      - example
    name: example-cloudtraileventdatastore
  billingMode: example
  contextKeySelectors:
  - equals:
    - example
    type: RequestContext
  federationEnabled: true
  federationRoleArn: arn:aws:iam::123456789012:role/example-role
  ingestionEnabled: true
  insightSelectors:
  - insightType: example
  insightsDestination: example
  kmsKeyId: arn:aws:kms:us-east-1:123456789012:key/1234abcd-12ab-34cd-56ef-1234567890ab
  maxEventSize: Standard
  multiRegionEnabled: true
  name: example-cloudtraileventdatastore
  organizationEnabled: true
  providerRef:
    name: example-cloudtraileventdatastore
    region: us-east-1
  retentionPeriod: 7
  tags:
  - key: example
    value: example
  terminationProtectionEnabled: true

Spec

FieldTypeRequiredDescription
advancedEventSelectorsarray<object>—The advanced event selectors that were used to select events for the data store.
advancedEventSelectors[].fieldSelectorsarray<object>yesContains all selector statements in an advanced event selector.
advancedEventSelectors[].fieldSelectors[].endsWitharray<string>—An operator that includes events that match the last few characters of the event record field specified as the value of Field.
advancedEventSelectors[].fieldSelectors[].equalsarray<string>—An operator that includes events that match the exact value of the event record field specified as the value of Field.
advancedEventSelectors[].fieldSelectors[].fieldstringyesA field in an event record on which to filter events to be logged.
advancedEventSelectors[].fieldSelectors[].notEndsWitharray<string>—An operator that excludes events that match the last few characters of the event record field specified as the value of Field.
advancedEventSelectors[].fieldSelectors[].notEqualsarray<string>—An operator that excludes events that match the exact value of the event record field specified as the value of Field.
advancedEventSelectors[].fieldSelectors[].notStartsWitharray<string>—An operator that excludes events that match the first few characters of the event record field specified as the value of Field.
advancedEventSelectors[].fieldSelectors[].startsWitharray<string>—An operator that includes events that match the first few characters of the event record field specified as the value of Field.
advancedEventSelectors[].namestring—An optional, descriptive name for an advanced event selector, such as "Log data events for only two S3 buckets".
billingModestring—The mode that the event data store will use to charge for event storage.
contextKeySelectorsarray<object>—An array that enriches event records in an existing event data store by including additional information specified in individual ContexKeySelector entries.
contextKeySelectors[].equalsarray<string>yesAn operator that includes events that match the exact value of the event record field specified in Type.
contextKeySelectors[].typeenumyesSpecifies the type of the event record field in ContextKeySelector. Allowed: RequestContext, TagContext
federationEnabledboolean—Indicates whether federation is enabled on an event data store.
federationRoleArnstring—The ARN of the role used for event data store federation.
ingestionEnabledboolean—Indicates whether the event data store is ingesting events.
insightSelectorsarray<object>—Lets you enable Insights event logging by specifying the Insights selectors that you want to enable on an existing event data store.
insightSelectors[].insightTypestring—The type of Insights to log on an event data store.
insightsDestinationstring—Specifies the ARN of the event data store that will collect Insights events.
kmsKeyIdstring—Specifies the KMS key ID to use to encrypt the events delivered by CloudTrail.
maxEventSizeenum—Specifies the maximum size allowed for the event. Allowed: Standard, Large
multiRegionEnabledboolean—Indicates whether the event data store includes events from all regions, or only from the region in which it was created.
namestring—The name of the event data store.
organizationEnabledboolean—Indicates that an event data store is collecting logged events for an organization.
providerRefobject—ProviderRef selects the AWSProvider (account/region) this resource is reconciled against.
providerRef.namestringyesName of a cluster-scoped AWSProvider.
providerRef.regionstring—Region overrides the provider's region for this resource only.
retentionPeriodinteger—The retention period, in days.
tagsarray<object>—
tags[].keystringyes
tags[].valuestringyes
terminationProtectionEnabledboolean—Indicates whether the event data store is protected from termination.

Status

FieldTypeRequiredDescription
attemptinteger—Attempt counts failed create/delete requests; it salts the Cloud Control idempotency token so a retry is not served the cached failure.
awsProviderobject—AWSProvider confirms the account and region this resource was reconciled against.
awsProvider.accountIdstring—AccountID the resource lives in.
awsProvider.namestring—Name of the AWSProvider used; empty when the operator's own credentials were used.
awsProvider.regionstring—Region the resource lives in (empty for global services).
conditionsarray<object>—Conditions describe the current state of the resource.
conditions[].lastTransitionTimestringyeslastTransitionTime is the last time the condition transitioned from one status to another.
conditions[].messagestringyesmessage is a human readable message indicating details about the transition.
conditions[].observedGenerationinteger—observedGeneration represents the .metadata.generation that the condition was set based upon.
conditions[].reasonstringyesreason contains a programmatic identifier indicating the reason for the condition's last transition.
conditions[].statusenumyesstatus of the condition, one of True, False, Unknown. Allowed: True, False, Unknown
conditions[].typestringyestype of condition in CamelCase or in foo.example.com/CamelCase.
createdTimestampstring—The timestamp of the event data store's creation.
eventDataStoreArnstring—The ARN of the event data store.
identifierstring—Identifier is the Cloud Control primary identifier of the resource.
lastSyncTimestring—
observedGenerationinteger—
operationstring—Operation is the in-flight operation (CREATE, UPDATE, DELETE).
operationStatusstring—OperationStatus is the last reported operation status.
requestTokenstring—RequestToken tracks an in-flight asynchronous operation.
statusstring—The status of an event data store.
updatedTimestampstring—The timestamp showing when an event data store was updated, if applicable.

CloudTrailResourcePolicy # CLOUD CONTROL · AWS::CloudTrail::ResourcePolicy

CloudTrailResourcePolicy manages AWS::CloudTrail::ResourcePolicy through the AWS Cloud Control API.

kubectl get cloudtrailresourcepolicies · example on GitHub

Example

# CloudTrailResourcePolicy — CloudTrail
# Full-options example generated from the CRD schema. Optional fields are
# included with sample values; delete what you don't need. Field reference:
# https://konfig-konector.io/docs/cloudtrail.html#cloudtrailresourcepolicy
apiVersion: aws.konfig.io/v1alpha1
kind: CloudTrailResourcePolicy
metadata:
  name: example-cloudtrailresourcepolicy
  namespace: default
spec:
  providerRef:
    name: example-cloudtrailresourcepolicy
    region: us-east-1
  resourceArn: arn:aws:iam::123456789012:role/example-role

Spec

FieldTypeRequiredDescription
providerRefobject—ProviderRef selects the AWSProvider (account/region) this resource is reconciled against.
providerRef.namestringyesName of a cluster-scoped AWSProvider.
providerRef.regionstring—Region overrides the provider's region for this resource only.
resourceArnstringyesThe ARN of the AWS CloudTrail resource to which the policy applies.
resourcePolicyobjectyesA policy document containing permissions to add to the specified resource.

Status

FieldTypeRequiredDescription
attemptinteger—Attempt counts failed create/delete requests; it salts the Cloud Control idempotency token so a retry is not served the cached failure.
awsProviderobject—AWSProvider confirms the account and region this resource was reconciled against.
awsProvider.accountIdstring—AccountID the resource lives in.
awsProvider.namestring—Name of the AWSProvider used; empty when the operator's own credentials were used.
awsProvider.regionstring—Region the resource lives in (empty for global services).
conditionsarray<object>—Conditions describe the current state of the resource.
conditions[].lastTransitionTimestringyeslastTransitionTime is the last time the condition transitioned from one status to another.
conditions[].messagestringyesmessage is a human readable message indicating details about the transition.
conditions[].observedGenerationinteger—observedGeneration represents the .metadata.generation that the condition was set based upon.
conditions[].reasonstringyesreason contains a programmatic identifier indicating the reason for the condition's last transition.
conditions[].statusenumyesstatus of the condition, one of True, False, Unknown. Allowed: True, False, Unknown
conditions[].typestringyestype of condition in CamelCase or in foo.example.com/CamelCase.
identifierstring—Identifier is the Cloud Control primary identifier of the resource.
lastSyncTimestring—
observedGenerationinteger—
operationstring—Operation is the in-flight operation (CREATE, UPDATE, DELETE).
operationStatusstring—OperationStatus is the last reported operation status.
requestTokenstring—RequestToken tracks an in-flight asynchronous operation.

Trail # GA

Trail is the Schema for managing CloudTrail trails.

kubectl get trails · example on GitHub

Example

# Trail — CloudTrail
# Full-options example generated from the CRD schema. Optional fields are
# included with sample values; delete what you don't need. Field reference:
# https://konfig-konector.io/docs/cloudtrail.html#trail
apiVersion: aws.konfig.io/v1alpha1
kind: Trail
metadata:
  name: example-trail
  namespace: default
spec:
  cloudWatchLogsLogGroupArn: arn:aws:iam::123456789012:role/example-role
  cloudWatchLogsRoleArn: arn:aws:iam::123456789012:role/example-role
  enableLogFileValidation: true
  enableLogging: true
  includeGlobalServiceEvents: false
  isMultiRegionTrail: false
  kmsKeyId: arn:aws:kms:us-east-1:123456789012:key/1234abcd-12ab-34cd-56ef-1234567890ab
  providerRef:
    name: example-trail
    region: us-east-1
  s3BucketName: example-trail
  s3KeyPrefix: example
  tags:
    environment: dev
    team: platform
  trailName: example-trail

Spec

FieldTypeRequiredDescription
cloudWatchLogsLogGroupArnstring—CloudWatchLogsLogGroupArn is the log group ARN to which CloudTrail logs are delivered.
cloudWatchLogsRoleArnstring—CloudWatchLogsRoleArn is the role for the CloudWatch Logs endpoint to assume to write to the log group.
enableLogFileValidationboolean—EnableLogFileValidation enables log file integrity validation.
enableLoggingboolean—EnableLogging starts (true) or stops (false) recording of API calls.
includeGlobalServiceEventsboolean—IncludeGlobalServiceEvents publishes events from global services such as IAM.
isMultiRegionTrailboolean—IsMultiRegionTrail creates the trail in all Regions.
kmsKeyIdstring—KMSKeyID is the KMS key ID/ARN/alias used to encrypt delivered logs.
providerRefobject—ProviderRef selects the AWSProvider (account/region) this resource is reconciled against.
providerRef.namestringyesName of a cluster-scoped AWSProvider.
providerRef.regionstring—Region overrides the provider's region for this resource only.
s3BucketNamestringyesS3BucketName is the S3 bucket designated for publishing log files.
s3KeyPrefixstring—S3KeyPrefix is the S3 key prefix that follows the bucket name.
tagsmap<string>—Tags are AWS resource tags to apply to the trail.
trailNamestringyesTrailName is the name of the trail.

Status

FieldTypeRequiredDescription
awsProviderobject—AWSProvider confirms the account and region this resource was reconciled against.
awsProvider.accountIdstring—AccountID the resource lives in.
awsProvider.namestring—Name of the AWSProvider used; empty when the operator's own credentials were used.
awsProvider.regionstring—Region the resource lives in (empty for global services).
conditionsarray<object>—Conditions describe the current state of the resource.
conditions[].lastTransitionTimestringyeslastTransitionTime is the last time the condition transitioned from one status to another.
conditions[].messagestringyesmessage is a human readable message indicating details about the transition.
conditions[].observedGenerationinteger—observedGeneration represents the .metadata.generation that the condition was set based upon.
conditions[].reasonstringyesreason contains a programmatic identifier indicating the reason for the condition's last transition.
conditions[].statusenumyesstatus of the condition, one of True, False, Unknown. Allowed: True, False, Unknown
conditions[].typestringyestype of condition in CamelCase or in foo.example.com/CamelCase.
isLoggingboolean—IsLogging reports whether the trail is currently logging.
lastSyncTimestring—LastSyncTime is when the resource was last successfully reconciled.
observedGenerationinteger—ObservedGeneration is the most recent .metadata.generation reconciled.
trailArnstring—TrailARN is the ARN of the trail.