{ "smithy": "2.0", "shapes": { "com.amazonaws.cloudtraildata#AuditEvent": { "type": "structure", "members": { "id": { "target": "com.amazonaws.cloudtraildata#Uuid", "traits": { "smithy.api#documentation": "
The original event ID from the source event.
", "smithy.api#required": {} } }, "eventData": { "target": "smithy.api#String", "traits": { "smithy.api#documentation": "The content of an audit event that comes from the event, such as userIdentity, \n userAgent, and eventSource.
A checksum is a base64-SHA256 algorithm that helps you verify that CloudTrail receives the event that matches \n with the checksum. Calculate the checksum by running a command like the following:
\n\n printf %s $eventdata | openssl dgst -binary -sha256 | base64\n
An event from a source outside of Amazon Web Services that you want CloudTrail \n to log.
" } }, "com.amazonaws.cloudtraildata#AuditEventResultEntries": { "type": "list", "member": { "target": "com.amazonaws.cloudtraildata#AuditEventResultEntry" }, "traits": { "smithy.api#length": { "min": 0, "max": 100 } } }, "com.amazonaws.cloudtraildata#AuditEventResultEntry": { "type": "structure", "members": { "id": { "target": "com.amazonaws.cloudtraildata#Uuid", "traits": { "smithy.api#documentation": "The original event ID from the source event.
", "smithy.api#required": {} } }, "eventID": { "target": "com.amazonaws.cloudtraildata#Uuid", "traits": { "smithy.api#documentation": "The event ID assigned by CloudTrail.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "A response that includes successful and failed event results.
" } }, "com.amazonaws.cloudtraildata#AuditEvents": { "type": "list", "member": { "target": "com.amazonaws.cloudtraildata#AuditEvent" }, "traits": { "smithy.api#length": { "min": 1, "max": 100 } } }, "com.amazonaws.cloudtraildata#ChannelArn": { "type": "string", "traits": { "aws.api#arnReference": {}, "smithy.api#pattern": "^arn:.*$" } }, "com.amazonaws.cloudtraildata#ChannelInsufficientPermission": { "type": "structure", "members": { "message": { "target": "smithy.api#String" } }, "traits": { "smithy.api#documentation": "The caller's account ID must be the same as the channel owner's account ID.
", "smithy.api#error": "client" } }, "com.amazonaws.cloudtraildata#ChannelNotFound": { "type": "structure", "members": { "message": { "target": "smithy.api#String" } }, "traits": { "smithy.api#documentation": "The channel could not be found.
", "smithy.api#error": "client" } }, "com.amazonaws.cloudtraildata#ChannelUnsupportedSchema": { "type": "structure", "members": { "message": { "target": "smithy.api#String" } }, "traits": { "smithy.api#documentation": "The schema type of the event is not supported.
", "smithy.api#error": "client" } }, "com.amazonaws.cloudtraildata#CloudTrailDataService": { "type": "service", "version": "2021-08-11", "operations": [ { "target": "com.amazonaws.cloudtraildata#PutAuditEvents" } ], "traits": { "aws.api#service": { "sdkId": "CloudTrail Data", "endpointPrefix": "cloudtrail-data" }, "aws.auth#sigv4": { "name": "cloudtrail-data" }, "aws.protocols#restJson1": {}, "smithy.api#cors": {}, "smithy.api#documentation": "The CloudTrail Data Service lets you ingest events into CloudTrail from any source in your\nhybrid environments, such as in-house or SaaS applications hosted on-premises or in the cloud,\nvirtual machines, or containers. You can store, access, analyze, troubleshoot and take action on\nthis data without maintaining multiple log aggregators and reporting tools. After you run \nPutAuditEvents to ingest your application activity into CloudTrail, you can use CloudTrail Lake to search, query, and analyze the data that is logged\nfrom your applications.
Two or more entries in the request have the same event ID.
", "smithy.api#error": "client" } }, "com.amazonaws.cloudtraildata#ErrorCode": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 128 } } }, "com.amazonaws.cloudtraildata#ErrorMessage": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 1024 } } }, "com.amazonaws.cloudtraildata#ExternalId": { "type": "string", "traits": { "smithy.api#length": { "min": 2, "max": 1224 }, "smithy.api#pattern": "^[\\w+=,.@:\\/-]*$" } }, "com.amazonaws.cloudtraildata#InvalidChannelARN": { "type": "structure", "members": { "message": { "target": "smithy.api#String" } }, "traits": { "smithy.api#documentation": "The specified channel ARN is not a valid \n channel ARN.
", "smithy.api#error": "client" } }, "com.amazonaws.cloudtraildata#PutAuditEvents": { "type": "operation", "input": { "target": "com.amazonaws.cloudtraildata#PutAuditEventsRequest" }, "output": { "target": "com.amazonaws.cloudtraildata#PutAuditEventsResponse" }, "errors": [ { "target": "com.amazonaws.cloudtraildata#ChannelInsufficientPermission" }, { "target": "com.amazonaws.cloudtraildata#ChannelNotFound" }, { "target": "com.amazonaws.cloudtraildata#ChannelUnsupportedSchema" }, { "target": "com.amazonaws.cloudtraildata#DuplicatedAuditEventId" }, { "target": "com.amazonaws.cloudtraildata#InvalidChannelARN" }, { "target": "com.amazonaws.cloudtraildata#UnsupportedOperationException" } ], "traits": { "smithy.api#documentation": "Ingests your application events into CloudTrail Lake. A required parameter,\n auditEvents, accepts the JSON records (also called\n payload) of events that you want CloudTrail to ingest. You\n can add up to 100 of these events (or up to 1 MB) per PutAuditEvents\n request.
The JSON payload of events that you want to ingest. You can also point to the JSON event\n payload in a file.
", "smithy.api#required": {} } }, "channelArn": { "target": "com.amazonaws.cloudtraildata#ChannelArn", "traits": { "smithy.api#documentation": "The ARN or ID (the ARN suffix) of a channel.
", "smithy.api#httpQuery": "channelArn", "smithy.api#required": {} } }, "externalId": { "target": "com.amazonaws.cloudtraildata#ExternalId", "traits": { "smithy.api#documentation": "A unique identifier that is conditionally required when the channel's resource policy includes an external \n ID. This value can be any string, \n such as a passphrase or account number.
", "smithy.api#httpQuery": "externalId" } } } }, "com.amazonaws.cloudtraildata#PutAuditEventsResponse": { "type": "structure", "members": { "successful": { "target": "com.amazonaws.cloudtraildata#AuditEventResultEntries", "traits": { "smithy.api#documentation": "Lists events in the provided event payload that were successfully ingested \n into CloudTrail.
", "smithy.api#required": {} } }, "failed": { "target": "com.amazonaws.cloudtraildata#ResultErrorEntries", "traits": { "smithy.api#documentation": "Lists events in the provided event payload that could not be \n ingested into CloudTrail, and includes the error code and error message \n returned for events that could not be ingested.
", "smithy.api#required": {} } } } }, "com.amazonaws.cloudtraildata#ResultErrorEntries": { "type": "list", "member": { "target": "com.amazonaws.cloudtraildata#ResultErrorEntry" }, "traits": { "smithy.api#length": { "min": 0, "max": 100 } } }, "com.amazonaws.cloudtraildata#ResultErrorEntry": { "type": "structure", "members": { "id": { "target": "com.amazonaws.cloudtraildata#Uuid", "traits": { "smithy.api#documentation": "The original event ID from the source event that could not be ingested by CloudTrail.
", "smithy.api#required": {} } }, "errorCode": { "target": "com.amazonaws.cloudtraildata#ErrorCode", "traits": { "smithy.api#documentation": "The error code for events that could not be ingested by CloudTrail. Possible error codes include: FieldTooLong, FieldNotFound, \n InvalidChecksum, InvalidData, InvalidRecipient, InvalidEventSource, AccountNotSubscribed, \n Throttling, and InternalFailure.
The message that describes the error for events that could not be ingested by CloudTrail.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "Includes the error code and error message for events that could not be ingested by CloudTrail.
" } }, "com.amazonaws.cloudtraildata#UnsupportedOperationException": { "type": "structure", "members": { "message": { "target": "smithy.api#String" } }, "traits": { "smithy.api#documentation": "The operation requested is not supported in this region or account.
", "smithy.api#error": "client" } }, "com.amazonaws.cloudtraildata#Uuid": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 128 }, "smithy.api#pattern": "^[-_A-Za-z0-9]+$" } } } }