vendor: bump github.com/aws/aws-sdk-go-v2/service/cloudwatchlogs to v1.32.0
v1.33.0 is also available, but it would also cause
`github.com/aws/aws-sdk-go-v2` change from v1.24.1 to v1.25.0
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
(cherry picked from commit 70a4a9c96981c1705169577e87ffabfbb2436497)
Signed-off-by: Austin Vazquez <macedonv@amazon.com>
+* **Feature**: **BREAKING CHANGE**: Bump minimum go version to 1.19 per the revised [go version support policy](https://aws.amazon.com/blogs/developer/aws-sdk-for-go-aligns-with-go-release-policy-on-supported-runtimes/).
+
+# v1.4.14 (2023-10-06)
+
+* No change notes available for this release.
+
+# v1.4.13 (2023-08-18)
+
+* No change notes available for this release.
+
+# v1.4.12 (2023-08-07)
+
+* No change notes available for this release.
+
+# v1.4.11 (2023-07-31)
+
+* No change notes available for this release.
+
+# v1.4.10 (2022-12-02)
+
+* No change notes available for this release.
+
+# v1.4.9 (2022-10-24)
+
+* No change notes available for this release.
+
+# v1.4.8 (2022-09-14)
+
+* No change notes available for this release.
+
+# v1.4.7 (2022-09-02)
+
+* No change notes available for this release.
+
+# v1.4.6 (2022-08-31)
+
+* No change notes available for this release.
+
+# v1.4.5 (2022-08-29)
+
+* No change notes available for this release.
+
+# v1.4.4 (2022-08-09)
+
+* No change notes available for this release.
+
+# v1.4.3 (2022-06-29)
+
+* No change notes available for this release.
+
+# v1.4.2 (2022-06-07)
+
+* No change notes available for this release.
+
+# v1.4.1 (2022-03-24)
+
+* No change notes available for this release.
+
+# v1.4.0 (2022-03-08)
+
+* **Feature**: Updated `github.com/aws/smithy-go` to latest version
+
+# v1.3.0 (2022-02-24)
+
+* **Feature**: Updated `github.com/aws/smithy-go` to latest version
+
+# v1.2.0 (2022-01-14)
+
+* **Feature**: Updated `github.com/aws/smithy-go` to latest version
+
+# v1.1.0 (2022-01-07)
+
+* **Feature**: Updated `github.com/aws/smithy-go` to latest version
+
+# v1.0.0 (2021-11-06)
+
+* **Announcement**: Support has been added for AWS EventStream APIs for Kinesis, S3, and Transcribe Streaming. Support for the Lex Runtime V2 EventStream API will be added in a future release.
+* **Release**: Protocol support has been added for AWS event stream.
+* **Feature**: Updated `github.com/aws/smithy-go` to latest version
+* **Feature**: This release adds a new field, logGroupArn, to the response of the logs:DescribeLogGroups action.
+
+# v1.31.0 (2024-01-10)
+
+* **Feature**: Add support for account level subscription filter policies to PutAccountPolicy, DescribeAccountPolicies, and DeleteAccountPolicy APIs. Additionally, PutAccountPolicy has been modified with new optional "selectionCriteria" parameter for resource selection.
+
+# v1.30.2 (2024-01-04)
+
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.30.1 (2023-12-20)
+
+* No change notes available for this release.
+
+# v1.30.0 (2023-12-12)
+
+* **Feature**: This release introduces the StartLiveTail API to tail ingested logs in near real time.
+
+# v1.29.5 (2023-12-08)
+
+* **Bug Fix**: Reinstate presence of default Retryer in functional options, but still respect max attempts set therein.
+
+# v1.29.4 (2023-12-07)
+
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.29.3 (2023-12-06)
+
+* **Bug Fix**: Restore pre-refactor auth behavior where all operations could technically be performed anonymously.
+
+# v1.29.2 (2023-12-01)
+
+* **Bug Fix**: Correct wrapping of errors in authentication workflow.
+* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction.
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.29.1 (2023-11-30)
+
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.29.0 (2023-11-29)
+
+* **Feature**: Expose Options() accessor on service clients.
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.28.2 (2023-11-28.2)
+
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.28.1 (2023-11-28)
+
+* **Bug Fix**: Respect setting RetryMaxAttempts in functional options at client construction.
+
+# v1.28.0 (2023-11-27)
+
+* **Feature**: Added APIs to Create, Update, Get, List and Delete LogAnomalyDetectors and List and Update Anomalies in Detector. Added LogGroupClass attribute for LogGroups to classify loggroup as Standard loggroup with all capabilities or InfrequentAccess loggroup with limited capabilities.
+
+# v1.27.2 (2023-11-20)
+
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.27.1 (2023-11-15)
+
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.27.0 (2023-11-09.2)
+
+* **Feature**: Update to support new APIs for delivery of logs from AWS services.
+
+# v1.26.1 (2023-11-09)
+
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.26.0 (2023-11-01)
+
+* **Feature**: Adds support for configured endpoints via environment variables and the AWS shared configuration file.
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.25.0 (2023-10-31)
+
+* **Feature**: **BREAKING CHANGE**: Bump minimum go version to 1.19 per the revised [go version support policy](https://aws.amazon.com/blogs/developer/aws-sdk-for-go-aligns-with-go-release-policy-on-supported-runtimes/).
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.24.2 (2023-10-12)
+
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.24.1 (2023-10-06)
+
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.24.0 (2023-09-20)
+
+* **Feature**: Add ClientToken to QueryDefinition CFN Handler in CWL
+
+# v1.23.5 (2023-08-21)
+
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.23.4 (2023-08-18)
+
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.23.3 (2023-08-17)
+
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.23.2 (2023-08-07)
+
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.23.1 (2023-08-01)
+
+* No change notes available for this release.
+
+# v1.23.0 (2023-07-31)
+
+* **Feature**: Adds support for smithy-modeled endpoint resolution. A new rules-based endpoint resolution will be added to the SDK which will supercede and deprecate existing endpoint resolution. Specifically, EndpointResolver will be deprecated while BaseEndpoint and EndpointResolverV2 will take its place. For more information, please see the Endpoints section in our Developer Guide.
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.22.2 (2023-07-28)
+
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.22.1 (2023-07-13)
+
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.22.0 (2023-07-07)
+
+* **Feature**: Add CMK encryption support for CloudWatch Logs Insights query result data
+
+# v1.21.2 (2023-06-15)
+
+* No change notes available for this release.
+
+# v1.21.1 (2023-06-13)
+
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.21.0 (2023-06-07)
+
+* **Feature**: This change adds support for account level data protection policies using 3 new APIs, PutAccountPolicy, DeleteAccountPolicy and DescribeAccountPolicy. DescribeLogGroup API has been modified to indicate if account level policy is applied to the LogGroup via "inheritedProperties" list in the response.
+
+# v1.20.11 (2023-05-04)
+
+* No change notes available for this release.
+
+# v1.20.10 (2023-04-24)
+
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.20.9 (2023-04-10)
+
+* No change notes available for this release.
+
+# v1.20.8 (2023-04-07)
+
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.20.7 (2023-03-21)
+
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.20.6 (2023-03-10)
+
+* **Dependency Update**: Updated to the latest SDK module versions
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.20.3 (2023-02-15)
+
+* **Announcement**: When receiving an error response in restJson-based services, an incorrect error type may have been returned based on the content of the response. This has been fixed via PR #2012 tracked in issue #1910.
+* **Bug Fix**: Correct error type parsing for restJson services.
+
+# v1.20.2 (2023-02-03)
+
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.20.1 (2023-01-23)
+
+* No change notes available for this release.
+
+# v1.20.0 (2023-01-19)
+
+* **Feature**: Bug fix - Removed the regex pattern validation from CoralModel to avoid potential security issue.
+
+# v1.19.0 (2023-01-12)
+
+* **Feature**: Bug fix: logGroupName is now not a required field in GetLogEvents, FilterLogEvents, GetLogGroupFields, and DescribeLogStreams APIs as logGroupIdentifier can be provided instead
+
+# v1.18.0 (2023-01-05)
+
+* **Feature**: Add `ErrorCodeOverride` field to all error structs (aws/smithy-go#401).
+
+# v1.17.4 (2023-01-04)
+
+* **Documentation**: Update to remove sequenceToken as a required field in PutLogEvents calls.
+
+# v1.17.3 (2022-12-15)
+
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.17.2 (2022-12-09)
+
+* **Documentation**: Doc-only update for CloudWatch Logs, for Tagging Permissions clarifications
+
+# v1.17.1 (2022-12-02)
+
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.17.0 (2022-11-28)
+
+* **Feature**: Updates to support CloudWatch Logs data protection and CloudWatch cross-account observability
+
+# v1.16.4 (2022-11-22)
+
+* No change notes available for this release.
+
+# v1.16.3 (2022-11-16)
+
+* No change notes available for this release.
+
+# v1.16.2 (2022-11-10)
+
+* No change notes available for this release.
+
+# v1.16.1 (2022-11-04)
+
+* **Documentation**: Doc-only update for bug fixes and support of export to buckets encrypted with SSE-KMS
+
+# v1.16.0 (2022-10-31)
+
+* **Feature**: SDK release to support tagging for destinations and log groups with TagResource. Also supports tag on create with PutDestination.
+
+# v1.15.22 (2022-10-24)
+
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.15.21 (2022-10-21)
+
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.15.20 (2022-09-20)
+
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.15.19 (2022-09-14)
+
+* **Dependency Update**: Updated to the latest SDK module versions
+
+# v1.15.18 (2022-09-02)
+
+* **Dependency Update**: Updated to the latest SDK module versions
+
# v1.15.17 (2022-08-31)
# v1.15.17 (2022-08-31)
* **Dependency Update**: Updated to the latest SDK module versions
* **Dependency Update**: Updated to the latest SDK module versions
-// It can take up to 5 minutes for this operation to take effect. If you attempt to
-// associate a CMK with a log group but the CMK does not exist or the CMK is
-// disabled, you receive an InvalidParameterException error.
+// 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.
+// - Specify the logGroupName parameter to cause all log events stored in the log
+// group to be encrypted with that key. Only the log events ingested after the key
+// is associated are encrypted with that key. Associating a KMS key with a log
+// group overrides any existing associations between the log group and a KMS key.
+// After a KMS key is associated with a log group, all newly ingested data for the
+// log group 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.
+// Associating a key with a log group does not cause the results of queries of that
+// log group to be encrypted with that key. To have query results encrypted with a
+// KMS key, you must use an AssociateKmsKey operation with the resourceIdentifier
+// parameter that specifies a query-result resource.
+// - Specify the resourceIdentifier parameter with a query-result resource, to
+// use that key to encrypt the stored results of all future StartQuery (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartQuery.html)
+// operations in the account. The response from a GetQueryResults (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_GetQueryResults.html)
+// operation will still return the query results in plain text. Even if you have
+// not associated a key with your query results, the query results are encrypted
+// when stored, using the default CloudWatch Logs method. If you run a query from a
+// monitoring account that queries logs in a source account, the query results key
+// from the monitoring account, if any, is used.
+//
+// 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 (https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html)
+// . 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.
+ // and Using Symmetric and Asymmetric Keys (https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html)
+ // .
//
//
// This member is required.
// This member is required.
KmsKeyId *string
KmsKeyId *string
- // The name of the log group.
- //
- // This member is required.
+ // 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.
LogGroupName *string
LogGroupName *string
+ // Specifies the target for this operation. You must specify one of the following:
+ // - Specify the following ARN to have future GetQueryResults (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_GetQueryResults.html)
+ // operations in this account encrypt the results with the specified KMS key.
+ // Replace REGION and ACCOUNT_ID with your Region and account ID.
+// Creates a delivery. A delivery is a connection between a logical delivery
+// source and a logical delivery destination that you have already created. Only
+// some Amazon Web Services services support being configured as a delivery source
+// using this operation. These services are listed as Supported [V2 Permissions] in
+// the table at Enabling logging from Amazon Web Services services. (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html)
+// A delivery destination can represent a log group in CloudWatch Logs, an Amazon
+// S3 bucket, or a delivery stream in Kinesis Data Firehose. To configure logs
+// delivery between a supported Amazon Web Services service and a destination, you
+// must do the following:
+// - Create a delivery source, which is a logical object that represents the
+// resource that is actually sending the logs. For more information, see
+// Creates an anomaly detector that regularly scans one or more log groups and
+// look for patterns and anomalies in the logs. An anomaly detector can help
+// surface issues by automatically discovering anomalies in your log event traffic.
+// An anomaly detector uses machine learning algorithms to scan log events and find
+// patterns. A pattern is a shared text structure that recurs among your log
+// fields. Patterns provide a useful tool for analyzing large sets of logs because
+// a large number of log events can often be compressed into a few patterns. The
+// anomaly detector uses pattern recognition to find anomalies , which are unusual
+// log events. It uses the evaluationFrequency to compare current log events and
+// patterns with trained baselines. Fields within a pattern are called tokens.
+// Fields that vary within a pattern, such as a request ID or timestamp, are
+// referred to as dynamic tokens and represented by <> . The following is an
+// example of a pattern: [INFO] Request time: < > ms This pattern represents log
+// events like [INFO] Request time: 327 ms and other similar log events that
+// differ only by the number, in this csse 327. When the pattern is displayed, the
+// different numbers are replaced by <*> Any parts of log events that are masked
+// as sensitive data are not scanned for anomalies. For more information about
+// masking sensitive data, see Help protect sensitive log data with masking (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/mask-sensitive-log-data.html)
+// 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 (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutRetentionPolicy.html)
+// . 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 (https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html)
+// Deletes the data protection policy from the specified log group. For more
+// information about data protection policies, see PutDataProtectionPolicy (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDataProtectionPolicy.html)
+ out := result.(*DeleteDeliveryDestinationOutput)
+ out.ResultMetadata = metadata
+ return out, nil
+}
+
+type DeleteDeliveryDestinationInput struct {
+
+ // The name of the delivery destination that you want to delete. You can find a
+ // list of delivery destionation names by using the DescribeDeliveryDestinations (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeDeliveryDestinations.html)
+ // operation.
+ //
+ // This member is required.
+ Name *string
+
+ noSmithyDocumentSerde
+}
+
+type DeleteDeliveryDestinationOutput struct {
+ // Metadata pertaining to the operation's result.
+// Deletes a delivery destination policy. For more information about these
+// policies, see PutDeliveryDestinationPolicy (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestinationPolicy.html)
+// Deletes a delivery source. A delivery is a connection between a logical
+// delivery source and a logical delivery destination. You can't delete a delivery
+// source if any current deliveries are associated with it. To find whether any
+// deliveries are associated with this delivery source, use the DescribeDeliveries (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeDeliveries.html)
+// operation and check the deliverySourceName field in the results.
+ // The ARN of the anomaly detector to delete. You can find the ARNs of log anomaly
+ // detectors in your account by using the ListLogAnomalyDetectors (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListLogAnomalyDetectors.html)
+ // operation.
+ //
+ // This member is required.
+ AnomalyDetectorArn *string
+
+ noSmithyDocumentSerde
+}
+
+type DeleteLogAnomalyDetectorOutput struct {
+ // Metadata pertaining to the operation's result.
+// Retrieves a list of the deliveries that have been created in the account. A
+// delivery is a connection between a delivery source (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliverySource.html)
+// and a delivery destination (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestination.html)
+// . A delivery source represents an Amazon Web Services resource that sends logs
+// to an logs delivery destination. The destination can be CloudWatch Logs, Amazon
+// S3, or Kinesis Data Firehose. Only some Amazon Web Services services support
+// being configured as a delivery source. These services are listed in Enable
+// logging from Amazon Web Services services. (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html)
+// Controlling access to Amazon Web Services resources using tags (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html)
+// . 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 (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html)
+ // 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.
+ AccountIdentifiers []string
+
+ // 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.
+ IncludeLinkedAccounts *bool
+
// The maximum number of items returned. If you don't specify a value, the default
// The maximum number of items returned. If you don't specify a value, the default
// is up to 50 items.
// is up to 50 items.
Limit *int32
Limit *int32
- // The prefix to match.
+ // Specifies the log group class for this log group. There are two classes:
+ // - The Standard log class supports all CloudWatch Logs features.
+ // - The Infrequent Access log class supports a subset of CloudWatch Logs
+ // features and incurs lower costs.
+ // For details about the features supported by each class, see Log classes (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch_Logs_Log_Classes.html)
+ LogGroupClass types.LogGroupClass
+
+ // 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.
+ LogGroupNamePattern *string
+
+ // The prefix to match. logGroupNamePrefix and logGroupNamePattern are mutually
+ // exclusive. Only one of these parameters can be passed.
LogGroupNamePrefix *string
LogGroupNamePrefix *string
// The token for the next set of items to return. (You received this token from a
// The token for the next set of items to return. (You received this token from a
@@ -54,7 +87,7 @@ type DescribeLogGroupsInput struct {
type DescribeLogGroupsOutput struct {
type DescribeLogGroupsOutput struct {
// The log groups. If the retentionInDays value is not included for a log group,
// The log groups. If the retentionInDays value is not included for a log group,
- // then that log group is set to have its events never expire.
+ // then that log group's events do not expire.
LogGroups []types.LogGroup
LogGroups []types.LogGroup
// The token for the next set of items to return. The token expires after 24 hours.
// The token for the next set of items to return. The token expires after 24 hours.
@@ -67,6 +100,9 @@ type DescribeLogGroupsOutput struct {
-// Disassociates the associated Key Management Service customer master key (CMK)
-// from the specified log group. After the KMS CMK is disassociated from the log
-// group, CloudWatch Logs stops encrypting newly ingested data for the log group.
-// All previously ingested data remains encrypted, and CloudWatch Logs requires
-// permissions for the CMK whenever the encrypted data is requested. Note that it
-// can take up to 5 minutes for this operation to take effect.
+// 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.
+// - Specify the logGroupName parameter to stop using the KMS key to encrypt
+// future log events ingested and stored in the log group. Instead, they will be
+// encrypted with the default CloudWatch Logs method. The log events that were
+// ingested while the key was associated with the log group are still encrypted
+// with that key. Therefore, CloudWatch Logs will need permissions for the key
+// whenever that data is accessed.
+// - Specify the resourceIdentifier parameter with the query-result resource to
+// stop using the KMS key to encrypt the results of all future StartQuery (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartQuery.html)
+// operations in the account. They will instead be encrypted with the default
+// CloudWatch Logs method. The results from queries that ran while the key was
+// associated with the account are still encrypted with that key. Therefore,
+// CloudWatch Logs will need permissions for the key whenever that data is
+// accessed.
+//
+// It can take up to 5 minutes for this operation to take effect.
+ // The filter pattern to use. For more information, see Filter and Pattern Syntax (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html)
+ // . If not provided, all the events are matched.
FilterPattern *string
FilterPattern *string
- // If the value is true, the operation makes a best effort 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. The default is false. Important: Starting on 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.
+ // 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.
//
//
// Deprecated: Starting on June 17, 2019, this parameter will be ignored and the
// Deprecated: 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
// value will be assumed to be true. The response from this operation will always
@@ -70,15 +71,25 @@ type FilterLogEventsInput struct {
// The maximum number of events to return. The default is 10,000 events.
// The maximum number of events to return. The default is 10,000 events.
Limit *int32
Limit *int32
+ // 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.
+ LogGroupIdentifier *string
+
+ // The name of the log group to search. You must include either logGroupIdentifier
+ // or logGroupName , but not both.
+ LogGroupName *string
+
// Filters the results to include only events from log streams that have names
// 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
// 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
+ // and logStreamNames, but the value for logStreamNamePrefix does not match any
+ // log stream names specified in logStreamNames, the action returns an
// InvalidParameterException error.
// InvalidParameterException error.
LogStreamNamePrefix *string
LogStreamNamePrefix *string
// Filters the results to only logs from the log streams in this list. If you
// 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
+ // specify a value for both logStreamNamePrefix and logStreamNames, the action
// returns an InvalidParameterException error.
// returns an InvalidParameterException error.
LogStreamNames []string
LogStreamNames []string
@@ -87,9 +98,14 @@ type FilterLogEventsInput struct {
NextToken *string
NextToken *string
// The start of the time range, expressed as the number of milliseconds after Jan
// 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.
+ // 1, 1970 00:00:00 UTC. Events with a timestamp before this time are not returned.
StartTime *int64
StartTime *int64
+ // 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.
+ Unmask bool
+
noSmithyDocumentSerde
noSmithyDocumentSerde
}
}
@@ -102,9 +118,9 @@ type FilterLogEventsOutput struct {
// 24 hours.
// 24 hours.
NextToken *string
NextToken *string
- // IMPORTANT Starting on May 15, 2020, this parameter will be deprecated. This
- // parameter will be an empty list after the deprecation occurs. Indicates which
- // log streams have been searched and whether each has been searched completely.
+ // 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.
SearchedLogStreams []types.SearchedLogStream
SearchedLogStreams []types.SearchedLogStream
// Metadata pertaining to the operation's result.
// Metadata pertaining to the operation's result.
@@ -114,6 +130,9 @@ type FilterLogEventsOutput struct {
+// Returns complete information about one logical delivery. A delivery is a
+// connection between a delivery source (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliverySource.html)
+// and a delivery destination (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestination.html)
+// . A delivery source represents an Amazon Web Services resource that sends logs
+// to an logs delivery destination. The destination can be CloudWatch Logs, Amazon
+// S3, or Kinesis Data Firehose. Only some Amazon Web Services services support
+// being configured as a delivery source. These services are listed in Enable
+// logging from Amazon Web Services services. (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html)
+// You need to specify the delivery id in this operation. You can find the IDs of
+// the deliveries in your account with the DescribeDeliveries (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeDeliveries.html)
+// Retrieves the delivery destination policy assigned to the delivery destination
+// that you specify. For more information about delivery destinations and their
+// policies, see PutDeliveryDestinationPolicy (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestinationPolicy.html)
+ // Specifies whether the anomaly detector is currently active. To change its
+ // status, use the enabled parameter in the UpdateLogAnomalyDetector (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UpdateLogAnomalyDetector.html)
-// 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.
+// 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 (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_GetLogRecord.html)
+// operation to get the full log record. GetQueryResults does not start running a
+// query. To run a query, use StartQuery (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartQuery.html)
+// . For more information about how long results of previous queries are available,
+// see CloudWatch Logs quotas (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/cloudwatch_limits_cwl.html)
+// . 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 (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html)
+ // 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 (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html)
+ // .
+ //
+ // This member is required.
+ ResourceArn *string
+
+ noSmithyDocumentSerde
+}
+
+type ListTagsForResourceOutput struct {
+
+ // The list of tags associated with the requested resource.>
+ Tags map[string]string
+
+ // Metadata pertaining to the operation's result.
+// Creates an account-level data protection policy or subscription filter policy
+// that applies to all log groups or a subset of log groups in the account. Data
+// protection policy 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 data protection 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-level
+// 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 (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_GetLogEvents.html)
+// or FilterLogEvents (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_FilterLogEvents.html)
+// 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 (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/mask-sensitive-log-data.html)
+// . To use the PutAccountPolicy operation for a data protection policy, 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 use PutDataProtectionPolicy (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDataProtectionPolicy.html)
+// 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. Subscription filter policy
+// A subscription filter policy sets up a real-time feed of log events from
+// CloudWatch Logs to other Amazon Web Services services. Account-level
+// subscription filter policies apply to both existing log groups and log groups
+// that are created later in this account. Supported destinations are Kinesis Data
+// Streams, Kinesis Data Firehose, and Lambda. 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:
+// - An Kinesis Data Streams data stream in the same account as the subscription
+// policy, for same-account delivery.
+// - An Kinesis Data Firehose data stream in the same account as the
+// subscription policy, for same-account delivery.
+// - A Lambda function in the same account as the subscription policy, for
+// same-account delivery.
+// - A logical destination in a different account created with PutDestination (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDestination.html)
+// , for cross-account delivery. Kinesis Data Streams and Kinesis Data Firehose are
+// supported as logical destinations.
+//
+// Each account can have one account-level subscription filter policy. If you are
+// updating an existing filter, you must specify the correct name in PolicyName .
+// To perform a PutAccountPolicy subscription filter operation for any destination
+// except a Lambda function, you must also have the iam:PassRole permission.
+ // Specify the policy, in JSON. Data protection policy A data protection policy
+ // must include two JSON blocks:
+ // - The first block must include both a DataIdentifer array and an Operation
+ // property with an Audit action. The DataIdentifer array lists the types of
+ // sensitive data that you want to mask. For more information about the available
+ // options, see Types of data that you can mask (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/mask-sensitive-log-data-types.html)
+ // . The Operation property with an Audit action is required to find the
+ // sensitive data terms. This Audit action must contain a FindingsDestination
+ // object. You can optionally use that FindingsDestination object to list one or
+ // more destinations to send audit findings to. If you specify destinations such as
+ // log groups, Kinesis Data Firehose streams, and S3 buckets, they must already
+ // exist.
+ // - The second block must include both a DataIdentifer array and an Operation
+ // property with an Deidentify action. The DataIdentifer array must exactly match
+ // the DataIdentifer array in the first block of the policy. The Operation
+ // property with the Deidentify action is what actually masks the data, and it
+ // must contain the "MaskConfig": {} object. The "MaskConfig": {} object must be
+ // empty.
+ // 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 long. Subscription filter policy A subscription filter
+ // policy can include the following attributes in a JSON block:
+ // - DestinationArn The ARN of the destination to deliver log events to.
+ // Supported destinations are:
+ // - An Kinesis Data Streams data stream in the same account as the subscription
+ // policy, for same-account delivery.
+ // - An Kinesis Data Firehose data stream in the same account as the
+ // subscription policy, for same-account delivery.
+ // - A Lambda function in the same account as the subscription policy, for
+ // same-account delivery.
+ // - A logical destination in a different account created with PutDestination (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDestination.html)
+ // , for cross-account delivery. Kinesis Data Streams and Kinesis Data Firehose are
+ // supported as logical destinations.
+ // - RoleArn 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.
+ // - FilterPattern A filter pattern for subscribing to a filtered stream of log
+ // events.
+ // - DistributionThe 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 Kinesis Data Streams data stream.
+ //
+ // This member is required.
+ PolicyDocument *string
+
+ // A name for the policy. This must be unique within the account.
+ //
+ // This member is required.
+ PolicyName *string
+
+ // The type of policy that you're creating or updating.
+ //
+ // This member is required.
+ PolicyType types.PolicyType
+
+ // 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.
+ Scope types.Scope
+
+ // Use this parameter to apply the subscription filter policy to a subset of log
+ // groups in the account. Currently, the only supported filter is LogGroupName NOT
+ // IN [] . The selectionCriteria string can be up to 25KB in length. The length is
+ // determined by using its UTF-8 bytes. Using the selectionCriteria parameter is
+ // useful to help prevent infinite loops. For more information, see Log recursion
+// 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 (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_GetLogEvents.html)
+// or FilterLogEvents (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_FilterLogEvents.html)
+// 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 (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/mask-sensitive-log-data.html)
+// . The PutDataProtectionPolicy operation applies to only the specified log
+// group. You can also use PutAccountPolicy (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutAccountPolicy.html)
+// 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.
+// in the destination account to assign an IAM policy to the destination. This
+// policy allows delivery to that destination.
+// - Use CreateDelivery to create a delivery by pairing exactly one delivery
+// source and one delivery destination. For more information, see CreateDelivery (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html)
+// .
+//
+// You can configure a single delivery source to send logs to multiple
+// destinations by creating multiple deliveries. You can also create multiple
+// deliveries to configure multiple delivery sources to send logs to the same
+// delivery destination. Only some Amazon Web Services services support being
+// configured as a delivery source. These services are listed as Supported [V2
+// Permissions] in the table at Enabling logging from Amazon Web Services services. (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html)
+// If you use this operation to update an existing delivery destination, all the
+// current delivery destination parameters are overwritten with the new parameter
+// - Use this operation in the destination account to assign an IAM policy to
+// the destination. This policy allows delivery to that destination.
+// - Create a delivery by pairing exactly one delivery source and one delivery
+// destination. For more information, see CreateDelivery (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html)
+// .
+//
+// Only some Amazon Web Services services support being configured as a delivery
+// source. These services are listed as Supported [V2 Permissions] in the table at
+// Enabling logging from Amazon Web Services services. (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html)
+// The contents of the policy must include two statements. One statement enables
+// general logs delivery, and the other allows delivery to the chosen destination.
+// in the destination account to assign an IAM policy to the destination. This
+// policy allows delivery to that destination.
+// - Use CreateDelivery to create a delivery by pairing exactly one delivery
+// source and one delivery destination. For more information, see CreateDelivery (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html)
+// .
+//
+// You can configure a single delivery source to send logs to multiple
+// destinations by creating multiple deliveries. You can also create multiple
+// deliveries to configure multiple delivery sources to send logs to the same
+// delivery destination. Only some Amazon Web Services services support being
+// configured as a delivery source. These services are listed as Supported [V2
+// Permissions] in the table at Enabling logging from Amazon Web Services services. (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html)
+// If you use this operation to update an existing delivery source, all the current
+// delivery source parameters are overwritten with the new parameter values that
+// which means a cross-account user cannot call PutSubscriptionFilter (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutSubscriptionFilter.html)
// against this destination. To enable this, the destination owner must call
// against this destination. To enable this, the destination owner must call
+// group. With metric filters, you can configure rules to extract metric data from
+// log events ingested through PutLogEvents (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html)
+// . 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 might disable a
+// metric filter if it generates 1,000 different name/value pairs for your
+// specified dimensions within one hour. 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 (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/monitor_estimated_charges_with_cloudwatch.html)
+func (m *idempotencyToken_initializeOpPutQueryDefinition) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
+ out middleware.InitializeOutput, metadata middleware.Metadata, err error,
+) {
+ if m.tokenProvider == nil {
+ return next.HandleInitialize(ctx, in)
+ }
+
+ input, ok := in.Parameters.(*PutQueryDefinitionInput)
+ if !ok {
+ return out, metadata, fmt.Errorf("expected middleware input to be of type *PutQueryDefinitionInput ")
+ // group or log stream. CloudWatch Logs also supports aws:SourceArn (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-sourcearn)
+ // and aws:SourceAccount (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-sourceaccount)
// condition context keys. In the example resource policy, you would replace the
// 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 and replace the value of SourceAccount with the Amazon Web Services account
- // ID making that call. { "Version": "2012-10-17", "Statement": [ { "Sid":
+ // 731, 1096, 1827, 2192, 2557, 2922, 3288, and 3653. To set a log group so that
+ // its log events do not expire, use DeleteRetentionPolicy (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DeleteRetentionPolicy.html)
+ // .
//
//
// This member is required.
// This member is required.
RetentionInDays *int32
RetentionInDays *int32
@@ -55,6 +70,9 @@ type PutRetentionPolicyOutput struct {
+ // must specify the correct name in filterName. To find the name of the filter
+ // currently associated with a log group, use DescribeSubscriptionFilters (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeSubscriptionFilters.html)
+ // .
//
//
// This member is required.
// This member is required.
FilterName *string
FilterName *string
@@ -98,7 +88,7 @@ type PutSubscriptionFilterInput struct {
// The method used to distribute log data to the destination. By default, log data
// 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
// 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
// distribution. This property is only applicable when the destination is an Amazon
- // Kinesis stream.
+ // Kinesis data stream.
Distribution types.Distribution
Distribution types.Distribution
// The ARN of an IAM role that grants CloudWatch Logs permissions to deliver
// The ARN of an IAM role that grants CloudWatch Logs permissions to deliver
@@ -117,6 +107,9 @@ type PutSubscriptionFilterOutput struct {
+func (m *endpointPrefix_opStartLiveTailMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) (
+ out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
+) {
+ if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) {
+ return next.HandleFinalize(ctx, in)
+ }
+
+ req, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown transport type %T", in.Request)
+// The TagLogGroup operation is on the path to deprecation. We recommend that you
+// use TagResource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_TagResource.html)
+// instead. Adds or updates the specified tags for the specified log group. To list
+// the tags for a log group, use ListTagsForResource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsForResource.html)
+// . To remove tags, use UntagResource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UntagResource.html)
+// . For more information about tags, see Tag Log Groups in Amazon CloudWatch Logs (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html#log-group-tagging)
// in the Amazon CloudWatch Logs User Guide. CloudWatch Logs doesn’t support IAM
// 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
// 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
// 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
// about using tags to control access, see Controlling access to Amazon Web
+ // 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 (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html)
+ // .
+ //
+ // This member is required.
+ ResourceArn *string
+
+ // The list of key-value pairs to associate with the resource.
+ //
+ // This member is required.
+ Tags map[string]string
+
+ noSmithyDocumentSerde
+}
+
+type TagResourceOutput struct {
+ // Metadata pertaining to the operation's result.
+ // 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 (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html)
+ // .
+ //
+ // This member is required.
+ ResourceArn *string
+
+ // The list of tag keys to remove from the resource.
+ //
+ // This member is required.
+ TagKeys []string
+
+ noSmithyDocumentSerde
+}
+
+type UntagResourceOutput struct {
+ // Metadata pertaining to the operation's result.
+func (m *setLegacyContextSigningOptionsMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) (
+ out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
+) {
+ rscheme := getResolvedAuthScheme(ctx)
+ schemeID := rscheme.Scheme.SchemeID()
+
+ if sn := awsmiddleware.GetSigningName(ctx); sn != "" {
+func (m *awsAwsjson11_deserializeOpEventStreamStartLiveTail) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
+ out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
+) {
+ defer func() {
+ if err == nil {
+ return
+ }
+ m.closeResponseBody(out)
+ }()
+
+ logger := middleware.GetLogger(ctx)
+
+ request, ok := in.Request.(*smithyhttp.Request)
+ if !ok {
+ return out, metadata, fmt.Errorf("unknown transport type: %T", in.Request)