openapi: 3.0.0 info: version: '2014-03-28' x-release: v4 title: Amazon CloudWatch Logs description: '

You can use Amazon CloudWatch Logs to monitor, store, and access your log files from EC2 instances, CloudTrail, and other sources. You can then retrieve the associated log data from CloudWatch Logs using the CloudWatch console. Alternatively, you can use CloudWatch Logs commands in the Amazon Web Services CLI, CloudWatch Logs API, or CloudWatch Logs SDK.

You can use CloudWatch Logs to:

' x-logo: url: 'https://twitter.com/awscloud/profile_image?size=original' backgroundColor: '#FFFFFF' termsOfService: 'https://aws.amazon.com/service-terms/' contact: name: Mike Ralphson email: mike.ralphson@gmail.com url: 'https://github.com/mermade/aws2openapi' x-twitter: PermittedSoc license: name: Apache 2.0 License url: 'http://www.apache.org/licenses/' x-providerName: amazonaws.com x-serviceName: logs x-origin: - contentType: application/json url: 'https://raw.githubusercontent.com/aws/aws-sdk-js/master/apis/logs-2014-03-28.normal.json' converter: url: 'https://github.com/mermade/aws2openapi' version: 1.0.0 x-apisguru-driver: external x-apiClientRegistration: url: 'https://portal.aws.amazon.com/gp/aws/developer/registration/index.html?nc2=h_ct' x-apisguru-categories: - cloud x-preferred: true externalDocs: description: Amazon Web Services documentation url: 'https://docs.aws.amazon.com/logs/' servers: - url: 'http://logs.{region}.amazonaws.com' variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - eu-south-1 - af-south-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-east-1 - ap-south-1 - sa-east-1 - me-south-1 default: us-east-1 description: The Amazon CloudWatch Logs multi-region endpoint - url: 'https://logs.{region}.amazonaws.com' variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - eu-south-1 - af-south-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-east-1 - ap-south-1 - sa-east-1 - me-south-1 default: us-east-1 description: The Amazon CloudWatch Logs multi-region endpoint - url: 'http://logs.{region}.amazonaws.com.cn' variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The Amazon CloudWatch Logs endpoint for China (Beijing) and China (Ningxia) - url: 'https://logs.{region}.amazonaws.com.cn' variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The Amazon CloudWatch Logs endpoint for China (Beijing) and China (Ningxia) x-hasEquivalentPaths: true paths: /#X-Amz-Target=Logs_20140328.AssociateKmsKey: post: operationId: AssociateKmsKey description: '

Associates the specified KMS key with either one log group in the account, or with all stored CloudWatch Logs query insights results in the account.

When you use AssociateKmsKey, you specify either the logGroupName parameter or the resourceIdentifier parameter. You can''t specify both of those parameters in the same operation.

If you delete the key that is used to encrypt log events or log group query results, then all the associated stored log events or query results that were encrypted with that key will be unencryptable and unusable.

CloudWatch Logs supports only symmetric KMS keys. Do not use an associate an asymmetric KMS key with your log group or query results. For more information, see Using Symmetric and Asymmetric Keys.

It can take up to 5 minutes for this operation to take effect.

If you attempt to associate a KMS key with a log group but the KMS key does not exist or the KMS key is disabled, you receive an InvalidParameterException error.

' responses: '200': description: Success '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '482': description: OperationAbortedException content: application/json: schema: $ref: '#/components/schemas/OperationAbortedException' '483': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AssociateKmsKeyRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.AssociateKmsKey parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.CancelExportTask: post: operationId: CancelExportTask description:

Cancels the specified export task.

The task must be in the PENDING or RUNNING state.

responses: '200': description: Success '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '482': description: InvalidOperationException content: application/json: schema: $ref: '#/components/schemas/InvalidOperationException' '483': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CancelExportTaskRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.CancelExportTask parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.CreateExportTask: post: operationId: CreateExportTask description: '

Creates an export task so that you can efficiently export data from a log group to an Amazon S3 bucket. When you perform a CreateExportTask operation, you must use credentials that have permission to write to the S3 bucket that you specify as the destination.

Exporting log data to S3 buckets that are encrypted by KMS is supported. Exporting log data to Amazon S3 buckets that have S3 Object Lock enabled with a retention period is also supported.

Exporting to S3 buckets that are encrypted with AES-256 is supported.

This is an asynchronous call. If all the required information is provided, this operation initiates an export task and responds with the ID of the task. After the task has started, you can use DescribeExportTasks to get the status of the export task. Each account can only have one active (RUNNING or PENDING) export task at a time. To cancel an export task, use CancelExportTask.

You can export logs from multiple log groups or multiple time ranges to the same S3 bucket. To separate log data for each export task, specify a prefix to be used as the Amazon S3 key prefix for all exported objects.

Time-based sorting on chunks of log data inside an exported file is not guaranteed. You can sort the exported log field data by using Linux utilities.

' responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/CreateExportTaskResponse' '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: LimitExceededException content: application/json: schema: $ref: '#/components/schemas/LimitExceededException' '482': description: OperationAbortedException content: application/json: schema: $ref: '#/components/schemas/OperationAbortedException' '483': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' '484': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '485': description: ResourceAlreadyExistsException content: application/json: schema: $ref: '#/components/schemas/ResourceAlreadyExistsException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateExportTaskRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.CreateExportTask parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.CreateLogGroup: post: operationId: CreateLogGroup description: '

Creates a log group with the specified name. You can create up to 20,000 log groups per account.

You must use the following guidelines when naming a log group:

When you create a log group, by default the log events in the log group do not expire. To set a retention policy so that events expire and are deleted after a specified time, use PutRetentionPolicy.

If you associate an KMS key with the log group, ingested data is encrypted using the KMS key. This association is stored as long as the data encrypted with the KMS key is still within CloudWatch Logs. This enables CloudWatch Logs to decrypt this data whenever it is requested.

If you attempt to associate a KMS key with the log group but the KMS key does not exist or the KMS key is disabled, you receive an InvalidParameterException error.

CloudWatch Logs supports only symmetric KMS keys. Do not associate an asymmetric KMS key with your log group. For more information, see Using Symmetric and Asymmetric Keys.

' responses: '200': description: Success '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: ResourceAlreadyExistsException content: application/json: schema: $ref: '#/components/schemas/ResourceAlreadyExistsException' '482': description: LimitExceededException content: application/json: schema: $ref: '#/components/schemas/LimitExceededException' '483': description: OperationAbortedException content: application/json: schema: $ref: '#/components/schemas/OperationAbortedException' '484': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateLogGroupRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.CreateLogGroup parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.CreateLogStream: post: operationId: CreateLogStream description: '

Creates a log stream for the specified log group. A log stream is a sequence of log events that originate from a single source, such as an application instance or a resource that is being monitored.

There is no limit on the number of log streams that you can create for a log group. There is a limit of 50 TPS on CreateLogStream operations, after which transactions are throttled.

You must use the following guidelines when naming a log stream:

' responses: '200': description: Success '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: ResourceAlreadyExistsException content: application/json: schema: $ref: '#/components/schemas/ResourceAlreadyExistsException' '482': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '483': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateLogStreamRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.CreateLogStream parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.DeleteAccountPolicy: post: operationId: DeleteAccountPolicy description: '

Deletes a CloudWatch Logs account policy.

To use this operation, you must be signed on with the logs:DeleteDataProtectionPolicy and logs:DeleteAccountPolicy permissions.

' responses: '200': description: Success '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '482': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' '483': description: OperationAbortedException content: application/json: schema: $ref: '#/components/schemas/OperationAbortedException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/DeleteAccountPolicyRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.DeleteAccountPolicy parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.DeleteDataProtectionPolicy: post: operationId: DeleteDataProtectionPolicy description: '

Deletes the data protection policy from the specified log group.

For more information about data protection policies, see PutDataProtectionPolicy.

' responses: '200': description: Success '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: OperationAbortedException content: application/json: schema: $ref: '#/components/schemas/OperationAbortedException' '482': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '483': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/DeleteDataProtectionPolicyRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.DeleteDataProtectionPolicy parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.DeleteDestination: post: operationId: DeleteDestination description: 'Deletes the specified destination, and eventually disables all the subscription filters that publish to it. This operation does not delete the physical resource encapsulated by the destination.' responses: '200': description: Success '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '482': description: OperationAbortedException content: application/json: schema: $ref: '#/components/schemas/OperationAbortedException' '483': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/DeleteDestinationRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.DeleteDestination parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.DeleteLogGroup: post: operationId: DeleteLogGroup description: Deletes the specified log group and permanently deletes all the archived log events associated with the log group. responses: '200': description: Success '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '482': description: OperationAbortedException content: application/json: schema: $ref: '#/components/schemas/OperationAbortedException' '483': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/DeleteLogGroupRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.DeleteLogGroup parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.DeleteLogStream: post: operationId: DeleteLogStream description: Deletes the specified log stream and permanently deletes all the archived log events associated with the log stream. responses: '200': description: Success '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '482': description: OperationAbortedException content: application/json: schema: $ref: '#/components/schemas/OperationAbortedException' '483': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/DeleteLogStreamRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.DeleteLogStream parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.DeleteMetricFilter: post: operationId: DeleteMetricFilter description: Deletes the specified metric filter. responses: '200': description: Success '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '482': description: OperationAbortedException content: application/json: schema: $ref: '#/components/schemas/OperationAbortedException' '483': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/DeleteMetricFilterRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.DeleteMetricFilter parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.DeleteQueryDefinition: post: operationId: DeleteQueryDefinition description: '

Deletes a saved CloudWatch Logs Insights query definition. A query definition contains details about a saved CloudWatch Logs Insights query.

Each DeleteQueryDefinition operation can delete one query definition.

You must have the logs:DeleteQueryDefinition permission to be able to perform this operation.

' responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/DeleteQueryDefinitionResponse' '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '482': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/DeleteQueryDefinitionRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.DeleteQueryDefinition parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.DeleteResourcePolicy: post: operationId: DeleteResourcePolicy description: Deletes a resource policy from this account. This revokes the access of the identities in that policy to put log events to this account. responses: '200': description: Success '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '482': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/DeleteResourcePolicyRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.DeleteResourcePolicy parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.DeleteRetentionPolicy: post: operationId: DeleteRetentionPolicy description:

Deletes the specified retention policy.

Log events do not expire if they belong to log groups without a retention policy.

responses: '200': description: Success '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '482': description: OperationAbortedException content: application/json: schema: $ref: '#/components/schemas/OperationAbortedException' '483': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/DeleteRetentionPolicyRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.DeleteRetentionPolicy parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.DeleteSubscriptionFilter: post: operationId: DeleteSubscriptionFilter description: Deletes the specified subscription filter. responses: '200': description: Success '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '482': description: OperationAbortedException content: application/json: schema: $ref: '#/components/schemas/OperationAbortedException' '483': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/DeleteSubscriptionFilterRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.DeleteSubscriptionFilter parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.DescribeAccountPolicies: post: operationId: DescribeAccountPolicies description: Returns a list of all CloudWatch Logs account policies in the account. responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/DescribeAccountPoliciesResponse' '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: OperationAbortedException content: application/json: schema: $ref: '#/components/schemas/OperationAbortedException' '482': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '483': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/DescribeAccountPoliciesRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.DescribeAccountPolicies parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.DescribeDestinations: post: operationId: DescribeDestinations description: Lists all your destinations. The results are ASCII-sorted by destination name. responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/DescribeDestinationsResponse' '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/DescribeDestinationsRequest' parameters: - name: limit in: query schema: type: string description: Pagination limit required: false - name: nextToken in: query schema: type: string description: Pagination token required: false - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.DescribeDestinations parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.DescribeExportTasks: post: operationId: DescribeExportTasks description: Lists the specified export tasks. You can list all your export tasks or filter the results based on task ID or task status. responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/DescribeExportTasksResponse' '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/DescribeExportTasksRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.DescribeExportTasks parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.DescribeLogGroups: post: operationId: DescribeLogGroups description: '

Lists the specified log groups. You can list all your log groups or filter the results by prefix. The results are ASCII-sorted by log group name.

CloudWatch Logs doesn’t support IAM policies that control access to the DescribeLogGroups action by using the aws:ResourceTag/key-name condition key. Other CloudWatch Logs actions do support the use of the aws:ResourceTag/key-name condition key to control access. For more information about using tags to control access, see Controlling access to Amazon Web Services resources using tags.

If you are using CloudWatch cross-account observability, you can use this operation in a monitoring account and view data from the linked source accounts. For more information, see CloudWatch cross-account observability.

' responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/DescribeLogGroupsResponse' '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/DescribeLogGroupsRequest' parameters: - name: limit in: query schema: type: string description: Pagination limit required: false - name: nextToken in: query schema: type: string description: Pagination token required: false - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.DescribeLogGroups parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.DescribeLogStreams: post: operationId: DescribeLogStreams description: '

Lists the log streams for the specified log group. You can list all the log streams or filter the results by prefix. You can also control how the results are ordered.

You can specify the log group to search by using either logGroupIdentifier or logGroupName. You must include one of these two parameters, but you can''t include both.

This operation has a limit of five transactions per second, after which transactions are throttled.

If you are using CloudWatch cross-account observability, you can use this operation in a monitoring account and view data from the linked source accounts. For more information, see CloudWatch cross-account observability.

' responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/DescribeLogStreamsResponse' '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '482': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/DescribeLogStreamsRequest' parameters: - name: limit in: query schema: type: string description: Pagination limit required: false - name: nextToken in: query schema: type: string description: Pagination token required: false - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.DescribeLogStreams parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.DescribeMetricFilters: post: operationId: DescribeMetricFilters description: 'Lists the specified metric filters. You can list all of the metric filters or filter the results by log name, prefix, metric name, or metric namespace. The results are ASCII-sorted by filter name.' responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/DescribeMetricFiltersResponse' '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '482': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/DescribeMetricFiltersRequest' parameters: - name: limit in: query schema: type: string description: Pagination limit required: false - name: nextToken in: query schema: type: string description: Pagination token required: false - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.DescribeMetricFilters parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.DescribeQueries: post: operationId: DescribeQueries description: 'Returns a list of CloudWatch Logs Insights queries that are scheduled, running, or have been run recently in this account. You can request all queries or limit it to queries of a specific log group or queries with a certain status.' responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/DescribeQueriesResponse' '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '482': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/DescribeQueriesRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.DescribeQueries parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.DescribeQueryDefinitions: post: operationId: DescribeQueryDefinitions description:

This operation returns a paginated list of your saved CloudWatch Logs Insights query definitions.

You can use the queryDefinitionNamePrefix parameter to limit the results to only the query definitions that have names that start with a certain string.

responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/DescribeQueryDefinitionsResponse' '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/DescribeQueryDefinitionsRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.DescribeQueryDefinitions parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.DescribeResourcePolicies: post: operationId: DescribeResourcePolicies description: Lists the resource policies in this account. responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/DescribeResourcePoliciesResponse' '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/DescribeResourcePoliciesRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.DescribeResourcePolicies parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.DescribeSubscriptionFilters: post: operationId: DescribeSubscriptionFilters description: Lists the subscription filters for the specified log group. You can list all the subscription filters or filter the results by prefix. The results are ASCII-sorted by filter name. responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/DescribeSubscriptionFiltersResponse' '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '482': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/DescribeSubscriptionFiltersRequest' parameters: - name: limit in: query schema: type: string description: Pagination limit required: false - name: nextToken in: query schema: type: string description: Pagination token required: false - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.DescribeSubscriptionFilters parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.DisassociateKmsKey: post: operationId: DisassociateKmsKey description: '

Disassociates the specified KMS key from the specified log group or from all CloudWatch Logs Insights query results in the account.

When you use DisassociateKmsKey, you specify either the logGroupName parameter or the resourceIdentifier parameter. You can''t specify both of those parameters in the same operation.

It can take up to 5 minutes for this operation to take effect.

' responses: '200': description: Success '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '482': description: OperationAbortedException content: application/json: schema: $ref: '#/components/schemas/OperationAbortedException' '483': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/DisassociateKmsKeyRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.DisassociateKmsKey parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.FilterLogEvents: post: operationId: FilterLogEvents description: '

Lists log events from the specified log group. You can list all the log events or filter the results using a filter pattern, a time range, and the name of the log stream.

You must have the logs:FilterLogEvents permission to perform this operation.

You can specify the log group to search by using either logGroupIdentifier or logGroupName. You must include one of these two parameters, but you can''t include both.

By default, this operation returns as many log events as can fit in 1 MB (up to 10,000 log events) or all the events found within the specified time range. If the results include a token, that means there are more log events available. You can get additional results by specifying the token in a subsequent call. This operation can return empty results while there are more log events available through the token.

The returned log events are sorted by event timestamp, the timestamp when the event was ingested by CloudWatch Logs, and the ID of the PutLogEvents request.

If you are using CloudWatch cross-account observability, you can use this operation in a monitoring account and view data from the linked source accounts. For more information, see CloudWatch cross-account observability.

' responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/FilterLogEventsResponse' '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '482': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/FilterLogEventsRequest' parameters: - name: limit in: query schema: type: string description: Pagination limit required: false - name: nextToken in: query schema: type: string description: Pagination token required: false - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.FilterLogEvents parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.GetDataProtectionPolicy: post: operationId: GetDataProtectionPolicy description: Returns information about a log group data protection policy. responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/GetDataProtectionPolicyResponse' '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: OperationAbortedException content: application/json: schema: $ref: '#/components/schemas/OperationAbortedException' '482': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '483': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/GetDataProtectionPolicyRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.GetDataProtectionPolicy parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.GetLogEvents: post: operationId: GetLogEvents description: '

Lists log events from the specified log stream. You can list all of the log events or filter using a time range.

By default, this operation returns as many log events as can fit in a response size of 1MB (up to 10,000 log events). You can get additional log events by specifying one of the tokens in a subsequent call. This operation can return empty results while there are more log events available through the token.

If you are using CloudWatch cross-account observability, you can use this operation in a monitoring account and view data from the linked source accounts. For more information, see CloudWatch cross-account observability.

You can specify the log group to search by using either logGroupIdentifier or logGroupName. You must include one of these two parameters, but you can''t include both.

' responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/GetLogEventsResponse' '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '482': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/GetLogEventsRequest' parameters: - name: limit in: query schema: type: string description: Pagination limit required: false - name: nextToken in: query schema: type: string description: Pagination token required: false - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.GetLogEvents parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.GetLogGroupFields: post: operationId: GetLogGroupFields description: '

Returns a list of the fields that are included in log events in the specified log group. Includes the percentage of log events that contain each field. The search is limited to a time period that you specify.

You can specify the log group to search by using either logGroupIdentifier or logGroupName. You must specify one of these parameters, but you can''t specify both.

In the results, fields that start with @ are fields generated by CloudWatch Logs. For example, @timestamp is the timestamp of each log event. For more information about the fields that are generated by CloudWatch logs, see Supported Logs and Discovered Fields.

The response results are sorted by the frequency percentage, starting with the highest percentage.

If you are using CloudWatch cross-account observability, you can use this operation in a monitoring account and view data from the linked source accounts. For more information, see CloudWatch cross-account observability.

' responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/GetLogGroupFieldsResponse' '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: LimitExceededException content: application/json: schema: $ref: '#/components/schemas/LimitExceededException' '482': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '483': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/GetLogGroupFieldsRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.GetLogGroupFields parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.GetLogRecord: post: operationId: GetLogRecord description: '

Retrieves all of the fields and values of a single log event. All fields are retrieved, even if the original query that produced the logRecordPointer retrieved only a subset of fields. Fields are returned as field name/field value pairs.

The full unparsed log event is returned within @message.

' responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/GetLogRecordResponse' '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: LimitExceededException content: application/json: schema: $ref: '#/components/schemas/LimitExceededException' '482': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '483': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/GetLogRecordRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.GetLogRecord parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.GetQueryResults: post: operationId: GetQueryResults description: '

Returns the results from the specified query.

Only the fields requested in the query are returned, along with a @ptr field, which is the identifier for the log record. You can use the value of @ptr in a GetLogRecord operation to get the full log record.

GetQueryResults does not start running a query. To run a query, use StartQuery.

If the value of the Status field in the output is Running, this operation returns only partial results. If you see a value of Scheduled or Running for the status, you can retry the operation later to see the final results.

If you are using CloudWatch cross-account observability, you can use this operation in a monitoring account to start queries in linked source accounts. For more information, see CloudWatch cross-account observability.

' responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/GetQueryResultsResponse' '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '482': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/GetQueryResultsRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.GetQueryResults parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.ListTagsForResource: post: operationId: ListTagsForResource description: 'Displays the tags associated with a CloudWatch Logs resource. Currently, log groups and destinations support tagging.' responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/ListTagsForResourceResponse' '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '482': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ListTagsForResourceRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.ListTagsForResource parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.ListTagsLogGroup: post: deprecated: true operationId: ListTagsLogGroup description: '

The ListTagsLogGroup operation is on the path to deprecation. We recommend that you use ListTagsForResource instead.

Lists the tags for the specified log group.

' responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/ListTagsLogGroupResponse' '480': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '481': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ListTagsLogGroupRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.ListTagsLogGroup parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.PutAccountPolicy: post: operationId: PutAccountPolicy description: '

Creates an account-level data protection policy that applies to all log groups in the account. A data protection policy can help safeguard sensitive data that''s ingested by your log groups by auditing and masking the sensitive log data. Each account can have only one account-level policy.

Sensitive data is detected and masked when it is ingested into a log group. When you set a data protection policy, log events ingested into the log groups before that time are not masked.

If you use PutAccountPolicy to create a data protection policy for your whole account, it applies to both existing log groups and all log groups that are created later in this account. The account policy is applied to existing log groups with eventual consistency. It might take up to 5 minutes before sensitive data in existing log groups begins to be masked.

By default, when a user views a log event that includes masked data, the sensitive data is replaced by asterisks. A user who has the logs:Unmask permission can use a GetLogEvents or FilterLogEvents operation with the unmask parameter set to true to view the unmasked log events. Users with the logs:Unmask can also view unmasked data in the CloudWatch Logs console by running a CloudWatch Logs Insights query with the unmask query command.

For more information, including a list of types of data that can be audited and masked, see Protect sensitive log data with masking.

To use the PutAccountPolicy operation, you must be signed on with the logs:PutDataProtectionPolicy and logs:PutAccountPolicy permissions.

The PutAccountPolicy operation applies to all log groups in the account. You can also use PutDataProtectionPolicy to create a data protection policy that applies to just one log group. If a log group has its own data protection policy and the account also has an account-level data protection policy, then the two policies are cumulative. Any sensitive term specified in either policy is masked.

' responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/PutAccountPolicyResponse' '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: OperationAbortedException content: application/json: schema: $ref: '#/components/schemas/OperationAbortedException' '482': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' '483': description: LimitExceededException content: application/json: schema: $ref: '#/components/schemas/LimitExceededException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/PutAccountPolicyRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.PutAccountPolicy parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.PutDataProtectionPolicy: post: operationId: PutDataProtectionPolicy description: '

Creates a data protection policy for the specified log group. A data protection policy can help safeguard sensitive data that''s ingested by the log group by auditing and masking the sensitive log data.

Sensitive data is detected and masked when it is ingested into the log group. When you set a data protection policy, log events ingested into the log group before that time are not masked.

By default, when a user views a log event that includes masked data, the sensitive data is replaced by asterisks. A user who has the logs:Unmask permission can use a GetLogEvents or FilterLogEvents operation with the unmask parameter set to true to view the unmasked log events. Users with the logs:Unmask can also view unmasked data in the CloudWatch Logs console by running a CloudWatch Logs Insights query with the unmask query command.

For more information, including a list of types of data that can be audited and masked, see Protect sensitive log data with masking.

The PutDataProtectionPolicy operation applies to only the specified log group. You can also use PutAccountPolicy to create an account-level data protection policy that applies to all log groups in the account, including both existing log groups and log groups that are created level. If a log group has its own data protection policy and the account also has an account-level data protection policy, then the two policies are cumulative. Any sensitive term specified in either policy is masked.

' responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/PutDataProtectionPolicyResponse' '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: LimitExceededException content: application/json: schema: $ref: '#/components/schemas/LimitExceededException' '482': description: OperationAbortedException content: application/json: schema: $ref: '#/components/schemas/OperationAbortedException' '483': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '484': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/PutDataProtectionPolicyRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.PutDataProtectionPolicy parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.PutDestination: post: operationId: PutDestination description: '

Creates or updates a destination. This operation is used only to create destinations for cross-account subscriptions.

A destination encapsulates a physical resource (such as an Amazon Kinesis stream). With a destination, you can subscribe to a real-time stream of log events for a different account, ingested using PutLogEvents.

Through an access policy, a destination controls what is written to it. By default, PutDestination does not set any access policy with the destination, which means a cross-account user cannot call PutSubscriptionFilter against this destination. To enable this, the destination owner must call PutDestinationPolicy after PutDestination.

To perform a PutDestination operation, you must also have the iam:PassRole permission.

' responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/PutDestinationResponse' '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: OperationAbortedException content: application/json: schema: $ref: '#/components/schemas/OperationAbortedException' '482': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/PutDestinationRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.PutDestination parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.PutDestinationPolicy: post: operationId: PutDestinationPolicy description: 'Creates or updates an access policy associated with an existing destination. An access policy is an IAM policy document that is used to authorize claims to register a subscription filter against a given destination.' responses: '200': description: Success '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: OperationAbortedException content: application/json: schema: $ref: '#/components/schemas/OperationAbortedException' '482': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/PutDestinationPolicyRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.PutDestinationPolicy parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.PutLogEvents: post: operationId: PutLogEvents description: '

Uploads a batch of log events to the specified log stream.

The sequence token is now ignored in PutLogEvents actions. PutLogEvents actions are always accepted and never return InvalidSequenceTokenException or DataAlreadyAcceptedException even if the sequence token is not valid. You can use parallel PutLogEvents actions on the same log stream.

The batch of events must satisfy the following constraints:

If a call to PutLogEvents returns "UnrecognizedClientException" the most likely cause is a non-valid Amazon Web Services access key ID or secret key.

' responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/PutLogEventsResponse' '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: InvalidSequenceTokenException content: application/json: schema: $ref: '#/components/schemas/InvalidSequenceTokenException' '482': description: DataAlreadyAcceptedException content: application/json: schema: $ref: '#/components/schemas/DataAlreadyAcceptedException' '483': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '484': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' '485': description: UnrecognizedClientException content: application/json: schema: $ref: '#/components/schemas/UnrecognizedClientException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/PutLogEventsRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.PutLogEvents parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.PutMetricFilter: post: operationId: PutMetricFilter description: '

Creates or updates a metric filter and associates it with the specified log group. With metric filters, you can configure rules to extract metric data from log events ingested through PutLogEvents.

The maximum number of metric filters that can be associated with a log group is 100.

When you create a metric filter, you can also optionally assign a unit and dimensions to the metric that is created.

Metrics extracted from log events are charged as custom metrics. To prevent unexpected high charges, do not specify high-cardinality fields such as IPAddress or requestID as dimensions. Each different value found for a dimension is treated as a separate metric and accrues charges as a separate custom metric.

CloudWatch Logs disables a metric filter if it generates 1,000 different name/value pairs for your specified dimensions within a certain amount of time. This helps to prevent accidental high charges.

You can also set up a billing alarm to alert you if your charges are higher than expected. For more information, see Creating a Billing Alarm to Monitor Your Estimated Amazon Web Services Charges.

' responses: '200': description: Success '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '482': description: OperationAbortedException content: application/json: schema: $ref: '#/components/schemas/OperationAbortedException' '483': description: LimitExceededException content: application/json: schema: $ref: '#/components/schemas/LimitExceededException' '484': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/PutMetricFilterRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.PutMetricFilter parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.PutQueryDefinition: post: operationId: PutQueryDefinition description: '

Creates or updates a query definition for CloudWatch Logs Insights. For more information, see Analyzing Log Data with CloudWatch Logs Insights.

To update a query definition, specify its queryDefinitionId in your request. The values of name, queryString, and logGroupNames are changed to the values that you specify in your update operation. No current values are retained from the current query definition. For example, imagine updating a current query definition that includes log groups. If you don''t specify the logGroupNames parameter in your update operation, the query definition changes to contain no log groups.

You must have the logs:PutQueryDefinition permission to be able to perform this operation.

' responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/PutQueryDefinitionResponse' '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: LimitExceededException content: application/json: schema: $ref: '#/components/schemas/LimitExceededException' '482': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '483': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/PutQueryDefinitionRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.PutQueryDefinition parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.PutResourcePolicy: post: operationId: PutResourcePolicy description: 'Creates or updates a resource policy allowing other Amazon Web Services services to put log events to this account, such as Amazon Route 53. An account can have up to 10 resource policies per Amazon Web Services Region.' responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/PutResourcePolicyResponse' '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: LimitExceededException content: application/json: schema: $ref: '#/components/schemas/LimitExceededException' '482': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/PutResourcePolicyRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.PutResourcePolicy parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.PutRetentionPolicy: post: operationId: PutRetentionPolicy description: '

Sets the retention of the specified log group. With a retention policy, you can configure the number of days for which to retain log events in the specified log group.

CloudWatch Logs doesn’t immediately delete log events when they reach their retention setting. It typically takes up to 72 hours after that before log events are deleted, but in rare situations might take longer.

To illustrate, imagine that you change a log group to have a longer retention setting when it contains log events that are past the expiration date, but haven’t been deleted. Those log events will take up to 72 hours to be deleted after the new retention date is reached. To make sure that log data is deleted permanently, keep a log group at its lower retention setting until 72 hours after the previous retention period ends. Alternatively, wait to change the retention setting until you confirm that the earlier log events are deleted.

' responses: '200': description: Success '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '482': description: OperationAbortedException content: application/json: schema: $ref: '#/components/schemas/OperationAbortedException' '483': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/PutRetentionPolicyRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.PutRetentionPolicy parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.PutSubscriptionFilter: post: operationId: PutSubscriptionFilter description: '

Creates or updates a subscription filter and associates it with the specified log group. With subscription filters, you can subscribe to a real-time stream of log events ingested through PutLogEvents and have them delivered to a specific destination. When log events are sent to the receiving service, they are Base64 encoded and compressed with the GZIP format.

The following destinations are supported for subscription filters:

Each log group can have up to two subscription filters associated with it. If you are updating an existing filter, you must specify the correct name in filterName.

To perform a PutSubscriptionFilter operation for any destination except a Lambda function, you must also have the iam:PassRole permission.

' responses: '200': description: Success '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '482': description: OperationAbortedException content: application/json: schema: $ref: '#/components/schemas/OperationAbortedException' '483': description: LimitExceededException content: application/json: schema: $ref: '#/components/schemas/LimitExceededException' '484': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/PutSubscriptionFilterRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.PutSubscriptionFilter parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.StartQuery: post: operationId: StartQuery description: '

Schedules a query of a log group using CloudWatch Logs Insights. You specify the log group and time range to query and the query string to use.

For more information, see CloudWatch Logs Insights Query Syntax.

After you run a query using StartQuery, the query results are stored by CloudWatch Logs. You can use GetQueryResults to retrieve the results of a query, using the queryId that StartQuery returns.

If you have associated a KMS key with the query results in this account, then StartQuery uses that key to encrypt the results when it stores them. If no key is associated with query results, the query results are encrypted with the default CloudWatch Logs encryption method.

Queries time out after 60 minutes of runtime. If your queries are timing out, reduce the time range being searched or partition your query into a number of queries.

If you are using CloudWatch cross-account observability, you can use this operation in a monitoring account to start a query in a linked source account. For more information, see CloudWatch cross-account observability. For a cross-account StartQuery operation, the query definition must be defined in the monitoring account.

You can have up to 30 concurrent CloudWatch Logs insights queries, including queries that have been added to dashboards.

' responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/StartQueryResponse' '480': description: MalformedQueryException content: application/json: schema: $ref: '#/components/schemas/MalformedQueryException' '481': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '482': description: LimitExceededException content: application/json: schema: $ref: '#/components/schemas/LimitExceededException' '483': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '484': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/StartQueryRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.StartQuery parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.StopQuery: post: operationId: StopQuery description: 'Stops a CloudWatch Logs Insights query that is in progress. If the query has already ended, the operation returns an error indicating that the specified query is not running.' responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/StopQueryResponse' '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '482': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/StopQueryRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.StopQuery parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.TagLogGroup: post: deprecated: true operationId: TagLogGroup description: '

The TagLogGroup operation is on the path to deprecation. We recommend that you use TagResource instead.

Adds or updates the specified tags for the specified log group.

To list the tags for a log group, use ListTagsForResource. To remove tags, use UntagResource.

For more information about tags, see Tag Log Groups in Amazon CloudWatch Logs in the Amazon CloudWatch Logs User Guide.

CloudWatch Logs doesn’t support IAM policies that prevent users from assigning specified tags to log groups using the aws:Resource/key-name or aws:TagKeys condition keys. For more information about using tags to control access, see Controlling access to Amazon Web Services resources using tags.

' responses: '200': description: Success '480': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '481': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/TagLogGroupRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.TagLogGroup parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.TagResource: post: operationId: TagResource description: '

Assigns one or more tags (key-value pairs) to the specified CloudWatch Logs resource. Currently, the only CloudWatch Logs resources that can be tagged are log groups and destinations.

Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.

Tags don''t have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.

You can use the TagResource action with a resource that already has tags. If you specify a new tag key for the alarm, this tag is appended to the list of tags associated with the alarm. If you specify a tag key that is already associated with the alarm, the new tag value that you specify replaces the previous value for that tag.

You can associate as many as 50 tags with a CloudWatch Logs resource.

' responses: '200': description: Success '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '482': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' '483': description: TooManyTagsException content: application/json: schema: $ref: '#/components/schemas/TooManyTagsException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/TagResourceRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.TagResource parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.TestMetricFilter: post: operationId: TestMetricFilter description: Tests the filter pattern of a metric filter against a sample of log event messages. You can use this operation to validate the correctness of a metric filter pattern. responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/TestMetricFilterResponse' '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/TestMetricFilterRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.TestMetricFilter parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.UntagLogGroup: post: deprecated: true operationId: UntagLogGroup description: '

The UntagLogGroup operation is on the path to deprecation. We recommend that you use UntagResource instead.

Removes the specified tags from the specified log group.

To list the tags for a log group, use ListTagsForResource. To add tags, use TagResource.

CloudWatch Logs doesn’t support IAM policies that prevent users from assigning specified tags to log groups using the aws:Resource/key-name or aws:TagKeys condition keys.

' responses: '200': description: Success '480': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UntagLogGroupRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.UntagLogGroup parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' /#X-Amz-Target=Logs_20140328.UntagResource: post: operationId: UntagResource description: Removes one or more tags from the specified resource. responses: '200': description: Success '480': description: InvalidParameterException content: application/json: schema: $ref: '#/components/schemas/InvalidParameterException' '481': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '482': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UntagResourceRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - Logs_20140328.UntagResource parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' components: parameters: X-Amz-Content-Sha256: name: X-Amz-Content-Sha256 in: header schema: type: string required: false X-Amz-Date: name: X-Amz-Date in: header schema: type: string required: false X-Amz-Algorithm: name: X-Amz-Algorithm in: header schema: type: string required: false X-Amz-Credential: name: X-Amz-Credential in: header schema: type: string required: false X-Amz-Security-Token: name: X-Amz-Security-Token in: header schema: type: string required: false X-Amz-Signature: name: X-Amz-Signature in: header schema: type: string required: false X-Amz-SignedHeaders: name: X-Amz-SignedHeaders in: header schema: type: string required: false securitySchemes: hmac: type: apiKey name: Authorization in: header description: Amazon Signature authorization v4 x-amazon-apigateway-authtype: awsSigv4 schemas: AssociateKmsKeyRequest: type: object required: - kmsKeyId title: AssociateKmsKeyRequest properties: logGroupName: allOf: - $ref: '#/components/schemas/LogGroupName' - description: '

The name of the log group.

In your AssociateKmsKey operation, you must specify either the resourceIdentifier parameter or the logGroup parameter, but you can''t specify both.

' kmsKeyId: allOf: - $ref: '#/components/schemas/KmsKeyId' - description: 'The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data. This must be a symmetric KMS key. For more information, see Amazon Resource Names and Using Symmetric and Asymmetric Keys.' resourceIdentifier: allOf: - $ref: '#/components/schemas/ResourceIdentifier' - description: '

Specifies the target for this operation. You must specify one of the following:

In your AssociateKmsKey operation, you must specify either the resourceIdentifier parameter or the logGroup parameter, but you can''t specify both.

' InvalidParameterException: {} ResourceNotFoundException: {} OperationAbortedException: {} ServiceUnavailableException: {} CancelExportTaskRequest: type: object required: - taskId title: CancelExportTaskRequest properties: taskId: allOf: - $ref: '#/components/schemas/ExportTaskId' - description: The ID of the export task. InvalidOperationException: {} CreateExportTaskResponse: type: object properties: taskId: allOf: - $ref: '#/components/schemas/ExportTaskId' - description: The ID of the export task. CreateExportTaskRequest: type: object required: - logGroupName - from - to - destination title: CreateExportTaskRequest properties: taskName: allOf: - $ref: '#/components/schemas/ExportTaskName' - description: The name of the export task. logGroupName: allOf: - $ref: '#/components/schemas/LogGroupName' - description: The name of the log group. logStreamNamePrefix: allOf: - $ref: '#/components/schemas/LogStreamName' - description: 'Export only log streams that match the provided prefix. If you don''t specify a value, no prefix filter is applied.' from: allOf: - $ref: '#/components/schemas/Timestamp' - description: 'The start time of the range for the request, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a timestamp earlier than this time are not exported.' to: allOf: - $ref: '#/components/schemas/Timestamp' - description: '

The end time of the range for the request, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than this time are not exported.

You must specify a time that is not earlier than when this log group was created.

' destination: allOf: - $ref: '#/components/schemas/ExportDestinationBucket' - description: The name of S3 bucket for the exported log data. The bucket must be in the same Amazon Web Services Region. destinationPrefix: allOf: - $ref: '#/components/schemas/ExportDestinationPrefix' - description: 'The prefix used as the start of the key for every object exported. If you don''t specify a value, the default is exportedlogs.' LimitExceededException: {} ResourceAlreadyExistsException: {} CreateLogGroupRequest: type: object required: - logGroupName title: CreateLogGroupRequest properties: logGroupName: allOf: - $ref: '#/components/schemas/LogGroupName' - description: The name of the log group. kmsKeyId: allOf: - $ref: '#/components/schemas/KmsKeyId' - description: 'The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data. For more information, see Amazon Resource Names.' tags: allOf: - $ref: '#/components/schemas/Tags' - description: '

The key-value pairs to use for the tags.

You can grant users access to certain log groups while preventing them from accessing other log groups. To do so, tag your groups and use IAM policies that refer to those tags. To assign tags when you create a log group, you must have either the logs:TagResource or logs:TagLogGroup permission. For more information about tagging, see Tagging Amazon Web Services resources. For more information about using tags to control access, see Controlling access to Amazon Web Services resources using tags.

' CreateLogStreamRequest: type: object required: - logGroupName - logStreamName title: CreateLogStreamRequest properties: logGroupName: allOf: - $ref: '#/components/schemas/LogGroupName' - description: The name of the log group. logStreamName: allOf: - $ref: '#/components/schemas/LogStreamName' - description: The name of the log stream. DeleteAccountPolicyRequest: type: object required: - policyName - policyType title: DeleteAccountPolicyRequest properties: policyName: allOf: - $ref: '#/components/schemas/PolicyName' - description: The name of the policy to delete. policyType: allOf: - $ref: '#/components/schemas/PolicyType' - description: 'The type of policy to delete. Currently, the only valid value is DATA_PROTECTION_POLICY.' DeleteDataProtectionPolicyRequest: type: object required: - logGroupIdentifier title: DeleteDataProtectionPolicyRequest properties: logGroupIdentifier: allOf: - $ref: '#/components/schemas/LogGroupIdentifier' - description: The name or ARN of the log group that you want to delete the data protection policy for. DeleteDestinationRequest: type: object required: - destinationName title: DeleteDestinationRequest properties: destinationName: allOf: - $ref: '#/components/schemas/DestinationName' - description: The name of the destination. DeleteLogGroupRequest: type: object required: - logGroupName title: DeleteLogGroupRequest properties: logGroupName: allOf: - $ref: '#/components/schemas/LogGroupName' - description: The name of the log group. DeleteLogStreamRequest: type: object required: - logGroupName - logStreamName title: DeleteLogStreamRequest properties: logGroupName: allOf: - $ref: '#/components/schemas/LogGroupName' - description: The name of the log group. logStreamName: allOf: - $ref: '#/components/schemas/LogStreamName' - description: The name of the log stream. DeleteMetricFilterRequest: type: object required: - logGroupName - filterName title: DeleteMetricFilterRequest properties: logGroupName: allOf: - $ref: '#/components/schemas/LogGroupName' - description: The name of the log group. filterName: allOf: - $ref: '#/components/schemas/FilterName' - description: The name of the metric filter. DeleteQueryDefinitionResponse: type: object properties: success: allOf: - $ref: '#/components/schemas/Success' - description: A value of TRUE indicates that the operation succeeded. FALSE indicates that the operation failed. DeleteQueryDefinitionRequest: type: object required: - queryDefinitionId title: DeleteQueryDefinitionRequest properties: queryDefinitionId: allOf: - $ref: '#/components/schemas/QueryId' - description: 'The ID of the query definition that you want to delete. You can use DescribeQueryDefinitions to retrieve the IDs of your saved query definitions.' DeleteResourcePolicyRequest: type: object title: DeleteResourcePolicyRequest properties: policyName: allOf: - $ref: '#/components/schemas/PolicyName' - description: The name of the policy to be revoked. This parameter is required. DeleteRetentionPolicyRequest: type: object required: - logGroupName title: DeleteRetentionPolicyRequest properties: logGroupName: allOf: - $ref: '#/components/schemas/LogGroupName' - description: The name of the log group. DeleteSubscriptionFilterRequest: type: object required: - logGroupName - filterName title: DeleteSubscriptionFilterRequest properties: logGroupName: allOf: - $ref: '#/components/schemas/LogGroupName' - description: The name of the log group. filterName: allOf: - $ref: '#/components/schemas/FilterName' - description: The name of the subscription filter. DescribeAccountPoliciesResponse: type: object properties: accountPolicies: allOf: - $ref: '#/components/schemas/AccountPolicies' - description: An array of structures that contain information about the CloudWatch Logs account policies that match the specified filters. DescribeAccountPoliciesRequest: type: object required: - policyType title: DescribeAccountPoliciesRequest properties: policyType: allOf: - $ref: '#/components/schemas/PolicyType' - description: 'Use this parameter to limit the returned policies to only the policies that match the policy type that you specify. Currently, the only valid value is DATA_PROTECTION_POLICY.' policyName: allOf: - $ref: '#/components/schemas/PolicyName' - description: Use this parameter to limit the returned policies to only the policy with the name that you specify. accountIdentifiers: allOf: - $ref: '#/components/schemas/AccountIds' - description: '

If you are using an account that is set up as a monitoring account for CloudWatch unified cross-account observability, you can use this to specify the account ID of a source account. If you do, the operation returns the account policy for the specified account. Currently, you can specify only one account ID in this parameter.

If you omit this parameter, only the policy in the current account is returned.

' DescribeDestinationsResponse: type: object properties: destinations: allOf: - $ref: '#/components/schemas/Destinations' - description: The destinations. nextToken: $ref: '#/components/schemas/NextToken' DescribeDestinationsRequest: type: object title: DescribeDestinationsRequest properties: DestinationNamePrefix: allOf: - $ref: '#/components/schemas/DestinationName' - description: 'The prefix to match. If you don''t specify a value, no prefix filter is applied.' nextToken: allOf: - $ref: '#/components/schemas/NextToken' - description: The token for the next set of items to return. (You received this token from a previous call.) limit: allOf: - $ref: '#/components/schemas/DescribeLimit' - description: 'The maximum number of items returned. If you don''t specify a value, the default maximum value of 50 items is used.' DescribeExportTasksResponse: type: object properties: exportTasks: allOf: - $ref: '#/components/schemas/ExportTasks' - description: The export tasks. nextToken: $ref: '#/components/schemas/NextToken' DescribeExportTasksRequest: type: object title: DescribeExportTasksRequest properties: taskId: allOf: - $ref: '#/components/schemas/ExportTaskId' - description: The ID of the export task. Specifying a task ID filters the results to one or zero export tasks. statusCode: allOf: - $ref: '#/components/schemas/ExportTaskStatusCode' - description: The status code of the export task. Specifying a status code filters the results to zero or more export tasks. nextToken: allOf: - $ref: '#/components/schemas/NextToken' - description: The token for the next set of items to return. (You received this token from a previous call.) limit: allOf: - $ref: '#/components/schemas/DescribeLimit' - description: 'The maximum number of items returned. If you don''t specify a value, the default is up to 50 items.' DescribeLogGroupsResponse: type: object properties: logGroups: allOf: - $ref: '#/components/schemas/LogGroups' - description: '

The log groups.

If the retentionInDays value is not included for a log group, then that log group''s events do not expire.

' nextToken: $ref: '#/components/schemas/NextToken' DescribeLogGroupsRequest: type: object title: DescribeLogGroupsRequest properties: accountIdentifiers: allOf: - $ref: '#/components/schemas/AccountIds' - description: 'When includeLinkedAccounts is set to True, use this parameter to specify the list of accounts to search. You can specify as many as 20 account IDs in the array. ' logGroupNamePrefix: allOf: - $ref: '#/components/schemas/LogGroupName' - description:

The prefix to match.

logGroupNamePrefix and logGroupNamePattern are mutually exclusive. Only one of these parameters can be passed.

logGroupNamePattern: allOf: - $ref: '#/components/schemas/LogGroupNamePattern' - description: '

If you specify a string for this parameter, the operation returns only log groups that have names that match the string based on a case-sensitive substring search. For example, if you specify Foo, log groups named FooBar, aws/Foo, and GroupFoo would match, but foo, F/o/o and Froo would not match.

If you specify logGroupNamePattern in your request, then only arn, creationTime, and logGroupName are included in the response.

logGroupNamePattern and logGroupNamePrefix are mutually exclusive. Only one of these parameters can be passed.

' nextToken: allOf: - $ref: '#/components/schemas/NextToken' - description: The token for the next set of items to return. (You received this token from a previous call.) limit: allOf: - $ref: '#/components/schemas/DescribeLimit' - description: 'The maximum number of items returned. If you don''t specify a value, the default is up to 50 items.' includeLinkedAccounts: allOf: - $ref: '#/components/schemas/IncludeLinkedAccounts' - description: '

If you are using a monitoring account, set this to True to have the operation return log groups in the accounts listed in accountIdentifiers.

If this parameter is set to true and accountIdentifiers contains a null value, the operation returns all log groups in the monitoring account and all log groups in all source accounts that are linked to the monitoring account.

' DescribeLogStreamsResponse: type: object properties: logStreams: allOf: - $ref: '#/components/schemas/LogStreams' - description: The log streams. nextToken: $ref: '#/components/schemas/NextToken' DescribeLogStreamsRequest: type: object title: DescribeLogStreamsRequest properties: logGroupName: allOf: - $ref: '#/components/schemas/LogGroupName' - description: '

The name of the log group.

You must include either logGroupIdentifier or logGroupName, but not both.

' logGroupIdentifier: allOf: - $ref: '#/components/schemas/LogGroupIdentifier' - description: '

Specify either the name or ARN of the log group to view. If the log group is in a source account and you are using a monitoring account, you must use the log group ARN.

You must include either logGroupIdentifier or logGroupName, but not both.

' logStreamNamePrefix: allOf: - $ref: '#/components/schemas/LogStreamName' - description: '

The prefix to match.

If orderBy is LastEventTime, you cannot specify this parameter.

' orderBy: allOf: - $ref: '#/components/schemas/OrderBy' - description: '

If the value is LogStreamName, the results are ordered by log stream name. If the value is LastEventTime, the results are ordered by the event time. The default value is LogStreamName.

If you order the results by event time, you cannot specify the logStreamNamePrefix parameter.

lastEventTimestamp represents the time of the most recent log event in the log stream in CloudWatch Logs. This number is expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. lastEventTimestamp updates on an eventual consistency basis. It typically updates in less than an hour from ingestion, but in rare situations might take longer.

' descending: allOf: - $ref: '#/components/schemas/Descending' - description: 'If the value is true, results are returned in descending order. If the value is to false, results are returned in ascending order. The default value is false.' nextToken: allOf: - $ref: '#/components/schemas/NextToken' - description: The token for the next set of items to return. (You received this token from a previous call.) limit: allOf: - $ref: '#/components/schemas/DescribeLimit' - description: 'The maximum number of items returned. If you don''t specify a value, the default is up to 50 items.' DescribeMetricFiltersResponse: type: object properties: metricFilters: allOf: - $ref: '#/components/schemas/MetricFilters' - description: The metric filters. nextToken: $ref: '#/components/schemas/NextToken' DescribeMetricFiltersRequest: type: object title: DescribeMetricFiltersRequest properties: logGroupName: allOf: - $ref: '#/components/schemas/LogGroupName' - description: The name of the log group. filterNamePrefix: allOf: - $ref: '#/components/schemas/FilterName' - description: The prefix to match. CloudWatch Logs uses the value that you set here only if you also include the logGroupName parameter in your request. nextToken: allOf: - $ref: '#/components/schemas/NextToken' - description: The token for the next set of items to return. (You received this token from a previous call.) limit: allOf: - $ref: '#/components/schemas/DescribeLimit' - description: 'The maximum number of items returned. If you don''t specify a value, the default is up to 50 items.' metricName: allOf: - $ref: '#/components/schemas/MetricName' - description: 'Filters results to include only those with the specified metric name. If you include this parameter in your request, you must also include the metricNamespace parameter.' metricNamespace: allOf: - $ref: '#/components/schemas/MetricNamespace' - description: 'Filters results to include only those in the specified namespace. If you include this parameter in your request, you must also include the metricName parameter.' DescribeQueriesResponse: type: object properties: queries: allOf: - $ref: '#/components/schemas/QueryInfoList' - description: The list of queries that match the request. nextToken: $ref: '#/components/schemas/NextToken' DescribeQueriesRequest: type: object title: DescribeQueriesRequest properties: logGroupName: allOf: - $ref: '#/components/schemas/LogGroupName' - description: Limits the returned queries to only those for the specified log group. status: allOf: - $ref: '#/components/schemas/QueryStatus' - description: 'Limits the returned queries to only those that have the specified status. Valid values are Cancelled, Complete, Failed, Running, and Scheduled.' maxResults: allOf: - $ref: '#/components/schemas/DescribeQueriesMaxResults' - description: Limits the number of returned queries to the specified number. nextToken: $ref: '#/components/schemas/NextToken' DescribeQueryDefinitionsResponse: type: object properties: queryDefinitions: allOf: - $ref: '#/components/schemas/QueryDefinitionList' - description: The list of query definitions that match your request. nextToken: $ref: '#/components/schemas/NextToken' DescribeQueryDefinitionsRequest: type: object title: DescribeQueryDefinitionsRequest properties: queryDefinitionNamePrefix: allOf: - $ref: '#/components/schemas/QueryDefinitionName' - description: Use this parameter to filter your results to only the query definitions that have names that start with the prefix you specify. maxResults: allOf: - $ref: '#/components/schemas/QueryListMaxResults' - description: Limits the number of returned query definitions to the specified number. nextToken: $ref: '#/components/schemas/NextToken' DescribeResourcePoliciesResponse: type: object properties: resourcePolicies: allOf: - $ref: '#/components/schemas/ResourcePolicies' - description: The resource policies that exist in this account. nextToken: $ref: '#/components/schemas/NextToken' DescribeResourcePoliciesRequest: type: object title: DescribeResourcePoliciesRequest properties: nextToken: $ref: '#/components/schemas/NextToken' limit: allOf: - $ref: '#/components/schemas/DescribeLimit' - description: The maximum number of resource policies to be displayed with one call of this API. DescribeSubscriptionFiltersResponse: type: object properties: subscriptionFilters: allOf: - $ref: '#/components/schemas/SubscriptionFilters' - description: The subscription filters. nextToken: $ref: '#/components/schemas/NextToken' DescribeSubscriptionFiltersRequest: type: object required: - logGroupName title: DescribeSubscriptionFiltersRequest properties: logGroupName: allOf: - $ref: '#/components/schemas/LogGroupName' - description: The name of the log group. filterNamePrefix: allOf: - $ref: '#/components/schemas/FilterName' - description: 'The prefix to match. If you don''t specify a value, no prefix filter is applied.' nextToken: allOf: - $ref: '#/components/schemas/NextToken' - description: The token for the next set of items to return. (You received this token from a previous call.) limit: allOf: - $ref: '#/components/schemas/DescribeLimit' - description: 'The maximum number of items returned. If you don''t specify a value, the default is up to 50 items.' DisassociateKmsKeyRequest: type: object title: DisassociateKmsKeyRequest properties: logGroupName: allOf: - $ref: '#/components/schemas/LogGroupName' - description: '

The name of the log group.

In your DisassociateKmsKey operation, you must specify either the resourceIdentifier parameter or the logGroup parameter, but you can''t specify both.

' resourceIdentifier: allOf: - $ref: '#/components/schemas/ResourceIdentifier' - description: '

Specifies the target for this operation. You must specify one of the following:

In your DisssociateKmsKey operation, you must specify either the resourceIdentifier parameter or the logGroup parameter, but you can''t specify both.

' FilterLogEventsResponse: type: object properties: events: allOf: - $ref: '#/components/schemas/FilteredLogEvents' - description: The matched events. searchedLogStreams: allOf: - $ref: '#/components/schemas/SearchedLogStreams' - description: '

Important As of May 15, 2020, this parameter is no longer supported. This parameter returns an empty list.

Indicates which log streams have been searched and whether each has been searched completely.

' nextToken: allOf: - $ref: '#/components/schemas/NextToken' - description: The token to use when requesting the next set of items. The token expires after 24 hours. FilterLogEventsRequest: type: object title: FilterLogEventsRequest properties: logGroupName: allOf: - $ref: '#/components/schemas/LogGroupName' - description: '

The name of the log group to search.

You must include either logGroupIdentifier or logGroupName, but not both.

' logGroupIdentifier: allOf: - $ref: '#/components/schemas/LogGroupIdentifier' - description: '

Specify either the name or ARN of the log group to view log events from. If the log group is in a source account and you are using a monitoring account, you must use the log group ARN.

You must include either logGroupIdentifier or logGroupName, but not both.

' logStreamNames: allOf: - $ref: '#/components/schemas/InputLogStreamNames' - description: '

Filters the results to only logs from the log streams in this list.

If you specify a value for both logStreamNamePrefix and logStreamNames, the action returns an InvalidParameterException error.

' logStreamNamePrefix: allOf: - $ref: '#/components/schemas/LogStreamName' - description: '

Filters the results to include only events from log streams that have names starting with this prefix.

If you specify a value for both logStreamNamePrefix and logStreamNames, but the value for logStreamNamePrefix does not match any log stream names specified in logStreamNames, the action returns an InvalidParameterException error.

' startTime: allOf: - $ref: '#/components/schemas/Timestamp' - description: 'The start of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a timestamp before this time are not returned.' endTime: allOf: - $ref: '#/components/schemas/Timestamp' - description: 'The end of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than this time are not returned.' filterPattern: allOf: - $ref: '#/components/schemas/FilterPattern' - description: '

The filter pattern to use. For more information, see Filter and Pattern Syntax.

If not provided, all the events are matched.

' nextToken: allOf: - $ref: '#/components/schemas/NextToken' - description: The token for the next set of events to return. (You received this token from a previous call.) limit: allOf: - $ref: '#/components/schemas/EventsLimit' - description: 'The maximum number of events to return. The default is 10,000 events.' interleaved: allOf: - $ref: '#/components/schemas/Interleaved' - deprecated: true description: '

If the value is true, the operation attempts to provide responses that contain events from multiple log streams within the log group, interleaved in a single response. If the value is false, all the matched log events in the first log stream are searched first, then those in the next log stream, and so on.

Important As of June 17, 2019, this parameter is ignored and the value is assumed to be true. The response from this operation always interleaves events from multiple log streams within a log group.

Starting on June 17, 2019, this parameter will be ignored and the value will be assumed to be true. The response from this operation will always interleave events from multiple log streams within a log group.' unmask: allOf: - $ref: '#/components/schemas/Unmask' - description: '

Specify true to display the log event fields with all sensitive data unmasked and visible. The default is false.

To use this operation with this parameter, you must be signed into an account with the logs:Unmask permission.

' GetDataProtectionPolicyResponse: type: object properties: logGroupIdentifier: allOf: - $ref: '#/components/schemas/LogGroupIdentifier' - description: The log group name or ARN that you specified in your request. policyDocument: allOf: - $ref: '#/components/schemas/DataProtectionPolicyDocument' - description: The data protection policy document for this log group. lastUpdatedTime: allOf: - $ref: '#/components/schemas/Timestamp' - description: The date and time that this policy was most recently updated. GetDataProtectionPolicyRequest: type: object required: - logGroupIdentifier title: GetDataProtectionPolicyRequest properties: logGroupIdentifier: allOf: - $ref: '#/components/schemas/LogGroupIdentifier' - description: The name or ARN of the log group that contains the data protection policy that you want to see. GetLogEventsResponse: type: object properties: events: allOf: - $ref: '#/components/schemas/OutputLogEvents' - description: The events. nextForwardToken: allOf: - $ref: '#/components/schemas/NextToken' - description: 'The token for the next set of items in the forward direction. The token expires after 24 hours. If you have reached the end of the stream, it returns the same token you passed in.' nextBackwardToken: allOf: - $ref: '#/components/schemas/NextToken' - description: 'The token for the next set of items in the backward direction. The token expires after 24 hours. This token is not null. If you have reached the end of the stream, it returns the same token you passed in.' GetLogEventsRequest: type: object required: - logStreamName title: GetLogEventsRequest properties: logGroupName: allOf: - $ref: '#/components/schemas/LogGroupName' - description: '

The name of the log group.

You must include either logGroupIdentifier or logGroupName, but not both.

' logGroupIdentifier: allOf: - $ref: '#/components/schemas/LogGroupIdentifier' - description: '

Specify either the name or ARN of the log group to view events from. If the log group is in a source account and you are using a monitoring account, you must use the log group ARN.

You must include either logGroupIdentifier or logGroupName, but not both.

' logStreamName: allOf: - $ref: '#/components/schemas/LogStreamName' - description: The name of the log stream. startTime: allOf: - $ref: '#/components/schemas/Timestamp' - description: 'The start of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a timestamp equal to this time or later than this time are included. Events with a timestamp earlier than this time are not included.' endTime: allOf: - $ref: '#/components/schemas/Timestamp' - description: 'The end of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a timestamp equal to or later than this time are not included.' nextToken: allOf: - $ref: '#/components/schemas/NextToken' - description: The token for the next set of items to return. (You received this token from a previous call.) limit: allOf: - $ref: '#/components/schemas/EventsLimit' - description: 'The maximum number of log events returned. If you don''t specify a limit, the default is as many log events as can fit in a response size of 1 MB (up to 10,000 log events).' startFromHead: allOf: - $ref: '#/components/schemas/StartFromHead' - description: '

If the value is true, the earliest log events are returned first. If the value is false, the latest log events are returned first. The default value is false.

If you are using a previous nextForwardToken value as the nextToken in this operation, you must specify true for startFromHead.

' unmask: allOf: - $ref: '#/components/schemas/Unmask' - description: '

Specify true to display the log event fields with all sensitive data unmasked and visible. The default is false.

To use this operation with this parameter, you must be signed into an account with the logs:Unmask permission.

' GetLogGroupFieldsResponse: type: object properties: logGroupFields: allOf: - $ref: '#/components/schemas/LogGroupFieldList' - description: 'The array of fields found in the query. Each object in the array contains the name of the field, along with the percentage of time it appeared in the log events that were queried.' GetLogGroupFieldsRequest: type: object title: GetLogGroupFieldsRequest properties: logGroupName: allOf: - $ref: '#/components/schemas/LogGroupName' - description: '

The name of the log group to search.

You must include either logGroupIdentifier or logGroupName, but not both.

' time: allOf: - $ref: '#/components/schemas/Timestamp' - description: '

The time to set as the center of the query. If you specify time, the 8 minutes before and 8 minutes after this time are searched. If you omit time, the most recent 15 minutes up to the current time are searched.

The time value is specified as epoch time, which is the number of seconds since January 1, 1970, 00:00:00 UTC.

' logGroupIdentifier: allOf: - $ref: '#/components/schemas/LogGroupIdentifier' - description: '

Specify either the name or ARN of the log group to view. If the log group is in a source account and you are using a monitoring account, you must specify the ARN.

You must include either logGroupIdentifier or logGroupName, but not both.

' GetLogRecordResponse: type: object properties: logRecord: allOf: - $ref: '#/components/schemas/LogRecord' - description: 'The requested log event, as a JSON string.' GetLogRecordRequest: type: object required: - logRecordPointer title: GetLogRecordRequest properties: logRecordPointer: allOf: - $ref: '#/components/schemas/LogRecordPointer' - description: 'The pointer corresponding to the log event record you want to retrieve. You get this from the response of a GetQueryResults operation. In that response, the value of the @ptr field for a log event is the value to use as logRecordPointer to retrieve that complete log event record.' unmask: allOf: - $ref: '#/components/schemas/Unmask' - description: '

Specify true to display the log event fields with all sensitive data unmasked and visible. The default is false.

To use this operation with this parameter, you must be signed into an account with the logs:Unmask permission.

' GetQueryResultsResponse: type: object properties: results: allOf: - $ref: '#/components/schemas/QueryResults' - description:

The log events that matched the query criteria during the most recent time it ran.

The results value is an array of arrays. Each log event is one object in the top-level array. Each of these log event objects is an array of field/value pairs.

statistics: allOf: - $ref: '#/components/schemas/QueryStatistics' - description: 'Includes the number of log events scanned by the query, the number of log events that matched the query criteria, and the total number of bytes in the scanned log events. These values reflect the full raw results of the query.' status: allOf: - $ref: '#/components/schemas/QueryStatus' - description: '

The status of the most recent running of the query. Possible values are Cancelled, Complete, Failed, Running, Scheduled, Timeout, and Unknown.

Queries time out after 60 minutes of runtime. To avoid having your queries time out, reduce the time range being searched or partition your query into a number of queries.

' encryptionKey: allOf: - $ref: '#/components/schemas/EncryptionKey' - description: 'If you associated an KMS key with the CloudWatch Logs Insights query results in this account, this field displays the ARN of the key that''s used to encrypt the query results when StartQuery stores them.' GetQueryResultsRequest: type: object required: - queryId title: GetQueryResultsRequest properties: queryId: allOf: - $ref: '#/components/schemas/QueryId' - description: The ID number of the query. ListTagsForResourceResponse: type: object properties: tags: allOf: - $ref: '#/components/schemas/Tags' - description: The list of tags associated with the requested resource.> ListTagsForResourceRequest: type: object required: - resourceArn title: ListTagsForResourceRequest properties: resourceArn: allOf: - $ref: '#/components/schemas/AmazonResourceName' - description: '

The ARN of the resource that you want to view tags for.

The ARN format of a log group is arn:aws:logs:Region:account-id:log-group:log-group-name

The ARN format of a destination is arn:aws:logs:Region:account-id:destination:destination-name

For more information about ARN format, see CloudWatch Logs resources and operations.

' ListTagsLogGroupResponse: type: object deprecated: true properties: tags: allOf: - $ref: '#/components/schemas/Tags' - description: The tags for the log group. description: Please use the generic tagging API model ListTagsForResourceRequest and ListTagsForResourceResponse ListTagsLogGroupRequest: type: object required: - logGroupName deprecated: true title: ListTagsLogGroupRequest properties: logGroupName: allOf: - $ref: '#/components/schemas/LogGroupName' - description: The name of the log group. description: Please use the generic tagging API model ListTagsForResourceRequest and ListTagsForResourceResponse PutAccountPolicyResponse: type: object properties: accountPolicy: allOf: - $ref: '#/components/schemas/AccountPolicy' - description: The account policy that you created. PutAccountPolicyRequest: type: object required: - policyName - policyDocument - policyType title: PutAccountPolicyRequest properties: policyName: allOf: - $ref: '#/components/schemas/PolicyName' - description: A name for the policy. This must be unique within the account. policyDocument: allOf: - $ref: '#/components/schemas/AccountPolicyDocument' - description: '

Specify the data protection policy, in JSON.

This policy must include two JSON blocks:

For an example data protection policy, see the Examples section on this page.

The contents of the two DataIdentifer arrays must match exactly.

In addition to the two JSON blocks, the policyDocument can also include Name, Description, and Version fields. The Name is different than the operation''s policyName parameter, and is used as a dimension when CloudWatch Logs reports audit findings metrics to CloudWatch.

The JSON specified in policyDocument can be up to 30,720 characters.

' policyType: allOf: - $ref: '#/components/schemas/PolicyType' - description: Currently the only valid value for this parameter is DATA_PROTECTION_POLICY. scope: allOf: - $ref: '#/components/schemas/Scope' - description: 'Currently the only valid value for this parameter is ALL, which specifies that the data protection policy applies to all log groups in the account. If you omit this parameter, the default of ALL is used.' PutDataProtectionPolicyResponse: type: object properties: logGroupIdentifier: allOf: - $ref: '#/components/schemas/LogGroupIdentifier' - description: The log group name or ARN that you specified in your request. policyDocument: allOf: - $ref: '#/components/schemas/DataProtectionPolicyDocument' - description: The data protection policy used for this log group. lastUpdatedTime: allOf: - $ref: '#/components/schemas/Timestamp' - description: The date and time that this policy was most recently updated. PutDataProtectionPolicyRequest: type: object required: - logGroupIdentifier - policyDocument title: PutDataProtectionPolicyRequest properties: logGroupIdentifier: allOf: - $ref: '#/components/schemas/LogGroupIdentifier' - description: Specify either the log group name or log group ARN. policyDocument: allOf: - $ref: '#/components/schemas/DataProtectionPolicyDocument' - description: '

Specify the data protection policy, in JSON.

This policy must include two JSON blocks:

For an example data protection policy, see the Examples section on this page.

The contents of the two DataIdentifer arrays must match exactly.

In addition to the two JSON blocks, the policyDocument can also include Name, Description, and Version fields. The Name is used as a dimension when CloudWatch Logs reports audit findings metrics to CloudWatch.

The JSON specified in policyDocument can be up to 30,720 characters.

' PutDestinationResponse: type: object properties: destination: allOf: - $ref: '#/components/schemas/Destination' - description: The destination. PutDestinationRequest: type: object required: - destinationName - targetArn - roleArn title: PutDestinationRequest properties: destinationName: allOf: - $ref: '#/components/schemas/DestinationName' - description: A name for the destination. targetArn: allOf: - $ref: '#/components/schemas/TargetArn' - description: The ARN of an Amazon Kinesis stream to which to deliver matching log events. roleArn: allOf: - $ref: '#/components/schemas/RoleArn' - description: The ARN of an IAM role that grants CloudWatch Logs permissions to call the Amazon Kinesis PutRecord operation on the destination stream. tags: allOf: - $ref: '#/components/schemas/Tags' - description: '

An optional list of key-value pairs to associate with the resource.

For more information about tagging, see Tagging Amazon Web Services resources

' PutDestinationPolicyRequest: type: object required: - destinationName - accessPolicy title: PutDestinationPolicyRequest properties: destinationName: allOf: - $ref: '#/components/schemas/DestinationName' - description: A name for an existing destination. accessPolicy: allOf: - $ref: '#/components/schemas/AccessPolicy' - description: An IAM policy document that authorizes cross-account users to deliver their log events to the associated destination. This can be up to 5120 bytes. forceUpdate: allOf: - $ref: '#/components/schemas/ForceUpdate' - description: '

Specify true if you are updating an existing destination policy to grant permission to an organization ID instead of granting permission to individual Amazon Web Services accounts. Before you update a destination policy this way, you must first update the subscription filters in the accounts that send logs to this destination. If you do not, the subscription filters might stop working. By specifying true for forceUpdate, you are affirming that you have already updated the subscription filters. For more information, see Updating an existing cross-account subscription

If you omit this parameter, the default of false is used.

' PutLogEventsResponse: type: object properties: nextSequenceToken: allOf: - $ref: '#/components/schemas/SequenceToken' - description:

The next sequence token.

This field has been deprecated.

The sequence token is now ignored in PutLogEvents actions. PutLogEvents actions are always accepted even if the sequence token is not valid. You can use parallel PutLogEvents actions on the same log stream and you do not need to wait for the response of a previous PutLogEvents action to obtain the nextSequenceToken value.

rejectedLogEventsInfo: allOf: - $ref: '#/components/schemas/RejectedLogEventsInfo' - description: The rejected events. PutLogEventsRequest: type: object required: - logGroupName - logStreamName - logEvents title: PutLogEventsRequest properties: logGroupName: allOf: - $ref: '#/components/schemas/LogGroupName' - description: The name of the log group. logStreamName: allOf: - $ref: '#/components/schemas/LogStreamName' - description: The name of the log stream. logEvents: allOf: - $ref: '#/components/schemas/InputLogEvents' - description: The log events. sequenceToken: allOf: - $ref: '#/components/schemas/SequenceToken' - description:

The sequence token obtained from the response of the previous PutLogEvents call.

The sequenceToken parameter is now ignored in PutLogEvents actions. PutLogEvents actions are now accepted and never return InvalidSequenceTokenException or DataAlreadyAcceptedException even if the sequence token is not valid.

InvalidSequenceTokenException: {} DataAlreadyAcceptedException: {} UnrecognizedClientException: {} PutMetricFilterRequest: type: object required: - logGroupName - filterName - filterPattern - metricTransformations title: PutMetricFilterRequest properties: logGroupName: allOf: - $ref: '#/components/schemas/LogGroupName' - description: The name of the log group. filterName: allOf: - $ref: '#/components/schemas/FilterName' - description: A name for the metric filter. filterPattern: allOf: - $ref: '#/components/schemas/FilterPattern' - description: A filter pattern for extracting metric data out of ingested log events. metricTransformations: allOf: - $ref: '#/components/schemas/MetricTransformations' - description: A collection of information that defines how metric data gets emitted. PutQueryDefinitionResponse: type: object properties: queryDefinitionId: allOf: - $ref: '#/components/schemas/QueryId' - description: The ID of the query definition. PutQueryDefinitionRequest: type: object required: - name - queryString title: PutQueryDefinitionRequest properties: name: allOf: - $ref: '#/components/schemas/QueryDefinitionName' - description: 'A name for the query definition. If you are saving numerous query definitions, we recommend that you name them. This way, you can find the ones you want by using the first part of the name as a filter in the queryDefinitionNamePrefix parameter of DescribeQueryDefinitions.' queryDefinitionId: allOf: - $ref: '#/components/schemas/QueryId' - description: '

If you are updating a query definition, use this parameter to specify the ID of the query definition that you want to update. You can use DescribeQueryDefinitions to retrieve the IDs of your saved query definitions.

If you are creating a query definition, do not specify this parameter. CloudWatch generates a unique ID for the new query definition and include it in the response to this operation.

' logGroupNames: allOf: - $ref: '#/components/schemas/LogGroupNames' - description: '

Use this parameter to include specific log groups as part of your query definition.

If you are updating a query definition and you omit this parameter, then the updated definition will contain no log groups.

' queryString: allOf: - $ref: '#/components/schemas/QueryDefinitionString' - description: 'The query string to use for this definition. For more information, see CloudWatch Logs Insights Query Syntax.' PutResourcePolicyResponse: type: object properties: resourcePolicy: allOf: - $ref: '#/components/schemas/ResourcePolicy' - description: The new policy. PutResourcePolicyRequest: type: object title: PutResourcePolicyRequest properties: policyName: allOf: - $ref: '#/components/schemas/PolicyName' - description: Name of the new policy. This parameter is required. policyDocument: allOf: - $ref: '#/components/schemas/PolicyDocument' - description: "

Details of the new policy, including the identity of the principal that is enabled to put logs to this account. This is formatted as a JSON string. This parameter is required.

The following example creates a resource policy enabling the Route 53 service to put DNS query logs in to the specified log group. Replace \"logArn\" with the ARN of your CloudWatch Logs resource, such as a log group or log stream.

CloudWatch Logs also supports aws:SourceArn and aws:SourceAccount condition context keys.

In the example resource policy, you would replace the value of SourceArn with the resource making the call from Route\_53 to CloudWatch Logs. You would also replace the value of SourceAccount with the Amazon Web Services account ID making that call.

{ \"Version\": \"2012-10-17\", \"Statement\": [ { \"Sid\": \"Route53LogsToCloudWatchLogs\", \"Effect\": \"Allow\", \"Principal\": { \"Service\": [ \"route53.amazonaws.com\" ] }, \"Action\": \"logs:PutLogEvents\", \"Resource\": \"logArn\", \"Condition\": { \"ArnLike\": { \"aws:SourceArn\": \"myRoute53ResourceArn\" }, \"StringEquals\": { \"aws:SourceAccount\": \"myAwsAccountId\" } } } ] }

" PutRetentionPolicyRequest: type: object required: - logGroupName - retentionInDays title: PutRetentionPolicyRequest properties: logGroupName: allOf: - $ref: '#/components/schemas/LogGroupName' - description: The name of the log group. retentionInDays: $ref: '#/components/schemas/Days' PutSubscriptionFilterRequest: type: object required: - logGroupName - filterName - filterPattern - destinationArn title: PutSubscriptionFilterRequest properties: logGroupName: allOf: - $ref: '#/components/schemas/LogGroupName' - description: The name of the log group. filterName: allOf: - $ref: '#/components/schemas/FilterName' - description: 'A name for the subscription filter. If you are updating an existing filter, you must specify the correct name in filterName. To find the name of the filter currently associated with a log group, use DescribeSubscriptionFilters.' filterPattern: allOf: - $ref: '#/components/schemas/FilterPattern' - description: A filter pattern for subscribing to a filtered stream of log events. destinationArn: allOf: - $ref: '#/components/schemas/DestinationArn' - description: '

The ARN of the destination to deliver matching log events to. Currently, the supported destinations are:

' roleArn: allOf: - $ref: '#/components/schemas/RoleArn' - description: The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream. You don't need to provide the ARN when you are working with a logical destination for cross-account delivery. distribution: allOf: - $ref: '#/components/schemas/Distribution' - description: 'The method used to distribute log data to the destination. By default, log data is grouped by log stream, but the grouping can be set to random for a more even distribution. This property is only applicable when the destination is an Amazon Kinesis data stream. ' StartQueryResponse: type: object properties: queryId: allOf: - $ref: '#/components/schemas/QueryId' - description: 'The unique ID of the query. ' StartQueryRequest: type: object required: - startTime - endTime - queryString title: StartQueryRequest properties: logGroupName: allOf: - $ref: '#/components/schemas/LogGroupName' - description: '

The log group on which to perform the query.

A StartQuery operation must include exactly one of the following parameters: logGroupName, logGroupNames, or logGroupIdentifiers.

' logGroupNames: allOf: - $ref: '#/components/schemas/LogGroupNames' - description: '

The list of log groups to be queried. You can include up to 50 log groups.

A StartQuery operation must include exactly one of the following parameters: logGroupName, logGroupNames, or logGroupIdentifiers.

' logGroupIdentifiers: allOf: - $ref: '#/components/schemas/LogGroupIdentifiers' - description: '

The list of log groups to query. You can include up to 50 log groups.

You can specify them by the log group name or ARN. If a log group that you''re querying is in a source account and you''re using a monitoring account, you must specify the ARN of the log group here. The query definition must also be defined in the monitoring account.

If you specify an ARN, the ARN can''t end with an asterisk (*).

A StartQuery operation must include exactly one of the following parameters: logGroupName, logGroupNames, or logGroupIdentifiers.

' startTime: allOf: - $ref: '#/components/schemas/Timestamp' - description: 'The beginning of the time range to query. The range is inclusive, so the specified start time is included in the query. Specified as epoch time, the number of seconds since January 1, 1970, 00:00:00 UTC.' endTime: allOf: - $ref: '#/components/schemas/Timestamp' - description: 'The end of the time range to query. The range is inclusive, so the specified end time is included in the query. Specified as epoch time, the number of seconds since January 1, 1970, 00:00:00 UTC.' queryString: allOf: - $ref: '#/components/schemas/QueryString' - description: 'The query string to use. For more information, see CloudWatch Logs Insights Query Syntax.' limit: allOf: - $ref: '#/components/schemas/EventsLimit' - description: 'The maximum number of log events to return in the query. If the query string uses the fields command, only the specified fields and their values are returned. The default is 1000.' MalformedQueryException: {} StopQueryResponse: type: object properties: success: allOf: - $ref: '#/components/schemas/Success' - description: This is true if the query was stopped by the StopQuery operation. StopQueryRequest: type: object required: - queryId title: StopQueryRequest properties: queryId: allOf: - $ref: '#/components/schemas/QueryId' - description: 'The ID number of the query to stop. To find this ID number, use DescribeQueries.' TagLogGroupRequest: type: object required: - logGroupName - tags deprecated: true title: TagLogGroupRequest properties: logGroupName: allOf: - $ref: '#/components/schemas/LogGroupName' - description: The name of the log group. tags: allOf: - $ref: '#/components/schemas/Tags' - description: The key-value pairs to use for the tags. description: Please use the generic tagging API model TagResourceRequest TagResourceRequest: type: object required: - resourceArn - tags title: TagResourceRequest properties: resourceArn: allOf: - $ref: '#/components/schemas/AmazonResourceName' - description: '

The ARN of the resource that you''re adding tags to.

The ARN format of a log group is arn:aws:logs:Region:account-id:log-group:log-group-name

The ARN format of a destination is arn:aws:logs:Region:account-id:destination:destination-name

For more information about ARN format, see CloudWatch Logs resources and operations.

' tags: allOf: - $ref: '#/components/schemas/Tags' - description: The list of key-value pairs to associate with the resource. TooManyTagsException: {} TestMetricFilterResponse: type: object properties: matches: allOf: - $ref: '#/components/schemas/MetricFilterMatches' - description: The matched events. TestMetricFilterRequest: type: object required: - filterPattern - logEventMessages title: TestMetricFilterRequest properties: filterPattern: $ref: '#/components/schemas/FilterPattern' logEventMessages: allOf: - $ref: '#/components/schemas/TestEventMessages' - description: The log event messages to test. UntagLogGroupRequest: type: object required: - logGroupName - tags deprecated: true title: UntagLogGroupRequest properties: logGroupName: allOf: - $ref: '#/components/schemas/LogGroupName' - description: The name of the log group. tags: allOf: - $ref: '#/components/schemas/TagList' - description: The tag keys. The corresponding tags are removed from the log group. description: Please use the generic tagging API model UntagResourceRequest UntagResourceRequest: type: object required: - resourceArn - tagKeys title: UntagResourceRequest properties: resourceArn: allOf: - $ref: '#/components/schemas/AmazonResourceName' - description: '

The ARN of the CloudWatch Logs resource that you''re removing tags from.

The ARN format of a log group is arn:aws:logs:Region:account-id:log-group:log-group-name

The ARN format of a destination is arn:aws:logs:Region:account-id:destination:destination-name

For more information about ARN format, see CloudWatch Logs resources and operations.

' tagKeys: allOf: - $ref: '#/components/schemas/TagKeyList' - description: The list of tag keys to remove from the resource. AccessPolicy: type: string minLength: 1 AccountId: type: string pattern: '^\d{12}$' minLength: 12 maxLength: 12 AccountIds: type: array items: $ref: '#/components/schemas/AccountId' minItems: 0 maxItems: 20 AccountPolicy: type: object properties: policyName: allOf: - $ref: '#/components/schemas/PolicyName' - description: The name of the account policy. policyDocument: allOf: - $ref: '#/components/schemas/AccountPolicyDocument' - description: '

The policy document for this account policy.

The JSON specified in policyDocument can be up to 30,720 characters.

' lastUpdatedTime: allOf: - $ref: '#/components/schemas/Timestamp' - description: The date and time that this policy was most recently updated. policyType: allOf: - $ref: '#/components/schemas/PolicyType' - description: The type of policy for this account policy. scope: allOf: - $ref: '#/components/schemas/Scope' - description: The scope of the account policy. accountId: allOf: - $ref: '#/components/schemas/AccountId' - description: The Amazon Web Services account ID that the policy applies to. description: A structure that contains information about one CloudWatch Logs account policy. AccountPolicies: type: array items: $ref: '#/components/schemas/AccountPolicy' PolicyName: type: string AccountPolicyDocument: type: string Timestamp: type: integer minimum: 0 PolicyType: type: string enum: - DATA_PROTECTION_POLICY Scope: type: string enum: - ALL AmazonResourceName: type: string pattern: '[\w+=/:,.@-]*' minLength: 1 maxLength: 1011 Arn: type: string LogGroupName: type: string pattern: '[\.\-_/#A-Za-z0-9]+' minLength: 1 maxLength: 512 KmsKeyId: type: string maxLength: 256 ResourceIdentifier: type: string pattern: '[\w+=/:,.@\-\*]*' minLength: 1 maxLength: 2048 ExportTaskId: type: string minLength: 1 maxLength: 512 ExportTaskName: type: string minLength: 1 maxLength: 512 LogStreamName: type: string pattern: '[^:*]*' minLength: 1 maxLength: 512 ExportDestinationBucket: type: string minLength: 1 maxLength: 512 ExportDestinationPrefix: type: string Tags: type: object minProperties: 1 maxProperties: 50 additionalProperties: $ref: '#/components/schemas/TagValue' DataProtectionPolicyDocument: type: string DataProtectionStatus: type: string enum: - ACTIVATED - DELETED - ARCHIVED - DISABLED Days: type: integer description: '

The number of days to retain the log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1096, 1827, 2192, 2557, 2922, 3288, and 3653.

To set a log group so that its log events do not expire, use DeleteRetentionPolicy.

' DefaultValue: type: number format: double LogGroupIdentifier: type: string pattern: '[\w#+=/:,.@-]*' minLength: 1 maxLength: 2048 DestinationName: type: string pattern: '[^:*]*' minLength: 1 maxLength: 512 FilterName: type: string pattern: '[^:*]*' minLength: 1 maxLength: 512 QueryId: type: string minLength: 0 maxLength: 256 Success: type: boolean Descending: type: boolean NextToken: type: string description: The token for the next set of items to return. The token expires after 24 hours. minLength: 1 DescribeLimit: type: integer minimum: 1 maximum: 50 Destinations: type: array items: $ref: '#/components/schemas/Destination' ExportTaskStatusCode: type: string enum: - CANCELLED - COMPLETED - FAILED - PENDING - PENDING_CANCEL - RUNNING ExportTasks: type: array items: $ref: '#/components/schemas/ExportTask' LogGroupNamePattern: type: string pattern: '[\.\-_/#A-Za-z0-9]*' minLength: 0 maxLength: 512 IncludeLinkedAccounts: type: boolean LogGroups: type: array items: $ref: '#/components/schemas/LogGroup' OrderBy: type: string enum: - LogStreamName - LastEventTime LogStreams: type: array items: $ref: '#/components/schemas/LogStream' MetricName: type: string pattern: '[^:*$]*' description: 'The name of the CloudWatch metric to which the monitored log information should be published. For example, you might publish to a metric named ErrorCount.' maxLength: 255 MetricNamespace: type: string pattern: '[^:*$]*' maxLength: 255 MetricFilters: type: array items: $ref: '#/components/schemas/MetricFilter' DescribeQueriesMaxResults: type: integer minimum: 1 maximum: 1000 QueryStatus: type: string enum: - Scheduled - Running - Complete - Failed - Cancelled - Timeout - Unknown QueryInfoList: type: array items: $ref: '#/components/schemas/QueryInfo' QueryDefinitionName: type: string minLength: 1 maxLength: 255 QueryListMaxResults: type: integer minimum: 1 maximum: 1000 QueryDefinitionList: type: array items: $ref: '#/components/schemas/QueryDefinition' ResourcePolicies: type: array items: $ref: '#/components/schemas/ResourcePolicy' SubscriptionFilters: type: array items: $ref: '#/components/schemas/SubscriptionFilter' TargetArn: type: string minLength: 1 RoleArn: type: string minLength: 1 Destination: type: object properties: destinationName: allOf: - $ref: '#/components/schemas/DestinationName' - description: The name of the destination. targetArn: allOf: - $ref: '#/components/schemas/TargetArn' - description: 'The Amazon Resource Name (ARN) of the physical target where the log events are delivered (for example, a Kinesis stream).' roleArn: allOf: - $ref: '#/components/schemas/RoleArn' - description: 'A role for impersonation, used when delivering log events to the target.' accessPolicy: allOf: - $ref: '#/components/schemas/AccessPolicy' - description: An IAM policy document that governs which Amazon Web Services accounts can create subscription filters against this destination. arn: allOf: - $ref: '#/components/schemas/Arn' - description: The ARN of this destination. creationTime: allOf: - $ref: '#/components/schemas/Timestamp' - description: 'The creation time of the destination, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.' description: Represents a cross-account destination that receives subscription log events. DestinationArn: type: string minLength: 1 DimensionsValue: type: string maxLength: 255 Dimensions: type: object additionalProperties: $ref: '#/components/schemas/DimensionsValue' DimensionsKey: type: string maxLength: 255 Distribution: type: string enum: - Random - ByLogStream description: 'The method used to distribute log data to the destination, which can be either random or grouped by log stream.' EncryptionKey: type: string maxLength: 256 EventId: type: string EventMessage: type: string minLength: 1 EventNumber: type: integer EventsLimit: type: integer minimum: 1 maximum: 10000 ExportTaskStatus: type: object properties: code: allOf: - $ref: '#/components/schemas/ExportTaskStatusCode' - description: The status code of the export task. message: allOf: - $ref: '#/components/schemas/ExportTaskStatusMessage' - description: The status message related to the status code. description: Represents the status of an export task. ExportTaskExecutionInfo: type: object properties: creationTime: allOf: - $ref: '#/components/schemas/Timestamp' - description: 'The creation time of the export task, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.' completionTime: allOf: - $ref: '#/components/schemas/Timestamp' - description: 'The completion time of the export task, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.' description: Represents the status of an export task. ExportTask: type: object properties: taskId: allOf: - $ref: '#/components/schemas/ExportTaskId' - description: The ID of the export task. taskName: allOf: - $ref: '#/components/schemas/ExportTaskName' - description: The name of the export task. logGroupName: allOf: - $ref: '#/components/schemas/LogGroupName' - description: The name of the log group from which logs data was exported. from: allOf: - $ref: '#/components/schemas/Timestamp' - description: 'The start time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a timestamp before this time are not exported.' to: allOf: - $ref: '#/components/schemas/Timestamp' - description: 'The end time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than this time are not exported.' destination: allOf: - $ref: '#/components/schemas/ExportDestinationBucket' - description: The name of the S3 bucket to which the log data was exported. destinationPrefix: allOf: - $ref: '#/components/schemas/ExportDestinationPrefix' - description: The prefix that was used as the start of Amazon S3 key for every object exported. status: allOf: - $ref: '#/components/schemas/ExportTaskStatus' - description: The status of the export task. executionInfo: allOf: - $ref: '#/components/schemas/ExportTaskExecutionInfo' - description: Execution information about the export task. description: Represents an export task. ExportTaskStatusMessage: type: string Value: type: string ExtractedValues: type: object additionalProperties: $ref: '#/components/schemas/Value' Field: type: string FilterCount: type: integer InputLogStreamNames: type: array items: $ref: '#/components/schemas/LogStreamName' minItems: 1 maxItems: 100 FilterPattern: type: string description: 'A symbolic description of how CloudWatch Logs should interpret the data in each log event. For example, a log event can contain timestamps, IP addresses, strings, and so on. You use the filter pattern to specify what to look for in the log event message.' minLength: 0 maxLength: 1024 Interleaved: type: boolean Unmask: type: boolean FilteredLogEvents: type: array items: $ref: '#/components/schemas/FilteredLogEvent' SearchedLogStreams: type: array items: $ref: '#/components/schemas/SearchedLogStream' FilteredLogEvent: type: object properties: logStreamName: allOf: - $ref: '#/components/schemas/LogStreamName' - description: The name of the log stream to which this event belongs. timestamp: allOf: - $ref: '#/components/schemas/Timestamp' - description: 'The time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.' message: allOf: - $ref: '#/components/schemas/EventMessage' - description: The data contained in the log event. ingestionTime: allOf: - $ref: '#/components/schemas/Timestamp' - description: 'The time the event was ingested, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.' eventId: allOf: - $ref: '#/components/schemas/EventId' - description: The ID of the event. description: Represents a matched event. ForceUpdate: type: boolean StartFromHead: type: boolean OutputLogEvents: type: array items: $ref: '#/components/schemas/OutputLogEvent' LogGroupFieldList: type: array items: $ref: '#/components/schemas/LogGroupField' LogRecordPointer: type: string LogRecord: type: object additionalProperties: $ref: '#/components/schemas/Value' QueryResults: type: array items: $ref: '#/components/schemas/ResultRows' QueryStatistics: type: object properties: recordsMatched: allOf: - $ref: '#/components/schemas/StatsValue' - description: The number of log events that matched the query string. recordsScanned: allOf: - $ref: '#/components/schemas/StatsValue' - description: The total number of log events scanned during the query. bytesScanned: allOf: - $ref: '#/components/schemas/StatsValue' - description: The total number of bytes in the log events scanned during the query. description: 'Contains the number of log events scanned by the query, the number of log events that matched the query criteria, and the total number of bytes in the log events that were scanned.' InheritedProperty: type: string enum: - ACCOUNT_DATA_PROTECTION InheritedProperties: type: array items: $ref: '#/components/schemas/InheritedProperty' InputLogEvent: type: object required: - timestamp - message properties: timestamp: allOf: - $ref: '#/components/schemas/Timestamp' - description: 'The time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.' message: allOf: - $ref: '#/components/schemas/EventMessage' - description: The raw event message. Each log event can be no larger than 256 KB. description: 'Represents a log event, which is a record of activity that was recorded by the application or resource being monitored.' InputLogEvents: type: array items: $ref: '#/components/schemas/InputLogEvent' minItems: 1 maxItems: 10000 LogEventIndex: type: integer StoredBytes: type: integer minimum: 0 LogGroup: type: object properties: logGroupName: allOf: - $ref: '#/components/schemas/LogGroupName' - description: The name of the log group. creationTime: allOf: - $ref: '#/components/schemas/Timestamp' - description: 'The creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.' retentionInDays: $ref: '#/components/schemas/Days' metricFilterCount: allOf: - $ref: '#/components/schemas/FilterCount' - description: The number of metric filters. arn: allOf: - $ref: '#/components/schemas/Arn' - description: The Amazon Resource Name (ARN) of the log group. storedBytes: allOf: - $ref: '#/components/schemas/StoredBytes' - description: The number of bytes stored. kmsKeyId: allOf: - $ref: '#/components/schemas/KmsKeyId' - description: The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data. dataProtectionStatus: allOf: - $ref: '#/components/schemas/DataProtectionStatus' - description: 'Displays whether this log group has a protection policy, or whether it had one in the past. For more information, see PutDataProtectionPolicy.' inheritedProperties: allOf: - $ref: '#/components/schemas/InheritedProperties' - description: Displays all the properties that this log group has inherited from account-level settings. description: Represents a log group. Percentage: type: integer minimum: 0 maximum: 100 LogGroupField: type: object properties: name: allOf: - $ref: '#/components/schemas/Field' - description: The name of a log field. percent: allOf: - $ref: '#/components/schemas/Percentage' - description: The percentage of log events queried that contained the field. description: 'The fields contained in log events found by a GetLogGroupFields operation, along with the percentage of queried log events in which each field appears.' LogGroupIdentifiers: type: array items: $ref: '#/components/schemas/LogGroupIdentifier' LogGroupNames: type: array items: $ref: '#/components/schemas/LogGroupName' SequenceToken: type: string minLength: 1 LogStream: type: object properties: logStreamName: allOf: - $ref: '#/components/schemas/LogStreamName' - description: The name of the log stream. creationTime: allOf: - $ref: '#/components/schemas/Timestamp' - description: 'The creation time of the stream, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.' firstEventTimestamp: allOf: - $ref: '#/components/schemas/Timestamp' - description: 'The time of the first event, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.' lastEventTimestamp: allOf: - $ref: '#/components/schemas/Timestamp' - description: 'The time of the most recent log event in the log stream in CloudWatch Logs. This number is expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. The lastEventTime value updates on an eventual consistency basis. It typically updates in less than an hour from ingestion, but in rare situations might take longer.' lastIngestionTime: allOf: - $ref: '#/components/schemas/Timestamp' - description: 'The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC The lastIngestionTime value updates on an eventual consistency basis. It typically updates in less than an hour after ingestion, but in rare situations might take longer.' uploadSequenceToken: allOf: - $ref: '#/components/schemas/SequenceToken' - description:

The sequence token.

The sequence token is now ignored in PutLogEvents actions. PutLogEvents actions are always accepted regardless of receiving an invalid sequence token. You don't need to obtain uploadSequenceToken to use a PutLogEvents action.

arn: allOf: - $ref: '#/components/schemas/Arn' - description: The Amazon Resource Name (ARN) of the log stream. storedBytes: allOf: - $ref: '#/components/schemas/StoredBytes' - deprecated: true description: '

The number of bytes stored.

Important: As of June 17, 2019, this parameter is no longer supported for log streams, and is always reported as zero. This change applies only to log streams. The storedBytes parameter for log groups is not affected.

Starting on June 17, 2019, this parameter will be deprecated for log streams, and will be reported as zero. This change applies only to log streams. The storedBytes parameter for log groups is not affected.' description: 'Represents a log stream, which is a sequence of log events from a single emitter of logs.' LogStreamSearchedCompletely: type: boolean MetricTransformations: type: array items: $ref: '#/components/schemas/MetricTransformation' minItems: 1 maxItems: 1 MetricFilter: type: object properties: filterName: allOf: - $ref: '#/components/schemas/FilterName' - description: The name of the metric filter. filterPattern: $ref: '#/components/schemas/FilterPattern' metricTransformations: allOf: - $ref: '#/components/schemas/MetricTransformations' - description: The metric transformations. creationTime: allOf: - $ref: '#/components/schemas/Timestamp' - description: 'The creation time of the metric filter, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.' logGroupName: allOf: - $ref: '#/components/schemas/LogGroupName' - description: The name of the log group. description: Metric filters express how CloudWatch Logs would extract metric observations from ingested log events and transform them into metric data in a CloudWatch metric. MetricFilterMatchRecord: type: object properties: eventNumber: allOf: - $ref: '#/components/schemas/EventNumber' - description: The event number. eventMessage: allOf: - $ref: '#/components/schemas/EventMessage' - description: The raw event data. extractedValues: allOf: - $ref: '#/components/schemas/ExtractedValues' - description: The values extracted from the event data by the filter. description: Represents a matched event. MetricFilterMatches: type: array items: $ref: '#/components/schemas/MetricFilterMatchRecord' MetricValue: type: string description: 'The value to publish to the CloudWatch metric. For example, if you''re counting the occurrences of a term like Error, the value is 1 for each occurrence. If you''re counting the bytes transferred, the value is the value in the log event.' maxLength: 100 StandardUnit: type: string enum: - Seconds - Microseconds - Milliseconds - Bytes - Kilobytes - Megabytes - Gigabytes - Terabytes - Bits - Kilobits - Megabits - Gigabits - Terabits - Percent - Count - Bytes/Second - Kilobytes/Second - Megabytes/Second - Gigabytes/Second - Terabytes/Second - Bits/Second - Kilobits/Second - Megabits/Second - Gigabits/Second - Terabits/Second - Count/Second - None MetricTransformation: type: object required: - metricName - metricNamespace - metricValue properties: metricName: allOf: - $ref: '#/components/schemas/MetricName' - description: The name of the CloudWatch metric. metricNamespace: allOf: - $ref: '#/components/schemas/MetricNamespace' - description: 'A custom namespace to contain your metric in CloudWatch. Use namespaces to group together metrics that are similar. For more information, see Namespaces.' metricValue: allOf: - $ref: '#/components/schemas/MetricValue' - description: The value to publish to the CloudWatch metric when a filter pattern matches a log event. defaultValue: allOf: - $ref: '#/components/schemas/DefaultValue' - description: (Optional) The value to emit when a filter pattern does not match a log event. This value can be null. dimensions: allOf: - $ref: '#/components/schemas/Dimensions' - description: '

The fields to use as dimensions for the metric. One metric filter can include as many as three dimensions.

Metrics extracted from log events are charged as custom metrics. To prevent unexpected high charges, do not specify high-cardinality fields such as IPAddress or requestID as dimensions. Each different value found for a dimension is treated as a separate metric and accrues charges as a separate custom metric.

CloudWatch Logs disables a metric filter if it generates 1000 different name/value pairs for your specified dimensions within a certain amount of time. This helps to prevent accidental high charges.

You can also set up a billing alarm to alert you if your charges are higher than expected. For more information, see Creating a Billing Alarm to Monitor Your Estimated Amazon Web Services Charges.

' unit: allOf: - $ref: '#/components/schemas/StandardUnit' - description: 'The unit to assign to the metric. If you omit this, the unit is set as None.' description: Indicates how to transform ingested log events to metric data in a CloudWatch metric. OutputLogEvent: type: object properties: timestamp: allOf: - $ref: '#/components/schemas/Timestamp' - description: 'The time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.' message: allOf: - $ref: '#/components/schemas/EventMessage' - description: The data contained in the log event. ingestionTime: allOf: - $ref: '#/components/schemas/Timestamp' - description: 'The time the event was ingested, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.' description: Represents a log event. PolicyDocument: type: string minLength: 1 maxLength: 5120 RejectedLogEventsInfo: type: object properties: tooNewLogEventStartIndex: allOf: - $ref: '#/components/schemas/LogEventIndex' - description: The log events that are too new. tooOldLogEventEndIndex: allOf: - $ref: '#/components/schemas/LogEventIndex' - description: The log events that are dated too far in the past. expiredLogEventEndIndex: allOf: - $ref: '#/components/schemas/LogEventIndex' - description: The expired log events. description: Represents the rejected events. QueryDefinitionString: type: string minLength: 1 maxLength: 10000 ResourcePolicy: type: object properties: policyName: allOf: - $ref: '#/components/schemas/PolicyName' - description: The name of the resource policy. policyDocument: allOf: - $ref: '#/components/schemas/PolicyDocument' - description: The details of the policy. lastUpdatedTime: allOf: - $ref: '#/components/schemas/Timestamp' - description: 'Timestamp showing when this policy was last updated, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.' description: A policy enabling one or more entities to put logs to a log group in this account. QueryDefinition: type: object properties: queryDefinitionId: allOf: - $ref: '#/components/schemas/QueryId' - description: The unique ID of the query definition. name: allOf: - $ref: '#/components/schemas/QueryDefinitionName' - description: The name of the query definition. queryString: allOf: - $ref: '#/components/schemas/QueryDefinitionString' - description: 'The query string to use for this definition. For more information, see CloudWatch Logs Insights Query Syntax.' lastModified: allOf: - $ref: '#/components/schemas/Timestamp' - description: The date that the query definition was most recently modified. logGroupNames: allOf: - $ref: '#/components/schemas/LogGroupNames' - description: 'If this query definition contains a list of log groups that it is limited to, that list appears here.' description: This structure contains details about a saved CloudWatch Logs Insights query definition. QueryString: type: string minLength: 0 maxLength: 10000 QueryInfo: type: object properties: queryId: allOf: - $ref: '#/components/schemas/QueryId' - description: The unique ID number of this query. queryString: allOf: - $ref: '#/components/schemas/QueryString' - description: The query string used in this query. status: allOf: - $ref: '#/components/schemas/QueryStatus' - description: 'The status of this query. Possible values are Cancelled, Complete, Failed, Running, Scheduled, and Unknown.' createTime: allOf: - $ref: '#/components/schemas/Timestamp' - description: The date and time that this query was created. logGroupName: allOf: - $ref: '#/components/schemas/LogGroupName' - description: The name of the log group scanned by this query. description: 'Information about one CloudWatch Logs Insights query that matches the request in a DescribeQueries operation. ' ResultRows: type: array items: $ref: '#/components/schemas/ResultField' StatsValue: type: number format: double ResultField: type: object properties: field: allOf: - $ref: '#/components/schemas/Field' - description: The log event field. value: allOf: - $ref: '#/components/schemas/Value' - description: The value of this field. description: '

Contains one field from one log event returned by a CloudWatch Logs Insights query, along with the value of that field.

For more information about the fields that are generated by CloudWatch logs, see Supported Logs and Discovered Fields.

' SearchedLogStream: type: object properties: logStreamName: allOf: - $ref: '#/components/schemas/LogStreamName' - description: The name of the log stream. searchedCompletely: allOf: - $ref: '#/components/schemas/LogStreamSearchedCompletely' - description: Indicates whether all the events in this log stream were searched. description: Represents the search status of a log stream. SubscriptionFilter: type: object properties: filterName: allOf: - $ref: '#/components/schemas/FilterName' - description: The name of the subscription filter. logGroupName: allOf: - $ref: '#/components/schemas/LogGroupName' - description: The name of the log group. filterPattern: $ref: '#/components/schemas/FilterPattern' destinationArn: allOf: - $ref: '#/components/schemas/DestinationArn' - description: The Amazon Resource Name (ARN) of the destination. roleArn: allOf: - $ref: '#/components/schemas/RoleArn' - description:

distribution: $ref: '#/components/schemas/Distribution' creationTime: allOf: - $ref: '#/components/schemas/Timestamp' - description: 'The creation time of the subscription filter, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.' description: Represents a subscription filter. TagKey: type: string pattern: '^([\p{L}\p{Z}\p{N}_.:/=+\-@]+)$' minLength: 1 maxLength: 128 TagKeyList: type: array items: $ref: '#/components/schemas/TagKey' minItems: 0 maxItems: 50 TagList: type: array items: $ref: '#/components/schemas/TagKey' minItems: 1 TagValue: type: string pattern: '^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$' maxLength: 256 TestEventMessages: type: array items: $ref: '#/components/schemas/EventMessage' minItems: 1 maxItems: 50 Token: type: string security: - hmac: []