From a3592237a9746bbc52db1f7f63f4043008940560 Mon Sep 17 00:00:00 2001
From: aws-sdk-go-automation
<43143561+aws-sdk-go-automation@users.noreply.github.com>
Date: Thu, 9 Nov 2023 11:33:16 -0800
Subject: [PATCH] Release v1.47.8 (2023-11-09) (#5063)
Release v1.47.8 (2023-11-09)
===
### Service Client Updates
* `service/cloudformation`: Updates service API and documentation
* Added new ConcurrencyMode feature for AWS CloudFormation StackSets for faster deployments to target accounts.
* `service/cloudtrail`: Updates service API and documentation
* The Insights in Lake feature lets customers enable CloudTrail Insights on a source CloudTrail Lake event data store and create a destination event data store to collect Insights events based on unusual management event activity in the source event data store.
* `service/comprehend`: Updates service API and documentation
* `service/connect`: Updates service API and documentation
* `service/ec2`: Updates service API and documentation
* AWS EBS now supports Block Public Access for EBS Snapshots. This release introduces the EnableSnapshotBlockPublicAccess, DisableSnapshotBlockPublicAccess and GetSnapshotBlockPublicAccessState APIs to manage account-level public access settings for EBS Snapshots in an AWS Region.
* `service/eks`: Updates service API and documentation
* `service/lambda`: Updates service API
* Add Custom runtime on Amazon Linux 2023 (provided.al2023) support to AWS Lambda.
* `service/logs`: Updates service API, documentation, and paginators
* Update to support new APIs for delivery of logs from AWS services.
* `service/omics`: Updates service API and documentation
---
CHANGELOG.md | 19 +
aws/version.go | 2 +-
.../apis/cloudformation/2010-05-15/api-2.json | 10 +-
.../cloudformation/2010-05-15/docs-2.json | 24 +-
.../2010-05-15/endpoint-rule-set-1.json | 44 +-
.../2010-05-15/endpoint-tests-1.json | 11 +
models/apis/cloudtrail/2013-11-01/api-2.json | 26 +-
models/apis/cloudtrail/2013-11-01/docs-2.json | 49 +-
.../2013-11-01/endpoint-rule-set-1.json | 40 +-
models/apis/comprehend/2017-11-27/api-2.json | 81 +-
models/apis/comprehend/2017-11-27/docs-2.json | 115 +-
.../2017-11-27/endpoint-rule-set-1.json | 366 +-
models/apis/connect/2017-08-08/api-2.json | 8 +-
models/apis/connect/2017-08-08/docs-2.json | 1 +
models/apis/ec2/2016-11-15/api-2.json | 82 +
models/apis/ec2/2016-11-15/docs-2.json | 45 +
models/apis/eks/2017-11-01/api-2.json | 258 +
models/apis/eks/2017-11-01/docs-2.json | 168 +-
models/apis/lambda/2015-03-31/api-2.json | 3 +-
models/apis/logs/2014-03-28/api-2.json | 577 +
models/apis/logs/2014-03-28/docs-2.json | 324 +-
.../logs/2014-03-28/endpoint-rule-set-1.json | 40 +-
models/apis/logs/2014-03-28/paginators-1.json | 18 +
models/apis/omics/2022-11-28/api-2.json | 15 +-
models/apis/omics/2022-11-28/docs-2.json | 7 +-
service/cloudformation/api.go | 57 +-
service/cloudtrail/api.go | 475 +-
service/cloudtrail/errors.go | 31 +-
service/cloudwatchlogs/api.go | 12051 ++++++++++------
.../cloudwatchlogsiface/interface.go | 69 +
service/cloudwatchlogs/errors.go | 35 +
service/comprehend/api.go | 491 +-
.../comprehend/comprehendiface/interface.go | 4 +
service/connect/api.go | 13 +
service/ec2/api.go | 514 +
service/ec2/ec2iface/interface.go | 12 +
service/eks/api.go | 1821 ++-
service/eks/eksiface/interface.go | 20 +
service/eks/errors.go | 16 +-
service/lambda/api.go | 4 +
service/omics/api.go | 23 +-
41 files changed, 13020 insertions(+), 4949 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d08382fb079..4e3476acf0c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,22 @@
+Release v1.47.8 (2023-11-09)
+===
+
+### Service Client Updates
+* `service/cloudformation`: Updates service API and documentation
+ * Added new ConcurrencyMode feature for AWS CloudFormation StackSets for faster deployments to target accounts.
+* `service/cloudtrail`: Updates service API and documentation
+ * The Insights in Lake feature lets customers enable CloudTrail Insights on a source CloudTrail Lake event data store and create a destination event data store to collect Insights events based on unusual management event activity in the source event data store.
+* `service/comprehend`: Updates service API and documentation
+* `service/connect`: Updates service API and documentation
+* `service/ec2`: Updates service API and documentation
+ * AWS EBS now supports Block Public Access for EBS Snapshots. This release introduces the EnableSnapshotBlockPublicAccess, DisableSnapshotBlockPublicAccess and GetSnapshotBlockPublicAccessState APIs to manage account-level public access settings for EBS Snapshots in an AWS Region.
+* `service/eks`: Updates service API and documentation
+* `service/lambda`: Updates service API
+ * Add Custom runtime on Amazon Linux 2023 (provided.al2023) support to AWS Lambda.
+* `service/logs`: Updates service API, documentation, and paginators
+ * Update to support new APIs for delivery of logs from AWS services.
+* `service/omics`: Updates service API and documentation
+
Release v1.47.7 (2023-11-09)
===
diff --git a/aws/version.go b/aws/version.go
index 9eb8757966f..db9fd6a9198 100644
--- a/aws/version.go
+++ b/aws/version.go
@@ -5,4 +5,4 @@ package aws
const SDKName = "aws-sdk-go"
// SDKVersion is the version of this SDK
-const SDKVersion = "1.47.7"
+const SDKVersion = "1.47.8"
diff --git a/models/apis/cloudformation/2010-05-15/api-2.json b/models/apis/cloudformation/2010-05-15/api-2.json
index b28e24377c2..0c487da0801 100644
--- a/models/apis/cloudformation/2010-05-15/api-2.json
+++ b/models/apis/cloudformation/2010-05-15/api-2.json
@@ -1409,6 +1409,13 @@
"max":128,
"min":1
},
+ "ConcurrencyMode":{
+ "type":"string",
+ "enum":[
+ "STRICT_FAILURE_TOLERANCE",
+ "SOFT_FAILURE_TOLERANCE"
+ ]
+ },
"ConfigurationSchema":{
"type":"string",
"max":60000,
@@ -3929,7 +3936,8 @@
"FailureToleranceCount":{"shape":"FailureToleranceCount"},
"FailureTolerancePercentage":{"shape":"FailureTolerancePercentage"},
"MaxConcurrentCount":{"shape":"MaxConcurrentCount"},
- "MaxConcurrentPercentage":{"shape":"MaxConcurrentPercentage"}
+ "MaxConcurrentPercentage":{"shape":"MaxConcurrentPercentage"},
+ "ConcurrencyMode":{"shape":"ConcurrencyMode"}
}
},
"StackSetOperationResultStatus":{
diff --git a/models/apis/cloudformation/2010-05-15/docs-2.json b/models/apis/cloudformation/2010-05-15/docs-2.json
index d5123319923..18b24a4cd82 100644
--- a/models/apis/cloudformation/2010-05-15/docs-2.json
+++ b/models/apis/cloudformation/2010-05-15/docs-2.json
@@ -31,7 +31,7 @@
"DescribeStackResources": "
Returns Amazon Web Services resource descriptions for running and deleted stacks. If StackName
is specified, all the associated resources that are part of the stack are returned. If PhysicalResourceId
is specified, the associated resources of the stack that the resource belongs to are returned.
Only the first 100 resources will be returned. If your stack has more resources than this, you should use ListStackResources
instead.
For deleted stacks, DescribeStackResources
returns resource information for up to 90 days after the stack has been deleted.
You must specify either StackName
or PhysicalResourceId
, but not both. In addition, you can specify LogicalResourceId
to filter the returned result. For more information about resources, the LogicalResourceId
and PhysicalResourceId
, go to the CloudFormation User Guide.
A ValidationError
is returned if you specify both StackName
and PhysicalResourceId
in the same request.
",
"DescribeStackSet": "Returns the description of the specified StackSet.
",
"DescribeStackSetOperation": "Returns the description of the specified StackSet operation.
",
- "DescribeStacks": "Returns the description for the specified stack; if no stack name was specified, then it returns the description for all the stacks created.
If the stack doesn't exist, an ValidationError
is returned.
",
+ "DescribeStacks": "Returns the description for the specified stack; if no stack name was specified, then it returns the description for all the stacks created.
If the stack doesn't exist, a ValidationError
is returned.
",
"DescribeType": "Returns detailed information about an extension that has been registered.
If you specify a VersionId
, DescribeType
returns information about that specific extension version. Otherwise, it returns information about the default extension version.
",
"DescribeTypeRegistration": "Returns information about an extension's registration, including its current status and type and version identifiers.
When you initiate a registration request using RegisterType, you can then use DescribeTypeRegistration to monitor the progress of that registration request.
Once the registration request has completed, use DescribeType to return detailed information about an extension.
",
"DetectStackDrift": "Detects whether a stack's actual configuration differs, or has drifted, from its expected configuration, as defined in the stack template and any values specified as template parameters. For each resource in the stack that supports drift detection, CloudFormation compares the actual configuration of the resource with its expected template configuration. Only resource properties explicitly defined in the stack template are checked for drift. A stack is considered to have drifted if one or more of its resources differ from their expected template configurations. For more information, see Detecting Unregulated Configuration Changes to Stacks and Resources.
Use DetectStackDrift
to detect drift on all supported resources for a given stack, or DetectStackResourceDrift to detect drift on individual resources.
For a list of stack resources that currently support drift detection, see Resources that Support Drift Detection.
DetectStackDrift
can take up to several minutes, depending on the number of resources contained within the stack. Use DescribeStackDriftDetectionStatus to monitor the progress of a detect stack drift operation. Once the drift detection operation has completed, use DescribeStackResourceDrifts to return drift information about the stack and its resources.
When detecting drift on a stack, CloudFormation doesn't detect drift on any nested stacks belonging to that stack. Perform DetectStackDrift
directly on the nested stack itself.
",
@@ -280,14 +280,14 @@
"Capabilities": {
"base": null,
"refs": {
- "CreateChangeSetInput$Capabilities": "In some cases, you must explicitly acknowledge that your stack template contains certain capabilities in order for CloudFormation to create the stack.
-
CAPABILITY_IAM
and CAPABILITY_NAMED_IAM
Some stack templates might include resources that can affect permissions in your Amazon Web Services account; for example, by creating new Identity and Access Management (IAM) users. For those stacks, you must explicitly acknowledge this by specifying one of these capabilities.
The following IAM resources require you to specify either the CAPABILITY_IAM
or CAPABILITY_NAMED_IAM
capability.
-
If you have IAM resources, you can specify either capability.
-
If you have IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM
.
-
If you don't specify either of these capabilities, CloudFormation returns an InsufficientCapabilities
error.
If your stack template contains these resources, we suggest that you review all permissions associated with them and edit their permissions if necessary.
For more information, see Acknowledging IAM resources in CloudFormation templates.
-
CAPABILITY_AUTO_EXPAND
Some template contain macros. Macros perform custom processing on templates; this can include simple actions like find-and-replace operations, all the way to extensive transformations of entire templates. Because of this, users typically create a change set from the processed template, so that they can review the changes resulting from the macros before actually creating the stack. If your stack template contains one or more macros, and you choose to create a stack directly from the processed template, without first reviewing the resulting changes in a change set, you must acknowledge this capability. This includes the AWS::Include and AWS::Serverless transforms, which are macros hosted by CloudFormation.
This capacity doesn't apply to creating change sets, and specifying it when creating change sets has no effect.
If you want to create a stack from a stack template that contains macros and nested stacks, you must create or update the stack directly from the template using the CreateStack or UpdateStack action, and specifying this capability.
For more information about macros, see Using CloudFormation macros to perform custom processing on templates.
",
- "CreateStackInput$Capabilities": "In some cases, you must explicitly acknowledge that your stack template contains certain capabilities in order for CloudFormation to create the stack.
-
CAPABILITY_IAM
and CAPABILITY_NAMED_IAM
Some stack templates might include resources that can affect permissions in your Amazon Web Services account; for example, by creating new Identity and Access Management (IAM) users. For those stacks, you must explicitly acknowledge this by specifying one of these capabilities.
The following IAM resources require you to specify either the CAPABILITY_IAM
or CAPABILITY_NAMED_IAM
capability.
-
If you have IAM resources, you can specify either capability.
-
If you have IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM
.
-
If you don't specify either of these capabilities, CloudFormation returns an InsufficientCapabilities
error.
If your stack template contains these resources, we recommend that you review all permissions associated with them and edit their permissions if necessary.
For more information, see Acknowledging IAM Resources in CloudFormation Templates.
-
CAPABILITY_AUTO_EXPAND
Some template contain macros. Macros perform custom processing on templates; this can include simple actions like find-and-replace operations, all the way to extensive transformations of entire templates. Because of this, users typically create a change set from the processed template, so that they can review the changes resulting from the macros before actually creating the stack. If your stack template contains one or more macros, and you choose to create a stack directly from the processed template, without first reviewing the resulting changes in a change set, you must acknowledge this capability. This includes the AWS::Include and AWS::Serverless transforms, which are macros hosted by CloudFormation.
If you want to create a stack from a stack template that contains macros and nested stacks, you must create the stack directly from the template using this capability.
You should only create stacks directly from a stack template that contains macros if you know what processing the macro performs.
Each macro relies on an underlying Lambda service function for processing stack templates. Be aware that the Lambda function owner can update the function operation without CloudFormation being notified.
For more information, see Using CloudFormation macros to perform custom processing on templates.
",
+ "CreateChangeSetInput$Capabilities": "In some cases, you must explicitly acknowledge that your stack template contains certain capabilities in order for CloudFormation to create the stack.
-
CAPABILITY_IAM
and CAPABILITY_NAMED_IAM
Some stack templates might include resources that can affect permissions in your Amazon Web Services account; for example, by creating new Identity and Access Management (IAM) users. For those stacks, you must explicitly acknowledge this by specifying one of these capabilities.
The following IAM resources require you to specify either the CAPABILITY_IAM
or CAPABILITY_NAMED_IAM
capability.
-
If you have IAM resources, you can specify either capability.
-
If you have IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM
.
-
If you don't specify either of these capabilities, CloudFormation returns an InsufficientCapabilities
error.
If your stack template contains these resources, we suggest that you review all permissions associated with them and edit their permissions if necessary.
For more information, see Acknowledging IAM resources in CloudFormation templates.
-
CAPABILITY_AUTO_EXPAND
Some template contain macros. Macros perform custom processing on templates; this can include simple actions like find-and-replace operations, all the way to extensive transformations of entire templates. Because of this, users typically create a change set from the processed template, so that they can review the changes resulting from the macros before actually creating the stack. If your stack template contains one or more macros, and you choose to create a stack directly from the processed template, without first reviewing the resulting changes in a change set, you must acknowledge this capability. This includes the AWS::Include and AWS::Serverless transforms, which are macros hosted by CloudFormation.
This capacity doesn't apply to creating change sets, and specifying it when creating change sets has no effect.
If you want to create a stack from a stack template that contains macros and nested stacks, you must create or update the stack directly from the template using the CreateStack or UpdateStack action, and specifying this capability.
For more information about macros, see Using CloudFormation macros to perform custom processing on templates.
Only one of the Capabilities
and ResourceType
parameters can be specified.
",
+ "CreateStackInput$Capabilities": "In some cases, you must explicitly acknowledge that your stack template contains certain capabilities in order for CloudFormation to create the stack.
-
CAPABILITY_IAM
and CAPABILITY_NAMED_IAM
Some stack templates might include resources that can affect permissions in your Amazon Web Services account; for example, by creating new Identity and Access Management (IAM) users. For those stacks, you must explicitly acknowledge this by specifying one of these capabilities.
The following IAM resources require you to specify either the CAPABILITY_IAM
or CAPABILITY_NAMED_IAM
capability.
-
If you have IAM resources, you can specify either capability.
-
If you have IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM
.
-
If you don't specify either of these capabilities, CloudFormation returns an InsufficientCapabilities
error.
If your stack template contains these resources, we recommend that you review all permissions associated with them and edit their permissions if necessary.
For more information, see Acknowledging IAM Resources in CloudFormation Templates.
-
CAPABILITY_AUTO_EXPAND
Some template contain macros. Macros perform custom processing on templates; this can include simple actions like find-and-replace operations, all the way to extensive transformations of entire templates. Because of this, users typically create a change set from the processed template, so that they can review the changes resulting from the macros before actually creating the stack. If your stack template contains one or more macros, and you choose to create a stack directly from the processed template, without first reviewing the resulting changes in a change set, you must acknowledge this capability. This includes the AWS::Include and AWS::Serverless transforms, which are macros hosted by CloudFormation.
If you want to create a stack from a stack template that contains macros and nested stacks, you must create the stack directly from the template using this capability.
You should only create stacks directly from a stack template that contains macros if you know what processing the macro performs.
Each macro relies on an underlying Lambda service function for processing stack templates. Be aware that the Lambda function owner can update the function operation without CloudFormation being notified.
For more information, see Using CloudFormation macros to perform custom processing on templates.
Only one of the Capabilities
and ResourceType
parameters can be specified.
",
"CreateStackSetInput$Capabilities": "In some cases, you must explicitly acknowledge that your stack set template contains certain capabilities in order for CloudFormation to create the stack set and related stack instances.
-
CAPABILITY_IAM
and CAPABILITY_NAMED_IAM
Some stack templates might include resources that can affect permissions in your Amazon Web Services account; for example, by creating new Identity and Access Management (IAM) users. For those stack sets, you must explicitly acknowledge this by specifying one of these capabilities.
The following IAM resources require you to specify either the CAPABILITY_IAM
or CAPABILITY_NAMED_IAM
capability.
-
If you have IAM resources, you can specify either capability.
-
If you have IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM
.
-
If you don't specify either of these capabilities, CloudFormation returns an InsufficientCapabilities
error.
If your stack template contains these resources, we recommend that you review all permissions associated with them and edit their permissions if necessary.
For more information, see Acknowledging IAM Resources in CloudFormation Templates.
-
CAPABILITY_AUTO_EXPAND
Some templates reference macros. If your stack set template references one or more macros, you must create the stack set directly from the processed template, without first reviewing the resulting changes in a change set. To create the stack set directly, you must acknowledge this capability. For more information, see Using CloudFormation Macros to Perform Custom Processing on Templates.
Stack sets with service-managed permissions don't currently support the use of macros in templates. (This includes the AWS::Include and AWS::Serverless transforms, which are macros hosted by CloudFormation.) Even if you specify this capability for a stack set with service-managed permissions, if you reference a macro in your template the stack set operation will fail.
",
"DescribeChangeSetOutput$Capabilities": "If you execute the change set, the list of capabilities that were explicitly acknowledged when the change set was created.
",
"GetTemplateSummaryOutput$Capabilities": "The capabilities found within the template. If your template contains IAM resources, you must specify the CAPABILITY_IAM
or CAPABILITY_NAMED_IAM
value for this parameter when you use the CreateStack or UpdateStack actions with your template; otherwise, those actions return an InsufficientCapabilities
error.
For more information, see Acknowledging IAM Resources in CloudFormation Templates.
",
"Stack$Capabilities": "The capabilities allowed in the stack.
",
"StackSet$Capabilities": "The capabilities that are allowed in the stack set. Some stack set templates might include resources that can affect permissions in your Amazon Web Services account—for example, by creating new Identity and Access Management (IAM) users. For more information, see Acknowledging IAM Resources in CloudFormation Templates.
",
- "UpdateStackInput$Capabilities": "In some cases, you must explicitly acknowledge that your stack template contains certain capabilities in order for CloudFormation to update the stack.
-
CAPABILITY_IAM
and CAPABILITY_NAMED_IAM
Some stack templates might include resources that can affect permissions in your Amazon Web Services account; for example, by creating new Identity and Access Management (IAM) users. For those stacks, you must explicitly acknowledge this by specifying one of these capabilities.
The following IAM resources require you to specify either the CAPABILITY_IAM
or CAPABILITY_NAMED_IAM
capability.
-
If you have IAM resources, you can specify either capability.
-
If you have IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM
.
-
If you don't specify either of these capabilities, CloudFormation returns an InsufficientCapabilities
error.
If your stack template contains these resources, we suggest that you review all permissions associated with them and edit their permissions if necessary.
For more information, see Acknowledging IAM Resources in CloudFormation Templates.
-
CAPABILITY_AUTO_EXPAND
Some template contain macros. Macros perform custom processing on templates; this can include simple actions like find-and-replace operations, all the way to extensive transformations of entire templates. Because of this, users typically create a change set from the processed template, so that they can review the changes resulting from the macros before actually updating the stack. If your stack template contains one or more macros, and you choose to update a stack directly from the processed template, without first reviewing the resulting changes in a change set, you must acknowledge this capability. This includes the AWS::Include and AWS::Serverless transforms, which are macros hosted by CloudFormation.
If you want to update a stack from a stack template that contains macros and nested stacks, you must update the stack directly from the template using this capability.
You should only update stacks directly from a stack template that contains macros if you know what processing the macro performs.
Each macro relies on an underlying Lambda service function for processing stack templates. Be aware that the Lambda function owner can update the function operation without CloudFormation being notified.
For more information, see Using CloudFormation Macros to Perform Custom Processing on Templates.
",
+ "UpdateStackInput$Capabilities": "In some cases, you must explicitly acknowledge that your stack template contains certain capabilities in order for CloudFormation to update the stack.
-
CAPABILITY_IAM
and CAPABILITY_NAMED_IAM
Some stack templates might include resources that can affect permissions in your Amazon Web Services account; for example, by creating new Identity and Access Management (IAM) users. For those stacks, you must explicitly acknowledge this by specifying one of these capabilities.
The following IAM resources require you to specify either the CAPABILITY_IAM
or CAPABILITY_NAMED_IAM
capability.
-
If you have IAM resources, you can specify either capability.
-
If you have IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM
.
-
If you don't specify either of these capabilities, CloudFormation returns an InsufficientCapabilities
error.
If your stack template contains these resources, we suggest that you review all permissions associated with them and edit their permissions if necessary.
For more information, see Acknowledging IAM Resources in CloudFormation Templates.
-
CAPABILITY_AUTO_EXPAND
Some template contain macros. Macros perform custom processing on templates; this can include simple actions like find-and-replace operations, all the way to extensive transformations of entire templates. Because of this, users typically create a change set from the processed template, so that they can review the changes resulting from the macros before actually updating the stack. If your stack template contains one or more macros, and you choose to update a stack directly from the processed template, without first reviewing the resulting changes in a change set, you must acknowledge this capability. This includes the AWS::Include and AWS::Serverless transforms, which are macros hosted by CloudFormation.
If you want to update a stack from a stack template that contains macros and nested stacks, you must update the stack directly from the template using this capability.
You should only update stacks directly from a stack template that contains macros if you know what processing the macro performs.
Each macro relies on an underlying Lambda service function for processing stack templates. Be aware that the Lambda function owner can update the function operation without CloudFormation being notified.
For more information, see Using CloudFormation Macros to Perform Custom Processing on Templates.
Only one of the Capabilities
and ResourceType
parameters can be specified.
",
"UpdateStackSetInput$Capabilities": "In some cases, you must explicitly acknowledge that your stack template contains certain capabilities in order for CloudFormation to update the stack set and its associated stack instances.
-
CAPABILITY_IAM
and CAPABILITY_NAMED_IAM
Some stack templates might include resources that can affect permissions in your Amazon Web Services account; for example, by creating new Identity and Access Management (IAM) users. For those stacks sets, you must explicitly acknowledge this by specifying one of these capabilities.
The following IAM resources require you to specify either the CAPABILITY_IAM
or CAPABILITY_NAMED_IAM
capability.
-
If you have IAM resources, you can specify either capability.
-
If you have IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM
.
-
If you don't specify either of these capabilities, CloudFormation returns an InsufficientCapabilities
error.
If your stack template contains these resources, we recommend that you review all permissions associated with them and edit their permissions if necessary.
For more information, see Acknowledging IAM Resources in CloudFormation Templates.
-
CAPABILITY_AUTO_EXPAND
Some templates reference macros. If your stack set template references one or more macros, you must update the stack set directly from the processed template, without first reviewing the resulting changes in a change set. To update the stack set directly, you must acknowledge this capability. For more information, see Using CloudFormation Macros to Perform Custom Processing on Templates.
Stack sets with service-managed permissions do not currently support the use of macros in templates. (This includes the AWS::Include and AWS::Serverless transforms, which are macros hosted by CloudFormation.) Even if you specify this capability for a stack set with service-managed permissions, if you reference a macro in your template the stack set operation will fail.
",
"ValidateTemplateOutput$Capabilities": "The capabilities found within the template. If your template contains IAM resources, you must specify the CAPABILITY_IAM or CAPABILITY_NAMED_IAM value for this parameter when you use the CreateStack or UpdateStack actions with your template; otherwise, those actions return an InsufficientCapabilities error.
For more information, see Acknowledging IAM Resources in CloudFormation Templates.
"
}
@@ -491,6 +491,12 @@
"RecordHandlerProgressInput$BearerToken": "Reserved for use by the CloudFormation CLI.
"
}
},
+ "ConcurrencyMode": {
+ "base": null,
+ "refs": {
+ "StackSetOperationPreferences$ConcurrencyMode": "Specifies how the concurrency level behaves during the operation execution.
-
STRICT_FAILURE_TOLERANCE
: Dynamically lowers the concurrency level to ensure the number of failed accounts never exceeds the FailureToleranceCount
+1. StackSets will set the actual concurrency of your deployment as the minimum value between the MaxConcurrentCount
and the FailureToleranceCount
+1. This is the default behavior.
If failure tolerance or Maximum concurrent accounts are set to percentages, the behavior is similar.
-
SOFT_FAILURE_TOLERANCE
: Always run at the concurrency level set by the user in the MaxConcurrentCount
or MaxConcurrentPercentage
, regardless of the number of failures.
"
+ }
+ },
"ConfigurationSchema": {
"base": null,
"refs": {
@@ -1425,7 +1431,7 @@
"MaxConcurrentCount": {
"base": null,
"refs": {
- "StackSetOperationPreferences$MaxConcurrentCount": "The maximum number of accounts in which to perform this operation at one time. This is dependent on the value of FailureToleranceCount
.MaxConcurrentCount
is at most one more than the FailureToleranceCount
.
Note that this setting lets you specify the maximum for operations. For large deployments, under certain circumstances the actual number of accounts acted upon concurrently may be lower due to service throttling.
Conditional: You must specify either MaxConcurrentCount
or MaxConcurrentPercentage
, but not both.
By default, 1
is specified.
"
+ "StackSetOperationPreferences$MaxConcurrentCount": "The maximum number of accounts in which to perform this operation at one time. This can depend on the value of FailureToleranceCount
depending on your ConcurrencyMode
. MaxConcurrentCount
is at most one more than the FailureToleranceCount
if you're using STRICT_FAILURE_TOLERANCE
.
Note that this setting lets you specify the maximum for operations. For large deployments, under certain circumstances the actual number of accounts acted upon concurrently may be lower due to service throttling.
Conditional: You must specify either MaxConcurrentCount
or MaxConcurrentPercentage
, but not both.
By default, 1
is specified.
"
}
},
"MaxConcurrentPercentage": {
@@ -2142,10 +2148,10 @@
"ResourceTypes": {
"base": null,
"refs": {
- "CreateChangeSetInput$ResourceTypes": "The template resource types that you have permissions to work with if you execute this change set, such as AWS::EC2::Instance
, AWS::EC2::*
, or Custom::MyCustomInstance
.
If the list of resource types doesn't include a resource type that you're updating, the stack update fails. By default, CloudFormation grants permissions to all resource types. Identity and Access Management (IAM) uses this parameter for condition keys in IAM policies for CloudFormation. For more information, see Controlling access with Identity and Access Management in the CloudFormation User Guide.
",
- "CreateStackInput$ResourceTypes": "The template resource types that you have permissions to work with for this create stack action, such as AWS::EC2::Instance
, AWS::EC2::*
, or Custom::MyCustomInstance
. Use the following syntax to describe template resource types: AWS::*
(for all Amazon Web Services resources), Custom::*
(for all custom resources), Custom::logical_ID
(for a specific custom resource), AWS::service_name::*
(for all resources of a particular Amazon Web Services service), and AWS::service_name::resource_logical_ID
(for a specific Amazon Web Services resource).
If the list of resource types doesn't include a resource that you're creating, the stack creation fails. By default, CloudFormation grants permissions to all resource types. Identity and Access Management (IAM) uses this parameter for CloudFormation-specific condition keys in IAM policies. For more information, see Controlling Access with Identity and Access Management.
",
+ "CreateChangeSetInput$ResourceTypes": "The template resource types that you have permissions to work with if you execute this change set, such as AWS::EC2::Instance
, AWS::EC2::*
, or Custom::MyCustomInstance
.
If the list of resource types doesn't include a resource type that you're updating, the stack update fails. By default, CloudFormation grants permissions to all resource types. Identity and Access Management (IAM) uses this parameter for condition keys in IAM policies for CloudFormation. For more information, see Controlling access with Identity and Access Management in the CloudFormation User Guide.
Only one of the Capabilities
and ResourceType
parameters can be specified.
",
+ "CreateStackInput$ResourceTypes": "The template resource types that you have permissions to work with for this create stack action, such as AWS::EC2::Instance
, AWS::EC2::*
, or Custom::MyCustomInstance
. Use the following syntax to describe template resource types: AWS::*
(for all Amazon Web Services resources), Custom::*
(for all custom resources), Custom::logical_ID
(for a specific custom resource), AWS::service_name::*
(for all resources of a particular Amazon Web Services service), and AWS::service_name::resource_logical_ID
(for a specific Amazon Web Services resource).
If the list of resource types doesn't include a resource that you're creating, the stack creation fails. By default, CloudFormation grants permissions to all resource types. Identity and Access Management (IAM) uses this parameter for CloudFormation-specific condition keys in IAM policies. For more information, see Controlling Access with Identity and Access Management.
Only one of the Capabilities
and ResourceType
parameters can be specified.
",
"GetTemplateSummaryOutput$ResourceTypes": "A list of all the template resource types that are defined in the template, such as AWS::EC2::Instance
, AWS::Dynamo::Table
, and Custom::MyCustomInstance
.
",
- "UpdateStackInput$ResourceTypes": "The template resource types that you have permissions to work with for this update stack action, such as AWS::EC2::Instance
, AWS::EC2::*
, or Custom::MyCustomInstance
.
If the list of resource types doesn't include a resource that you're updating, the stack update fails. By default, CloudFormation grants permissions to all resource types. Identity and Access Management (IAM) uses this parameter for CloudFormation-specific condition keys in IAM policies. For more information, see Controlling Access with Identity and Access Management.
",
+ "UpdateStackInput$ResourceTypes": "The template resource types that you have permissions to work with for this update stack action, such as AWS::EC2::Instance
, AWS::EC2::*
, or Custom::MyCustomInstance
.
If the list of resource types doesn't include a resource that you're updating, the stack update fails. By default, CloudFormation grants permissions to all resource types. Identity and Access Management (IAM) uses this parameter for CloudFormation-specific condition keys in IAM policies. For more information, see Controlling Access with Identity and Access Management.
Only one of the Capabilities
and ResourceType
parameters can be specified.
",
"Warnings$UnrecognizedResourceTypes": "A list of all of the unrecognized resource types. This is only returned if the TemplateSummaryConfig
parameter has the TreatUnrecognizedResourceTypesAsWarning
configuration set to True
.
"
}
},
@@ -2217,7 +2223,7 @@
"ActivateTypeInput$ExecutionRoleArn": "The name of the IAM execution role to use to activate the extension.
",
"DescribeTypeOutput$ExecutionRoleArn": "The Amazon Resource Name (ARN) of the IAM execution role used to register the extension. This applies only to private extensions you have registered in your account. For more information, see RegisterType.
If the registered extension calls any Amazon Web Services APIs, you must create an IAM execution role that includes the necessary permissions to call those Amazon Web Services APIs, and provision that execution role in your account. CloudFormation then assumes that execution role to provide your extension with the appropriate credentials.
",
"LoggingConfig$LogRoleArn": "The Amazon Resource Name (ARN) of the role that CloudFormation should assume when sending log entries to CloudWatch Logs.
",
- "RegisterTypeInput$ExecutionRoleArn": "The Amazon Resource Name (ARN) of the IAM role for CloudFormation to assume when invoking the extension.
For CloudFormation to assume the specified execution role, the role must contain a trust relationship with the CloudFormation service principle (resources.cloudformation.amazonaws.com
). For more information about adding trust relationships, see Modifying a role trust policy in the Identity and Access Management User Guide.
If your extension calls Amazon Web Services APIs in any of its handlers, you must create an IAM execution role that includes the necessary permissions to call those Amazon Web Services APIs, and provision that execution role in your account. When CloudFormation needs to invoke the resource type handler, CloudFormation assumes this execution role to create a temporary session token, which it then passes to the resource type handler, thereby supplying your resource type with the appropriate credentials.
"
+ "RegisterTypeInput$ExecutionRoleArn": "The Amazon Resource Name (ARN) of the IAM role for CloudFormation to assume when invoking the extension.
For CloudFormation to assume the specified execution role, the role must contain a trust relationship with the CloudFormation service principal (resources.cloudformation.amazonaws.com
). For more information about adding trust relationships, see Modifying a role trust policy in the Identity and Access Management User Guide.
If your extension calls Amazon Web Services APIs in any of its handlers, you must create an IAM execution role that includes the necessary permissions to call those Amazon Web Services APIs, and provision that execution role in your account. When CloudFormation needs to invoke the resource type handler, CloudFormation assumes this execution role to create a temporary session token, which it then passes to the resource type handler, thereby supplying your resource type with the appropriate credentials.
"
}
},
"RollbackConfiguration": {
diff --git a/models/apis/cloudformation/2010-05-15/endpoint-rule-set-1.json b/models/apis/cloudformation/2010-05-15/endpoint-rule-set-1.json
index 226c1811ddf..e67087a2269 100644
--- a/models/apis/cloudformation/2010-05-15/endpoint-rule-set-1.json
+++ b/models/apis/cloudformation/2010-05-15/endpoint-rule-set-1.json
@@ -40,7 +40,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -83,7 +82,8 @@
},
"type": "endpoint"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [
@@ -96,7 +96,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -110,7 +109,6 @@
"assign": "PartitionResult"
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -133,7 +131,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -168,7 +165,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [],
@@ -179,14 +175,16 @@
},
"type": "endpoint"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "FIPS and DualStack are enabled, but this partition does not support one or both",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [
@@ -200,14 +198,12 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
{
"fn": "booleanEquals",
"argv": [
- true,
{
"fn": "getAttr",
"argv": [
@@ -216,18 +212,17 @@
},
"supportsFIPS"
]
- }
+ },
+ true
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
{
"fn": "stringEquals",
"argv": [
- "aws-us-gov",
{
"fn": "getAttr",
"argv": [
@@ -236,7 +231,8 @@
},
"name"
]
- }
+ },
+ "aws-us-gov"
]
}
],
@@ -256,14 +252,16 @@
},
"type": "endpoint"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "FIPS is enabled but this partition does not support FIPS",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [
@@ -277,7 +275,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -297,7 +294,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [],
@@ -308,14 +304,16 @@
},
"type": "endpoint"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "DualStack is enabled but this partition does not support DualStack",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
@@ -326,9 +324,11 @@
},
"type": "endpoint"
}
- ]
+ ],
+ "type": "tree"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
diff --git a/models/apis/cloudformation/2010-05-15/endpoint-tests-1.json b/models/apis/cloudformation/2010-05-15/endpoint-tests-1.json
index b20e6d8f1e7..0ef14592b91 100644
--- a/models/apis/cloudformation/2010-05-15/endpoint-tests-1.json
+++ b/models/apis/cloudformation/2010-05-15/endpoint-tests-1.json
@@ -672,6 +672,17 @@
"expect": {
"error": "Invalid Configuration: Missing Region"
}
+ },
+ {
+ "documentation": "Partition doesn't support DualStack",
+ "expect": {
+ "error": "DualStack is enabled but this partition does not support DualStack"
+ },
+ "params": {
+ "Region": "us-isob-east-1",
+ "UseFIPS": false,
+ "UseDualStack": true
+ }
}
],
"version": "1.0"
diff --git a/models/apis/cloudtrail/2013-11-01/api-2.json b/models/apis/cloudtrail/2013-11-01/api-2.json
index 2ab80280308..032dead450a 100644
--- a/models/apis/cloudtrail/2013-11-01/api-2.json
+++ b/models/apis/cloudtrail/2013-11-01/api-2.json
@@ -373,6 +373,8 @@
"input":{"shape":"GetInsightSelectorsRequest"},
"output":{"shape":"GetInsightSelectorsResponse"},
"errors":[
+ {"shape":"InvalidParameterException"},
+ {"shape":"InvalidParameterCombinationException"},
{"shape":"TrailNotFoundException"},
{"shape":"InvalidTrailNameException"},
{"shape":"CloudTrailARNInvalidException"},
@@ -651,6 +653,8 @@
"input":{"shape":"PutInsightSelectorsRequest"},
"output":{"shape":"PutInsightSelectorsResponse"},
"errors":[
+ {"shape":"InvalidParameterException"},
+ {"shape":"InvalidParameterCombinationException"},
{"shape":"TrailNotFoundException"},
{"shape":"InvalidTrailNameException"},
{"shape":"CloudTrailARNInvalidException"},
@@ -950,6 +954,7 @@
{"shape":"EventDataStoreARNInvalidException"},
{"shape":"EventDataStoreNotFoundException"},
{"shape":"InvalidEventSelectorsException"},
+ {"shape":"InvalidInsightSelectorsException"},
{"shape":"EventDataStoreHasOngoingImportException"},
{"shape":"InactiveEventDataStoreException"},
{"shape":"InvalidParameterException"},
@@ -1705,16 +1710,18 @@
},
"GetInsightSelectorsRequest":{
"type":"structure",
- "required":["TrailName"],
"members":{
- "TrailName":{"shape":"String"}
+ "TrailName":{"shape":"String"},
+ "EventDataStore":{"shape":"EventDataStoreArn"}
}
},
"GetInsightSelectorsResponse":{
"type":"structure",
"members":{
"TrailARN":{"shape":"String"},
- "InsightSelectors":{"shape":"InsightSelectors"}
+ "InsightSelectors":{"shape":"InsightSelectors"},
+ "EventDataStoreArn":{"shape":"EventDataStoreArn"},
+ "InsightsDestination":{"shape":"EventDataStoreArn"}
}
},
"GetQueryResultsRequest":{
@@ -2430,20 +2437,21 @@
},
"PutInsightSelectorsRequest":{
"type":"structure",
- "required":[
- "TrailName",
- "InsightSelectors"
- ],
+ "required":["InsightSelectors"],
"members":{
"TrailName":{"shape":"String"},
- "InsightSelectors":{"shape":"InsightSelectors"}
+ "InsightSelectors":{"shape":"InsightSelectors"},
+ "EventDataStore":{"shape":"EventDataStoreArn"},
+ "InsightsDestination":{"shape":"EventDataStoreArn"}
}
},
"PutInsightSelectorsResponse":{
"type":"structure",
"members":{
"TrailARN":{"shape":"String"},
- "InsightSelectors":{"shape":"InsightSelectors"}
+ "InsightSelectors":{"shape":"InsightSelectors"},
+ "EventDataStoreArn":{"shape":"EventDataStoreArn"},
+ "InsightsDestination":{"shape":"EventDataStoreArn"}
}
},
"PutResourcePolicyRequest":{
diff --git a/models/apis/cloudtrail/2013-11-01/docs-2.json b/models/apis/cloudtrail/2013-11-01/docs-2.json
index 420fb79ffe1..87e35f5b663 100644
--- a/models/apis/cloudtrail/2013-11-01/docs-2.json
+++ b/models/apis/cloudtrail/2013-11-01/docs-2.json
@@ -18,7 +18,7 @@
"GetEventDataStore": "Returns information about an event data store specified as either an ARN or the ID portion of the ARN.
",
"GetEventSelectors": "Describes the settings for the event selectors that you configured for your trail. The information returned for your event selectors includes the following:
-
If your event selector includes read-only events, write-only events, or all events. This applies to both management events and data events.
-
If your event selector includes management events.
-
If your event selector includes data events, the resources on which you are logging data events.
For more information about logging management and data events, see the following topics in the CloudTrail User Guide:
",
"GetImport": " Returns information about a specific import.
",
- "GetInsightSelectors": "Describes the settings for the Insights event selectors that you configured for your trail. GetInsightSelectors
shows if CloudTrail Insights event logging is enabled on the trail, and if it is, which insight types are enabled. If you run GetInsightSelectors
on a trail that does not have Insights events enabled, the operation throws the exception InsightNotEnabledException
For more information, see Logging CloudTrail Insights Events for Trails in the CloudTrail User Guide.
",
+ "GetInsightSelectors": "Describes the settings for the Insights event selectors that you configured for your trail or event data store. GetInsightSelectors
shows if CloudTrail Insights event logging is enabled on the trail or event data store, and if it is, which Insights types are enabled. If you run GetInsightSelectors
on a trail or event data store that does not have Insights events enabled, the operation throws the exception InsightNotEnabledException
Specify either the EventDataStore
parameter to get Insights event selectors for an event data store, or the TrailName
parameter to the get Insights event selectors for a trail. You cannot specify these parameters together.
For more information, see Logging CloudTrail Insights events in the CloudTrail User Guide.
",
"GetQueryResults": "Gets event data results of a query. You must specify the QueryID
value returned by the StartQuery
operation.
",
"GetResourcePolicy": " Retrieves the JSON text of the resource-based policy document attached to the CloudTrail channel.
",
"GetTrail": "Returns settings information for a specified trail.
",
@@ -31,11 +31,11 @@
"ListQueries": "Returns a list of queries and query statuses for the past seven days. You must specify an ARN value for EventDataStore
. Optionally, to shorten the list of results, you can specify a time range, formatted as timestamps, by adding StartTime
and EndTime
parameters, and a QueryStatus
value. Valid values for QueryStatus
include QUEUED
, RUNNING
, FINISHED
, FAILED
, TIMED_OUT
, or CANCELLED
.
",
"ListTags": "Lists the tags for the specified trails, event data stores, or channels in the current Region.
",
"ListTrails": "Lists trails that are in the current account.
",
- "LookupEvents": "Looks up management events or CloudTrail Insights events that are captured by CloudTrail. You can look up events that occurred in a Region within the last 90 days. Lookup supports the following attributes for management events:
Lookup supports the following attributes for Insights events:
-
Event ID
-
Event name
-
Event source
All attributes are optional. The default number of results returned is 50, with a maximum of 50 possible. The response includes a token that you can use to get the next page of results.
The rate of lookup requests is limited to two per second, per account, per Region. If this limit is exceeded, a throttling error occurs.
",
+ "LookupEvents": "Looks up management events or CloudTrail Insights events that are captured by CloudTrail. You can look up events that occurred in a Region within the last 90 days.
LookupEvents
returns recent Insights events for trails that enable Insights. To view Insights events for an event data store, you can run queries on your Insights event data store, and you can also view the Lake dashboard for Insights.
Lookup supports the following attributes for management events:
Lookup supports the following attributes for Insights events:
-
Event ID
-
Event name
-
Event source
All attributes are optional. The default number of results returned is 50, with a maximum of 50 possible. The response includes a token that you can use to get the next page of results.
The rate of lookup requests is limited to two per second, per account, per Region. If this limit is exceeded, a throttling error occurs.
",
"PutEventSelectors": "Configures an event selector or advanced event selectors for your trail. Use event selectors or advanced event selectors to specify management and data event settings for your trail. If you want your trail to log Insights events, be sure the event selector enables logging of the Insights event types you want configured for your trail. For more information about logging Insights events, see Logging Insights events for trails in the CloudTrail User Guide. By default, trails created without specific event selectors are configured to log all read and write management events, and no data events.
When an event occurs in your account, CloudTrail evaluates the event selectors or advanced event selectors in all trails. For each trail, if the event matches any event selector, the trail processes and logs the event. If the event doesn't match any event selector, the trail doesn't log the event.
Example
-
You create an event selector for a trail and specify that you want write-only events.
-
The EC2 GetConsoleOutput
and RunInstances
API operations occur in your account.
-
CloudTrail evaluates whether the events match your event selectors.
-
The RunInstances
is a write-only event and it matches your event selector. The trail logs the event.
-
The GetConsoleOutput
is a read-only event that doesn't match your event selector. The trail doesn't log the event.
The PutEventSelectors
operation must be called from the Region in which the trail was created; otherwise, an InvalidHomeRegionException
exception is thrown.
You can configure up to five event selectors for each trail. For more information, see Logging management events, Logging data events, and Quotas in CloudTrail in the CloudTrail User Guide.
You can add advanced event selectors, and conditions for your advanced event selectors, up to a maximum of 500 values for all conditions and selectors on a trail. You can use either AdvancedEventSelectors
or EventSelectors
, but not both. If you apply AdvancedEventSelectors
to a trail, any existing EventSelectors
are overwritten. For more information about advanced event selectors, see Logging data events in the CloudTrail User Guide.
",
- "PutInsightSelectors": "Lets you enable Insights event logging by specifying the Insights selectors that you want to enable on an existing trail. You also use PutInsightSelectors
to turn off Insights event logging, by passing an empty list of insight types. The valid Insights event types in this release are ApiErrorRateInsight
and ApiCallRateInsight
.
To log CloudTrail Insights events on API call volume, the trail must log write
management events. To log CloudTrail Insights events on API error rate, the trail must log read
or write
management events. You can call GetEventSelectors
on a trail to check whether the trail logs management events.
",
+ "PutInsightSelectors": "Lets you enable Insights event logging by specifying the Insights selectors that you want to enable on an existing trail or event data store. You also use PutInsightSelectors
to turn off Insights event logging, by passing an empty list of Insights types. The valid Insights event types are ApiErrorRateInsight
and ApiCallRateInsight
.
To enable Insights on an event data store, you must specify the ARNs (or ID suffix of the ARNs) for the source event data store (EventDataStore
) and the destination event data store (InsightsDestination
). The source event data store logs management events and enables Insights. The destination event data store logs Insights events based upon the management event activity of the source event data store. The source and destination event data stores must belong to the same Amazon Web Services account.
To log Insights events for a trail, you must specify the name (TrailName
) of the CloudTrail trail for which you want to change or add Insights selectors.
To log CloudTrail Insights events on API call volume, the trail or event data store must log write
management events. To log CloudTrail Insights events on API error rate, the trail or event data store must log read
or write
management events. You can call GetEventSelectors
on a trail to check whether the trail logs management events. You can call GetEventDataStore
on an event data store to check whether the event data store logs management events.
For more information, see Logging CloudTrail Insights events in the CloudTrail User Guide.
",
"PutResourcePolicy": " Attaches a resource-based permission policy to a CloudTrail channel that is used for an integration with an event source outside of Amazon Web Services. For more information about resource-based policies, see CloudTrail resource-based policy examples in the CloudTrail User Guide.
",
- "RegisterOrganizationDelegatedAdmin": "Registers an organization’s member account as the CloudTrail delegated administrator.
",
+ "RegisterOrganizationDelegatedAdmin": "Registers an organization’s member account as the CloudTrail delegated administrator.
",
"RemoveTags": "Removes the specified tags from a trail, event data store, or channel.
",
"RestoreEventDataStore": "Restores a deleted event data store specified by EventDataStore
, which accepts an event data store ARN. You can only restore a deleted event data store within the seven-day wait period after deletion. Restoring an event data store can take several minutes, depending on the size of the event data store.
",
"StartEventDataStoreIngestion": "Starts the ingestion of live events on an event data store specified as either an ARN or the ID portion of the ARN. To start ingestion, the event data store Status
must be STOPPED_INGESTION
and the eventCategory
must be Management
, Data
, or ConfigurationItem
.
",
@@ -46,7 +46,7 @@
"StopImport": " Stops a specified import.
",
"StopLogging": "Suspends the recording of Amazon Web Services API calls and log file delivery for the specified trail. Under most circumstances, there is no need to use this action. You can update a trail without stopping it first. This action is the only way to stop recording. For a trail enabled in all Regions, this operation must be called from the Region in which the trail was created, or an InvalidHomeRegionException
will occur. This operation cannot be called on the shadow trails (replicated trails in other Regions) of a trail enabled in all Regions.
",
"UpdateChannel": "Updates a channel specified by a required channel ARN or UUID.
",
- "UpdateEventDataStore": "Updates an event data store. The required EventDataStore
value is an ARN or the ID portion of the ARN. Other parameters are optional, but at least one optional parameter must be specified, or CloudTrail throws an error. RetentionPeriod
is in days, and valid values are integers between 90 and 2557. By default, TerminationProtection
is enabled.
For event data stores for CloudTrail events, AdvancedEventSelectors
includes or excludes management and data events in your event data store. For more information about AdvancedEventSelectors
, see AdvancedEventSelectors.
For event data stores for Config configuration items, Audit Manager evidence, or non-Amazon Web Services events, AdvancedEventSelectors
includes events of that type in your event data store.
",
+ "UpdateEventDataStore": "Updates an event data store. The required EventDataStore
value is an ARN or the ID portion of the ARN. Other parameters are optional, but at least one optional parameter must be specified, or CloudTrail throws an error. RetentionPeriod
is in days, and valid values are integers between 90 and 2557. By default, TerminationProtection
is enabled.
For event data stores for CloudTrail events, AdvancedEventSelectors
includes or excludes management, data, or Insights events in your event data store. For more information about AdvancedEventSelectors
, see AdvancedEventSelectors.
For event data stores for Config configuration items, Audit Manager evidence, or non-Amazon Web Services events, AdvancedEventSelectors
includes events of that type in your event data store.
",
"UpdateTrail": "Updates trail settings that control what events you are logging, and how to handle log files. Changes to a trail do not require stopping the CloudTrail service. Use this action to designate an existing bucket for log delivery. If the existing bucket has previously been a target for CloudTrail log files, an IAM policy exists for the bucket. UpdateTrail
must be called from the Region in which the trail was created; otherwise, an InvalidHomeRegionException
is thrown.
"
},
"shapes": {
@@ -154,13 +154,13 @@
"Trail$HasInsightSelectors": "Specifies whether a trail has insight types specified in an InsightSelector
list.
",
"Trail$IsOrganizationTrail": "Specifies whether the trail is an organization trail.
",
"UpdateEventDataStoreRequest$MultiRegionEnabled": "Specifies whether an event data store collects events from all Regions, or only from the Region in which it was created.
",
- "UpdateEventDataStoreRequest$OrganizationEnabled": "Specifies whether an event data store collects events logged for an organization in Organizations.
",
+ "UpdateEventDataStoreRequest$OrganizationEnabled": "Specifies whether an event data store collects events logged for an organization in Organizations.
Only the management account for the organization can convert an organization event data store to a non-organization event data store, or convert a non-organization event data store to an organization event data store.
",
"UpdateEventDataStoreResponse$MultiRegionEnabled": "Indicates whether the event data store includes events from all Regions, or only from the Region in which it was created.
",
"UpdateEventDataStoreResponse$OrganizationEnabled": "Indicates whether an event data store is collecting logged events for an organization in Organizations.
",
"UpdateTrailRequest$IncludeGlobalServiceEvents": "Specifies whether the trail is publishing events from global services such as IAM to the log files.
",
"UpdateTrailRequest$IsMultiRegionTrail": "Specifies whether the trail applies only to the current Region or to all Regions. The default is false. If the trail exists only in the current Region and this value is set to true, shadow trails (replications of the trail) will be created in the other Regions. If the trail exists in all Regions and this value is set to false, the trail will remain in the Region where it was created, and its shadow trails in other Regions will be deleted. As a best practice, consider using trails that log events in all Regions.
",
"UpdateTrailRequest$EnableLogFileValidation": "Specifies whether log file validation is enabled. The default is false.
When you disable log file integrity validation, the chain of digest files is broken after one hour. CloudTrail does not create digest files for log files that were delivered during a period in which log file integrity validation was disabled. For example, if you enable log file integrity validation at noon on January 1, disable it at noon on January 2, and re-enable it at noon on January 10, digest files will not be created for the log files delivered from noon on January 2 to noon on January 10. The same applies whenever you stop CloudTrail logging or delete a trail.
",
- "UpdateTrailRequest$IsOrganizationTrail": "Specifies whether the trail is applied to all accounts in an organization in Organizations, or only for the current Amazon Web Services account. The default is false, and cannot be true unless the call is made on behalf of an Amazon Web Services account that is the management account or delegated administrator account for an organization in Organizations. If the trail is not an organization trail and this is set to true
, the trail will be created in all Amazon Web Services accounts that belong to the organization. If the trail is an organization trail and this is set to false
, the trail will remain in the current Amazon Web Services account but be deleted from all member accounts in the organization.
",
+ "UpdateTrailRequest$IsOrganizationTrail": "Specifies whether the trail is applied to all accounts in an organization in Organizations, or only for the current Amazon Web Services account. The default is false, and cannot be true unless the call is made on behalf of an Amazon Web Services account that is the management account for an organization in Organizations. If the trail is not an organization trail and this is set to true
, the trail will be created in all Amazon Web Services accounts that belong to the organization. If the trail is an organization trail and this is set to false
, the trail will remain in the current Amazon Web Services account but be deleted from all member accounts in the organization.
Only the management account for the organization can convert an organization trail to a non-organization trail, or convert a non-organization trail to an organization trail.
",
"UpdateTrailResponse$IncludeGlobalServiceEvents": "Specifies whether the trail is publishing events from global services such as IAM to the log files.
",
"UpdateTrailResponse$IsMultiRegionTrail": "Specifies whether the trail exists in one Region or in all Regions.
",
"UpdateTrailResponse$LogFileValidationEnabled": "Specifies whether log file integrity validation is enabled.
",
@@ -249,7 +249,7 @@
}
},
"CloudTrailARNInvalidException": {
- "base": "This exception is thrown when an operation is called with a trail ARN that is not valid. The following is the format of a trail ARN.
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
This exception is also thrown when you call AddTags
or RemoveTags
on a trail, event data store, or channel with a resource ARN that is not valid.
The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE
The following is the format of a channel ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890
",
+ "base": "This exception is thrown when an operation is called with an ARN that is not valid.
The following is the format of a trail ARN: arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE
The following is the format of a channel ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890
",
"refs": {
}
},
@@ -528,10 +528,17 @@
"EventDataStore$EventDataStoreArn": "The ARN of the event data store.
",
"GetEventDataStoreRequest$EventDataStore": "The ARN (or ID suffix of the ARN) of the event data store about which you want information.
",
"GetEventDataStoreResponse$EventDataStoreArn": "The event data store Amazon Resource Number (ARN).
",
+ "GetInsightSelectorsRequest$EventDataStore": " Specifies the ARN (or ID suffix of the ARN) of the event data store for which you want to get Insights selectors.
You cannot use this parameter with the TrailName
parameter.
",
+ "GetInsightSelectorsResponse$EventDataStoreArn": " The ARN of the source event data store that enabled Insights events.
",
+ "GetInsightSelectorsResponse$InsightsDestination": " The ARN of the destination event data store that logs Insights events.
",
"GetQueryResultsRequest$EventDataStore": "The ARN (or ID suffix of the ARN) of the event data store against which the query was run.
",
"ImportDestinations$member": null,
"ListImportsRequest$Destination": " The ARN of the destination event data store.
",
"ListQueriesRequest$EventDataStore": "The ARN (or the ID suffix of the ARN) of an event data store on which queries were run.
",
+ "PutInsightSelectorsRequest$EventDataStore": "The ARN (or ID suffix of the ARN) of the source event data store for which you want to change or add Insights selectors. To enable Insights on an event data store, you must provide both the EventDataStore
and InsightsDestination
parameters.
You cannot use this parameter with the TrailName
parameter.
",
+ "PutInsightSelectorsRequest$InsightsDestination": " The ARN (or ID suffix of the ARN) of the destination event data store that logs Insights events. To enable Insights on an event data store, you must provide both the EventDataStore
and InsightsDestination
parameters.
You cannot use this parameter with the TrailName
parameter.
",
+ "PutInsightSelectorsResponse$EventDataStoreArn": "The Amazon Resource Name (ARN) of the source event data store for which you want to change or add Insights selectors.
",
+ "PutInsightSelectorsResponse$InsightsDestination": " The ARN of the destination event data store that logs Insights events.
",
"RestoreEventDataStoreRequest$EventDataStore": "The ARN (or the ID suffix of the ARN) of the event data store that you want to restore.
",
"RestoreEventDataStoreResponse$EventDataStoreArn": "The event data store ARN.
",
"StartEventDataStoreIngestionRequest$EventDataStore": "The ARN (or ID suffix of the ARN) of the event data store for which you want to start ingestion.
",
@@ -803,12 +810,12 @@
}
},
"InsightNotEnabledException": {
- "base": "If you run GetInsightSelectors
on a trail that does not have Insights events enabled, the operation throws the exception InsightNotEnabledException
.
",
+ "base": "If you run GetInsightSelectors
on a trail or event data store that does not have Insights events enabled, the operation throws the exception InsightNotEnabledException
.
",
"refs": {
}
},
"InsightSelector": {
- "base": "A JSON string that contains a list of Insights types that are logged on a trail.
",
+ "base": "A JSON string that contains a list of Insights types that are logged on a trail or event data store.
",
"refs": {
"InsightSelectors$member": null
}
@@ -816,15 +823,15 @@
"InsightSelectors": {
"base": null,
"refs": {
- "GetInsightSelectorsResponse$InsightSelectors": "A JSON string that contains the insight types you want to log on a trail. In this release, ApiErrorRateInsight
and ApiCallRateInsight
are supported as insight types.
",
- "PutInsightSelectorsRequest$InsightSelectors": "A JSON string that contains the insight types you want to log on a trail. ApiCallRateInsight
and ApiErrorRateInsight
are valid Insight types.
The ApiCallRateInsight
Insights type analyzes write-only management API calls that are aggregated per minute against a baseline API call volume.
The ApiErrorRateInsight
Insights type analyzes management API calls that result in error codes. The error is shown if the API call is unsuccessful.
",
- "PutInsightSelectorsResponse$InsightSelectors": "A JSON string that contains the Insights event types that you want to log on a trail. The valid Insights types in this release are ApiErrorRateInsight
and ApiCallRateInsight
.
"
+ "GetInsightSelectorsResponse$InsightSelectors": "A JSON string that contains the Insight types you want to log on a trail or event data store. ApiErrorRateInsight
and ApiCallRateInsight
are supported as Insights types.
",
+ "PutInsightSelectorsRequest$InsightSelectors": "A JSON string that contains the Insights types you want to log on a trail or event data store. ApiCallRateInsight
and ApiErrorRateInsight
are valid Insight types.
The ApiCallRateInsight
Insights type analyzes write-only management API calls that are aggregated per minute against a baseline API call volume.
The ApiErrorRateInsight
Insights type analyzes management API calls that result in error codes. The error is shown if the API call is unsuccessful.
",
+ "PutInsightSelectorsResponse$InsightSelectors": "A JSON string that contains the Insights event types that you want to log on a trail or event data store. The valid Insights types are ApiErrorRateInsight
and ApiCallRateInsight
.
"
}
},
"InsightType": {
"base": null,
"refs": {
- "InsightSelector$InsightType": "The type of Insights events to log on a trail. ApiCallRateInsight
and ApiErrorRateInsight
are valid Insight types.
The ApiCallRateInsight
Insights type analyzes write-only management API calls that are aggregated per minute against a baseline API call volume.
The ApiErrorRateInsight
Insights type analyzes management API calls that result in error codes. The error is shown if the API call is unsuccessful.
"
+ "InsightSelector$InsightType": "The type of Insights events to log on a trail or event data store. ApiCallRateInsight
and ApiErrorRateInsight
are valid Insight types.
The ApiCallRateInsight
Insights type analyzes write-only management API calls that are aggregated per minute against a baseline API call volume.
The ApiErrorRateInsight
Insights type analyzes management API calls that result in error codes. The error is shown if the API call is unsuccessful.
"
}
},
"InsufficientDependencyServiceAccessPermissionException": {
@@ -901,7 +908,7 @@
}
},
"InvalidInsightSelectorsException": {
- "base": "The formatting or syntax of the InsightSelectors
JSON statement in your PutInsightSelectors
or GetInsightSelectors
request is not valid, or the specified insight type in the InsightSelectors
statement is not a valid insight type.
",
+ "base": "For PutInsightSelectors
, this exception is thrown when the formatting or syntax of the InsightSelectors
JSON statement is not valid, or the specified InsightType
in the InsightSelectors
statement is not valid. Valid values for InsightType
are ApiCallRateInsight
and ApiErrorRateInsight
. To enable Insights on an event data store, the destination event data store specified by the InsightsDestination
parameter must log Insights events and the source event data store specified by the EventDataStore
parameter must log management events.
For UpdateEventDataStore
, this exception is thrown if Insights are enabled on the event data store and the updated advanced event selectors are not compatible with the configured InsightSelectors
. If the InsightSelectors
includes an InsightType
of ApiCallRateInsight
, the source event data store must log write
management events. If the InsightSelectors
includes an InsightType
of ApiErrorRateInsight
, the source event data store must log management events.
",
"refs": {
}
},
@@ -1529,7 +1536,7 @@
"SelectorField": {
"base": null,
"refs": {
- "AdvancedFieldSelector$Field": " A field in a CloudTrail event record on which to filter events to be logged. For event data stores for Config configuration items, Audit Manager evidence, or non-Amazon Web Services events, the field is used only for selecting events as filtering is not supported.
For CloudTrail event records, supported fields include readOnly
, eventCategory
, eventSource
(for management events), eventName
, resources.type
, and resources.ARN
.
For event data stores for Config configuration items, Audit Manager evidence, or non-Amazon Web Services events, the only supported field is eventCategory
.
-
readOnly
- Optional. Can be set to Equals
a value of true
or false
. If you do not add this field, CloudTrail logs both read
and write
events. A value of true
logs only read
events. A value of false
logs only write
events.
-
eventSource
- For filtering management events only. This can be set only to NotEquals
kms.amazonaws.com
.
-
eventName
- Can use any operator. You can use it to filter in or filter out any data event logged to CloudTrail, such as PutBucket
or GetSnapshotBlock
. You can have multiple values for this field, separated by commas.
-
eventCategory
- This is required and must be set to Equals
.
-
For CloudTrail event records, the value must be Management
or Data
.
-
For Config configuration items, the value must be ConfigurationItem
.
-
For Audit Manager evidence, the value must be Evidence
.
-
For non-Amazon Web Services events, the value must be ActivityAuditLog
.
-
resources.type
- This field is required for CloudTrail data events. resources.type
can only use the Equals
operator, and the value can be one of the following:
-
AWS::DynamoDB::Table
-
AWS::Lambda::Function
-
AWS::S3::Object
-
AWS::CloudTrail::Channel
-
AWS::CodeWhisperer::Profile
-
AWS::Cognito::IdentityPool
-
AWS::DynamoDB::Stream
-
AWS::EC2::Snapshot
-
AWS::EMRWAL::Workspace
-
AWS::FinSpace::Environment
-
AWS::Glue::Table
-
AWS::GuardDuty::Detector
-
AWS::KendraRanking::ExecutionPlan
-
AWS::ManagedBlockchain::Network
-
AWS::ManagedBlockchain::Node
-
AWS::MedicalImaging::Datastore
-
AWS::SageMaker::ExperimentTrialComponent
-
AWS::SageMaker::FeatureGroup
-
AWS::S3::AccessPoint
-
AWS::S3ObjectLambda::AccessPoint
-
AWS::S3Outposts::Object
-
AWS::SSMMessages::ControlChannel
-
AWS::VerifiedPermissions::PolicyStore
You can have only one resources.type
field per selector. To log data events on more than one resource type, add another selector.
-
resources.ARN
- You can use any operator with resources.ARN
, but if you use Equals
or NotEquals
, the value must exactly match the ARN of a valid resource of the type you've specified in the template as the value of resources.type. For example, if resources.type equals AWS::S3::Object
, the ARN must be in one of the following formats. To log all data events for all objects in a specific S3 bucket, use the StartsWith
operator, and include only the bucket ARN as the matching value.
The trailing slash is intentional; do not exclude it. Replace the text between less than and greater than symbols (<>) with resource-specific information.
When resources.type equals AWS::DynamoDB::Table
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type equals AWS::Lambda::Function
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type equals AWS::CloudTrail::Channel
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type equals AWS::CodeWhisperer::Profile
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type equals AWS::Cognito::IdentityPool
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::DynamoDB::Stream
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::EC2::Snapshot
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::EMRWAL::Workspace
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::FinSpace::Environment
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::Glue::Table
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::GuardDuty::Detector
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::KendraRanking::ExecutionPlan
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::ManagedBlockchain::Network
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::ManagedBlockchain::Node
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::MedicalImaging::Datastore
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::SageMaker::ExperimentTrialComponent
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::SageMaker::FeatureGroup
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::S3::AccessPoint
, and the operator is set to Equals
or NotEquals
, the ARN must be in one of the following formats. To log events on all objects in an S3 access point, we recommend that you use only the access point ARN, don’t include the object path, and use the StartsWith
or NotStartsWith
operators.
When resources.type
equals AWS::S3ObjectLambda::AccessPoint
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::S3Outposts::Object
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::SSMMessages::ControlChannel
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type equals AWS::VerifiedPermissions::PolicyStore
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
"
+ "AdvancedFieldSelector$Field": " A field in a CloudTrail event record on which to filter events to be logged. For event data stores for Config configuration items, Audit Manager evidence, or non-Amazon Web Services events, the field is used only for selecting events as filtering is not supported.
For CloudTrail event records, supported fields include readOnly
, eventCategory
, eventSource
(for management events), eventName
, resources.type
, and resources.ARN
.
For event data stores for Config configuration items, Audit Manager evidence, or non-Amazon Web Services events, the only supported field is eventCategory
.
-
readOnly
- Optional. Can be set to Equals
a value of true
or false
. If you do not add this field, CloudTrail logs both read
and write
events. A value of true
logs only read
events. A value of false
logs only write
events.
-
eventSource
- For filtering management events only. This can be set to NotEquals
kms.amazonaws.com
or NotEquals
rdsdata.amazonaws.com
.
-
eventName
- Can use any operator. You can use it to filter in or filter out any data event logged to CloudTrail, such as PutBucket
or GetSnapshotBlock
. You can have multiple values for this field, separated by commas.
-
eventCategory
- This is required and must be set to Equals
.
-
For CloudTrail event records, the value must be Management
or Data
.
-
For CloudTrail Insights event records, the value must be Insight
.
-
For Config configuration items, the value must be ConfigurationItem
.
-
For Audit Manager evidence, the value must be Evidence
.
-
For non-Amazon Web Services events, the value must be ActivityAuditLog
.
-
resources.type
- This field is required for CloudTrail data events. resources.type
can only use the Equals
operator, and the value can be one of the following:
-
AWS::DynamoDB::Table
-
AWS::Lambda::Function
-
AWS::S3::Object
-
AWS::CloudTrail::Channel
-
AWS::CodeWhisperer::Customization
-
AWS::CodeWhisperer::Profile
-
AWS::Cognito::IdentityPool
-
AWS::DynamoDB::Stream
-
AWS::EC2::Snapshot
-
AWS::EMRWAL::Workspace
-
AWS::FinSpace::Environment
-
AWS::Glue::Table
-
AWS::GuardDuty::Detector
-
AWS::KendraRanking::ExecutionPlan
-
AWS::KinesisVideo::Stream
-
AWS::ManagedBlockchain::Network
-
AWS::ManagedBlockchain::Node
-
AWS::MedicalImaging::Datastore
-
AWS::PCAConnectorAD::Connector
-
AWS::SageMaker::Endpoint
-
AWS::SageMaker::ExperimentTrialComponent
-
AWS::SageMaker::FeatureGroup
-
AWS::SNS::PlatformEndpoint
-
AWS::SNS::Topic
-
AWS::S3::AccessPoint
-
AWS::S3ObjectLambda::AccessPoint
-
AWS::S3Outposts::Object
-
AWS::SSMMessages::ControlChannel
-
AWS::Timestream::Database
-
AWS::Timestream::Table
-
AWS::VerifiedPermissions::PolicyStore
You can have only one resources.type
field per selector. To log data events on more than one resource type, add another selector.
-
resources.ARN
- You can use any operator with resources.ARN
, but if you use Equals
or NotEquals
, the value must exactly match the ARN of a valid resource of the type you've specified in the template as the value of resources.type. For example, if resources.type equals AWS::S3::Object
, the ARN must be in one of the following formats. To log all data events for all objects in a specific S3 bucket, use the StartsWith
operator, and include only the bucket ARN as the matching value.
The trailing slash is intentional; do not exclude it. Replace the text between less than and greater than symbols (<>) with resource-specific information.
When resources.type equals AWS::DynamoDB::Table
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type equals AWS::Lambda::Function
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type equals AWS::CloudTrail::Channel
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type equals AWS::CodeWhisperer::Customization
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type equals AWS::CodeWhisperer::Profile
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type equals AWS::Cognito::IdentityPool
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::DynamoDB::Stream
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::EC2::Snapshot
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::EMRWAL::Workspace
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::FinSpace::Environment
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::Glue::Table
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::GuardDuty::Detector
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::KendraRanking::ExecutionPlan
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::KinesisVideo::Stream
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::ManagedBlockchain::Network
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::ManagedBlockchain::Node
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::MedicalImaging::Datastore
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::PCAConnectorAD::Connector
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::SageMaker::Endpoint
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::SageMaker::ExperimentTrialComponent
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::SageMaker::FeatureGroup
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::SNS::PlatformEndpoint
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::SNS::Topic
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::S3::AccessPoint
, and the operator is set to Equals
or NotEquals
, the ARN must be in one of the following formats. To log events on all objects in an S3 access point, we recommend that you use only the access point ARN, don’t include the object path, and use the StartsWith
or NotStartsWith
operators.
When resources.type
equals AWS::S3ObjectLambda::AccessPoint
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::S3Outposts::Object
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::SSMMessages::ControlChannel
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::Timestream::Database
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type
equals AWS::Timestream::Table
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
When resources.type equals AWS::VerifiedPermissions::PolicyStore
, and the operator is set to Equals
or NotEquals
, the ARN must be in the following format:
"
}
},
"SelectorName": {
@@ -1631,7 +1638,7 @@
"CreateTrailRequest$S3BucketName": "Specifies the name of the Amazon S3 bucket designated for publishing log files. See Amazon S3 Bucket Naming Requirements.
",
"CreateTrailRequest$S3KeyPrefix": "Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file delivery. For more information, see Finding Your CloudTrail Log Files. The maximum length is 200 characters.
",
"CreateTrailRequest$SnsTopicName": "Specifies the name of the Amazon SNS topic defined for notification of log file delivery. The maximum length is 256 characters.
",
- "CreateTrailRequest$CloudWatchLogsLogGroupArn": "Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered. You must use a log group that exists in your account.
Not required unless you specify CloudWatchLogsRoleArn
.
",
+ "CreateTrailRequest$CloudWatchLogsLogGroupArn": "Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered. You must use a log group that exists in your account.
Not required unless you specify CloudWatchLogsRoleArn
.
Only the management account can configure a CloudWatch Logs log group for an organization trail.
",
"CreateTrailRequest$CloudWatchLogsRoleArn": "Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group. You must use a role that exists in your account.
",
"CreateTrailRequest$KmsKeyId": "Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. The value can be an alias name prefixed by alias/
, a fully specified ARN to an alias, a fully specified ARN to a key, or a globally unique identifier.
CloudTrail also supports KMS multi-Region keys. For more information about multi-Region keys, see Using multi-Region keys in the Key Management Service Developer Guide.
Examples:
-
alias/MyAliasName
-
arn:aws:kms:us-east-2:123456789012:alias/MyAliasName
-
arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012
-
12345678-1234-1234-1234-123456789012
",
"CreateTrailResponse$Name": "Specifies the name of the trail.
",
@@ -1643,7 +1650,7 @@
"CreateTrailResponse$CloudWatchLogsLogGroupArn": "Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs will be delivered.
",
"CreateTrailResponse$CloudWatchLogsRoleArn": "Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.
",
"CreateTrailResponse$KmsKeyId": "Specifies the KMS key ID that encrypts the events delivered by CloudTrail. The value is a fully specified ARN to a KMS key in the following format.
arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012
",
- "DataResource$Type": "The resource type in which you want to log data events. You can specify the following basic event selector resource types:
-
AWS::DynamoDB::Table
-
AWS::Lambda::Function
-
AWS::S3::Object
The following resource types are also available through advanced event selectors. Basic event selector resource types are valid in advanced event selectors, but advanced event selector resource types are not valid in basic event selectors. For more information, see AdvancedFieldSelector.
-
AWS::CloudTrail::Channel
-
AWS::CodeWhisperer::Profile
-
AWS::Cognito::IdentityPool
-
AWS::DynamoDB::Stream
-
AWS::EC2::Snapshot
-
AWS::EMRWAL::Workspace
-
AWS::FinSpace::Environment
-
AWS::Glue::Table
-
AWS::GuardDuty::Detector
-
AWS::KendraRanking::ExecutionPlan
-
AWS::ManagedBlockchain::Network
-
AWS::ManagedBlockchain::Node
-
AWS::MedicalImaging::Datastore
-
AWS::SageMaker::ExperimentTrialComponent
-
AWS::SageMaker::FeatureGroup
-
AWS::S3::AccessPoint
-
AWS::S3ObjectLambda::AccessPoint
-
AWS::S3Outposts::Object
-
AWS::SSMMessages::ControlChannel
-
AWS::VerifiedPermissions::PolicyStore
",
+ "DataResource$Type": "The resource type in which you want to log data events. You can specify the following basic event selector resource types:
-
AWS::DynamoDB::Table
-
AWS::Lambda::Function
-
AWS::S3::Object
The following resource types are also available through advanced event selectors. Basic event selector resource types are valid in advanced event selectors, but advanced event selector resource types are not valid in basic event selectors. For more information, see AdvancedFieldSelector.
-
AWS::CloudTrail::Channel
-
AWS::CodeWhisperer::Customization
-
AWS::CodeWhisperer::Profile
-
AWS::Cognito::IdentityPool
-
AWS::DynamoDB::Stream
-
AWS::EC2::Snapshot
-
AWS::EMRWAL::Workspace
-
AWS::FinSpace::Environment
-
AWS::Glue::Table
-
AWS::GuardDuty::Detector
-
AWS::KendraRanking::ExecutionPlan
-
AWS::KinesisVideo::Stream
-
AWS::ManagedBlockchain::Network
-
AWS::ManagedBlockchain::Node
-
AWS::MedicalImaging::Datastore
-
AWS::PCAConnectorAD::Connector
-
AWS::SageMaker::Endpoint
-
AWS::SageMaker::ExperimentTrialComponent
-
AWS::SageMaker::FeatureGroup
-
AWS::SNS::PlatformEndpoint
-
AWS::SNS::Topic
-
AWS::S3::AccessPoint
-
AWS::S3ObjectLambda::AccessPoint
-
AWS::S3Outposts::Object
-
AWS::SSMMessages::ControlChannel
-
AWS::Timestream::Database
-
AWS::Timestream::Table
-
AWS::VerifiedPermissions::PolicyStore
",
"DataResourceValues$member": null,
"DeleteTrailRequest$Name": "Specifies the name or the CloudTrail ARN of the trail to be deleted. The following is the format of a trail ARN. arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
",
"Event$EventId": "The CloudTrail ID of the event returned.
",
@@ -1656,7 +1663,7 @@
"ExcludeManagementEventSources$member": null,
"GetEventSelectorsRequest$TrailName": "Specifies the name of the trail or trail ARN. If you specify a trail name, the string must meet the following requirements:
-
Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
-
Start with a letter or number, and end with a letter or number
-
Be between 3 and 128 characters
-
Have no adjacent periods, underscores or dashes. Names like my-_namespace
and my--namespace
are not valid.
-
Not be in IP address format (for example, 192.168.5.4)
If you specify a trail ARN, it must be in the format:
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
",
"GetEventSelectorsResponse$TrailARN": "The specified trail ARN that has the event selectors.
",
- "GetInsightSelectorsRequest$TrailName": "Specifies the name of the trail or trail ARN. If you specify a trail name, the string must meet the following requirements:
-
Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
-
Start with a letter or number, and end with a letter or number
-
Be between 3 and 128 characters
-
Have no adjacent periods, underscores or dashes. Names like my-_namespace
and my--namespace
are not valid.
-
Not be in IP address format (for example, 192.168.5.4)
If you specify a trail ARN, it must be in the format:
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
",
+ "GetInsightSelectorsRequest$TrailName": "Specifies the name of the trail or trail ARN. If you specify a trail name, the string must meet the following requirements:
-
Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
-
Start with a letter or number, and end with a letter or number
-
Be between 3 and 128 characters
-
Have no adjacent periods, underscores or dashes. Names like my-_namespace
and my--namespace
are not valid.
-
Not be in IP address format (for example, 192.168.5.4)
If you specify a trail ARN, it must be in the format:
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
You cannot use this parameter with the EventDataStore
parameter.
",
"GetInsightSelectorsResponse$TrailARN": "The Amazon Resource Name (ARN) of a trail for which you want to get Insights selectors.
",
"GetTrailRequest$Name": "The name or the Amazon Resource Name (ARN) of the trail for which you want to retrieve settings information.
",
"GetTrailStatusRequest$Name": "Specifies the name or the CloudTrail ARN of the trail for which you are requesting status. To get the status of a shadow trail (a replication of the trail in another Region), you must specify its ARN. The following is the format of a trail ARN.
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
",
@@ -1682,7 +1689,7 @@
"PublicKey$Fingerprint": "The fingerprint of the public key.
",
"PutEventSelectorsRequest$TrailName": "Specifies the name of the trail or trail ARN. If you specify a trail name, the string must meet the following requirements:
-
Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
-
Start with a letter or number, and end with a letter or number
-
Be between 3 and 128 characters
-
Have no adjacent periods, underscores or dashes. Names like my-_namespace
and my--namespace
are not valid.
-
Not be in IP address format (for example, 192.168.5.4)
If you specify a trail ARN, it must be in the following format.
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
",
"PutEventSelectorsResponse$TrailARN": "Specifies the ARN of the trail that was updated with event selectors. The following is the format of a trail ARN.
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
",
- "PutInsightSelectorsRequest$TrailName": "The name of the CloudTrail trail for which you want to change or add Insights selectors.
",
+ "PutInsightSelectorsRequest$TrailName": "The name of the CloudTrail trail for which you want to change or add Insights selectors.
You cannot use this parameter with the EventDataStore
and InsightsDestination
parameters.
",
"PutInsightSelectorsResponse$TrailARN": "The Amazon Resource Name (ARN) of a trail for which you want to change or add Insights selectors.
",
"RemoveTagsRequest$ResourceId": "Specifies the ARN of the trail, event data store, or channel from which tags should be removed.
Example trail ARN format: arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
Example event data store ARN format: arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE
Example channel ARN format: arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890
",
"Resource$ResourceType": "The type of a resource referenced by the event returned. When the resource type cannot be determined, null is returned. Some examples of resource types are: Instance for EC2, Trail for CloudTrail, DBInstance for Amazon RDS, and AccessKey for IAM. To learn more about how to look up and filter events by the resource types supported for a service, see Filtering CloudTrail Events.
",
@@ -1712,7 +1719,7 @@
"UpdateTrailRequest$S3BucketName": "Specifies the name of the Amazon S3 bucket designated for publishing log files. See Amazon S3 Bucket Naming Requirements.
",
"UpdateTrailRequest$S3KeyPrefix": "Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file delivery. For more information, see Finding Your CloudTrail Log Files. The maximum length is 200 characters.
",
"UpdateTrailRequest$SnsTopicName": "Specifies the name of the Amazon SNS topic defined for notification of log file delivery. The maximum length is 256 characters.
",
- "UpdateTrailRequest$CloudWatchLogsLogGroupArn": "Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs are delivered. You must use a log group that exists in your account.
Not required unless you specify CloudWatchLogsRoleArn
.
",
+ "UpdateTrailRequest$CloudWatchLogsLogGroupArn": "Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs are delivered. You must use a log group that exists in your account.
Not required unless you specify CloudWatchLogsRoleArn
.
Only the management account can configure a CloudWatch Logs log group for an organization trail.
",
"UpdateTrailRequest$CloudWatchLogsRoleArn": "Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group. You must use a role that exists in your account.
",
"UpdateTrailRequest$KmsKeyId": "Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. The value can be an alias name prefixed by \"alias/\", a fully specified ARN to an alias, a fully specified ARN to a key, or a globally unique identifier.
CloudTrail also supports KMS multi-Region keys. For more information about multi-Region keys, see Using multi-Region keys in the Key Management Service Developer Guide.
Examples:
-
alias/MyAliasName
-
arn:aws:kms:us-east-2:123456789012:alias/MyAliasName
-
arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012
-
12345678-1234-1234-1234-123456789012
",
"UpdateTrailResponse$Name": "Specifies the name of the trail.
",
diff --git a/models/apis/cloudtrail/2013-11-01/endpoint-rule-set-1.json b/models/apis/cloudtrail/2013-11-01/endpoint-rule-set-1.json
index be85a60fb63..b1c172a4952 100644
--- a/models/apis/cloudtrail/2013-11-01/endpoint-rule-set-1.json
+++ b/models/apis/cloudtrail/2013-11-01/endpoint-rule-set-1.json
@@ -40,7 +40,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -83,7 +82,8 @@
},
"type": "endpoint"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [
@@ -96,7 +96,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -110,7 +109,6 @@
"assign": "PartitionResult"
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -133,7 +131,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -168,7 +165,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [],
@@ -179,14 +175,16 @@
},
"type": "endpoint"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "FIPS and DualStack are enabled, but this partition does not support one or both",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [
@@ -200,14 +198,12 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
{
"fn": "booleanEquals",
"argv": [
- true,
{
"fn": "getAttr",
"argv": [
@@ -216,11 +212,11 @@
},
"supportsFIPS"
]
- }
+ },
+ true
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -269,14 +265,16 @@
},
"type": "endpoint"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "FIPS is enabled but this partition does not support FIPS",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [
@@ -290,7 +288,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -310,7 +307,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [],
@@ -321,14 +317,16 @@
},
"type": "endpoint"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "DualStack is enabled but this partition does not support DualStack",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
@@ -339,9 +337,11 @@
},
"type": "endpoint"
}
- ]
+ ],
+ "type": "tree"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
diff --git a/models/apis/comprehend/2017-11-27/api-2.json b/models/apis/comprehend/2017-11-27/api-2.json
index 3819266b61f..b215c015a6f 100644
--- a/models/apis/comprehend/2017-11-27/api-2.json
+++ b/models/apis/comprehend/2017-11-27/api-2.json
@@ -659,6 +659,21 @@
{"shape":"InternalServerException"}
]
},
+ "DetectToxicContent":{
+ "name":"DetectToxicContent",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"DetectToxicContentRequest"},
+ "output":{"shape":"DetectToxicContentResponse"},
+ "errors":[
+ {"shape":"InvalidRequestException"},
+ {"shape":"TextSizeLimitExceededException"},
+ {"shape":"UnsupportedLanguageException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
"ImportModel":{
"name":"ImportModel",
"http":{
@@ -2400,6 +2415,23 @@
},
"sensitive":true
},
+ "DetectToxicContentRequest":{
+ "type":"structure",
+ "required":[
+ "TextSegments",
+ "LanguageCode"
+ ],
+ "members":{
+ "TextSegments":{"shape":"ListOfTextSegments"},
+ "LanguageCode":{"shape":"LanguageCode"}
+ }
+ },
+ "DetectToxicContentResponse":{
+ "type":"structure",
+ "members":{
+ "ResultList":{"shape":"ListOfToxicLabels"}
+ }
+ },
"DocumentClass":{
"type":"structure",
"members":{
@@ -2482,7 +2514,7 @@
"DocumentClassifierEndpointArn":{
"type":"string",
"max":256,
- "pattern":"arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:document-classifier-endpoint/[a-zA-Z0-9](-*[a-zA-Z0-9])*"
+ "pattern":"arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:([0-9]{12}|aws):document-classifier-endpoint/[a-zA-Z0-9](-*[a-zA-Z0-9])*"
},
"DocumentClassifierFilter":{
"type":"structure",
@@ -3618,6 +3650,20 @@
"type":"list",
"member":{"shape":"TargetedSentimentEntity"}
},
+ "ListOfTextSegments":{
+ "type":"list",
+ "member":{"shape":"TextSegment"},
+ "min":1,
+ "sensitive":true
+ },
+ "ListOfToxicContent":{
+ "type":"list",
+ "member":{"shape":"ToxicContent"}
+ },
+ "ListOfToxicLabels":{
+ "type":"list",
+ "member":{"shape":"ToxicLabels"}
+ },
"ListOfWarnings":{
"type":"list",
"member":{"shape":"WarningsListItem"}
@@ -4650,6 +4696,13 @@
"EntityRecognitionConfig":{"shape":"EntityRecognitionConfig"}
}
},
+ "TextSegment":{
+ "type":"structure",
+ "required":["Text"],
+ "members":{
+ "Text":{"shape":"CustomerInputString"}
+ }
+ },
"TextSizeLimitExceededException":{
"type":"structure",
"members":{
@@ -4710,6 +4763,32 @@
"type":"list",
"member":{"shape":"TopicsDetectionJobProperties"}
},
+ "ToxicContent":{
+ "type":"structure",
+ "members":{
+ "Name":{"shape":"ToxicContentType"},
+ "Score":{"shape":"Float"}
+ }
+ },
+ "ToxicContentType":{
+ "type":"string",
+ "enum":[
+ "GRAPHIC",
+ "HARASSMENT_OR_ABUSE",
+ "HATE_SPEECH",
+ "INSULT",
+ "PROFANITY",
+ "SEXUAL",
+ "VIOLENCE_OR_THREAT"
+ ]
+ },
+ "ToxicLabels":{
+ "type":"structure",
+ "members":{
+ "Labels":{"shape":"ListOfToxicContent"},
+ "Toxicity":{"shape":"Float"}
+ }
+ },
"UnsupportedLanguageException":{
"type":"structure",
"members":{
diff --git a/models/apis/comprehend/2017-11-27/docs-2.json b/models/apis/comprehend/2017-11-27/docs-2.json
index 9531a05a683..0cfd9982b91 100644
--- a/models/apis/comprehend/2017-11-27/docs-2.json
+++ b/models/apis/comprehend/2017-11-27/docs-2.json
@@ -7,8 +7,8 @@
"BatchDetectKeyPhrases": "Detects the key noun phrases found in a batch of documents.
",
"BatchDetectSentiment": "Inspects a batch of documents and returns an inference of the prevailing sentiment, POSITIVE
, NEUTRAL
, MIXED
, or NEGATIVE
, in each one.
",
"BatchDetectSyntax": "Inspects the text of a batch of documents for the syntax and part of speech of the words in the document and returns information about them. For more information, see Syntax in the Comprehend Developer Guide.
",
- "BatchDetectTargetedSentiment": "Inspects a batch of documents and returns a sentiment analysis for each entity identified in the documents.
For more information about targeted sentiment, see Targeted sentiment.
",
- "ClassifyDocument": "Creates a new document classification request to analyze a single document in real-time, using a previously created and trained custom model and an endpoint.
You can input plain text or you can upload a single-page input document (text, PDF, Word, or image).
If the system detects errors while processing a page in the input document, the API response includes an entry in Errors
that describes the errors.
If the system detects a document-level error in your input document, the API returns an InvalidRequestException
error response. For details about this exception, see Errors in semi-structured documents in the Comprehend Developer Guide.
",
+ "BatchDetectTargetedSentiment": "Inspects a batch of documents and returns a sentiment analysis for each entity identified in the documents.
For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide.
",
+ "ClassifyDocument": "Creates a classification request to analyze a single document in real-time. ClassifyDocument
supports the following model types:
-
Custom classifier - a custom model that you have created and trained. For input, you can provide plain text, a single-page document (PDF, Word, or image), or Textract API output. For more information, see Custom classification in the Amazon Comprehend Developer Guide.
-
Prompt classifier - Amazon Comprehend provides a model for classifying prompts. For input, you provide English plain text input. For prompt classification, the response includes only the Classes
field. For more information about prompt classifiers, see Prompt classifiers in the Amazon Comprehend Developer Guide.
If the system detects errors while processing a page in the input document, the API response includes an entry in Errors
that describes the errors.
If the system detects a document-level error in your input document, the API returns an InvalidRequestException
error response. For details about this exception, see Errors in semi-structured documents in the Comprehend Developer Guide.
",
"ContainsPiiEntities": "Analyzes input text for the presence of personally identifiable information (PII) and returns the labels of identified PII entity types such as name, address, bank account number, or phone number.
",
"CreateDataset": "Creates a dataset to upload training or test data for a model associated with a flywheel. For more information about datasets, see Flywheel overview in the Amazon Comprehend Developer Guide.
",
"CreateDocumentClassifier": "Creates a new document classifier that you can use to categorize documents. To create a classifier, you provide a set of training documents that are labeled with the categories that you want to use. For more information, see Training classifier models in the Comprehend Developer Guide.
",
@@ -42,7 +42,8 @@
"DetectPiiEntities": "Inspects the input text for entities that contain personally identifiable information (PII) and returns information about them.
",
"DetectSentiment": "Inspects text and returns an inference of the prevailing sentiment (POSITIVE
, NEUTRAL
, MIXED
, or NEGATIVE
).
",
"DetectSyntax": "Inspects text for syntax and the part of speech of words in the document. For more information, see Syntax in the Comprehend Developer Guide.
",
- "DetectTargetedSentiment": "Inspects the input text and returns a sentiment analysis for each entity identified in the text.
For more information about targeted sentiment, see Targeted sentiment.
",
+ "DetectTargetedSentiment": "Inspects the input text and returns a sentiment analysis for each entity identified in the text.
For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide.
",
+ "DetectToxicContent": "Performs toxicity analysis on the list of text strings that you provide as input. The analysis uses the order of strings in the list to determine context when predicting toxicity. The API response contains a results list that matches the size of the input list. For more information about toxicity detection, see Toxicity detection in the Amazon Comprehend Developer Guide
",
"ImportModel": "Creates a new custom model that replicates a source custom model that you import. The source model can be in your Amazon Web Services account or another one.
If the source model is in another Amazon Web Services account, then it must have a resource-based policy that authorizes you to import it.
The source model must be in the same Amazon Web Services Region that you're using when you import. You can't import a model that's in a different Region.
",
"ListDatasets": "List the datasets that you have configured in this Region. For more information about datasets, see Flywheel overview in the Amazon Comprehend Developer Guide.
",
"ListDocumentClassificationJobs": "Gets a list of the documentation classification jobs that you have submitted.
",
@@ -425,7 +426,7 @@
"refs": {
"CreateEndpointRequest$ModelArn": "The Amazon Resource Number (ARN) of the model to which the endpoint will be attached.
",
"CreateEndpointResponse$ModelArn": "The Amazon Resource Number (ARN) of the model to which the endpoint is attached.
",
- "CreateFlywheelRequest$ActiveModelArn": "To associate an existing model with the flywheel, specify the Amazon Resource Number (ARN) of the model version.
",
+ "CreateFlywheelRequest$ActiveModelArn": "To associate an existing model with the flywheel, specify the Amazon Resource Number (ARN) of the model version. Do not set TaskConfig
or ModelType
if you specify an ActiveModelArn
.
",
"CreateFlywheelResponse$ActiveModelArn": "The Amazon Resource Number (ARN) of the active model version.
",
"DeleteResourcePolicyRequest$ResourceArn": "The Amazon Resource Name (ARN) of the custom model version that has the policy to delete.
",
"DescribeResourcePolicyRequest$ResourceArn": "The Amazon Resource Name (ARN) of the custom model version that has the resource policy.
",
@@ -519,7 +520,8 @@
"DetectKeyPhrasesRequest$Text": "A UTF-8 text string. The string must contain less than 100 KB of UTF-8 encoded characters.
",
"DetectSentimentRequest$Text": "A UTF-8 text string. The maximum string size is 5 KB.
",
"DetectSyntaxRequest$Text": "A UTF-8 string. The maximum string size is 5 KB.
",
- "DetectTargetedSentimentRequest$Text": "A UTF-8 text string. The maximum string length is 5 KB.
"
+ "DetectTargetedSentimentRequest$Text": "A UTF-8 text string. The maximum string length is 5 KB.
",
+ "TextSegment$Text": "The text content.
"
}
},
"CustomerInputStringList": {
@@ -915,6 +917,16 @@
"refs": {
}
},
+ "DetectToxicContentRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DetectToxicContentResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
"DocumentClass": {
"base": "Specifies the class that categorizes the document being analyzed
",
"refs": {
@@ -922,9 +934,9 @@
}
},
"DocumentClassificationConfig": {
- "base": "Configuration required for a custom classification model.
",
+ "base": "Configuration required for a document classification model.
",
"refs": {
- "TaskConfig$DocumentClassificationConfig": "Configuration required for a classification model.
"
+ "TaskConfig$DocumentClassificationConfig": "Configuration required for a document classification model.
"
}
},
"DocumentClassificationJobFilter": {
@@ -975,19 +987,19 @@
"DocumentClassifierDocumentTypeFormat": {
"base": null,
"refs": {
- "DocumentClassifierInputDataConfig$DocumentType": "The type of input documents for training the model. Provide plain-text documents to create a plain-text model, and provide semi-structured documents to create a native model.
"
+ "DocumentClassifierInputDataConfig$DocumentType": "The type of input documents for training the model. Provide plain-text documents to create a plain-text model, and provide semi-structured documents to create a native document model.
"
}
},
"DocumentClassifierDocuments": {
- "base": "The location of the training documents. This parameter is required in a request to create a native classifier model.
",
+ "base": "The location of the training documents. This parameter is required in a request to create a semi-structured document classification model.
",
"refs": {
- "DocumentClassifierInputDataConfig$Documents": "The S3 location of the training documents. This parameter is required in a request to create a native classifier model.
"
+ "DocumentClassifierInputDataConfig$Documents": "The S3 location of the training documents. This parameter is required in a request to create a native document model.
"
}
},
"DocumentClassifierEndpointArn": {
"base": null,
"refs": {
- "ClassifyDocumentRequest$EndpointArn": "The Amazon Resource Number (ARN) of the endpoint. For information about endpoints, see Managing endpoints.
"
+ "ClassifyDocumentRequest$EndpointArn": "The Amazon Resource Number (ARN) of the endpoint.
For prompt classification, Amazon Comprehend provides the endpoint ARN: zzz
.
For custom classification, you create an endpoint for your custom model. For more information, see Using Amazon Comprehend endpoints.
"
}
},
"DocumentClassifierFilter": {
@@ -1012,9 +1024,9 @@
}
},
"DocumentClassifierOutputDataConfig": {
- "base": "Provide the location for output data from a custom classifier job. This field is mandatory if you are training a native classifier model.
",
+ "base": "Provide the location for output data from a custom classifier job. This field is mandatory if you are training a native document model.
",
"refs": {
- "CreateDocumentClassifierRequest$OutputDataConfig": "Specifies the location for the output files from a custom classifier job. This parameter is required for a request that creates a native classifier model.
",
+ "CreateDocumentClassifierRequest$OutputDataConfig": "Specifies the location for the output files from a custom classifier job. This parameter is required for a request that creates a native document model.
",
"DocumentClassifierProperties$OutputDataConfig": " Provides output results configuration parameters for custom classifier jobs.
"
}
},
@@ -1414,7 +1426,9 @@
"SentimentScore$Neutral": "The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEUTRAL
sentiment.
",
"SentimentScore$Mixed": "The level of confidence that Amazon Comprehend has in the accuracy of its detection of the MIXED
sentiment.
",
"TargetedSentimentMention$Score": "Model confidence that the entity is relevant. Value range is zero to one, where one is highest confidence.
",
- "TargetedSentimentMention$GroupScore": "The confidence that all the entities mentioned in the group relate to the same entity.
"
+ "TargetedSentimentMention$GroupScore": "The confidence that all the entities mentioned in the group relate to the same entity.
",
+ "ToxicContent$Score": " Model confidence in the detected content type. Value range is zero to one, where one is highest confidence.
",
+ "ToxicLabels$Toxicity": "Overall toxicity score for the string.
"
}
},
"FlywheelFilter": {
@@ -1531,7 +1545,7 @@
"StartKeyPhrasesDetectionJobRequest$DataAccessRoleArn": "The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data. For more information, see Role-based permissions.
",
"StartPiiEntitiesDetectionJobRequest$DataAccessRoleArn": "The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.
",
"StartSentimentDetectionJobRequest$DataAccessRoleArn": "The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data. For more information, see Role-based permissions.
",
- "StartTargetedSentimentDetectionJobRequest$DataAccessRoleArn": "The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data. For more information, see Role-based permissions.
",
+ "StartTargetedSentimentDetectionJobRequest$DataAccessRoleArn": "The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data. For more information, see Role-based permissions.
",
"StartTopicsDetectionJobRequest$DataAccessRoleArn": "The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data. For more information, see Role-based permissions.
",
"TargetedSentimentDetectionJobProperties$DataAccessRoleArn": "The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.
",
"TopicsDetectionJobProperties$DataAccessRoleArn": "The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your job data.
",
@@ -1835,7 +1849,7 @@
"EntityRecognizerProperties$ModelKmsKeyId": "ID for the KMS key that Amazon Comprehend uses to encrypt trained custom models. The ModelKmsKeyId can be either of the following formats:
",
"ImportModelRequest$ModelKmsKeyId": "ID for the KMS key that Amazon Comprehend uses to encrypt trained custom models. The ModelKmsKeyId can be either of the following formats:
",
"KeyPhrasesDetectionJobProperties$VolumeKmsKeyId": "ID for the KMS key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats:
",
- "OutputDataConfig$KmsKeyId": "ID for the Amazon Web Services Key Management Service (KMS) key that Amazon Comprehend uses to encrypt the output results from an analysis job. The KmsKeyId can be one of the following formats:
-
KMS Key ID: \"1234abcd-12ab-34cd-56ef-1234567890ab\"
-
Amazon Resource Name (ARN) of a KMS Key: \"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab\"
-
KMS Key Alias: \"alias/ExampleAlias\"
-
ARN of a KMS Key Alias: \"arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias\"
",
+ "OutputDataConfig$KmsKeyId": "ID for the Amazon Web Services Key Management Service (KMS) key that Amazon Comprehend uses to encrypt the output results from an analysis job. Specify the Key Id of a symmetric key, because you cannot use an asymmetric key for uploading data to S3.
The KmsKeyId can be one of the following formats:
-
KMS Key ID: \"1234abcd-12ab-34cd-56ef-1234567890ab\"
-
Amazon Resource Name (ARN) of a KMS Key: \"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab\"
-
KMS Key Alias: \"alias/ExampleAlias\"
-
ARN of a KMS Key Alias: \"arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias\"
",
"PiiOutputDataConfig$KmsKeyId": "ID for the Amazon Web Services Key Management Service (KMS) key that Amazon Comprehend uses to encrypt the output results from an analysis job.
",
"SentimentDetectionJobProperties$VolumeKmsKeyId": "ID for the Amazon Web Services Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats:
",
"StartDocumentClassificationJobRequest$VolumeKmsKeyId": "ID for the Amazon Web Services Key Management Service (KMS) key that Amazon Comprehend uses to encrypt data on the storage volume attached to the ML compute instance(s) that process the analysis job. The VolumeKmsKeyId can be either of the following formats:
",
@@ -1890,6 +1904,7 @@
"DetectPiiEntitiesRequest$LanguageCode": "The language of the input documents. Currently, English is the only valid language.
",
"DetectSentimentRequest$LanguageCode": "The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend. All documents must be in the same language.
",
"DetectTargetedSentimentRequest$LanguageCode": "The language of the input documents. Currently, English is the only supported language.
",
+ "DetectToxicContentRequest$LanguageCode": "The language of the input text. Currently, English is the only supported language.
",
"DocumentClassifierProperties$LanguageCode": "The language code for the language of the documents that the classifier was trained on.
",
"EntitiesDetectionJobProperties$LanguageCode": "The language code of the input documents.
",
"EntityRecognizerProperties$LanguageCode": " The language of the input documents. All documents must be in the same language. Only English (\"en\") is currently supported.
",
@@ -2058,7 +2073,7 @@
"ListOfClasses": {
"base": null,
"refs": {
- "ClassifyDocumentResponse$Classes": "The classes used by the document being analyzed. These are used for multi-class trained models. Individual classes are mutually exclusive and each document is expected to have only a single class assigned to it. For example, an animal can be a dog or a cat, but not both at the same time.
"
+ "ClassifyDocumentResponse$Classes": "The classes used by the document being analyzed. These are used for multi-class trained models. Individual classes are mutually exclusive and each document is expected to have only a single class assigned to it. For example, an animal can be a dog or a cat, but not both at the same time.
For prompt classification, the response includes a single class (UNDESIRED_PROMPT
), along with a confidence score. A higher confidence score indicates that the input prompt is undesired in nature.
"
}
},
"ListOfDescriptiveMentionIndices": {
@@ -2200,6 +2215,24 @@
"DetectTargetedSentimentResponse$Entities": "Targeted sentiment analysis for each of the entities identified in the input text.
"
}
},
+ "ListOfTextSegments": {
+ "base": null,
+ "refs": {
+ "DetectToxicContentRequest$TextSegments": "A list of up to 10 text strings. The maximum size for the list is 10 KB.
"
+ }
+ },
+ "ListOfToxicContent": {
+ "base": null,
+ "refs": {
+ "ToxicLabels$Labels": "Array of toxic content types identified in the string.
"
+ }
+ },
+ "ListOfToxicLabels": {
+ "base": null,
+ "refs": {
+ "DetectToxicContentResponse$ResultList": "Results of the content moderation analysis. Each entry in the results list contains a list of toxic content types identified in the text, along with a confidence score for each content type. The results list also includes a toxicity score for each entry in the results list.
"
+ }
+ },
"ListOfWarnings": {
"base": null,
"refs": {
@@ -2285,7 +2318,7 @@
}
},
"MentionSentiment": {
- "base": "Contains the sentiment and sentiment score for one mention of an entity.
For more information about targeted sentiment, see Targeted sentiment.
",
+ "base": "Contains the sentiment and sentiment score for one mention of an entity.
For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide.
",
"refs": {
"TargetedSentimentMention$MentionSentiment": "Contains the sentiment and sentiment score for the mention.
"
}
@@ -2304,7 +2337,7 @@
"ModelType": {
"base": null,
"refs": {
- "CreateFlywheelRequest$ModelType": "The model type.
",
+ "CreateFlywheelRequest$ModelType": "The model type. You need to set ModelType
if you are creating a flywheel for a new model.
",
"FlywheelProperties$ModelType": "Model type of the flywheel's model.
",
"FlywheelSummary$ModelType": "Model type of the flywheel's model.
"
}
@@ -2515,7 +2548,7 @@
"DocumentClassifierDocuments$S3Uri": "The S3 URI location of the training documents specified in the S3Uri CSV file.
",
"DocumentClassifierDocuments$TestS3Uri": "The S3 URI location of the test documents included in the TestS3Uri CSV file. This field is not required if you do not specify a test CSV file.
",
"DocumentClassifierInputDataConfig$S3Uri": "The Amazon S3 URI for the input data. The S3 bucket must be in the same Region as the API endpoint that you are calling. The URI can point to a single input file or it can provide the prefix for a collection of input files.
For example, if you use the URI S3://bucketName/prefix
, if the prefix is a single file, Amazon Comprehend uses that file as input. If more than one file begins with the prefix, Amazon Comprehend uses all of them as input.
This parameter is required if you set DataFormat
to COMPREHEND_CSV
.
",
- "DocumentClassifierInputDataConfig$TestS3Uri": "This specifies the Amazon S3 location where the test annotations for an entity recognizer are located. The URI must be in the same Amazon Web Services Region as the API endpoint that you are calling.
",
+ "DocumentClassifierInputDataConfig$TestS3Uri": "This specifies the Amazon S3 location that contains the test annotations for the document classifier. The URI must be in the same Amazon Web Services Region as the API endpoint that you are calling.
",
"DocumentClassifierOutputDataConfig$S3Uri": "When you use the OutputDataConfig
object while creating a custom classifier, you specify the Amazon S3 location where you want to write the confusion matrix and other output files. The URI must be in the same Region as the API endpoint that you are calling. The location is used as the prefix for the actual location of this output file.
When the custom classifier job is finished, the service creates the output file in a directory specific to the job. The S3Uri
field contains the location of the output file, called output.tar.gz
. It is a compressed archive that contains the confusion matrix.
",
"DocumentClassifierOutputDataConfig$FlywheelStatsS3Prefix": "The Amazon S3 prefix for the data lake location of the flywheel statistics.
",
"EntityRecognizerAnnotations$S3Uri": " Specifies the Amazon S3 location where the annotations for an entity recognizer are located. The URI must be in the same Region as the API endpoint that you are calling.
",
@@ -2547,7 +2580,7 @@
"SemiStructuredDocumentBlob": {
"base": null,
"refs": {
- "ClassifyDocumentRequest$Bytes": "Use the Bytes
parameter to input a text, PDF, Word or image file. You can also use the Bytes
parameter to input an Amazon Textract DetectDocumentText
or AnalyzeDocument
output file.
Provide the input document as a sequence of base64-encoded bytes. If your code uses an Amazon Web Services SDK to classify documents, the SDK may encode the document file bytes for you.
The maximum length of this field depends on the input document type. For details, see Inputs for real-time custom analysis in the Comprehend Developer Guide.
If you use the Bytes
parameter, do not use the Text
parameter.
",
+ "ClassifyDocumentRequest$Bytes": "Use the Bytes
parameter to input a text, PDF, Word or image file.
When you classify a document using a custom model, you can also use the Bytes
parameter to input an Amazon Textract DetectDocumentText
or AnalyzeDocument
output file.
To classify a document using the prompt classifier, use the Text
parameter for input.
Provide the input document as a sequence of base64-encoded bytes. If your code uses an Amazon Web Services SDK to classify documents, the SDK may encode the document file bytes for you.
The maximum length of this field depends on the input document type. For details, see Inputs for real-time custom analysis in the Comprehend Developer Guide.
If you use the Bytes
parameter, do not use the Text
parameter.
",
"DetectEntitiesRequest$Bytes": "This field applies only when you use a custom entity recognition model that was trained with PDF annotations. For other cases, enter your text input in the Text
field.
Use the Bytes
parameter to input a text, PDF, Word or image file. Using a plain-text file in the Bytes
parameter is equivelent to using the Text
parameter (the Entities
field in the response is identical).
You can also use the Bytes
parameter to input an Amazon Textract DetectDocumentText
or AnalyzeDocument
output file.
Provide the input document as a sequence of base64-encoded bytes. If your code uses an Amazon Web Services SDK to detect entities, the SDK may encode the document file bytes for you.
The maximum length of this field depends on the input document type. For details, see Inputs for real-time custom analysis in the Comprehend Developer Guide.
If you use the Bytes
parameter, do not use the Text
parameter.
"
}
},
@@ -2970,7 +3003,7 @@
}
},
"TargetedSentimentEntity": {
- "base": "Information about one of the entities found by targeted sentiment analysis.
For more information about targeted sentiment, see Targeted sentiment.
",
+ "base": "Information about one of the entities found by targeted sentiment analysis.
For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide.
",
"refs": {
"ListOfTargetedSentimentEntities$member": null
}
@@ -2982,16 +3015,22 @@
}
},
"TargetedSentimentMention": {
- "base": "Information about one mention of an entity. The mention information includes the location of the mention in the text and the sentiment of the mention.
For more information about targeted sentiment, see Targeted sentiment.
",
+ "base": "Information about one mention of an entity. The mention information includes the location of the mention in the text and the sentiment of the mention.
For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide.
",
"refs": {
"ListOfMentions$member": null
}
},
"TaskConfig": {
- "base": "Configuration about the custom classifier associated with the flywheel.
",
+ "base": "Configuration about the model associated with a flywheel.
",
+ "refs": {
+ "CreateFlywheelRequest$TaskConfig": "Configuration about the model associated with the flywheel. You need to set TaskConfig
if you are creating a flywheel for a new model.
",
+ "FlywheelProperties$TaskConfig": "Configuration about the model associated with a flywheel.
"
+ }
+ },
+ "TextSegment": {
+ "base": "One of the of text strings. Each string has a size limit of 1KB.
",
"refs": {
- "CreateFlywheelRequest$TaskConfig": "Configuration about the custom classifier associated with the flywheel.
",
- "FlywheelProperties$TaskConfig": "Configuration about the custom classifier associated with the flywheel.
"
+ "ListOfTextSegments$member": null
}
},
"TextSizeLimitExceededException": {
@@ -3108,6 +3147,24 @@
"ListTopicsDetectionJobsResponse$TopicsDetectionJobPropertiesList": "A list containing the properties of each job that is returned.
"
}
},
+ "ToxicContent": {
+ "base": "Toxic content analysis result for one string. For more information about toxicity detection, see Toxicity detection in the Amazon Comprehend Developer Guide
",
+ "refs": {
+ "ListOfToxicContent$member": null
+ }
+ },
+ "ToxicContentType": {
+ "base": null,
+ "refs": {
+ "ToxicContent$Name": "The name of the toxic content type.
"
+ }
+ },
+ "ToxicLabels": {
+ "base": "Toxicity analysis result for one string. For more information about toxicity detection, see Toxicity detection in the Amazon Comprehend Developer Guide
",
+ "refs": {
+ "ListOfToxicLabels$member": null
+ }
+ },
"UnsupportedLanguageException": {
"base": "Amazon Comprehend can't process the language of the input text. For custom entity recognition APIs, only English, Spanish, French, Italian, German, or Portuguese are accepted. For a list of supported languages, Supported languages in the Comprehend Developer Guide.
",
"refs": {
@@ -3167,8 +3224,8 @@
"CreateDocumentClassifierRequest$VpcConfig": "Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for your custom classifier. For more information, see Amazon VPC.
",
"CreateEntityRecognizerRequest$VpcConfig": "Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for your custom entity recognizer. For more information, see Amazon VPC.
",
"DataSecurityConfig$VpcConfig": null,
- "DocumentClassificationJobProperties$VpcConfig": " Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your document classification job. For more information, see Amazon VPC.
",
- "DocumentClassifierProperties$VpcConfig": " Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your custom classifier. For more information, see Amazon VPC.
",
+ "DocumentClassificationJobProperties$VpcConfig": " Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your document classification job. For more information, see Amazon VPC.
",
+ "DocumentClassifierProperties$VpcConfig": " Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your custom classifier. For more information, see Amazon VPC.
",
"DominantLanguageDetectionJobProperties$VpcConfig": " Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your dominant language detection job. For more information, see Amazon VPC.
",
"EntitiesDetectionJobProperties$VpcConfig": " Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your entity detection job. For more information, see Amazon VPC.
",
"EntityRecognizerProperties$VpcConfig": " Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your custom entity recognizer. For more information, see Amazon VPC.
",
@@ -3187,7 +3244,7 @@
}
},
"WarningsListItem": {
- "base": "The system identified one of the following warnings while processing the input document:
-
The document to classify is plain text, but the classifier is a native model.
-
The document to classify is semi-structured, but the classifier is a plain-text model.
",
+ "base": "The system identified one of the following warnings while processing the input document:
-
The document to classify is plain text, but the classifier is a native document model.
-
The document to classify is semi-structured, but the classifier is a plain-text model.
",
"refs": {
"ListOfWarnings$member": null
}
diff --git a/models/apis/comprehend/2017-11-27/endpoint-rule-set-1.json b/models/apis/comprehend/2017-11-27/endpoint-rule-set-1.json
index f3e6eb40d67..370ae774cbc 100644
--- a/models/apis/comprehend/2017-11-27/endpoint-rule-set-1.json
+++ b/models/apis/comprehend/2017-11-27/endpoint-rule-set-1.json
@@ -40,7 +40,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -58,293 +57,258 @@
"type": "error"
},
{
- "conditions": [],
- "type": "tree",
- "rules": [
+ "conditions": [
{
- "conditions": [
+ "fn": "booleanEquals",
+ "argv": [
{
- "fn": "booleanEquals",
- "argv": [
- {
- "ref": "UseDualStack"
- },
- true
- ]
- }
- ],
- "error": "Invalid Configuration: Dualstack and custom endpoint are not supported",
- "type": "error"
- },
- {
- "conditions": [],
- "endpoint": {
- "url": {
- "ref": "Endpoint"
+ "ref": "UseDualStack"
},
- "properties": {},
- "headers": {}
- },
- "type": "endpoint"
+ true
+ ]
}
- ]
+ ],
+ "error": "Invalid Configuration: Dualstack and custom endpoint are not supported",
+ "type": "error"
+ },
+ {
+ "conditions": [],
+ "endpoint": {
+ "url": {
+ "ref": "Endpoint"
+ },
+ "properties": {},
+ "headers": {}
+ },
+ "type": "endpoint"
}
- ]
+ ],
+ "type": "tree"
},
{
- "conditions": [],
- "type": "tree",
+ "conditions": [
+ {
+ "fn": "isSet",
+ "argv": [
+ {
+ "ref": "Region"
+ }
+ ]
+ }
+ ],
"rules": [
{
"conditions": [
{
- "fn": "isSet",
+ "fn": "aws.partition",
"argv": [
{
"ref": "Region"
}
- ]
+ ],
+ "assign": "PartitionResult"
}
],
- "type": "tree",
"rules": [
{
"conditions": [
{
- "fn": "aws.partition",
+ "fn": "booleanEquals",
"argv": [
{
- "ref": "Region"
- }
- ],
- "assign": "PartitionResult"
+ "ref": "UseFIPS"
+ },
+ true
+ ]
+ },
+ {
+ "fn": "booleanEquals",
+ "argv": [
+ {
+ "ref": "UseDualStack"
+ },
+ true
+ ]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
{
"fn": "booleanEquals",
"argv": [
+ true,
{
- "ref": "UseFIPS"
- },
- true
+ "fn": "getAttr",
+ "argv": [
+ {
+ "ref": "PartitionResult"
+ },
+ "supportsFIPS"
+ ]
+ }
]
},
{
"fn": "booleanEquals",
"argv": [
+ true,
{
- "ref": "UseDualStack"
- },
- true
- ]
- }
- ],
- "type": "tree",
- "rules": [
- {
- "conditions": [
- {
- "fn": "booleanEquals",
+ "fn": "getAttr",
"argv": [
- true,
{
- "fn": "getAttr",
- "argv": [
- {
- "ref": "PartitionResult"
- },
- "supportsFIPS"
- ]
- }
- ]
- },
- {
- "fn": "booleanEquals",
- "argv": [
- true,
- {
- "fn": "getAttr",
- "argv": [
- {
- "ref": "PartitionResult"
- },
- "supportsDualStack"
- ]
- }
- ]
- }
- ],
- "type": "tree",
- "rules": [
- {
- "conditions": [],
- "type": "tree",
- "rules": [
- {
- "conditions": [],
- "endpoint": {
- "url": "https://comprehend-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
- "properties": {},
- "headers": {}
- },
- "type": "endpoint"
- }
+ "ref": "PartitionResult"
+ },
+ "supportsDualStack"
]
}
]
- },
+ }
+ ],
+ "rules": [
{
"conditions": [],
- "error": "FIPS and DualStack are enabled, but this partition does not support one or both",
- "type": "error"
+ "endpoint": {
+ "url": "https://comprehend-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
+ "properties": {},
+ "headers": {}
+ },
+ "type": "endpoint"
}
- ]
+ ],
+ "type": "tree"
},
+ {
+ "conditions": [],
+ "error": "FIPS and DualStack are enabled, but this partition does not support one or both",
+ "type": "error"
+ }
+ ],
+ "type": "tree"
+ },
+ {
+ "conditions": [
+ {
+ "fn": "booleanEquals",
+ "argv": [
+ {
+ "ref": "UseFIPS"
+ },
+ true
+ ]
+ }
+ ],
+ "rules": [
{
"conditions": [
{
"fn": "booleanEquals",
"argv": [
{
- "ref": "UseFIPS"
+ "fn": "getAttr",
+ "argv": [
+ {
+ "ref": "PartitionResult"
+ },
+ "supportsFIPS"
+ ]
},
true
]
}
],
- "type": "tree",
"rules": [
- {
- "conditions": [
- {
- "fn": "booleanEquals",
- "argv": [
- true,
- {
- "fn": "getAttr",
- "argv": [
- {
- "ref": "PartitionResult"
- },
- "supportsFIPS"
- ]
- }
- ]
- }
- ],
- "type": "tree",
- "rules": [
- {
- "conditions": [],
- "type": "tree",
- "rules": [
- {
- "conditions": [],
- "endpoint": {
- "url": "https://comprehend-fips.{Region}.{PartitionResult#dnsSuffix}",
- "properties": {},
- "headers": {}
- },
- "type": "endpoint"
- }
- ]
- }
- ]
- },
{
"conditions": [],
- "error": "FIPS is enabled but this partition does not support FIPS",
- "type": "error"
+ "endpoint": {
+ "url": "https://comprehend-fips.{Region}.{PartitionResult#dnsSuffix}",
+ "properties": {},
+ "headers": {}
+ },
+ "type": "endpoint"
}
- ]
+ ],
+ "type": "tree"
},
+ {
+ "conditions": [],
+ "error": "FIPS is enabled but this partition does not support FIPS",
+ "type": "error"
+ }
+ ],
+ "type": "tree"
+ },
+ {
+ "conditions": [
+ {
+ "fn": "booleanEquals",
+ "argv": [
+ {
+ "ref": "UseDualStack"
+ },
+ true
+ ]
+ }
+ ],
+ "rules": [
{
"conditions": [
{
"fn": "booleanEquals",
"argv": [
+ true,
{
- "ref": "UseDualStack"
- },
- true
- ]
- }
- ],
- "type": "tree",
- "rules": [
- {
- "conditions": [
- {
- "fn": "booleanEquals",
+ "fn": "getAttr",
"argv": [
- true,
{
- "fn": "getAttr",
- "argv": [
- {
- "ref": "PartitionResult"
- },
- "supportsDualStack"
- ]
- }
- ]
- }
- ],
- "type": "tree",
- "rules": [
- {
- "conditions": [],
- "type": "tree",
- "rules": [
- {
- "conditions": [],
- "endpoint": {
- "url": "https://comprehend.{Region}.{PartitionResult#dualStackDnsSuffix}",
- "properties": {},
- "headers": {}
- },
- "type": "endpoint"
- }
+ "ref": "PartitionResult"
+ },
+ "supportsDualStack"
]
}
]
- },
- {
- "conditions": [],
- "error": "DualStack is enabled but this partition does not support DualStack",
- "type": "error"
}
- ]
- },
- {
- "conditions": [],
- "type": "tree",
+ ],
"rules": [
{
"conditions": [],
"endpoint": {
- "url": "https://comprehend.{Region}.{PartitionResult#dnsSuffix}",
+ "url": "https://comprehend.{Region}.{PartitionResult#dualStackDnsSuffix}",
"properties": {},
"headers": {}
},
"type": "endpoint"
}
- ]
+ ],
+ "type": "tree"
+ },
+ {
+ "conditions": [],
+ "error": "DualStack is enabled but this partition does not support DualStack",
+ "type": "error"
}
- ]
+ ],
+ "type": "tree"
+ },
+ {
+ "conditions": [],
+ "endpoint": {
+ "url": "https://comprehend.{Region}.{PartitionResult#dnsSuffix}",
+ "properties": {},
+ "headers": {}
+ },
+ "type": "endpoint"
}
- ]
- },
- {
- "conditions": [],
- "error": "Invalid Configuration: Missing Region",
- "type": "error"
+ ],
+ "type": "tree"
}
- ]
+ ],
+ "type": "tree"
+ },
+ {
+ "conditions": [],
+ "error": "Invalid Configuration: Missing Region",
+ "type": "error"
}
]
}
\ No newline at end of file
diff --git a/models/apis/connect/2017-08-08/api-2.json b/models/apis/connect/2017-08-08/api-2.json
index c589a70dc19..c0cdbc9b398 100644
--- a/models/apis/connect/2017-08-08/api-2.json
+++ b/models/apis/connect/2017-08-08/api-2.json
@@ -7973,7 +7973,8 @@
"WISDOM_ASSISTANT",
"WISDOM_KNOWLEDGE_BASE",
"CASES_DOMAIN",
- "APPLICATION"
+ "APPLICATION",
+ "FILE_SCANNER"
]
},
"InternalServiceException":{
@@ -8606,6 +8607,11 @@
"box":true,
"location":"querystring",
"locationName":"maxResults"
+ },
+ "IntegrationArn":{
+ "shape":"ARN",
+ "location":"querystring",
+ "locationName":"integrationArn"
}
}
},
diff --git a/models/apis/connect/2017-08-08/docs-2.json b/models/apis/connect/2017-08-08/docs-2.json
index d1acd2726c3..9390148e982 100644
--- a/models/apis/connect/2017-08-08/docs-2.json
+++ b/models/apis/connect/2017-08-08/docs-2.json
@@ -287,6 +287,7 @@
"IntegrationAssociationSummary$IntegrationArn": "The Amazon Resource Name (ARN) for the AppIntegration.
",
"KinesisFirehoseConfig$FirehoseArn": "The Amazon Resource Name (ARN) of the delivery stream.
",
"KinesisStreamConfig$StreamArn": "The Amazon Resource Name (ARN) of the data stream.
",
+ "ListIntegrationAssociationsRequest$IntegrationArn": "The Amazon Resource Name (ARN) of the integration.
",
"ListPhoneNumbersSummary$PhoneNumberArn": "The Amazon Resource Name (ARN) of the phone number.
",
"ListPhoneNumbersSummary$TargetArn": "The Amazon Resource Name (ARN) for Amazon Connect instances or traffic distribution groups that phone number inbound traffic is routed through.
",
"ListPhoneNumbersV2Request$TargetArn": "The Amazon Resource Name (ARN) for Amazon Connect instances or traffic distribution groups that phone number inbound traffic is routed through. If both TargetArn
and InstanceId
input are not provided, this API lists numbers claimed to all the Amazon Connect instances belonging to your account in the same Amazon Web Services Region as the request.
",
diff --git a/models/apis/ec2/2016-11-15/api-2.json b/models/apis/ec2/2016-11-15/api-2.json
index 724f59aee34..fd6c83c6bcd 100755
--- a/models/apis/ec2/2016-11-15/api-2.json
+++ b/models/apis/ec2/2016-11-15/api-2.json
@@ -3393,6 +3393,15 @@
"input":{"shape":"DisableSerialConsoleAccessRequest"},
"output":{"shape":"DisableSerialConsoleAccessResult"}
},
+ "DisableSnapshotBlockPublicAccess":{
+ "name":"DisableSnapshotBlockPublicAccess",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"DisableSnapshotBlockPublicAccessRequest"},
+ "output":{"shape":"DisableSnapshotBlockPublicAccessResult"}
+ },
"DisableTransitGatewayRouteTablePropagation":{
"name":"DisableTransitGatewayRouteTablePropagation",
"http":{
@@ -3651,6 +3660,15 @@
"input":{"shape":"EnableSerialConsoleAccessRequest"},
"output":{"shape":"EnableSerialConsoleAccessResult"}
},
+ "EnableSnapshotBlockPublicAccess":{
+ "name":"EnableSnapshotBlockPublicAccess",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"EnableSnapshotBlockPublicAccessRequest"},
+ "output":{"shape":"EnableSnapshotBlockPublicAccessResult"}
+ },
"EnableTransitGatewayRouteTablePropagation":{
"name":"EnableTransitGatewayRouteTablePropagation",
"http":{
@@ -4009,6 +4027,15 @@
"input":{"shape":"GetSerialConsoleAccessStatusRequest"},
"output":{"shape":"GetSerialConsoleAccessStatusResult"}
},
+ "GetSnapshotBlockPublicAccessState":{
+ "name":"GetSnapshotBlockPublicAccessState",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"GetSnapshotBlockPublicAccessStateRequest"},
+ "output":{"shape":"GetSnapshotBlockPublicAccessStateResult"}
+ },
"GetSpotPlacementScores":{
"name":"GetSpotPlacementScores",
"http":{
@@ -19581,6 +19608,21 @@
}
}
},
+ "DisableSnapshotBlockPublicAccessRequest":{
+ "type":"structure",
+ "members":{
+ "DryRun":{"shape":"Boolean"}
+ }
+ },
+ "DisableSnapshotBlockPublicAccessResult":{
+ "type":"structure",
+ "members":{
+ "State":{
+ "shape":"SnapshotBlockPublicAccessState",
+ "locationName":"state"
+ }
+ }
+ },
"DisableTransitGatewayRouteTablePropagationRequest":{
"type":"structure",
"required":["TransitGatewayRouteTableId"],
@@ -20976,6 +21018,23 @@
}
}
},
+ "EnableSnapshotBlockPublicAccessRequest":{
+ "type":"structure",
+ "required":["State"],
+ "members":{
+ "State":{"shape":"SnapshotBlockPublicAccessState"},
+ "DryRun":{"shape":"Boolean"}
+ }
+ },
+ "EnableSnapshotBlockPublicAccessResult":{
+ "type":"structure",
+ "members":{
+ "State":{
+ "shape":"SnapshotBlockPublicAccessState",
+ "locationName":"state"
+ }
+ }
+ },
"EnableTransitGatewayRouteTablePropagationRequest":{
"type":"structure",
"required":["TransitGatewayRouteTableId"],
@@ -23495,6 +23554,21 @@
}
}
},
+ "GetSnapshotBlockPublicAccessStateRequest":{
+ "type":"structure",
+ "members":{
+ "DryRun":{"shape":"Boolean"}
+ }
+ },
+ "GetSnapshotBlockPublicAccessStateResult":{
+ "type":"structure",
+ "members":{
+ "State":{
+ "shape":"SnapshotBlockPublicAccessState",
+ "locationName":"state"
+ }
+ }
+ },
"GetSpotPlacementScoresRequest":{
"type":"structure",
"required":["TargetCapacity"],
@@ -39450,6 +39524,14 @@
"createVolumePermission"
]
},
+ "SnapshotBlockPublicAccessState":{
+ "type":"string",
+ "enum":[
+ "block-all-sharing",
+ "block-new-sharing",
+ "unblocked"
+ ]
+ },
"SnapshotDetail":{
"type":"structure",
"members":{
diff --git a/models/apis/ec2/2016-11-15/docs-2.json b/models/apis/ec2/2016-11-15/docs-2.json
index 67d7d08ca23..7f2e7eb75cf 100755
--- a/models/apis/ec2/2016-11-15/docs-2.json
+++ b/models/apis/ec2/2016-11-15/docs-2.json
@@ -381,6 +381,7 @@
"DisableImageDeprecation": "Cancels the deprecation of the specified AMI.
For more information, see Deprecate an AMI in the Amazon EC2 User Guide.
",
"DisableIpamOrganizationAdminAccount": "Disable the IPAM account. For more information, see Enable integration with Organizations in the Amazon VPC IPAM User Guide.
",
"DisableSerialConsoleAccess": "Disables access to the EC2 serial console of all instances for your account. By default, access to the EC2 serial console is disabled for your account. For more information, see Manage account access to the EC2 serial console in the Amazon EC2 User Guide.
",
+ "DisableSnapshotBlockPublicAccess": "Disables the block public access for snapshots setting at the account level for the specified Amazon Web Services Region. After you disable block public access for snapshots in a Region, users can publicly share snapshots in that Region.
If block public access is enabled in block-all-sharing
mode, and you disable block public access, all snapshots that were previously publicly shared are no longer treated as private and they become publicly accessible again.
For more information, see Block public access for snapshots in the Amazon Elastic Compute Cloud User Guide .
",
"DisableTransitGatewayRouteTablePropagation": "Disables the specified resource attachment from propagating routes to the specified propagation route table.
",
"DisableVgwRoutePropagation": "Disables a virtual private gateway (VGW) from propagating routes to a specified route table of a VPC.
",
"DisableVpcClassicLink": " This action is deprecated.
Disables ClassicLink for a VPC. You cannot disable ClassicLink for a VPC that has EC2-Classic instances linked to it.
",
@@ -410,6 +411,7 @@
"EnableIpamOrganizationAdminAccount": "Enable an Organizations member account as the IPAM admin account. You cannot select the Organizations management account as the IPAM admin account. For more information, see Enable integration with Organizations in the Amazon VPC IPAM User Guide.
",
"EnableReachabilityAnalyzerOrganizationSharing": "Establishes a trust relationship between Reachability Analyzer and Organizations. This operation must be performed by the management account for the organization.
After you establish a trust relationship, a user in the management account or a delegated administrator account can run a cross-account analysis using resources from the member accounts.
",
"EnableSerialConsoleAccess": "Enables access to the EC2 serial console of all instances for your account. By default, access to the EC2 serial console is disabled for your account. For more information, see Manage account access to the EC2 serial console in the Amazon EC2 User Guide.
",
+ "EnableSnapshotBlockPublicAccess": "Enables or modifies the block public access for snapshots setting at the account level for the specified Amazon Web Services Region. After you enable block public access for snapshots in a Region, users can no longer request public sharing for snapshots in that Region. Snapshots that are already publicly shared are either treated as private or they remain publicly shared, depending on the State that you specify.
If block public access is enabled in block-all-sharing
mode, and you change the mode to block-new-sharing
, all snapshots that were previously publicly shared are no longer treated as private and they become publicly accessible again.
For more information, see Block public access for snapshots in the Amazon Elastic Compute Cloud User Guide.
",
"EnableTransitGatewayRouteTablePropagation": "Enables the specified attachment to propagate routes to the specified propagation route table.
",
"EnableVgwRoutePropagation": "Enables a virtual private gateway (VGW) to propagate routes to the specified route table of a VPC.
",
"EnableVolumeIO": "Enables I/O operations for a volume that had I/O operations disabled because the data on the volume was potentially inconsistent.
",
@@ -450,6 +452,7 @@
"GetReservedInstancesExchangeQuote": "Returns a quote and exchange information for exchanging one or more specified Convertible Reserved Instances for a new Convertible Reserved Instance. If the exchange cannot be performed, the reason is returned in the response. Use AcceptReservedInstancesExchangeQuote to perform the exchange.
",
"GetSecurityGroupsForVpc": "Gets security groups that can be associated by the Amazon Web Services account making the request with network interfaces in the specified VPC.
",
"GetSerialConsoleAccessStatus": "Retrieves the access status of your account to the EC2 serial console of all instances. By default, access to the EC2 serial console is disabled for your account. For more information, see Manage account access to the EC2 serial console in the Amazon EC2 User Guide.
",
+ "GetSnapshotBlockPublicAccessState": "Gets the current state of block public access for snapshots setting for the account and Region.
For more information, see Block public access for snapshots in the Amazon Elastic Compute Cloud User Guide.
",
"GetSpotPlacementScores": "Calculates the Spot placement score for a Region or Availability Zone based on the specified target capacity and compute requirements.
You can specify your compute requirements either by using InstanceRequirementsWithMetadata
and letting Amazon EC2 choose the optimal instance types to fulfill your Spot request, or you can specify the instance types by using InstanceTypes
.
For more information, see Spot placement score in the Amazon EC2 User Guide.
",
"GetSubnetCidrReservations": "Gets information about the subnet CIDR reservations.
",
"GetTransitGatewayAttachmentPropagations": "Lists the route tables to which the specified resource attachment propagates routes.
",
@@ -2344,6 +2347,7 @@
"DisableIpamOrganizationAdminAccountResult$Success": "The result of disabling the IPAM account.
",
"DisableSerialConsoleAccessRequest$DryRun": "Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
",
"DisableSerialConsoleAccessResult$SerialConsoleAccessEnabled": "If true
, access to the EC2 serial console of all instances is enabled for your account. If false
, access to the EC2 serial console of all instances is disabled for your account.
",
+ "DisableSnapshotBlockPublicAccessRequest$DryRun": "Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
",
"DisableTransitGatewayRouteTablePropagationRequest$DryRun": "Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
",
"DisableVgwRoutePropagationRequest$DryRun": "Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
",
"DisableVpcClassicLinkDnsSupportResult$Return": "Returns true
if the request succeeds; otherwise, it returns an error.
",
@@ -2390,6 +2394,7 @@
"EnableReachabilityAnalyzerOrganizationSharingResult$ReturnValue": "Returns true
if the request succeeds; otherwise, returns an error.
",
"EnableSerialConsoleAccessRequest$DryRun": "Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
",
"EnableSerialConsoleAccessResult$SerialConsoleAccessEnabled": "If true
, access to the EC2 serial console of all instances is enabled for your account. If false
, access to the EC2 serial console of all instances is disabled for your account.
",
+ "EnableSnapshotBlockPublicAccessRequest$DryRun": "Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
",
"EnableTransitGatewayRouteTablePropagationRequest$DryRun": "Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
",
"EnableVgwRoutePropagationRequest$DryRun": "Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
",
"EnableVolumeIORequest$DryRun": "Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
",
@@ -2442,6 +2447,7 @@
"GetSecurityGroupsForVpcRequest$DryRun": "Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
",
"GetSerialConsoleAccessStatusRequest$DryRun": "Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
",
"GetSerialConsoleAccessStatusResult$SerialConsoleAccessEnabled": "If true
, access to the EC2 serial console of all instances is enabled for your account. If false
, access to the EC2 serial console of all instances is disabled for your account.
",
+ "GetSnapshotBlockPublicAccessStateRequest$DryRun": "Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
",
"GetSpotPlacementScoresRequest$SingleAvailabilityZone": "Specify true
so that the response returns a list of scored Availability Zones. Otherwise, the response returns a list of scored Regions.
A list of scored Availability Zones is useful if you want to launch all of your Spot capacity into a single Availability Zone.
",
"GetSpotPlacementScoresRequest$DryRun": "Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
",
"GetSubnetCidrReservationsRequest$DryRun": "Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
",
@@ -7972,6 +7978,16 @@
"refs": {
}
},
+ "DisableSnapshotBlockPublicAccessRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DisableSnapshotBlockPublicAccessResult": {
+ "base": null,
+ "refs": {
+ }
+ },
"DisableTransitGatewayRouteTablePropagationRequest": {
"base": null,
"refs": {
@@ -8753,6 +8769,16 @@
"refs": {
}
},
+ "EnableSnapshotBlockPublicAccessRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "EnableSnapshotBlockPublicAccessResult": {
+ "base": null,
+ "refs": {
+ }
+ },
"EnableTransitGatewayRouteTablePropagationRequest": {
"base": null,
"refs": {
@@ -10026,6 +10052,16 @@
"refs": {
}
},
+ "GetSnapshotBlockPublicAccessStateRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "GetSnapshotBlockPublicAccessStateResult": {
+ "base": null,
+ "refs": {
+ }
+ },
"GetSpotPlacementScoresRequest": {
"base": null,
"refs": {
@@ -18041,6 +18077,15 @@
"ResetSnapshotAttributeRequest$Attribute": "The attribute to reset. Currently, only the attribute for permission to create volumes can be reset.
"
}
},
+ "SnapshotBlockPublicAccessState": {
+ "base": null,
+ "refs": {
+ "DisableSnapshotBlockPublicAccessResult$State": "Returns unblocked
if the request succeeds.
",
+ "EnableSnapshotBlockPublicAccessRequest$State": "The mode in which to enable block public access for snapshots for the Region. Specify one of the following values:
-
block-all-sharing
- Prevents all public sharing of snapshots in the Region. Users in the account will no longer be able to request new public sharing. Additionally, snapshots that are already publicly shared are treated as private and they are no longer publicly available.
If you enable block public access for snapshots in block-all-sharing
mode, it does not change the permissions for snapshots that are already publicly shared. Instead, it prevents these snapshots from be publicly visible and publicly accessible. Therefore, the attributes for these snapshots still indicate that they are publicly shared, even though they are not publicly available.
-
block-new-sharing
- Prevents only new public sharing of snapshots in the Region. Users in the account will no longer be able to request new public sharing. However, snapshots that are already publicly shared, remain publicly available.
",
+ "EnableSnapshotBlockPublicAccessResult$State": "The state of block public access for snapshots for the account and Region. Returns either block-all-sharing
or block-new-sharing
if the request succeeds.
",
+ "GetSnapshotBlockPublicAccessStateResult$State": "The current state of block public access for snapshots. Possible values include:
-
block-all-sharing
- All public sharing of snapshots is blocked. Users in the account can't request new public sharing. Additionally, snapshots that were already publicly shared are treated as private and are not publicly available.
-
block-new-sharing
- Only new public sharing of snapshots is blocked. Users in the account can't request new public sharing. However, snapshots that were already publicly shared, remain publicly available.
-
unblocked
- Public sharing is not blocked. Users can publicly share snapshots.
"
+ }
+ },
"SnapshotDetail": {
"base": "Describes the snapshot created from the imported disk.
",
"refs": {
diff --git a/models/apis/eks/2017-11-01/api-2.json b/models/apis/eks/2017-11-01/api-2.json
index 6ec64fb0208..80873929cf0 100644
--- a/models/apis/eks/2017-11-01/api-2.json
+++ b/models/apis/eks/2017-11-01/api-2.json
@@ -82,6 +82,22 @@
{"shape":"UnsupportedAvailabilityZoneException"}
]
},
+ "CreateEksAnywhereSubscription":{
+ "name":"CreateEksAnywhereSubscription",
+ "http":{
+ "method":"POST",
+ "requestUri":"/eks-anywhere-subscriptions"
+ },
+ "input":{"shape":"CreateEksAnywhereSubscriptionRequest"},
+ "output":{"shape":"CreateEksAnywhereSubscriptionResponse"},
+ "errors":[
+ {"shape":"ResourceLimitExceededException"},
+ {"shape":"InvalidParameterException"},
+ {"shape":"ClientException"},
+ {"shape":"ServerException"},
+ {"shape":"ServiceUnavailableException"}
+ ]
+ },
"CreateFargateProfile":{
"name":"CreateFargateProfile",
"http":{
@@ -149,6 +165,21 @@
{"shape":"ServiceUnavailableException"}
]
},
+ "DeleteEksAnywhereSubscription":{
+ "name":"DeleteEksAnywhereSubscription",
+ "http":{
+ "method":"DELETE",
+ "requestUri":"/eks-anywhere-subscriptions/{id}"
+ },
+ "input":{"shape":"DeleteEksAnywhereSubscriptionRequest"},
+ "output":{"shape":"DeleteEksAnywhereSubscriptionResponse"},
+ "errors":[
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ClientException"},
+ {"shape":"InvalidRequestException"},
+ {"shape":"ServerException"}
+ ]
+ },
"DeleteFargateProfile":{
"name":"DeleteFargateProfile",
"http":{
@@ -257,6 +288,21 @@
{"shape":"ServiceUnavailableException"}
]
},
+ "DescribeEksAnywhereSubscription":{
+ "name":"DescribeEksAnywhereSubscription",
+ "http":{
+ "method":"GET",
+ "requestUri":"/eks-anywhere-subscriptions/{id}"
+ },
+ "input":{"shape":"DescribeEksAnywhereSubscriptionRequest"},
+ "output":{"shape":"DescribeEksAnywhereSubscriptionResponse"},
+ "errors":[
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ClientException"},
+ {"shape":"ServerException"},
+ {"shape":"ServiceUnavailableException"}
+ ]
+ },
"DescribeFargateProfile":{
"name":"DescribeFargateProfile",
"http":{
@@ -367,6 +413,21 @@
{"shape":"ServiceUnavailableException"}
]
},
+ "ListEksAnywhereSubscriptions":{
+ "name":"ListEksAnywhereSubscriptions",
+ "http":{
+ "method":"GET",
+ "requestUri":"/eks-anywhere-subscriptions"
+ },
+ "input":{"shape":"ListEksAnywhereSubscriptionsRequest"},
+ "output":{"shape":"ListEksAnywhereSubscriptionsResponse"},
+ "errors":[
+ {"shape":"InvalidParameterException"},
+ {"shape":"ClientException"},
+ {"shape":"ServerException"},
+ {"shape":"ServiceUnavailableException"}
+ ]
+ },
"ListFargateProfiles":{
"name":"ListFargateProfiles",
"http":{
@@ -538,6 +599,22 @@
{"shape":"InvalidRequestException"}
]
},
+ "UpdateEksAnywhereSubscription":{
+ "name":"UpdateEksAnywhereSubscription",
+ "http":{
+ "method":"POST",
+ "requestUri":"/eks-anywhere-subscriptions/{id}"
+ },
+ "input":{"shape":"UpdateEksAnywhereSubscriptionRequest"},
+ "output":{"shape":"UpdateEksAnywhereSubscriptionResponse"},
+ "errors":[
+ {"shape":"InvalidParameterException"},
+ {"shape":"ClientException"},
+ {"shape":"ServerException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"InvalidRequestException"}
+ ]
+ },
"UpdateNodegroupConfig":{
"name":"UpdateNodegroupConfig",
"http":{
@@ -793,6 +870,7 @@
"clusterName":{"shape":"String"},
"nodegroupName":{"shape":"String"},
"addonName":{"shape":"String"},
+ "subscriptionId":{"shape":"String"},
"message":{"shape":"String"}
},
"error":{"httpStatusCode":400},
@@ -1000,6 +1078,31 @@
"cluster":{"shape":"Cluster"}
}
},
+ "CreateEksAnywhereSubscriptionRequest":{
+ "type":"structure",
+ "required":[
+ "name",
+ "term"
+ ],
+ "members":{
+ "name":{"shape":"EksAnywhereSubscriptionName"},
+ "term":{"shape":"EksAnywhereSubscriptionTerm"},
+ "licenseQuantity":{"shape":"Integer"},
+ "licenseType":{"shape":"EksAnywhereSubscriptionLicenseType"},
+ "autoRenew":{"shape":"Boolean"},
+ "clientRequestToken":{
+ "shape":"String",
+ "idempotencyToken":true
+ },
+ "tags":{"shape":"TagMap"}
+ }
+ },
+ "CreateEksAnywhereSubscriptionResponse":{
+ "type":"structure",
+ "members":{
+ "subscription":{"shape":"EksAnywhereSubscription"}
+ }
+ },
"CreateFargateProfileRequest":{
"type":"structure",
"required":[
@@ -1119,6 +1222,23 @@
"cluster":{"shape":"Cluster"}
}
},
+ "DeleteEksAnywhereSubscriptionRequest":{
+ "type":"structure",
+ "required":["id"],
+ "members":{
+ "id":{
+ "shape":"String",
+ "location":"uri",
+ "locationName":"id"
+ }
+ }
+ },
+ "DeleteEksAnywhereSubscriptionResponse":{
+ "type":"structure",
+ "members":{
+ "subscription":{"shape":"EksAnywhereSubscription"}
+ }
+ },
"DeleteFargateProfileRequest":{
"type":"structure",
"required":[
@@ -1308,6 +1428,23 @@
"cluster":{"shape":"Cluster"}
}
},
+ "DescribeEksAnywhereSubscriptionRequest":{
+ "type":"structure",
+ "required":["id"],
+ "members":{
+ "id":{
+ "shape":"String",
+ "location":"uri",
+ "locationName":"id"
+ }
+ }
+ },
+ "DescribeEksAnywhereSubscriptionResponse":{
+ "type":"structure",
+ "members":{
+ "subscription":{"shape":"EksAnywhereSubscription"}
+ }
+ },
"DescribeFargateProfileRequest":{
"type":"structure",
"required":[
@@ -1439,6 +1576,63 @@
"update":{"shape":"Update"}
}
},
+ "EksAnywhereSubscription":{
+ "type":"structure",
+ "members":{
+ "id":{"shape":"String"},
+ "arn":{"shape":"String"},
+ "createdAt":{"shape":"Timestamp"},
+ "effectiveDate":{"shape":"Timestamp"},
+ "expirationDate":{"shape":"Timestamp"},
+ "licenseQuantity":{"shape":"Integer"},
+ "licenseType":{"shape":"EksAnywhereSubscriptionLicenseType"},
+ "term":{"shape":"EksAnywhereSubscriptionTerm"},
+ "status":{"shape":"String"},
+ "autoRenew":{"shape":"Boolean"},
+ "licenseArns":{"shape":"StringList"},
+ "tags":{"shape":"TagMap"}
+ }
+ },
+ "EksAnywhereSubscriptionLicenseType":{
+ "type":"string",
+ "enum":["Cluster"]
+ },
+ "EksAnywhereSubscriptionList":{
+ "type":"list",
+ "member":{"shape":"EksAnywhereSubscription"}
+ },
+ "EksAnywhereSubscriptionName":{
+ "type":"string",
+ "max":100,
+ "min":1,
+ "pattern":"^[0-9A-Za-z][A-Za-z0-9\\-_]*"
+ },
+ "EksAnywhereSubscriptionStatus":{
+ "type":"string",
+ "enum":[
+ "CREATING",
+ "ACTIVE",
+ "UPDATING",
+ "EXPIRING",
+ "EXPIRED",
+ "DELETING"
+ ]
+ },
+ "EksAnywhereSubscriptionStatusValues":{
+ "type":"list",
+ "member":{"shape":"EksAnywhereSubscriptionStatus"}
+ },
+ "EksAnywhereSubscriptionTerm":{
+ "type":"structure",
+ "members":{
+ "duration":{"shape":"Integer"},
+ "unit":{"shape":"EksAnywhereSubscriptionTermUnit"}
+ }
+ },
+ "EksAnywhereSubscriptionTermUnit":{
+ "type":"string",
+ "enum":["MONTHS"]
+ },
"EncryptionConfig":{
"type":"structure",
"members":{
@@ -1562,6 +1756,7 @@
"type":"list",
"member":{"shape":"String"}
},
+ "Integer":{"type":"integer"},
"InvalidParameterException":{
"type":"structure",
"members":{
@@ -1569,6 +1764,7 @@
"nodegroupName":{"shape":"String"},
"fargateProfileName":{"shape":"String"},
"addonName":{"shape":"String"},
+ "subscriptionId":{"shape":"String"},
"message":{"shape":"String"}
},
"error":{"httpStatusCode":400},
@@ -1580,6 +1776,7 @@
"clusterName":{"shape":"String"},
"nodegroupName":{"shape":"String"},
"addonName":{"shape":"String"},
+ "subscriptionId":{"shape":"String"},
"message":{"shape":"String"}
},
"error":{"httpStatusCode":400},
@@ -1694,6 +1891,39 @@
"nextToken":{"shape":"String"}
}
},
+ "ListEksAnywhereSubscriptionsRequest":{
+ "type":"structure",
+ "members":{
+ "maxResults":{
+ "shape":"ListEksAnywhereSubscriptionsRequestMaxResults",
+ "location":"querystring",
+ "locationName":"maxResults"
+ },
+ "nextToken":{
+ "shape":"String",
+ "location":"querystring",
+ "locationName":"nextToken"
+ },
+ "includeStatus":{
+ "shape":"EksAnywhereSubscriptionStatusValues",
+ "location":"querystring",
+ "locationName":"includeStatus"
+ }
+ }
+ },
+ "ListEksAnywhereSubscriptionsRequestMaxResults":{
+ "type":"integer",
+ "box":true,
+ "max":100,
+ "min":1
+ },
+ "ListEksAnywhereSubscriptionsResponse":{
+ "type":"structure",
+ "members":{
+ "subscriptions":{"shape":"EksAnywhereSubscriptionList"},
+ "nextToken":{"shape":"String"}
+ }
+ },
"ListFargateProfilesRequest":{
"type":"structure",
"required":["clusterName"],
@@ -2138,6 +2368,7 @@
"members":{
"clusterName":{"shape":"String"},
"nodegroupName":{"shape":"String"},
+ "subscriptionId":{"shape":"String"},
"message":{"shape":"String"}
},
"error":{"httpStatusCode":400},
@@ -2150,6 +2381,7 @@
"nodegroupName":{"shape":"String"},
"fargateProfileName":{"shape":"String"},
"addonName":{"shape":"String"},
+ "subscriptionId":{"shape":"String"},
"message":{"shape":"String"}
},
"error":{"httpStatusCode":404},
@@ -2174,6 +2406,7 @@
"clusterName":{"shape":"String"},
"nodegroupName":{"shape":"String"},
"addonName":{"shape":"String"},
+ "subscriptionId":{"shape":"String"},
"message":{"shape":"String"}
},
"error":{"httpStatusCode":500},
@@ -2380,6 +2613,31 @@
"update":{"shape":"Update"}
}
},
+ "UpdateEksAnywhereSubscriptionRequest":{
+ "type":"structure",
+ "required":[
+ "id",
+ "autoRenew"
+ ],
+ "members":{
+ "id":{
+ "shape":"String",
+ "location":"uri",
+ "locationName":"id"
+ },
+ "autoRenew":{"shape":"Boolean"},
+ "clientRequestToken":{
+ "shape":"String",
+ "idempotencyToken":true
+ }
+ }
+ },
+ "UpdateEksAnywhereSubscriptionResponse":{
+ "type":"structure",
+ "members":{
+ "subscription":{"shape":"EksAnywhereSubscription"}
+ }
+ },
"UpdateLabelsPayload":{
"type":"structure",
"members":{
diff --git a/models/apis/eks/2017-11-01/docs-2.json b/models/apis/eks/2017-11-01/docs-2.json
index d96db8d868e..a1caed50dc9 100644
--- a/models/apis/eks/2017-11-01/docs-2.json
+++ b/models/apis/eks/2017-11-01/docs-2.json
@@ -6,10 +6,12 @@
"AssociateIdentityProviderConfig": "Associate an identity provider configuration to a cluster.
If you want to authenticate identities using an identity provider, you can create an identity provider configuration and associate it to your cluster. After configuring authentication to your cluster you can create Kubernetes roles
and clusterroles
to assign permissions to the roles, and then bind the roles to the identities using Kubernetes rolebindings
and clusterrolebindings
. For more information see Using RBAC Authorization in the Kubernetes documentation.
",
"CreateAddon": "Creates an Amazon EKS add-on.
Amazon EKS add-ons help to automate the provisioning and lifecycle management of common operational software for Amazon EKS clusters. For more information, see Amazon EKS add-ons in the Amazon EKS User Guide.
",
"CreateCluster": "Creates an Amazon EKS control plane.
The Amazon EKS control plane consists of control plane instances that run the Kubernetes software, such as etcd
and the API server. The control plane runs in an account managed by Amazon Web Services, and the Kubernetes API is exposed by the Amazon EKS API server endpoint. Each Amazon EKS cluster control plane is single tenant and unique. It runs on its own set of Amazon EC2 instances.
The cluster control plane is provisioned across multiple Availability Zones and fronted by an Elastic Load Balancing Network Load Balancer. Amazon EKS also provisions elastic network interfaces in your VPC subnets to provide connectivity from the control plane instances to the nodes (for example, to support kubectl exec
, logs
, and proxy
data flows).
Amazon EKS nodes run in your Amazon Web Services account and connect to your cluster's control plane over the Kubernetes API server endpoint and a certificate file that is created for your cluster.
In most cases, it takes several minutes to create a cluster. After you create an Amazon EKS cluster, you must configure your Kubernetes tooling to communicate with the API server and launch nodes into your cluster. For more information, see Managing Cluster Authentication and Launching Amazon EKS nodes in the Amazon EKS User Guide.
",
- "CreateFargateProfile": "Creates an Fargate profile for your Amazon EKS cluster. You must have at least one Fargate profile in a cluster to be able to run pods on Fargate.
The Fargate profile allows an administrator to declare which pods run on Fargate and specify which pods run on which Fargate profile. This declaration is done through the profile’s selectors. Each profile can have up to five selectors that contain a namespace and labels. A namespace is required for every selector. The label field consists of multiple optional key-value pairs. Pods that match the selectors are scheduled on Fargate. If a to-be-scheduled pod matches any of the selectors in the Fargate profile, then that pod is run on Fargate.
When you create a Fargate profile, you must specify a pod execution role to use with the pods that are scheduled with the profile. This role is added to the cluster's Kubernetes Role Based Access Control (RBAC) for authorization so that the kubelet
that is running on the Fargate infrastructure can register with your Amazon EKS cluster so that it can appear in your cluster as a node. The pod execution role also provides IAM permissions to the Fargate infrastructure to allow read access to Amazon ECR image repositories. For more information, see Pod Execution Role in the Amazon EKS User Guide.
Fargate profiles are immutable. However, you can create a new updated profile to replace an existing profile and then delete the original after the updated profile has finished creating.
If any Fargate profiles in a cluster are in the DELETING
status, you must wait for that Fargate profile to finish deleting before you can create any other profiles in that cluster.
For more information, see Fargate Profile in the Amazon EKS User Guide.
",
- "CreateNodegroup": "Creates a managed node group for an Amazon EKS cluster. You can only create a node group for your cluster that is equal to the current Kubernetes version for the cluster. All node groups are created with the latest AMI release version for the respective minor Kubernetes version of the cluster, unless you deploy a custom AMI using a launch template. For more information about using launch templates, see Launch template support.
An Amazon EKS managed node group is an Amazon EC2 Auto Scaling group and associated Amazon EC2 instances that are managed by Amazon Web Services for an Amazon EKS cluster. For more information, see Managed node groups in the Amazon EKS User Guide.
Windows AMI types are only supported for commercial Regions that support Windows Amazon EKS.
",
+ "CreateEksAnywhereSubscription": "Creates an EKS Anywhere subscription. When a subscription is created, it is a contract agreement for the length of the term specified in the request. Licenses that are used to validate support are provisioned in Amazon Web Services License Manager and the caller account is granted access to EKS Anywhere Curated Packages.
",
+ "CreateFargateProfile": "Creates an Fargate profile for your Amazon EKS cluster. You must have at least one Fargate profile in a cluster to be able to run pods on Fargate.
The Fargate profile allows an administrator to declare which pods run on Fargate and specify which pods run on which Fargate profile. This declaration is done through the profile’s selectors. Each profile can have up to five selectors that contain a namespace and labels. A namespace is required for every selector. The label field consists of multiple optional key-value pairs. Pods that match the selectors are scheduled on Fargate. If a to-be-scheduled pod matches any of the selectors in the Fargate profile, then that pod is run on Fargate.
When you create a Fargate profile, you must specify a pod execution role to use with the pods that are scheduled with the profile. This role is added to the cluster's Kubernetes Role Based Access Control (RBAC) for authorization so that the kubelet
that is running on the Fargate infrastructure can register with your Amazon EKS cluster so that it can appear in your cluster as a node. The pod execution role also provides IAM permissions to the Fargate infrastructure to allow read access to Amazon ECR image repositories. For more information, see Pod Execution Role in the Amazon EKS User Guide.
Fargate profiles are immutable. However, you can create a new updated profile to replace an existing profile and then delete the original after the updated profile has finished creating.
If any Fargate profiles in a cluster are in the DELETING
status, you must wait for that Fargate profile to finish deleting before you can create any other profiles in that cluster.
For more information, see Fargate Profile in the Amazon EKS User Guide.
",
+ "CreateNodegroup": "Creates a managed node group for an Amazon EKS cluster. You can only create a node group for your cluster that is equal to the current Kubernetes version for the cluster.
An Amazon EKS managed node group is an Amazon EC2 Auto Scaling group and associated Amazon EC2 instances that are managed by Amazon Web Services for an Amazon EKS cluster. For more information, see Managed node groups in the Amazon EKS User Guide.
Windows AMI types are only supported for commercial Regions that support Windows Amazon EKS.
",
"DeleteAddon": "Delete an Amazon EKS add-on.
When you remove the add-on, it will also be deleted from the cluster. You can always manually start an add-on on the cluster using the Kubernetes API.
",
"DeleteCluster": "Deletes the Amazon EKS cluster control plane.
If you have active services in your cluster that are associated with a load balancer, you must delete those services before deleting the cluster so that the load balancers are deleted properly. Otherwise, you can have orphaned resources in your VPC that prevent you from being able to delete the VPC. For more information, see Deleting a Cluster in the Amazon EKS User Guide.
If you have managed node groups or Fargate profiles attached to the cluster, you must delete them first. For more information, see DeleteNodegroup and DeleteFargateProfile.
",
+ "DeleteEksAnywhereSubscription": "Deletes an expired / inactive subscription. Deleting inactive subscriptions removes them from the Amazon Web Services Management Console view and from list/describe API responses. Subscriptions can only be cancelled within 7 days of creation, and are cancelled by creating a ticket in the Amazon Web Services Support Center.
",
"DeleteFargateProfile": "Deletes an Fargate profile.
When you delete a Fargate profile, any pods running on Fargate that were created with the profile are deleted. If those pods match another Fargate profile, then they are scheduled on Fargate with that profile. If they no longer match any Fargate profiles, then they are not scheduled on Fargate and they may remain in a pending state.
Only one Fargate profile in a cluster can be in the DELETING
status at a time. You must wait for a Fargate profile to finish deleting before you can delete any other profiles in that cluster.
",
"DeleteNodegroup": "Deletes an Amazon EKS node group for a cluster.
",
"DeregisterCluster": "Deregisters a connected cluster to remove it from the Amazon EKS control plane.
",
@@ -17,13 +19,15 @@
"DescribeAddonConfiguration": "Returns configuration options.
",
"DescribeAddonVersions": "Describes the versions for an add-on. Information such as the Kubernetes versions that you can use the add-on with, the owner
, publisher
, and the type
of the add-on are returned.
",
"DescribeCluster": "Returns descriptive information about an Amazon EKS cluster.
The API server endpoint and certificate authority data returned by this operation are required for kubelet
and kubectl
to communicate with your Kubernetes API server. For more information, see Create a kubeconfig for Amazon EKS.
The API server endpoint and certificate authority data aren't available until the cluster reaches the ACTIVE
state.
",
+ "DescribeEksAnywhereSubscription": "Returns descriptive information about a subscription.
",
"DescribeFargateProfile": "Returns descriptive information about an Fargate profile.
",
"DescribeIdentityProviderConfig": "Returns descriptive information about an identity provider configuration.
",
"DescribeNodegroup": "Returns descriptive information about an Amazon EKS node group.
",
"DescribeUpdate": "Returns descriptive information about an update against your Amazon EKS cluster or associated managed node group or Amazon EKS add-on.
When the status of the update is Succeeded
, the update is complete. If an update fails, the status is Failed
, and an error detail explains the reason for the failure.
",
- "DisassociateIdentityProviderConfig": "Disassociates an identity provider configuration from a cluster. If you disassociate an identity provider from your cluster, users included in the provider can no longer access the cluster. However, you can still access the cluster with Amazon Web Services IAM users.
",
- "ListAddons": "Lists the available add-ons.
",
+ "DisassociateIdentityProviderConfig": "Disassociates an identity provider configuration from a cluster. If you disassociate an identity provider from your cluster, users included in the provider can no longer access the cluster. However, you can still access the cluster with IAM principals.
",
+ "ListAddons": "Lists the installed add-ons.
",
"ListClusters": "Lists the Amazon EKS clusters in your Amazon Web Services account in the specified Region.
",
+ "ListEksAnywhereSubscriptions": "Displays the full description of the subscription.
",
"ListFargateProfiles": "Lists the Fargate profiles associated with the specified cluster in your Amazon Web Services account in the specified Region.
",
"ListIdentityProviderConfigs": "A list of identity provider configurations.
",
"ListNodegroups": "Lists the Amazon EKS managed node groups associated with the specified cluster in your Amazon Web Services account in the specified Region. Self-managed node groups are not listed.
",
@@ -35,6 +39,7 @@
"UpdateAddon": "Updates an Amazon EKS add-on.
",
"UpdateClusterConfig": "Updates an Amazon EKS cluster configuration. Your cluster continues to function during the update. The response output includes an update ID that you can use to track the status of your cluster update with the DescribeUpdate API operation.
You can use this API operation to enable or disable exporting the Kubernetes control plane logs for your cluster to CloudWatch Logs. By default, cluster control plane logs aren't exported to CloudWatch Logs. For more information, see Amazon EKS Cluster Control Plane Logs in the Amazon EKS User Guide .
CloudWatch Logs ingestion, archive storage, and data scanning rates apply to exported control plane logs. For more information, see CloudWatch Pricing.
You can also use this API operation to enable or disable public and private access to your cluster's Kubernetes API server endpoint. By default, public access is enabled, and private access is disabled. For more information, see Amazon EKS cluster endpoint access control in the Amazon EKS User Guide .
You can't update the subnets or security group IDs for an existing cluster.
Cluster updates are asynchronous, and they should finish within a few minutes. During an update, the cluster status moves to UPDATING
(this status transition is eventually consistent). When the update is complete (either Failed
or Successful
), the cluster status moves to Active
.
",
"UpdateClusterVersion": "Updates an Amazon EKS cluster to the specified Kubernetes version. Your cluster continues to function during the update. The response output includes an update ID that you can use to track the status of your cluster update with the DescribeUpdate API operation.
Cluster updates are asynchronous, and they should finish within a few minutes. During an update, the cluster status moves to UPDATING
(this status transition is eventually consistent). When the update is complete (either Failed
or Successful
), the cluster status moves to Active
.
If your cluster has managed node groups attached to it, all of your node groups’ Kubernetes versions must match the cluster’s Kubernetes version in order to update the cluster to a new Kubernetes version.
",
+ "UpdateEksAnywhereSubscription": "Update an EKS Anywhere Subscription. Only auto renewal and tags can be updated after subscription creation.
",
"UpdateNodegroupConfig": "Updates an Amazon EKS managed node group configuration. Your node group continues to function during the update. The response output includes an update ID that you can use to track the status of your node group update with the DescribeUpdate API operation. Currently you can update the Kubernetes labels for a node group or the scaling configuration.
",
"UpdateNodegroupVersion": "Updates the Kubernetes version or AMI version of an Amazon EKS managed node group.
You can update a node group using a launch template only if the node group was originally deployed with a launch template. If you need to update a custom AMI in a node group that was deployed with a launch template, then update your custom AMI, specify the new ID in a new version of the launch template, and then update the node group to the new version of the launch template.
If you update without a launch template, then you can update to the latest available AMI version of a node group's current Kubernetes version by not specifying a Kubernetes version in the request. You can update to the latest AMI version of your cluster's current Kubernetes version by specifying your cluster's Kubernetes version in the request. For information about Linux versions, see Amazon EKS optimized Amazon Linux AMI versions in the Amazon EKS User Guide. For information about Windows versions, see Amazon EKS optimized Windows AMI versions in the Amazon EKS User Guide.
You cannot roll back a node group to an earlier Kubernetes version or AMI version.
When a node in a managed node group is terminated due to a scaling action or update, the pods in that node are drained first. Amazon EKS attempts to drain the nodes gracefully and will fail if it is unable to do so. You can force
the update if Amazon EKS is unable to drain the nodes as a result of a pod disruption budget issue.
"
},
@@ -47,7 +52,7 @@
}
},
"AccessDeniedException": {
- "base": "You don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access Management in the IAM User Guide.
",
+ "base": "You don't have permissions to perform the requested operation. The IAM principal making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access management in the IAM User Guide.
",
"refs": {
}
},
@@ -155,7 +160,10 @@
"refs": {
"AddonVersionInfo$requiresConfiguration": "Whether the add-on requires configuration.
",
"Compatibility$defaultVersion": "The supported default version.
",
+ "CreateEksAnywhereSubscriptionRequest$autoRenew": "A boolean indicating whether the subscription auto renews at the end of the term.
",
"DeleteAddonRequest$preserve": "Specifying this option preserves the add-on software on your cluster but Amazon EKS stops managing any settings for the add-on. If an IAM account is associated with the add-on, it isn't removed.
",
+ "EksAnywhereSubscription$autoRenew": "A boolean indicating whether or not a subscription will auto renew when it expires.
",
+ "UpdateEksAnywhereSubscriptionRequest$autoRenew": "A boolean indicating whether or not to automatically renew the subscription.
",
"UpdateNodegroupVersionRequest$force": "Force the update if the existing node group's pods are unable to be drained due to a pod disruption budget issue. If an update fails because pods could not be drained, you can force the update after it fails to terminate the old node whether or not any pods are running on the node.
",
"VpcConfigResponse$endpointPublicAccess": "This parameter indicates whether the Amazon EKS public API server endpoint is enabled. If the Amazon EKS public API server endpoint is disabled, your cluster's Kubernetes API server can only receive requests that originate from within the cluster VPC.
",
"VpcConfigResponse$endpointPrivateAccess": "This parameter indicates whether the Amazon EKS private API server endpoint is enabled. If the Amazon EKS private API server endpoint is enabled, Kubernetes API requests that originate from within your cluster's VPC use the private VPC endpoint instead of traversing the internet. If this value is disabled and you have nodes or Fargate pods in the cluster, then ensure that publicAccessCidrs
includes the necessary CIDR blocks for communication with the nodes or Fargate pods. For more information, see Amazon EKS cluster endpoint access control in the Amazon EKS User Guide .
"
@@ -196,7 +204,7 @@
}
},
"ClientException": {
- "base": "These errors are usually caused by a client action. Actions can include using an action or resource on behalf of a user that doesn't have permissions to use the action or resource or specifying an identifier that is not valid.
",
+ "base": "These errors are usually caused by a client action. Actions can include using an action or resource on behalf of an IAM principal that doesn't have permissions to use the action or resource or specifying an identifier that is not valid.
",
"refs": {
}
},
@@ -284,7 +292,7 @@
}
},
"ControlPlanePlacementRequest": {
- "base": "The placement configuration for all the control plane instances of your local Amazon EKS cluster on an Amazon Web Services Outpost. For more information, see Capacity considerations in the Amazon EKS User Guide
",
+ "base": "The placement configuration for all the control plane instances of your local Amazon EKS cluster on an Amazon Web Services Outpost. For more information, see Capacity considerations in the Amazon EKS User Guide.
",
"refs": {
"OutpostConfigRequest$controlPlanePlacement": "An object representing the placement configuration for all the control plane instances of your local Amazon EKS cluster on an Amazon Web Services Outpost. For more information, see Capacity considerations in the Amazon EKS User Guide.
"
}
@@ -315,6 +323,16 @@
"refs": {
}
},
+ "CreateEksAnywhereSubscriptionRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "CreateEksAnywhereSubscriptionResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
"CreateFargateProfileRequest": {
"base": null,
"refs": {
@@ -355,6 +373,16 @@
"refs": {
}
},
+ "DeleteEksAnywhereSubscriptionRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeleteEksAnywhereSubscriptionResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
"DeleteFargateProfileRequest": {
"base": null,
"refs": {
@@ -431,6 +459,16 @@
"refs": {
}
},
+ "DescribeEksAnywhereSubscriptionRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribeEksAnywhereSubscriptionResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
"DescribeFargateProfileRequest": {
"base": null,
"refs": {
@@ -481,6 +519,60 @@
"refs": {
}
},
+ "EksAnywhereSubscription": {
+ "base": "An EKS Anywhere subscription authorizing the customer to support for licensed clusters and access to EKS Anywhere Curated Packages.
",
+ "refs": {
+ "CreateEksAnywhereSubscriptionResponse$subscription": "The full description of the subscription.
",
+ "DeleteEksAnywhereSubscriptionResponse$subscription": "The full description of the subscription to be deleted.
",
+ "DescribeEksAnywhereSubscriptionResponse$subscription": "The full description of the subscription.
",
+ "EksAnywhereSubscriptionList$member": null,
+ "UpdateEksAnywhereSubscriptionResponse$subscription": "The full description of the updated subscription.
"
+ }
+ },
+ "EksAnywhereSubscriptionLicenseType": {
+ "base": null,
+ "refs": {
+ "CreateEksAnywhereSubscriptionRequest$licenseType": "The license type for all licenses in the subscription. Valid value is CLUSTER. With the CLUSTER license type, each license covers support for a single EKS Anywhere cluster.
",
+ "EksAnywhereSubscription$licenseType": "The type of licenses included in the subscription. Valid value is CLUSTER. With the CLUSTER license type, each license covers support for a single EKS Anywhere cluster.
"
+ }
+ },
+ "EksAnywhereSubscriptionList": {
+ "base": null,
+ "refs": {
+ "ListEksAnywhereSubscriptionsResponse$subscriptions": "A list of all subscription objects in the region, filtered by includeStatus and paginated by nextToken and maxResults.
"
+ }
+ },
+ "EksAnywhereSubscriptionName": {
+ "base": null,
+ "refs": {
+ "CreateEksAnywhereSubscriptionRequest$name": "The unique name for your subscription. It must be unique in your Amazon Web Services account in the Amazon Web Services Region you're creating the subscription in. The name can contain only alphanumeric characters (case-sensitive), hyphens, and underscores. It must start with an alphabetic character and can't be longer than 100 characters.
"
+ }
+ },
+ "EksAnywhereSubscriptionStatus": {
+ "base": null,
+ "refs": {
+ "EksAnywhereSubscriptionStatusValues$member": null
+ }
+ },
+ "EksAnywhereSubscriptionStatusValues": {
+ "base": null,
+ "refs": {
+ "ListEksAnywhereSubscriptionsRequest$includeStatus": "An array of subscription statuses to filter on.
"
+ }
+ },
+ "EksAnywhereSubscriptionTerm": {
+ "base": "An object representing the term duration and term unit type of your subscription. This determines the term length of your subscription. Valid values are MONTHS for term unit and 12 or 36 for term duration, indicating a 12 month or 36 month subscription.
",
+ "refs": {
+ "CreateEksAnywhereSubscriptionRequest$term": "An object representing the term duration and term unit type of your subscription. This determines the term length of your subscription. Valid values are MONTHS for term unit and 12 or 36 for term duration, indicating a 12 month or 36 month subscription. This value cannot be changed after creating the subscription.
",
+ "EksAnywhereSubscription$term": "An EksAnywhereSubscriptionTerm object.
"
+ }
+ },
+ "EksAnywhereSubscriptionTermUnit": {
+ "base": null,
+ "refs": {
+ "EksAnywhereSubscriptionTerm$unit": "The term unit of the subscription. Valid value is MONTHS.
"
+ }
+ },
"EncryptionConfig": {
"base": "The encryption configuration for the cluster.
",
"refs": {
@@ -584,6 +676,14 @@
"ListClustersRequest$include": "Indicates whether external clusters are included in the returned list. Use 'all
' to return connected clusters, or blank to return only Amazon EKS clusters. 'all
' must be in lowercase otherwise an error occurs.
"
}
},
+ "Integer": {
+ "base": null,
+ "refs": {
+ "CreateEksAnywhereSubscriptionRequest$licenseQuantity": "The number of licenses to purchase with the subscription. Valid values are between 1 and 1000. This value cannot be changed after creating the subscription.
",
+ "EksAnywhereSubscription$licenseQuantity": "The number of licenses included in a subscription. Valid values are between 1 and 1000.
",
+ "EksAnywhereSubscriptionTerm$duration": "The duration of the subscription term. Valid values are 12 and 36, indicating a 12 month or 36 month subscription.
"
+ }
+ },
"InvalidParameterException": {
"base": "The specified parameter is invalid. Review the available parameters for the API request.
",
"refs": {
@@ -665,6 +765,22 @@
"refs": {
}
},
+ "ListEksAnywhereSubscriptionsRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ListEksAnywhereSubscriptionsRequestMaxResults": {
+ "base": null,
+ "refs": {
+ "ListEksAnywhereSubscriptionsRequest$maxResults": "The maximum number of cluster results returned by ListEksAnywhereSubscriptions in paginated output. When you use this parameter, ListEksAnywhereSubscriptions returns only maxResults results in a single page along with a nextToken response element. You can see the remaining results of the initial request by sending another ListEksAnywhereSubscriptions request with the returned nextToken value. This value can be between 1 and 100. If you don't use this parameter, ListEksAnywhereSubscriptions returns up to 10 results and a nextToken value if applicable.
"
+ }
+ },
+ "ListEksAnywhereSubscriptionsResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
"ListFargateProfilesRequest": {
"base": null,
"refs": {
@@ -893,7 +1009,7 @@
"ResolveConflicts": {
"base": null,
"refs": {
- "CreateAddonRequest$resolveConflicts": "How to resolve field value conflicts for an Amazon EKS add-on. Conflicts are handled based on the value you choose:
-
None – If the self-managed version of the add-on is installed on your cluster, Amazon EKS doesn't change the value. Creation of the add-on might fail.
-
Overwrite – If the self-managed version of the add-on is installed on your cluster and the Amazon EKS default value is different than the existing value, Amazon EKS changes the value to the Amazon EKS default value.
-
Preserve – Not supported. You can set this value when updating an add-on though. For more information, see UpdateAddon.
If you don't currently have the self-managed version of the add-on installed on your cluster, the Amazon EKS add-on is installed. Amazon EKS sets all values to default values, regardless of the option that you specify.
",
+ "CreateAddonRequest$resolveConflicts": "How to resolve field value conflicts for an Amazon EKS add-on. Conflicts are handled based on the value you choose:
-
None – If the self-managed version of the add-on is installed on your cluster, Amazon EKS doesn't change the value. Creation of the add-on might fail.
-
Overwrite – If the self-managed version of the add-on is installed on your cluster and the Amazon EKS default value is different than the existing value, Amazon EKS changes the value to the Amazon EKS default value.
-
Preserve – This is similar to the NONE option. If the self-managed version of the add-on is installed on your cluster Amazon EKS doesn't change the add-on resource properties. Creation of the add-on might fail if conflicts are detected. This option works differently during the update operation. For more information, see UpdateAddon.
If you don't currently have the self-managed version of the add-on installed on your cluster, the Amazon EKS add-on is installed. Amazon EKS sets all values to default values, regardless of the option that you specify.
",
"UpdateAddonRequest$resolveConflicts": "How to resolve field value conflicts for an Amazon EKS add-on if you've changed a value from the Amazon EKS default value. Conflicts are handled based on the option you choose:
-
None – Amazon EKS doesn't change the value. The update might fail.
-
Overwrite – Amazon EKS overwrites the changed value back to the Amazon EKS default value.
-
Preserve – Amazon EKS preserves the value. If you choose this option, we recommend that you test any field and value changes on a non-production cluster before updating the add-on on your production cluster.
"
}
},
@@ -961,6 +1077,7 @@
"ClientException$clusterName": "The Amazon EKS cluster associated with the exception.
",
"ClientException$nodegroupName": "The Amazon EKS managed node group associated with the exception.
",
"ClientException$addonName": null,
+ "ClientException$subscriptionId": "The Amazon EKS subscription ID with the exception.
",
"ClientException$message": null,
"Cluster$name": "The name of the cluster.
",
"Cluster$arn": "The Amazon Resource Name (ARN) of the cluster.
",
@@ -986,6 +1103,7 @@
"CreateClusterRequest$version": "The desired Kubernetes version for your cluster. If you don't specify a value here, the default version available in Amazon EKS is used.
The default version might not be the latest version available.
",
"CreateClusterRequest$roleArn": "The Amazon Resource Name (ARN) of the IAM role that provides permissions for the Kubernetes control plane to make calls to Amazon Web Services API operations on your behalf. For more information, see Amazon EKS Service IAM Role in the Amazon EKS User Guide .
",
"CreateClusterRequest$clientRequestToken": "Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
",
+ "CreateEksAnywhereSubscriptionRequest$clientRequestToken": "Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
",
"CreateFargateProfileRequest$fargateProfileName": "The name of the Fargate profile.
",
"CreateFargateProfileRequest$clusterName": "The name of the Amazon EKS cluster to apply the Fargate profile to.
",
"CreateFargateProfileRequest$podExecutionRoleArn": "The Amazon Resource Name (ARN) of the pod execution role to use for pods that match the selectors in the Fargate profile. The pod execution role allows Fargate infrastructure to register with your cluster as a node, and it provides read access to Amazon ECR image repositories. For more information, see Pod Execution Role in the Amazon EKS User Guide.
",
@@ -998,6 +1116,7 @@
"CreateNodegroupRequest$releaseVersion": "The AMI version of the Amazon EKS optimized AMI to use with your node group. By default, the latest available AMI version for the node group's current Kubernetes version is used. For information about Linux versions, see Amazon EKS optimized Amazon Linux AMI versions in the Amazon EKS User Guide. Amazon EKS managed node groups support the November 2022 and later releases of the Windows AMIs. For information about Windows versions, see Amazon EKS optimized Windows AMI versions in the Amazon EKS User Guide.
If you specify launchTemplate
, and your launch template uses a custom AMI, then don't specify releaseVersion
, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.
",
"DeleteAddonRequest$addonName": "The name of the add-on. The name must match one of the names returned by ListAddons
.
",
"DeleteClusterRequest$name": "The name of the cluster to delete.
",
+ "DeleteEksAnywhereSubscriptionRequest$id": "The ID of the subscription.
",
"DeleteFargateProfileRequest$clusterName": "The name of the Amazon EKS cluster associated with the Fargate profile to delete.
",
"DeleteFargateProfileRequest$fargateProfileName": "The name of the Fargate profile to delete.
",
"DeleteNodegroupRequest$clusterName": "The name of the Amazon EKS cluster that is associated with your node group.
",
@@ -1014,6 +1133,7 @@
"DescribeAddonVersionsRequest$addonName": "The name of the add-on. The name must match one of the names returned by ListAddons
.
",
"DescribeAddonVersionsResponse$nextToken": "The nextToken
value returned from a previous paginated DescribeAddonVersionsResponse
where maxResults
was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken
value.
This token should be treated as an opaque identifier that is used only to retrieve the next items in a list and not for other programmatic purposes.
",
"DescribeClusterRequest$name": "The name of the cluster to describe.
",
+ "DescribeEksAnywhereSubscriptionRequest$id": "The ID of the subscription.
",
"DescribeFargateProfileRequest$clusterName": "The name of the Amazon EKS cluster associated with the Fargate profile.
",
"DescribeFargateProfileRequest$fargateProfileName": "The name of the Fargate profile to describe.
",
"DescribeIdentityProviderConfigRequest$clusterName": "The cluster name that the identity provider configuration is associated to.
",
@@ -1025,6 +1145,9 @@
"DescribeUpdateRequest$addonName": "The name of the add-on. The name must match one of the names returned by ListAddons
. This parameter is required if the update is an add-on update.
",
"DisassociateIdentityProviderConfigRequest$clusterName": "The name of the cluster to disassociate an identity provider from.
",
"DisassociateIdentityProviderConfigRequest$clientRequestToken": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
",
+ "EksAnywhereSubscription$id": "UUID identifying a subscription.
",
+ "EksAnywhereSubscription$arn": "The Amazon Resource Name (ARN) for the subscription.
",
+ "EksAnywhereSubscription$status": "The status of a subscription.
",
"ErrorDetail$errorMessage": "A more complete description of the error.
",
"FargateProfile$fargateProfileName": "The name of the Fargate profile.
",
"FargateProfile$fargateProfileArn": "The full Amazon Resource Name (ARN) of the Fargate profile.
",
@@ -1040,10 +1163,12 @@
"InvalidParameterException$nodegroupName": "The Amazon EKS managed node group associated with the exception.
",
"InvalidParameterException$fargateProfileName": "The Fargate profile associated with the exception.
",
"InvalidParameterException$addonName": null,
+ "InvalidParameterException$subscriptionId": "The Amazon EKS subscription ID with the exception.
",
"InvalidParameterException$message": null,
"InvalidRequestException$clusterName": "The Amazon EKS cluster associated with the exception.
",
"InvalidRequestException$nodegroupName": "The Amazon EKS managed node group associated with the exception.
",
"InvalidRequestException$addonName": null,
+ "InvalidRequestException$subscriptionId": "The Amazon EKS subscription ID with the exception.
",
"InvalidRequestException$message": null,
"Issue$message": "The error message associated with the issue.
",
"KubernetesNetworkConfigRequest$serviceIpv4Cidr": "Don't specify a value if you select ipv6
for ipFamily. The CIDR block to assign Kubernetes service IP addresses from. If you don't specify a block, Kubernetes assigns addresses from either the 10.100.0.0/16
or 172.20.0.0/16
CIDR blocks. We recommend that you specify a block that does not overlap with resources in other networks that are peered or connected to your VPC. The block must meet the following requirements:
-
Within one of the following private IP address blocks: 10.0.0.0/8
, 172.16.0.0/12
, or 192.168.0.0/16
.
-
Doesn't overlap with any CIDR block assigned to the VPC that you selected for VPC.
-
Between /24 and /12.
You can only specify a custom CIDR block when you create a cluster and can't change this value once the cluster is created.
",
@@ -1056,6 +1181,8 @@
"ListAddonsResponse$nextToken": "The nextToken
value returned from a previous paginated ListAddonsResponse
where maxResults
was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken
value.
This token should be treated as an opaque identifier that is used only to retrieve the next items in a list and not for other programmatic purposes.
",
"ListClustersRequest$nextToken": "The nextToken
value returned from a previous paginated ListClusters
request where maxResults
was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken
value.
This token should be treated as an opaque identifier that is used only to retrieve the next items in a list and not for other programmatic purposes.
",
"ListClustersResponse$nextToken": "The nextToken
value to include in a future ListClusters
request. When the results of a ListClusters
request exceed maxResults
, you can use this value to retrieve the next page of results. This value is null
when there are no more results to return.
",
+ "ListEksAnywhereSubscriptionsRequest$nextToken": "The nextToken value to include in a future ListEksAnywhereSubscriptions request. When the results of a ListEksAnywhereSubscriptions request exceed maxResults, you can use this value to retrieve the next page of results. This value is null when there are no more results to return.
",
+ "ListEksAnywhereSubscriptionsResponse$nextToken": "The nextToken value to include in a future ListEksAnywhereSubscriptions request. When the results of a ListEksAnywhereSubscriptions request exceed maxResults, you can use this value to retrieve the next page of results. This value is null when there are no more results to return.
",
"ListFargateProfilesRequest$clusterName": "The name of the Amazon EKS cluster that you would like to list Fargate profiles in.
",
"ListFargateProfilesRequest$nextToken": "The nextToken
value returned from a previous paginated ListFargateProfiles
request where maxResults
was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken
value.
",
"ListFargateProfilesResponse$nextToken": "The nextToken
value to include in a future ListFargateProfiles
request. When the results of a ListFargateProfiles
request exceed maxResults
, you can use this value to retrieve the next page of results. This value is null
when there are no more results to return.
",
@@ -1100,7 +1227,7 @@
"OidcIdentityProviderConfigRequest$groupsPrefix": "The prefix that is prepended to group claims to prevent clashes with existing names (such as system:
groups). For example, the value oidc:
will create group names like oidc:engineering
and oidc:infra
.
",
"OutpostConfigRequest$controlPlaneInstanceType": "The Amazon EC2 instance type that you want to use for your local Amazon EKS cluster on Outposts. Choose an instance type based on the number of nodes that your cluster will have. For more information, see Capacity considerations in the Amazon EKS User Guide.
The instance type that you specify is used for all Kubernetes control plane instances. The instance type can't be changed after cluster creation. The control plane is not automatically scaled by Amazon EKS.
",
"OutpostConfigResponse$controlPlaneInstanceType": "The Amazon EC2 instance type used for the control plane. The instance type is the same for all control plane instances.
",
- "Provider$keyArn": "Amazon Resource Name (ARN) or alias of the KMS key. The KMS key must be symmetric, created in the same region as the cluster, and if the KMS key was created in a different account, the user must have access to the KMS key. For more information, see Allowing Users in Other Accounts to Use a KMS key in the Key Management Service Developer Guide.
",
+ "Provider$keyArn": "Amazon Resource Name (ARN) or alias of the KMS key. The KMS key must be symmetric and created in the same Amazon Web Services Region as the cluster. If the KMS key was created in a different account, the IAM principal must have access to the KMS key. For more information, see Allowing users in other accounts to use a KMS key in the Key Management Service Developer Guide.
",
"RegisterClusterRequest$clientRequestToken": "Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
",
"RemoteAccessConfig$ec2SshKey": "The Amazon EC2 SSH key name that provides access for SSH communication with the nodes in the managed node group. For more information, see Amazon EC2 key pairs and Linux instances in the Amazon Elastic Compute Cloud User Guide for Linux Instances. For Windows, an Amazon EC2 SSH key is used to obtain the RDP password. For more information, see Amazon EC2 key pairs and Windows instances in the Amazon Elastic Compute Cloud User Guide for Windows Instances.
",
"ResourceInUseException$clusterName": "The Amazon EKS cluster associated with the exception.
",
@@ -1109,16 +1236,19 @@
"ResourceInUseException$message": null,
"ResourceLimitExceededException$clusterName": "The Amazon EKS cluster associated with the exception.
",
"ResourceLimitExceededException$nodegroupName": "The Amazon EKS managed node group associated with the exception.
",
+ "ResourceLimitExceededException$subscriptionId": "The Amazon EKS subscription ID with the exception.
",
"ResourceLimitExceededException$message": null,
"ResourceNotFoundException$clusterName": "The Amazon EKS cluster associated with the exception.
",
"ResourceNotFoundException$nodegroupName": "The Amazon EKS managed node group associated with the exception.
",
"ResourceNotFoundException$fargateProfileName": "The Fargate profile associated with the exception.
",
"ResourceNotFoundException$addonName": null,
+ "ResourceNotFoundException$subscriptionId": "The Amazon EKS subscription ID with the exception.
",
"ResourceNotFoundException$message": null,
"ResourcePropagationDelayException$message": null,
"ServerException$clusterName": "The Amazon EKS cluster associated with the exception.
",
"ServerException$nodegroupName": "The Amazon EKS managed node group associated with the exception.
",
"ServerException$addonName": null,
+ "ServerException$subscriptionId": "The Amazon EKS subscription ID with the exception.
",
"ServerException$message": null,
"ServiceUnavailableException$message": null,
"StringList$member": null,
@@ -1137,6 +1267,8 @@
"UpdateClusterVersionRequest$name": "The name of the Amazon EKS cluster to update.
",
"UpdateClusterVersionRequest$version": "The desired Kubernetes version following a successful update.
",
"UpdateClusterVersionRequest$clientRequestToken": "Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
",
+ "UpdateEksAnywhereSubscriptionRequest$id": "",
+ "UpdateEksAnywhereSubscriptionRequest$clientRequestToken": "Unique, case-sensitive identifier to ensure the idempotency of the request.
",
"UpdateNodegroupConfigRequest$clusterName": "The name of the Amazon EKS cluster that the managed node group resides in.
",
"UpdateNodegroupConfigRequest$nodegroupName": "The name of the managed node group to update.
",
"UpdateNodegroupConfigRequest$clientRequestToken": "Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
",
@@ -1164,11 +1296,12 @@
"DescribeAddonVersionsRequest$types": "The type of the add-on. For valid types
, don't specify a value for this property.
",
"DescribeAddonVersionsRequest$publishers": "The publisher of the add-on. For valid publishers
, don't specify a value for this property.
",
"DescribeAddonVersionsRequest$owners": "The owner of the add-on. For valid owners
, don't specify a value for this property.
",
+ "EksAnywhereSubscription$licenseArns": "License Manager License ARNs associated with the subscription.
",
"EncryptionConfig$resources": "Specifies the resources to be encrypted. The only supported value is \"secrets\".
",
"ErrorDetail$resourceIds": "An optional field that contains the resource IDs associated with the error.
",
"FargateProfile$subnets": "The IDs of subnets to launch pods into.
",
"Issue$resourceIds": "The Amazon Web Services resources that are afflicted by this issue.
",
- "ListAddonsResponse$addons": "A list of available add-ons.
",
+ "ListAddonsResponse$addons": "A list of installed add-ons.
",
"ListClustersResponse$clusters": "A list of all of the clusters for your account in the specified Region.
",
"ListFargateProfilesResponse$fargateProfileNames": "A list of all of the Fargate profiles associated with the specified cluster.
",
"ListNodegroupsResponse$nodegroups": "A list of all of the node groups associated with the specified cluster.
",
@@ -1209,8 +1342,10 @@
"Cluster$tags": "The metadata that you apply to the cluster to assist with categorization and organization. Each tag consists of a key and an optional value. You define both. Cluster tags do not propagate to any other resources associated with the cluster.
",
"CreateAddonRequest$tags": "The metadata to apply to the cluster to assist with categorization and organization. Each tag consists of a key and an optional value. You define both.
",
"CreateClusterRequest$tags": "The metadata to apply to the cluster to assist with categorization and organization. Each tag consists of a key and an optional value. You define both.
",
+ "CreateEksAnywhereSubscriptionRequest$tags": "The metadata for a subscription to assist with categorization and organization. Each tag consists of a key and an optional value. Subscription tags do not propagate to any other resources associated with the subscription.
",
"CreateFargateProfileRequest$tags": "The metadata to apply to the Fargate profile to assist with categorization and organization. Each tag consists of a key and an optional value. You define both. Fargate profile tags do not propagate to any other resources associated with the Fargate profile, such as the pods that are scheduled with it.
",
"CreateNodegroupRequest$tags": "The metadata to apply to the node group to assist with categorization and organization. Each tag consists of a key and an optional value. You define both. Node group tags do not propagate to any other resources associated with the node group, such as the Amazon EC2 instances or subnets.
",
+ "EksAnywhereSubscription$tags": "The metadata for a subscription to assist with categorization and organization. Each tag consists of a key and an optional value. Subscription tags do not propagate to any other resources associated with the subscription.
",
"FargateProfile$tags": "The metadata applied to the Fargate profile to assist with categorization and organization. Each tag consists of a key and an optional value. You define both. Fargate profile tags do not propagate to any other resources associated with the Fargate profile, such as the pods that are scheduled with it.
",
"ListTagsForResourceResponse$tags": "The tags for the resource.
",
"Nodegroup$tags": "The metadata applied to the node group to assist with categorization and organization. Each tag consists of a key and an optional value. You define both. Node group tags do not propagate to any other resources associated with the node group, such as the Amazon EC2 instances or subnets.
",
@@ -1254,6 +1389,9 @@
"Addon$modifiedAt": "The date and time that the add-on was last modified.
",
"Cluster$createdAt": "The Unix epoch timestamp in seconds for when the cluster was created.
",
"ConnectorConfigResponse$activationExpiry": "The expiration time of the connected cluster. The cluster's YAML file must be applied through the native provider.
",
+ "EksAnywhereSubscription$createdAt": "The Unix timestamp in seconds for when the subscription was created.
",
+ "EksAnywhereSubscription$effectiveDate": "The Unix timestamp in seconds for when the subscription is effective.
",
+ "EksAnywhereSubscription$expirationDate": "The Unix timestamp in seconds for when the subscription will expire or auto renew, depending on the auto renew configuration of the subscription object.
",
"FargateProfile$createdAt": "The Unix epoch timestamp in seconds for when the Fargate profile was created.
",
"Nodegroup$createdAt": "The Unix epoch timestamp in seconds for when the managed node group was created.
",
"Nodegroup$modifiedAt": "The Unix epoch timestamp in seconds for when the managed node group was last modified.
",
@@ -1319,6 +1457,16 @@
"refs": {
}
},
+ "UpdateEksAnywhereSubscriptionRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "UpdateEksAnywhereSubscriptionResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
"UpdateLabelsPayload": {
"base": "An object representing a Kubernetes label change for a managed node group.
",
"refs": {
diff --git a/models/apis/lambda/2015-03-31/api-2.json b/models/apis/lambda/2015-03-31/api-2.json
index 81475f4618b..1b017becdad 100644
--- a/models/apis/lambda/2015-03-31/api-2.json
+++ b/models/apis/lambda/2015-03-31/api-2.json
@@ -3865,7 +3865,8 @@
"java17",
"ruby3.2",
"python3.11",
- "nodejs20.x"
+ "nodejs20.x",
+ "provided.al2023"
]
},
"RuntimeVersionArn":{
diff --git a/models/apis/logs/2014-03-28/api-2.json b/models/apis/logs/2014-03-28/api-2.json
index 4cb7597a4bb..efb057f957e 100644
--- a/models/apis/logs/2014-03-28/api-2.json
+++ b/models/apis/logs/2014-03-28/api-2.json
@@ -40,6 +40,24 @@
{"shape":"ServiceUnavailableException"}
]
},
+ "CreateDelivery":{
+ "name":"CreateDelivery",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"CreateDeliveryRequest"},
+ "output":{"shape":"CreateDeliveryResponse"},
+ "errors":[
+ {"shape":"ServiceUnavailableException"},
+ {"shape":"ConflictException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ServiceQuotaExceededException"},
+ {"shape":"ThrottlingException"}
+ ]
+ },
"CreateExportTask":{
"name":"CreateExportTask",
"http":{
@@ -114,6 +132,68 @@
{"shape":"ServiceUnavailableException"}
]
},
+ "DeleteDelivery":{
+ "name":"DeleteDelivery",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"DeleteDeliveryRequest"},
+ "errors":[
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ServiceUnavailableException"},
+ {"shape":"ConflictException"},
+ {"shape":"ValidationException"},
+ {"shape":"ServiceQuotaExceededException"},
+ {"shape":"ThrottlingException"}
+ ]
+ },
+ "DeleteDeliveryDestination":{
+ "name":"DeleteDeliveryDestination",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"DeleteDeliveryDestinationRequest"},
+ "errors":[
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ServiceUnavailableException"},
+ {"shape":"ConflictException"},
+ {"shape":"ValidationException"},
+ {"shape":"ServiceQuotaExceededException"},
+ {"shape":"ThrottlingException"}
+ ]
+ },
+ "DeleteDeliveryDestinationPolicy":{
+ "name":"DeleteDeliveryDestinationPolicy",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"DeleteDeliveryDestinationPolicyRequest"},
+ "errors":[
+ {"shape":"ServiceUnavailableException"},
+ {"shape":"ValidationException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ConflictException"}
+ ]
+ },
+ "DeleteDeliverySource":{
+ "name":"DeleteDeliverySource",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"DeleteDeliverySourceRequest"},
+ "errors":[
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ServiceUnavailableException"},
+ {"shape":"ConflictException"},
+ {"shape":"ValidationException"},
+ {"shape":"ServiceQuotaExceededException"},
+ {"shape":"ThrottlingException"}
+ ]
+ },
"DeleteDestination":{
"name":"DeleteDestination",
"http":{
@@ -240,6 +320,51 @@
{"shape":"ServiceUnavailableException"}
]
},
+ "DescribeDeliveries":{
+ "name":"DescribeDeliveries",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"DescribeDeliveriesRequest"},
+ "output":{"shape":"DescribeDeliveriesResponse"},
+ "errors":[
+ {"shape":"ServiceUnavailableException"},
+ {"shape":"ServiceQuotaExceededException"},
+ {"shape":"ValidationException"},
+ {"shape":"ThrottlingException"}
+ ]
+ },
+ "DescribeDeliveryDestinations":{
+ "name":"DescribeDeliveryDestinations",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"DescribeDeliveryDestinationsRequest"},
+ "output":{"shape":"DescribeDeliveryDestinationsResponse"},
+ "errors":[
+ {"shape":"ServiceUnavailableException"},
+ {"shape":"ServiceQuotaExceededException"},
+ {"shape":"ValidationException"},
+ {"shape":"ThrottlingException"}
+ ]
+ },
+ "DescribeDeliverySources":{
+ "name":"DescribeDeliverySources",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"DescribeDeliverySourcesRequest"},
+ "output":{"shape":"DescribeDeliverySourcesResponse"},
+ "errors":[
+ {"shape":"ServiceUnavailableException"},
+ {"shape":"ServiceQuotaExceededException"},
+ {"shape":"ValidationException"},
+ {"shape":"ThrottlingException"}
+ ]
+ },
"DescribeDestinations":{
"name":"DescribeDestinations",
"http":{
@@ -404,6 +529,68 @@
{"shape":"ServiceUnavailableException"}
]
},
+ "GetDelivery":{
+ "name":"GetDelivery",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"GetDeliveryRequest"},
+ "output":{"shape":"GetDeliveryResponse"},
+ "errors":[
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ServiceUnavailableException"},
+ {"shape":"ValidationException"},
+ {"shape":"ServiceQuotaExceededException"},
+ {"shape":"ThrottlingException"}
+ ]
+ },
+ "GetDeliveryDestination":{
+ "name":"GetDeliveryDestination",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"GetDeliveryDestinationRequest"},
+ "output":{"shape":"GetDeliveryDestinationResponse"},
+ "errors":[
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ServiceUnavailableException"},
+ {"shape":"ValidationException"},
+ {"shape":"ServiceQuotaExceededException"},
+ {"shape":"ThrottlingException"}
+ ]
+ },
+ "GetDeliveryDestinationPolicy":{
+ "name":"GetDeliveryDestinationPolicy",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"GetDeliveryDestinationPolicyRequest"},
+ "output":{"shape":"GetDeliveryDestinationPolicyResponse"},
+ "errors":[
+ {"shape":"ServiceUnavailableException"},
+ {"shape":"ValidationException"},
+ {"shape":"ResourceNotFoundException"}
+ ]
+ },
+ "GetDeliverySource":{
+ "name":"GetDeliverySource",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"GetDeliverySourceRequest"},
+ "output":{"shape":"GetDeliverySourceResponse"},
+ "errors":[
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ServiceUnavailableException"},
+ {"shape":"ValidationException"},
+ {"shape":"ServiceQuotaExceededException"},
+ {"shape":"ThrottlingException"}
+ ]
+ },
"GetLogEvents":{
"name":"GetLogEvents",
"http":{
@@ -522,6 +709,55 @@
{"shape":"ServiceUnavailableException"}
]
},
+ "PutDeliveryDestination":{
+ "name":"PutDeliveryDestination",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"PutDeliveryDestinationRequest"},
+ "output":{"shape":"PutDeliveryDestinationResponse"},
+ "errors":[
+ {"shape":"ServiceUnavailableException"},
+ {"shape":"ConflictException"},
+ {"shape":"ValidationException"},
+ {"shape":"ServiceQuotaExceededException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ResourceNotFoundException"}
+ ]
+ },
+ "PutDeliveryDestinationPolicy":{
+ "name":"PutDeliveryDestinationPolicy",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"PutDeliveryDestinationPolicyRequest"},
+ "output":{"shape":"PutDeliveryDestinationPolicyResponse"},
+ "errors":[
+ {"shape":"ServiceUnavailableException"},
+ {"shape":"ValidationException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ConflictException"}
+ ]
+ },
+ "PutDeliverySource":{
+ "name":"PutDeliverySource",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"PutDeliverySourceRequest"},
+ "output":{"shape":"PutDeliverySourceResponse"},
+ "errors":[
+ {"shape":"ServiceUnavailableException"},
+ {"shape":"ConflictException"},
+ {"shape":"ValidationException"},
+ {"shape":"ServiceQuotaExceededException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ThrottlingException"}
+ ]
+ },
"PutDestination":{
"name":"PutDestination",
"http":{
@@ -738,6 +974,12 @@
}
},
"shapes":{
+ "AccessDeniedException":{
+ "type":"structure",
+ "members":{
+ },
+ "exception":true
+ },
"AccessPolicy":{
"type":"string",
"min":1
@@ -799,6 +1041,30 @@
"min":36,
"pattern":"\\S{36,128}"
},
+ "ConflictException":{
+ "type":"structure",
+ "members":{
+ },
+ "exception":true
+ },
+ "CreateDeliveryRequest":{
+ "type":"structure",
+ "required":[
+ "deliverySourceName",
+ "deliveryDestinationArn"
+ ],
+ "members":{
+ "deliverySourceName":{"shape":"DeliverySourceName"},
+ "deliveryDestinationArn":{"shape":"Arn"},
+ "tags":{"shape":"Tags"}
+ }
+ },
+ "CreateDeliveryResponse":{
+ "type":"structure",
+ "members":{
+ "delivery":{"shape":"Delivery"}
+ }
+ },
"CreateExportTaskRequest":{
"type":"structure",
"required":[
@@ -880,6 +1146,34 @@
"logGroupIdentifier":{"shape":"LogGroupIdentifier"}
}
},
+ "DeleteDeliveryDestinationPolicyRequest":{
+ "type":"structure",
+ "required":["deliveryDestinationName"],
+ "members":{
+ "deliveryDestinationName":{"shape":"DeliveryDestinationName"}
+ }
+ },
+ "DeleteDeliveryDestinationRequest":{
+ "type":"structure",
+ "required":["name"],
+ "members":{
+ "name":{"shape":"DeliveryDestinationName"}
+ }
+ },
+ "DeleteDeliveryRequest":{
+ "type":"structure",
+ "required":["id"],
+ "members":{
+ "id":{"shape":"DeliveryId"}
+ }
+ },
+ "DeleteDeliverySourceRequest":{
+ "type":"structure",
+ "required":["name"],
+ "members":{
+ "name":{"shape":"DeliverySourceName"}
+ }
+ },
"DeleteDestinationRequest":{
"type":"structure",
"required":["destinationName"],
@@ -953,6 +1247,89 @@
"filterName":{"shape":"FilterName"}
}
},
+ "Deliveries":{
+ "type":"list",
+ "member":{"shape":"Delivery"}
+ },
+ "Delivery":{
+ "type":"structure",
+ "members":{
+ "id":{"shape":"DeliveryId"},
+ "arn":{"shape":"Arn"},
+ "deliverySourceName":{"shape":"DeliverySourceName"},
+ "deliveryDestinationArn":{"shape":"Arn"},
+ "deliveryDestinationType":{"shape":"DeliveryDestinationType"},
+ "tags":{"shape":"Tags"}
+ }
+ },
+ "DeliveryDestination":{
+ "type":"structure",
+ "members":{
+ "name":{"shape":"DeliveryDestinationName"},
+ "arn":{"shape":"Arn"},
+ "deliveryDestinationType":{"shape":"DeliveryDestinationType"},
+ "outputFormat":{"shape":"OutputFormat"},
+ "deliveryDestinationConfiguration":{"shape":"DeliveryDestinationConfiguration"},
+ "tags":{"shape":"Tags"}
+ }
+ },
+ "DeliveryDestinationConfiguration":{
+ "type":"structure",
+ "required":["destinationResourceArn"],
+ "members":{
+ "destinationResourceArn":{"shape":"Arn"}
+ }
+ },
+ "DeliveryDestinationName":{
+ "type":"string",
+ "max":60,
+ "min":1,
+ "pattern":"[\\w-]*"
+ },
+ "DeliveryDestinationPolicy":{
+ "type":"string",
+ "max":51200,
+ "min":1
+ },
+ "DeliveryDestinationType":{
+ "type":"string",
+ "enum":[
+ "S3",
+ "CWL",
+ "FH"
+ ]
+ },
+ "DeliveryDestinations":{
+ "type":"list",
+ "member":{"shape":"DeliveryDestination"}
+ },
+ "DeliveryId":{
+ "type":"string",
+ "max":64,
+ "min":1,
+ "pattern":"^[0-9A-Za-z]+$"
+ },
+ "DeliverySource":{
+ "type":"structure",
+ "members":{
+ "name":{"shape":"DeliverySourceName"},
+ "arn":{"shape":"Arn"},
+ "resourceArns":{"shape":"ResourceArns"},
+ "service":{"shape":"Service"},
+ "logType":{"shape":"LogType"},
+ "tags":{"shape":"Tags"}
+ }
+ },
+ "DeliverySourceName":{
+ "type":"string",
+ "max":60,
+ "min":1,
+ "pattern":"[\\w-]*"
+ },
+ "DeliverySources":{
+ "type":"list",
+ "member":{"shape":"DeliverySource"}
+ },
"Descending":{"type":"boolean"},
"DescribeAccountPoliciesRequest":{
"type":"structure",
@@ -969,6 +1346,48 @@
"accountPolicies":{"shape":"AccountPolicies"}
}
},
+ "DescribeDeliveriesRequest":{
+ "type":"structure",
+ "members":{
+ "nextToken":{"shape":"NextToken"},
+ "limit":{"shape":"DescribeLimit"}
+ }
+ },
+ "DescribeDeliveriesResponse":{
+ "type":"structure",
+ "members":{
+ "deliveries":{"shape":"Deliveries"},
+ "nextToken":{"shape":"NextToken"}
+ }
+ },
+ "DescribeDeliveryDestinationsRequest":{
+ "type":"structure",
+ "members":{
+ "nextToken":{"shape":"NextToken"},
+ "limit":{"shape":"DescribeLimit"}
+ }
+ },
+ "DescribeDeliveryDestinationsResponse":{
+ "type":"structure",
+ "members":{
+ "deliveryDestinations":{"shape":"DeliveryDestinations"},
+ "nextToken":{"shape":"NextToken"}
+ }
+ },
+ "DescribeDeliverySourcesRequest":{
+ "type":"structure",
+ "members":{
+ "nextToken":{"shape":"NextToken"},
+ "limit":{"shape":"DescribeLimit"}
+ }
+ },
+ "DescribeDeliverySourcesResponse":{
+ "type":"structure",
+ "members":{
+ "deliverySources":{"shape":"DeliverySources"},
+ "nextToken":{"shape":"NextToken"}
+ }
+ },
"DescribeDestinationsRequest":{
"type":"structure",
"members":{
@@ -1330,6 +1749,58 @@
"lastUpdatedTime":{"shape":"Timestamp"}
}
},
+ "GetDeliveryDestinationPolicyRequest":{
+ "type":"structure",
+ "required":["deliveryDestinationName"],
+ "members":{
+ "deliveryDestinationName":{"shape":"DeliveryDestinationName"}
+ }
+ },
+ "GetDeliveryDestinationPolicyResponse":{
+ "type":"structure",
+ "members":{
+ "policy":{"shape":"Policy"}
+ }
+ },
+ "GetDeliveryDestinationRequest":{
+ "type":"structure",
+ "required":["name"],
+ "members":{
+ "name":{"shape":"DeliveryDestinationName"}
+ }
+ },
+ "GetDeliveryDestinationResponse":{
+ "type":"structure",
+ "members":{
+ "deliveryDestination":{"shape":"DeliveryDestination"}
+ }
+ },
+ "GetDeliveryRequest":{
+ "type":"structure",
+ "required":["id"],
+ "members":{
+ "id":{"shape":"DeliveryId"}
+ }
+ },
+ "GetDeliveryResponse":{
+ "type":"structure",
+ "members":{
+ "delivery":{"shape":"Delivery"}
+ }
+ },
+ "GetDeliverySourceRequest":{
+ "type":"structure",
+ "required":["name"],
+ "members":{
+ "name":{"shape":"DeliverySourceName"}
+ }
+ },
+ "GetDeliverySourceResponse":{
+ "type":"structure",
+ "members":{
+ "deliverySource":{"shape":"DeliverySource"}
+ }
+ },
"GetLogEventsRequest":{
"type":"structure",
"required":["logStreamName"],
@@ -1579,6 +2050,12 @@
"type":"list",
"member":{"shape":"LogStream"}
},
+ "LogType":{
+ "type":"string",
+ "max":255,
+ "min":1,
+ "pattern":"[\\w]*"
+ },
"MalformedQueryException":{
"type":"structure",
"members":{
@@ -1666,6 +2143,16 @@
"LastEventTime"
]
},
+ "OutputFormat":{
+ "type":"string",
+ "enum":[
+ "json",
+ "plain",
+ "w3c",
+ "raw",
+ "parquet"
+ ]
+ },
"OutputLogEvent":{
"type":"structure",
"members":{
@@ -1683,6 +2170,12 @@
"max":100,
"min":0
},
+ "Policy":{
+ "type":"structure",
+ "members":{
+ "deliveryDestinationPolicy":{"shape":"DeliveryDestinationPolicy"}
+ }
+ },
"PolicyDocument":{
"type":"string",
"max":5120,
@@ -1732,6 +2225,62 @@
"lastUpdatedTime":{"shape":"Timestamp"}
}
},
+ "PutDeliveryDestinationPolicyRequest":{
+ "type":"structure",
+ "required":[
+ "deliveryDestinationName",
+ "deliveryDestinationPolicy"
+ ],
+ "members":{
+ "deliveryDestinationName":{"shape":"DeliveryDestinationName"},
+ "deliveryDestinationPolicy":{"shape":"DeliveryDestinationPolicy"}
+ }
+ },
+ "PutDeliveryDestinationPolicyResponse":{
+ "type":"structure",
+ "members":{
+ "policy":{"shape":"Policy"}
+ }
+ },
+ "PutDeliveryDestinationRequest":{
+ "type":"structure",
+ "required":[
+ "name",
+ "deliveryDestinationConfiguration"
+ ],
+ "members":{
+ "name":{"shape":"DeliveryDestinationName"},
+ "outputFormat":{"shape":"OutputFormat"},
+ "deliveryDestinationConfiguration":{"shape":"DeliveryDestinationConfiguration"},
+ "tags":{"shape":"Tags"}
+ }
+ },
+ "PutDeliveryDestinationResponse":{
+ "type":"structure",
+ "members":{
+ "deliveryDestination":{"shape":"DeliveryDestination"}
+ }
+ },
+ "PutDeliverySourceRequest":{
+ "type":"structure",
+ "required":[
+ "name",
+ "resourceArn",
+ "logType"
+ ],
+ "members":{
+ "name":{"shape":"DeliverySourceName"},
+ "resourceArn":{"shape":"Arn"},
+ "logType":{"shape":"LogType"},
+ "tags":{"shape":"Tags"}
+ }
+ },
+ "PutDeliverySourceResponse":{
+ "type":"structure",
+ "members":{
+ "deliverySource":{"shape":"DeliverySource"}
+ }
+ },
"PutDestinationPolicyRequest":{
"type":"structure",
"required":[
@@ -1970,6 +2519,10 @@
},
"exception":true
},
+ "ResourceArns":{
+ "type":"list",
+ "member":{"shape":"Arn"}
+ },
"ResourceIdentifier":{
"type":"string",
"max":2048,
@@ -2028,6 +2581,18 @@
"type":"string",
"min":1
},
+ "Service":{
+ "type":"string",
+ "max":255,
+ "min":1,
+ "pattern":"[\\w]*"
+ },
+ "ServiceQuotaExceededException":{
+ "type":"structure",
+ "members":{
+ },
+ "exception":true
+ },
"ServiceUnavailableException":{
"type":"structure",
"members":{
@@ -2206,6 +2771,12 @@
"matches":{"shape":"MetricFilterMatches"}
}
},
+ "ThrottlingException":{
+ "type":"structure",
+ "members":{
+ },
+ "exception":true
+ },
"Timestamp":{
"type":"long",
"min":0
@@ -2250,6 +2821,12 @@
"tagKeys":{"shape":"TagKeyList"}
}
},
+ "ValidationException":{
+ "type":"structure",
+ "members":{
+ },
+ "exception":true
+ },
"Value":{"type":"string"}
}
}
diff --git a/models/apis/logs/2014-03-28/docs-2.json b/models/apis/logs/2014-03-28/docs-2.json
index 8ac5728ac69..8943c983a36 100644
--- a/models/apis/logs/2014-03-28/docs-2.json
+++ b/models/apis/logs/2014-03-28/docs-2.json
@@ -4,11 +4,16 @@
"operations": {
"AssociateKmsKey": "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 operations in the account. The response from a GetQueryResults 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.
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.
",
"CancelExportTask": "Cancels the specified export task.
The task must be in the PENDING
or RUNNING
state.
",
+ "CreateDelivery": "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.
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 PutDeliverySource.
-
Create a delivery destination, which is a logical object that represents the actual delivery destination. For more information, see PutDeliveryDestination.
-
If you are delivering logs cross-account, you must use PutDeliveryDestinationPolicy 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.
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.
You can't update an existing delivery. You can only create and delete deliveries.
",
"CreateExportTask": "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.
",
"CreateLogGroup": "Creates a log group with the specified name. You can create up to 1,000,000 log groups per Region per account.
You must use the following guidelines when naming a log group:
-
Log group names must be unique within a Region for an Amazon Web Services account.
-
Log group names can be between 1 and 512 characters long.
-
Log group names consist of the following characters: a-z, A-Z, 0-9, '_' (underscore), '-' (hyphen), '/' (forward slash), '.' (period), and '#' (number sign)
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.
",
"CreateLogStream": "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:
-
Log stream names must be unique within the log group.
-
Log stream names can be between 1 and 512 characters long.
-
Don't use ':' (colon) or '*' (asterisk) characters.
",
"DeleteAccountPolicy": "Deletes a CloudWatch Logs account policy.
To use this operation, you must be signed on with the logs:DeleteDataProtectionPolicy
and logs:DeleteAccountPolicy
permissions.
",
"DeleteDataProtectionPolicy": "Deletes the data protection policy from the specified log group.
For more information about data protection policies, see PutDataProtectionPolicy.
",
+ "DeleteDelivery": "Deletes s delivery. A delivery is a connection between a logical delivery source and a logical delivery destination. Deleting a delivery only deletes the connection between the delivery source and delivery destination. It does not delete the delivery destination or the delivery source.
",
+ "DeleteDeliveryDestination": "Deletes a delivery destination. A delivery is a connection between a logical delivery source and a logical delivery destination.
You can't delete a delivery destination if any current deliveries are associated with it. To find whether any deliveries are associated with this delivery destination, use the DescribeDeliveries operation and check the deliveryDestinationArn
field in the results.
",
+ "DeleteDeliveryDestinationPolicy": "Deletes a delivery destination policy. For more information about these policies, see PutDeliveryDestinationPolicy.
",
+ "DeleteDeliverySource": "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 operation and check the deliverySourceName
field in the results.
",
"DeleteDestination": "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.
",
"DeleteLogGroup": "Deletes the specified log group and permanently deletes all the archived log events associated with the log group.
",
"DeleteLogStream": "Deletes the specified log stream and permanently deletes all the archived log events associated with the log stream.
",
@@ -18,6 +23,9 @@
"DeleteRetentionPolicy": "Deletes the specified retention policy.
Log events do not expire if they belong to log groups without a retention policy.
",
"DeleteSubscriptionFilter": "Deletes the specified subscription filter.
",
"DescribeAccountPolicies": "Returns a list of all CloudWatch Logs account policies in the account.
",
+ "DescribeDeliveries": "Retrieves a list of the deliveries that have been created in the account.
",
+ "DescribeDeliveryDestinations": "Retrieves a list of the delivery destinations that have been created in the account.
",
+ "DescribeDeliverySources": "Retrieves a list of the delivery sources that have been created in the account.
",
"DescribeDestinations": "Lists all your destinations. The results are ASCII-sorted by destination name.
",
"DescribeExportTasks": "Lists the specified export tasks. You can list all your export tasks or filter the results based on task ID or task status.
",
"DescribeLogGroups": "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.
",
@@ -30,14 +38,21 @@
"DisassociateKmsKey": "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 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.
",
"FilterLogEvents": "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.
",
"GetDataProtectionPolicy": "Returns information about a log group data protection policy.
",
+ "GetDelivery": "Returns complete information about one delivery. A delivery is a connection between a logical delivery source and a logical delivery destination
You need to specify the delivery id
in this operation. You can find the IDs of the deliveries in your account with the DescribeDeliveries operation.
",
+ "GetDeliveryDestination": "Retrieves complete information about one delivery destination.
",
+ "GetDeliveryDestinationPolicy": "Retrieves the delivery destination policy assigned to the delivery destination that you specify. For more information about delivery destinations and their policies, see PutDeliveryDestinationPolicy.
",
+ "GetDeliverySource": "Retrieves complete information about one delivery source.
",
"GetLogEvents": "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.
",
"GetLogGroupFields": "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.
",
"GetLogRecord": "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
.
",
- "GetQueryResults": "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.
",
+ "GetQueryResults": "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. For more information about how long results of previous queries are available, see CloudWatch Logs quotas.
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.
",
"ListTagsForResource": "Displays the tags associated with a CloudWatch Logs resource. Currently, log groups and destinations support tagging.
",
"ListTagsLogGroup": " The ListTagsLogGroup operation is on the path to deprecation. We recommend that you use ListTagsForResource instead.
Lists the tags for the specified log group.
",
"PutAccountPolicy": "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.
",
"PutDataProtectionPolicy": "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.
",
+ "PutDeliveryDestination": "Creates or updates a logical delivery destination. A delivery destination is an Amazon Web Services resource that represents an Amazon Web Services service that logs can be sent to. CloudWatch Logs, Amazon S3, and Kinesis Data Firehose are supported as logs delivery destinations.
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 PutDeliverySource.
-
Use PutDeliveryDestination
to create a delivery destination, which is a logical object that represents the actual delivery destination.
-
If you are delivering logs cross-account, you must use PutDeliveryDestinationPolicy 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.
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.
If you use this operation to update an existing delivery destination, all the current delivery destination parameters are overwritten with the new parameter values that you specify.
",
+ "PutDeliveryDestinationPolicy": "Creates and assigns an IAM policy that grants permissions to CloudWatch Logs to deliver logs cross-account to a specified destination in this account. To configure the delivery of logs from an Amazon Web Services service in another account to a logs delivery destination in the current account, 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 PutDeliverySource.
-
Create a delivery destination, which is a logical object that represents the actual delivery destination. For more information, see PutDeliveryDestination.
-
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.
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.
The contents of the policy must include two statements. One statement enables general logs delivery, and the other allows delivery to the chosen destination. See the examples for the needed policies.
",
+ "PutDeliverySource": "Creates or updates a logical delivery source. 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.
To configure logs delivery between a delivery destination and an Amazon Web Services service that is supported as a delivery source, you must do the following:
-
Use PutDeliverySource
to create a delivery source, which is a logical object that represents the resource that is actually sending the logs.
-
Use PutDeliveryDestination
to create a delivery destination, which is a logical object that represents the actual delivery destination. For more information, see PutDeliveryDestination.
-
If you are delivering logs cross-account, you must use PutDeliveryDestinationPolicy 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.
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.
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 you specify.
",
"PutDestination": "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.
",
"PutDestinationPolicy": "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.
",
"PutLogEvents": "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:
-
The maximum batch size is 1,048,576 bytes. This size is calculated as the sum of all event messages in UTF-8, plus 26 bytes for each log event.
-
None of the log events in the batch can be more than 2 hours in the future.
-
None of the log events in the batch can be more than 14 days in the past. Also, none of the log events can be from earlier than the retention period of the log group.
-
The log events in the batch must be in chronological order by their timestamp. The timestamp is the time that the event occurred, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC
. (In Amazon Web Services Tools for PowerShell and the Amazon Web Services SDK for .NET, the timestamp is specified in .NET format: yyyy-mm-ddThh:mm:ss
. For example, 2017-09-15T13:45:30
.)
-
A batch of log events in a single request cannot span more than 24 hours. Otherwise, the operation fails.
-
Each log event can be no larger than 256 KB.
-
The maximum number of log events in a batch is 10,000.
-
The quota of five requests per second per log stream has been removed. Instead, PutLogEvents
actions are throttled based on a per-second per-account quota. You can request an increase to the per-second throttling quota by using the Service Quotas service.
If a call to PutLogEvents
returns \"UnrecognizedClientException\" the most likely cause is a non-valid Amazon Web Services access key ID or secret key.
",
@@ -55,6 +70,11 @@
"UntagResource": "Removes one or more tags from the specified resource.
"
},
"shapes": {
+ "AccessDeniedException": {
+ "base": "You don't have sufficient permissions to perform this action.
",
+ "refs": {
+ }
+ },
"AccessPolicy": {
"base": null,
"refs": {
@@ -108,9 +128,17 @@
"Arn": {
"base": null,
"refs": {
+ "CreateDeliveryRequest$deliveryDestinationArn": "The ARN of the delivery destination to use for this delivery.
",
+ "Delivery$arn": "The Amazon Resource Name (ARN) that uniquely identifies this delivery.
",
+ "Delivery$deliveryDestinationArn": "The ARN of the delivery destination that is associated with this delivery.
",
+ "DeliveryDestination$arn": "The Amazon Resource Name (ARN) that uniquely identifies this delivery destination.
",
+ "DeliveryDestinationConfiguration$destinationResourceArn": "The ARN of the Amazon Web Services destination that this delivery destination represents. That Amazon Web Services destination can be a log group in CloudWatch Logs, an Amazon S3 bucket, or a delivery stream in Kinesis Data Firehose.
",
+ "DeliverySource$arn": "The Amazon Resource Name (ARN) that uniquely identifies this delivery source.
",
"Destination$arn": "The ARN of this destination.
",
"LogGroup$arn": "The Amazon Resource Name (ARN) of the log group.
",
- "LogStream$arn": "The Amazon Resource Name (ARN) of the log stream.
"
+ "LogStream$arn": "The Amazon Resource Name (ARN) of the log stream.
",
+ "PutDeliverySourceRequest$resourceArn": "The ARN of the Amazon Web Services resource that is generating and sending logs. For example, arn:aws:workmail:us-east-1:123456789012:organization/m-1234EXAMPLEabcd1234abcd1234abcd1234
",
+ "ResourceArns$member": null
}
},
"AssociateKmsKeyRequest": {
@@ -129,6 +157,21 @@
"PutQueryDefinitionRequest$clientToken": "Used as an idempotency token, to avoid returning an exception if the service receives the same request twice because of a network error.
"
}
},
+ "ConflictException": {
+ "base": "This operation attempted to create a resource that already exists.
",
+ "refs": {
+ }
+ },
+ "CreateDeliveryRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "CreateDeliveryResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
"CreateExportTaskRequest": {
"base": null,
"refs": {
@@ -191,6 +234,26 @@
"refs": {
}
},
+ "DeleteDeliveryDestinationPolicyRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeleteDeliveryDestinationRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeleteDeliveryRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeleteDeliverySourceRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
"DeleteDestinationRequest": {
"base": null,
"refs": {
@@ -236,6 +299,100 @@
"refs": {
}
},
+ "Deliveries": {
+ "base": null,
+ "refs": {
+ "DescribeDeliveriesResponse$deliveries": "An array of structures. Each structure contains information about one delivery in the account.
"
+ }
+ },
+ "Delivery": {
+ "base": "This structure contains information about one delivery in your account.
A delivery is a connection between a logical delivery source and a logical delivery destination.
For more information, see CreateDelivery.
You can't update an existing delivery. You can only create and delete deliveries.
",
+ "refs": {
+ "CreateDeliveryResponse$delivery": "A structure that contains information about the delivery that you just created.
",
+ "Deliveries$member": null,
+ "GetDeliveryResponse$delivery": "A structure that contains information about the delivery.
"
+ }
+ },
+ "DeliveryDestination": {
+ "base": "This structure contains information about one delivery destination in your account. A delivery destination is an Amazon Web Services resource that represents an shared id=\"AWS\"/> service that logs can be sent to. CloudWatch Logs, Amazon S3, are supported as Kinesis Data Firehose delivery destinations.
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 PutDeliverySource.
-
Create a delivery destination, which is a logical object that represents the actual delivery destination.
-
If you are delivering logs cross-account, you must use PutDeliveryDestinationPolicy 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.
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.
",
+ "refs": {
+ "DeliveryDestinations$member": null,
+ "GetDeliveryDestinationResponse$deliveryDestination": "A structure containing information about the delivery destination.
",
+ "PutDeliveryDestinationResponse$deliveryDestination": "A structure containing information about the delivery destination that you just created or updated.
"
+ }
+ },
+ "DeliveryDestinationConfiguration": {
+ "base": "A structure that contains information about one logs delivery destination.
",
+ "refs": {
+ "DeliveryDestination$deliveryDestinationConfiguration": "A structure that contains the ARN of the Amazon Web Services resource that will receive the logs.
",
+ "PutDeliveryDestinationRequest$deliveryDestinationConfiguration": "A structure that contains the ARN of the Amazon Web Services resource that will receive the logs.
"
+ }
+ },
+ "DeliveryDestinationName": {
+ "base": null,
+ "refs": {
+ "DeleteDeliveryDestinationPolicyRequest$deliveryDestinationName": "The name of the delivery destination that you want to delete the policy for.
",
+ "DeleteDeliveryDestinationRequest$name": "The name of the delivery destination that you want to delete. You can find a list of delivery destionation names by using the DescribeDeliveryDestinations operation.
",
+ "DeliveryDestination$name": "The name of this delivery destination.
",
+ "GetDeliveryDestinationPolicyRequest$deliveryDestinationName": "The name of the delivery destination that you want to retrieve the policy of.
",
+ "GetDeliveryDestinationRequest$name": "The name of the delivery destination that you want to retrieve.
",
+ "PutDeliveryDestinationPolicyRequest$deliveryDestinationName": "The name of the delivery destination to assign this policy to.
",
+ "PutDeliveryDestinationRequest$name": "A name for this delivery destination. This name must be unique for all delivery destinations in your account.
"
+ }
+ },
+ "DeliveryDestinationPolicy": {
+ "base": null,
+ "refs": {
+ "Policy$deliveryDestinationPolicy": "The contents of the delivery destination policy.
",
+ "PutDeliveryDestinationPolicyRequest$deliveryDestinationPolicy": "The contents of the policy.
"
+ }
+ },
+ "DeliveryDestinationType": {
+ "base": null,
+ "refs": {
+ "Delivery$deliveryDestinationType": "Displays whether the delivery destination associated with this delivery is CloudWatch Logs, Amazon S3, or Kinesis Data Firehose.
",
+ "DeliveryDestination$deliveryDestinationType": "Displays whether this delivery destination is CloudWatch Logs, Amazon S3, or Kinesis Data Firehose.
"
+ }
+ },
+ "DeliveryDestinations": {
+ "base": null,
+ "refs": {
+ "DescribeDeliveryDestinationsResponse$deliveryDestinations": "An array of structures. Each structure contains information about one delivery destination in the account.
"
+ }
+ },
+ "DeliveryId": {
+ "base": null,
+ "refs": {
+ "DeleteDeliveryRequest$id": "The unique ID of the delivery to delete. You can find the ID of a delivery with the DescribeDeliveries operation.
",
+ "Delivery$id": "The unique ID that identifies this delivery in your account.
",
+ "GetDeliveryRequest$id": "The ID of the delivery that you want to retrieve.
"
+ }
+ },
+ "DeliverySource": {
+ "base": "This structure contains information about one delivery source in your account. A delivery source is an Amazon Web Services resource that sends logs to an Amazon Web Services 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 as Supported [V2 Permissions] in the table at Enabling logging from Amazon Web Services services.
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 PutDeliverySource.
-
Create a delivery destination, which is a logical object that represents the actual delivery destination. For more information, see PutDeliveryDestination.
-
If you are delivering logs cross-account, you must use PutDeliveryDestinationPolicy 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.
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.
",
+ "refs": {
+ "DeliverySources$member": null,
+ "GetDeliverySourceResponse$deliverySource": "A structure containing information about the delivery source.
",
+ "PutDeliverySourceResponse$deliverySource": "A structure containing information about the delivery source that was just created or updated.
"
+ }
+ },
+ "DeliverySourceName": {
+ "base": null,
+ "refs": {
+ "CreateDeliveryRequest$deliverySourceName": "The name of the delivery source to use for this delivery.
",
+ "DeleteDeliverySourceRequest$name": "The name of the delivery source that you want to delete.
",
+ "Delivery$deliverySourceName": "The name of the delivery source that is associated with this delivery.
",
+ "DeliverySource$name": "The unique name of the delivery source.
",
+ "GetDeliverySourceRequest$name": "The name of the delivery source that you want to retrieve.
",
+ "PutDeliverySourceRequest$name": "A name for this delivery source. This name must be unique for all delivery sources in your account.
"
+ }
+ },
+ "DeliverySources": {
+ "base": null,
+ "refs": {
+ "DescribeDeliverySourcesResponse$deliverySources": "An array of structures. Each structure contains information about one delivery source in the account.
"
+ }
+ },
"Descending": {
"base": null,
"refs": {
@@ -252,6 +409,36 @@
"refs": {
}
},
+ "DescribeDeliveriesRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribeDeliveriesResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribeDeliveryDestinationsRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribeDeliveryDestinationsResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribeDeliverySourcesRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribeDeliverySourcesResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
"DescribeDestinationsRequest": {
"base": null,
"refs": {
@@ -275,6 +462,9 @@
"DescribeLimit": {
"base": null,
"refs": {
+ "DescribeDeliveriesRequest$limit": "Optionally specify the maximum number of deliveries to return in the response.
",
+ "DescribeDeliveryDestinationsRequest$limit": "Optionally specify the maximum number of delivery destinations to return in the response.
",
+ "DescribeDeliverySourcesRequest$limit": "Optionally specify the maximum number of delivery sources to return in the response.
",
"DescribeDestinationsRequest$limit": "The maximum number of items returned. If you don't specify a value, the default maximum value of 50 items is used.
",
"DescribeExportTasksRequest$limit": "The maximum number of items returned. If you don't specify a value, the default is up to 50 items.
",
"DescribeLogGroupsRequest$limit": "The maximum number of items returned. If you don't specify a value, the default is up to 50 items.
",
@@ -605,6 +795,46 @@
"refs": {
}
},
+ "GetDeliveryDestinationPolicyRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "GetDeliveryDestinationPolicyResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "GetDeliveryDestinationRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "GetDeliveryDestinationResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "GetDeliveryRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "GetDeliveryResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "GetDeliverySourceRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "GetDeliverySourceResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
"GetLogEventsRequest": {
"base": null,
"refs": {
@@ -885,6 +1115,13 @@
"DescribeLogStreamsResponse$logStreams": "The log streams.
"
}
},
+ "LogType": {
+ "base": null,
+ "refs": {
+ "DeliverySource$logType": "The type of log that the source is sending. For valid values for this parameter, see the documentation for the source service.
",
+ "PutDeliverySourceRequest$logType": "Defines the type of log that the source is sending. For valid values for this parameter, see the documentation for the source service.
"
+ }
+ },
"MalformedQueryException": {
"base": "The query string is not valid. Details about this error are displayed in a QueryCompileError
object. For more information, see QueryCompileError.
For more information about valid query syntax, see CloudWatch Logs Insights Query Syntax.
",
"refs": {
@@ -957,6 +1194,12 @@
"NextToken": {
"base": "The token for the next set of items to return. The token expires after 24 hours.
",
"refs": {
+ "DescribeDeliveriesRequest$nextToken": null,
+ "DescribeDeliveriesResponse$nextToken": null,
+ "DescribeDeliveryDestinationsRequest$nextToken": null,
+ "DescribeDeliveryDestinationsResponse$nextToken": null,
+ "DescribeDeliverySourcesRequest$nextToken": null,
+ "DescribeDeliverySourcesResponse$nextToken": null,
"DescribeDestinationsRequest$nextToken": "The token for the next set of items to return. (You received this token from a previous call.)
",
"DescribeDestinationsResponse$nextToken": null,
"DescribeExportTasksRequest$nextToken": "The token for the next set of items to return. (You received this token from a previous call.)
",
@@ -993,6 +1236,13 @@
"DescribeLogStreamsRequest$orderBy": "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.
"
}
},
+ "OutputFormat": {
+ "base": null,
+ "refs": {
+ "DeliveryDestination$outputFormat": "The format of the logs that are sent to this delivery destination.
",
+ "PutDeliveryDestinationRequest$outputFormat": "The format for the logs that this delivery destination will receive.
"
+ }
+ },
"OutputLogEvent": {
"base": "Represents a log event.
",
"refs": {
@@ -1011,6 +1261,13 @@
"LogGroupField$percent": "The percentage of log events queried that contained the field.
"
}
},
+ "Policy": {
+ "base": "A structure that contains information about one delivery destination policy.
",
+ "refs": {
+ "GetDeliveryDestinationPolicyResponse$policy": "The IAM policy for this delivery destination.
",
+ "PutDeliveryDestinationPolicyResponse$policy": "The contents of the policy that you just created.
"
+ }
+ },
"PolicyDocument": {
"base": null,
"refs": {
@@ -1059,6 +1316,36 @@
"refs": {
}
},
+ "PutDeliveryDestinationPolicyRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "PutDeliveryDestinationPolicyResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "PutDeliveryDestinationRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "PutDeliveryDestinationResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "PutDeliverySourceRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "PutDeliverySourceResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
"PutDestinationPolicyRequest": {
"base": null,
"refs": {
@@ -1234,6 +1521,12 @@
"refs": {
}
},
+ "ResourceArns": {
+ "base": null,
+ "refs": {
+ "DeliverySource$resourceArns": "This array contains the ARN of the Amazon Web Services resource that sends logs and is represented by this delivery source. Currently, only one ARN can be in the array.
"
+ }
+ },
"ResourceIdentifier": {
"base": null,
"refs": {
@@ -1309,6 +1602,17 @@
"PutLogEventsResponse$nextSequenceToken": "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.
"
}
},
+ "Service": {
+ "base": null,
+ "refs": {
+ "DeliverySource$service": "The Amazon Web Services service that is sending logs.
"
+ }
+ },
+ "ServiceQuotaExceededException": {
+ "base": "This request exceeds a service quota.
",
+ "refs": {
+ }
+ },
"ServiceUnavailableException": {
"base": "The service cannot complete the request.
",
"refs": {
@@ -1419,9 +1723,15 @@
"Tags": {
"base": null,
"refs": {
+ "CreateDeliveryRequest$tags": "An optional list of key-value pairs to associate with the resource.
For more information about tagging, see Tagging Amazon Web Services resources
",
"CreateLogGroupRequest$tags": "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.
",
+ "Delivery$tags": "The tags that have been assigned to this delivery.
",
+ "DeliveryDestination$tags": "The tags that have been assigned to this delivery destination.
",
+ "DeliverySource$tags": "The tags that have been assigned to this delivery source.
",
"ListTagsForResourceResponse$tags": "The list of tags associated with the requested resource.>
",
"ListTagsLogGroupResponse$tags": "The tags for the log group.
",
+ "PutDeliveryDestinationRequest$tags": "An optional list of key-value pairs to associate with the resource.
For more information about tagging, see Tagging Amazon Web Services resources
",
+ "PutDeliverySourceRequest$tags": "An optional list of key-value pairs to associate with the resource.
For more information about tagging, see Tagging Amazon Web Services resources
",
"PutDestinationRequest$tags": "An optional list of key-value pairs to associate with the resource.
For more information about tagging, see Tagging Amazon Web Services resources
",
"TagLogGroupRequest$tags": "The key-value pairs to use for the tags.
",
"TagResourceRequest$tags": "The list of key-value pairs to associate with the resource.
"
@@ -1450,6 +1760,11 @@
"refs": {
}
},
+ "ThrottlingException": {
+ "base": "The request was throttled because of quota limits.
",
+ "refs": {
+ }
+ },
"Timestamp": {
"base": null,
"refs": {
@@ -1521,6 +1836,11 @@
"refs": {
}
},
+ "ValidationException": {
+ "base": "One of the parameters for the request is not valid.
",
+ "refs": {
+ }
+ },
"Value": {
"base": null,
"refs": {
diff --git a/models/apis/logs/2014-03-28/endpoint-rule-set-1.json b/models/apis/logs/2014-03-28/endpoint-rule-set-1.json
index e54c13da834..eecc5059619 100644
--- a/models/apis/logs/2014-03-28/endpoint-rule-set-1.json
+++ b/models/apis/logs/2014-03-28/endpoint-rule-set-1.json
@@ -40,7 +40,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -83,7 +82,8 @@
},
"type": "endpoint"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [
@@ -96,7 +96,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -110,7 +109,6 @@
"assign": "PartitionResult"
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -133,7 +131,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -168,7 +165,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [],
@@ -179,14 +175,16 @@
},
"type": "endpoint"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "FIPS and DualStack are enabled, but this partition does not support one or both",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [
@@ -200,14 +198,12 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
{
"fn": "booleanEquals",
"argv": [
- true,
{
"fn": "getAttr",
"argv": [
@@ -216,11 +212,11 @@
},
"supportsFIPS"
]
- }
+ },
+ true
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -269,14 +265,16 @@
},
"type": "endpoint"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "FIPS is enabled but this partition does not support FIPS",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [
@@ -290,7 +288,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [
@@ -310,7 +307,6 @@
]
}
],
- "type": "tree",
"rules": [
{
"conditions": [],
@@ -321,14 +317,16 @@
},
"type": "endpoint"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
"error": "DualStack is enabled but this partition does not support DualStack",
"type": "error"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
@@ -339,9 +337,11 @@
},
"type": "endpoint"
}
- ]
+ ],
+ "type": "tree"
}
- ]
+ ],
+ "type": "tree"
},
{
"conditions": [],
diff --git a/models/apis/logs/2014-03-28/paginators-1.json b/models/apis/logs/2014-03-28/paginators-1.json
index d702068247c..523ced1c604 100644
--- a/models/apis/logs/2014-03-28/paginators-1.json
+++ b/models/apis/logs/2014-03-28/paginators-1.json
@@ -1,5 +1,23 @@
{
"pagination": {
+ "DescribeDeliveries": {
+ "input_token": "nextToken",
+ "limit_key": "limit",
+ "output_token": "nextToken",
+ "result_key": "deliveries"
+ },
+ "DescribeDeliveryDestinations": {
+ "input_token": "nextToken",
+ "limit_key": "limit",
+ "output_token": "nextToken",
+ "result_key": "deliveryDestinations"
+ },
+ "DescribeDeliverySources": {
+ "input_token": "nextToken",
+ "limit_key": "limit",
+ "output_token": "nextToken",
+ "result_key": "deliverySources"
+ },
"DescribeDestinations": {
"input_token": "nextToken",
"limit_key": "limit",
diff --git a/models/apis/omics/2022-11-28/api-2.json b/models/apis/omics/2022-11-28/api-2.json
index 3ad37179eda..8dd8de3bd40 100644
--- a/models/apis/omics/2022-11-28/api-2.json
+++ b/models/apis/omics/2022-11-28/api-2.json
@@ -3944,7 +3944,6 @@
"sourceFileType",
"subjectId",
"sampleId",
- "referenceArn",
"name"
],
"type": "structure"
@@ -4711,7 +4710,8 @@
"enum": [
"FASTQ",
"BAM",
- "CRAM"
+ "CRAM",
+ "UBAM"
],
"type": "string"
},
@@ -7514,7 +7514,7 @@
"shape": "ReadSetName"
},
"referenceArn": {
- "shape": "ReferenceArn"
+ "shape": "ReferenceArnFilter"
},
"sampleId": {
"shape": "SampleId"
@@ -7731,6 +7731,12 @@
"pattern": "arn:.+",
"type": "string"
},
+ "ReferenceArnFilter": {
+ "max": 127,
+ "min": 0,
+ "pattern": "$|^arn:.+",
+ "type": "string"
+ },
"ReferenceDescription": {
"max": 255,
"min": 1,
@@ -8803,8 +8809,7 @@
"sourceFiles",
"sourceFileType",
"subjectId",
- "sampleId",
- "referenceArn"
+ "sampleId"
],
"type": "structure"
},
diff --git a/models/apis/omics/2022-11-28/docs-2.json b/models/apis/omics/2022-11-28/docs-2.json
index 23d993e245d..4b4eff63543 100644
--- a/models/apis/omics/2022-11-28/docs-2.json
+++ b/models/apis/omics/2022-11-28/docs-2.json
@@ -1934,13 +1934,18 @@
"GetReferenceMetadataResponse$arn": "The reference's ARN.
",
"ImportReadSetSourceItem$referenceArn": "The source's genome reference ARN.
",
"MultipartReadSetUploadListItem$referenceArn": " The source's reference ARN.
",
- "ReadSetFilter$referenceArn": "A genome reference ARN to filter on.
",
"ReadSetListItem$referenceArn": "The read set's genome reference ARN.
",
"ReferenceItem$referenceArn": "The reference's ARN.
",
"ReferenceListItem$arn": "The reference's ARN.
",
"StartReadSetImportJobSourceItem$referenceArn": "The source's reference ARN.
"
}
},
+ "ReferenceArnFilter": {
+ "base": null,
+ "refs": {
+ "ReadSetFilter$referenceArn": "A genome reference ARN to filter on.
"
+ }
+ },
"ReferenceDescription": {
"base": null,
"refs": {
diff --git a/service/cloudformation/api.go b/service/cloudformation/api.go
index 667919cff41..c66348002ae 100644
--- a/service/cloudformation/api.go
+++ b/service/cloudformation/api.go
@@ -2768,7 +2768,7 @@ func (c *CloudFormation) DescribeStacksRequest(input *DescribeStacksInput) (req
// Returns the description for the specified stack; if no stack name was specified,
// then it returns the description for all the stacks created.
//
-// If the stack doesn't exist, an ValidationError is returned.
+// If the stack doesn't exist, a ValidationError is returned.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
@@ -8301,6 +8301,8 @@ type CreateChangeSetInput struct {
// action, and specifying this capability. For more information about macros,
// see Using CloudFormation macros to perform custom processing on templates
// (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html).
+ //
+ // Only one of the Capabilities and ResourceType parameters can be specified.
Capabilities []*string `type:"list" enum:"Capability"`
// The name of the change set. The name must be unique among all change sets
@@ -8383,6 +8385,8 @@ type CreateChangeSetInput struct {
// for condition keys in IAM policies for CloudFormation. For more information,
// see Controlling access with Identity and Access Management (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html)
// in the CloudFormation User Guide.
+ //
+ // Only one of the Capabilities and ResourceType parameters can be specified.
ResourceTypes []*string `type:"list"`
// The resources to import into your stack.
@@ -8714,6 +8718,8 @@ type CreateStackInput struct {
// Be aware that the Lambda function owner can update the function operation
// without CloudFormation being notified. For more information, see Using
// CloudFormation macros to perform custom processing on templates (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html).
+ //
+ // Only one of the Capabilities and ResourceType parameters can be specified.
Capabilities []*string `type:"list" enum:"Capability"`
// A unique identifier for this CreateStack request. Specify this token if you
@@ -8781,6 +8787,8 @@ type CreateStackInput struct {
// all resource types. Identity and Access Management (IAM) uses this parameter
// for CloudFormation-specific condition keys in IAM policies. For more information,
// see Controlling Access with Identity and Access Management (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html).
+ //
+ // Only one of the Capabilities and ResourceType parameters can be specified.
ResourceTypes []*string `type:"list"`
// When set to true, newly created resources are deleted when the operation
@@ -17057,7 +17065,7 @@ type RegisterTypeInput struct {
// when invoking the extension.
//
// For CloudFormation to assume the specified execution role, the role must
- // contain a trust relationship with the CloudFormation service principle (resources.cloudformation.amazonaws.com).
+ // contain a trust relationship with the CloudFormation service principal (resources.cloudformation.amazonaws.com).
// For more information about adding trust relationships, see Modifying a role
// trust policy (https://docs.aws.amazon.com/IAM/latest/UserGuide/roles-managingrole-editing-console.html#roles-managingrole_edit-trust-policy)
// in the Identity and Access Management User Guide.
@@ -20909,6 +20917,20 @@ func (s *StackSetOperation) SetStatusReason(v string) *StackSetOperation {
type StackSetOperationPreferences struct {
_ struct{} `type:"structure"`
+ // Specifies how the concurrency level behaves during the operation execution.
+ //
+ // * STRICT_FAILURE_TOLERANCE: Dynamically lowers the concurrency level to
+ // ensure the number of failed accounts never exceeds the FailureToleranceCount
+ // +1. StackSets will set the actual concurrency of your deployment as the
+ // minimum value between the MaxConcurrentCount and the FailureToleranceCount
+ // +1. This is the default behavior. If failure tolerance or Maximum concurrent
+ // accounts are set to percentages, the behavior is similar.
+ //
+ // * SOFT_FAILURE_TOLERANCE: Always run at the concurrency level set by the
+ // user in the MaxConcurrentCount or MaxConcurrentPercentage, regardless
+ // of the number of failures.
+ ConcurrencyMode *string `type:"string" enum:"ConcurrencyMode"`
+
// The number of accounts, per Region, for which this operation can fail before
// CloudFormation stops the operation in that Region. If the operation is stopped
// in a Region, CloudFormation doesn't attempt the operation in any subsequent
@@ -20935,8 +20957,9 @@ type StackSetOperationPreferences struct {
FailureTolerancePercentage *int64 `type:"integer"`
// The maximum number of accounts in which to perform this operation at one
- // time. This is dependent on the value of FailureToleranceCount.MaxConcurrentCount
- // is at most one more than the FailureToleranceCount.
+ // time. This can depend on the value of FailureToleranceCount depending on
+ // your ConcurrencyMode. MaxConcurrentCount is at most one more than the FailureToleranceCount
+ // if you're using STRICT_FAILURE_TOLERANCE.
//
// Note that this setting lets you specify the maximum for operations. For large
// deployments, under certain circumstances the actual number of accounts acted
@@ -21008,6 +21031,12 @@ func (s *StackSetOperationPreferences) Validate() error {
return nil
}
+// SetConcurrencyMode sets the ConcurrencyMode field's value.
+func (s *StackSetOperationPreferences) SetConcurrencyMode(v string) *StackSetOperationPreferences {
+ s.ConcurrencyMode = &v
+ return s
+}
+
// SetFailureToleranceCount sets the FailureToleranceCount field's value.
func (s *StackSetOperationPreferences) SetFailureToleranceCount(v int64) *StackSetOperationPreferences {
s.FailureToleranceCount = &v
@@ -22624,6 +22653,8 @@ type UpdateStackInput struct {
// Be aware that the Lambda function owner can update the function operation
// without CloudFormation being notified. For more information, see Using
// CloudFormation Macros to Perform Custom Processing on Templates (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html).
+ //
+ // Only one of the Capabilities and ResourceType parameters can be specified.
Capabilities []*string `type:"list" enum:"Capability"`
// A unique identifier for this UpdateStack request. Specify this token if you
@@ -22667,6 +22698,8 @@ type UpdateStackInput struct {
// all resource types. Identity and Access Management (IAM) uses this parameter
// for CloudFormation-specific condition keys in IAM policies. For more information,
// see Controlling Access with Identity and Access Management (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html).
+ //
+ // Only one of the Capabilities and ResourceType parameters can be specified.
ResourceTypes []*string `type:"list"`
// When set to true, newly created resources are deleted when the operation
@@ -24184,6 +24217,22 @@ func ChangeType_Values() []string {
}
}
+const (
+ // ConcurrencyModeStrictFailureTolerance is a ConcurrencyMode enum value
+ ConcurrencyModeStrictFailureTolerance = "STRICT_FAILURE_TOLERANCE"
+
+ // ConcurrencyModeSoftFailureTolerance is a ConcurrencyMode enum value
+ ConcurrencyModeSoftFailureTolerance = "SOFT_FAILURE_TOLERANCE"
+)
+
+// ConcurrencyMode_Values returns all elements of the ConcurrencyMode enum
+func ConcurrencyMode_Values() []string {
+ return []string{
+ ConcurrencyModeStrictFailureTolerance,
+ ConcurrencyModeSoftFailureTolerance,
+ }
+}
+
const (
// DeprecatedStatusLive is a DeprecatedStatus enum value
DeprecatedStatusLive = "LIVE"
diff --git a/service/cloudtrail/api.go b/service/cloudtrail/api.go
index e9bd75cdab9..9e713a52846 100644
--- a/service/cloudtrail/api.go
+++ b/service/cloudtrail/api.go
@@ -79,13 +79,10 @@ func (c *CloudTrail) AddTagsRequest(input *AddTagsInput) (req *request.Request,
// This exception is thrown when the specified resource is not found.
//
// - ARNInvalidException
-// This exception is thrown when an operation is called with a trail ARN that
-// is not valid. The following is the format of a trail ARN.
+// This exception is thrown when an operation is called with an ARN that is
+// not valid.
//
-// arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
-//
-// This exception is also thrown when you call AddTags or RemoveTags on a trail,
-// event data store, or channel with a resource ARN that is not valid.
+// The following is the format of a trail ARN: arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
//
// The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE
//
@@ -1205,13 +1202,10 @@ func (c *CloudTrail) DeleteTrailRequest(input *DeleteTrailInput) (req *request.R
// - Not be in IP address format (for example, 192.168.5.4)
//
// - ARNInvalidException
-// This exception is thrown when an operation is called with a trail ARN that
-// is not valid. The following is the format of a trail ARN.
-//
-// arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
+// This exception is thrown when an operation is called with an ARN that is
+// not valid.
//
-// This exception is also thrown when you call AddTags or RemoveTags on a trail,
-// event data store, or channel with a resource ARN that is not valid.
+// The following is the format of a trail ARN: arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
//
// The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE
//
@@ -1888,13 +1882,10 @@ func (c *CloudTrail) GetEventSelectorsRequest(input *GetEventSelectorsInput) (re
// - Not be in IP address format (for example, 192.168.5.4)
//
// - ARNInvalidException
-// This exception is thrown when an operation is called with a trail ARN that
-// is not valid. The following is the format of a trail ARN.
+// This exception is thrown when an operation is called with an ARN that is
+// not valid.
//
-// arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
-//
-// This exception is also thrown when you call AddTags or RemoveTags on a trail,
-// event data store, or channel with a resource ARN that is not valid.
+// The following is the format of a trail ARN: arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
//
// The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE
//
@@ -2064,12 +2055,17 @@ func (c *CloudTrail) GetInsightSelectorsRequest(input *GetInsightSelectorsInput)
// GetInsightSelectors API operation for AWS CloudTrail.
//
// Describes the settings for the Insights event selectors that you configured
-// for your trail. GetInsightSelectors shows if CloudTrail Insights event logging
-// is enabled on the trail, and if it is, which insight types are enabled. If
-// you run GetInsightSelectors on a trail that does not have Insights events
-// enabled, the operation throws the exception InsightNotEnabledException
+// for your trail or event data store. GetInsightSelectors shows if CloudTrail
+// Insights event logging is enabled on the trail or event data store, and if
+// it is, which Insights types are enabled. If you run GetInsightSelectors on
+// a trail or event data store that does not have Insights events enabled, the
+// operation throws the exception InsightNotEnabledException
+//
+// Specify either the EventDataStore parameter to get Insights event selectors
+// for an event data store, or the TrailName parameter to the get Insights event
+// selectors for a trail. You cannot specify these parameters together.
//
-// For more information, see Logging CloudTrail Insights Events for Trails (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-insights-events-with-cloudtrail.html)
+// For more information, see Logging CloudTrail Insights events (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-insights-events-with-cloudtrail.html)
// in the CloudTrail User Guide.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
@@ -2081,6 +2077,13 @@ func (c *CloudTrail) GetInsightSelectorsRequest(input *GetInsightSelectorsInput)
//
// Returned Error Types:
//
+// - InvalidParameterException
+// The request includes a parameter that is not valid.
+//
+// - InvalidParameterCombinationException
+// This exception is thrown when the combination of parameters provided is not
+// valid.
+//
// - TrailNotFoundException
// This exception is thrown when the trail with the given name is not found.
//
@@ -2101,13 +2104,10 @@ func (c *CloudTrail) GetInsightSelectorsRequest(input *GetInsightSelectorsInput)
// - Not be in IP address format (for example, 192.168.5.4)
//
// - ARNInvalidException
-// This exception is thrown when an operation is called with a trail ARN that
-// is not valid. The following is the format of a trail ARN.
+// This exception is thrown when an operation is called with an ARN that is
+// not valid.
//
-// arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
-//
-// This exception is also thrown when you call AddTags or RemoveTags on a trail,
-// event data store, or channel with a resource ARN that is not valid.
+// The following is the format of a trail ARN: arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
//
// The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE
//
@@ -2120,8 +2120,8 @@ func (c *CloudTrail) GetInsightSelectorsRequest(input *GetInsightSelectorsInput)
// This exception is thrown when the requested operation is not permitted.
//
// - InsightNotEnabledException
-// If you run GetInsightSelectors on a trail that does not have Insights events
-// enabled, the operation throws the exception InsightNotEnabledException.
+// If you run GetInsightSelectors on a trail or event data store that does not
+// have Insights events enabled, the operation throws the exception InsightNotEnabledException.
//
// - NoManagementAccountSLRExistsException
// This exception is thrown when the management account does not have a service-linked
@@ -2476,13 +2476,10 @@ func (c *CloudTrail) GetTrailRequest(input *GetTrailInput) (req *request.Request
// Returned Error Types:
//
// - ARNInvalidException
-// This exception is thrown when an operation is called with a trail ARN that
-// is not valid. The following is the format of a trail ARN.
-//
-// arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
+// This exception is thrown when an operation is called with an ARN that is
+// not valid.
//
-// This exception is also thrown when you call AddTags or RemoveTags on a trail,
-// event data store, or channel with a resource ARN that is not valid.
+// The following is the format of a trail ARN: arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
//
// The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE
//
@@ -2594,13 +2591,10 @@ func (c *CloudTrail) GetTrailStatusRequest(input *GetTrailStatusInput) (req *req
// Returned Error Types:
//
// - ARNInvalidException
-// This exception is thrown when an operation is called with a trail ARN that
-// is not valid. The following is the format of a trail ARN.
-//
-// arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
+// This exception is thrown when an operation is called with an ARN that is
+// not valid.
//
-// This exception is also thrown when you call AddTags or RemoveTags on a trail,
-// event data store, or channel with a resource ARN that is not valid.
+// The following is the format of a trail ARN: arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
//
// The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE
//
@@ -3636,13 +3630,10 @@ func (c *CloudTrail) ListTagsRequest(input *ListTagsInput) (req *request.Request
// This exception is thrown when the specified resource is not found.
//
// - ARNInvalidException
-// This exception is thrown when an operation is called with a trail ARN that
-// is not valid. The following is the format of a trail ARN.
+// This exception is thrown when an operation is called with an ARN that is
+// not valid.
//
-// arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
-//
-// This exception is also thrown when you call AddTags or RemoveTags on a trail,
-// event data store, or channel with a resource ARN that is not valid.
+// The following is the format of a trail ARN: arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
//
// The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE
//
@@ -3958,8 +3949,13 @@ func (c *CloudTrail) LookupEventsRequest(input *LookupEventsInput) (req *request
// Looks up management events (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-concepts.html#cloudtrail-concepts-management-events)
// or CloudTrail Insights events (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-concepts.html#cloudtrail-concepts-insights-events)
// that are captured by CloudTrail. You can look up events that occurred in
-// a Region within the last 90 days. Lookup supports the following attributes
-// for management events:
+// a Region within the last 90 days.
+//
+// LookupEvents returns recent Insights events for trails that enable Insights.
+// To view Insights events for an event data store, you can run queries on your
+// Insights event data store, and you can also view the Lake dashboard for Insights.
+//
+// Lookup supports the following attributes for management events:
//
// - Amazon Web Services access key
//
@@ -4218,13 +4214,10 @@ func (c *CloudTrail) PutEventSelectorsRequest(input *PutEventSelectorsInput) (re
// - Not be in IP address format (for example, 192.168.5.4)
//
// - ARNInvalidException
-// This exception is thrown when an operation is called with a trail ARN that
-// is not valid. The following is the format of a trail ARN.
-//
-// arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
+// This exception is thrown when an operation is called with an ARN that is
+// not valid.
//
-// This exception is also thrown when you call AddTags or RemoveTags on a trail,
-// event data store, or channel with a resource ARN that is not valid.
+// The following is the format of a trail ARN: arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
//
// The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE
//
@@ -4358,15 +4351,31 @@ func (c *CloudTrail) PutInsightSelectorsRequest(input *PutInsightSelectorsInput)
// PutInsightSelectors API operation for AWS CloudTrail.
//
// Lets you enable Insights event logging by specifying the Insights selectors
-// that you want to enable on an existing trail. You also use PutInsightSelectors
-// to turn off Insights event logging, by passing an empty list of insight types.
-// The valid Insights event types in this release are ApiErrorRateInsight and
-// ApiCallRateInsight.
-//
-// To log CloudTrail Insights events on API call volume, the trail must log
-// write management events. To log CloudTrail Insights events on API error rate,
-// the trail must log read or write management events. You can call GetEventSelectors
-// on a trail to check whether the trail logs management events.
+// that you want to enable on an existing trail or event data store. You also
+// use PutInsightSelectors to turn off Insights event logging, by passing an
+// empty list of Insights types. The valid Insights event types are ApiErrorRateInsight
+// and ApiCallRateInsight.
+//
+// To enable Insights on an event data store, you must specify the ARNs (or
+// ID suffix of the ARNs) for the source event data store (EventDataStore) and
+// the destination event data store (InsightsDestination). The source event
+// data store logs management events and enables Insights. The destination event
+// data store logs Insights events based upon the management event activity
+// of the source event data store. The source and destination event data stores
+// must belong to the same Amazon Web Services account.
+//
+// To log Insights events for a trail, you must specify the name (TrailName)
+// of the CloudTrail trail for which you want to change or add Insights selectors.
+//
+// To log CloudTrail Insights events on API call volume, the trail or event
+// data store must log write management events. To log CloudTrail Insights events
+// on API error rate, the trail or event data store must log read or write management
+// events. You can call GetEventSelectors on a trail to check whether the trail
+// logs management events. You can call GetEventDataStore on an event data store
+// to check whether the event data store logs management events.
+//
+// For more information, see Logging CloudTrail Insights events (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-insights-events-with-cloudtrail.html)
+// in the CloudTrail User Guide.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
@@ -4377,6 +4386,13 @@ func (c *CloudTrail) PutInsightSelectorsRequest(input *PutInsightSelectorsInput)
//
// Returned Error Types:
//
+// - InvalidParameterException
+// The request includes a parameter that is not valid.
+//
+// - InvalidParameterCombinationException
+// This exception is thrown when the combination of parameters provided is not
+// valid.
+//
// - TrailNotFoundException
// This exception is thrown when the trail with the given name is not found.
//
@@ -4397,13 +4413,10 @@ func (c *CloudTrail) PutInsightSelectorsRequest(input *PutInsightSelectorsInput)
// - Not be in IP address format (for example, 192.168.5.4)
//
// - ARNInvalidException
-// This exception is thrown when an operation is called with a trail ARN that
-// is not valid. The following is the format of a trail ARN.
-//
-// arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
+// This exception is thrown when an operation is called with an ARN that is
+// not valid.
//
-// This exception is also thrown when you call AddTags or RemoveTags on a trail,
-// event data store, or channel with a resource ARN that is not valid.
+// The following is the format of a trail ARN: arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
//
// The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE
//
@@ -4414,9 +4427,21 @@ func (c *CloudTrail) PutInsightSelectorsRequest(input *PutInsightSelectorsInput)
// other than the Region in which the trail was created.
//
// - InvalidInsightSelectorsException
-// The formatting or syntax of the InsightSelectors JSON statement in your PutInsightSelectors
-// or GetInsightSelectors request is not valid, or the specified insight type
-// in the InsightSelectors statement is not a valid insight type.
+// For PutInsightSelectors, this exception is thrown when the formatting or
+// syntax of the InsightSelectors JSON statement is not valid, or the specified
+// InsightType in the InsightSelectors statement is not valid. Valid values
+// for InsightType are ApiCallRateInsight and ApiErrorRateInsight. To enable
+// Insights on an event data store, the destination event data store specified
+// by the InsightsDestination parameter must log Insights events and the source
+// event data store specified by the EventDataStore parameter must log management
+// events.
+//
+// For UpdateEventDataStore, this exception is thrown if Insights are enabled
+// on the event data store and the updated advanced event selectors are not
+// compatible with the configured InsightSelectors. If the InsightSelectors
+// includes an InsightType of ApiCallRateInsight, the source event data store
+// must log write management events. If the InsightSelectors includes an InsightType
+// of ApiErrorRateInsight, the source event data store must log management events.
//
// - InsufficientS3BucketPolicyException
// This exception is thrown when the policy on the S3 bucket is not sufficient.
@@ -4631,7 +4656,7 @@ func (c *CloudTrail) RegisterOrganizationDelegatedAdminRequest(input *RegisterOr
// RegisterOrganizationDelegatedAdmin API operation for AWS CloudTrail.
//
// Registers an organization’s member account as the CloudTrail delegated
-// administrator.
+// administrator (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-delegated-administrator.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
@@ -4780,13 +4805,10 @@ func (c *CloudTrail) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Req
// This exception is thrown when the specified resource is not found.
//
// - ARNInvalidException
-// This exception is thrown when an operation is called with a trail ARN that
-// is not valid. The following is the format of a trail ARN.
+// This exception is thrown when an operation is called with an ARN that is
+// not valid.
//
-// arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
-//
-// This exception is also thrown when you call AddTags or RemoveTags on a trail,
-// event data store, or channel with a resource ARN that is not valid.
+// The following is the format of a trail ARN: arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
//
// The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE
//
@@ -5324,13 +5346,10 @@ func (c *CloudTrail) StartLoggingRequest(input *StartLoggingInput) (req *request
// Returned Error Types:
//
// - ARNInvalidException
-// This exception is thrown when an operation is called with a trail ARN that
-// is not valid. The following is the format of a trail ARN.
-//
-// arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
+// This exception is thrown when an operation is called with an ARN that is
+// not valid.
//
-// This exception is also thrown when you call AddTags or RemoveTags on a trail,
-// event data store, or channel with a resource ARN that is not valid.
+// The following is the format of a trail ARN: arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
//
// The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE
//
@@ -5835,13 +5854,10 @@ func (c *CloudTrail) StopLoggingRequest(input *StopLoggingInput) (req *request.R
// - Not be in IP address format (for example, 192.168.5.4)
//
// - ARNInvalidException
-// This exception is thrown when an operation is called with a trail ARN that
-// is not valid. The following is the format of a trail ARN.
+// This exception is thrown when an operation is called with an ARN that is
+// not valid.
//
-// arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
-//
-// This exception is also thrown when you call AddTags or RemoveTags on a trail,
-// event data store, or channel with a resource ARN that is not valid.
+// The following is the format of a trail ARN: arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
//
// The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE
//
@@ -6063,8 +6079,9 @@ func (c *CloudTrail) UpdateEventDataStoreRequest(input *UpdateEventDataStoreInpu
// 2557. By default, TerminationProtection is enabled.
//
// For event data stores for CloudTrail events, AdvancedEventSelectors includes
-// or excludes management and data events in your event data store. For more
-// information about AdvancedEventSelectors, see AdvancedEventSelectors (https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_AdvancedEventSelector.html).
+// or excludes management, data, or Insights events in your event data store.
+// For more information about AdvancedEventSelectors, see AdvancedEventSelectors
+// (https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_AdvancedEventSelector.html).
//
// For event data stores for Config configuration items, Audit Manager evidence,
// or non-Amazon Web Services events, AdvancedEventSelectors includes events
@@ -6115,6 +6132,23 @@ func (c *CloudTrail) UpdateEventDataStoreRequest(input *UpdateEventDataStoreInpu
// - Specify a valid value for a parameter. For example, specifying the ReadWriteType
// parameter with a value of read-only is not valid.
//
+// - InvalidInsightSelectorsException
+// For PutInsightSelectors, this exception is thrown when the formatting or
+// syntax of the InsightSelectors JSON statement is not valid, or the specified
+// InsightType in the InsightSelectors statement is not valid. Valid values
+// for InsightType are ApiCallRateInsight and ApiErrorRateInsight. To enable
+// Insights on an event data store, the destination event data store specified
+// by the InsightsDestination parameter must log Insights events and the source
+// event data store specified by the EventDataStore parameter must log management
+// events.
+//
+// For UpdateEventDataStore, this exception is thrown if Insights are enabled
+// on the event data store and the updated advanced event selectors are not
+// compatible with the configured InsightSelectors. If the InsightSelectors
+// includes an InsightType of ApiCallRateInsight, the source event data store
+// must log write management events. If the InsightSelectors includes an InsightType
+// of ApiErrorRateInsight, the source event data store must log management events.
+//
// - EventDataStoreHasOngoingImportException
// This exception is thrown when you try to update or delete an event data store
// that currently has an import in progress.
@@ -6335,13 +6369,10 @@ func (c *CloudTrail) UpdateTrailRequest(input *UpdateTrailInput) (req *request.R
// parameter with a value of read-only is not valid.
//
// - ARNInvalidException
-// This exception is thrown when an operation is called with a trail ARN that
-// is not valid. The following is the format of a trail ARN.
-//
-// arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
+// This exception is thrown when an operation is called with an ARN that is
+// not valid.
//
-// This exception is also thrown when you call AddTags or RemoveTags on a trail,
-// event data store, or channel with a resource ARN that is not valid.
+// The following is the format of a trail ARN: arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
//
// The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE
//
@@ -6456,13 +6487,10 @@ func (c *CloudTrail) UpdateTrailWithContext(ctx aws.Context, input *UpdateTrailI
return out, req.Send()
}
-// This exception is thrown when an operation is called with a trail ARN that
-// is not valid. The following is the format of a trail ARN.
-//
-// arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
+// This exception is thrown when an operation is called with an ARN that is
+// not valid.
//
-// This exception is also thrown when you call AddTags or RemoveTags on a trail,
-// event data store, or channel with a resource ARN that is not valid.
+// The following is the format of a trail ARN: arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
//
// The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE
//
@@ -7076,30 +7104,33 @@ type AdvancedFieldSelector struct {
// events.
//
// * eventSource - For filtering management events only. This can be set
- // only to NotEquals kms.amazonaws.com.
+ // to NotEquals kms.amazonaws.com or NotEquals rdsdata.amazonaws.com.
//
// * eventName - Can use any operator. You can use it to filter in or filter
// out any data event logged to CloudTrail, such as PutBucket or GetSnapshotBlock.
// You can have multiple values for this field, separated by commas.
//
// * eventCategory - This is required and must be set to Equals. For CloudTrail
- // event records, the value must be Management or Data. For Config configuration
- // items, the value must be ConfigurationItem. For Audit Manager evidence,
- // the value must be Evidence. For non-Amazon Web Services events, the value
- // must be ActivityAuditLog.
+ // event records, the value must be Management or Data. For CloudTrail Insights
+ // event records, the value must be Insight. For Config configuration items,
+ // the value must be ConfigurationItem. For Audit Manager evidence, the value
+ // must be Evidence. For non-Amazon Web Services events, the value must be
+ // ActivityAuditLog.
//
// * resources.type - This field is required for CloudTrail data events.
// resources.type can only use the Equals operator, and the value can be
// one of the following: AWS::DynamoDB::Table AWS::Lambda::Function AWS::S3::Object
- // AWS::CloudTrail::Channel AWS::CodeWhisperer::Profile AWS::Cognito::IdentityPool
- // AWS::DynamoDB::Stream AWS::EC2::Snapshot AWS::EMRWAL::Workspace AWS::FinSpace::Environment
- // AWS::Glue::Table AWS::GuardDuty::Detector AWS::KendraRanking::ExecutionPlan
- // AWS::ManagedBlockchain::Network AWS::ManagedBlockchain::Node AWS::MedicalImaging::Datastore
+ // AWS::CloudTrail::Channel AWS::CodeWhisperer::Customization AWS::CodeWhisperer::Profile
+ // AWS::Cognito::IdentityPool AWS::DynamoDB::Stream AWS::EC2::Snapshot AWS::EMRWAL::Workspace
+ // AWS::FinSpace::Environment AWS::Glue::Table AWS::GuardDuty::Detector AWS::KendraRanking::ExecutionPlan
+ // AWS::KinesisVideo::Stream AWS::ManagedBlockchain::Network AWS::ManagedBlockchain::Node
+ // AWS::MedicalImaging::Datastore AWS::PCAConnectorAD::Connector AWS::SageMaker::Endpoint
// AWS::SageMaker::ExperimentTrialComponent AWS::SageMaker::FeatureGroup
- // AWS::S3::AccessPoint AWS::S3ObjectLambda::AccessPoint AWS::S3Outposts::Object
- // AWS::SSMMessages::ControlChannel AWS::VerifiedPermissions::PolicyStore
- // You can have only one resources.type field per selector. To log data
- // events on more than one resource type, add another selector.
+ // AWS::SNS::PlatformEndpoint AWS::SNS::Topic AWS::S3::AccessPoint AWS::S3ObjectLambda::AccessPoint
+ // AWS::S3Outposts::Object AWS::SSMMessages::ControlChannel AWS::Timestream::Database
+ // AWS::Timestream::Table AWS::VerifiedPermissions::PolicyStore You can have
+ // only one resources.type field per selector. To log data events on more
+ // than one resource type, add another selector.
//
// * resources.ARN - You can use any operator with resources.ARN, but if
// you use Equals or NotEquals, the value must exactly match the ARN of a
@@ -7118,6 +7149,9 @@ type AdvancedFieldSelector struct {
// When resources.type equals AWS::CloudTrail::Channel, and the operator
// is set to Equals or NotEquals, the ARN must be in the following format:
// arn::cloudtrail:::channel/
+ // When resources.type equals AWS::CodeWhisperer::Customization, and the
+ // operator is set to Equals or NotEquals, the ARN must be in the following
+ // format: arn::codewhisperer:::customization/
// When resources.type equals AWS::CodeWhisperer::Profile, and the operator
// is set to Equals or NotEquals, the ARN must be in the following format:
// arn::codewhisperer:::profile/
@@ -7141,6 +7175,9 @@ type AdvancedFieldSelector struct {
// When resources.type equals AWS::KendraRanking::ExecutionPlan, and the
// operator is set to Equals or NotEquals, the ARN must be in the following
// format: arn::kendra-ranking:::rescore-execution-plan/
+ // When resources.type equals AWS::KinesisVideo::Stream, and the operator
+ // is set to Equals or NotEquals, the ARN must be in the following format:
+ // arn::kinesisvideo:::stream/
// When resources.type equals AWS::ManagedBlockchain::Network, and the operator
// is set to Equals or NotEquals, the ARN must be in the following format:
// arn::managedblockchain:::networks/ When resources.type
@@ -7149,12 +7186,23 @@ type AdvancedFieldSelector struct {
// When resources.type equals AWS::MedicalImaging::Datastore, and the operator
// is set to Equals or NotEquals, the ARN must be in the following format:
// arn::medical-imaging:::datastore/
+ // When resources.type equals AWS::PCAConnectorAD::Connector, and the operator
+ // is set to Equals or NotEquals, the ARN must be in the following format:
+ // arn::pca-connector-ad:::connector/
+ // When resources.type equals AWS::SageMaker::Endpoint, and the operator
+ // is set to Equals or NotEquals, the ARN must be in the following format:
+ // arn::sagemaker:::endpoint/
// When resources.type equals AWS::SageMaker::ExperimentTrialComponent, and
// the operator is set to Equals or NotEquals, the ARN must be in the following
// format: arn::sagemaker:::experiment-trial-component/
// When resources.type equals AWS::SageMaker::FeatureGroup, and the operator
// is set to Equals or NotEquals, the ARN must be in the following format:
// arn::sagemaker:::feature-group/
+ // When resources.type equals AWS::SNS::PlatformEndpoint, and the operator
+ // is set to Equals or NotEquals, the ARN must be in the following format:
+ // arn::sns:::endpoint///
+ // When resources.type equals AWS::SNS::Topic, and the operator is set to
+ // Equals or NotEquals, the ARN must be in the following format: arn::sns:::
// When resources.type equals AWS::S3::AccessPoint, and the operator is set
// to Equals or NotEquals, the ARN must be in one of the following formats.
// To log events on all objects in an S3 access point, we recommend that
@@ -7169,6 +7217,11 @@ type AdvancedFieldSelector struct {
// When resources.type equals AWS::SSMMessages::ControlChannel, and the operator
// is set to Equals or NotEquals, the ARN must be in the following format:
// arn::ssmmessages:::control-channel/
+ // When resources.type equals AWS::Timestream::Database, and the operator
+ // is set to Equals or NotEquals, the ARN must be in the following format:
+ // arn::timestream:::database/
+ // When resources.type equals AWS::Timestream::Table, and the operator is
+ // set to Equals or NotEquals, the ARN must be in the following format: arn::timestream:::database//table/
// When resources.type equals AWS::VerifiedPermissions::PolicyStore, and
// the operator is set to Equals or NotEquals, the ARN must be in the following
// format: arn::verifiedpermissions:::policy-store/
@@ -8565,6 +8618,9 @@ type CreateTrailInput struct {
// delivered. You must use a log group that exists in your account.
//
// Not required unless you specify CloudWatchLogsRoleArn.
+ //
+ // Only the management account can configure a CloudWatch Logs log group for
+ // an organization trail.
CloudWatchLogsLogGroupArn *string `type:"string"`
// Specifies the role for the CloudWatch Logs endpoint to assume to write to
@@ -8998,6 +9054,8 @@ type DataResource struct {
//
// * AWS::CloudTrail::Channel
//
+ // * AWS::CodeWhisperer::Customization
+ //
// * AWS::CodeWhisperer::Profile
//
// * AWS::Cognito::IdentityPool
@@ -9016,16 +9074,26 @@ type DataResource struct {
//
// * AWS::KendraRanking::ExecutionPlan
//
+ // * AWS::KinesisVideo::Stream
+ //
// * AWS::ManagedBlockchain::Network
//
// * AWS::ManagedBlockchain::Node
//
// * AWS::MedicalImaging::Datastore
//
+ // * AWS::PCAConnectorAD::Connector
+ //
+ // * AWS::SageMaker::Endpoint
+ //
// * AWS::SageMaker::ExperimentTrialComponent
//
// * AWS::SageMaker::FeatureGroup
//
+ // * AWS::SNS::PlatformEndpoint
+ //
+ // * AWS::SNS::Topic
+ //
// * AWS::S3::AccessPoint
//
// * AWS::S3ObjectLambda::AccessPoint
@@ -9034,6 +9102,10 @@ type DataResource struct {
//
// * AWS::SSMMessages::ControlChannel
//
+ // * AWS::Timestream::Database
+ //
+ // * AWS::Timestream::Table
+ //
// * AWS::VerifiedPermissions::PolicyStore
Type *string `type:"string"`
@@ -11169,6 +11241,12 @@ func (s *GetImportOutput) SetUpdatedTimestamp(v time.Time) *GetImportOutput {
type GetInsightSelectorsInput struct {
_ struct{} `type:"structure"`
+ // Specifies the ARN (or ID suffix of the ARN) of the event data store for which
+ // you want to get Insights selectors.
+ //
+ // You cannot use this parameter with the TrailName parameter.
+ EventDataStore *string `min:"3" type:"string"`
+
// Specifies the name of the trail or trail ARN. If you specify a trail name,
// the string must meet the following requirements:
//
@@ -11188,8 +11266,8 @@ type GetInsightSelectorsInput struct {
//
// arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
//
- // TrailName is a required field
- TrailName *string `type:"string" required:"true"`
+ // You cannot use this parameter with the EventDataStore parameter.
+ TrailName *string `type:"string"`
}
// String returns the string representation.
@@ -11213,8 +11291,8 @@ func (s GetInsightSelectorsInput) GoString() string {
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetInsightSelectorsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetInsightSelectorsInput"}
- if s.TrailName == nil {
- invalidParams.Add(request.NewErrParamRequired("TrailName"))
+ if s.EventDataStore != nil && len(*s.EventDataStore) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("EventDataStore", 3))
}
if invalidParams.Len() > 0 {
@@ -11223,6 +11301,12 @@ func (s *GetInsightSelectorsInput) Validate() error {
return nil
}
+// SetEventDataStore sets the EventDataStore field's value.
+func (s *GetInsightSelectorsInput) SetEventDataStore(v string) *GetInsightSelectorsInput {
+ s.EventDataStore = &v
+ return s
+}
+
// SetTrailName sets the TrailName field's value.
func (s *GetInsightSelectorsInput) SetTrailName(v string) *GetInsightSelectorsInput {
s.TrailName = &v
@@ -11232,11 +11316,17 @@ func (s *GetInsightSelectorsInput) SetTrailName(v string) *GetInsightSelectorsIn
type GetInsightSelectorsOutput struct {
_ struct{} `type:"structure"`
- // A JSON string that contains the insight types you want to log on a trail.
- // In this release, ApiErrorRateInsight and ApiCallRateInsight are supported
- // as insight types.
+ // The ARN of the source event data store that enabled Insights events.
+ EventDataStoreArn *string `min:"3" type:"string"`
+
+ // A JSON string that contains the Insight types you want to log on a trail
+ // or event data store. ApiErrorRateInsight and ApiCallRateInsight are supported
+ // as Insights types.
InsightSelectors []*InsightSelector `type:"list"`
+ // The ARN of the destination event data store that logs Insights events.
+ InsightsDestination *string `min:"3" type:"string"`
+
// The Amazon Resource Name (ARN) of a trail for which you want to get Insights
// selectors.
TrailARN *string `type:"string"`
@@ -11260,12 +11350,24 @@ func (s GetInsightSelectorsOutput) GoString() string {
return s.String()
}
+// SetEventDataStoreArn sets the EventDataStoreArn field's value.
+func (s *GetInsightSelectorsOutput) SetEventDataStoreArn(v string) *GetInsightSelectorsOutput {
+ s.EventDataStoreArn = &v
+ return s
+}
+
// SetInsightSelectors sets the InsightSelectors field's value.
func (s *GetInsightSelectorsOutput) SetInsightSelectors(v []*InsightSelector) *GetInsightSelectorsOutput {
s.InsightSelectors = v
return s
}
+// SetInsightsDestination sets the InsightsDestination field's value.
+func (s *GetInsightSelectorsOutput) SetInsightsDestination(v string) *GetInsightSelectorsOutput {
+ s.InsightsDestination = &v
+ return s
+}
+
// SetTrailARN sets the TrailARN field's value.
func (s *GetInsightSelectorsOutput) SetTrailARN(v string) *GetInsightSelectorsOutput {
s.TrailARN = &v
@@ -12375,8 +12477,8 @@ func (s *IngestionStatus) SetLatestIngestionSuccessTime(v time.Time) *IngestionS
return s
}
-// If you run GetInsightSelectors on a trail that does not have Insights events
-// enabled, the operation throws the exception InsightNotEnabledException.
+// If you run GetInsightSelectors on a trail or event data store that does not
+// have Insights events enabled, the operation throws the exception InsightNotEnabledException.
type InsightNotEnabledException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
@@ -12441,12 +12543,12 @@ func (s *InsightNotEnabledException) RequestID() string {
}
// A JSON string that contains a list of Insights types that are logged on a
-// trail.
+// trail or event data store.
type InsightSelector struct {
_ struct{} `type:"structure"`
- // The type of Insights events to log on a trail. ApiCallRateInsight and ApiErrorRateInsight
- // are valid Insight types.
+ // The type of Insights events to log on a trail or event data store. ApiCallRateInsight
+ // and ApiErrorRateInsight are valid Insight types.
//
// The ApiCallRateInsight Insights type analyzes write-only management API calls
// that are aggregated per minute against a baseline API call volume.
@@ -13346,9 +13448,21 @@ func (s *InvalidImportSourceException) RequestID() string {
return s.RespMetadata.RequestID
}
-// The formatting or syntax of the InsightSelectors JSON statement in your PutInsightSelectors
-// or GetInsightSelectors request is not valid, or the specified insight type
-// in the InsightSelectors statement is not a valid insight type.
+// For PutInsightSelectors, this exception is thrown when the formatting or
+// syntax of the InsightSelectors JSON statement is not valid, or the specified
+// InsightType in the InsightSelectors statement is not valid. Valid values
+// for InsightType are ApiCallRateInsight and ApiErrorRateInsight. To enable
+// Insights on an event data store, the destination event data store specified
+// by the InsightsDestination parameter must log Insights events and the source
+// event data store specified by the EventDataStore parameter must log management
+// events.
+//
+// For UpdateEventDataStore, this exception is thrown if Insights are enabled
+// on the event data store and the updated advanced event selectors are not
+// compatible with the configured InsightSelectors. If the InsightSelectors
+// includes an InsightType of ApiCallRateInsight, the source event data store
+// must log write management events. If the InsightSelectors includes an InsightType
+// of ApiErrorRateInsight, the source event data store must log management events.
type InvalidInsightSelectorsException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
@@ -16470,8 +16584,17 @@ func (s *PutEventSelectorsOutput) SetTrailARN(v string) *PutEventSelectorsOutput
type PutInsightSelectorsInput struct {
_ struct{} `type:"structure"`
- // A JSON string that contains the insight types you want to log on a trail.
- // ApiCallRateInsight and ApiErrorRateInsight are valid Insight types.
+ // The ARN (or ID suffix of the ARN) of the source event data store for which
+ // you want to change or add Insights selectors. To enable Insights on an event
+ // data store, you must provide both the EventDataStore and InsightsDestination
+ // parameters.
+ //
+ // You cannot use this parameter with the TrailName parameter.
+ EventDataStore *string `min:"3" type:"string"`
+
+ // A JSON string that contains the Insights types you want to log on a trail
+ // or event data store. ApiCallRateInsight and ApiErrorRateInsight are valid
+ // Insight types.
//
// The ApiCallRateInsight Insights type analyzes write-only management API calls
// that are aggregated per minute against a baseline API call volume.
@@ -16482,11 +16605,19 @@ type PutInsightSelectorsInput struct {
// InsightSelectors is a required field
InsightSelectors []*InsightSelector `type:"list" required:"true"`
+ // The ARN (or ID suffix of the ARN) of the destination event data store that
+ // logs Insights events. To enable Insights on an event data store, you must
+ // provide both the EventDataStore and InsightsDestination parameters.
+ //
+ // You cannot use this parameter with the TrailName parameter.
+ InsightsDestination *string `min:"3" type:"string"`
+
// The name of the CloudTrail trail for which you want to change or add Insights
// selectors.
//
- // TrailName is a required field
- TrailName *string `type:"string" required:"true"`
+ // You cannot use this parameter with the EventDataStore and InsightsDestination
+ // parameters.
+ TrailName *string `type:"string"`
}
// String returns the string representation.
@@ -16510,11 +16641,14 @@ func (s PutInsightSelectorsInput) GoString() string {
// Validate inspects the fields of the type to determine if they are valid.
func (s *PutInsightSelectorsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "PutInsightSelectorsInput"}
+ if s.EventDataStore != nil && len(*s.EventDataStore) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("EventDataStore", 3))
+ }
if s.InsightSelectors == nil {
invalidParams.Add(request.NewErrParamRequired("InsightSelectors"))
}
- if s.TrailName == nil {
- invalidParams.Add(request.NewErrParamRequired("TrailName"))
+ if s.InsightsDestination != nil && len(*s.InsightsDestination) < 3 {
+ invalidParams.Add(request.NewErrParamMinLen("InsightsDestination", 3))
}
if invalidParams.Len() > 0 {
@@ -16523,12 +16657,24 @@ func (s *PutInsightSelectorsInput) Validate() error {
return nil
}
+// SetEventDataStore sets the EventDataStore field's value.
+func (s *PutInsightSelectorsInput) SetEventDataStore(v string) *PutInsightSelectorsInput {
+ s.EventDataStore = &v
+ return s
+}
+
// SetInsightSelectors sets the InsightSelectors field's value.
func (s *PutInsightSelectorsInput) SetInsightSelectors(v []*InsightSelector) *PutInsightSelectorsInput {
s.InsightSelectors = v
return s
}
+// SetInsightsDestination sets the InsightsDestination field's value.
+func (s *PutInsightSelectorsInput) SetInsightsDestination(v string) *PutInsightSelectorsInput {
+ s.InsightsDestination = &v
+ return s
+}
+
// SetTrailName sets the TrailName field's value.
func (s *PutInsightSelectorsInput) SetTrailName(v string) *PutInsightSelectorsInput {
s.TrailName = &v
@@ -16538,11 +16684,18 @@ func (s *PutInsightSelectorsInput) SetTrailName(v string) *PutInsightSelectorsIn
type PutInsightSelectorsOutput struct {
_ struct{} `type:"structure"`
+ // The Amazon Resource Name (ARN) of the source event data store for which you
+ // want to change or add Insights selectors.
+ EventDataStoreArn *string `min:"3" type:"string"`
+
// A JSON string that contains the Insights event types that you want to log
- // on a trail. The valid Insights types in this release are ApiErrorRateInsight
+ // on a trail or event data store. The valid Insights types are ApiErrorRateInsight
// and ApiCallRateInsight.
InsightSelectors []*InsightSelector `type:"list"`
+ // The ARN of the destination event data store that logs Insights events.
+ InsightsDestination *string `min:"3" type:"string"`
+
// The Amazon Resource Name (ARN) of a trail for which you want to change or
// add Insights selectors.
TrailARN *string `type:"string"`
@@ -16566,12 +16719,24 @@ func (s PutInsightSelectorsOutput) GoString() string {
return s.String()
}
+// SetEventDataStoreArn sets the EventDataStoreArn field's value.
+func (s *PutInsightSelectorsOutput) SetEventDataStoreArn(v string) *PutInsightSelectorsOutput {
+ s.EventDataStoreArn = &v
+ return s
+}
+
// SetInsightSelectors sets the InsightSelectors field's value.
func (s *PutInsightSelectorsOutput) SetInsightSelectors(v []*InsightSelector) *PutInsightSelectorsOutput {
s.InsightSelectors = v
return s
}
+// SetInsightsDestination sets the InsightsDestination field's value.
+func (s *PutInsightSelectorsOutput) SetInsightsDestination(v string) *PutInsightSelectorsOutput {
+ s.InsightsDestination = &v
+ return s
+}
+
// SetTrailARN sets the TrailARN field's value.
func (s *PutInsightSelectorsOutput) SetTrailARN(v string) *PutInsightSelectorsOutput {
s.TrailARN = &v
@@ -19527,6 +19692,10 @@ type UpdateEventDataStoreInput struct {
// Specifies whether an event data store collects events logged for an organization
// in Organizations.
+ //
+ // Only the management account for the organization can convert an organization
+ // event data store to a non-organization event data store, or convert a non-organization
+ // event data store to an organization event data store.
OrganizationEnabled *bool `type:"boolean"`
// The retention period of the event data store, in days. You can set a retention
@@ -19785,6 +19954,9 @@ type UpdateTrailInput struct {
// You must use a log group that exists in your account.
//
// Not required unless you specify CloudWatchLogsRoleArn.
+ //
+ // Only the management account can configure a CloudWatch Logs log group for
+ // an organization trail.
CloudWatchLogsLogGroupArn *string `type:"string"`
// Specifies the role for the CloudWatch Logs endpoint to assume to write to
@@ -19819,13 +19991,16 @@ type UpdateTrailInput struct {
// Specifies whether the trail is applied to all accounts in an organization
// in Organizations, or only for the current Amazon Web Services account. The
// default is false, and cannot be true unless the call is made on behalf of
- // an Amazon Web Services account that is the management account or delegated
- // administrator account for an organization in Organizations. If the trail
- // is not an organization trail and this is set to true, the trail will be created
- // in all Amazon Web Services accounts that belong to the organization. If the
- // trail is an organization trail and this is set to false, the trail will remain
- // in the current Amazon Web Services account but be deleted from all member
- // accounts in the organization.
+ // an Amazon Web Services account that is the management account for an organization
+ // in Organizations. If the trail is not an organization trail and this is set
+ // to true, the trail will be created in all Amazon Web Services accounts that
+ // belong to the organization. If the trail is an organization trail and this
+ // is set to false, the trail will remain in the current Amazon Web Services
+ // account but be deleted from all member accounts in the organization.
+ //
+ // Only the management account for the organization can convert an organization
+ // trail to a non-organization trail, or convert a non-organization trail to
+ // an organization trail.
IsOrganizationTrail *bool `type:"boolean"`
// Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail.
diff --git a/service/cloudtrail/errors.go b/service/cloudtrail/errors.go
index 73786a6570e..fe3f76cf21d 100644
--- a/service/cloudtrail/errors.go
+++ b/service/cloudtrail/errors.go
@@ -11,13 +11,10 @@ const (
// ErrCodeARNInvalidException for service response error code
// "CloudTrailARNInvalidException".
//
- // This exception is thrown when an operation is called with a trail ARN that
- // is not valid. The following is the format of a trail ARN.
+ // This exception is thrown when an operation is called with an ARN that is
+ // not valid.
//
- // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
- //
- // This exception is also thrown when you call AddTags or RemoveTags on a trail,
- // event data store, or channel with a resource ARN that is not valid.
+ // The following is the format of a trail ARN: arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
//
// The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE
//
@@ -192,8 +189,8 @@ const (
// ErrCodeInsightNotEnabledException for service response error code
// "InsightNotEnabledException".
//
- // If you run GetInsightSelectors on a trail that does not have Insights events
- // enabled, the operation throws the exception InsightNotEnabledException.
+ // If you run GetInsightSelectors on a trail or event data store that does not
+ // have Insights events enabled, the operation throws the exception InsightNotEnabledException.
ErrCodeInsightNotEnabledException = "InsightNotEnabledException"
// ErrCodeInsufficientDependencyServiceAccessPermissionException for service response error code
@@ -311,9 +308,21 @@ const (
// ErrCodeInvalidInsightSelectorsException for service response error code
// "InvalidInsightSelectorsException".
//
- // The formatting or syntax of the InsightSelectors JSON statement in your PutInsightSelectors
- // or GetInsightSelectors request is not valid, or the specified insight type
- // in the InsightSelectors statement is not a valid insight type.
+ // For PutInsightSelectors, this exception is thrown when the formatting or
+ // syntax of the InsightSelectors JSON statement is not valid, or the specified
+ // InsightType in the InsightSelectors statement is not valid. Valid values
+ // for InsightType are ApiCallRateInsight and ApiErrorRateInsight. To enable
+ // Insights on an event data store, the destination event data store specified
+ // by the InsightsDestination parameter must log Insights events and the source
+ // event data store specified by the EventDataStore parameter must log management
+ // events.
+ //
+ // For UpdateEventDataStore, this exception is thrown if Insights are enabled
+ // on the event data store and the updated advanced event selectors are not
+ // compatible with the configured InsightSelectors. If the InsightSelectors
+ // includes an InsightType of ApiCallRateInsight, the source event data store
+ // must log write management events. If the InsightSelectors includes an InsightType
+ // of ApiErrorRateInsight, the source event data store must log management events.
ErrCodeInvalidInsightSelectorsException = "InvalidInsightSelectorsException"
// ErrCodeInvalidKmsKeyIdException for service response error code
diff --git a/service/cloudwatchlogs/api.go b/service/cloudwatchlogs/api.go
index 2571d012832..3016b7fd3b7 100644
--- a/service/cloudwatchlogs/api.go
+++ b/service/cloudwatchlogs/api.go
@@ -235,6 +235,138 @@ func (c *CloudWatchLogs) CancelExportTaskWithContext(ctx aws.Context, input *Can
return out, req.Send()
}
+const opCreateDelivery = "CreateDelivery"
+
+// CreateDeliveryRequest generates a "aws/request.Request" representing the
+// client's request for the CreateDelivery operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See CreateDelivery for more information on using the CreateDelivery
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the CreateDeliveryRequest method.
+// req, resp := client.CreateDeliveryRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateDelivery
+func (c *CloudWatchLogs) CreateDeliveryRequest(input *CreateDeliveryInput) (req *request.Request, output *CreateDeliveryOutput) {
+ op := &request.Operation{
+ Name: opCreateDelivery,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &CreateDeliveryInput{}
+ }
+
+ output = &CreateDeliveryOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// CreateDelivery API operation for Amazon CloudWatch Logs.
+//
+// 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#AWS-vended-logs-permissions)
+//
+// 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 PutDeliverySource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliverySource.html).
+//
+// - Create a delivery destination, which is a logical object that represents
+// the actual delivery destination. For more information, see PutDeliveryDestination
+// (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestination.html).
+//
+// - If you are delivering logs cross-account, you must use PutDeliveryDestinationPolicy
+// (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestinationolicy.html)
+// 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.
+//
+// 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.
+//
+// You can't update an existing delivery. You can only create and delete deliveries.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon CloudWatch Logs's
+// API operation CreateDelivery for usage and error information.
+//
+// Returned Error Types:
+//
+// - ServiceUnavailableException
+// The service cannot complete the request.
+//
+// - ConflictException
+// This operation attempted to create a resource that already exists.
+//
+// - ResourceNotFoundException
+// The specified resource does not exist.
+//
+// - ValidationException
+// One of the parameters for the request is not valid.
+//
+// - AccessDeniedException
+// You don't have sufficient permissions to perform this action.
+//
+// - ServiceQuotaExceededException
+// This request exceeds a service quota.
+//
+// - ThrottlingException
+// The request was throttled because of quota limits.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateDelivery
+func (c *CloudWatchLogs) CreateDelivery(input *CreateDeliveryInput) (*CreateDeliveryOutput, error) {
+ req, out := c.CreateDeliveryRequest(input)
+ return out, req.Send()
+}
+
+// CreateDeliveryWithContext is the same as CreateDelivery with the addition of
+// the ability to pass a context and additional request options.
+//
+// See CreateDelivery for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CloudWatchLogs) CreateDeliveryWithContext(ctx aws.Context, input *CreateDeliveryInput, opts ...request.Option) (*CreateDeliveryOutput, error) {
+ req, out := c.CreateDeliveryRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opCreateExportTask = "CreateExportTask"
// CreateExportTaskRequest generates a "aws/request.Request" representing the
@@ -760,423 +892,450 @@ func (c *CloudWatchLogs) DeleteDataProtectionPolicyWithContext(ctx aws.Context,
return out, req.Send()
}
-const opDeleteDestination = "DeleteDestination"
+const opDeleteDelivery = "DeleteDelivery"
-// DeleteDestinationRequest generates a "aws/request.Request" representing the
-// client's request for the DeleteDestination operation. The "output" return
+// DeleteDeliveryRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteDelivery operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See DeleteDestination for more information on using the DeleteDestination
+// See DeleteDelivery for more information on using the DeleteDelivery
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the DeleteDestinationRequest method.
-// req, resp := client.DeleteDestinationRequest(params)
+// // Example sending a request using the DeleteDeliveryRequest method.
+// req, resp := client.DeleteDeliveryRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteDestination
-func (c *CloudWatchLogs) DeleteDestinationRequest(input *DeleteDestinationInput) (req *request.Request, output *DeleteDestinationOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteDelivery
+func (c *CloudWatchLogs) DeleteDeliveryRequest(input *DeleteDeliveryInput) (req *request.Request, output *DeleteDeliveryOutput) {
op := &request.Operation{
- Name: opDeleteDestination,
+ Name: opDeleteDelivery,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &DeleteDestinationInput{}
+ input = &DeleteDeliveryInput{}
}
- output = &DeleteDestinationOutput{}
+ output = &DeleteDeliveryOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
-// DeleteDestination API operation for Amazon CloudWatch Logs.
+// DeleteDelivery API operation for Amazon CloudWatch Logs.
//
-// 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.
+// Deletes s delivery. A delivery is a connection between a logical delivery
+// source and a logical delivery destination. Deleting a delivery only deletes
+// the connection between the delivery source and delivery destination. It does
+// not delete the delivery destination or the delivery source.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation DeleteDestination for usage and error information.
+// API operation DeleteDelivery for usage and error information.
//
// Returned Error Types:
//
-// - InvalidParameterException
-// A parameter is specified incorrectly.
-//
// - ResourceNotFoundException
// The specified resource does not exist.
//
-// - OperationAbortedException
-// Multiple concurrent requests to update the same resource were in conflict.
-//
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteDestination
-func (c *CloudWatchLogs) DeleteDestination(input *DeleteDestinationInput) (*DeleteDestinationOutput, error) {
- req, out := c.DeleteDestinationRequest(input)
+// - ConflictException
+// This operation attempted to create a resource that already exists.
+//
+// - ValidationException
+// One of the parameters for the request is not valid.
+//
+// - ServiceQuotaExceededException
+// This request exceeds a service quota.
+//
+// - ThrottlingException
+// The request was throttled because of quota limits.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteDelivery
+func (c *CloudWatchLogs) DeleteDelivery(input *DeleteDeliveryInput) (*DeleteDeliveryOutput, error) {
+ req, out := c.DeleteDeliveryRequest(input)
return out, req.Send()
}
-// DeleteDestinationWithContext is the same as DeleteDestination with the addition of
+// DeleteDeliveryWithContext is the same as DeleteDelivery with the addition of
// the ability to pass a context and additional request options.
//
-// See DeleteDestination for details on how to use this API operation.
+// See DeleteDelivery for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) DeleteDestinationWithContext(ctx aws.Context, input *DeleteDestinationInput, opts ...request.Option) (*DeleteDestinationOutput, error) {
- req, out := c.DeleteDestinationRequest(input)
+func (c *CloudWatchLogs) DeleteDeliveryWithContext(ctx aws.Context, input *DeleteDeliveryInput, opts ...request.Option) (*DeleteDeliveryOutput, error) {
+ req, out := c.DeleteDeliveryRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opDeleteLogGroup = "DeleteLogGroup"
+const opDeleteDeliveryDestination = "DeleteDeliveryDestination"
-// DeleteLogGroupRequest generates a "aws/request.Request" representing the
-// client's request for the DeleteLogGroup operation. The "output" return
+// DeleteDeliveryDestinationRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteDeliveryDestination operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See DeleteLogGroup for more information on using the DeleteLogGroup
+// See DeleteDeliveryDestination for more information on using the DeleteDeliveryDestination
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the DeleteLogGroupRequest method.
-// req, resp := client.DeleteLogGroupRequest(params)
+// // Example sending a request using the DeleteDeliveryDestinationRequest method.
+// req, resp := client.DeleteDeliveryDestinationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteLogGroup
-func (c *CloudWatchLogs) DeleteLogGroupRequest(input *DeleteLogGroupInput) (req *request.Request, output *DeleteLogGroupOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteDeliveryDestination
+func (c *CloudWatchLogs) DeleteDeliveryDestinationRequest(input *DeleteDeliveryDestinationInput) (req *request.Request, output *DeleteDeliveryDestinationOutput) {
op := &request.Operation{
- Name: opDeleteLogGroup,
+ Name: opDeleteDeliveryDestination,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &DeleteLogGroupInput{}
+ input = &DeleteDeliveryDestinationInput{}
}
- output = &DeleteLogGroupOutput{}
+ output = &DeleteDeliveryDestinationOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
-// DeleteLogGroup API operation for Amazon CloudWatch Logs.
+// DeleteDeliveryDestination API operation for Amazon CloudWatch Logs.
//
-// Deletes the specified log group and permanently deletes all the archived
-// log events associated with the log group.
+// Deletes a delivery destination. A delivery is a connection between a logical
+// delivery source and a logical delivery destination.
+//
+// You can't delete a delivery destination if any current deliveries are associated
+// with it. To find whether any deliveries are associated with this delivery
+// destination, use the DescribeDeliveries (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeDeliveries.html)
+// operation and check the deliveryDestinationArn field in the results.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation DeleteLogGroup for usage and error information.
+// API operation DeleteDeliveryDestination for usage and error information.
//
// Returned Error Types:
//
-// - InvalidParameterException
-// A parameter is specified incorrectly.
-//
// - ResourceNotFoundException
// The specified resource does not exist.
//
-// - OperationAbortedException
-// Multiple concurrent requests to update the same resource were in conflict.
-//
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteLogGroup
-func (c *CloudWatchLogs) DeleteLogGroup(input *DeleteLogGroupInput) (*DeleteLogGroupOutput, error) {
- req, out := c.DeleteLogGroupRequest(input)
+// - ConflictException
+// This operation attempted to create a resource that already exists.
+//
+// - ValidationException
+// One of the parameters for the request is not valid.
+//
+// - ServiceQuotaExceededException
+// This request exceeds a service quota.
+//
+// - ThrottlingException
+// The request was throttled because of quota limits.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteDeliveryDestination
+func (c *CloudWatchLogs) DeleteDeliveryDestination(input *DeleteDeliveryDestinationInput) (*DeleteDeliveryDestinationOutput, error) {
+ req, out := c.DeleteDeliveryDestinationRequest(input)
return out, req.Send()
}
-// DeleteLogGroupWithContext is the same as DeleteLogGroup with the addition of
+// DeleteDeliveryDestinationWithContext is the same as DeleteDeliveryDestination with the addition of
// the ability to pass a context and additional request options.
//
-// See DeleteLogGroup for details on how to use this API operation.
+// See DeleteDeliveryDestination for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) DeleteLogGroupWithContext(ctx aws.Context, input *DeleteLogGroupInput, opts ...request.Option) (*DeleteLogGroupOutput, error) {
- req, out := c.DeleteLogGroupRequest(input)
+func (c *CloudWatchLogs) DeleteDeliveryDestinationWithContext(ctx aws.Context, input *DeleteDeliveryDestinationInput, opts ...request.Option) (*DeleteDeliveryDestinationOutput, error) {
+ req, out := c.DeleteDeliveryDestinationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opDeleteLogStream = "DeleteLogStream"
+const opDeleteDeliveryDestinationPolicy = "DeleteDeliveryDestinationPolicy"
-// DeleteLogStreamRequest generates a "aws/request.Request" representing the
-// client's request for the DeleteLogStream operation. The "output" return
+// DeleteDeliveryDestinationPolicyRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteDeliveryDestinationPolicy operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See DeleteLogStream for more information on using the DeleteLogStream
+// See DeleteDeliveryDestinationPolicy for more information on using the DeleteDeliveryDestinationPolicy
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the DeleteLogStreamRequest method.
-// req, resp := client.DeleteLogStreamRequest(params)
+// // Example sending a request using the DeleteDeliveryDestinationPolicyRequest method.
+// req, resp := client.DeleteDeliveryDestinationPolicyRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteLogStream
-func (c *CloudWatchLogs) DeleteLogStreamRequest(input *DeleteLogStreamInput) (req *request.Request, output *DeleteLogStreamOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteDeliveryDestinationPolicy
+func (c *CloudWatchLogs) DeleteDeliveryDestinationPolicyRequest(input *DeleteDeliveryDestinationPolicyInput) (req *request.Request, output *DeleteDeliveryDestinationPolicyOutput) {
op := &request.Operation{
- Name: opDeleteLogStream,
+ Name: opDeleteDeliveryDestinationPolicy,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &DeleteLogStreamInput{}
+ input = &DeleteDeliveryDestinationPolicyInput{}
}
- output = &DeleteLogStreamOutput{}
+ output = &DeleteDeliveryDestinationPolicyOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
-// DeleteLogStream API operation for Amazon CloudWatch Logs.
+// DeleteDeliveryDestinationPolicy API operation for Amazon CloudWatch Logs.
//
-// Deletes the specified log stream and permanently deletes all the archived
-// log events associated with the log stream.
+// Deletes a delivery destination policy. For more information about these policies,
+// see PutDeliveryDestinationPolicy (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestinationPolicy.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation DeleteLogStream for usage and error information.
+// API operation DeleteDeliveryDestinationPolicy for usage and error information.
//
// Returned Error Types:
//
-// - InvalidParameterException
-// A parameter is specified incorrectly.
+// - ServiceUnavailableException
+// The service cannot complete the request.
+//
+// - ValidationException
+// One of the parameters for the request is not valid.
//
// - ResourceNotFoundException
// The specified resource does not exist.
//
-// - OperationAbortedException
-// Multiple concurrent requests to update the same resource were in conflict.
-//
-// - ServiceUnavailableException
-// The service cannot complete the request.
+// - ConflictException
+// This operation attempted to create a resource that already exists.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteLogStream
-func (c *CloudWatchLogs) DeleteLogStream(input *DeleteLogStreamInput) (*DeleteLogStreamOutput, error) {
- req, out := c.DeleteLogStreamRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteDeliveryDestinationPolicy
+func (c *CloudWatchLogs) DeleteDeliveryDestinationPolicy(input *DeleteDeliveryDestinationPolicyInput) (*DeleteDeliveryDestinationPolicyOutput, error) {
+ req, out := c.DeleteDeliveryDestinationPolicyRequest(input)
return out, req.Send()
}
-// DeleteLogStreamWithContext is the same as DeleteLogStream with the addition of
+// DeleteDeliveryDestinationPolicyWithContext is the same as DeleteDeliveryDestinationPolicy with the addition of
// the ability to pass a context and additional request options.
//
-// See DeleteLogStream for details on how to use this API operation.
+// See DeleteDeliveryDestinationPolicy for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) DeleteLogStreamWithContext(ctx aws.Context, input *DeleteLogStreamInput, opts ...request.Option) (*DeleteLogStreamOutput, error) {
- req, out := c.DeleteLogStreamRequest(input)
+func (c *CloudWatchLogs) DeleteDeliveryDestinationPolicyWithContext(ctx aws.Context, input *DeleteDeliveryDestinationPolicyInput, opts ...request.Option) (*DeleteDeliveryDestinationPolicyOutput, error) {
+ req, out := c.DeleteDeliveryDestinationPolicyRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opDeleteMetricFilter = "DeleteMetricFilter"
+const opDeleteDeliverySource = "DeleteDeliverySource"
-// DeleteMetricFilterRequest generates a "aws/request.Request" representing the
-// client's request for the DeleteMetricFilter operation. The "output" return
+// DeleteDeliverySourceRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteDeliverySource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See DeleteMetricFilter for more information on using the DeleteMetricFilter
+// See DeleteDeliverySource for more information on using the DeleteDeliverySource
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the DeleteMetricFilterRequest method.
-// req, resp := client.DeleteMetricFilterRequest(params)
+// // Example sending a request using the DeleteDeliverySourceRequest method.
+// req, resp := client.DeleteDeliverySourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteMetricFilter
-func (c *CloudWatchLogs) DeleteMetricFilterRequest(input *DeleteMetricFilterInput) (req *request.Request, output *DeleteMetricFilterOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteDeliverySource
+func (c *CloudWatchLogs) DeleteDeliverySourceRequest(input *DeleteDeliverySourceInput) (req *request.Request, output *DeleteDeliverySourceOutput) {
op := &request.Operation{
- Name: opDeleteMetricFilter,
+ Name: opDeleteDeliverySource,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &DeleteMetricFilterInput{}
+ input = &DeleteDeliverySourceInput{}
}
- output = &DeleteMetricFilterOutput{}
+ output = &DeleteDeliverySourceOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
-// DeleteMetricFilter API operation for Amazon CloudWatch Logs.
+// DeleteDeliverySource API operation for Amazon CloudWatch Logs.
//
-// Deletes the specified metric filter.
+// 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.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation DeleteMetricFilter for usage and error information.
+// API operation DeleteDeliverySource for usage and error information.
//
// Returned Error Types:
//
-// - InvalidParameterException
-// A parameter is specified incorrectly.
-//
// - ResourceNotFoundException
// The specified resource does not exist.
//
-// - OperationAbortedException
-// Multiple concurrent requests to update the same resource were in conflict.
-//
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteMetricFilter
-func (c *CloudWatchLogs) DeleteMetricFilter(input *DeleteMetricFilterInput) (*DeleteMetricFilterOutput, error) {
- req, out := c.DeleteMetricFilterRequest(input)
+// - ConflictException
+// This operation attempted to create a resource that already exists.
+//
+// - ValidationException
+// One of the parameters for the request is not valid.
+//
+// - ServiceQuotaExceededException
+// This request exceeds a service quota.
+//
+// - ThrottlingException
+// The request was throttled because of quota limits.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteDeliverySource
+func (c *CloudWatchLogs) DeleteDeliverySource(input *DeleteDeliverySourceInput) (*DeleteDeliverySourceOutput, error) {
+ req, out := c.DeleteDeliverySourceRequest(input)
return out, req.Send()
}
-// DeleteMetricFilterWithContext is the same as DeleteMetricFilter with the addition of
+// DeleteDeliverySourceWithContext is the same as DeleteDeliverySource with the addition of
// the ability to pass a context and additional request options.
//
-// See DeleteMetricFilter for details on how to use this API operation.
+// See DeleteDeliverySource for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) DeleteMetricFilterWithContext(ctx aws.Context, input *DeleteMetricFilterInput, opts ...request.Option) (*DeleteMetricFilterOutput, error) {
- req, out := c.DeleteMetricFilterRequest(input)
+func (c *CloudWatchLogs) DeleteDeliverySourceWithContext(ctx aws.Context, input *DeleteDeliverySourceInput, opts ...request.Option) (*DeleteDeliverySourceOutput, error) {
+ req, out := c.DeleteDeliverySourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opDeleteQueryDefinition = "DeleteQueryDefinition"
+const opDeleteDestination = "DeleteDestination"
-// DeleteQueryDefinitionRequest generates a "aws/request.Request" representing the
-// client's request for the DeleteQueryDefinition operation. The "output" return
+// DeleteDestinationRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteDestination operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See DeleteQueryDefinition for more information on using the DeleteQueryDefinition
+// See DeleteDestination for more information on using the DeleteDestination
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the DeleteQueryDefinitionRequest method.
-// req, resp := client.DeleteQueryDefinitionRequest(params)
+// // Example sending a request using the DeleteDestinationRequest method.
+// req, resp := client.DeleteDestinationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteQueryDefinition
-func (c *CloudWatchLogs) DeleteQueryDefinitionRequest(input *DeleteQueryDefinitionInput) (req *request.Request, output *DeleteQueryDefinitionOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteDestination
+func (c *CloudWatchLogs) DeleteDestinationRequest(input *DeleteDestinationInput) (req *request.Request, output *DeleteDestinationOutput) {
op := &request.Operation{
- Name: opDeleteQueryDefinition,
+ Name: opDeleteDestination,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &DeleteQueryDefinitionInput{}
+ input = &DeleteDestinationInput{}
}
- output = &DeleteQueryDefinitionOutput{}
+ output = &DeleteDestinationOutput{}
req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
-// DeleteQueryDefinition API operation for Amazon CloudWatch Logs.
-//
-// 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.
+// DeleteDestination API operation for Amazon CloudWatch Logs.
//
-// You must have the logs:DeleteQueryDefinition permission to be able to perform
-// this operation.
+// 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.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation DeleteQueryDefinition for usage and error information.
+// API operation DeleteDestination for usage and error information.
//
// Returned Error Types:
//
@@ -1186,84 +1345,87 @@ func (c *CloudWatchLogs) DeleteQueryDefinitionRequest(input *DeleteQueryDefiniti
// - ResourceNotFoundException
// The specified resource does not exist.
//
+// - OperationAbortedException
+// Multiple concurrent requests to update the same resource were in conflict.
+//
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteQueryDefinition
-func (c *CloudWatchLogs) DeleteQueryDefinition(input *DeleteQueryDefinitionInput) (*DeleteQueryDefinitionOutput, error) {
- req, out := c.DeleteQueryDefinitionRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteDestination
+func (c *CloudWatchLogs) DeleteDestination(input *DeleteDestinationInput) (*DeleteDestinationOutput, error) {
+ req, out := c.DeleteDestinationRequest(input)
return out, req.Send()
}
-// DeleteQueryDefinitionWithContext is the same as DeleteQueryDefinition with the addition of
+// DeleteDestinationWithContext is the same as DeleteDestination with the addition of
// the ability to pass a context and additional request options.
//
-// See DeleteQueryDefinition for details on how to use this API operation.
+// See DeleteDestination for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) DeleteQueryDefinitionWithContext(ctx aws.Context, input *DeleteQueryDefinitionInput, opts ...request.Option) (*DeleteQueryDefinitionOutput, error) {
- req, out := c.DeleteQueryDefinitionRequest(input)
+func (c *CloudWatchLogs) DeleteDestinationWithContext(ctx aws.Context, input *DeleteDestinationInput, opts ...request.Option) (*DeleteDestinationOutput, error) {
+ req, out := c.DeleteDestinationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opDeleteResourcePolicy = "DeleteResourcePolicy"
+const opDeleteLogGroup = "DeleteLogGroup"
-// DeleteResourcePolicyRequest generates a "aws/request.Request" representing the
-// client's request for the DeleteResourcePolicy operation. The "output" return
+// DeleteLogGroupRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteLogGroup operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See DeleteResourcePolicy for more information on using the DeleteResourcePolicy
+// See DeleteLogGroup for more information on using the DeleteLogGroup
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the DeleteResourcePolicyRequest method.
-// req, resp := client.DeleteResourcePolicyRequest(params)
+// // Example sending a request using the DeleteLogGroupRequest method.
+// req, resp := client.DeleteLogGroupRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteResourcePolicy
-func (c *CloudWatchLogs) DeleteResourcePolicyRequest(input *DeleteResourcePolicyInput) (req *request.Request, output *DeleteResourcePolicyOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteLogGroup
+func (c *CloudWatchLogs) DeleteLogGroupRequest(input *DeleteLogGroupInput) (req *request.Request, output *DeleteLogGroupOutput) {
op := &request.Operation{
- Name: opDeleteResourcePolicy,
+ Name: opDeleteLogGroup,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &DeleteResourcePolicyInput{}
+ input = &DeleteLogGroupInput{}
}
- output = &DeleteResourcePolicyOutput{}
+ output = &DeleteLogGroupOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
-// DeleteResourcePolicy API operation for Amazon CloudWatch Logs.
+// DeleteLogGroup API operation for Amazon CloudWatch Logs.
//
-// Deletes a resource policy from this account. This revokes the access of the
-// identities in that policy to put log events to this account.
+// Deletes the specified log group and permanently deletes all the archived
+// log events associated with the log group.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation DeleteResourcePolicy for usage and error information.
+// API operation DeleteLogGroup for usage and error information.
//
// Returned Error Types:
//
@@ -1273,86 +1435,87 @@ func (c *CloudWatchLogs) DeleteResourcePolicyRequest(input *DeleteResourcePolicy
// - ResourceNotFoundException
// The specified resource does not exist.
//
+// - OperationAbortedException
+// Multiple concurrent requests to update the same resource were in conflict.
+//
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteResourcePolicy
-func (c *CloudWatchLogs) DeleteResourcePolicy(input *DeleteResourcePolicyInput) (*DeleteResourcePolicyOutput, error) {
- req, out := c.DeleteResourcePolicyRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteLogGroup
+func (c *CloudWatchLogs) DeleteLogGroup(input *DeleteLogGroupInput) (*DeleteLogGroupOutput, error) {
+ req, out := c.DeleteLogGroupRequest(input)
return out, req.Send()
}
-// DeleteResourcePolicyWithContext is the same as DeleteResourcePolicy with the addition of
+// DeleteLogGroupWithContext is the same as DeleteLogGroup with the addition of
// the ability to pass a context and additional request options.
//
-// See DeleteResourcePolicy for details on how to use this API operation.
+// See DeleteLogGroup for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) DeleteResourcePolicyWithContext(ctx aws.Context, input *DeleteResourcePolicyInput, opts ...request.Option) (*DeleteResourcePolicyOutput, error) {
- req, out := c.DeleteResourcePolicyRequest(input)
+func (c *CloudWatchLogs) DeleteLogGroupWithContext(ctx aws.Context, input *DeleteLogGroupInput, opts ...request.Option) (*DeleteLogGroupOutput, error) {
+ req, out := c.DeleteLogGroupRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opDeleteRetentionPolicy = "DeleteRetentionPolicy"
+const opDeleteLogStream = "DeleteLogStream"
-// DeleteRetentionPolicyRequest generates a "aws/request.Request" representing the
-// client's request for the DeleteRetentionPolicy operation. The "output" return
+// DeleteLogStreamRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteLogStream operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See DeleteRetentionPolicy for more information on using the DeleteRetentionPolicy
+// See DeleteLogStream for more information on using the DeleteLogStream
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the DeleteRetentionPolicyRequest method.
-// req, resp := client.DeleteRetentionPolicyRequest(params)
+// // Example sending a request using the DeleteLogStreamRequest method.
+// req, resp := client.DeleteLogStreamRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteRetentionPolicy
-func (c *CloudWatchLogs) DeleteRetentionPolicyRequest(input *DeleteRetentionPolicyInput) (req *request.Request, output *DeleteRetentionPolicyOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteLogStream
+func (c *CloudWatchLogs) DeleteLogStreamRequest(input *DeleteLogStreamInput) (req *request.Request, output *DeleteLogStreamOutput) {
op := &request.Operation{
- Name: opDeleteRetentionPolicy,
+ Name: opDeleteLogStream,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &DeleteRetentionPolicyInput{}
+ input = &DeleteLogStreamInput{}
}
- output = &DeleteRetentionPolicyOutput{}
+ output = &DeleteLogStreamOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
-// DeleteRetentionPolicy API operation for Amazon CloudWatch Logs.
-//
-// Deletes the specified retention policy.
+// DeleteLogStream API operation for Amazon CloudWatch Logs.
//
-// Log events do not expire if they belong to log groups without a retention
-// policy.
+// Deletes the specified log stream and permanently deletes all the archived
+// log events associated with the log stream.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation DeleteRetentionPolicy for usage and error information.
+// API operation DeleteLogStream for usage and error information.
//
// Returned Error Types:
//
@@ -1368,80 +1531,80 @@ func (c *CloudWatchLogs) DeleteRetentionPolicyRequest(input *DeleteRetentionPoli
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteRetentionPolicy
-func (c *CloudWatchLogs) DeleteRetentionPolicy(input *DeleteRetentionPolicyInput) (*DeleteRetentionPolicyOutput, error) {
- req, out := c.DeleteRetentionPolicyRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteLogStream
+func (c *CloudWatchLogs) DeleteLogStream(input *DeleteLogStreamInput) (*DeleteLogStreamOutput, error) {
+ req, out := c.DeleteLogStreamRequest(input)
return out, req.Send()
}
-// DeleteRetentionPolicyWithContext is the same as DeleteRetentionPolicy with the addition of
+// DeleteLogStreamWithContext is the same as DeleteLogStream with the addition of
// the ability to pass a context and additional request options.
//
-// See DeleteRetentionPolicy for details on how to use this API operation.
+// See DeleteLogStream for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) DeleteRetentionPolicyWithContext(ctx aws.Context, input *DeleteRetentionPolicyInput, opts ...request.Option) (*DeleteRetentionPolicyOutput, error) {
- req, out := c.DeleteRetentionPolicyRequest(input)
+func (c *CloudWatchLogs) DeleteLogStreamWithContext(ctx aws.Context, input *DeleteLogStreamInput, opts ...request.Option) (*DeleteLogStreamOutput, error) {
+ req, out := c.DeleteLogStreamRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opDeleteSubscriptionFilter = "DeleteSubscriptionFilter"
+const opDeleteMetricFilter = "DeleteMetricFilter"
-// DeleteSubscriptionFilterRequest generates a "aws/request.Request" representing the
-// client's request for the DeleteSubscriptionFilter operation. The "output" return
+// DeleteMetricFilterRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteMetricFilter operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See DeleteSubscriptionFilter for more information on using the DeleteSubscriptionFilter
+// See DeleteMetricFilter for more information on using the DeleteMetricFilter
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the DeleteSubscriptionFilterRequest method.
-// req, resp := client.DeleteSubscriptionFilterRequest(params)
+// // Example sending a request using the DeleteMetricFilterRequest method.
+// req, resp := client.DeleteMetricFilterRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteSubscriptionFilter
-func (c *CloudWatchLogs) DeleteSubscriptionFilterRequest(input *DeleteSubscriptionFilterInput) (req *request.Request, output *DeleteSubscriptionFilterOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteMetricFilter
+func (c *CloudWatchLogs) DeleteMetricFilterRequest(input *DeleteMetricFilterInput) (req *request.Request, output *DeleteMetricFilterOutput) {
op := &request.Operation{
- Name: opDeleteSubscriptionFilter,
+ Name: opDeleteMetricFilter,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &DeleteSubscriptionFilterInput{}
+ input = &DeleteMetricFilterInput{}
}
- output = &DeleteSubscriptionFilterOutput{}
+ output = &DeleteMetricFilterOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
-// DeleteSubscriptionFilter API operation for Amazon CloudWatch Logs.
+// DeleteMetricFilter API operation for Amazon CloudWatch Logs.
//
-// Deletes the specified subscription filter.
+// Deletes the specified metric filter.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation DeleteSubscriptionFilter for usage and error information.
+// API operation DeleteMetricFilter for usage and error information.
//
// Returned Error Types:
//
@@ -1457,633 +1620,606 @@ func (c *CloudWatchLogs) DeleteSubscriptionFilterRequest(input *DeleteSubscripti
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteSubscriptionFilter
-func (c *CloudWatchLogs) DeleteSubscriptionFilter(input *DeleteSubscriptionFilterInput) (*DeleteSubscriptionFilterOutput, error) {
- req, out := c.DeleteSubscriptionFilterRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteMetricFilter
+func (c *CloudWatchLogs) DeleteMetricFilter(input *DeleteMetricFilterInput) (*DeleteMetricFilterOutput, error) {
+ req, out := c.DeleteMetricFilterRequest(input)
return out, req.Send()
}
-// DeleteSubscriptionFilterWithContext is the same as DeleteSubscriptionFilter with the addition of
+// DeleteMetricFilterWithContext is the same as DeleteMetricFilter with the addition of
// the ability to pass a context and additional request options.
//
-// See DeleteSubscriptionFilter for details on how to use this API operation.
+// See DeleteMetricFilter for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) DeleteSubscriptionFilterWithContext(ctx aws.Context, input *DeleteSubscriptionFilterInput, opts ...request.Option) (*DeleteSubscriptionFilterOutput, error) {
- req, out := c.DeleteSubscriptionFilterRequest(input)
+func (c *CloudWatchLogs) DeleteMetricFilterWithContext(ctx aws.Context, input *DeleteMetricFilterInput, opts ...request.Option) (*DeleteMetricFilterOutput, error) {
+ req, out := c.DeleteMetricFilterRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opDescribeAccountPolicies = "DescribeAccountPolicies"
+const opDeleteQueryDefinition = "DeleteQueryDefinition"
-// DescribeAccountPoliciesRequest generates a "aws/request.Request" representing the
-// client's request for the DescribeAccountPolicies operation. The "output" return
+// DeleteQueryDefinitionRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteQueryDefinition operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See DescribeAccountPolicies for more information on using the DescribeAccountPolicies
+// See DeleteQueryDefinition for more information on using the DeleteQueryDefinition
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the DescribeAccountPoliciesRequest method.
-// req, resp := client.DescribeAccountPoliciesRequest(params)
+// // Example sending a request using the DeleteQueryDefinitionRequest method.
+// req, resp := client.DeleteQueryDefinitionRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeAccountPolicies
-func (c *CloudWatchLogs) DescribeAccountPoliciesRequest(input *DescribeAccountPoliciesInput) (req *request.Request, output *DescribeAccountPoliciesOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteQueryDefinition
+func (c *CloudWatchLogs) DeleteQueryDefinitionRequest(input *DeleteQueryDefinitionInput) (req *request.Request, output *DeleteQueryDefinitionOutput) {
op := &request.Operation{
- Name: opDescribeAccountPolicies,
+ Name: opDeleteQueryDefinition,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &DescribeAccountPoliciesInput{}
+ input = &DeleteQueryDefinitionInput{}
}
- output = &DescribeAccountPoliciesOutput{}
+ output = &DeleteQueryDefinitionOutput{}
req = c.newRequest(op, input, output)
return
}
-// DescribeAccountPolicies API operation for Amazon CloudWatch Logs.
+// DeleteQueryDefinition API operation for Amazon CloudWatch Logs.
//
-// Returns a list of all CloudWatch Logs account policies in the account.
+// 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.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation DescribeAccountPolicies for usage and error information.
+// API operation DeleteQueryDefinition for usage and error information.
//
// Returned Error Types:
//
// - InvalidParameterException
// A parameter is specified incorrectly.
//
-// - OperationAbortedException
-// Multiple concurrent requests to update the same resource were in conflict.
-//
// - ResourceNotFoundException
// The specified resource does not exist.
//
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeAccountPolicies
-func (c *CloudWatchLogs) DescribeAccountPolicies(input *DescribeAccountPoliciesInput) (*DescribeAccountPoliciesOutput, error) {
- req, out := c.DescribeAccountPoliciesRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteQueryDefinition
+func (c *CloudWatchLogs) DeleteQueryDefinition(input *DeleteQueryDefinitionInput) (*DeleteQueryDefinitionOutput, error) {
+ req, out := c.DeleteQueryDefinitionRequest(input)
return out, req.Send()
}
-// DescribeAccountPoliciesWithContext is the same as DescribeAccountPolicies with the addition of
+// DeleteQueryDefinitionWithContext is the same as DeleteQueryDefinition with the addition of
// the ability to pass a context and additional request options.
//
-// See DescribeAccountPolicies for details on how to use this API operation.
+// See DeleteQueryDefinition for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) DescribeAccountPoliciesWithContext(ctx aws.Context, input *DescribeAccountPoliciesInput, opts ...request.Option) (*DescribeAccountPoliciesOutput, error) {
- req, out := c.DescribeAccountPoliciesRequest(input)
+func (c *CloudWatchLogs) DeleteQueryDefinitionWithContext(ctx aws.Context, input *DeleteQueryDefinitionInput, opts ...request.Option) (*DeleteQueryDefinitionOutput, error) {
+ req, out := c.DeleteQueryDefinitionRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opDescribeDestinations = "DescribeDestinations"
+const opDeleteResourcePolicy = "DeleteResourcePolicy"
-// DescribeDestinationsRequest generates a "aws/request.Request" representing the
-// client's request for the DescribeDestinations operation. The "output" return
+// DeleteResourcePolicyRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteResourcePolicy operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See DescribeDestinations for more information on using the DescribeDestinations
+// See DeleteResourcePolicy for more information on using the DeleteResourcePolicy
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the DescribeDestinationsRequest method.
-// req, resp := client.DescribeDestinationsRequest(params)
+// // Example sending a request using the DeleteResourcePolicyRequest method.
+// req, resp := client.DeleteResourcePolicyRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeDestinations
-func (c *CloudWatchLogs) DescribeDestinationsRequest(input *DescribeDestinationsInput) (req *request.Request, output *DescribeDestinationsOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteResourcePolicy
+func (c *CloudWatchLogs) DeleteResourcePolicyRequest(input *DeleteResourcePolicyInput) (req *request.Request, output *DeleteResourcePolicyOutput) {
op := &request.Operation{
- Name: opDescribeDestinations,
+ Name: opDeleteResourcePolicy,
HTTPMethod: "POST",
HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextToken"},
- LimitToken: "limit",
- TruncationToken: "",
- },
}
if input == nil {
- input = &DescribeDestinationsInput{}
+ input = &DeleteResourcePolicyInput{}
}
- output = &DescribeDestinationsOutput{}
+ output = &DeleteResourcePolicyOutput{}
req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
-// DescribeDestinations API operation for Amazon CloudWatch Logs.
+// DeleteResourcePolicy API operation for Amazon CloudWatch Logs.
//
-// Lists all your destinations. The results are ASCII-sorted by destination
-// name.
+// Deletes a resource policy from this account. This revokes the access of the
+// identities in that policy to put log events to this account.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation DescribeDestinations for usage and error information.
+// API operation DeleteResourcePolicy for usage and error information.
//
// Returned Error Types:
//
// - InvalidParameterException
// A parameter is specified incorrectly.
//
+// - ResourceNotFoundException
+// The specified resource does not exist.
+//
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeDestinations
-func (c *CloudWatchLogs) DescribeDestinations(input *DescribeDestinationsInput) (*DescribeDestinationsOutput, error) {
- req, out := c.DescribeDestinationsRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteResourcePolicy
+func (c *CloudWatchLogs) DeleteResourcePolicy(input *DeleteResourcePolicyInput) (*DeleteResourcePolicyOutput, error) {
+ req, out := c.DeleteResourcePolicyRequest(input)
return out, req.Send()
}
-// DescribeDestinationsWithContext is the same as DescribeDestinations with the addition of
+// DeleteResourcePolicyWithContext is the same as DeleteResourcePolicy with the addition of
// the ability to pass a context and additional request options.
//
-// See DescribeDestinations for details on how to use this API operation.
+// See DeleteResourcePolicy for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) DescribeDestinationsWithContext(ctx aws.Context, input *DescribeDestinationsInput, opts ...request.Option) (*DescribeDestinationsOutput, error) {
- req, out := c.DescribeDestinationsRequest(input)
+func (c *CloudWatchLogs) DeleteResourcePolicyWithContext(ctx aws.Context, input *DeleteResourcePolicyInput, opts ...request.Option) (*DeleteResourcePolicyOutput, error) {
+ req, out := c.DeleteResourcePolicyRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-// DescribeDestinationsPages iterates over the pages of a DescribeDestinations operation,
-// calling the "fn" function with the response data for each page. To stop
-// iterating, return false from the fn function.
+const opDeleteRetentionPolicy = "DeleteRetentionPolicy"
+
+// DeleteRetentionPolicyRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteRetentionPolicy operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
//
-// See DescribeDestinations method for more information on how to use this operation.
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
//
-// Note: This operation can generate multiple requests to a service.
-//
-// // Example iterating over at most 3 pages of a DescribeDestinations operation.
-// pageNum := 0
-// err := client.DescribeDestinationsPages(params,
-// func(page *cloudwatchlogs.DescribeDestinationsOutput, lastPage bool) bool {
-// pageNum++
-// fmt.Println(page)
-// return pageNum <= 3
-// })
-func (c *CloudWatchLogs) DescribeDestinationsPages(input *DescribeDestinationsInput, fn func(*DescribeDestinationsOutput, bool) bool) error {
- return c.DescribeDestinationsPagesWithContext(aws.BackgroundContext(), input, fn)
-}
-
-// DescribeDestinationsPagesWithContext same as DescribeDestinationsPages except
-// it takes a Context and allows setting request options on the pages.
-//
-// The context must be non-nil and will be used for request cancellation. If
-// the context is nil a panic will occur. In the future the SDK may create
-// sub-contexts for http.Requests. See https://golang.org/pkg/context/
-// for more information on using Contexts.
-func (c *CloudWatchLogs) DescribeDestinationsPagesWithContext(ctx aws.Context, input *DescribeDestinationsInput, fn func(*DescribeDestinationsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- EndPageOnSameToken: true,
- NewRequest: func() (*request.Request, error) {
- var inCpy *DescribeDestinationsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.DescribeDestinationsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
-
- for p.Next() {
- if !fn(p.Page().(*DescribeDestinationsOutput), !p.HasNextPage()) {
- break
- }
- }
-
- return p.Err()
-}
-
-const opDescribeExportTasks = "DescribeExportTasks"
-
-// DescribeExportTasksRequest generates a "aws/request.Request" representing the
-// client's request for the DescribeExportTasks operation. The "output" return
-// value will be populated with the request's response once the request completes
-// successfully.
-//
-// Use "Send" method on the returned Request to send the API call to the service.
-// the "output" return value is not valid until after Send returns without error.
-//
-// See DescribeExportTasks for more information on using the DescribeExportTasks
+// See DeleteRetentionPolicy for more information on using the DeleteRetentionPolicy
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the DescribeExportTasksRequest method.
-// req, resp := client.DescribeExportTasksRequest(params)
+// // Example sending a request using the DeleteRetentionPolicyRequest method.
+// req, resp := client.DeleteRetentionPolicyRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeExportTasks
-func (c *CloudWatchLogs) DescribeExportTasksRequest(input *DescribeExportTasksInput) (req *request.Request, output *DescribeExportTasksOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteRetentionPolicy
+func (c *CloudWatchLogs) DeleteRetentionPolicyRequest(input *DeleteRetentionPolicyInput) (req *request.Request, output *DeleteRetentionPolicyOutput) {
op := &request.Operation{
- Name: opDescribeExportTasks,
+ Name: opDeleteRetentionPolicy,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &DescribeExportTasksInput{}
+ input = &DeleteRetentionPolicyInput{}
}
- output = &DescribeExportTasksOutput{}
+ output = &DeleteRetentionPolicyOutput{}
req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
-// DescribeExportTasks API operation for Amazon CloudWatch Logs.
+// DeleteRetentionPolicy API operation for Amazon CloudWatch Logs.
//
-// Lists the specified export tasks. You can list all your export tasks or filter
-// the results based on task ID or task status.
+// Deletes the specified retention policy.
+//
+// Log events do not expire if they belong to log groups without a retention
+// policy.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation DescribeExportTasks for usage and error information.
+// API operation DeleteRetentionPolicy for usage and error information.
//
// Returned Error Types:
//
// - InvalidParameterException
// A parameter is specified incorrectly.
//
+// - ResourceNotFoundException
+// The specified resource does not exist.
+//
+// - OperationAbortedException
+// Multiple concurrent requests to update the same resource were in conflict.
+//
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeExportTasks
-func (c *CloudWatchLogs) DescribeExportTasks(input *DescribeExportTasksInput) (*DescribeExportTasksOutput, error) {
- req, out := c.DescribeExportTasksRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteRetentionPolicy
+func (c *CloudWatchLogs) DeleteRetentionPolicy(input *DeleteRetentionPolicyInput) (*DeleteRetentionPolicyOutput, error) {
+ req, out := c.DeleteRetentionPolicyRequest(input)
return out, req.Send()
}
-// DescribeExportTasksWithContext is the same as DescribeExportTasks with the addition of
+// DeleteRetentionPolicyWithContext is the same as DeleteRetentionPolicy with the addition of
// the ability to pass a context and additional request options.
//
-// See DescribeExportTasks for details on how to use this API operation.
+// See DeleteRetentionPolicy for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) DescribeExportTasksWithContext(ctx aws.Context, input *DescribeExportTasksInput, opts ...request.Option) (*DescribeExportTasksOutput, error) {
- req, out := c.DescribeExportTasksRequest(input)
+func (c *CloudWatchLogs) DeleteRetentionPolicyWithContext(ctx aws.Context, input *DeleteRetentionPolicyInput, opts ...request.Option) (*DeleteRetentionPolicyOutput, error) {
+ req, out := c.DeleteRetentionPolicyRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opDescribeLogGroups = "DescribeLogGroups"
+const opDeleteSubscriptionFilter = "DeleteSubscriptionFilter"
-// DescribeLogGroupsRequest generates a "aws/request.Request" representing the
-// client's request for the DescribeLogGroups operation. The "output" return
+// DeleteSubscriptionFilterRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteSubscriptionFilter operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See DescribeLogGroups for more information on using the DescribeLogGroups
+// See DeleteSubscriptionFilter for more information on using the DeleteSubscriptionFilter
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the DescribeLogGroupsRequest method.
-// req, resp := client.DescribeLogGroupsRequest(params)
+// // Example sending a request using the DeleteSubscriptionFilterRequest method.
+// req, resp := client.DeleteSubscriptionFilterRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeLogGroups
-func (c *CloudWatchLogs) DescribeLogGroupsRequest(input *DescribeLogGroupsInput) (req *request.Request, output *DescribeLogGroupsOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteSubscriptionFilter
+func (c *CloudWatchLogs) DeleteSubscriptionFilterRequest(input *DeleteSubscriptionFilterInput) (req *request.Request, output *DeleteSubscriptionFilterOutput) {
op := &request.Operation{
- Name: opDescribeLogGroups,
+ Name: opDeleteSubscriptionFilter,
HTTPMethod: "POST",
HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextToken"},
- LimitToken: "limit",
- TruncationToken: "",
- },
}
if input == nil {
- input = &DescribeLogGroupsInput{}
+ input = &DeleteSubscriptionFilterInput{}
}
- output = &DescribeLogGroupsOutput{}
+ output = &DeleteSubscriptionFilterOutput{}
req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
-// DescribeLogGroups API operation for Amazon CloudWatch Logs.
-//
-// 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 (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html).
+// DeleteSubscriptionFilter API operation for Amazon CloudWatch Logs.
//
-// 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).
+// Deletes the specified subscription filter.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation DescribeLogGroups for usage and error information.
+// API operation DeleteSubscriptionFilter for usage and error information.
//
// Returned Error Types:
//
// - InvalidParameterException
// A parameter is specified incorrectly.
//
+// - ResourceNotFoundException
+// The specified resource does not exist.
+//
+// - OperationAbortedException
+// Multiple concurrent requests to update the same resource were in conflict.
+//
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeLogGroups
-func (c *CloudWatchLogs) DescribeLogGroups(input *DescribeLogGroupsInput) (*DescribeLogGroupsOutput, error) {
- req, out := c.DescribeLogGroupsRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteSubscriptionFilter
+func (c *CloudWatchLogs) DeleteSubscriptionFilter(input *DeleteSubscriptionFilterInput) (*DeleteSubscriptionFilterOutput, error) {
+ req, out := c.DeleteSubscriptionFilterRequest(input)
return out, req.Send()
}
-// DescribeLogGroupsWithContext is the same as DescribeLogGroups with the addition of
+// DeleteSubscriptionFilterWithContext is the same as DeleteSubscriptionFilter with the addition of
// the ability to pass a context and additional request options.
//
-// See DescribeLogGroups for details on how to use this API operation.
+// See DeleteSubscriptionFilter for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) DescribeLogGroupsWithContext(ctx aws.Context, input *DescribeLogGroupsInput, opts ...request.Option) (*DescribeLogGroupsOutput, error) {
- req, out := c.DescribeLogGroupsRequest(input)
+func (c *CloudWatchLogs) DeleteSubscriptionFilterWithContext(ctx aws.Context, input *DeleteSubscriptionFilterInput, opts ...request.Option) (*DeleteSubscriptionFilterOutput, error) {
+ req, out := c.DeleteSubscriptionFilterRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-// DescribeLogGroupsPages iterates over the pages of a DescribeLogGroups operation,
-// calling the "fn" function with the response data for each page. To stop
-// iterating, return false from the fn function.
-//
-// See DescribeLogGroups method for more information on how to use this operation.
-//
-// Note: This operation can generate multiple requests to a service.
-//
-// // Example iterating over at most 3 pages of a DescribeLogGroups operation.
-// pageNum := 0
-// err := client.DescribeLogGroupsPages(params,
-// func(page *cloudwatchlogs.DescribeLogGroupsOutput, lastPage bool) bool {
-// pageNum++
-// fmt.Println(page)
-// return pageNum <= 3
-// })
-func (c *CloudWatchLogs) DescribeLogGroupsPages(input *DescribeLogGroupsInput, fn func(*DescribeLogGroupsOutput, bool) bool) error {
- return c.DescribeLogGroupsPagesWithContext(aws.BackgroundContext(), input, fn)
-}
-
-// DescribeLogGroupsPagesWithContext same as DescribeLogGroupsPages except
-// it takes a Context and allows setting request options on the pages.
-//
-// The context must be non-nil and will be used for request cancellation. If
-// the context is nil a panic will occur. In the future the SDK may create
-// sub-contexts for http.Requests. See https://golang.org/pkg/context/
-// for more information on using Contexts.
-func (c *CloudWatchLogs) DescribeLogGroupsPagesWithContext(ctx aws.Context, input *DescribeLogGroupsInput, fn func(*DescribeLogGroupsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- EndPageOnSameToken: true,
- NewRequest: func() (*request.Request, error) {
- var inCpy *DescribeLogGroupsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.DescribeLogGroupsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
-
- for p.Next() {
- if !fn(p.Page().(*DescribeLogGroupsOutput), !p.HasNextPage()) {
- break
- }
- }
-
- return p.Err()
-}
-
-const opDescribeLogStreams = "DescribeLogStreams"
+const opDescribeAccountPolicies = "DescribeAccountPolicies"
-// DescribeLogStreamsRequest generates a "aws/request.Request" representing the
-// client's request for the DescribeLogStreams operation. The "output" return
+// DescribeAccountPoliciesRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeAccountPolicies operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See DescribeLogStreams for more information on using the DescribeLogStreams
+// See DescribeAccountPolicies for more information on using the DescribeAccountPolicies
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the DescribeLogStreamsRequest method.
-// req, resp := client.DescribeLogStreamsRequest(params)
+// // Example sending a request using the DescribeAccountPoliciesRequest method.
+// req, resp := client.DescribeAccountPoliciesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeLogStreams
-func (c *CloudWatchLogs) DescribeLogStreamsRequest(input *DescribeLogStreamsInput) (req *request.Request, output *DescribeLogStreamsOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeAccountPolicies
+func (c *CloudWatchLogs) DescribeAccountPoliciesRequest(input *DescribeAccountPoliciesInput) (req *request.Request, output *DescribeAccountPoliciesOutput) {
op := &request.Operation{
- Name: opDescribeLogStreams,
+ Name: opDescribeAccountPolicies,
HTTPMethod: "POST",
HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextToken"},
- LimitToken: "limit",
- TruncationToken: "",
- },
}
if input == nil {
- input = &DescribeLogStreamsInput{}
+ input = &DescribeAccountPoliciesInput{}
}
- output = &DescribeLogStreamsOutput{}
+ output = &DescribeAccountPoliciesOutput{}
req = c.newRequest(op, input, output)
return
}
-// DescribeLogStreams API operation for Amazon CloudWatch Logs.
+// DescribeAccountPolicies API operation for Amazon CloudWatch Logs.
//
-// 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 (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html).
+// Returns a list of all CloudWatch Logs account policies in the account.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation DescribeLogStreams for usage and error information.
+// API operation DescribeAccountPolicies for usage and error information.
//
// Returned Error Types:
//
// - InvalidParameterException
// A parameter is specified incorrectly.
//
+// - OperationAbortedException
+// Multiple concurrent requests to update the same resource were in conflict.
+//
// - ResourceNotFoundException
// The specified resource does not exist.
//
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeLogStreams
-func (c *CloudWatchLogs) DescribeLogStreams(input *DescribeLogStreamsInput) (*DescribeLogStreamsOutput, error) {
- req, out := c.DescribeLogStreamsRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeAccountPolicies
+func (c *CloudWatchLogs) DescribeAccountPolicies(input *DescribeAccountPoliciesInput) (*DescribeAccountPoliciesOutput, error) {
+ req, out := c.DescribeAccountPoliciesRequest(input)
return out, req.Send()
}
-// DescribeLogStreamsWithContext is the same as DescribeLogStreams with the addition of
+// DescribeAccountPoliciesWithContext is the same as DescribeAccountPolicies with the addition of
// the ability to pass a context and additional request options.
//
-// See DescribeLogStreams for details on how to use this API operation.
+// See DescribeAccountPolicies for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) DescribeLogStreamsWithContext(ctx aws.Context, input *DescribeLogStreamsInput, opts ...request.Option) (*DescribeLogStreamsOutput, error) {
- req, out := c.DescribeLogStreamsRequest(input)
+func (c *CloudWatchLogs) DescribeAccountPoliciesWithContext(ctx aws.Context, input *DescribeAccountPoliciesInput, opts ...request.Option) (*DescribeAccountPoliciesOutput, error) {
+ req, out := c.DescribeAccountPoliciesRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-// DescribeLogStreamsPages iterates over the pages of a DescribeLogStreams operation,
+const opDescribeDeliveries = "DescribeDeliveries"
+
+// DescribeDeliveriesRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeDeliveries operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DescribeDeliveries for more information on using the DescribeDeliveries
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the DescribeDeliveriesRequest method.
+// req, resp := client.DescribeDeliveriesRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeDeliveries
+func (c *CloudWatchLogs) DescribeDeliveriesRequest(input *DescribeDeliveriesInput) (req *request.Request, output *DescribeDeliveriesOutput) {
+ op := &request.Operation{
+ Name: opDescribeDeliveries,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"nextToken"},
+ OutputTokens: []string{"nextToken"},
+ LimitToken: "limit",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &DescribeDeliveriesInput{}
+ }
+
+ output = &DescribeDeliveriesOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DescribeDeliveries API operation for Amazon CloudWatch Logs.
+//
+// Retrieves a list of the deliveries that have been created in the account.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon CloudWatch Logs's
+// API operation DescribeDeliveries for usage and error information.
+//
+// Returned Error Types:
+//
+// - ServiceUnavailableException
+// The service cannot complete the request.
+//
+// - ServiceQuotaExceededException
+// This request exceeds a service quota.
+//
+// - ValidationException
+// One of the parameters for the request is not valid.
+//
+// - ThrottlingException
+// The request was throttled because of quota limits.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeDeliveries
+func (c *CloudWatchLogs) DescribeDeliveries(input *DescribeDeliveriesInput) (*DescribeDeliveriesOutput, error) {
+ req, out := c.DescribeDeliveriesRequest(input)
+ return out, req.Send()
+}
+
+// DescribeDeliveriesWithContext is the same as DescribeDeliveries with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DescribeDeliveries for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CloudWatchLogs) DescribeDeliveriesWithContext(ctx aws.Context, input *DescribeDeliveriesInput, opts ...request.Option) (*DescribeDeliveriesOutput, error) {
+ req, out := c.DescribeDeliveriesRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// DescribeDeliveriesPages iterates over the pages of a DescribeDeliveries operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
-// See DescribeLogStreams method for more information on how to use this operation.
+// See DescribeDeliveries method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
-// // Example iterating over at most 3 pages of a DescribeLogStreams operation.
+// // Example iterating over at most 3 pages of a DescribeDeliveries operation.
// pageNum := 0
-// err := client.DescribeLogStreamsPages(params,
-// func(page *cloudwatchlogs.DescribeLogStreamsOutput, lastPage bool) bool {
+// err := client.DescribeDeliveriesPages(params,
+// func(page *cloudwatchlogs.DescribeDeliveriesOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
-func (c *CloudWatchLogs) DescribeLogStreamsPages(input *DescribeLogStreamsInput, fn func(*DescribeLogStreamsOutput, bool) bool) error {
- return c.DescribeLogStreamsPagesWithContext(aws.BackgroundContext(), input, fn)
+func (c *CloudWatchLogs) DescribeDeliveriesPages(input *DescribeDeliveriesInput, fn func(*DescribeDeliveriesOutput, bool) bool) error {
+ return c.DescribeDeliveriesPagesWithContext(aws.BackgroundContext(), input, fn)
}
-// DescribeLogStreamsPagesWithContext same as DescribeLogStreamsPages except
+// DescribeDeliveriesPagesWithContext same as DescribeDeliveriesPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) DescribeLogStreamsPagesWithContext(ctx aws.Context, input *DescribeLogStreamsInput, fn func(*DescribeLogStreamsOutput, bool) bool, opts ...request.Option) error {
+func (c *CloudWatchLogs) DescribeDeliveriesPagesWithContext(ctx aws.Context, input *DescribeDeliveriesInput, fn func(*DescribeDeliveriesOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
EndPageOnSameToken: true,
NewRequest: func() (*request.Request, error) {
- var inCpy *DescribeLogStreamsInput
+ var inCpy *DescribeDeliveriesInput
if input != nil {
tmp := *input
inCpy = &tmp
}
- req, _ := c.DescribeLogStreamsRequest(inCpy)
+ req, _ := c.DescribeDeliveriesRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
@@ -2091,7 +2227,7 @@ func (c *CloudWatchLogs) DescribeLogStreamsPagesWithContext(ctx aws.Context, inp
}
for p.Next() {
- if !fn(p.Page().(*DescribeLogStreamsOutput), !p.HasNextPage()) {
+ if !fn(p.Page().(*DescribeDeliveriesOutput), !p.HasNextPage()) {
break
}
}
@@ -2099,34 +2235,34 @@ func (c *CloudWatchLogs) DescribeLogStreamsPagesWithContext(ctx aws.Context, inp
return p.Err()
}
-const opDescribeMetricFilters = "DescribeMetricFilters"
+const opDescribeDeliveryDestinations = "DescribeDeliveryDestinations"
-// DescribeMetricFiltersRequest generates a "aws/request.Request" representing the
-// client's request for the DescribeMetricFilters operation. The "output" return
+// DescribeDeliveryDestinationsRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeDeliveryDestinations operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See DescribeMetricFilters for more information on using the DescribeMetricFilters
+// See DescribeDeliveryDestinations for more information on using the DescribeDeliveryDestinations
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the DescribeMetricFiltersRequest method.
-// req, resp := client.DescribeMetricFiltersRequest(params)
+// // Example sending a request using the DescribeDeliveryDestinationsRequest method.
+// req, resp := client.DescribeDeliveryDestinationsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeMetricFilters
-func (c *CloudWatchLogs) DescribeMetricFiltersRequest(input *DescribeMetricFiltersInput) (req *request.Request, output *DescribeMetricFiltersOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeDeliveryDestinations
+func (c *CloudWatchLogs) DescribeDeliveryDestinationsRequest(input *DescribeDeliveryDestinationsInput) (req *request.Request, output *DescribeDeliveryDestinationsOutput) {
op := &request.Operation{
- Name: opDescribeMetricFilters,
+ Name: opDescribeDeliveryDestinations,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
@@ -2138,97 +2274,99 @@ func (c *CloudWatchLogs) DescribeMetricFiltersRequest(input *DescribeMetricFilte
}
if input == nil {
- input = &DescribeMetricFiltersInput{}
+ input = &DescribeDeliveryDestinationsInput{}
}
- output = &DescribeMetricFiltersOutput{}
+ output = &DescribeDeliveryDestinationsOutput{}
req = c.newRequest(op, input, output)
return
}
-// DescribeMetricFilters API operation for Amazon CloudWatch Logs.
+// DescribeDeliveryDestinations API operation for Amazon CloudWatch Logs.
//
-// 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.
+// Retrieves a list of the delivery destinations that have been created in the
+// account.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation DescribeMetricFilters for usage and error information.
+// API operation DescribeDeliveryDestinations for usage and error information.
//
// Returned Error Types:
//
-// - InvalidParameterException
-// A parameter is specified incorrectly.
-//
-// - ResourceNotFoundException
-// The specified resource does not exist.
-//
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeMetricFilters
-func (c *CloudWatchLogs) DescribeMetricFilters(input *DescribeMetricFiltersInput) (*DescribeMetricFiltersOutput, error) {
- req, out := c.DescribeMetricFiltersRequest(input)
+// - ServiceQuotaExceededException
+// This request exceeds a service quota.
+//
+// - ValidationException
+// One of the parameters for the request is not valid.
+//
+// - ThrottlingException
+// The request was throttled because of quota limits.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeDeliveryDestinations
+func (c *CloudWatchLogs) DescribeDeliveryDestinations(input *DescribeDeliveryDestinationsInput) (*DescribeDeliveryDestinationsOutput, error) {
+ req, out := c.DescribeDeliveryDestinationsRequest(input)
return out, req.Send()
}
-// DescribeMetricFiltersWithContext is the same as DescribeMetricFilters with the addition of
+// DescribeDeliveryDestinationsWithContext is the same as DescribeDeliveryDestinations with the addition of
// the ability to pass a context and additional request options.
//
-// See DescribeMetricFilters for details on how to use this API operation.
+// See DescribeDeliveryDestinations for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) DescribeMetricFiltersWithContext(ctx aws.Context, input *DescribeMetricFiltersInput, opts ...request.Option) (*DescribeMetricFiltersOutput, error) {
- req, out := c.DescribeMetricFiltersRequest(input)
+func (c *CloudWatchLogs) DescribeDeliveryDestinationsWithContext(ctx aws.Context, input *DescribeDeliveryDestinationsInput, opts ...request.Option) (*DescribeDeliveryDestinationsOutput, error) {
+ req, out := c.DescribeDeliveryDestinationsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-// DescribeMetricFiltersPages iterates over the pages of a DescribeMetricFilters operation,
+// DescribeDeliveryDestinationsPages iterates over the pages of a DescribeDeliveryDestinations operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
-// See DescribeMetricFilters method for more information on how to use this operation.
+// See DescribeDeliveryDestinations method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
-// // Example iterating over at most 3 pages of a DescribeMetricFilters operation.
+// // Example iterating over at most 3 pages of a DescribeDeliveryDestinations operation.
// pageNum := 0
-// err := client.DescribeMetricFiltersPages(params,
-// func(page *cloudwatchlogs.DescribeMetricFiltersOutput, lastPage bool) bool {
+// err := client.DescribeDeliveryDestinationsPages(params,
+// func(page *cloudwatchlogs.DescribeDeliveryDestinationsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
-func (c *CloudWatchLogs) DescribeMetricFiltersPages(input *DescribeMetricFiltersInput, fn func(*DescribeMetricFiltersOutput, bool) bool) error {
- return c.DescribeMetricFiltersPagesWithContext(aws.BackgroundContext(), input, fn)
+func (c *CloudWatchLogs) DescribeDeliveryDestinationsPages(input *DescribeDeliveryDestinationsInput, fn func(*DescribeDeliveryDestinationsOutput, bool) bool) error {
+ return c.DescribeDeliveryDestinationsPagesWithContext(aws.BackgroundContext(), input, fn)
}
-// DescribeMetricFiltersPagesWithContext same as DescribeMetricFiltersPages except
+// DescribeDeliveryDestinationsPagesWithContext same as DescribeDeliveryDestinationsPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) DescribeMetricFiltersPagesWithContext(ctx aws.Context, input *DescribeMetricFiltersInput, fn func(*DescribeMetricFiltersOutput, bool) bool, opts ...request.Option) error {
+func (c *CloudWatchLogs) DescribeDeliveryDestinationsPagesWithContext(ctx aws.Context, input *DescribeDeliveryDestinationsInput, fn func(*DescribeDeliveryDestinationsOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
EndPageOnSameToken: true,
NewRequest: func() (*request.Request, error) {
- var inCpy *DescribeMetricFiltersInput
+ var inCpy *DescribeDeliveryDestinationsInput
if input != nil {
tmp := *input
inCpy = &tmp
}
- req, _ := c.DescribeMetricFiltersRequest(inCpy)
+ req, _ := c.DescribeDeliveryDestinationsRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
@@ -2236,7 +2374,7 @@ func (c *CloudWatchLogs) DescribeMetricFiltersPagesWithContext(ctx aws.Context,
}
for p.Next() {
- if !fn(p.Page().(*DescribeMetricFiltersOutput), !p.HasNextPage()) {
+ if !fn(p.Page().(*DescribeDeliveryDestinationsOutput), !p.HasNextPage()) {
break
}
}
@@ -2244,148 +2382,210 @@ func (c *CloudWatchLogs) DescribeMetricFiltersPagesWithContext(ctx aws.Context,
return p.Err()
}
-const opDescribeQueries = "DescribeQueries"
+const opDescribeDeliverySources = "DescribeDeliverySources"
-// DescribeQueriesRequest generates a "aws/request.Request" representing the
-// client's request for the DescribeQueries operation. The "output" return
+// DescribeDeliverySourcesRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeDeliverySources operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See DescribeQueries for more information on using the DescribeQueries
+// See DescribeDeliverySources for more information on using the DescribeDeliverySources
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the DescribeQueriesRequest method.
-// req, resp := client.DescribeQueriesRequest(params)
+// // Example sending a request using the DescribeDeliverySourcesRequest method.
+// req, resp := client.DescribeDeliverySourcesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeQueries
-func (c *CloudWatchLogs) DescribeQueriesRequest(input *DescribeQueriesInput) (req *request.Request, output *DescribeQueriesOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeDeliverySources
+func (c *CloudWatchLogs) DescribeDeliverySourcesRequest(input *DescribeDeliverySourcesInput) (req *request.Request, output *DescribeDeliverySourcesOutput) {
op := &request.Operation{
- Name: opDescribeQueries,
+ Name: opDescribeDeliverySources,
HTTPMethod: "POST",
HTTPPath: "/",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"nextToken"},
+ OutputTokens: []string{"nextToken"},
+ LimitToken: "limit",
+ TruncationToken: "",
+ },
}
if input == nil {
- input = &DescribeQueriesInput{}
+ input = &DescribeDeliverySourcesInput{}
}
- output = &DescribeQueriesOutput{}
+ output = &DescribeDeliverySourcesOutput{}
req = c.newRequest(op, input, output)
return
}
-// DescribeQueries API operation for Amazon CloudWatch Logs.
+// DescribeDeliverySources API operation for Amazon CloudWatch Logs.
//
-// 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.
+// Retrieves a list of the delivery sources that have been created in the account.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation DescribeQueries for usage and error information.
+// API operation DescribeDeliverySources for usage and error information.
//
// Returned Error Types:
//
-// - InvalidParameterException
-// A parameter is specified incorrectly.
-//
-// - ResourceNotFoundException
-// The specified resource does not exist.
-//
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeQueries
-func (c *CloudWatchLogs) DescribeQueries(input *DescribeQueriesInput) (*DescribeQueriesOutput, error) {
- req, out := c.DescribeQueriesRequest(input)
+// - ServiceQuotaExceededException
+// This request exceeds a service quota.
+//
+// - ValidationException
+// One of the parameters for the request is not valid.
+//
+// - ThrottlingException
+// The request was throttled because of quota limits.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeDeliverySources
+func (c *CloudWatchLogs) DescribeDeliverySources(input *DescribeDeliverySourcesInput) (*DescribeDeliverySourcesOutput, error) {
+ req, out := c.DescribeDeliverySourcesRequest(input)
return out, req.Send()
}
-// DescribeQueriesWithContext is the same as DescribeQueries with the addition of
+// DescribeDeliverySourcesWithContext is the same as DescribeDeliverySources with the addition of
// the ability to pass a context and additional request options.
//
-// See DescribeQueries for details on how to use this API operation.
+// See DescribeDeliverySources for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) DescribeQueriesWithContext(ctx aws.Context, input *DescribeQueriesInput, opts ...request.Option) (*DescribeQueriesOutput, error) {
- req, out := c.DescribeQueriesRequest(input)
+func (c *CloudWatchLogs) DescribeDeliverySourcesWithContext(ctx aws.Context, input *DescribeDeliverySourcesInput, opts ...request.Option) (*DescribeDeliverySourcesOutput, error) {
+ req, out := c.DescribeDeliverySourcesRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opDescribeQueryDefinitions = "DescribeQueryDefinitions"
+// DescribeDeliverySourcesPages iterates over the pages of a DescribeDeliverySources operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See DescribeDeliverySources method for more information on how to use this operation.
+//
+// Note: This operation can generate multiple requests to a service.
+//
+// // Example iterating over at most 3 pages of a DescribeDeliverySources operation.
+// pageNum := 0
+// err := client.DescribeDeliverySourcesPages(params,
+// func(page *cloudwatchlogs.DescribeDeliverySourcesOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+func (c *CloudWatchLogs) DescribeDeliverySourcesPages(input *DescribeDeliverySourcesInput, fn func(*DescribeDeliverySourcesOutput, bool) bool) error {
+ return c.DescribeDeliverySourcesPagesWithContext(aws.BackgroundContext(), input, fn)
+}
-// DescribeQueryDefinitionsRequest generates a "aws/request.Request" representing the
-// client's request for the DescribeQueryDefinitions operation. The "output" return
+// DescribeDeliverySourcesPagesWithContext same as DescribeDeliverySourcesPages except
+// it takes a Context and allows setting request options on the pages.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CloudWatchLogs) DescribeDeliverySourcesPagesWithContext(ctx aws.Context, input *DescribeDeliverySourcesInput, fn func(*DescribeDeliverySourcesOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ EndPageOnSameToken: true,
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *DescribeDeliverySourcesInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.DescribeDeliverySourcesRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*DescribeDeliverySourcesOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opDescribeDestinations = "DescribeDestinations"
+
+// DescribeDestinationsRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeDestinations operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See DescribeQueryDefinitions for more information on using the DescribeQueryDefinitions
+// See DescribeDestinations for more information on using the DescribeDestinations
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the DescribeQueryDefinitionsRequest method.
-// req, resp := client.DescribeQueryDefinitionsRequest(params)
+// // Example sending a request using the DescribeDestinationsRequest method.
+// req, resp := client.DescribeDestinationsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeQueryDefinitions
-func (c *CloudWatchLogs) DescribeQueryDefinitionsRequest(input *DescribeQueryDefinitionsInput) (req *request.Request, output *DescribeQueryDefinitionsOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeDestinations
+func (c *CloudWatchLogs) DescribeDestinationsRequest(input *DescribeDestinationsInput) (req *request.Request, output *DescribeDestinationsOutput) {
op := &request.Operation{
- Name: opDescribeQueryDefinitions,
+ Name: opDescribeDestinations,
HTTPMethod: "POST",
HTTPPath: "/",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"nextToken"},
+ OutputTokens: []string{"nextToken"},
+ LimitToken: "limit",
+ TruncationToken: "",
+ },
}
if input == nil {
- input = &DescribeQueryDefinitionsInput{}
+ input = &DescribeDestinationsInput{}
}
- output = &DescribeQueryDefinitionsOutput{}
+ output = &DescribeDestinationsOutput{}
req = c.newRequest(op, input, output)
return
}
-// DescribeQueryDefinitions API operation for Amazon CloudWatch Logs.
-//
-// This operation returns a paginated list of your saved CloudWatch Logs Insights
-// query definitions.
+// DescribeDestinations API operation for Amazon CloudWatch Logs.
//
-// You can use the queryDefinitionNamePrefix parameter to limit the results
-// to only the query definitions that have names that start with a certain string.
+// Lists all your destinations. The results are ASCII-sorted by destination
+// name.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation DescribeQueryDefinitions for usage and error information.
+// API operation DescribeDestinations for usage and error information.
//
// Returned Error Types:
//
@@ -2395,79 +2595,132 @@ func (c *CloudWatchLogs) DescribeQueryDefinitionsRequest(input *DescribeQueryDef
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeQueryDefinitions
-func (c *CloudWatchLogs) DescribeQueryDefinitions(input *DescribeQueryDefinitionsInput) (*DescribeQueryDefinitionsOutput, error) {
- req, out := c.DescribeQueryDefinitionsRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeDestinations
+func (c *CloudWatchLogs) DescribeDestinations(input *DescribeDestinationsInput) (*DescribeDestinationsOutput, error) {
+ req, out := c.DescribeDestinationsRequest(input)
return out, req.Send()
}
-// DescribeQueryDefinitionsWithContext is the same as DescribeQueryDefinitions with the addition of
+// DescribeDestinationsWithContext is the same as DescribeDestinations with the addition of
// the ability to pass a context and additional request options.
//
-// See DescribeQueryDefinitions for details on how to use this API operation.
+// See DescribeDestinations for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) DescribeQueryDefinitionsWithContext(ctx aws.Context, input *DescribeQueryDefinitionsInput, opts ...request.Option) (*DescribeQueryDefinitionsOutput, error) {
- req, out := c.DescribeQueryDefinitionsRequest(input)
+func (c *CloudWatchLogs) DescribeDestinationsWithContext(ctx aws.Context, input *DescribeDestinationsInput, opts ...request.Option) (*DescribeDestinationsOutput, error) {
+ req, out := c.DescribeDestinationsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opDescribeResourcePolicies = "DescribeResourcePolicies"
+// DescribeDestinationsPages iterates over the pages of a DescribeDestinations operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See DescribeDestinations method for more information on how to use this operation.
+//
+// Note: This operation can generate multiple requests to a service.
+//
+// // Example iterating over at most 3 pages of a DescribeDestinations operation.
+// pageNum := 0
+// err := client.DescribeDestinationsPages(params,
+// func(page *cloudwatchlogs.DescribeDestinationsOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+func (c *CloudWatchLogs) DescribeDestinationsPages(input *DescribeDestinationsInput, fn func(*DescribeDestinationsOutput, bool) bool) error {
+ return c.DescribeDestinationsPagesWithContext(aws.BackgroundContext(), input, fn)
+}
-// DescribeResourcePoliciesRequest generates a "aws/request.Request" representing the
-// client's request for the DescribeResourcePolicies operation. The "output" return
+// DescribeDestinationsPagesWithContext same as DescribeDestinationsPages except
+// it takes a Context and allows setting request options on the pages.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CloudWatchLogs) DescribeDestinationsPagesWithContext(ctx aws.Context, input *DescribeDestinationsInput, fn func(*DescribeDestinationsOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ EndPageOnSameToken: true,
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *DescribeDestinationsInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.DescribeDestinationsRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*DescribeDestinationsOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opDescribeExportTasks = "DescribeExportTasks"
+
+// DescribeExportTasksRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeExportTasks operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See DescribeResourcePolicies for more information on using the DescribeResourcePolicies
+// See DescribeExportTasks for more information on using the DescribeExportTasks
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the DescribeResourcePoliciesRequest method.
-// req, resp := client.DescribeResourcePoliciesRequest(params)
+// // Example sending a request using the DescribeExportTasksRequest method.
+// req, resp := client.DescribeExportTasksRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeResourcePolicies
-func (c *CloudWatchLogs) DescribeResourcePoliciesRequest(input *DescribeResourcePoliciesInput) (req *request.Request, output *DescribeResourcePoliciesOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeExportTasks
+func (c *CloudWatchLogs) DescribeExportTasksRequest(input *DescribeExportTasksInput) (req *request.Request, output *DescribeExportTasksOutput) {
op := &request.Operation{
- Name: opDescribeResourcePolicies,
+ Name: opDescribeExportTasks,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &DescribeResourcePoliciesInput{}
+ input = &DescribeExportTasksInput{}
}
- output = &DescribeResourcePoliciesOutput{}
+ output = &DescribeExportTasksOutput{}
req = c.newRequest(op, input, output)
return
}
-// DescribeResourcePolicies API operation for Amazon CloudWatch Logs.
+// DescribeExportTasks API operation for Amazon CloudWatch Logs.
//
-// Lists the resource policies in this account.
+// Lists the specified export tasks. You can list all your export tasks or filter
+// the results based on task ID or task status.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation DescribeResourcePolicies for usage and error information.
+// API operation DescribeExportTasks for usage and error information.
//
// Returned Error Types:
//
@@ -2477,56 +2730,56 @@ func (c *CloudWatchLogs) DescribeResourcePoliciesRequest(input *DescribeResource
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeResourcePolicies
-func (c *CloudWatchLogs) DescribeResourcePolicies(input *DescribeResourcePoliciesInput) (*DescribeResourcePoliciesOutput, error) {
- req, out := c.DescribeResourcePoliciesRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeExportTasks
+func (c *CloudWatchLogs) DescribeExportTasks(input *DescribeExportTasksInput) (*DescribeExportTasksOutput, error) {
+ req, out := c.DescribeExportTasksRequest(input)
return out, req.Send()
}
-// DescribeResourcePoliciesWithContext is the same as DescribeResourcePolicies with the addition of
+// DescribeExportTasksWithContext is the same as DescribeExportTasks with the addition of
// the ability to pass a context and additional request options.
//
-// See DescribeResourcePolicies for details on how to use this API operation.
+// See DescribeExportTasks for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) DescribeResourcePoliciesWithContext(ctx aws.Context, input *DescribeResourcePoliciesInput, opts ...request.Option) (*DescribeResourcePoliciesOutput, error) {
- req, out := c.DescribeResourcePoliciesRequest(input)
+func (c *CloudWatchLogs) DescribeExportTasksWithContext(ctx aws.Context, input *DescribeExportTasksInput, opts ...request.Option) (*DescribeExportTasksOutput, error) {
+ req, out := c.DescribeExportTasksRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opDescribeSubscriptionFilters = "DescribeSubscriptionFilters"
+const opDescribeLogGroups = "DescribeLogGroups"
-// DescribeSubscriptionFiltersRequest generates a "aws/request.Request" representing the
-// client's request for the DescribeSubscriptionFilters operation. The "output" return
+// DescribeLogGroupsRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeLogGroups operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See DescribeSubscriptionFilters for more information on using the DescribeSubscriptionFilters
+// See DescribeLogGroups for more information on using the DescribeLogGroups
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the DescribeSubscriptionFiltersRequest method.
-// req, resp := client.DescribeSubscriptionFiltersRequest(params)
+// // Example sending a request using the DescribeLogGroupsRequest method.
+// req, resp := client.DescribeLogGroupsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeSubscriptionFilters
-func (c *CloudWatchLogs) DescribeSubscriptionFiltersRequest(input *DescribeSubscriptionFiltersInput) (req *request.Request, output *DescribeSubscriptionFiltersOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeLogGroups
+func (c *CloudWatchLogs) DescribeLogGroupsRequest(input *DescribeLogGroupsInput) (req *request.Request, output *DescribeLogGroupsOutput) {
op := &request.Operation{
- Name: opDescribeSubscriptionFilters,
+ Name: opDescribeLogGroups,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
@@ -2538,97 +2791,104 @@ func (c *CloudWatchLogs) DescribeSubscriptionFiltersRequest(input *DescribeSubsc
}
if input == nil {
- input = &DescribeSubscriptionFiltersInput{}
+ input = &DescribeLogGroupsInput{}
}
- output = &DescribeSubscriptionFiltersOutput{}
+ output = &DescribeLogGroupsOutput{}
req = c.newRequest(op, input, output)
return
}
-// DescribeSubscriptionFilters API operation for Amazon CloudWatch Logs.
+// DescribeLogGroups API operation for Amazon CloudWatch Logs.
//
-// 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.
+// 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 (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).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation DescribeSubscriptionFilters for usage and error information.
+// API operation DescribeLogGroups for usage and error information.
//
// Returned Error Types:
//
// - InvalidParameterException
// A parameter is specified incorrectly.
//
-// - ResourceNotFoundException
-// The specified resource does not exist.
-//
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeSubscriptionFilters
-func (c *CloudWatchLogs) DescribeSubscriptionFilters(input *DescribeSubscriptionFiltersInput) (*DescribeSubscriptionFiltersOutput, error) {
- req, out := c.DescribeSubscriptionFiltersRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeLogGroups
+func (c *CloudWatchLogs) DescribeLogGroups(input *DescribeLogGroupsInput) (*DescribeLogGroupsOutput, error) {
+ req, out := c.DescribeLogGroupsRequest(input)
return out, req.Send()
}
-// DescribeSubscriptionFiltersWithContext is the same as DescribeSubscriptionFilters with the addition of
+// DescribeLogGroupsWithContext is the same as DescribeLogGroups with the addition of
// the ability to pass a context and additional request options.
//
-// See DescribeSubscriptionFilters for details on how to use this API operation.
+// See DescribeLogGroups for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) DescribeSubscriptionFiltersWithContext(ctx aws.Context, input *DescribeSubscriptionFiltersInput, opts ...request.Option) (*DescribeSubscriptionFiltersOutput, error) {
- req, out := c.DescribeSubscriptionFiltersRequest(input)
+func (c *CloudWatchLogs) DescribeLogGroupsWithContext(ctx aws.Context, input *DescribeLogGroupsInput, opts ...request.Option) (*DescribeLogGroupsOutput, error) {
+ req, out := c.DescribeLogGroupsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-// DescribeSubscriptionFiltersPages iterates over the pages of a DescribeSubscriptionFilters operation,
+// DescribeLogGroupsPages iterates over the pages of a DescribeLogGroups operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
-// See DescribeSubscriptionFilters method for more information on how to use this operation.
+// See DescribeLogGroups method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
-// // Example iterating over at most 3 pages of a DescribeSubscriptionFilters operation.
+// // Example iterating over at most 3 pages of a DescribeLogGroups operation.
// pageNum := 0
-// err := client.DescribeSubscriptionFiltersPages(params,
-// func(page *cloudwatchlogs.DescribeSubscriptionFiltersOutput, lastPage bool) bool {
+// err := client.DescribeLogGroupsPages(params,
+// func(page *cloudwatchlogs.DescribeLogGroupsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
-func (c *CloudWatchLogs) DescribeSubscriptionFiltersPages(input *DescribeSubscriptionFiltersInput, fn func(*DescribeSubscriptionFiltersOutput, bool) bool) error {
- return c.DescribeSubscriptionFiltersPagesWithContext(aws.BackgroundContext(), input, fn)
+func (c *CloudWatchLogs) DescribeLogGroupsPages(input *DescribeLogGroupsInput, fn func(*DescribeLogGroupsOutput, bool) bool) error {
+ return c.DescribeLogGroupsPagesWithContext(aws.BackgroundContext(), input, fn)
}
-// DescribeSubscriptionFiltersPagesWithContext same as DescribeSubscriptionFiltersPages except
+// DescribeLogGroupsPagesWithContext same as DescribeLogGroupsPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) DescribeSubscriptionFiltersPagesWithContext(ctx aws.Context, input *DescribeSubscriptionFiltersInput, fn func(*DescribeSubscriptionFiltersOutput, bool) bool, opts ...request.Option) error {
+func (c *CloudWatchLogs) DescribeLogGroupsPagesWithContext(ctx aws.Context, input *DescribeLogGroupsInput, fn func(*DescribeLogGroupsOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
EndPageOnSameToken: true,
NewRequest: func() (*request.Request, error) {
- var inCpy *DescribeSubscriptionFiltersInput
+ var inCpy *DescribeLogGroupsInput
if input != nil {
tmp := *input
inCpy = &tmp
}
- req, _ := c.DescribeSubscriptionFiltersRequest(inCpy)
+ req, _ := c.DescribeLogGroupsRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
@@ -2636,7 +2896,7 @@ func (c *CloudWatchLogs) DescribeSubscriptionFiltersPagesWithContext(ctx aws.Con
}
for p.Next() {
- if !fn(p.Page().(*DescribeSubscriptionFiltersOutput), !p.HasNextPage()) {
+ if !fn(p.Page().(*DescribeLogGroupsOutput), !p.HasNextPage()) {
break
}
}
@@ -2644,81 +2904,76 @@ func (c *CloudWatchLogs) DescribeSubscriptionFiltersPagesWithContext(ctx aws.Con
return p.Err()
}
-const opDisassociateKmsKey = "DisassociateKmsKey"
+const opDescribeLogStreams = "DescribeLogStreams"
-// DisassociateKmsKeyRequest generates a "aws/request.Request" representing the
-// client's request for the DisassociateKmsKey operation. The "output" return
+// DescribeLogStreamsRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeLogStreams operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See DisassociateKmsKey for more information on using the DisassociateKmsKey
+// See DescribeLogStreams for more information on using the DescribeLogStreams
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the DisassociateKmsKeyRequest method.
-// req, resp := client.DisassociateKmsKeyRequest(params)
+// // Example sending a request using the DescribeLogStreamsRequest method.
+// req, resp := client.DescribeLogStreamsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DisassociateKmsKey
-func (c *CloudWatchLogs) DisassociateKmsKeyRequest(input *DisassociateKmsKeyInput) (req *request.Request, output *DisassociateKmsKeyOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeLogStreams
+func (c *CloudWatchLogs) DescribeLogStreamsRequest(input *DescribeLogStreamsInput) (req *request.Request, output *DescribeLogStreamsOutput) {
op := &request.Operation{
- Name: opDisassociateKmsKey,
+ Name: opDescribeLogStreams,
HTTPMethod: "POST",
HTTPPath: "/",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"nextToken"},
+ OutputTokens: []string{"nextToken"},
+ LimitToken: "limit",
+ TruncationToken: "",
+ },
}
if input == nil {
- input = &DisassociateKmsKeyInput{}
+ input = &DescribeLogStreamsInput{}
}
- output = &DisassociateKmsKeyOutput{}
+ output = &DescribeLogStreamsOutput{}
req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
-// DisassociateKmsKey API operation for Amazon CloudWatch Logs.
+// DescribeLogStreams API operation for Amazon CloudWatch Logs.
//
-// Disassociates the specified KMS key from the specified log group or from
-// all CloudWatch Logs Insights query results in the account.
+// 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.
//
-// 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.
+// 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.
//
-// - 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.
+// This operation has a limit of five transactions per second, after which transactions
+// are throttled.
//
-// - 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.
+// 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).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation DisassociateKmsKey for usage and error information.
+// API operation DescribeLogStreams for usage and error information.
//
// Returned Error Types:
//
@@ -2728,62 +2983,111 @@ func (c *CloudWatchLogs) DisassociateKmsKeyRequest(input *DisassociateKmsKeyInpu
// - ResourceNotFoundException
// The specified resource does not exist.
//
-// - OperationAbortedException
-// Multiple concurrent requests to update the same resource were in conflict.
-//
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DisassociateKmsKey
-func (c *CloudWatchLogs) DisassociateKmsKey(input *DisassociateKmsKeyInput) (*DisassociateKmsKeyOutput, error) {
- req, out := c.DisassociateKmsKeyRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeLogStreams
+func (c *CloudWatchLogs) DescribeLogStreams(input *DescribeLogStreamsInput) (*DescribeLogStreamsOutput, error) {
+ req, out := c.DescribeLogStreamsRequest(input)
return out, req.Send()
}
-// DisassociateKmsKeyWithContext is the same as DisassociateKmsKey with the addition of
+// DescribeLogStreamsWithContext is the same as DescribeLogStreams with the addition of
// the ability to pass a context and additional request options.
//
-// See DisassociateKmsKey for details on how to use this API operation.
+// See DescribeLogStreams for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) DisassociateKmsKeyWithContext(ctx aws.Context, input *DisassociateKmsKeyInput, opts ...request.Option) (*DisassociateKmsKeyOutput, error) {
- req, out := c.DisassociateKmsKeyRequest(input)
+func (c *CloudWatchLogs) DescribeLogStreamsWithContext(ctx aws.Context, input *DescribeLogStreamsInput, opts ...request.Option) (*DescribeLogStreamsOutput, error) {
+ req, out := c.DescribeLogStreamsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opFilterLogEvents = "FilterLogEvents"
+// DescribeLogStreamsPages iterates over the pages of a DescribeLogStreams operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See DescribeLogStreams method for more information on how to use this operation.
+//
+// Note: This operation can generate multiple requests to a service.
+//
+// // Example iterating over at most 3 pages of a DescribeLogStreams operation.
+// pageNum := 0
+// err := client.DescribeLogStreamsPages(params,
+// func(page *cloudwatchlogs.DescribeLogStreamsOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+func (c *CloudWatchLogs) DescribeLogStreamsPages(input *DescribeLogStreamsInput, fn func(*DescribeLogStreamsOutput, bool) bool) error {
+ return c.DescribeLogStreamsPagesWithContext(aws.BackgroundContext(), input, fn)
+}
-// FilterLogEventsRequest generates a "aws/request.Request" representing the
-// client's request for the FilterLogEvents operation. The "output" return
+// DescribeLogStreamsPagesWithContext same as DescribeLogStreamsPages except
+// it takes a Context and allows setting request options on the pages.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CloudWatchLogs) DescribeLogStreamsPagesWithContext(ctx aws.Context, input *DescribeLogStreamsInput, fn func(*DescribeLogStreamsOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ EndPageOnSameToken: true,
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *DescribeLogStreamsInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.DescribeLogStreamsRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*DescribeLogStreamsOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opDescribeMetricFilters = "DescribeMetricFilters"
+
+// DescribeMetricFiltersRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeMetricFilters operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See FilterLogEvents for more information on using the FilterLogEvents
+// See DescribeMetricFilters for more information on using the DescribeMetricFilters
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the FilterLogEventsRequest method.
-// req, resp := client.FilterLogEventsRequest(params)
+// // Example sending a request using the DescribeMetricFiltersRequest method.
+// req, resp := client.DescribeMetricFiltersRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/FilterLogEvents
-func (c *CloudWatchLogs) FilterLogEventsRequest(input *FilterLogEventsInput) (req *request.Request, output *FilterLogEventsOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeMetricFilters
+func (c *CloudWatchLogs) DescribeMetricFiltersRequest(input *DescribeMetricFiltersInput) (req *request.Request, output *DescribeMetricFiltersOutput) {
op := &request.Operation{
- Name: opFilterLogEvents,
+ Name: opDescribeMetricFilters,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
@@ -2795,47 +3099,26 @@ func (c *CloudWatchLogs) FilterLogEventsRequest(input *FilterLogEventsInput) (re
}
if input == nil {
- input = &FilterLogEventsInput{}
+ input = &DescribeMetricFiltersInput{}
}
- output = &FilterLogEventsOutput{}
+ output = &DescribeMetricFiltersOutput{}
req = c.newRequest(op, input, output)
return
}
-// FilterLogEvents API operation for Amazon CloudWatch Logs.
-//
-// 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.
+// DescribeMetricFilters API operation for Amazon CloudWatch Logs.
//
-// 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).
+// 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.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation FilterLogEvents for usage and error information.
+// API operation DescribeMetricFilters for usage and error information.
//
// Returned Error Types:
//
@@ -2848,65 +3131,65 @@ func (c *CloudWatchLogs) FilterLogEventsRequest(input *FilterLogEventsInput) (re
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/FilterLogEvents
-func (c *CloudWatchLogs) FilterLogEvents(input *FilterLogEventsInput) (*FilterLogEventsOutput, error) {
- req, out := c.FilterLogEventsRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeMetricFilters
+func (c *CloudWatchLogs) DescribeMetricFilters(input *DescribeMetricFiltersInput) (*DescribeMetricFiltersOutput, error) {
+ req, out := c.DescribeMetricFiltersRequest(input)
return out, req.Send()
}
-// FilterLogEventsWithContext is the same as FilterLogEvents with the addition of
+// DescribeMetricFiltersWithContext is the same as DescribeMetricFilters with the addition of
// the ability to pass a context and additional request options.
//
-// See FilterLogEvents for details on how to use this API operation.
+// See DescribeMetricFilters for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) FilterLogEventsWithContext(ctx aws.Context, input *FilterLogEventsInput, opts ...request.Option) (*FilterLogEventsOutput, error) {
- req, out := c.FilterLogEventsRequest(input)
+func (c *CloudWatchLogs) DescribeMetricFiltersWithContext(ctx aws.Context, input *DescribeMetricFiltersInput, opts ...request.Option) (*DescribeMetricFiltersOutput, error) {
+ req, out := c.DescribeMetricFiltersRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-// FilterLogEventsPages iterates over the pages of a FilterLogEvents operation,
+// DescribeMetricFiltersPages iterates over the pages of a DescribeMetricFilters operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
-// See FilterLogEvents method for more information on how to use this operation.
+// See DescribeMetricFilters method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
-// // Example iterating over at most 3 pages of a FilterLogEvents operation.
+// // Example iterating over at most 3 pages of a DescribeMetricFilters operation.
// pageNum := 0
-// err := client.FilterLogEventsPages(params,
-// func(page *cloudwatchlogs.FilterLogEventsOutput, lastPage bool) bool {
+// err := client.DescribeMetricFiltersPages(params,
+// func(page *cloudwatchlogs.DescribeMetricFiltersOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
-func (c *CloudWatchLogs) FilterLogEventsPages(input *FilterLogEventsInput, fn func(*FilterLogEventsOutput, bool) bool) error {
- return c.FilterLogEventsPagesWithContext(aws.BackgroundContext(), input, fn)
+func (c *CloudWatchLogs) DescribeMetricFiltersPages(input *DescribeMetricFiltersInput, fn func(*DescribeMetricFiltersOutput, bool) bool) error {
+ return c.DescribeMetricFiltersPagesWithContext(aws.BackgroundContext(), input, fn)
}
-// FilterLogEventsPagesWithContext same as FilterLogEventsPages except
+// DescribeMetricFiltersPagesWithContext same as DescribeMetricFiltersPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) FilterLogEventsPagesWithContext(ctx aws.Context, input *FilterLogEventsInput, fn func(*FilterLogEventsOutput, bool) bool, opts ...request.Option) error {
+func (c *CloudWatchLogs) DescribeMetricFiltersPagesWithContext(ctx aws.Context, input *DescribeMetricFiltersInput, fn func(*DescribeMetricFiltersOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
EndPageOnSameToken: true,
NewRequest: func() (*request.Request, error) {
- var inCpy *FilterLogEventsInput
+ var inCpy *DescribeMetricFiltersInput
if input != nil {
tmp := *input
inCpy = &tmp
}
- req, _ := c.FilterLogEventsRequest(inCpy)
+ req, _ := c.DescribeMetricFiltersRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
@@ -2914,7 +3197,7 @@ func (c *CloudWatchLogs) FilterLogEventsPagesWithContext(ctx aws.Context, input
}
for p.Next() {
- if !fn(p.Page().(*FilterLogEventsOutput), !p.HasNextPage()) {
+ if !fn(p.Page().(*DescribeMetricFiltersOutput), !p.HasNextPage()) {
break
}
}
@@ -2922,604 +3205,481 @@ func (c *CloudWatchLogs) FilterLogEventsPagesWithContext(ctx aws.Context, input
return p.Err()
}
-const opGetDataProtectionPolicy = "GetDataProtectionPolicy"
+const opDescribeQueries = "DescribeQueries"
-// GetDataProtectionPolicyRequest generates a "aws/request.Request" representing the
-// client's request for the GetDataProtectionPolicy operation. The "output" return
+// DescribeQueriesRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeQueries operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See GetDataProtectionPolicy for more information on using the GetDataProtectionPolicy
+// See DescribeQueries for more information on using the DescribeQueries
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the GetDataProtectionPolicyRequest method.
-// req, resp := client.GetDataProtectionPolicyRequest(params)
+// // Example sending a request using the DescribeQueriesRequest method.
+// req, resp := client.DescribeQueriesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetDataProtectionPolicy
-func (c *CloudWatchLogs) GetDataProtectionPolicyRequest(input *GetDataProtectionPolicyInput) (req *request.Request, output *GetDataProtectionPolicyOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeQueries
+func (c *CloudWatchLogs) DescribeQueriesRequest(input *DescribeQueriesInput) (req *request.Request, output *DescribeQueriesOutput) {
op := &request.Operation{
- Name: opGetDataProtectionPolicy,
+ Name: opDescribeQueries,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &GetDataProtectionPolicyInput{}
+ input = &DescribeQueriesInput{}
}
- output = &GetDataProtectionPolicyOutput{}
+ output = &DescribeQueriesOutput{}
req = c.newRequest(op, input, output)
return
}
-// GetDataProtectionPolicy API operation for Amazon CloudWatch Logs.
+// DescribeQueries API operation for Amazon CloudWatch Logs.
//
-// Returns information about a log group data protection policy.
+// 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.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation GetDataProtectionPolicy for usage and error information.
+// API operation DescribeQueries for usage and error information.
//
// Returned Error Types:
//
// - InvalidParameterException
// A parameter is specified incorrectly.
//
-// - OperationAbortedException
-// Multiple concurrent requests to update the same resource were in conflict.
-//
// - ResourceNotFoundException
// The specified resource does not exist.
//
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetDataProtectionPolicy
-func (c *CloudWatchLogs) GetDataProtectionPolicy(input *GetDataProtectionPolicyInput) (*GetDataProtectionPolicyOutput, error) {
- req, out := c.GetDataProtectionPolicyRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeQueries
+func (c *CloudWatchLogs) DescribeQueries(input *DescribeQueriesInput) (*DescribeQueriesOutput, error) {
+ req, out := c.DescribeQueriesRequest(input)
return out, req.Send()
}
-// GetDataProtectionPolicyWithContext is the same as GetDataProtectionPolicy with the addition of
+// DescribeQueriesWithContext is the same as DescribeQueries with the addition of
// the ability to pass a context and additional request options.
//
-// See GetDataProtectionPolicy for details on how to use this API operation.
+// See DescribeQueries for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) GetDataProtectionPolicyWithContext(ctx aws.Context, input *GetDataProtectionPolicyInput, opts ...request.Option) (*GetDataProtectionPolicyOutput, error) {
- req, out := c.GetDataProtectionPolicyRequest(input)
+func (c *CloudWatchLogs) DescribeQueriesWithContext(ctx aws.Context, input *DescribeQueriesInput, opts ...request.Option) (*DescribeQueriesOutput, error) {
+ req, out := c.DescribeQueriesRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opGetLogEvents = "GetLogEvents"
+const opDescribeQueryDefinitions = "DescribeQueryDefinitions"
-// GetLogEventsRequest generates a "aws/request.Request" representing the
-// client's request for the GetLogEvents operation. The "output" return
+// DescribeQueryDefinitionsRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeQueryDefinitions operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See GetLogEvents for more information on using the GetLogEvents
+// See DescribeQueryDefinitions for more information on using the DescribeQueryDefinitions
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the GetLogEventsRequest method.
-// req, resp := client.GetLogEventsRequest(params)
+// // Example sending a request using the DescribeQueryDefinitionsRequest method.
+// req, resp := client.DescribeQueryDefinitionsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogEvents
-func (c *CloudWatchLogs) GetLogEventsRequest(input *GetLogEventsInput) (req *request.Request, output *GetLogEventsOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeQueryDefinitions
+func (c *CloudWatchLogs) DescribeQueryDefinitionsRequest(input *DescribeQueryDefinitionsInput) (req *request.Request, output *DescribeQueryDefinitionsOutput) {
op := &request.Operation{
- Name: opGetLogEvents,
+ Name: opDescribeQueryDefinitions,
HTTPMethod: "POST",
HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextForwardToken"},
- LimitToken: "limit",
- TruncationToken: "",
- },
}
if input == nil {
- input = &GetLogEventsInput{}
+ input = &DescribeQueryDefinitionsInput{}
}
- output = &GetLogEventsOutput{}
+ output = &DescribeQueryDefinitionsOutput{}
req = c.newRequest(op, input, output)
return
}
-// GetLogEvents API operation for Amazon CloudWatch Logs.
+// DescribeQueryDefinitions API operation for Amazon CloudWatch Logs.
//
-// Lists log events from the specified log stream. You can list all of the log
-// events or filter using a time range.
+// This operation returns a paginated list of your saved CloudWatch Logs Insights
+// query definitions.
//
-// 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 (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html).
-//
-// 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.
+// You can use the queryDefinitionNamePrefix parameter to limit the results
+// to only the query definitions that have names that start with a certain string.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation GetLogEvents for usage and error information.
+// API operation DescribeQueryDefinitions for usage and error information.
//
// Returned Error Types:
//
// - InvalidParameterException
// A parameter is specified incorrectly.
//
-// - ResourceNotFoundException
-// The specified resource does not exist.
-//
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogEvents
-func (c *CloudWatchLogs) GetLogEvents(input *GetLogEventsInput) (*GetLogEventsOutput, error) {
- req, out := c.GetLogEventsRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeQueryDefinitions
+func (c *CloudWatchLogs) DescribeQueryDefinitions(input *DescribeQueryDefinitionsInput) (*DescribeQueryDefinitionsOutput, error) {
+ req, out := c.DescribeQueryDefinitionsRequest(input)
return out, req.Send()
}
-// GetLogEventsWithContext is the same as GetLogEvents with the addition of
+// DescribeQueryDefinitionsWithContext is the same as DescribeQueryDefinitions with the addition of
// the ability to pass a context and additional request options.
//
-// See GetLogEvents for details on how to use this API operation.
+// See DescribeQueryDefinitions for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) GetLogEventsWithContext(ctx aws.Context, input *GetLogEventsInput, opts ...request.Option) (*GetLogEventsOutput, error) {
- req, out := c.GetLogEventsRequest(input)
+func (c *CloudWatchLogs) DescribeQueryDefinitionsWithContext(ctx aws.Context, input *DescribeQueryDefinitionsInput, opts ...request.Option) (*DescribeQueryDefinitionsOutput, error) {
+ req, out := c.DescribeQueryDefinitionsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-// GetLogEventsPages iterates over the pages of a GetLogEvents operation,
-// calling the "fn" function with the response data for each page. To stop
-// iterating, return false from the fn function.
-//
-// See GetLogEvents method for more information on how to use this operation.
-//
-// Note: This operation can generate multiple requests to a service.
-//
-// // Example iterating over at most 3 pages of a GetLogEvents operation.
-// pageNum := 0
-// err := client.GetLogEventsPages(params,
-// func(page *cloudwatchlogs.GetLogEventsOutput, lastPage bool) bool {
-// pageNum++
-// fmt.Println(page)
-// return pageNum <= 3
-// })
-func (c *CloudWatchLogs) GetLogEventsPages(input *GetLogEventsInput, fn func(*GetLogEventsOutput, bool) bool) error {
- return c.GetLogEventsPagesWithContext(aws.BackgroundContext(), input, fn)
-}
-
-// GetLogEventsPagesWithContext same as GetLogEventsPages except
-// it takes a Context and allows setting request options on the pages.
-//
-// The context must be non-nil and will be used for request cancellation. If
-// the context is nil a panic will occur. In the future the SDK may create
-// sub-contexts for http.Requests. See https://golang.org/pkg/context/
-// for more information on using Contexts.
-func (c *CloudWatchLogs) GetLogEventsPagesWithContext(ctx aws.Context, input *GetLogEventsInput, fn func(*GetLogEventsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- EndPageOnSameToken: true,
- NewRequest: func() (*request.Request, error) {
- var inCpy *GetLogEventsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.GetLogEventsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
-
- for p.Next() {
- if !fn(p.Page().(*GetLogEventsOutput), !p.HasNextPage()) {
- break
- }
- }
-
- return p.Err()
-}
-
-const opGetLogGroupFields = "GetLogGroupFields"
+const opDescribeResourcePolicies = "DescribeResourcePolicies"
-// GetLogGroupFieldsRequest generates a "aws/request.Request" representing the
-// client's request for the GetLogGroupFields operation. The "output" return
+// DescribeResourcePoliciesRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeResourcePolicies operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See GetLogGroupFields for more information on using the GetLogGroupFields
+// See DescribeResourcePolicies for more information on using the DescribeResourcePolicies
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the GetLogGroupFieldsRequest method.
-// req, resp := client.GetLogGroupFieldsRequest(params)
+// // Example sending a request using the DescribeResourcePoliciesRequest method.
+// req, resp := client.DescribeResourcePoliciesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogGroupFields
-func (c *CloudWatchLogs) GetLogGroupFieldsRequest(input *GetLogGroupFieldsInput) (req *request.Request, output *GetLogGroupFieldsOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeResourcePolicies
+func (c *CloudWatchLogs) DescribeResourcePoliciesRequest(input *DescribeResourcePoliciesInput) (req *request.Request, output *DescribeResourcePoliciesOutput) {
op := &request.Operation{
- Name: opGetLogGroupFields,
+ Name: opDescribeResourcePolicies,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &GetLogGroupFieldsInput{}
+ input = &DescribeResourcePoliciesInput{}
}
- output = &GetLogGroupFieldsOutput{}
+ output = &DescribeResourcePoliciesOutput{}
req = c.newRequest(op, input, output)
return
}
-// GetLogGroupFields API operation for Amazon CloudWatch Logs.
-//
-// 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 (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_AnalyzeLogData-discoverable-fields.html).
-//
-// The response results are sorted by the frequency percentage, starting with
-// the highest percentage.
+// DescribeResourcePolicies API operation for Amazon CloudWatch Logs.
//
-// 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).
+// Lists the resource policies in this account.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation GetLogGroupFields for usage and error information.
+// API operation DescribeResourcePolicies for usage and error information.
//
// Returned Error Types:
//
// - InvalidParameterException
// A parameter is specified incorrectly.
//
-// - LimitExceededException
-// You have reached the maximum number of resources that can be created.
-//
-// - ResourceNotFoundException
-// The specified resource does not exist.
-//
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogGroupFields
-func (c *CloudWatchLogs) GetLogGroupFields(input *GetLogGroupFieldsInput) (*GetLogGroupFieldsOutput, error) {
- req, out := c.GetLogGroupFieldsRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeResourcePolicies
+func (c *CloudWatchLogs) DescribeResourcePolicies(input *DescribeResourcePoliciesInput) (*DescribeResourcePoliciesOutput, error) {
+ req, out := c.DescribeResourcePoliciesRequest(input)
return out, req.Send()
}
-// GetLogGroupFieldsWithContext is the same as GetLogGroupFields with the addition of
+// DescribeResourcePoliciesWithContext is the same as DescribeResourcePolicies with the addition of
// the ability to pass a context and additional request options.
//
-// See GetLogGroupFields for details on how to use this API operation.
+// See DescribeResourcePolicies for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) GetLogGroupFieldsWithContext(ctx aws.Context, input *GetLogGroupFieldsInput, opts ...request.Option) (*GetLogGroupFieldsOutput, error) {
- req, out := c.GetLogGroupFieldsRequest(input)
+func (c *CloudWatchLogs) DescribeResourcePoliciesWithContext(ctx aws.Context, input *DescribeResourcePoliciesInput, opts ...request.Option) (*DescribeResourcePoliciesOutput, error) {
+ req, out := c.DescribeResourcePoliciesRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opGetLogRecord = "GetLogRecord"
+const opDescribeSubscriptionFilters = "DescribeSubscriptionFilters"
-// GetLogRecordRequest generates a "aws/request.Request" representing the
-// client's request for the GetLogRecord operation. The "output" return
+// DescribeSubscriptionFiltersRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeSubscriptionFilters operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See GetLogRecord for more information on using the GetLogRecord
+// See DescribeSubscriptionFilters for more information on using the DescribeSubscriptionFilters
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the GetLogRecordRequest method.
-// req, resp := client.GetLogRecordRequest(params)
+// // Example sending a request using the DescribeSubscriptionFiltersRequest method.
+// req, resp := client.DescribeSubscriptionFiltersRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogRecord
-func (c *CloudWatchLogs) GetLogRecordRequest(input *GetLogRecordInput) (req *request.Request, output *GetLogRecordOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeSubscriptionFilters
+func (c *CloudWatchLogs) DescribeSubscriptionFiltersRequest(input *DescribeSubscriptionFiltersInput) (req *request.Request, output *DescribeSubscriptionFiltersOutput) {
op := &request.Operation{
- Name: opGetLogRecord,
+ Name: opDescribeSubscriptionFilters,
HTTPMethod: "POST",
HTTPPath: "/",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"nextToken"},
+ OutputTokens: []string{"nextToken"},
+ LimitToken: "limit",
+ TruncationToken: "",
+ },
}
if input == nil {
- input = &GetLogRecordInput{}
+ input = &DescribeSubscriptionFiltersInput{}
}
- output = &GetLogRecordOutput{}
+ output = &DescribeSubscriptionFiltersOutput{}
req = c.newRequest(op, input, output)
return
}
-// GetLogRecord API operation for Amazon CloudWatch Logs.
-//
-// 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.
+// DescribeSubscriptionFilters API operation for Amazon CloudWatch Logs.
//
-// The full unparsed log event is returned within @message.
+// 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.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation GetLogRecord for usage and error information.
+// API operation DescribeSubscriptionFilters for usage and error information.
//
// Returned Error Types:
//
// - InvalidParameterException
// A parameter is specified incorrectly.
//
-// - LimitExceededException
-// You have reached the maximum number of resources that can be created.
-//
// - ResourceNotFoundException
// The specified resource does not exist.
//
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogRecord
-func (c *CloudWatchLogs) GetLogRecord(input *GetLogRecordInput) (*GetLogRecordOutput, error) {
- req, out := c.GetLogRecordRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeSubscriptionFilters
+func (c *CloudWatchLogs) DescribeSubscriptionFilters(input *DescribeSubscriptionFiltersInput) (*DescribeSubscriptionFiltersOutput, error) {
+ req, out := c.DescribeSubscriptionFiltersRequest(input)
return out, req.Send()
}
-// GetLogRecordWithContext is the same as GetLogRecord with the addition of
+// DescribeSubscriptionFiltersWithContext is the same as DescribeSubscriptionFilters with the addition of
// the ability to pass a context and additional request options.
//
-// See GetLogRecord for details on how to use this API operation.
+// See DescribeSubscriptionFilters for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) GetLogRecordWithContext(ctx aws.Context, input *GetLogRecordInput, opts ...request.Option) (*GetLogRecordOutput, error) {
- req, out := c.GetLogRecordRequest(input)
+func (c *CloudWatchLogs) DescribeSubscriptionFiltersWithContext(ctx aws.Context, input *DescribeSubscriptionFiltersInput, opts ...request.Option) (*DescribeSubscriptionFiltersOutput, error) {
+ req, out := c.DescribeSubscriptionFiltersRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opGetQueryResults = "GetQueryResults"
-
-// GetQueryResultsRequest generates a "aws/request.Request" representing the
-// client's request for the GetQueryResults operation. The "output" return
-// value will be populated with the request's response once the request completes
-// successfully.
-//
-// Use "Send" method on the returned Request to send the API call to the service.
-// the "output" return value is not valid until after Send returns without error.
-//
-// See GetQueryResults for more information on using the GetQueryResults
-// API call, and error handling.
-//
-// This method is useful when you want to inject custom logic or configuration
-// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+// DescribeSubscriptionFiltersPages iterates over the pages of a DescribeSubscriptionFilters operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
//
-// // Example sending a request using the GetQueryResultsRequest method.
-// req, resp := client.GetQueryResultsRequest(params)
+// See DescribeSubscriptionFilters method for more information on how to use this operation.
//
-// err := req.Send()
-// if err == nil { // resp is now filled
-// fmt.Println(resp)
-// }
+// Note: This operation can generate multiple requests to a service.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetQueryResults
-func (c *CloudWatchLogs) GetQueryResultsRequest(input *GetQueryResultsInput) (req *request.Request, output *GetQueryResultsOutput) {
- op := &request.Operation{
- Name: opGetQueryResults,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
+// // Example iterating over at most 3 pages of a DescribeSubscriptionFilters operation.
+// pageNum := 0
+// err := client.DescribeSubscriptionFiltersPages(params,
+// func(page *cloudwatchlogs.DescribeSubscriptionFiltersOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+func (c *CloudWatchLogs) DescribeSubscriptionFiltersPages(input *DescribeSubscriptionFiltersInput, fn func(*DescribeSubscriptionFiltersOutput, bool) bool) error {
+ return c.DescribeSubscriptionFiltersPagesWithContext(aws.BackgroundContext(), input, fn)
+}
- if input == nil {
- input = &GetQueryResultsInput{}
- }
-
- output = &GetQueryResultsOutput{}
- req = c.newRequest(op, input, output)
- return
-}
-
-// GetQueryResults API operation for Amazon CloudWatch Logs.
-//
-// 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 (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).
-//
-// 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).
-//
-// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
-// with awserr.Error's Code and Message methods to get detailed information about
-// the error.
-//
-// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation GetQueryResults for usage and error information.
-//
-// Returned Error Types:
-//
-// - InvalidParameterException
-// A parameter is specified incorrectly.
-//
-// - ResourceNotFoundException
-// The specified resource does not exist.
-//
-// - ServiceUnavailableException
-// The service cannot complete the request.
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetQueryResults
-func (c *CloudWatchLogs) GetQueryResults(input *GetQueryResultsInput) (*GetQueryResultsOutput, error) {
- req, out := c.GetQueryResultsRequest(input)
- return out, req.Send()
-}
-
-// GetQueryResultsWithContext is the same as GetQueryResults with the addition of
-// the ability to pass a context and additional request options.
-//
-// See GetQueryResults for details on how to use this API operation.
+// DescribeSubscriptionFiltersPagesWithContext same as DescribeSubscriptionFiltersPages except
+// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) GetQueryResultsWithContext(ctx aws.Context, input *GetQueryResultsInput, opts ...request.Option) (*GetQueryResultsOutput, error) {
- req, out := c.GetQueryResultsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
+func (c *CloudWatchLogs) DescribeSubscriptionFiltersPagesWithContext(ctx aws.Context, input *DescribeSubscriptionFiltersInput, fn func(*DescribeSubscriptionFiltersOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ EndPageOnSameToken: true,
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *DescribeSubscriptionFiltersInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.DescribeSubscriptionFiltersRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*DescribeSubscriptionFiltersOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
}
-const opListTagsForResource = "ListTagsForResource"
+const opDisassociateKmsKey = "DisassociateKmsKey"
-// ListTagsForResourceRequest generates a "aws/request.Request" representing the
-// client's request for the ListTagsForResource operation. The "output" return
+// DisassociateKmsKeyRequest generates a "aws/request.Request" representing the
+// client's request for the DisassociateKmsKey operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See ListTagsForResource for more information on using the ListTagsForResource
+// See DisassociateKmsKey for more information on using the DisassociateKmsKey
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the ListTagsForResourceRequest method.
-// req, resp := client.ListTagsForResourceRequest(params)
+// // Example sending a request using the DisassociateKmsKeyRequest method.
+// req, resp := client.DisassociateKmsKeyRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListTagsForResource
-func (c *CloudWatchLogs) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DisassociateKmsKey
+func (c *CloudWatchLogs) DisassociateKmsKeyRequest(input *DisassociateKmsKeyInput) (req *request.Request, output *DisassociateKmsKeyOutput) {
op := &request.Operation{
- Name: opListTagsForResource,
+ Name: opDisassociateKmsKey,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &ListTagsForResourceInput{}
+ input = &DisassociateKmsKeyInput{}
}
- output = &ListTagsForResourceOutput{}
+ output = &DisassociateKmsKeyOutput{}
req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
-// ListTagsForResource API operation for Amazon CloudWatch Logs.
+// DisassociateKmsKey API operation for Amazon CloudWatch Logs.
//
-// Displays the tags associated with a CloudWatch Logs resource. Currently,
-// log groups and destinations support tagging.
+// 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.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation ListTagsForResource for usage and error information.
+// API operation DisassociateKmsKey for usage and error information.
//
// Returned Error Types:
//
@@ -3529,212 +3689,251 @@ func (c *CloudWatchLogs) ListTagsForResourceRequest(input *ListTagsForResourceIn
// - ResourceNotFoundException
// The specified resource does not exist.
//
+// - OperationAbortedException
+// Multiple concurrent requests to update the same resource were in conflict.
+//
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListTagsForResource
-func (c *CloudWatchLogs) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
- req, out := c.ListTagsForResourceRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DisassociateKmsKey
+func (c *CloudWatchLogs) DisassociateKmsKey(input *DisassociateKmsKeyInput) (*DisassociateKmsKeyOutput, error) {
+ req, out := c.DisassociateKmsKeyRequest(input)
return out, req.Send()
}
-// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of
+// DisassociateKmsKeyWithContext is the same as DisassociateKmsKey with the addition of
// the ability to pass a context and additional request options.
//
-// See ListTagsForResource for details on how to use this API operation.
+// See DisassociateKmsKey for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) {
- req, out := c.ListTagsForResourceRequest(input)
+func (c *CloudWatchLogs) DisassociateKmsKeyWithContext(ctx aws.Context, input *DisassociateKmsKeyInput, opts ...request.Option) (*DisassociateKmsKeyOutput, error) {
+ req, out := c.DisassociateKmsKeyRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opListTagsLogGroup = "ListTagsLogGroup"
+const opFilterLogEvents = "FilterLogEvents"
-// ListTagsLogGroupRequest generates a "aws/request.Request" representing the
-// client's request for the ListTagsLogGroup operation. The "output" return
+// FilterLogEventsRequest generates a "aws/request.Request" representing the
+// client's request for the FilterLogEvents operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See ListTagsLogGroup for more information on using the ListTagsLogGroup
+// See FilterLogEvents for more information on using the FilterLogEvents
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the ListTagsLogGroupRequest method.
-// req, resp := client.ListTagsLogGroupRequest(params)
+// // Example sending a request using the FilterLogEventsRequest method.
+// req, resp := client.FilterLogEventsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListTagsLogGroup
-//
-// Deprecated: Please use the generic tagging API ListTagsForResource
-func (c *CloudWatchLogs) ListTagsLogGroupRequest(input *ListTagsLogGroupInput) (req *request.Request, output *ListTagsLogGroupOutput) {
- if c.Client.Config.Logger != nil {
- c.Client.Config.Logger.Log("This operation, ListTagsLogGroup, has been deprecated")
- }
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/FilterLogEvents
+func (c *CloudWatchLogs) FilterLogEventsRequest(input *FilterLogEventsInput) (req *request.Request, output *FilterLogEventsOutput) {
op := &request.Operation{
- Name: opListTagsLogGroup,
+ Name: opFilterLogEvents,
HTTPMethod: "POST",
HTTPPath: "/",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"nextToken"},
+ OutputTokens: []string{"nextToken"},
+ LimitToken: "limit",
+ TruncationToken: "",
+ },
}
if input == nil {
- input = &ListTagsLogGroupInput{}
+ input = &FilterLogEventsInput{}
}
- output = &ListTagsLogGroupOutput{}
+ output = &FilterLogEventsOutput{}
req = c.newRequest(op, input, output)
return
}
-// ListTagsLogGroup API operation for Amazon CloudWatch Logs.
+// FilterLogEvents API operation for Amazon CloudWatch Logs.
//
-// The ListTagsLogGroup operation is on the path to deprecation. We recommend
-// that you use ListTagsForResource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsForResource.html)
-// instead.
+// 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.
//
-// Lists the tags for the specified log group.
+// 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 (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation ListTagsLogGroup for usage and error information.
+// API operation FilterLogEvents for usage and error information.
//
// Returned Error Types:
//
+// - InvalidParameterException
+// A parameter is specified incorrectly.
+//
// - ResourceNotFoundException
// The specified resource does not exist.
//
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListTagsLogGroup
-//
-// Deprecated: Please use the generic tagging API ListTagsForResource
-func (c *CloudWatchLogs) ListTagsLogGroup(input *ListTagsLogGroupInput) (*ListTagsLogGroupOutput, error) {
- req, out := c.ListTagsLogGroupRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/FilterLogEvents
+func (c *CloudWatchLogs) FilterLogEvents(input *FilterLogEventsInput) (*FilterLogEventsOutput, error) {
+ req, out := c.FilterLogEventsRequest(input)
return out, req.Send()
}
-// ListTagsLogGroupWithContext is the same as ListTagsLogGroup with the addition of
+// FilterLogEventsWithContext is the same as FilterLogEvents with the addition of
// the ability to pass a context and additional request options.
//
-// See ListTagsLogGroup for details on how to use this API operation.
+// See FilterLogEvents for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-//
-// Deprecated: Please use the generic tagging API ListTagsForResource
-func (c *CloudWatchLogs) ListTagsLogGroupWithContext(ctx aws.Context, input *ListTagsLogGroupInput, opts ...request.Option) (*ListTagsLogGroupOutput, error) {
- req, out := c.ListTagsLogGroupRequest(input)
+func (c *CloudWatchLogs) FilterLogEventsWithContext(ctx aws.Context, input *FilterLogEventsInput, opts ...request.Option) (*FilterLogEventsOutput, error) {
+ req, out := c.FilterLogEventsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opPutAccountPolicy = "PutAccountPolicy"
-
-// PutAccountPolicyRequest generates a "aws/request.Request" representing the
-// client's request for the PutAccountPolicy operation. The "output" return
-// value will be populated with the request's response once the request completes
-// successfully.
+// FilterLogEventsPages iterates over the pages of a FilterLogEvents operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
//
-// Use "Send" method on the returned Request to send the API call to the service.
-// the "output" return value is not valid until after Send returns without error.
+// See FilterLogEvents method for more information on how to use this operation.
//
-// See PutAccountPolicy for more information on using the PutAccountPolicy
-// API call, and error handling.
+// Note: This operation can generate multiple requests to a service.
//
-// This method is useful when you want to inject custom logic or configuration
+// // Example iterating over at most 3 pages of a FilterLogEvents operation.
+// pageNum := 0
+// err := client.FilterLogEventsPages(params,
+// func(page *cloudwatchlogs.FilterLogEventsOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+func (c *CloudWatchLogs) FilterLogEventsPages(input *FilterLogEventsInput, fn func(*FilterLogEventsOutput, bool) bool) error {
+ return c.FilterLogEventsPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// FilterLogEventsPagesWithContext same as FilterLogEventsPages except
+// it takes a Context and allows setting request options on the pages.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CloudWatchLogs) FilterLogEventsPagesWithContext(ctx aws.Context, input *FilterLogEventsInput, fn func(*FilterLogEventsOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ EndPageOnSameToken: true,
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *FilterLogEventsInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.FilterLogEventsRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*FilterLogEventsOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opGetDataProtectionPolicy = "GetDataProtectionPolicy"
+
+// GetDataProtectionPolicyRequest generates a "aws/request.Request" representing the
+// client's request for the GetDataProtectionPolicy operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See GetDataProtectionPolicy for more information on using the GetDataProtectionPolicy
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the PutAccountPolicyRequest method.
-// req, resp := client.PutAccountPolicyRequest(params)
+// // Example sending a request using the GetDataProtectionPolicyRequest method.
+// req, resp := client.GetDataProtectionPolicyRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutAccountPolicy
-func (c *CloudWatchLogs) PutAccountPolicyRequest(input *PutAccountPolicyInput) (req *request.Request, output *PutAccountPolicyOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetDataProtectionPolicy
+func (c *CloudWatchLogs) GetDataProtectionPolicyRequest(input *GetDataProtectionPolicyInput) (req *request.Request, output *GetDataProtectionPolicyOutput) {
op := &request.Operation{
- Name: opPutAccountPolicy,
+ Name: opGetDataProtectionPolicy,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &PutAccountPolicyInput{}
+ input = &GetDataProtectionPolicyInput{}
}
- output = &PutAccountPolicyOutput{}
+ output = &GetDataProtectionPolicyOutput{}
req = c.newRequest(op, input, output)
return
}
-// PutAccountPolicy API operation for Amazon CloudWatch Logs.
-//
-// 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 (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, you must be signed on with the logs:PutDataProtectionPolicy
-// and logs:PutAccountPolicy permissions.
+// GetDataProtectionPolicy API operation for Amazon CloudWatch Logs.
//
-// The PutAccountPolicy operation applies to all log groups in the account.
-// You can also 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.
+// Returns information about a log group data protection policy.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation PutAccountPolicy for usage and error information.
+// API operation GetDataProtectionPolicy for usage and error information.
//
// Returned Error Types:
//
@@ -3744,554 +3943,471 @@ func (c *CloudWatchLogs) PutAccountPolicyRequest(input *PutAccountPolicyInput) (
// - OperationAbortedException
// Multiple concurrent requests to update the same resource were in conflict.
//
+// - ResourceNotFoundException
+// The specified resource does not exist.
+//
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// - LimitExceededException
-// You have reached the maximum number of resources that can be created.
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutAccountPolicy
-func (c *CloudWatchLogs) PutAccountPolicy(input *PutAccountPolicyInput) (*PutAccountPolicyOutput, error) {
- req, out := c.PutAccountPolicyRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetDataProtectionPolicy
+func (c *CloudWatchLogs) GetDataProtectionPolicy(input *GetDataProtectionPolicyInput) (*GetDataProtectionPolicyOutput, error) {
+ req, out := c.GetDataProtectionPolicyRequest(input)
return out, req.Send()
}
-// PutAccountPolicyWithContext is the same as PutAccountPolicy with the addition of
+// GetDataProtectionPolicyWithContext is the same as GetDataProtectionPolicy with the addition of
// the ability to pass a context and additional request options.
//
-// See PutAccountPolicy for details on how to use this API operation.
+// See GetDataProtectionPolicy for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) PutAccountPolicyWithContext(ctx aws.Context, input *PutAccountPolicyInput, opts ...request.Option) (*PutAccountPolicyOutput, error) {
- req, out := c.PutAccountPolicyRequest(input)
+func (c *CloudWatchLogs) GetDataProtectionPolicyWithContext(ctx aws.Context, input *GetDataProtectionPolicyInput, opts ...request.Option) (*GetDataProtectionPolicyOutput, error) {
+ req, out := c.GetDataProtectionPolicyRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opPutDataProtectionPolicy = "PutDataProtectionPolicy"
+const opGetDelivery = "GetDelivery"
-// PutDataProtectionPolicyRequest generates a "aws/request.Request" representing the
-// client's request for the PutDataProtectionPolicy operation. The "output" return
+// GetDeliveryRequest generates a "aws/request.Request" representing the
+// client's request for the GetDelivery operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See PutDataProtectionPolicy for more information on using the PutDataProtectionPolicy
+// See GetDelivery for more information on using the GetDelivery
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the PutDataProtectionPolicyRequest method.
-// req, resp := client.PutDataProtectionPolicyRequest(params)
+// // Example sending a request using the GetDeliveryRequest method.
+// req, resp := client.GetDeliveryRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDataProtectionPolicy
-func (c *CloudWatchLogs) PutDataProtectionPolicyRequest(input *PutDataProtectionPolicyInput) (req *request.Request, output *PutDataProtectionPolicyOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetDelivery
+func (c *CloudWatchLogs) GetDeliveryRequest(input *GetDeliveryInput) (req *request.Request, output *GetDeliveryOutput) {
op := &request.Operation{
- Name: opPutDataProtectionPolicy,
+ Name: opGetDelivery,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &PutDataProtectionPolicyInput{}
+ input = &GetDeliveryInput{}
}
- output = &PutDataProtectionPolicyOutput{}
+ output = &GetDeliveryOutput{}
req = c.newRequest(op, input, output)
return
}
-// PutDataProtectionPolicy API operation for Amazon CloudWatch Logs.
-//
-// 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.
+// GetDelivery API operation for Amazon CloudWatch Logs.
//
-// 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).
+// Returns complete information about one delivery. A delivery is a connection
+// between a logical delivery source and a logical delivery destination
//
-// 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.
+// 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)
+// operation.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation PutDataProtectionPolicy for usage and error information.
+// API operation GetDelivery for usage and error information.
//
// Returned Error Types:
//
-// - InvalidParameterException
-// A parameter is specified incorrectly.
-//
-// - LimitExceededException
-// You have reached the maximum number of resources that can be created.
-//
-// - OperationAbortedException
-// Multiple concurrent requests to update the same resource were in conflict.
-//
// - ResourceNotFoundException
// The specified resource does not exist.
//
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDataProtectionPolicy
-func (c *CloudWatchLogs) PutDataProtectionPolicy(input *PutDataProtectionPolicyInput) (*PutDataProtectionPolicyOutput, error) {
- req, out := c.PutDataProtectionPolicyRequest(input)
+// - ValidationException
+// One of the parameters for the request is not valid.
+//
+// - ServiceQuotaExceededException
+// This request exceeds a service quota.
+//
+// - ThrottlingException
+// The request was throttled because of quota limits.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetDelivery
+func (c *CloudWatchLogs) GetDelivery(input *GetDeliveryInput) (*GetDeliveryOutput, error) {
+ req, out := c.GetDeliveryRequest(input)
return out, req.Send()
}
-// PutDataProtectionPolicyWithContext is the same as PutDataProtectionPolicy with the addition of
+// GetDeliveryWithContext is the same as GetDelivery with the addition of
// the ability to pass a context and additional request options.
//
-// See PutDataProtectionPolicy for details on how to use this API operation.
+// See GetDelivery for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) PutDataProtectionPolicyWithContext(ctx aws.Context, input *PutDataProtectionPolicyInput, opts ...request.Option) (*PutDataProtectionPolicyOutput, error) {
- req, out := c.PutDataProtectionPolicyRequest(input)
+func (c *CloudWatchLogs) GetDeliveryWithContext(ctx aws.Context, input *GetDeliveryInput, opts ...request.Option) (*GetDeliveryOutput, error) {
+ req, out := c.GetDeliveryRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opPutDestination = "PutDestination"
+const opGetDeliveryDestination = "GetDeliveryDestination"
-// PutDestinationRequest generates a "aws/request.Request" representing the
-// client's request for the PutDestination operation. The "output" return
+// GetDeliveryDestinationRequest generates a "aws/request.Request" representing the
+// client's request for the GetDeliveryDestination operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See PutDestination for more information on using the PutDestination
+// See GetDeliveryDestination for more information on using the GetDeliveryDestination
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the PutDestinationRequest method.
-// req, resp := client.PutDestinationRequest(params)
+// // Example sending a request using the GetDeliveryDestinationRequest method.
+// req, resp := client.GetDeliveryDestinationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDestination
-func (c *CloudWatchLogs) PutDestinationRequest(input *PutDestinationInput) (req *request.Request, output *PutDestinationOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetDeliveryDestination
+func (c *CloudWatchLogs) GetDeliveryDestinationRequest(input *GetDeliveryDestinationInput) (req *request.Request, output *GetDeliveryDestinationOutput) {
op := &request.Operation{
- Name: opPutDestination,
+ Name: opGetDeliveryDestination,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &PutDestinationInput{}
+ input = &GetDeliveryDestinationInput{}
}
- output = &PutDestinationOutput{}
+ output = &GetDeliveryDestinationOutput{}
req = c.newRequest(op, input, output)
return
}
-// PutDestination API operation for Amazon CloudWatch Logs.
-//
-// 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 (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html).
-//
-// 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 (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutSubscriptionFilter.html)
-// against this destination. To enable this, the destination owner must call
-// PutDestinationPolicy (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDestinationPolicy.html)
-// after PutDestination.
+// GetDeliveryDestination API operation for Amazon CloudWatch Logs.
//
-// To perform a PutDestination operation, you must also have the iam:PassRole
-// permission.
+// Retrieves complete information about one delivery destination.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation PutDestination for usage and error information.
+// API operation GetDeliveryDestination for usage and error information.
//
// Returned Error Types:
//
-// - InvalidParameterException
-// A parameter is specified incorrectly.
-//
-// - OperationAbortedException
-// Multiple concurrent requests to update the same resource were in conflict.
+// - ResourceNotFoundException
+// The specified resource does not exist.
//
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDestination
-func (c *CloudWatchLogs) PutDestination(input *PutDestinationInput) (*PutDestinationOutput, error) {
- req, out := c.PutDestinationRequest(input)
+// - ValidationException
+// One of the parameters for the request is not valid.
+//
+// - ServiceQuotaExceededException
+// This request exceeds a service quota.
+//
+// - ThrottlingException
+// The request was throttled because of quota limits.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetDeliveryDestination
+func (c *CloudWatchLogs) GetDeliveryDestination(input *GetDeliveryDestinationInput) (*GetDeliveryDestinationOutput, error) {
+ req, out := c.GetDeliveryDestinationRequest(input)
return out, req.Send()
}
-// PutDestinationWithContext is the same as PutDestination with the addition of
+// GetDeliveryDestinationWithContext is the same as GetDeliveryDestination with the addition of
// the ability to pass a context and additional request options.
//
-// See PutDestination for details on how to use this API operation.
+// See GetDeliveryDestination for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) PutDestinationWithContext(ctx aws.Context, input *PutDestinationInput, opts ...request.Option) (*PutDestinationOutput, error) {
- req, out := c.PutDestinationRequest(input)
+func (c *CloudWatchLogs) GetDeliveryDestinationWithContext(ctx aws.Context, input *GetDeliveryDestinationInput, opts ...request.Option) (*GetDeliveryDestinationOutput, error) {
+ req, out := c.GetDeliveryDestinationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opPutDestinationPolicy = "PutDestinationPolicy"
+const opGetDeliveryDestinationPolicy = "GetDeliveryDestinationPolicy"
-// PutDestinationPolicyRequest generates a "aws/request.Request" representing the
-// client's request for the PutDestinationPolicy operation. The "output" return
+// GetDeliveryDestinationPolicyRequest generates a "aws/request.Request" representing the
+// client's request for the GetDeliveryDestinationPolicy operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See PutDestinationPolicy for more information on using the PutDestinationPolicy
+// See GetDeliveryDestinationPolicy for more information on using the GetDeliveryDestinationPolicy
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the PutDestinationPolicyRequest method.
-// req, resp := client.PutDestinationPolicyRequest(params)
+// // Example sending a request using the GetDeliveryDestinationPolicyRequest method.
+// req, resp := client.GetDeliveryDestinationPolicyRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDestinationPolicy
-func (c *CloudWatchLogs) PutDestinationPolicyRequest(input *PutDestinationPolicyInput) (req *request.Request, output *PutDestinationPolicyOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetDeliveryDestinationPolicy
+func (c *CloudWatchLogs) GetDeliveryDestinationPolicyRequest(input *GetDeliveryDestinationPolicyInput) (req *request.Request, output *GetDeliveryDestinationPolicyOutput) {
op := &request.Operation{
- Name: opPutDestinationPolicy,
+ Name: opGetDeliveryDestinationPolicy,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &PutDestinationPolicyInput{}
+ input = &GetDeliveryDestinationPolicyInput{}
}
- output = &PutDestinationPolicyOutput{}
+ output = &GetDeliveryDestinationPolicyOutput{}
req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
-// PutDestinationPolicy API operation for Amazon CloudWatch Logs.
+// GetDeliveryDestinationPolicy API operation for Amazon CloudWatch Logs.
//
-// Creates or updates an access policy associated with an existing destination.
-// An access policy is an IAM policy document (https://docs.aws.amazon.com/IAM/latest/UserGuide/policies_overview.html)
-// that is used to authorize claims to register a subscription filter against
-// a given destination.
+// 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).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation PutDestinationPolicy for usage and error information.
+// API operation GetDeliveryDestinationPolicy for usage and error information.
//
// Returned Error Types:
//
-// - InvalidParameterException
-// A parameter is specified incorrectly.
-//
-// - OperationAbortedException
-// Multiple concurrent requests to update the same resource were in conflict.
-//
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDestinationPolicy
-func (c *CloudWatchLogs) PutDestinationPolicy(input *PutDestinationPolicyInput) (*PutDestinationPolicyOutput, error) {
- req, out := c.PutDestinationPolicyRequest(input)
+// - ValidationException
+// One of the parameters for the request is not valid.
+//
+// - ResourceNotFoundException
+// The specified resource does not exist.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetDeliveryDestinationPolicy
+func (c *CloudWatchLogs) GetDeliveryDestinationPolicy(input *GetDeliveryDestinationPolicyInput) (*GetDeliveryDestinationPolicyOutput, error) {
+ req, out := c.GetDeliveryDestinationPolicyRequest(input)
return out, req.Send()
}
-// PutDestinationPolicyWithContext is the same as PutDestinationPolicy with the addition of
+// GetDeliveryDestinationPolicyWithContext is the same as GetDeliveryDestinationPolicy with the addition of
// the ability to pass a context and additional request options.
//
-// See PutDestinationPolicy for details on how to use this API operation.
+// See GetDeliveryDestinationPolicy for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) PutDestinationPolicyWithContext(ctx aws.Context, input *PutDestinationPolicyInput, opts ...request.Option) (*PutDestinationPolicyOutput, error) {
- req, out := c.PutDestinationPolicyRequest(input)
+func (c *CloudWatchLogs) GetDeliveryDestinationPolicyWithContext(ctx aws.Context, input *GetDeliveryDestinationPolicyInput, opts ...request.Option) (*GetDeliveryDestinationPolicyOutput, error) {
+ req, out := c.GetDeliveryDestinationPolicyRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opPutLogEvents = "PutLogEvents"
+const opGetDeliverySource = "GetDeliverySource"
-// PutLogEventsRequest generates a "aws/request.Request" representing the
-// client's request for the PutLogEvents operation. The "output" return
+// GetDeliverySourceRequest generates a "aws/request.Request" representing the
+// client's request for the GetDeliverySource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See PutLogEvents for more information on using the PutLogEvents
+// See GetDeliverySource for more information on using the GetDeliverySource
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the PutLogEventsRequest method.
-// req, resp := client.PutLogEventsRequest(params)
+// // Example sending a request using the GetDeliverySourceRequest method.
+// req, resp := client.GetDeliverySourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutLogEvents
-func (c *CloudWatchLogs) PutLogEventsRequest(input *PutLogEventsInput) (req *request.Request, output *PutLogEventsOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetDeliverySource
+func (c *CloudWatchLogs) GetDeliverySourceRequest(input *GetDeliverySourceInput) (req *request.Request, output *GetDeliverySourceOutput) {
op := &request.Operation{
- Name: opPutLogEvents,
+ Name: opGetDeliverySource,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &PutLogEventsInput{}
+ input = &GetDeliverySourceInput{}
}
- output = &PutLogEventsOutput{}
+ output = &GetDeliverySourceOutput{}
req = c.newRequest(op, input, output)
return
}
-// PutLogEvents API operation for Amazon CloudWatch Logs.
-//
-// 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:
-//
-// - The maximum batch size is 1,048,576 bytes. This size is calculated as
-// the sum of all event messages in UTF-8, plus 26 bytes for each log event.
-//
-// - None of the log events in the batch can be more than 2 hours in the
-// future.
-//
-// - None of the log events in the batch can be more than 14 days in the
-// past. Also, none of the log events can be from earlier than the retention
-// period of the log group.
-//
-// - The log events in the batch must be in chronological order by their
-// timestamp. The timestamp is the time that the event occurred, expressed
-// as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. (In Amazon
-// Web Services Tools for PowerShell and the Amazon Web Services SDK for
-// .NET, the timestamp is specified in .NET format: yyyy-mm-ddThh:mm:ss.
-// For example, 2017-09-15T13:45:30.)
-//
-// - A batch of log events in a single request cannot span more than 24 hours.
-// Otherwise, the operation fails.
-//
-// - Each log event can be no larger than 256 KB.
-//
-// - The maximum number of log events in a batch is 10,000.
-//
-// - The quota of five requests per second per log stream has been removed.
-// Instead, PutLogEvents actions are throttled based on a per-second per-account
-// quota. You can request an increase to the per-second throttling quota
-// by using the Service Quotas service.
+// GetDeliverySource API operation for Amazon CloudWatch Logs.
//
-// If a call to PutLogEvents returns "UnrecognizedClientException" the most
-// likely cause is a non-valid Amazon Web Services access key ID or secret key.
+// Retrieves complete information about one delivery source.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation PutLogEvents for usage and error information.
+// API operation GetDeliverySource for usage and error information.
//
// Returned Error Types:
//
-// - InvalidParameterException
-// A parameter is specified incorrectly.
-//
-// - InvalidSequenceTokenException
-// The sequence token is not valid. You can get the correct sequence token in
-// the expectedSequenceToken field in the InvalidSequenceTokenException message.
-//
-// PutLogEvents actions are now always accepted and never return InvalidSequenceTokenException
-// regardless of receiving an invalid sequence token.
-//
-// - DataAlreadyAcceptedException
-// The event was already logged.
-//
-// PutLogEvents actions are now always accepted and never return DataAlreadyAcceptedException
-// regardless of whether a given batch of log events has already been accepted.
-//
// - ResourceNotFoundException
// The specified resource does not exist.
//
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// - UnrecognizedClientException
-// The most likely cause is an Amazon Web Services access key ID or secret key
-// that's not valid.
+// - ValidationException
+// One of the parameters for the request is not valid.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutLogEvents
-func (c *CloudWatchLogs) PutLogEvents(input *PutLogEventsInput) (*PutLogEventsOutput, error) {
- req, out := c.PutLogEventsRequest(input)
+// - ServiceQuotaExceededException
+// This request exceeds a service quota.
+//
+// - ThrottlingException
+// The request was throttled because of quota limits.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetDeliverySource
+func (c *CloudWatchLogs) GetDeliverySource(input *GetDeliverySourceInput) (*GetDeliverySourceOutput, error) {
+ req, out := c.GetDeliverySourceRequest(input)
return out, req.Send()
}
-// PutLogEventsWithContext is the same as PutLogEvents with the addition of
+// GetDeliverySourceWithContext is the same as GetDeliverySource with the addition of
// the ability to pass a context and additional request options.
//
-// See PutLogEvents for details on how to use this API operation.
+// See GetDeliverySource for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) PutLogEventsWithContext(ctx aws.Context, input *PutLogEventsInput, opts ...request.Option) (*PutLogEventsOutput, error) {
- req, out := c.PutLogEventsRequest(input)
+func (c *CloudWatchLogs) GetDeliverySourceWithContext(ctx aws.Context, input *GetDeliverySourceInput, opts ...request.Option) (*GetDeliverySourceOutput, error) {
+ req, out := c.GetDeliverySourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opPutMetricFilter = "PutMetricFilter"
+const opGetLogEvents = "GetLogEvents"
-// PutMetricFilterRequest generates a "aws/request.Request" representing the
-// client's request for the PutMetricFilter operation. The "output" return
+// GetLogEventsRequest generates a "aws/request.Request" representing the
+// client's request for the GetLogEvents operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See PutMetricFilter for more information on using the PutMetricFilter
+// See GetLogEvents for more information on using the GetLogEvents
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the PutMetricFilterRequest method.
-// req, resp := client.PutMetricFilterRequest(params)
+// // Example sending a request using the GetLogEventsRequest method.
+// req, resp := client.GetLogEventsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutMetricFilter
-func (c *CloudWatchLogs) PutMetricFilterRequest(input *PutMetricFilterInput) (req *request.Request, output *PutMetricFilterOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogEvents
+func (c *CloudWatchLogs) GetLogEventsRequest(input *GetLogEventsInput) (req *request.Request, output *GetLogEventsOutput) {
op := &request.Operation{
- Name: opPutMetricFilter,
+ Name: opGetLogEvents,
HTTPMethod: "POST",
HTTPPath: "/",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"nextToken"},
+ OutputTokens: []string{"nextForwardToken"},
+ LimitToken: "limit",
+ TruncationToken: "",
+ },
}
if input == nil {
- input = &PutMetricFilterInput{}
+ input = &GetLogEventsInput{}
}
- output = &PutMetricFilterOutput{}
+ output = &GetLogEventsOutput{}
req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
-// PutMetricFilter API operation for Amazon CloudWatch Logs.
-//
-// 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 (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.
+// GetLogEvents API operation for Amazon CloudWatch Logs.
//
-// When you create a metric filter, you can also optionally assign a unit and
-// dimensions to the metric that is created.
+// Lists log events from the specified log stream. You can list all of the log
+// events or filter using a time range.
//
-// 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.
+// 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.
//
-// CloudWatch Logs might disable a metric filter if it generates 1,000 different
-// name/value pairs for your specified dimensions within one hour.
+// 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).
//
-// 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).
+// 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.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation PutMetricFilter for usage and error information.
+// API operation GetLogEvents for usage and error information.
//
// Returned Error Types:
//
@@ -4301,100 +4417,152 @@ func (c *CloudWatchLogs) PutMetricFilterRequest(input *PutMetricFilterInput) (re
// - ResourceNotFoundException
// The specified resource does not exist.
//
-// - OperationAbortedException
-// Multiple concurrent requests to update the same resource were in conflict.
-//
-// - LimitExceededException
-// You have reached the maximum number of resources that can be created.
-//
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutMetricFilter
-func (c *CloudWatchLogs) PutMetricFilter(input *PutMetricFilterInput) (*PutMetricFilterOutput, error) {
- req, out := c.PutMetricFilterRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogEvents
+func (c *CloudWatchLogs) GetLogEvents(input *GetLogEventsInput) (*GetLogEventsOutput, error) {
+ req, out := c.GetLogEventsRequest(input)
return out, req.Send()
}
-// PutMetricFilterWithContext is the same as PutMetricFilter with the addition of
+// GetLogEventsWithContext is the same as GetLogEvents with the addition of
// the ability to pass a context and additional request options.
//
-// See PutMetricFilter for details on how to use this API operation.
+// See GetLogEvents for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) PutMetricFilterWithContext(ctx aws.Context, input *PutMetricFilterInput, opts ...request.Option) (*PutMetricFilterOutput, error) {
- req, out := c.PutMetricFilterRequest(input)
+func (c *CloudWatchLogs) GetLogEventsWithContext(ctx aws.Context, input *GetLogEventsInput, opts ...request.Option) (*GetLogEventsOutput, error) {
+ req, out := c.GetLogEventsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opPutQueryDefinition = "PutQueryDefinition"
+// GetLogEventsPages iterates over the pages of a GetLogEvents operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See GetLogEvents method for more information on how to use this operation.
+//
+// Note: This operation can generate multiple requests to a service.
+//
+// // Example iterating over at most 3 pages of a GetLogEvents operation.
+// pageNum := 0
+// err := client.GetLogEventsPages(params,
+// func(page *cloudwatchlogs.GetLogEventsOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+func (c *CloudWatchLogs) GetLogEventsPages(input *GetLogEventsInput, fn func(*GetLogEventsOutput, bool) bool) error {
+ return c.GetLogEventsPagesWithContext(aws.BackgroundContext(), input, fn)
+}
-// PutQueryDefinitionRequest generates a "aws/request.Request" representing the
-// client's request for the PutQueryDefinition operation. The "output" return
+// GetLogEventsPagesWithContext same as GetLogEventsPages except
+// it takes a Context and allows setting request options on the pages.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CloudWatchLogs) GetLogEventsPagesWithContext(ctx aws.Context, input *GetLogEventsInput, fn func(*GetLogEventsOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ EndPageOnSameToken: true,
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *GetLogEventsInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.GetLogEventsRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*GetLogEventsOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opGetLogGroupFields = "GetLogGroupFields"
+
+// GetLogGroupFieldsRequest generates a "aws/request.Request" representing the
+// client's request for the GetLogGroupFields operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See PutQueryDefinition for more information on using the PutQueryDefinition
+// See GetLogGroupFields for more information on using the GetLogGroupFields
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the PutQueryDefinitionRequest method.
-// req, resp := client.PutQueryDefinitionRequest(params)
+// // Example sending a request using the GetLogGroupFieldsRequest method.
+// req, resp := client.GetLogGroupFieldsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutQueryDefinition
-func (c *CloudWatchLogs) PutQueryDefinitionRequest(input *PutQueryDefinitionInput) (req *request.Request, output *PutQueryDefinitionOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogGroupFields
+func (c *CloudWatchLogs) GetLogGroupFieldsRequest(input *GetLogGroupFieldsInput) (req *request.Request, output *GetLogGroupFieldsOutput) {
op := &request.Operation{
- Name: opPutQueryDefinition,
+ Name: opGetLogGroupFields,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &PutQueryDefinitionInput{}
+ input = &GetLogGroupFieldsInput{}
}
- output = &PutQueryDefinitionOutput{}
+ output = &GetLogGroupFieldsOutput{}
req = c.newRequest(op, input, output)
return
}
-// PutQueryDefinition API operation for Amazon CloudWatch Logs.
+// GetLogGroupFields API operation for Amazon CloudWatch Logs.
//
-// Creates or updates a query definition for CloudWatch Logs Insights. For more
-// information, see Analyzing Log Data with CloudWatch Logs Insights (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AnalyzingLogData.html).
+// 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.
//
-// 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 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.
//
-// You must have the logs:PutQueryDefinition permission to be able to perform
-// this operation.
+// 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 (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_AnalyzeLogData-discoverable-fields.html).
+//
+// 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 (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation PutQueryDefinition for usage and error information.
+// API operation GetLogGroupFields for usage and error information.
//
// Returned Error Types:
//
@@ -4410,81 +4578,84 @@ func (c *CloudWatchLogs) PutQueryDefinitionRequest(input *PutQueryDefinitionInpu
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutQueryDefinition
-func (c *CloudWatchLogs) PutQueryDefinition(input *PutQueryDefinitionInput) (*PutQueryDefinitionOutput, error) {
- req, out := c.PutQueryDefinitionRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogGroupFields
+func (c *CloudWatchLogs) GetLogGroupFields(input *GetLogGroupFieldsInput) (*GetLogGroupFieldsOutput, error) {
+ req, out := c.GetLogGroupFieldsRequest(input)
return out, req.Send()
}
-// PutQueryDefinitionWithContext is the same as PutQueryDefinition with the addition of
+// GetLogGroupFieldsWithContext is the same as GetLogGroupFields with the addition of
// the ability to pass a context and additional request options.
//
-// See PutQueryDefinition for details on how to use this API operation.
+// See GetLogGroupFields for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) PutQueryDefinitionWithContext(ctx aws.Context, input *PutQueryDefinitionInput, opts ...request.Option) (*PutQueryDefinitionOutput, error) {
- req, out := c.PutQueryDefinitionRequest(input)
+func (c *CloudWatchLogs) GetLogGroupFieldsWithContext(ctx aws.Context, input *GetLogGroupFieldsInput, opts ...request.Option) (*GetLogGroupFieldsOutput, error) {
+ req, out := c.GetLogGroupFieldsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opPutResourcePolicy = "PutResourcePolicy"
+const opGetLogRecord = "GetLogRecord"
-// PutResourcePolicyRequest generates a "aws/request.Request" representing the
-// client's request for the PutResourcePolicy operation. The "output" return
+// GetLogRecordRequest generates a "aws/request.Request" representing the
+// client's request for the GetLogRecord operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See PutResourcePolicy for more information on using the PutResourcePolicy
+// See GetLogRecord for more information on using the GetLogRecord
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the PutResourcePolicyRequest method.
-// req, resp := client.PutResourcePolicyRequest(params)
+// // Example sending a request using the GetLogRecordRequest method.
+// req, resp := client.GetLogRecordRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutResourcePolicy
-func (c *CloudWatchLogs) PutResourcePolicyRequest(input *PutResourcePolicyInput) (req *request.Request, output *PutResourcePolicyOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogRecord
+func (c *CloudWatchLogs) GetLogRecordRequest(input *GetLogRecordInput) (req *request.Request, output *GetLogRecordOutput) {
op := &request.Operation{
- Name: opPutResourcePolicy,
+ Name: opGetLogRecord,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &PutResourcePolicyInput{}
+ input = &GetLogRecordInput{}
}
- output = &PutResourcePolicyOutput{}
+ output = &GetLogRecordOutput{}
req = c.newRequest(op, input, output)
return
}
-// PutResourcePolicy API operation for Amazon CloudWatch Logs.
+// GetLogRecord API operation for Amazon CloudWatch Logs.
//
-// 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.
+// 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.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation PutResourcePolicy for usage and error information.
+// API operation GetLogRecord for usage and error information.
//
// Returned Error Types:
//
@@ -4494,103 +4665,103 @@ func (c *CloudWatchLogs) PutResourcePolicyRequest(input *PutResourcePolicyInput)
// - LimitExceededException
// You have reached the maximum number of resources that can be created.
//
+// - ResourceNotFoundException
+// The specified resource does not exist.
+//
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutResourcePolicy
-func (c *CloudWatchLogs) PutResourcePolicy(input *PutResourcePolicyInput) (*PutResourcePolicyOutput, error) {
- req, out := c.PutResourcePolicyRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogRecord
+func (c *CloudWatchLogs) GetLogRecord(input *GetLogRecordInput) (*GetLogRecordOutput, error) {
+ req, out := c.GetLogRecordRequest(input)
return out, req.Send()
}
-// PutResourcePolicyWithContext is the same as PutResourcePolicy with the addition of
+// GetLogRecordWithContext is the same as GetLogRecord with the addition of
// the ability to pass a context and additional request options.
//
-// See PutResourcePolicy for details on how to use this API operation.
+// See GetLogRecord for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) PutResourcePolicyWithContext(ctx aws.Context, input *PutResourcePolicyInput, opts ...request.Option) (*PutResourcePolicyOutput, error) {
- req, out := c.PutResourcePolicyRequest(input)
+func (c *CloudWatchLogs) GetLogRecordWithContext(ctx aws.Context, input *GetLogRecordInput, opts ...request.Option) (*GetLogRecordOutput, error) {
+ req, out := c.GetLogRecordRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opPutRetentionPolicy = "PutRetentionPolicy"
+const opGetQueryResults = "GetQueryResults"
-// PutRetentionPolicyRequest generates a "aws/request.Request" representing the
-// client's request for the PutRetentionPolicy operation. The "output" return
+// GetQueryResultsRequest generates a "aws/request.Request" representing the
+// client's request for the GetQueryResults operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See PutRetentionPolicy for more information on using the PutRetentionPolicy
+// See GetQueryResults for more information on using the GetQueryResults
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the PutRetentionPolicyRequest method.
-// req, resp := client.PutRetentionPolicyRequest(params)
+// // Example sending a request using the GetQueryResultsRequest method.
+// req, resp := client.GetQueryResultsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutRetentionPolicy
-func (c *CloudWatchLogs) PutRetentionPolicyRequest(input *PutRetentionPolicyInput) (req *request.Request, output *PutRetentionPolicyOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetQueryResults
+func (c *CloudWatchLogs) GetQueryResultsRequest(input *GetQueryResultsInput) (req *request.Request, output *GetQueryResultsOutput) {
op := &request.Operation{
- Name: opPutRetentionPolicy,
+ Name: opGetQueryResults,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &PutRetentionPolicyInput{}
+ input = &GetQueryResultsInput{}
}
- output = &PutRetentionPolicyOutput{}
+ output = &GetQueryResultsOutput{}
req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
-// PutRetentionPolicy API operation for Amazon CloudWatch Logs.
+// GetQueryResults API operation for Amazon CloudWatch Logs.
//
-// 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.
+// Returns the results from the specified query.
//
-// 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.
+// 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 (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_GetLogRecord.html)
+// operation to get the full log record.
//
-// 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.
+// 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).
//
-// When log events reach their retention setting they are marked for deletion.
-// After they are marked for deletion, they do not add to your archival storage
-// costs anymore, even if they are not actually deleted until later. These log
-// events marked for deletion are also not included when you use an API to retrieve
-// the storedBytes value to see how many bytes a log group is storing.
+// 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).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation PutRetentionPolicy for usage and error information.
+// API operation GetQueryResults for usage and error information.
//
// Returned Error Types:
//
@@ -4600,113 +4771,83 @@ func (c *CloudWatchLogs) PutRetentionPolicyRequest(input *PutRetentionPolicyInpu
// - ResourceNotFoundException
// The specified resource does not exist.
//
-// - OperationAbortedException
-// Multiple concurrent requests to update the same resource were in conflict.
-//
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutRetentionPolicy
-func (c *CloudWatchLogs) PutRetentionPolicy(input *PutRetentionPolicyInput) (*PutRetentionPolicyOutput, error) {
- req, out := c.PutRetentionPolicyRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetQueryResults
+func (c *CloudWatchLogs) GetQueryResults(input *GetQueryResultsInput) (*GetQueryResultsOutput, error) {
+ req, out := c.GetQueryResultsRequest(input)
return out, req.Send()
}
-// PutRetentionPolicyWithContext is the same as PutRetentionPolicy with the addition of
+// GetQueryResultsWithContext is the same as GetQueryResults with the addition of
// the ability to pass a context and additional request options.
//
-// See PutRetentionPolicy for details on how to use this API operation.
+// See GetQueryResults for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) PutRetentionPolicyWithContext(ctx aws.Context, input *PutRetentionPolicyInput, opts ...request.Option) (*PutRetentionPolicyOutput, error) {
- req, out := c.PutRetentionPolicyRequest(input)
+func (c *CloudWatchLogs) GetQueryResultsWithContext(ctx aws.Context, input *GetQueryResultsInput, opts ...request.Option) (*GetQueryResultsOutput, error) {
+ req, out := c.GetQueryResultsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opPutSubscriptionFilter = "PutSubscriptionFilter"
+const opListTagsForResource = "ListTagsForResource"
-// PutSubscriptionFilterRequest generates a "aws/request.Request" representing the
-// client's request for the PutSubscriptionFilter operation. The "output" return
+// ListTagsForResourceRequest generates a "aws/request.Request" representing the
+// client's request for the ListTagsForResource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See PutSubscriptionFilter for more information on using the PutSubscriptionFilter
+// See ListTagsForResource for more information on using the ListTagsForResource
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the PutSubscriptionFilterRequest method.
-// req, resp := client.PutSubscriptionFilterRequest(params)
+// // Example sending a request using the ListTagsForResourceRequest method.
+// req, resp := client.ListTagsForResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutSubscriptionFilter
-func (c *CloudWatchLogs) PutSubscriptionFilterRequest(input *PutSubscriptionFilterInput) (req *request.Request, output *PutSubscriptionFilterOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListTagsForResource
+func (c *CloudWatchLogs) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
op := &request.Operation{
- Name: opPutSubscriptionFilter,
+ Name: opListTagsForResource,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &PutSubscriptionFilterInput{}
+ input = &ListTagsForResourceInput{}
}
- output = &PutSubscriptionFilterOutput{}
+ output = &ListTagsForResourceOutput{}
req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
-// PutSubscriptionFilter API operation for Amazon CloudWatch Logs.
-//
-// 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 (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html)
-// 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:
-//
-// - An Amazon Kinesis data stream belonging to the same account as the subscription
-// filter, for same-account delivery.
-//
-// - A logical destination created with PutDestination (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDestination.html)
-// that belongs to a different account, for cross-account delivery. We currently
-// support Kinesis Data Streams and Kinesis Data Firehose as logical destinations.
-//
-// - An Amazon Kinesis Data Firehose delivery stream that belongs to the
-// same account as the subscription filter, for same-account delivery.
-//
-// - An Lambda function that belongs to the same account as the subscription
-// filter, for same-account delivery.
-//
-// 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.
+// ListTagsForResource API operation for Amazon CloudWatch Logs.
//
-// To perform a PutSubscriptionFilter operation for any destination except a
-// Lambda function, you must also have the iam:PassRole permission.
+// Displays the tags associated with a CloudWatch Logs resource. Currently,
+// log groups and destinations support tagging.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation PutSubscriptionFilter for usage and error information.
+// API operation ListTagsForResource for usage and error information.
//
// Returned Error Types:
//
@@ -4716,759 +4857,3672 @@ func (c *CloudWatchLogs) PutSubscriptionFilterRequest(input *PutSubscriptionFilt
// - ResourceNotFoundException
// The specified resource does not exist.
//
-// - OperationAbortedException
-// Multiple concurrent requests to update the same resource were in conflict.
-//
-// - LimitExceededException
-// You have reached the maximum number of resources that can be created.
-//
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutSubscriptionFilter
-func (c *CloudWatchLogs) PutSubscriptionFilter(input *PutSubscriptionFilterInput) (*PutSubscriptionFilterOutput, error) {
- req, out := c.PutSubscriptionFilterRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListTagsForResource
+func (c *CloudWatchLogs) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
+ req, out := c.ListTagsForResourceRequest(input)
return out, req.Send()
}
-// PutSubscriptionFilterWithContext is the same as PutSubscriptionFilter with the addition of
+// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of
// the ability to pass a context and additional request options.
//
-// See PutSubscriptionFilter for details on how to use this API operation.
+// See ListTagsForResource for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) PutSubscriptionFilterWithContext(ctx aws.Context, input *PutSubscriptionFilterInput, opts ...request.Option) (*PutSubscriptionFilterOutput, error) {
- req, out := c.PutSubscriptionFilterRequest(input)
+func (c *CloudWatchLogs) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) {
+ req, out := c.ListTagsForResourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opStartQuery = "StartQuery"
+const opListTagsLogGroup = "ListTagsLogGroup"
-// StartQueryRequest generates a "aws/request.Request" representing the
-// client's request for the StartQuery operation. The "output" return
-// value will be populated with the request's response once the request completes
+// ListTagsLogGroupRequest generates a "aws/request.Request" representing the
+// client's request for the ListTagsLogGroup operation. The "output" return
+// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See StartQuery for more information on using the StartQuery
+// See ListTagsLogGroup for more information on using the ListTagsLogGroup
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the StartQueryRequest method.
-// req, resp := client.StartQueryRequest(params)
+// // Example sending a request using the ListTagsLogGroupRequest method.
+// req, resp := client.ListTagsLogGroupRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/StartQuery
-func (c *CloudWatchLogs) StartQueryRequest(input *StartQueryInput) (req *request.Request, output *StartQueryOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListTagsLogGroup
+//
+// Deprecated: Please use the generic tagging API ListTagsForResource
+func (c *CloudWatchLogs) ListTagsLogGroupRequest(input *ListTagsLogGroupInput) (req *request.Request, output *ListTagsLogGroupOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, ListTagsLogGroup, has been deprecated")
+ }
op := &request.Operation{
- Name: opStartQuery,
+ Name: opListTagsLogGroup,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &StartQueryInput{}
+ input = &ListTagsLogGroupInput{}
}
- output = &StartQueryOutput{}
+ output = &ListTagsLogGroupOutput{}
req = c.newRequest(op, input, output)
return
}
-// StartQuery API operation for Amazon CloudWatch Logs.
-//
-// 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 (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html).
-//
-// After you run a query using StartQuery, the query results are stored by CloudWatch
-// Logs. You can use GetQueryResults (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_GetQueryResults.html)
-// 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 (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartQuery.html)
-// 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.
+// ListTagsLogGroup API operation for Amazon CloudWatch Logs.
//
-// 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 (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html).
-// For a cross-account StartQuery operation, the query definition must be defined
-// in the monitoring account.
+// The ListTagsLogGroup operation is on the path to deprecation. We recommend
+// that you use ListTagsForResource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsForResource.html)
+// instead.
//
-// You can have up to 30 concurrent CloudWatch Logs insights queries, including
-// queries that have been added to dashboards.
+// Lists the tags for the specified log group.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation StartQuery for usage and error information.
+// API operation ListTagsLogGroup for usage and error information.
//
// Returned Error Types:
//
-// - MalformedQueryException
-// The query string is not valid. Details about this error are displayed in
-// a QueryCompileError object. For more information, see QueryCompileError (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_QueryCompileError.html).
-//
-// For more information about valid query syntax, see CloudWatch Logs Insights
-// Query Syntax (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html).
-//
-// - InvalidParameterException
-// A parameter is specified incorrectly.
-//
-// - LimitExceededException
-// You have reached the maximum number of resources that can be created.
-//
// - ResourceNotFoundException
// The specified resource does not exist.
//
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/StartQuery
-func (c *CloudWatchLogs) StartQuery(input *StartQueryInput) (*StartQueryOutput, error) {
- req, out := c.StartQueryRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListTagsLogGroup
+//
+// Deprecated: Please use the generic tagging API ListTagsForResource
+func (c *CloudWatchLogs) ListTagsLogGroup(input *ListTagsLogGroupInput) (*ListTagsLogGroupOutput, error) {
+ req, out := c.ListTagsLogGroupRequest(input)
return out, req.Send()
}
-// StartQueryWithContext is the same as StartQuery with the addition of
+// ListTagsLogGroupWithContext is the same as ListTagsLogGroup with the addition of
// the ability to pass a context and additional request options.
//
-// See StartQuery for details on how to use this API operation.
+// See ListTagsLogGroup for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) StartQueryWithContext(ctx aws.Context, input *StartQueryInput, opts ...request.Option) (*StartQueryOutput, error) {
- req, out := c.StartQueryRequest(input)
+//
+// Deprecated: Please use the generic tagging API ListTagsForResource
+func (c *CloudWatchLogs) ListTagsLogGroupWithContext(ctx aws.Context, input *ListTagsLogGroupInput, opts ...request.Option) (*ListTagsLogGroupOutput, error) {
+ req, out := c.ListTagsLogGroupRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opStopQuery = "StopQuery"
+const opPutAccountPolicy = "PutAccountPolicy"
-// StopQueryRequest generates a "aws/request.Request" representing the
-// client's request for the StopQuery operation. The "output" return
+// PutAccountPolicyRequest generates a "aws/request.Request" representing the
+// client's request for the PutAccountPolicy operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See StopQuery for more information on using the StopQuery
+// See PutAccountPolicy for more information on using the PutAccountPolicy
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the StopQueryRequest method.
-// req, resp := client.StopQueryRequest(params)
+// // Example sending a request using the PutAccountPolicyRequest method.
+// req, resp := client.PutAccountPolicyRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/StopQuery
-func (c *CloudWatchLogs) StopQueryRequest(input *StopQueryInput) (req *request.Request, output *StopQueryOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutAccountPolicy
+func (c *CloudWatchLogs) PutAccountPolicyRequest(input *PutAccountPolicyInput) (req *request.Request, output *PutAccountPolicyOutput) {
op := &request.Operation{
- Name: opStopQuery,
+ Name: opPutAccountPolicy,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &StopQueryInput{}
+ input = &PutAccountPolicyInput{}
}
- output = &StopQueryOutput{}
+ output = &PutAccountPolicyOutput{}
req = c.newRequest(op, input, output)
return
}
-// StopQuery API operation for Amazon CloudWatch Logs.
+// PutAccountPolicy API operation for Amazon CloudWatch Logs.
//
-// 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.
+// 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 (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, 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 (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.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation StopQuery for usage and error information.
+// API operation PutAccountPolicy for usage and error information.
//
// Returned Error Types:
//
// - InvalidParameterException
// A parameter is specified incorrectly.
//
-// - ResourceNotFoundException
-// The specified resource does not exist.
+// - OperationAbortedException
+// Multiple concurrent requests to update the same resource were in conflict.
//
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/StopQuery
-func (c *CloudWatchLogs) StopQuery(input *StopQueryInput) (*StopQueryOutput, error) {
- req, out := c.StopQueryRequest(input)
+// - LimitExceededException
+// You have reached the maximum number of resources that can be created.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutAccountPolicy
+func (c *CloudWatchLogs) PutAccountPolicy(input *PutAccountPolicyInput) (*PutAccountPolicyOutput, error) {
+ req, out := c.PutAccountPolicyRequest(input)
return out, req.Send()
}
-// StopQueryWithContext is the same as StopQuery with the addition of
+// PutAccountPolicyWithContext is the same as PutAccountPolicy with the addition of
// the ability to pass a context and additional request options.
//
-// See StopQuery for details on how to use this API operation.
+// See PutAccountPolicy for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) StopQueryWithContext(ctx aws.Context, input *StopQueryInput, opts ...request.Option) (*StopQueryOutput, error) {
- req, out := c.StopQueryRequest(input)
+func (c *CloudWatchLogs) PutAccountPolicyWithContext(ctx aws.Context, input *PutAccountPolicyInput, opts ...request.Option) (*PutAccountPolicyOutput, error) {
+ req, out := c.PutAccountPolicyRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opTagLogGroup = "TagLogGroup"
+const opPutDataProtectionPolicy = "PutDataProtectionPolicy"
-// TagLogGroupRequest generates a "aws/request.Request" representing the
-// client's request for the TagLogGroup operation. The "output" return
+// PutDataProtectionPolicyRequest generates a "aws/request.Request" representing the
+// client's request for the PutDataProtectionPolicy operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See TagLogGroup for more information on using the TagLogGroup
+// See PutDataProtectionPolicy for more information on using the PutDataProtectionPolicy
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the TagLogGroupRequest method.
-// req, resp := client.TagLogGroupRequest(params)
+// // Example sending a request using the PutDataProtectionPolicyRequest method.
+// req, resp := client.PutDataProtectionPolicyRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TagLogGroup
-//
-// Deprecated: Please use the generic tagging API TagResource
-func (c *CloudWatchLogs) TagLogGroupRequest(input *TagLogGroupInput) (req *request.Request, output *TagLogGroupOutput) {
- if c.Client.Config.Logger != nil {
- c.Client.Config.Logger.Log("This operation, TagLogGroup, has been deprecated")
- }
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDataProtectionPolicy
+func (c *CloudWatchLogs) PutDataProtectionPolicyRequest(input *PutDataProtectionPolicyInput) (req *request.Request, output *PutDataProtectionPolicyOutput) {
op := &request.Operation{
- Name: opTagLogGroup,
+ Name: opPutDataProtectionPolicy,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &TagLogGroupInput{}
+ input = &PutDataProtectionPolicyInput{}
}
- output = &TagLogGroupOutput{}
+ output = &PutDataProtectionPolicyOutput{}
req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
-// TagLogGroup API operation for Amazon CloudWatch Logs.
+// PutDataProtectionPolicy API operation for Amazon CloudWatch Logs.
//
-// 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.
+// 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.
//
-// Adds or updates the specified tags for the specified log group.
+// 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.
//
-// 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).
+// 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 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.
+// 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).
//
-// 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 (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.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.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation TagLogGroup for usage and error information.
+// API operation PutDataProtectionPolicy for usage and error information.
//
// Returned Error Types:
//
-// - ResourceNotFoundException
-// The specified resource does not exist.
-//
// - InvalidParameterException
// A parameter is specified incorrectly.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TagLogGroup
+// - LimitExceededException
+// You have reached the maximum number of resources that can be created.
//
-// Deprecated: Please use the generic tagging API TagResource
-func (c *CloudWatchLogs) TagLogGroup(input *TagLogGroupInput) (*TagLogGroupOutput, error) {
- req, out := c.TagLogGroupRequest(input)
- return out, req.Send()
-}
-
-// TagLogGroupWithContext is the same as TagLogGroup with the addition of
+// - OperationAbortedException
+// Multiple concurrent requests to update the same resource were in conflict.
+//
+// - ResourceNotFoundException
+// The specified resource does not exist.
+//
+// - ServiceUnavailableException
+// The service cannot complete the request.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDataProtectionPolicy
+func (c *CloudWatchLogs) PutDataProtectionPolicy(input *PutDataProtectionPolicyInput) (*PutDataProtectionPolicyOutput, error) {
+ req, out := c.PutDataProtectionPolicyRequest(input)
+ return out, req.Send()
+}
+
+// PutDataProtectionPolicyWithContext is the same as PutDataProtectionPolicy with the addition of
// the ability to pass a context and additional request options.
//
-// See TagLogGroup for details on how to use this API operation.
+// See PutDataProtectionPolicy for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-//
-// Deprecated: Please use the generic tagging API TagResource
-func (c *CloudWatchLogs) TagLogGroupWithContext(ctx aws.Context, input *TagLogGroupInput, opts ...request.Option) (*TagLogGroupOutput, error) {
- req, out := c.TagLogGroupRequest(input)
+func (c *CloudWatchLogs) PutDataProtectionPolicyWithContext(ctx aws.Context, input *PutDataProtectionPolicyInput, opts ...request.Option) (*PutDataProtectionPolicyOutput, error) {
+ req, out := c.PutDataProtectionPolicyRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opTagResource = "TagResource"
+const opPutDeliveryDestination = "PutDeliveryDestination"
-// TagResourceRequest generates a "aws/request.Request" representing the
-// client's request for the TagResource operation. The "output" return
+// PutDeliveryDestinationRequest generates a "aws/request.Request" representing the
+// client's request for the PutDeliveryDestination operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See TagResource for more information on using the TagResource
+// See PutDeliveryDestination for more information on using the PutDeliveryDestination
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the TagResourceRequest method.
-// req, resp := client.TagResourceRequest(params)
+// // Example sending a request using the PutDeliveryDestinationRequest method.
+// req, resp := client.PutDeliveryDestinationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TagResource
-func (c *CloudWatchLogs) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDeliveryDestination
+func (c *CloudWatchLogs) PutDeliveryDestinationRequest(input *PutDeliveryDestinationInput) (req *request.Request, output *PutDeliveryDestinationOutput) {
op := &request.Operation{
- Name: opTagResource,
+ Name: opPutDeliveryDestination,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &TagResourceInput{}
+ input = &PutDeliveryDestinationInput{}
}
- output = &TagResourceOutput{}
+ output = &PutDeliveryDestinationOutput{}
req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
-// TagResource API operation for Amazon CloudWatch Logs.
+// PutDeliveryDestination API operation for Amazon CloudWatch Logs.
//
-// 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.
+// Creates or updates a logical delivery destination. A delivery destination
+// is an Amazon Web Services resource that represents an Amazon Web Services
+// service that logs can be sent to. CloudWatch Logs, Amazon S3, and Kinesis
+// Data Firehose are supported as logs delivery 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.
+// To configure logs delivery between a supported Amazon Web Services service
+// and a destination, you must do the following:
//
-// Tags don't have any semantic meaning to Amazon Web Services and are interpreted
-// strictly as strings of characters.
+// - Create a delivery source, which is a logical object that represents
+// the resource that is actually sending the logs. For more information,
+// see PutDeliverySource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliverySource.html).
//
-// 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.
+// - Use PutDeliveryDestination to create a delivery destination, which is
+// a logical object that represents the actual delivery destination.
//
-// You can associate as many as 50 tags with a CloudWatch Logs resource.
+// - If you are delivering logs cross-account, you must use PutDeliveryDestinationPolicy
+// (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestinationolicy.html)
+// 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#AWS-vended-logs-permissions)
+//
+// If you use this operation to update an existing delivery destination, all
+// the current delivery destination parameters are overwritten with the new
+// parameter values that you specify.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation TagResource for usage and error information.
+// API operation PutDeliveryDestination for usage and error information.
//
// Returned Error Types:
//
-// - InvalidParameterException
-// A parameter is specified incorrectly.
-//
-// - ResourceNotFoundException
-// The specified resource does not exist.
-//
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// - TooManyTagsException
-// A resource can have no more than 50 tags.
+// - ConflictException
+// This operation attempted to create a resource that already exists.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TagResource
-func (c *CloudWatchLogs) TagResource(input *TagResourceInput) (*TagResourceOutput, error) {
- req, out := c.TagResourceRequest(input)
+// - ValidationException
+// One of the parameters for the request is not valid.
+//
+// - ServiceQuotaExceededException
+// This request exceeds a service quota.
+//
+// - ThrottlingException
+// The request was throttled because of quota limits.
+//
+// - ResourceNotFoundException
+// The specified resource does not exist.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDeliveryDestination
+func (c *CloudWatchLogs) PutDeliveryDestination(input *PutDeliveryDestinationInput) (*PutDeliveryDestinationOutput, error) {
+ req, out := c.PutDeliveryDestinationRequest(input)
return out, req.Send()
}
-// TagResourceWithContext is the same as TagResource with the addition of
+// PutDeliveryDestinationWithContext is the same as PutDeliveryDestination with the addition of
// the ability to pass a context and additional request options.
//
-// See TagResource for details on how to use this API operation.
+// See PutDeliveryDestination for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) {
- req, out := c.TagResourceRequest(input)
+func (c *CloudWatchLogs) PutDeliveryDestinationWithContext(ctx aws.Context, input *PutDeliveryDestinationInput, opts ...request.Option) (*PutDeliveryDestinationOutput, error) {
+ req, out := c.PutDeliveryDestinationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opTestMetricFilter = "TestMetricFilter"
+const opPutDeliveryDestinationPolicy = "PutDeliveryDestinationPolicy"
-// TestMetricFilterRequest generates a "aws/request.Request" representing the
-// client's request for the TestMetricFilter operation. The "output" return
+// PutDeliveryDestinationPolicyRequest generates a "aws/request.Request" representing the
+// client's request for the PutDeliveryDestinationPolicy operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See TestMetricFilter for more information on using the TestMetricFilter
+// See PutDeliveryDestinationPolicy for more information on using the PutDeliveryDestinationPolicy
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the TestMetricFilterRequest method.
-// req, resp := client.TestMetricFilterRequest(params)
+// // Example sending a request using the PutDeliveryDestinationPolicyRequest method.
+// req, resp := client.PutDeliveryDestinationPolicyRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TestMetricFilter
-func (c *CloudWatchLogs) TestMetricFilterRequest(input *TestMetricFilterInput) (req *request.Request, output *TestMetricFilterOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDeliveryDestinationPolicy
+func (c *CloudWatchLogs) PutDeliveryDestinationPolicyRequest(input *PutDeliveryDestinationPolicyInput) (req *request.Request, output *PutDeliveryDestinationPolicyOutput) {
op := &request.Operation{
- Name: opTestMetricFilter,
+ Name: opPutDeliveryDestinationPolicy,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &TestMetricFilterInput{}
+ input = &PutDeliveryDestinationPolicyInput{}
}
- output = &TestMetricFilterOutput{}
+ output = &PutDeliveryDestinationPolicyOutput{}
req = c.newRequest(op, input, output)
return
}
-// TestMetricFilter API operation for Amazon CloudWatch Logs.
+// PutDeliveryDestinationPolicy API operation for Amazon CloudWatch Logs.
//
-// 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.
+// Creates and assigns an IAM policy that grants permissions to CloudWatch Logs
+// to deliver logs cross-account to a specified destination in this account.
+// To configure the delivery of logs from an Amazon Web Services service in
+// another account to a logs delivery destination in the current account, 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 PutDeliverySource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliverySource.html).
+//
+// - Create a delivery destination, which is a logical object that represents
+// the actual delivery destination. For more information, see PutDeliveryDestination
+// (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestination.html).
+//
+// - 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#AWS-vended-logs-permissions)
+//
+// The contents of the policy must include two statements. One statement enables
+// general logs delivery, and the other allows delivery to the chosen destination.
+// See the examples for the needed policies.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation TestMetricFilter for usage and error information.
+// API operation PutDeliveryDestinationPolicy for usage and error information.
//
// Returned Error Types:
//
-// - InvalidParameterException
-// A parameter is specified incorrectly.
-//
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TestMetricFilter
-func (c *CloudWatchLogs) TestMetricFilter(input *TestMetricFilterInput) (*TestMetricFilterOutput, error) {
- req, out := c.TestMetricFilterRequest(input)
+// - ValidationException
+// One of the parameters for the request is not valid.
+//
+// - ResourceNotFoundException
+// The specified resource does not exist.
+//
+// - ConflictException
+// This operation attempted to create a resource that already exists.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDeliveryDestinationPolicy
+func (c *CloudWatchLogs) PutDeliveryDestinationPolicy(input *PutDeliveryDestinationPolicyInput) (*PutDeliveryDestinationPolicyOutput, error) {
+ req, out := c.PutDeliveryDestinationPolicyRequest(input)
return out, req.Send()
}
-// TestMetricFilterWithContext is the same as TestMetricFilter with the addition of
+// PutDeliveryDestinationPolicyWithContext is the same as PutDeliveryDestinationPolicy with the addition of
// the ability to pass a context and additional request options.
//
-// See TestMetricFilter for details on how to use this API operation.
+// See PutDeliveryDestinationPolicy for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) TestMetricFilterWithContext(ctx aws.Context, input *TestMetricFilterInput, opts ...request.Option) (*TestMetricFilterOutput, error) {
- req, out := c.TestMetricFilterRequest(input)
+func (c *CloudWatchLogs) PutDeliveryDestinationPolicyWithContext(ctx aws.Context, input *PutDeliveryDestinationPolicyInput, opts ...request.Option) (*PutDeliveryDestinationPolicyOutput, error) {
+ req, out := c.PutDeliveryDestinationPolicyRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opUntagLogGroup = "UntagLogGroup"
+const opPutDeliverySource = "PutDeliverySource"
-// UntagLogGroupRequest generates a "aws/request.Request" representing the
-// client's request for the UntagLogGroup operation. The "output" return
+// PutDeliverySourceRequest generates a "aws/request.Request" representing the
+// client's request for the PutDeliverySource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See UntagLogGroup for more information on using the UntagLogGroup
+// See PutDeliverySource for more information on using the PutDeliverySource
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the UntagLogGroupRequest method.
-// req, resp := client.UntagLogGroupRequest(params)
+// // Example sending a request using the PutDeliverySourceRequest method.
+// req, resp := client.PutDeliverySourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/UntagLogGroup
-//
-// Deprecated: Please use the generic tagging API UntagResource
-func (c *CloudWatchLogs) UntagLogGroupRequest(input *UntagLogGroupInput) (req *request.Request, output *UntagLogGroupOutput) {
- if c.Client.Config.Logger != nil {
- c.Client.Config.Logger.Log("This operation, UntagLogGroup, has been deprecated")
- }
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDeliverySource
+func (c *CloudWatchLogs) PutDeliverySourceRequest(input *PutDeliverySourceInput) (req *request.Request, output *PutDeliverySourceOutput) {
op := &request.Operation{
- Name: opUntagLogGroup,
+ Name: opPutDeliverySource,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &UntagLogGroupInput{}
+ input = &PutDeliverySourceInput{}
}
- output = &UntagLogGroupOutput{}
+ output = &PutDeliverySourceOutput{}
req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
-// UntagLogGroup API operation for Amazon CloudWatch Logs.
+// PutDeliverySource API operation for Amazon CloudWatch Logs.
//
-// The UntagLogGroup operation is on the path to deprecation. We recommend that
-// you use UntagResource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UntagResource.html)
-// instead.
+// Creates or updates a logical delivery source. 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.
//
-// Removes the specified tags from the specified log group.
+// To configure logs delivery between a delivery destination and an Amazon Web
+// Services service that is supported as a delivery source, you must do the
+// following:
//
-// To list the tags for a log group, use ListTagsForResource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsForResource.html).
-// To add tags, use TagResource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_TagResource.html).
+// - Use PutDeliverySource to create a delivery source, which is a logical
+// object that represents the resource that is actually sending the logs.
//
-// 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.
+// - Use PutDeliveryDestination to create a delivery destination, which is
+// a logical object that represents the actual delivery destination. For
+// more information, see PutDeliveryDestination (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestination.html).
+//
+// - If you are delivering logs cross-account, you must use PutDeliveryDestinationPolicy
+// (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestinationolicy.html)
+// 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#AWS-vended-logs-permissions)
+//
+// 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 you specify.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation UntagLogGroup for usage and error information.
+// API operation PutDeliverySource for usage and error information.
//
// Returned Error Types:
+//
+// - ServiceUnavailableException
+// The service cannot complete the request.
+//
+// - ConflictException
+// This operation attempted to create a resource that already exists.
+//
+// - ValidationException
+// One of the parameters for the request is not valid.
+//
+// - ServiceQuotaExceededException
+// This request exceeds a service quota.
+//
// - ResourceNotFoundException
// The specified resource does not exist.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/UntagLogGroup
+// - ThrottlingException
+// The request was throttled because of quota limits.
//
-// Deprecated: Please use the generic tagging API UntagResource
-func (c *CloudWatchLogs) UntagLogGroup(input *UntagLogGroupInput) (*UntagLogGroupOutput, error) {
- req, out := c.UntagLogGroupRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDeliverySource
+func (c *CloudWatchLogs) PutDeliverySource(input *PutDeliverySourceInput) (*PutDeliverySourceOutput, error) {
+ req, out := c.PutDeliverySourceRequest(input)
return out, req.Send()
}
-// UntagLogGroupWithContext is the same as UntagLogGroup with the addition of
+// PutDeliverySourceWithContext is the same as PutDeliverySource with the addition of
// the ability to pass a context and additional request options.
//
-// See UntagLogGroup for details on how to use this API operation.
+// See PutDeliverySource for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-//
-// Deprecated: Please use the generic tagging API UntagResource
-func (c *CloudWatchLogs) UntagLogGroupWithContext(ctx aws.Context, input *UntagLogGroupInput, opts ...request.Option) (*UntagLogGroupOutput, error) {
- req, out := c.UntagLogGroupRequest(input)
+func (c *CloudWatchLogs) PutDeliverySourceWithContext(ctx aws.Context, input *PutDeliverySourceInput, opts ...request.Option) (*PutDeliverySourceOutput, error) {
+ req, out := c.PutDeliverySourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-const opUntagResource = "UntagResource"
+const opPutDestination = "PutDestination"
-// UntagResourceRequest generates a "aws/request.Request" representing the
-// client's request for the UntagResource operation. The "output" return
+// PutDestinationRequest generates a "aws/request.Request" representing the
+// client's request for the PutDestination operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See UntagResource for more information on using the UntagResource
+// See PutDestination for more information on using the PutDestination
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the UntagResourceRequest method.
-// req, resp := client.UntagResourceRequest(params)
+// // Example sending a request using the PutDestinationRequest method.
+// req, resp := client.PutDestinationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/UntagResource
-func (c *CloudWatchLogs) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDestination
+func (c *CloudWatchLogs) PutDestinationRequest(input *PutDestinationInput) (req *request.Request, output *PutDestinationOutput) {
op := &request.Operation{
- Name: opUntagResource,
+ Name: opPutDestination,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
- input = &UntagResourceInput{}
+ input = &PutDestinationInput{}
}
- output = &UntagResourceOutput{}
+ output = &PutDestinationOutput{}
req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
-// UntagResource API operation for Amazon CloudWatch Logs.
+// PutDestination API operation for Amazon CloudWatch Logs.
//
-// Removes one or more tags from the specified resource.
+// 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 (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html).
+//
+// 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 (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutSubscriptionFilter.html)
+// against this destination. To enable this, the destination owner must call
+// PutDestinationPolicy (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDestinationPolicy.html)
+// after PutDestination.
+//
+// To perform a PutDestination operation, you must also have the iam:PassRole
+// permission.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudWatch Logs's
-// API operation UntagResource for usage and error information.
+// API operation PutDestination for usage and error information.
//
// Returned Error Types:
//
// - InvalidParameterException
// A parameter is specified incorrectly.
//
-// - ResourceNotFoundException
-// The specified resource does not exist.
+// - OperationAbortedException
+// Multiple concurrent requests to update the same resource were in conflict.
//
// - ServiceUnavailableException
// The service cannot complete the request.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/UntagResource
-func (c *CloudWatchLogs) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) {
- req, out := c.UntagResourceRequest(input)
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDestination
+func (c *CloudWatchLogs) PutDestination(input *PutDestinationInput) (*PutDestinationOutput, error) {
+ req, out := c.PutDestinationRequest(input)
return out, req.Send()
}
-// UntagResourceWithContext is the same as UntagResource with the addition of
+// PutDestinationWithContext is the same as PutDestination with the addition of
// the ability to pass a context and additional request options.
//
-// See UntagResource for details on how to use this API operation.
+// See PutDestination for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *CloudWatchLogs) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) {
- req, out := c.UntagResourceRequest(input)
+func (c *CloudWatchLogs) PutDestinationWithContext(ctx aws.Context, input *PutDestinationInput, opts ...request.Option) (*PutDestinationOutput, error) {
+ req, out := c.PutDestinationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-// A structure that contains information about one CloudWatch Logs account policy.
-type AccountPolicy struct {
- _ struct{} `type:"structure"`
-
- // The Amazon Web Services account ID that the policy applies to.
- AccountId *string `locationName:"accountId" min:"12" type:"string"`
-
- // The date and time that this policy was most recently updated.
- LastUpdatedTime *int64 `locationName:"lastUpdatedTime" type:"long"`
-
- // The policy document for this account policy.
- //
- // The JSON specified in policyDocument can be up to 30,720 characters.
- PolicyDocument *string `locationName:"policyDocument" type:"string"`
-
- // The name of the account policy.
- PolicyName *string `locationName:"policyName" type:"string"`
-
- // The type of policy for this account policy.
- PolicyType *string `locationName:"policyType" type:"string" enum:"PolicyType"`
-
- // The scope of the account policy.
- Scope *string `locationName:"scope" type:"string" enum:"Scope"`
-}
+const opPutDestinationPolicy = "PutDestinationPolicy"
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
+// PutDestinationPolicyRequest generates a "aws/request.Request" representing the
+// client's request for the PutDestinationPolicy operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See PutDestinationPolicy for more information on using the PutDestinationPolicy
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the PutDestinationPolicyRequest method.
+// req, resp := client.PutDestinationPolicyRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDestinationPolicy
+func (c *CloudWatchLogs) PutDestinationPolicyRequest(input *PutDestinationPolicyInput) (req *request.Request, output *PutDestinationPolicyOutput) {
+ op := &request.Operation{
+ Name: opPutDestinationPolicy,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &PutDestinationPolicyInput{}
+ }
+
+ output = &PutDestinationPolicyOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// PutDestinationPolicy API operation for Amazon CloudWatch Logs.
+//
+// Creates or updates an access policy associated with an existing destination.
+// An access policy is an IAM policy document (https://docs.aws.amazon.com/IAM/latest/UserGuide/policies_overview.html)
+// that is used to authorize claims to register a subscription filter against
+// a given destination.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon CloudWatch Logs's
+// API operation PutDestinationPolicy for usage and error information.
+//
+// Returned Error Types:
+//
+// - InvalidParameterException
+// A parameter is specified incorrectly.
+//
+// - OperationAbortedException
+// Multiple concurrent requests to update the same resource were in conflict.
+//
+// - ServiceUnavailableException
+// The service cannot complete the request.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDestinationPolicy
+func (c *CloudWatchLogs) PutDestinationPolicy(input *PutDestinationPolicyInput) (*PutDestinationPolicyOutput, error) {
+ req, out := c.PutDestinationPolicyRequest(input)
+ return out, req.Send()
+}
+
+// PutDestinationPolicyWithContext is the same as PutDestinationPolicy with the addition of
+// the ability to pass a context and additional request options.
+//
+// See PutDestinationPolicy for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CloudWatchLogs) PutDestinationPolicyWithContext(ctx aws.Context, input *PutDestinationPolicyInput, opts ...request.Option) (*PutDestinationPolicyOutput, error) {
+ req, out := c.PutDestinationPolicyRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opPutLogEvents = "PutLogEvents"
+
+// PutLogEventsRequest generates a "aws/request.Request" representing the
+// client's request for the PutLogEvents operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See PutLogEvents for more information on using the PutLogEvents
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the PutLogEventsRequest method.
+// req, resp := client.PutLogEventsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutLogEvents
+func (c *CloudWatchLogs) PutLogEventsRequest(input *PutLogEventsInput) (req *request.Request, output *PutLogEventsOutput) {
+ op := &request.Operation{
+ Name: opPutLogEvents,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &PutLogEventsInput{}
+ }
+
+ output = &PutLogEventsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// PutLogEvents API operation for Amazon CloudWatch Logs.
+//
+// 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:
+//
+// - The maximum batch size is 1,048,576 bytes. This size is calculated as
+// the sum of all event messages in UTF-8, plus 26 bytes for each log event.
+//
+// - None of the log events in the batch can be more than 2 hours in the
+// future.
+//
+// - None of the log events in the batch can be more than 14 days in the
+// past. Also, none of the log events can be from earlier than the retention
+// period of the log group.
+//
+// - The log events in the batch must be in chronological order by their
+// timestamp. The timestamp is the time that the event occurred, expressed
+// as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. (In Amazon
+// Web Services Tools for PowerShell and the Amazon Web Services SDK for
+// .NET, the timestamp is specified in .NET format: yyyy-mm-ddThh:mm:ss.
+// For example, 2017-09-15T13:45:30.)
+//
+// - A batch of log events in a single request cannot span more than 24 hours.
+// Otherwise, the operation fails.
+//
+// - Each log event can be no larger than 256 KB.
+//
+// - The maximum number of log events in a batch is 10,000.
+//
+// - The quota of five requests per second per log stream has been removed.
+// Instead, PutLogEvents actions are throttled based on a per-second per-account
+// quota. You can request an increase to the per-second throttling quota
+// by using the Service Quotas service.
+//
+// If a call to PutLogEvents returns "UnrecognizedClientException" the most
+// likely cause is a non-valid Amazon Web Services access key ID or secret key.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon CloudWatch Logs's
+// API operation PutLogEvents for usage and error information.
+//
+// Returned Error Types:
+//
+// - InvalidParameterException
+// A parameter is specified incorrectly.
+//
+// - InvalidSequenceTokenException
+// The sequence token is not valid. You can get the correct sequence token in
+// the expectedSequenceToken field in the InvalidSequenceTokenException message.
+//
+// PutLogEvents actions are now always accepted and never return InvalidSequenceTokenException
+// regardless of receiving an invalid sequence token.
+//
+// - DataAlreadyAcceptedException
+// The event was already logged.
+//
+// PutLogEvents actions are now always accepted and never return DataAlreadyAcceptedException
+// regardless of whether a given batch of log events has already been accepted.
+//
+// - ResourceNotFoundException
+// The specified resource does not exist.
+//
+// - ServiceUnavailableException
+// The service cannot complete the request.
+//
+// - UnrecognizedClientException
+// The most likely cause is an Amazon Web Services access key ID or secret key
+// that's not valid.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutLogEvents
+func (c *CloudWatchLogs) PutLogEvents(input *PutLogEventsInput) (*PutLogEventsOutput, error) {
+ req, out := c.PutLogEventsRequest(input)
+ return out, req.Send()
+}
+
+// PutLogEventsWithContext is the same as PutLogEvents with the addition of
+// the ability to pass a context and additional request options.
+//
+// See PutLogEvents for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CloudWatchLogs) PutLogEventsWithContext(ctx aws.Context, input *PutLogEventsInput, opts ...request.Option) (*PutLogEventsOutput, error) {
+ req, out := c.PutLogEventsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opPutMetricFilter = "PutMetricFilter"
+
+// PutMetricFilterRequest generates a "aws/request.Request" representing the
+// client's request for the PutMetricFilter operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See PutMetricFilter for more information on using the PutMetricFilter
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the PutMetricFilterRequest method.
+// req, resp := client.PutMetricFilterRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutMetricFilter
+func (c *CloudWatchLogs) PutMetricFilterRequest(input *PutMetricFilterInput) (req *request.Request, output *PutMetricFilterOutput) {
+ op := &request.Operation{
+ Name: opPutMetricFilter,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &PutMetricFilterInput{}
+ }
+
+ output = &PutMetricFilterOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// PutMetricFilter API operation for Amazon CloudWatch Logs.
+//
+// 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 (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).
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon CloudWatch Logs's
+// API operation PutMetricFilter for usage and error information.
+//
+// Returned Error Types:
+//
+// - InvalidParameterException
+// A parameter is specified incorrectly.
+//
+// - ResourceNotFoundException
+// The specified resource does not exist.
+//
+// - OperationAbortedException
+// Multiple concurrent requests to update the same resource were in conflict.
+//
+// - LimitExceededException
+// You have reached the maximum number of resources that can be created.
+//
+// - ServiceUnavailableException
+// The service cannot complete the request.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutMetricFilter
+func (c *CloudWatchLogs) PutMetricFilter(input *PutMetricFilterInput) (*PutMetricFilterOutput, error) {
+ req, out := c.PutMetricFilterRequest(input)
+ return out, req.Send()
+}
+
+// PutMetricFilterWithContext is the same as PutMetricFilter with the addition of
+// the ability to pass a context and additional request options.
+//
+// See PutMetricFilter for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CloudWatchLogs) PutMetricFilterWithContext(ctx aws.Context, input *PutMetricFilterInput, opts ...request.Option) (*PutMetricFilterOutput, error) {
+ req, out := c.PutMetricFilterRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opPutQueryDefinition = "PutQueryDefinition"
+
+// PutQueryDefinitionRequest generates a "aws/request.Request" representing the
+// client's request for the PutQueryDefinition operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See PutQueryDefinition for more information on using the PutQueryDefinition
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the PutQueryDefinitionRequest method.
+// req, resp := client.PutQueryDefinitionRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutQueryDefinition
+func (c *CloudWatchLogs) PutQueryDefinitionRequest(input *PutQueryDefinitionInput) (req *request.Request, output *PutQueryDefinitionOutput) {
+ op := &request.Operation{
+ Name: opPutQueryDefinition,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &PutQueryDefinitionInput{}
+ }
+
+ output = &PutQueryDefinitionOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// PutQueryDefinition API operation for Amazon CloudWatch Logs.
+//
+// Creates or updates a query definition for CloudWatch Logs Insights. For more
+// information, see Analyzing Log Data with CloudWatch Logs Insights (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AnalyzingLogData.html).
+//
+// 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.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon CloudWatch Logs's
+// API operation PutQueryDefinition for usage and error information.
+//
+// Returned Error Types:
+//
+// - InvalidParameterException
+// A parameter is specified incorrectly.
+//
+// - LimitExceededException
+// You have reached the maximum number of resources that can be created.
+//
+// - ResourceNotFoundException
+// The specified resource does not exist.
+//
+// - ServiceUnavailableException
+// The service cannot complete the request.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutQueryDefinition
+func (c *CloudWatchLogs) PutQueryDefinition(input *PutQueryDefinitionInput) (*PutQueryDefinitionOutput, error) {
+ req, out := c.PutQueryDefinitionRequest(input)
+ return out, req.Send()
+}
+
+// PutQueryDefinitionWithContext is the same as PutQueryDefinition with the addition of
+// the ability to pass a context and additional request options.
+//
+// See PutQueryDefinition for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CloudWatchLogs) PutQueryDefinitionWithContext(ctx aws.Context, input *PutQueryDefinitionInput, opts ...request.Option) (*PutQueryDefinitionOutput, error) {
+ req, out := c.PutQueryDefinitionRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opPutResourcePolicy = "PutResourcePolicy"
+
+// PutResourcePolicyRequest generates a "aws/request.Request" representing the
+// client's request for the PutResourcePolicy operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See PutResourcePolicy for more information on using the PutResourcePolicy
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the PutResourcePolicyRequest method.
+// req, resp := client.PutResourcePolicyRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutResourcePolicy
+func (c *CloudWatchLogs) PutResourcePolicyRequest(input *PutResourcePolicyInput) (req *request.Request, output *PutResourcePolicyOutput) {
+ op := &request.Operation{
+ Name: opPutResourcePolicy,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &PutResourcePolicyInput{}
+ }
+
+ output = &PutResourcePolicyOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// PutResourcePolicy API operation for Amazon CloudWatch Logs.
+//
+// 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.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon CloudWatch Logs's
+// API operation PutResourcePolicy for usage and error information.
+//
+// Returned Error Types:
+//
+// - InvalidParameterException
+// A parameter is specified incorrectly.
+//
+// - LimitExceededException
+// You have reached the maximum number of resources that can be created.
+//
+// - ServiceUnavailableException
+// The service cannot complete the request.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutResourcePolicy
+func (c *CloudWatchLogs) PutResourcePolicy(input *PutResourcePolicyInput) (*PutResourcePolicyOutput, error) {
+ req, out := c.PutResourcePolicyRequest(input)
+ return out, req.Send()
+}
+
+// PutResourcePolicyWithContext is the same as PutResourcePolicy with the addition of
+// the ability to pass a context and additional request options.
+//
+// See PutResourcePolicy for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CloudWatchLogs) PutResourcePolicyWithContext(ctx aws.Context, input *PutResourcePolicyInput, opts ...request.Option) (*PutResourcePolicyOutput, error) {
+ req, out := c.PutResourcePolicyRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opPutRetentionPolicy = "PutRetentionPolicy"
+
+// PutRetentionPolicyRequest generates a "aws/request.Request" representing the
+// client's request for the PutRetentionPolicy operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See PutRetentionPolicy for more information on using the PutRetentionPolicy
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the PutRetentionPolicyRequest method.
+// req, resp := client.PutRetentionPolicyRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutRetentionPolicy
+func (c *CloudWatchLogs) PutRetentionPolicyRequest(input *PutRetentionPolicyInput) (req *request.Request, output *PutRetentionPolicyOutput) {
+ op := &request.Operation{
+ Name: opPutRetentionPolicy,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &PutRetentionPolicyInput{}
+ }
+
+ output = &PutRetentionPolicyOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// PutRetentionPolicy API operation for Amazon CloudWatch Logs.
+//
+// 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.
+//
+// When log events reach their retention setting they are marked for deletion.
+// After they are marked for deletion, they do not add to your archival storage
+// costs anymore, even if they are not actually deleted until later. These log
+// events marked for deletion are also not included when you use an API to retrieve
+// the storedBytes value to see how many bytes a log group is storing.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon CloudWatch Logs's
+// API operation PutRetentionPolicy for usage and error information.
+//
+// Returned Error Types:
+//
+// - InvalidParameterException
+// A parameter is specified incorrectly.
+//
+// - ResourceNotFoundException
+// The specified resource does not exist.
+//
+// - OperationAbortedException
+// Multiple concurrent requests to update the same resource were in conflict.
+//
+// - ServiceUnavailableException
+// The service cannot complete the request.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutRetentionPolicy
+func (c *CloudWatchLogs) PutRetentionPolicy(input *PutRetentionPolicyInput) (*PutRetentionPolicyOutput, error) {
+ req, out := c.PutRetentionPolicyRequest(input)
+ return out, req.Send()
+}
+
+// PutRetentionPolicyWithContext is the same as PutRetentionPolicy with the addition of
+// the ability to pass a context and additional request options.
+//
+// See PutRetentionPolicy for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CloudWatchLogs) PutRetentionPolicyWithContext(ctx aws.Context, input *PutRetentionPolicyInput, opts ...request.Option) (*PutRetentionPolicyOutput, error) {
+ req, out := c.PutRetentionPolicyRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opPutSubscriptionFilter = "PutSubscriptionFilter"
+
+// PutSubscriptionFilterRequest generates a "aws/request.Request" representing the
+// client's request for the PutSubscriptionFilter operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See PutSubscriptionFilter for more information on using the PutSubscriptionFilter
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the PutSubscriptionFilterRequest method.
+// req, resp := client.PutSubscriptionFilterRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutSubscriptionFilter
+func (c *CloudWatchLogs) PutSubscriptionFilterRequest(input *PutSubscriptionFilterInput) (req *request.Request, output *PutSubscriptionFilterOutput) {
+ op := &request.Operation{
+ Name: opPutSubscriptionFilter,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &PutSubscriptionFilterInput{}
+ }
+
+ output = &PutSubscriptionFilterOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// PutSubscriptionFilter API operation for Amazon CloudWatch Logs.
+//
+// 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 (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html)
+// 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:
+//
+// - An Amazon Kinesis data stream belonging to the same account as the subscription
+// filter, for same-account delivery.
+//
+// - A logical destination created with PutDestination (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDestination.html)
+// that belongs to a different account, for cross-account delivery. We currently
+// support Kinesis Data Streams and Kinesis Data Firehose as logical destinations.
+//
+// - An Amazon Kinesis Data Firehose delivery stream that belongs to the
+// same account as the subscription filter, for same-account delivery.
+//
+// - An Lambda function that belongs to the same account as the subscription
+// filter, for same-account delivery.
+//
+// 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.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon CloudWatch Logs's
+// API operation PutSubscriptionFilter for usage and error information.
+//
+// Returned Error Types:
+//
+// - InvalidParameterException
+// A parameter is specified incorrectly.
+//
+// - ResourceNotFoundException
+// The specified resource does not exist.
+//
+// - OperationAbortedException
+// Multiple concurrent requests to update the same resource were in conflict.
+//
+// - LimitExceededException
+// You have reached the maximum number of resources that can be created.
+//
+// - ServiceUnavailableException
+// The service cannot complete the request.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutSubscriptionFilter
+func (c *CloudWatchLogs) PutSubscriptionFilter(input *PutSubscriptionFilterInput) (*PutSubscriptionFilterOutput, error) {
+ req, out := c.PutSubscriptionFilterRequest(input)
+ return out, req.Send()
+}
+
+// PutSubscriptionFilterWithContext is the same as PutSubscriptionFilter with the addition of
+// the ability to pass a context and additional request options.
+//
+// See PutSubscriptionFilter for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CloudWatchLogs) PutSubscriptionFilterWithContext(ctx aws.Context, input *PutSubscriptionFilterInput, opts ...request.Option) (*PutSubscriptionFilterOutput, error) {
+ req, out := c.PutSubscriptionFilterRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opStartQuery = "StartQuery"
+
+// StartQueryRequest generates a "aws/request.Request" representing the
+// client's request for the StartQuery operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See StartQuery for more information on using the StartQuery
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the StartQueryRequest method.
+// req, resp := client.StartQueryRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/StartQuery
+func (c *CloudWatchLogs) StartQueryRequest(input *StartQueryInput) (req *request.Request, output *StartQueryOutput) {
+ op := &request.Operation{
+ Name: opStartQuery,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &StartQueryInput{}
+ }
+
+ output = &StartQueryOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// StartQuery API operation for Amazon CloudWatch Logs.
+//
+// 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 (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html).
+//
+// After you run a query using StartQuery, the query results are stored by CloudWatch
+// Logs. You can use GetQueryResults (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_GetQueryResults.html)
+// 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 (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartQuery.html)
+// 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 (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html).
+// 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.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon CloudWatch Logs's
+// API operation StartQuery for usage and error information.
+//
+// Returned Error Types:
+//
+// - MalformedQueryException
+// The query string is not valid. Details about this error are displayed in
+// a QueryCompileError object. For more information, see QueryCompileError (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_QueryCompileError.html).
+//
+// For more information about valid query syntax, see CloudWatch Logs Insights
+// Query Syntax (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html).
+//
+// - InvalidParameterException
+// A parameter is specified incorrectly.
+//
+// - LimitExceededException
+// You have reached the maximum number of resources that can be created.
+//
+// - ResourceNotFoundException
+// The specified resource does not exist.
+//
+// - ServiceUnavailableException
+// The service cannot complete the request.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/StartQuery
+func (c *CloudWatchLogs) StartQuery(input *StartQueryInput) (*StartQueryOutput, error) {
+ req, out := c.StartQueryRequest(input)
+ return out, req.Send()
+}
+
+// StartQueryWithContext is the same as StartQuery with the addition of
+// the ability to pass a context and additional request options.
+//
+// See StartQuery for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CloudWatchLogs) StartQueryWithContext(ctx aws.Context, input *StartQueryInput, opts ...request.Option) (*StartQueryOutput, error) {
+ req, out := c.StartQueryRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opStopQuery = "StopQuery"
+
+// StopQueryRequest generates a "aws/request.Request" representing the
+// client's request for the StopQuery operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See StopQuery for more information on using the StopQuery
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the StopQueryRequest method.
+// req, resp := client.StopQueryRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/StopQuery
+func (c *CloudWatchLogs) StopQueryRequest(input *StopQueryInput) (req *request.Request, output *StopQueryOutput) {
+ op := &request.Operation{
+ Name: opStopQuery,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &StopQueryInput{}
+ }
+
+ output = &StopQueryOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// StopQuery API operation for Amazon CloudWatch Logs.
+//
+// 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.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon CloudWatch Logs's
+// API operation StopQuery for usage and error information.
+//
+// Returned Error Types:
+//
+// - InvalidParameterException
+// A parameter is specified incorrectly.
+//
+// - ResourceNotFoundException
+// The specified resource does not exist.
+//
+// - ServiceUnavailableException
+// The service cannot complete the request.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/StopQuery
+func (c *CloudWatchLogs) StopQuery(input *StopQueryInput) (*StopQueryOutput, error) {
+ req, out := c.StopQueryRequest(input)
+ return out, req.Send()
+}
+
+// StopQueryWithContext is the same as StopQuery with the addition of
+// the ability to pass a context and additional request options.
+//
+// See StopQuery for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CloudWatchLogs) StopQueryWithContext(ctx aws.Context, input *StopQueryInput, opts ...request.Option) (*StopQueryOutput, error) {
+ req, out := c.StopQueryRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opTagLogGroup = "TagLogGroup"
+
+// TagLogGroupRequest generates a "aws/request.Request" representing the
+// client's request for the TagLogGroup operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See TagLogGroup for more information on using the TagLogGroup
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the TagLogGroupRequest method.
+// req, resp := client.TagLogGroupRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TagLogGroup
+//
+// Deprecated: Please use the generic tagging API TagResource
+func (c *CloudWatchLogs) TagLogGroupRequest(input *TagLogGroupInput) (req *request.Request, output *TagLogGroupOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, TagLogGroup, has been deprecated")
+ }
+ op := &request.Operation{
+ Name: opTagLogGroup,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &TagLogGroupInput{}
+ }
+
+ output = &TagLogGroupOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// TagLogGroup API operation for Amazon CloudWatch Logs.
+//
+// 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 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 (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html).
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon CloudWatch Logs's
+// API operation TagLogGroup for usage and error information.
+//
+// Returned Error Types:
+//
+// - ResourceNotFoundException
+// The specified resource does not exist.
+//
+// - InvalidParameterException
+// A parameter is specified incorrectly.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TagLogGroup
+//
+// Deprecated: Please use the generic tagging API TagResource
+func (c *CloudWatchLogs) TagLogGroup(input *TagLogGroupInput) (*TagLogGroupOutput, error) {
+ req, out := c.TagLogGroupRequest(input)
+ return out, req.Send()
+}
+
+// TagLogGroupWithContext is the same as TagLogGroup with the addition of
+// the ability to pass a context and additional request options.
+//
+// See TagLogGroup for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+//
+// Deprecated: Please use the generic tagging API TagResource
+func (c *CloudWatchLogs) TagLogGroupWithContext(ctx aws.Context, input *TagLogGroupInput, opts ...request.Option) (*TagLogGroupOutput, error) {
+ req, out := c.TagLogGroupRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opTagResource = "TagResource"
+
+// TagResourceRequest generates a "aws/request.Request" representing the
+// client's request for the TagResource operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See TagResource for more information on using the TagResource
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the TagResourceRequest method.
+// req, resp := client.TagResourceRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TagResource
+func (c *CloudWatchLogs) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) {
+ op := &request.Operation{
+ Name: opTagResource,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &TagResourceInput{}
+ }
+
+ output = &TagResourceOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// TagResource API operation for Amazon CloudWatch Logs.
+//
+// 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.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon CloudWatch Logs's
+// API operation TagResource for usage and error information.
+//
+// Returned Error Types:
+//
+// - InvalidParameterException
+// A parameter is specified incorrectly.
+//
+// - ResourceNotFoundException
+// The specified resource does not exist.
+//
+// - ServiceUnavailableException
+// The service cannot complete the request.
+//
+// - TooManyTagsException
+// A resource can have no more than 50 tags.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TagResource
+func (c *CloudWatchLogs) TagResource(input *TagResourceInput) (*TagResourceOutput, error) {
+ req, out := c.TagResourceRequest(input)
+ return out, req.Send()
+}
+
+// TagResourceWithContext is the same as TagResource with the addition of
+// the ability to pass a context and additional request options.
+//
+// See TagResource for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CloudWatchLogs) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) {
+ req, out := c.TagResourceRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opTestMetricFilter = "TestMetricFilter"
+
+// TestMetricFilterRequest generates a "aws/request.Request" representing the
+// client's request for the TestMetricFilter operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See TestMetricFilter for more information on using the TestMetricFilter
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the TestMetricFilterRequest method.
+// req, resp := client.TestMetricFilterRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TestMetricFilter
+func (c *CloudWatchLogs) TestMetricFilterRequest(input *TestMetricFilterInput) (req *request.Request, output *TestMetricFilterOutput) {
+ op := &request.Operation{
+ Name: opTestMetricFilter,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &TestMetricFilterInput{}
+ }
+
+ output = &TestMetricFilterOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// TestMetricFilter API operation for Amazon CloudWatch Logs.
+//
+// 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.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon CloudWatch Logs's
+// API operation TestMetricFilter for usage and error information.
+//
+// Returned Error Types:
+//
+// - InvalidParameterException
+// A parameter is specified incorrectly.
+//
+// - ServiceUnavailableException
+// The service cannot complete the request.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TestMetricFilter
+func (c *CloudWatchLogs) TestMetricFilter(input *TestMetricFilterInput) (*TestMetricFilterOutput, error) {
+ req, out := c.TestMetricFilterRequest(input)
+ return out, req.Send()
+}
+
+// TestMetricFilterWithContext is the same as TestMetricFilter with the addition of
+// the ability to pass a context and additional request options.
+//
+// See TestMetricFilter for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CloudWatchLogs) TestMetricFilterWithContext(ctx aws.Context, input *TestMetricFilterInput, opts ...request.Option) (*TestMetricFilterOutput, error) {
+ req, out := c.TestMetricFilterRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opUntagLogGroup = "UntagLogGroup"
+
+// UntagLogGroupRequest generates a "aws/request.Request" representing the
+// client's request for the UntagLogGroup operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See UntagLogGroup for more information on using the UntagLogGroup
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the UntagLogGroupRequest method.
+// req, resp := client.UntagLogGroupRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/UntagLogGroup
+//
+// Deprecated: Please use the generic tagging API UntagResource
+func (c *CloudWatchLogs) UntagLogGroupRequest(input *UntagLogGroupInput) (req *request.Request, output *UntagLogGroupOutput) {
+ if c.Client.Config.Logger != nil {
+ c.Client.Config.Logger.Log("This operation, UntagLogGroup, has been deprecated")
+ }
+ op := &request.Operation{
+ Name: opUntagLogGroup,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &UntagLogGroupInput{}
+ }
+
+ output = &UntagLogGroupOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// UntagLogGroup API operation for Amazon CloudWatch Logs.
+//
+// The UntagLogGroup operation is on the path to deprecation. We recommend that
+// you use UntagResource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UntagResource.html)
+// instead.
+//
+// Removes the specified tags from 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 add tags, use TagResource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_TagResource.html).
+//
+// 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.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon CloudWatch Logs's
+// API operation UntagLogGroup for usage and error information.
+//
+// Returned Error Types:
+// - ResourceNotFoundException
+// The specified resource does not exist.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/UntagLogGroup
+//
+// Deprecated: Please use the generic tagging API UntagResource
+func (c *CloudWatchLogs) UntagLogGroup(input *UntagLogGroupInput) (*UntagLogGroupOutput, error) {
+ req, out := c.UntagLogGroupRequest(input)
+ return out, req.Send()
+}
+
+// UntagLogGroupWithContext is the same as UntagLogGroup with the addition of
+// the ability to pass a context and additional request options.
+//
+// See UntagLogGroup for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+//
+// Deprecated: Please use the generic tagging API UntagResource
+func (c *CloudWatchLogs) UntagLogGroupWithContext(ctx aws.Context, input *UntagLogGroupInput, opts ...request.Option) (*UntagLogGroupOutput, error) {
+ req, out := c.UntagLogGroupRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opUntagResource = "UntagResource"
+
+// UntagResourceRequest generates a "aws/request.Request" representing the
+// client's request for the UntagResource operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See UntagResource for more information on using the UntagResource
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the UntagResourceRequest method.
+// req, resp := client.UntagResourceRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/UntagResource
+func (c *CloudWatchLogs) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) {
+ op := &request.Operation{
+ Name: opUntagResource,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &UntagResourceInput{}
+ }
+
+ output = &UntagResourceOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// UntagResource API operation for Amazon CloudWatch Logs.
+//
+// Removes one or more tags from the specified resource.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon CloudWatch Logs's
+// API operation UntagResource for usage and error information.
+//
+// Returned Error Types:
+//
+// - InvalidParameterException
+// A parameter is specified incorrectly.
+//
+// - ResourceNotFoundException
+// The specified resource does not exist.
+//
+// - ServiceUnavailableException
+// The service cannot complete the request.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/UntagResource
+func (c *CloudWatchLogs) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) {
+ req, out := c.UntagResourceRequest(input)
+ return out, req.Send()
+}
+
+// UntagResourceWithContext is the same as UntagResource with the addition of
+// the ability to pass a context and additional request options.
+//
+// See UntagResource for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CloudWatchLogs) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) {
+ req, out := c.UntagResourceRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// You don't have sufficient permissions to perform this action.
+type AccessDeniedException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"message" type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AccessDeniedException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AccessDeniedException) GoString() string {
+ return s.String()
+}
+
+func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
+ return &AccessDeniedException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *AccessDeniedException) Code() string {
+ return "AccessDeniedException"
+}
+
+// Message returns the exception's message.
+func (s *AccessDeniedException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *AccessDeniedException) OrigErr() error {
+ return nil
+}
+
+func (s *AccessDeniedException) Error() string {
+ return fmt.Sprintf("%s: %s", s.Code(), s.Message())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *AccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *AccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+// A structure that contains information about one CloudWatch Logs account policy.
+type AccountPolicy struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Web Services account ID that the policy applies to.
+ AccountId *string `locationName:"accountId" min:"12" type:"string"`
+
+ // The date and time that this policy was most recently updated.
+ LastUpdatedTime *int64 `locationName:"lastUpdatedTime" type:"long"`
+
+ // The policy document for this account policy.
+ //
+ // The JSON specified in policyDocument can be up to 30,720 characters.
+ PolicyDocument *string `locationName:"policyDocument" type:"string"`
+
+ // The name of the account policy.
+ PolicyName *string `locationName:"policyName" type:"string"`
+
+ // The type of policy for this account policy.
+ PolicyType *string `locationName:"policyType" type:"string" enum:"PolicyType"`
+
+ // The scope of the account policy.
+ Scope *string `locationName:"scope" type:"string" enum:"Scope"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AccountPolicy) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AccountPolicy) GoString() string {
+ return s.String()
+}
+
+// SetAccountId sets the AccountId field's value.
+func (s *AccountPolicy) SetAccountId(v string) *AccountPolicy {
+ s.AccountId = &v
+ return s
+}
+
+// SetLastUpdatedTime sets the LastUpdatedTime field's value.
+func (s *AccountPolicy) SetLastUpdatedTime(v int64) *AccountPolicy {
+ s.LastUpdatedTime = &v
+ return s
+}
+
+// SetPolicyDocument sets the PolicyDocument field's value.
+func (s *AccountPolicy) SetPolicyDocument(v string) *AccountPolicy {
+ s.PolicyDocument = &v
+ return s
+}
+
+// SetPolicyName sets the PolicyName field's value.
+func (s *AccountPolicy) SetPolicyName(v string) *AccountPolicy {
+ s.PolicyName = &v
+ return s
+}
+
+// SetPolicyType sets the PolicyType field's value.
+func (s *AccountPolicy) SetPolicyType(v string) *AccountPolicy {
+ s.PolicyType = &v
+ return s
+}
+
+// SetScope sets the Scope field's value.
+func (s *AccountPolicy) SetScope(v string) *AccountPolicy {
+ s.Scope = &v
+ return s
+}
+
+type AssociateKmsKeyInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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 (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms)
+ // and Using Symmetric and Asymmetric Keys (https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html).
+ //
+ // KmsKeyId is a required field
+ KmsKeyId *string `locationName:"kmsKeyId" type:"string" required:"true"`
+
+ // 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 `locationName:"logGroupName" min:"1" type:"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. arn:aws:logs:REGION:ACCOUNT_ID:query-result:*
+ //
+ // * Specify the ARN of a log group to have CloudWatch Logs use the KMS key
+ // to encrypt log events that are ingested and stored by that log group.
+ // The log group ARN must be in the following format. Replace REGION and
+ // ACCOUNT_ID with your Region and account ID. arn:aws:logs:REGION:ACCOUNT_ID:log-group:LOG_GROUP_NAME
+ //
+ // In your AssociateKmsKey operation, you must specify either the resourceIdentifier
+ // parameter or the logGroup parameter, but you can't specify both.
+ ResourceIdentifier *string `locationName:"resourceIdentifier" min:"1" type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AssociateKmsKeyInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AssociateKmsKeyInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *AssociateKmsKeyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "AssociateKmsKeyInput"}
+ if s.KmsKeyId == nil {
+ invalidParams.Add(request.NewErrParamRequired("KmsKeyId"))
+ }
+ if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
+ }
+ if s.ResourceIdentifier != nil && len(*s.ResourceIdentifier) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ResourceIdentifier", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetKmsKeyId sets the KmsKeyId field's value.
+func (s *AssociateKmsKeyInput) SetKmsKeyId(v string) *AssociateKmsKeyInput {
+ s.KmsKeyId = &v
+ return s
+}
+
+// SetLogGroupName sets the LogGroupName field's value.
+func (s *AssociateKmsKeyInput) SetLogGroupName(v string) *AssociateKmsKeyInput {
+ s.LogGroupName = &v
+ return s
+}
+
+// SetResourceIdentifier sets the ResourceIdentifier field's value.
+func (s *AssociateKmsKeyInput) SetResourceIdentifier(v string) *AssociateKmsKeyInput {
+ s.ResourceIdentifier = &v
+ return s
+}
+
+type AssociateKmsKeyOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AssociateKmsKeyOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AssociateKmsKeyOutput) GoString() string {
+ return s.String()
+}
+
+type CancelExportTaskInput struct {
+ _ struct{} `type:"structure"`
+
+ // The ID of the export task.
+ //
+ // TaskId is a required field
+ TaskId *string `locationName:"taskId" min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CancelExportTaskInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CancelExportTaskInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CancelExportTaskInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CancelExportTaskInput"}
+ if s.TaskId == nil {
+ invalidParams.Add(request.NewErrParamRequired("TaskId"))
+ }
+ if s.TaskId != nil && len(*s.TaskId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("TaskId", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetTaskId sets the TaskId field's value.
+func (s *CancelExportTaskInput) SetTaskId(v string) *CancelExportTaskInput {
+ s.TaskId = &v
+ return s
+}
+
+type CancelExportTaskOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CancelExportTaskOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CancelExportTaskOutput) GoString() string {
+ return s.String()
+}
+
+// This operation attempted to create a resource that already exists.
+type ConflictException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"message" type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ConflictException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ConflictException) GoString() string {
+ return s.String()
+}
+
+func newErrorConflictException(v protocol.ResponseMetadata) error {
+ return &ConflictException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *ConflictException) Code() string {
+ return "ConflictException"
+}
+
+// Message returns the exception's message.
+func (s *ConflictException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *ConflictException) OrigErr() error {
+ return nil
+}
+
+func (s *ConflictException) Error() string {
+ return fmt.Sprintf("%s: %s", s.Code(), s.Message())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *ConflictException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *ConflictException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+type CreateDeliveryInput struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN of the delivery destination to use for this delivery.
+ //
+ // DeliveryDestinationArn is a required field
+ DeliveryDestinationArn *string `locationName:"deliveryDestinationArn" type:"string" required:"true"`
+
+ // The name of the delivery source to use for this delivery.
+ //
+ // DeliverySourceName is a required field
+ DeliverySourceName *string `locationName:"deliverySourceName" min:"1" type:"string" required:"true"`
+
+ // An optional list of key-value pairs to associate with the resource.
+ //
+ // For more information about tagging, see Tagging Amazon Web Services resources
+ // (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html)
+ Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateDeliveryInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateDeliveryInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CreateDeliveryInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CreateDeliveryInput"}
+ if s.DeliveryDestinationArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("DeliveryDestinationArn"))
+ }
+ if s.DeliverySourceName == nil {
+ invalidParams.Add(request.NewErrParamRequired("DeliverySourceName"))
+ }
+ if s.DeliverySourceName != nil && len(*s.DeliverySourceName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("DeliverySourceName", 1))
+ }
+ if s.Tags != nil && len(s.Tags) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDeliveryDestinationArn sets the DeliveryDestinationArn field's value.
+func (s *CreateDeliveryInput) SetDeliveryDestinationArn(v string) *CreateDeliveryInput {
+ s.DeliveryDestinationArn = &v
+ return s
+}
+
+// SetDeliverySourceName sets the DeliverySourceName field's value.
+func (s *CreateDeliveryInput) SetDeliverySourceName(v string) *CreateDeliveryInput {
+ s.DeliverySourceName = &v
+ return s
+}
+
+// SetTags sets the Tags field's value.
+func (s *CreateDeliveryInput) SetTags(v map[string]*string) *CreateDeliveryInput {
+ s.Tags = v
+ return s
+}
+
+type CreateDeliveryOutput struct {
+ _ struct{} `type:"structure"`
+
+ // A structure that contains information about the delivery that you just created.
+ Delivery *Delivery `locationName:"delivery" type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateDeliveryOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateDeliveryOutput) GoString() string {
+ return s.String()
+}
+
+// SetDelivery sets the Delivery field's value.
+func (s *CreateDeliveryOutput) SetDelivery(v *Delivery) *CreateDeliveryOutput {
+ s.Delivery = v
+ return s
+}
+
+type CreateExportTaskInput struct {
+ _ struct{} `type:"structure"`
+
+ // The name of S3 bucket for the exported log data. The bucket must be in the
+ // same Amazon Web Services Region.
+ //
+ // Destination is a required field
+ Destination *string `locationName:"destination" min:"1" type:"string" required:"true"`
+
+ // The prefix used as the start of the key for every object exported. If you
+ // don't specify a value, the default is exportedlogs.
+ DestinationPrefix *string `locationName:"destinationPrefix" type:"string"`
+
+ // 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.
+ //
+ // From is a required field
+ From *int64 `locationName:"from" type:"long" required:"true"`
+
+ // The name of the log group.
+ //
+ // LogGroupName is a required field
+ LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"`
+
+ // Export only log streams that match the provided prefix. If you don't specify
+ // a value, no prefix filter is applied.
+ LogStreamNamePrefix *string `locationName:"logStreamNamePrefix" min:"1" type:"string"`
+
+ // The name of the export task.
+ TaskName *string `locationName:"taskName" min:"1" type:"string"`
+
+ // 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.
+ //
+ // To is a required field
+ To *int64 `locationName:"to" type:"long" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateExportTaskInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateExportTaskInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CreateExportTaskInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CreateExportTaskInput"}
+ if s.Destination == nil {
+ invalidParams.Add(request.NewErrParamRequired("Destination"))
+ }
+ if s.Destination != nil && len(*s.Destination) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Destination", 1))
+ }
+ if s.From == nil {
+ invalidParams.Add(request.NewErrParamRequired("From"))
+ }
+ if s.LogGroupName == nil {
+ invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
+ }
+ if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
+ }
+ if s.LogStreamNamePrefix != nil && len(*s.LogStreamNamePrefix) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("LogStreamNamePrefix", 1))
+ }
+ if s.TaskName != nil && len(*s.TaskName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("TaskName", 1))
+ }
+ if s.To == nil {
+ invalidParams.Add(request.NewErrParamRequired("To"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDestination sets the Destination field's value.
+func (s *CreateExportTaskInput) SetDestination(v string) *CreateExportTaskInput {
+ s.Destination = &v
+ return s
+}
+
+// SetDestinationPrefix sets the DestinationPrefix field's value.
+func (s *CreateExportTaskInput) SetDestinationPrefix(v string) *CreateExportTaskInput {
+ s.DestinationPrefix = &v
+ return s
+}
+
+// SetFrom sets the From field's value.
+func (s *CreateExportTaskInput) SetFrom(v int64) *CreateExportTaskInput {
+ s.From = &v
+ return s
+}
+
+// SetLogGroupName sets the LogGroupName field's value.
+func (s *CreateExportTaskInput) SetLogGroupName(v string) *CreateExportTaskInput {
+ s.LogGroupName = &v
+ return s
+}
+
+// SetLogStreamNamePrefix sets the LogStreamNamePrefix field's value.
+func (s *CreateExportTaskInput) SetLogStreamNamePrefix(v string) *CreateExportTaskInput {
+ s.LogStreamNamePrefix = &v
+ return s
+}
+
+// SetTaskName sets the TaskName field's value.
+func (s *CreateExportTaskInput) SetTaskName(v string) *CreateExportTaskInput {
+ s.TaskName = &v
+ return s
+}
+
+// SetTo sets the To field's value.
+func (s *CreateExportTaskInput) SetTo(v int64) *CreateExportTaskInput {
+ s.To = &v
+ return s
+}
+
+type CreateExportTaskOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The ID of the export task.
+ TaskId *string `locationName:"taskId" min:"1" type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateExportTaskOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateExportTaskOutput) GoString() string {
+ return s.String()
+}
+
+// SetTaskId sets the TaskId field's value.
+func (s *CreateExportTaskOutput) SetTaskId(v string) *CreateExportTaskOutput {
+ s.TaskId = &v
+ return s
+}
+
+type CreateLogGroupInput struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the KMS key to use when encrypting log
+ // data. For more information, see Amazon Resource Names (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms).
+ KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
+
+ // The name of the log group.
+ //
+ // LogGroupName is a required field
+ LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"`
+
+ // 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
+ // (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html). For more
+ // information about using tags to control access, see Controlling access to
+ // Amazon Web Services resources using tags (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html).
+ Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateLogGroupInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateLogGroupInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CreateLogGroupInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CreateLogGroupInput"}
+ if s.LogGroupName == nil {
+ invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
+ }
+ if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
+ }
+ if s.Tags != nil && len(s.Tags) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetKmsKeyId sets the KmsKeyId field's value.
+func (s *CreateLogGroupInput) SetKmsKeyId(v string) *CreateLogGroupInput {
+ s.KmsKeyId = &v
+ return s
+}
+
+// SetLogGroupName sets the LogGroupName field's value.
+func (s *CreateLogGroupInput) SetLogGroupName(v string) *CreateLogGroupInput {
+ s.LogGroupName = &v
+ return s
+}
+
+// SetTags sets the Tags field's value.
+func (s *CreateLogGroupInput) SetTags(v map[string]*string) *CreateLogGroupInput {
+ s.Tags = v
+ return s
+}
+
+type CreateLogGroupOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateLogGroupOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateLogGroupOutput) GoString() string {
+ return s.String()
+}
+
+type CreateLogStreamInput struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the log group.
+ //
+ // LogGroupName is a required field
+ LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"`
+
+ // The name of the log stream.
+ //
+ // LogStreamName is a required field
+ LogStreamName *string `locationName:"logStreamName" min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateLogStreamInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateLogStreamInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CreateLogStreamInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CreateLogStreamInput"}
+ if s.LogGroupName == nil {
+ invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
+ }
+ if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
+ }
+ if s.LogStreamName == nil {
+ invalidParams.Add(request.NewErrParamRequired("LogStreamName"))
+ }
+ if s.LogStreamName != nil && len(*s.LogStreamName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("LogStreamName", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetLogGroupName sets the LogGroupName field's value.
+func (s *CreateLogStreamInput) SetLogGroupName(v string) *CreateLogStreamInput {
+ s.LogGroupName = &v
+ return s
+}
+
+// SetLogStreamName sets the LogStreamName field's value.
+func (s *CreateLogStreamInput) SetLogStreamName(v string) *CreateLogStreamInput {
+ s.LogStreamName = &v
+ return s
+}
+
+type CreateLogStreamOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateLogStreamOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateLogStreamOutput) GoString() string {
+ return s.String()
+}
+
+// The event was already logged.
+//
+// PutLogEvents actions are now always accepted and never return DataAlreadyAcceptedException
+// regardless of whether a given batch of log events has already been accepted.
+type DataAlreadyAcceptedException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ ExpectedSequenceToken *string `locationName:"expectedSequenceToken" min:"1" type:"string"`
+
+ Message_ *string `locationName:"message" type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DataAlreadyAcceptedException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DataAlreadyAcceptedException) GoString() string {
+ return s.String()
+}
+
+func newErrorDataAlreadyAcceptedException(v protocol.ResponseMetadata) error {
+ return &DataAlreadyAcceptedException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *DataAlreadyAcceptedException) Code() string {
+ return "DataAlreadyAcceptedException"
+}
+
+// Message returns the exception's message.
+func (s *DataAlreadyAcceptedException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *DataAlreadyAcceptedException) OrigErr() error {
+ return nil
+}
+
+func (s *DataAlreadyAcceptedException) Error() string {
+ return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *DataAlreadyAcceptedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *DataAlreadyAcceptedException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+type DeleteAccountPolicyInput struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the policy to delete.
+ //
+ // PolicyName is a required field
+ PolicyName *string `locationName:"policyName" type:"string" required:"true"`
+
+ // The type of policy to delete. Currently, the only valid value is DATA_PROTECTION_POLICY.
+ //
+ // PolicyType is a required field
+ PolicyType *string `locationName:"policyType" type:"string" required:"true" enum:"PolicyType"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteAccountPolicyInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteAccountPolicyInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteAccountPolicyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteAccountPolicyInput"}
+ if s.PolicyName == nil {
+ invalidParams.Add(request.NewErrParamRequired("PolicyName"))
+ }
+ if s.PolicyType == nil {
+ invalidParams.Add(request.NewErrParamRequired("PolicyType"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetPolicyName sets the PolicyName field's value.
+func (s *DeleteAccountPolicyInput) SetPolicyName(v string) *DeleteAccountPolicyInput {
+ s.PolicyName = &v
+ return s
+}
+
+// SetPolicyType sets the PolicyType field's value.
+func (s *DeleteAccountPolicyInput) SetPolicyType(v string) *DeleteAccountPolicyInput {
+ s.PolicyType = &v
+ return s
+}
+
+type DeleteAccountPolicyOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteAccountPolicyOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteAccountPolicyOutput) GoString() string {
+ return s.String()
+}
+
+type DeleteDataProtectionPolicyInput struct {
+ _ struct{} `type:"structure"`
+
+ // The name or ARN of the log group that you want to delete the data protection
+ // policy for.
+ //
+ // LogGroupIdentifier is a required field
+ LogGroupIdentifier *string `locationName:"logGroupIdentifier" min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteDataProtectionPolicyInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteDataProtectionPolicyInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteDataProtectionPolicyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteDataProtectionPolicyInput"}
+ if s.LogGroupIdentifier == nil {
+ invalidParams.Add(request.NewErrParamRequired("LogGroupIdentifier"))
+ }
+ if s.LogGroupIdentifier != nil && len(*s.LogGroupIdentifier) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("LogGroupIdentifier", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetLogGroupIdentifier sets the LogGroupIdentifier field's value.
+func (s *DeleteDataProtectionPolicyInput) SetLogGroupIdentifier(v string) *DeleteDataProtectionPolicyInput {
+ s.LogGroupIdentifier = &v
+ return s
+}
+
+type DeleteDataProtectionPolicyOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteDataProtectionPolicyOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s AccountPolicy) String() string {
+func (s DeleteDataProtectionPolicyOutput) GoString() string {
+ return s.String()
+}
+
+type DeleteDeliveryDestinationInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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.
+ //
+ // Name is a required field
+ Name *string `locationName:"name" min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteDeliveryDestinationInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteDeliveryDestinationInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteDeliveryDestinationInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteDeliveryDestinationInput"}
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
+ }
+ if s.Name != nil && len(*s.Name) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Name", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetName sets the Name field's value.
+func (s *DeleteDeliveryDestinationInput) SetName(v string) *DeleteDeliveryDestinationInput {
+ s.Name = &v
+ return s
+}
+
+type DeleteDeliveryDestinationOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteDeliveryDestinationOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteDeliveryDestinationOutput) GoString() string {
+ return s.String()
+}
+
+type DeleteDeliveryDestinationPolicyInput struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the delivery destination that you want to delete the policy for.
+ //
+ // DeliveryDestinationName is a required field
+ DeliveryDestinationName *string `locationName:"deliveryDestinationName" min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteDeliveryDestinationPolicyInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteDeliveryDestinationPolicyInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteDeliveryDestinationPolicyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteDeliveryDestinationPolicyInput"}
+ if s.DeliveryDestinationName == nil {
+ invalidParams.Add(request.NewErrParamRequired("DeliveryDestinationName"))
+ }
+ if s.DeliveryDestinationName != nil && len(*s.DeliveryDestinationName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("DeliveryDestinationName", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDeliveryDestinationName sets the DeliveryDestinationName field's value.
+func (s *DeleteDeliveryDestinationPolicyInput) SetDeliveryDestinationName(v string) *DeleteDeliveryDestinationPolicyInput {
+ s.DeliveryDestinationName = &v
+ return s
+}
+
+type DeleteDeliveryDestinationPolicyOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteDeliveryDestinationPolicyOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteDeliveryDestinationPolicyOutput) GoString() string {
+ return s.String()
+}
+
+type DeleteDeliveryInput struct {
+ _ struct{} `type:"structure"`
+
+ // The unique ID of the delivery to delete. You can find the ID of a delivery
+ // with the DescribeDeliveries (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeDeliveries.html)
+ // operation.
+ //
+ // Id is a required field
+ Id *string `locationName:"id" min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteDeliveryInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteDeliveryInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteDeliveryInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteDeliveryInput"}
+ if s.Id == nil {
+ invalidParams.Add(request.NewErrParamRequired("Id"))
+ }
+ if s.Id != nil && len(*s.Id) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Id", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetId sets the Id field's value.
+func (s *DeleteDeliveryInput) SetId(v string) *DeleteDeliveryInput {
+ s.Id = &v
+ return s
+}
+
+type DeleteDeliveryOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteDeliveryOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteDeliveryOutput) GoString() string {
+ return s.String()
+}
+
+type DeleteDeliverySourceInput struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the delivery source that you want to delete.
+ //
+ // Name is a required field
+ Name *string `locationName:"name" min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteDeliverySourceInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteDeliverySourceInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteDeliverySourceInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteDeliverySourceInput"}
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
+ }
+ if s.Name != nil && len(*s.Name) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Name", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetName sets the Name field's value.
+func (s *DeleteDeliverySourceInput) SetName(v string) *DeleteDeliverySourceInput {
+ s.Name = &v
+ return s
+}
+
+type DeleteDeliverySourceOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteDeliverySourceOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteDeliverySourceOutput) GoString() string {
+ return s.String()
+}
+
+type DeleteDestinationInput struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the destination.
+ //
+ // DestinationName is a required field
+ DestinationName *string `locationName:"destinationName" min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteDestinationInput) String() string {
return awsutil.Prettify(s)
}
@@ -5477,77 +8531,225 @@ func (s AccountPolicy) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s AccountPolicy) GoString() string {
+func (s DeleteDestinationInput) GoString() string {
return s.String()
}
-// SetAccountId sets the AccountId field's value.
-func (s *AccountPolicy) SetAccountId(v string) *AccountPolicy {
- s.AccountId = &v
- return s
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteDestinationInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteDestinationInput"}
+ if s.DestinationName == nil {
+ invalidParams.Add(request.NewErrParamRequired("DestinationName"))
+ }
+ if s.DestinationName != nil && len(*s.DestinationName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("DestinationName", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
}
-// SetLastUpdatedTime sets the LastUpdatedTime field's value.
-func (s *AccountPolicy) SetLastUpdatedTime(v int64) *AccountPolicy {
- s.LastUpdatedTime = &v
+// SetDestinationName sets the DestinationName field's value.
+func (s *DeleteDestinationInput) SetDestinationName(v string) *DeleteDestinationInput {
+ s.DestinationName = &v
return s
}
-// SetPolicyDocument sets the PolicyDocument field's value.
-func (s *AccountPolicy) SetPolicyDocument(v string) *AccountPolicy {
- s.PolicyDocument = &v
- return s
+type DeleteDestinationOutput struct {
+ _ struct{} `type:"structure"`
}
-// SetPolicyName sets the PolicyName field's value.
-func (s *AccountPolicy) SetPolicyName(v string) *AccountPolicy {
- s.PolicyName = &v
- return s
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteDestinationOutput) String() string {
+ return awsutil.Prettify(s)
}
-// SetPolicyType sets the PolicyType field's value.
-func (s *AccountPolicy) SetPolicyType(v string) *AccountPolicy {
- s.PolicyType = &v
- return s
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteDestinationOutput) GoString() string {
+ return s.String()
}
-// SetScope sets the Scope field's value.
-func (s *AccountPolicy) SetScope(v string) *AccountPolicy {
- s.Scope = &v
+type DeleteLogGroupInput struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the log group.
+ //
+ // LogGroupName is a required field
+ LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteLogGroupInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteLogGroupInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteLogGroupInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteLogGroupInput"}
+ if s.LogGroupName == nil {
+ invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
+ }
+ if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetLogGroupName sets the LogGroupName field's value.
+func (s *DeleteLogGroupInput) SetLogGroupName(v string) *DeleteLogGroupInput {
+ s.LogGroupName = &v
return s
}
-type AssociateKmsKeyInput struct {
+type DeleteLogGroupOutput struct {
_ struct{} `type:"structure"`
+}
- // 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 (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms)
- // and Using Symmetric and Asymmetric Keys (https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html).
- //
- // KmsKeyId is a required field
- KmsKeyId *string `locationName:"kmsKeyId" type:"string" required:"true"`
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteLogGroupOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteLogGroupOutput) GoString() string {
+ return s.String()
+}
+
+type DeleteLogStreamInput struct {
+ _ struct{} `type:"structure"`
// 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 `locationName:"logGroupName" min:"1" type:"string"`
+ // LogGroupName is a required field
+ LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"`
- // Specifies the target for this operation. You must specify one of the following:
+ // The name of the log stream.
//
- // * 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. arn:aws:logs:REGION:ACCOUNT_ID:query-result:*
+ // LogStreamName is a required field
+ LogStreamName *string `locationName:"logStreamName" min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteLogStreamInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteLogStreamInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteLogStreamInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteLogStreamInput"}
+ if s.LogGroupName == nil {
+ invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
+ }
+ if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
+ }
+ if s.LogStreamName == nil {
+ invalidParams.Add(request.NewErrParamRequired("LogStreamName"))
+ }
+ if s.LogStreamName != nil && len(*s.LogStreamName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("LogStreamName", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetLogGroupName sets the LogGroupName field's value.
+func (s *DeleteLogStreamInput) SetLogGroupName(v string) *DeleteLogStreamInput {
+ s.LogGroupName = &v
+ return s
+}
+
+// SetLogStreamName sets the LogStreamName field's value.
+func (s *DeleteLogStreamInput) SetLogStreamName(v string) *DeleteLogStreamInput {
+ s.LogStreamName = &v
+ return s
+}
+
+type DeleteLogStreamOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteLogStreamOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteLogStreamOutput) GoString() string {
+ return s.String()
+}
+
+type DeleteMetricFilterInput struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the metric filter.
//
- // * Specify the ARN of a log group to have CloudWatch Logs use the KMS key
- // to encrypt log events that are ingested and stored by that log group.
- // The log group ARN must be in the following format. Replace REGION and
- // ACCOUNT_ID with your Region and account ID. arn:aws:logs:REGION:ACCOUNT_ID:log-group:LOG_GROUP_NAME
+ // FilterName is a required field
+ FilterName *string `locationName:"filterName" min:"1" type:"string" required:"true"`
+
+ // 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.
- ResourceIdentifier *string `locationName:"resourceIdentifier" min:"1" type:"string"`
+ // LogGroupName is a required field
+ LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"`
}
// String returns the string representation.
@@ -5555,7 +8757,7 @@ type AssociateKmsKeyInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s AssociateKmsKeyInput) String() string {
+func (s DeleteMetricFilterInput) String() string {
return awsutil.Prettify(s)
}
@@ -5564,22 +8766,25 @@ func (s AssociateKmsKeyInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s AssociateKmsKeyInput) GoString() string {
+func (s DeleteMetricFilterInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *AssociateKmsKeyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AssociateKmsKeyInput"}
- if s.KmsKeyId == nil {
- invalidParams.Add(request.NewErrParamRequired("KmsKeyId"))
+func (s *DeleteMetricFilterInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteMetricFilterInput"}
+ if s.FilterName == nil {
+ invalidParams.Add(request.NewErrParamRequired("FilterName"))
+ }
+ if s.FilterName != nil && len(*s.FilterName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("FilterName", 1))
+ }
+ if s.LogGroupName == nil {
+ invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
}
if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
}
- if s.ResourceIdentifier != nil && len(*s.ResourceIdentifier) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ResourceIdentifier", 1))
- }
if invalidParams.Len() > 0 {
return invalidParams
@@ -5587,25 +8792,19 @@ func (s *AssociateKmsKeyInput) Validate() error {
return nil
}
-// SetKmsKeyId sets the KmsKeyId field's value.
-func (s *AssociateKmsKeyInput) SetKmsKeyId(v string) *AssociateKmsKeyInput {
- s.KmsKeyId = &v
+// SetFilterName sets the FilterName field's value.
+func (s *DeleteMetricFilterInput) SetFilterName(v string) *DeleteMetricFilterInput {
+ s.FilterName = &v
return s
}
// SetLogGroupName sets the LogGroupName field's value.
-func (s *AssociateKmsKeyInput) SetLogGroupName(v string) *AssociateKmsKeyInput {
+func (s *DeleteMetricFilterInput) SetLogGroupName(v string) *DeleteMetricFilterInput {
s.LogGroupName = &v
return s
}
-// SetResourceIdentifier sets the ResourceIdentifier field's value.
-func (s *AssociateKmsKeyInput) SetResourceIdentifier(v string) *AssociateKmsKeyInput {
- s.ResourceIdentifier = &v
- return s
-}
-
-type AssociateKmsKeyOutput struct {
+type DeleteMetricFilterOutput struct {
_ struct{} `type:"structure"`
}
@@ -5614,7 +8813,7 @@ type AssociateKmsKeyOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s AssociateKmsKeyOutput) String() string {
+func (s DeleteMetricFilterOutput) String() string {
return awsutil.Prettify(s)
}
@@ -5623,17 +8822,19 @@ func (s AssociateKmsKeyOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s AssociateKmsKeyOutput) GoString() string {
+func (s DeleteMetricFilterOutput) GoString() string {
return s.String()
}
-type CancelExportTaskInput struct {
+type DeleteQueryDefinitionInput struct {
_ struct{} `type:"structure"`
- // The ID of the export task.
+ // The ID of the query definition that you want to delete. You can use DescribeQueryDefinitions
+ // (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeQueryDefinitions.html)
+ // to retrieve the IDs of your saved query definitions.
//
- // TaskId is a required field
- TaskId *string `locationName:"taskId" min:"1" type:"string" required:"true"`
+ // QueryDefinitionId is a required field
+ QueryDefinitionId *string `locationName:"queryDefinitionId" type:"string" required:"true"`
}
// String returns the string representation.
@@ -5641,7 +8842,7 @@ type CancelExportTaskInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CancelExportTaskInput) String() string {
+func (s DeleteQueryDefinitionInput) String() string {
return awsutil.Prettify(s)
}
@@ -5650,18 +8851,15 @@ func (s CancelExportTaskInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CancelExportTaskInput) GoString() string {
+func (s DeleteQueryDefinitionInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *CancelExportTaskInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CancelExportTaskInput"}
- if s.TaskId == nil {
- invalidParams.Add(request.NewErrParamRequired("TaskId"))
- }
- if s.TaskId != nil && len(*s.TaskId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TaskId", 1))
+func (s *DeleteQueryDefinitionInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteQueryDefinitionInput"}
+ if s.QueryDefinitionId == nil {
+ invalidParams.Add(request.NewErrParamRequired("QueryDefinitionId"))
}
if invalidParams.Len() > 0 {
@@ -5670,14 +8868,18 @@ func (s *CancelExportTaskInput) Validate() error {
return nil
}
-// SetTaskId sets the TaskId field's value.
-func (s *CancelExportTaskInput) SetTaskId(v string) *CancelExportTaskInput {
- s.TaskId = &v
+// SetQueryDefinitionId sets the QueryDefinitionId field's value.
+func (s *DeleteQueryDefinitionInput) SetQueryDefinitionId(v string) *DeleteQueryDefinitionInput {
+ s.QueryDefinitionId = &v
return s
}
-type CancelExportTaskOutput struct {
+type DeleteQueryDefinitionOutput struct {
_ struct{} `type:"structure"`
+
+ // A value of TRUE indicates that the operation succeeded. FALSE indicates that
+ // the operation failed.
+ Success *bool `locationName:"success" type:"boolean"`
}
// String returns the string representation.
@@ -5685,7 +8887,7 @@ type CancelExportTaskOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CancelExportTaskOutput) String() string {
+func (s DeleteQueryDefinitionOutput) String() string {
return awsutil.Prettify(s)
}
@@ -5694,51 +8896,21 @@ func (s CancelExportTaskOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CancelExportTaskOutput) GoString() string {
+func (s DeleteQueryDefinitionOutput) GoString() string {
return s.String()
}
-type CreateExportTaskInput struct {
- _ struct{} `type:"structure"`
-
- // The name of S3 bucket for the exported log data. The bucket must be in the
- // same Amazon Web Services Region.
- //
- // Destination is a required field
- Destination *string `locationName:"destination" min:"1" type:"string" required:"true"`
-
- // The prefix used as the start of the key for every object exported. If you
- // don't specify a value, the default is exportedlogs.
- DestinationPrefix *string `locationName:"destinationPrefix" type:"string"`
-
- // 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.
- //
- // From is a required field
- From *int64 `locationName:"from" type:"long" required:"true"`
-
- // The name of the log group.
- //
- // LogGroupName is a required field
- LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"`
-
- // Export only log streams that match the provided prefix. If you don't specify
- // a value, no prefix filter is applied.
- LogStreamNamePrefix *string `locationName:"logStreamNamePrefix" min:"1" type:"string"`
+// SetSuccess sets the Success field's value.
+func (s *DeleteQueryDefinitionOutput) SetSuccess(v bool) *DeleteQueryDefinitionOutput {
+ s.Success = &v
+ return s
+}
- // The name of the export task.
- TaskName *string `locationName:"taskName" min:"1" type:"string"`
+type DeleteResourcePolicyInput struct {
+ _ struct{} `type:"structure"`
- // 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.
- //
- // To is a required field
- To *int64 `locationName:"to" type:"long" required:"true"`
+ // The name of the policy to be revoked. This parameter is required.
+ PolicyName *string `locationName:"policyName" type:"string"`
}
// String returns the string representation.
@@ -5746,7 +8918,7 @@ type CreateExportTaskInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateExportTaskInput) String() string {
+func (s DeleteResourcePolicyInput) String() string {
return awsutil.Prettify(s)
}
@@ -5755,91 +8927,18 @@ func (s CreateExportTaskInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateExportTaskInput) GoString() string {
+func (s DeleteResourcePolicyInput) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *CreateExportTaskInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateExportTaskInput"}
- if s.Destination == nil {
- invalidParams.Add(request.NewErrParamRequired("Destination"))
- }
- if s.Destination != nil && len(*s.Destination) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Destination", 1))
- }
- if s.From == nil {
- invalidParams.Add(request.NewErrParamRequired("From"))
- }
- if s.LogGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
- }
- if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
- }
- if s.LogStreamNamePrefix != nil && len(*s.LogStreamNamePrefix) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("LogStreamNamePrefix", 1))
- }
- if s.TaskName != nil && len(*s.TaskName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TaskName", 1))
- }
- if s.To == nil {
- invalidParams.Add(request.NewErrParamRequired("To"))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetDestination sets the Destination field's value.
-func (s *CreateExportTaskInput) SetDestination(v string) *CreateExportTaskInput {
- s.Destination = &v
- return s
-}
-
-// SetDestinationPrefix sets the DestinationPrefix field's value.
-func (s *CreateExportTaskInput) SetDestinationPrefix(v string) *CreateExportTaskInput {
- s.DestinationPrefix = &v
- return s
-}
-
-// SetFrom sets the From field's value.
-func (s *CreateExportTaskInput) SetFrom(v int64) *CreateExportTaskInput {
- s.From = &v
- return s
-}
-
-// SetLogGroupName sets the LogGroupName field's value.
-func (s *CreateExportTaskInput) SetLogGroupName(v string) *CreateExportTaskInput {
- s.LogGroupName = &v
- return s
-}
-
-// SetLogStreamNamePrefix sets the LogStreamNamePrefix field's value.
-func (s *CreateExportTaskInput) SetLogStreamNamePrefix(v string) *CreateExportTaskInput {
- s.LogStreamNamePrefix = &v
- return s
-}
-
-// SetTaskName sets the TaskName field's value.
-func (s *CreateExportTaskInput) SetTaskName(v string) *CreateExportTaskInput {
- s.TaskName = &v
- return s
-}
-
-// SetTo sets the To field's value.
-func (s *CreateExportTaskInput) SetTo(v int64) *CreateExportTaskInput {
- s.To = &v
+// SetPolicyName sets the PolicyName field's value.
+func (s *DeleteResourcePolicyInput) SetPolicyName(v string) *DeleteResourcePolicyInput {
+ s.PolicyName = &v
return s
}
-type CreateExportTaskOutput struct {
+type DeleteResourcePolicyOutput struct {
_ struct{} `type:"structure"`
-
- // The ID of the export task.
- TaskId *string `locationName:"taskId" min:"1" type:"string"`
}
// String returns the string representation.
@@ -5847,7 +8946,7 @@ type CreateExportTaskOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateExportTaskOutput) String() string {
+func (s DeleteResourcePolicyOutput) String() string {
return awsutil.Prettify(s)
}
@@ -5856,39 +8955,17 @@ func (s CreateExportTaskOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateExportTaskOutput) GoString() string {
+func (s DeleteResourcePolicyOutput) GoString() string {
return s.String()
}
-// SetTaskId sets the TaskId field's value.
-func (s *CreateExportTaskOutput) SetTaskId(v string) *CreateExportTaskOutput {
- s.TaskId = &v
- return s
-}
-
-type CreateLogGroupInput struct {
+type DeleteRetentionPolicyInput struct {
_ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the KMS key to use when encrypting log
- // data. For more information, see Amazon Resource Names (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms).
- KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
-
// The name of the log group.
//
// LogGroupName is a required field
LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"`
-
- // 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
- // (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html). For more
- // information about using tags to control access, see Controlling access to
- // Amazon Web Services resources using tags (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html).
- Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
}
// String returns the string representation.
@@ -5896,7 +8973,7 @@ type CreateLogGroupInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateLogGroupInput) String() string {
+func (s DeleteRetentionPolicyInput) String() string {
return awsutil.Prettify(s)
}
@@ -5905,22 +8982,19 @@ func (s CreateLogGroupInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateLogGroupInput) GoString() string {
+func (s DeleteRetentionPolicyInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *CreateLogGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateLogGroupInput"}
+func (s *DeleteRetentionPolicyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteRetentionPolicyInput"}
if s.LogGroupName == nil {
invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
}
if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
}
- if s.Tags != nil && len(s.Tags) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
- }
if invalidParams.Len() > 0 {
return invalidParams
@@ -5928,25 +9002,13 @@ func (s *CreateLogGroupInput) Validate() error {
return nil
}
-// SetKmsKeyId sets the KmsKeyId field's value.
-func (s *CreateLogGroupInput) SetKmsKeyId(v string) *CreateLogGroupInput {
- s.KmsKeyId = &v
- return s
-}
-
// SetLogGroupName sets the LogGroupName field's value.
-func (s *CreateLogGroupInput) SetLogGroupName(v string) *CreateLogGroupInput {
+func (s *DeleteRetentionPolicyInput) SetLogGroupName(v string) *DeleteRetentionPolicyInput {
s.LogGroupName = &v
return s
}
-// SetTags sets the Tags field's value.
-func (s *CreateLogGroupInput) SetTags(v map[string]*string) *CreateLogGroupInput {
- s.Tags = v
- return s
-}
-
-type CreateLogGroupOutput struct {
+type DeleteRetentionPolicyOutput struct {
_ struct{} `type:"structure"`
}
@@ -5955,7 +9017,7 @@ type CreateLogGroupOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateLogGroupOutput) String() string {
+func (s DeleteRetentionPolicyOutput) String() string {
return awsutil.Prettify(s)
}
@@ -5964,22 +9026,22 @@ func (s CreateLogGroupOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateLogGroupOutput) GoString() string {
+func (s DeleteRetentionPolicyOutput) GoString() string {
return s.String()
}
-type CreateLogStreamInput struct {
+type DeleteSubscriptionFilterInput struct {
_ struct{} `type:"structure"`
+ // The name of the subscription filter.
+ //
+ // FilterName is a required field
+ FilterName *string `locationName:"filterName" min:"1" type:"string" required:"true"`
+
// The name of the log group.
//
// LogGroupName is a required field
LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"`
-
- // The name of the log stream.
- //
- // LogStreamName is a required field
- LogStreamName *string `locationName:"logStreamName" min:"1" type:"string" required:"true"`
}
// String returns the string representation.
@@ -5987,7 +9049,7 @@ type CreateLogStreamInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateLogStreamInput) String() string {
+func (s DeleteSubscriptionFilterInput) String() string {
return awsutil.Prettify(s)
}
@@ -5996,25 +9058,25 @@ func (s CreateLogStreamInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateLogStreamInput) GoString() string {
+func (s DeleteSubscriptionFilterInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *CreateLogStreamInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateLogStreamInput"}
+func (s *DeleteSubscriptionFilterInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteSubscriptionFilterInput"}
+ if s.FilterName == nil {
+ invalidParams.Add(request.NewErrParamRequired("FilterName"))
+ }
+ if s.FilterName != nil && len(*s.FilterName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("FilterName", 1))
+ }
if s.LogGroupName == nil {
invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
}
if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
}
- if s.LogStreamName == nil {
- invalidParams.Add(request.NewErrParamRequired("LogStreamName"))
- }
- if s.LogStreamName != nil && len(*s.LogStreamName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("LogStreamName", 1))
- }
if invalidParams.Len() > 0 {
return invalidParams
@@ -6022,19 +9084,19 @@ func (s *CreateLogStreamInput) Validate() error {
return nil
}
-// SetLogGroupName sets the LogGroupName field's value.
-func (s *CreateLogStreamInput) SetLogGroupName(v string) *CreateLogStreamInput {
- s.LogGroupName = &v
+// SetFilterName sets the FilterName field's value.
+func (s *DeleteSubscriptionFilterInput) SetFilterName(v string) *DeleteSubscriptionFilterInput {
+ s.FilterName = &v
return s
}
-// SetLogStreamName sets the LogStreamName field's value.
-func (s *CreateLogStreamInput) SetLogStreamName(v string) *CreateLogStreamInput {
- s.LogStreamName = &v
+// SetLogGroupName sets the LogGroupName field's value.
+func (s *DeleteSubscriptionFilterInput) SetLogGroupName(v string) *DeleteSubscriptionFilterInput {
+ s.LogGroupName = &v
return s
}
-type CreateLogStreamOutput struct {
+type DeleteSubscriptionFilterOutput struct {
_ struct{} `type:"structure"`
}
@@ -6043,7 +9105,7 @@ type CreateLogStreamOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateLogStreamOutput) String() string {
+func (s DeleteSubscriptionFilterOutput) String() string {
return awsutil.Prettify(s)
}
@@ -6052,21 +9114,39 @@ func (s CreateLogStreamOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateLogStreamOutput) GoString() string {
+func (s DeleteSubscriptionFilterOutput) GoString() string {
return s.String()
}
-// The event was already logged.
+// This structure contains information about one delivery in your account.
//
-// PutLogEvents actions are now always accepted and never return DataAlreadyAcceptedException
-// regardless of whether a given batch of log events has already been accepted.
-type DataAlreadyAcceptedException struct {
- _ struct{} `type:"structure"`
- RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+// A delivery is a connection between a logical delivery source and a logical
+// delivery destination.
+//
+// For more information, see CreateDelivery (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html).
+//
+// You can't update an existing delivery. You can only create and delete deliveries.
+type Delivery struct {
+ _ struct{} `type:"structure"`
- ExpectedSequenceToken *string `locationName:"expectedSequenceToken" min:"1" type:"string"`
+ // The Amazon Resource Name (ARN) that uniquely identifies this delivery.
+ Arn *string `locationName:"arn" type:"string"`
- Message_ *string `locationName:"message" type:"string"`
+ // The ARN of the delivery destination that is associated with this delivery.
+ DeliveryDestinationArn *string `locationName:"deliveryDestinationArn" type:"string"`
+
+ // Displays whether the delivery destination associated with this delivery is
+ // CloudWatch Logs, Amazon S3, or Kinesis Data Firehose.
+ DeliveryDestinationType *string `locationName:"deliveryDestinationType" type:"string" enum:"DeliveryDestinationType"`
+
+ // The name of the delivery source that is associated with this delivery.
+ DeliverySourceName *string `locationName:"deliverySourceName" min:"1" type:"string"`
+
+ // The unique ID that identifies this delivery in your account.
+ Id *string `locationName:"id" min:"1" type:"string"`
+
+ // The tags that have been assigned to this delivery.
+ Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
}
// String returns the string representation.
@@ -6074,7 +9154,7 @@ type DataAlreadyAcceptedException struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DataAlreadyAcceptedException) String() string {
+func (s Delivery) String() string {
return awsutil.Prettify(s)
}
@@ -6083,60 +9163,95 @@ func (s DataAlreadyAcceptedException) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DataAlreadyAcceptedException) GoString() string {
+func (s Delivery) GoString() string {
return s.String()
}
-func newErrorDataAlreadyAcceptedException(v protocol.ResponseMetadata) error {
- return &DataAlreadyAcceptedException{
- RespMetadata: v,
- }
-}
-
-// Code returns the exception type name.
-func (s *DataAlreadyAcceptedException) Code() string {
- return "DataAlreadyAcceptedException"
+// SetArn sets the Arn field's value.
+func (s *Delivery) SetArn(v string) *Delivery {
+ s.Arn = &v
+ return s
}
-// Message returns the exception's message.
-func (s *DataAlreadyAcceptedException) Message() string {
- if s.Message_ != nil {
- return *s.Message_
- }
- return ""
+// SetDeliveryDestinationArn sets the DeliveryDestinationArn field's value.
+func (s *Delivery) SetDeliveryDestinationArn(v string) *Delivery {
+ s.DeliveryDestinationArn = &v
+ return s
}
-// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s *DataAlreadyAcceptedException) OrigErr() error {
- return nil
+// SetDeliveryDestinationType sets the DeliveryDestinationType field's value.
+func (s *Delivery) SetDeliveryDestinationType(v string) *Delivery {
+ s.DeliveryDestinationType = &v
+ return s
}
-func (s *DataAlreadyAcceptedException) Error() string {
- return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
+// SetDeliverySourceName sets the DeliverySourceName field's value.
+func (s *Delivery) SetDeliverySourceName(v string) *Delivery {
+ s.DeliverySourceName = &v
+ return s
}
-// Status code returns the HTTP status code for the request's response error.
-func (s *DataAlreadyAcceptedException) StatusCode() int {
- return s.RespMetadata.StatusCode
+// SetId sets the Id field's value.
+func (s *Delivery) SetId(v string) *Delivery {
+ s.Id = &v
+ return s
}
-// RequestID returns the service's response RequestID for request.
-func (s *DataAlreadyAcceptedException) RequestID() string {
- return s.RespMetadata.RequestID
+// SetTags sets the Tags field's value.
+func (s *Delivery) SetTags(v map[string]*string) *Delivery {
+ s.Tags = v
+ return s
}
-type DeleteAccountPolicyInput struct {
+// This structure contains information about one delivery destination in your
+// account. A delivery destination is an Amazon Web Services resource that represents
+// an shared id="AWS"/> service that logs can be sent to. CloudWatch Logs, Amazon
+// S3, are supported as Kinesis Data Firehose delivery destinations.
+//
+// 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 PutDeliverySource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliverySource.html).
+//
+// - Create a delivery destination, which is a logical object that represents
+// the actual delivery destination.
+//
+// - If you are delivering logs cross-account, you must use PutDeliveryDestinationPolicy
+// (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestinationolicy.html)
+// 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).
+//
+// 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.
+type DeliveryDestination struct {
_ struct{} `type:"structure"`
- // The name of the policy to delete.
- //
- // PolicyName is a required field
- PolicyName *string `locationName:"policyName" type:"string" required:"true"`
+ // The Amazon Resource Name (ARN) that uniquely identifies this delivery destination.
+ Arn *string `locationName:"arn" type:"string"`
- // The type of policy to delete. Currently, the only valid value is DATA_PROTECTION_POLICY.
- //
- // PolicyType is a required field
- PolicyType *string `locationName:"policyType" type:"string" required:"true" enum:"PolicyType"`
+ // A structure that contains the ARN of the Amazon Web Services resource that
+ // will receive the logs.
+ DeliveryDestinationConfiguration *DeliveryDestinationConfiguration `locationName:"deliveryDestinationConfiguration" type:"structure"`
+
+ // Displays whether this delivery destination is CloudWatch Logs, Amazon S3,
+ // or Kinesis Data Firehose.
+ DeliveryDestinationType *string `locationName:"deliveryDestinationType" type:"string" enum:"DeliveryDestinationType"`
+
+ // The name of this delivery destination.
+ Name *string `locationName:"name" min:"1" type:"string"`
+
+ // The format of the logs that are sent to this delivery destination.
+ OutputFormat *string `locationName:"outputFormat" type:"string" enum:"OutputFormat"`
+
+ // The tags that have been assigned to this delivery destination.
+ Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
}
// String returns the string representation.
@@ -6144,7 +9259,7 @@ type DeleteAccountPolicyInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteAccountPolicyInput) String() string {
+func (s DeliveryDestination) String() string {
return awsutil.Prettify(s)
}
@@ -6153,68 +9268,56 @@ func (s DeleteAccountPolicyInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteAccountPolicyInput) GoString() string {
+func (s DeliveryDestination) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *DeleteAccountPolicyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteAccountPolicyInput"}
- if s.PolicyName == nil {
- invalidParams.Add(request.NewErrParamRequired("PolicyName"))
- }
- if s.PolicyType == nil {
- invalidParams.Add(request.NewErrParamRequired("PolicyType"))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
+// SetArn sets the Arn field's value.
+func (s *DeliveryDestination) SetArn(v string) *DeliveryDestination {
+ s.Arn = &v
+ return s
}
-// SetPolicyName sets the PolicyName field's value.
-func (s *DeleteAccountPolicyInput) SetPolicyName(v string) *DeleteAccountPolicyInput {
- s.PolicyName = &v
+// SetDeliveryDestinationConfiguration sets the DeliveryDestinationConfiguration field's value.
+func (s *DeliveryDestination) SetDeliveryDestinationConfiguration(v *DeliveryDestinationConfiguration) *DeliveryDestination {
+ s.DeliveryDestinationConfiguration = v
return s
}
-// SetPolicyType sets the PolicyType field's value.
-func (s *DeleteAccountPolicyInput) SetPolicyType(v string) *DeleteAccountPolicyInput {
- s.PolicyType = &v
+// SetDeliveryDestinationType sets the DeliveryDestinationType field's value.
+func (s *DeliveryDestination) SetDeliveryDestinationType(v string) *DeliveryDestination {
+ s.DeliveryDestinationType = &v
return s
}
-type DeleteAccountPolicyOutput struct {
- _ struct{} `type:"structure"`
+// SetName sets the Name field's value.
+func (s *DeliveryDestination) SetName(v string) *DeliveryDestination {
+ s.Name = &v
+ return s
}
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s DeleteAccountPolicyOutput) String() string {
- return awsutil.Prettify(s)
+// SetOutputFormat sets the OutputFormat field's value.
+func (s *DeliveryDestination) SetOutputFormat(v string) *DeliveryDestination {
+ s.OutputFormat = &v
+ return s
}
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s DeleteAccountPolicyOutput) GoString() string {
- return s.String()
+// SetTags sets the Tags field's value.
+func (s *DeliveryDestination) SetTags(v map[string]*string) *DeliveryDestination {
+ s.Tags = v
+ return s
}
-type DeleteDataProtectionPolicyInput struct {
+// A structure that contains information about one logs delivery destination.
+type DeliveryDestinationConfiguration struct {
_ struct{} `type:"structure"`
- // The name or ARN of the log group that you want to delete the data protection
- // policy for.
+ // The ARN of the Amazon Web Services destination that this delivery destination
+ // represents. That Amazon Web Services destination can be a log group in CloudWatch
+ // Logs, an Amazon S3 bucket, or a delivery stream in Kinesis Data Firehose.
//
- // LogGroupIdentifier is a required field
- LogGroupIdentifier *string `locationName:"logGroupIdentifier" min:"1" type:"string" required:"true"`
+ // DestinationResourceArn is a required field
+ DestinationResourceArn *string `locationName:"destinationResourceArn" type:"string" required:"true"`
}
// String returns the string representation.
@@ -6222,7 +9325,7 @@ type DeleteDataProtectionPolicyInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteDataProtectionPolicyInput) String() string {
+func (s DeliveryDestinationConfiguration) String() string {
return awsutil.Prettify(s)
}
@@ -6231,18 +9334,15 @@ func (s DeleteDataProtectionPolicyInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteDataProtectionPolicyInput) GoString() string {
+func (s DeliveryDestinationConfiguration) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *DeleteDataProtectionPolicyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteDataProtectionPolicyInput"}
- if s.LogGroupIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("LogGroupIdentifier"))
- }
- if s.LogGroupIdentifier != nil && len(*s.LogGroupIdentifier) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("LogGroupIdentifier", 1))
+func (s *DeliveryDestinationConfiguration) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeliveryDestinationConfiguration"}
+ if s.DestinationResourceArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("DestinationResourceArn"))
}
if invalidParams.Len() > 0 {
@@ -6251,41 +9351,68 @@ func (s *DeleteDataProtectionPolicyInput) Validate() error {
return nil
}
-// SetLogGroupIdentifier sets the LogGroupIdentifier field's value.
-func (s *DeleteDataProtectionPolicyInput) SetLogGroupIdentifier(v string) *DeleteDataProtectionPolicyInput {
- s.LogGroupIdentifier = &v
+// SetDestinationResourceArn sets the DestinationResourceArn field's value.
+func (s *DeliveryDestinationConfiguration) SetDestinationResourceArn(v string) *DeliveryDestinationConfiguration {
+ s.DestinationResourceArn = &v
return s
}
-type DeleteDataProtectionPolicyOutput struct {
+// This structure contains information about one delivery source in your account.
+// A delivery source is an Amazon Web Services resource that sends logs to an
+// Amazon Web Services 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 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#AWS-vended-logs-permissions)
+//
+// 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 PutDeliverySource (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliverySource.html).
+//
+// - Create a delivery destination, which is a logical object that represents
+// the actual delivery destination. For more information, see PutDeliveryDestination
+// (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestination.html).
+//
+// - If you are delivering logs cross-account, you must use PutDeliveryDestinationPolicy
+// (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestinationolicy.html)
+// 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).
+//
+// 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.
+type DeliverySource struct {
_ struct{} `type:"structure"`
-}
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s DeleteDataProtectionPolicyOutput) String() string {
- return awsutil.Prettify(s)
-}
+ // The Amazon Resource Name (ARN) that uniquely identifies this delivery source.
+ Arn *string `locationName:"arn" type:"string"`
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s DeleteDataProtectionPolicyOutput) GoString() string {
- return s.String()
-}
+ // The type of log that the source is sending. For valid values for this parameter,
+ // see the documentation for the source service.
+ LogType *string `locationName:"logType" min:"1" type:"string"`
-type DeleteDestinationInput struct {
- _ struct{} `type:"structure"`
+ // The unique name of the delivery source.
+ Name *string `locationName:"name" min:"1" type:"string"`
- // The name of the destination.
- //
- // DestinationName is a required field
- DestinationName *string `locationName:"destinationName" min:"1" type:"string" required:"true"`
+ // This array contains the ARN of the Amazon Web Services resource that sends
+ // logs and is represented by this delivery source. Currently, only one ARN
+ // can be in the array.
+ ResourceArns []*string `locationName:"resourceArns" type:"list"`
+
+ // The Amazon Web Services service that is sending logs.
+ Service *string `locationName:"service" min:"1" type:"string"`
+
+ // The tags that have been assigned to this delivery source.
+ Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
}
// String returns the string representation.
@@ -6293,7 +9420,7 @@ type DeleteDestinationInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteDestinationInput) String() string {
+func (s DeliverySource) String() string {
return awsutil.Prettify(s)
}
@@ -6302,61 +9429,68 @@ func (s DeleteDestinationInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteDestinationInput) GoString() string {
+func (s DeliverySource) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *DeleteDestinationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteDestinationInput"}
- if s.DestinationName == nil {
- invalidParams.Add(request.NewErrParamRequired("DestinationName"))
- }
- if s.DestinationName != nil && len(*s.DestinationName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DestinationName", 1))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
+// SetArn sets the Arn field's value.
+func (s *DeliverySource) SetArn(v string) *DeliverySource {
+ s.Arn = &v
+ return s
}
-// SetDestinationName sets the DestinationName field's value.
-func (s *DeleteDestinationInput) SetDestinationName(v string) *DeleteDestinationInput {
- s.DestinationName = &v
+// SetLogType sets the LogType field's value.
+func (s *DeliverySource) SetLogType(v string) *DeliverySource {
+ s.LogType = &v
return s
}
-type DeleteDestinationOutput struct {
- _ struct{} `type:"structure"`
+// SetName sets the Name field's value.
+func (s *DeliverySource) SetName(v string) *DeliverySource {
+ s.Name = &v
+ return s
+}
+
+// SetResourceArns sets the ResourceArns field's value.
+func (s *DeliverySource) SetResourceArns(v []*string) *DeliverySource {
+ s.ResourceArns = v
+ return s
}
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s DeleteDestinationOutput) String() string {
- return awsutil.Prettify(s)
+// SetService sets the Service field's value.
+func (s *DeliverySource) SetService(v string) *DeliverySource {
+ s.Service = &v
+ return s
}
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s DeleteDestinationOutput) GoString() string {
- return s.String()
+// SetTags sets the Tags field's value.
+func (s *DeliverySource) SetTags(v map[string]*string) *DeliverySource {
+ s.Tags = v
+ return s
}
-type DeleteLogGroupInput struct {
+type DescribeAccountPoliciesInput struct {
_ struct{} `type:"structure"`
- // The name of the log group.
+ // 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.
//
- // LogGroupName is a required field
- LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"`
+ // If you omit this parameter, only the policy in the current account is returned.
+ AccountIdentifiers []*string `locationName:"accountIdentifiers" type:"list"`
+
+ // Use this parameter to limit the returned policies to only the policy with
+ // the name that you specify.
+ PolicyName *string `locationName:"policyName" type:"string"`
+
+ // 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.
+ //
+ // PolicyType is a required field
+ PolicyType *string `locationName:"policyType" type:"string" required:"true" enum:"PolicyType"`
}
// String returns the string representation.
@@ -6364,7 +9498,7 @@ type DeleteLogGroupInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteLogGroupInput) String() string {
+func (s DescribeAccountPoliciesInput) String() string {
return awsutil.Prettify(s)
}
@@ -6373,18 +9507,15 @@ func (s DeleteLogGroupInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteLogGroupInput) GoString() string {
+func (s DescribeAccountPoliciesInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *DeleteLogGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteLogGroupInput"}
- if s.LogGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
- }
- if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
+func (s *DescribeAccountPoliciesInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeAccountPoliciesInput"}
+ if s.PolicyType == nil {
+ invalidParams.Add(request.NewErrParamRequired("PolicyType"))
}
if invalidParams.Len() > 0 {
@@ -6393,14 +9524,30 @@ func (s *DeleteLogGroupInput) Validate() error {
return nil
}
-// SetLogGroupName sets the LogGroupName field's value.
-func (s *DeleteLogGroupInput) SetLogGroupName(v string) *DeleteLogGroupInput {
- s.LogGroupName = &v
+// SetAccountIdentifiers sets the AccountIdentifiers field's value.
+func (s *DescribeAccountPoliciesInput) SetAccountIdentifiers(v []*string) *DescribeAccountPoliciesInput {
+ s.AccountIdentifiers = v
return s
}
-type DeleteLogGroupOutput struct {
+// SetPolicyName sets the PolicyName field's value.
+func (s *DescribeAccountPoliciesInput) SetPolicyName(v string) *DescribeAccountPoliciesInput {
+ s.PolicyName = &v
+ return s
+}
+
+// SetPolicyType sets the PolicyType field's value.
+func (s *DescribeAccountPoliciesInput) SetPolicyType(v string) *DescribeAccountPoliciesInput {
+ s.PolicyType = &v
+ return s
+}
+
+type DescribeAccountPoliciesOutput struct {
_ struct{} `type:"structure"`
+
+ // An array of structures that contain information about the CloudWatch Logs
+ // account policies that match the specified filters.
+ AccountPolicies []*AccountPolicy `locationName:"accountPolicies" type:"list"`
}
// String returns the string representation.
@@ -6408,7 +9555,7 @@ type DeleteLogGroupOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteLogGroupOutput) String() string {
+func (s DescribeAccountPoliciesOutput) String() string {
return awsutil.Prettify(s)
}
@@ -6417,22 +9564,25 @@ func (s DeleteLogGroupOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteLogGroupOutput) GoString() string {
+func (s DescribeAccountPoliciesOutput) GoString() string {
return s.String()
}
-type DeleteLogStreamInput struct {
+// SetAccountPolicies sets the AccountPolicies field's value.
+func (s *DescribeAccountPoliciesOutput) SetAccountPolicies(v []*AccountPolicy) *DescribeAccountPoliciesOutput {
+ s.AccountPolicies = v
+ return s
+}
+
+type DescribeDeliveriesInput struct {
_ struct{} `type:"structure"`
- // The name of the log group.
- //
- // LogGroupName is a required field
- LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"`
+ // Optionally specify the maximum number of deliveries to return in the response.
+ Limit *int64 `locationName:"limit" min:"1" type:"integer"`
- // The name of the log stream.
- //
- // LogStreamName is a required field
- LogStreamName *string `locationName:"logStreamName" min:"1" type:"string" required:"true"`
+ // The token for the next set of items to return. The token expires after 24
+ // hours.
+ NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}
// String returns the string representation.
@@ -6440,7 +9590,7 @@ type DeleteLogStreamInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteLogStreamInput) String() string {
+func (s DescribeDeliveriesInput) String() string {
return awsutil.Prettify(s)
}
@@ -6449,24 +9599,18 @@ func (s DeleteLogStreamInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteLogStreamInput) GoString() string {
+func (s DescribeDeliveriesInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *DeleteLogStreamInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteLogStreamInput"}
- if s.LogGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
- }
- if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
- }
- if s.LogStreamName == nil {
- invalidParams.Add(request.NewErrParamRequired("LogStreamName"))
+func (s *DescribeDeliveriesInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeDeliveriesInput"}
+ if s.Limit != nil && *s.Limit < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
}
- if s.LogStreamName != nil && len(*s.LogStreamName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("LogStreamName", 1))
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
}
if invalidParams.Len() > 0 {
@@ -6475,20 +9619,28 @@ func (s *DeleteLogStreamInput) Validate() error {
return nil
}
-// SetLogGroupName sets the LogGroupName field's value.
-func (s *DeleteLogStreamInput) SetLogGroupName(v string) *DeleteLogStreamInput {
- s.LogGroupName = &v
+// SetLimit sets the Limit field's value.
+func (s *DescribeDeliveriesInput) SetLimit(v int64) *DescribeDeliveriesInput {
+ s.Limit = &v
return s
}
-// SetLogStreamName sets the LogStreamName field's value.
-func (s *DeleteLogStreamInput) SetLogStreamName(v string) *DeleteLogStreamInput {
- s.LogStreamName = &v
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeDeliveriesInput) SetNextToken(v string) *DescribeDeliveriesInput {
+ s.NextToken = &v
return s
}
-type DeleteLogStreamOutput struct {
+type DescribeDeliveriesOutput struct {
_ struct{} `type:"structure"`
+
+ // An array of structures. Each structure contains information about one delivery
+ // in the account.
+ Deliveries []*Delivery `locationName:"deliveries" type:"list"`
+
+ // The token for the next set of items to return. The token expires after 24
+ // hours.
+ NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}
// String returns the string representation.
@@ -6496,7 +9648,7 @@ type DeleteLogStreamOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteLogStreamOutput) String() string {
+func (s DescribeDeliveriesOutput) String() string {
return awsutil.Prettify(s)
}
@@ -6505,22 +9657,32 @@ func (s DeleteLogStreamOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteLogStreamOutput) GoString() string {
+func (s DescribeDeliveriesOutput) GoString() string {
return s.String()
}
-type DeleteMetricFilterInput struct {
+// SetDeliveries sets the Deliveries field's value.
+func (s *DescribeDeliveriesOutput) SetDeliveries(v []*Delivery) *DescribeDeliveriesOutput {
+ s.Deliveries = v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeDeliveriesOutput) SetNextToken(v string) *DescribeDeliveriesOutput {
+ s.NextToken = &v
+ return s
+}
+
+type DescribeDeliveryDestinationsInput struct {
_ struct{} `type:"structure"`
- // The name of the metric filter.
- //
- // FilterName is a required field
- FilterName *string `locationName:"filterName" min:"1" type:"string" required:"true"`
+ // Optionally specify the maximum number of delivery destinations to return
+ // in the response.
+ Limit *int64 `locationName:"limit" min:"1" type:"integer"`
- // The name of the log group.
- //
- // LogGroupName is a required field
- LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"`
+ // The token for the next set of items to return. The token expires after 24
+ // hours.
+ NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}
// String returns the string representation.
@@ -6528,7 +9690,7 @@ type DeleteMetricFilterInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteMetricFilterInput) String() string {
+func (s DescribeDeliveryDestinationsInput) String() string {
return awsutil.Prettify(s)
}
@@ -6537,24 +9699,18 @@ func (s DeleteMetricFilterInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteMetricFilterInput) GoString() string {
+func (s DescribeDeliveryDestinationsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *DeleteMetricFilterInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteMetricFilterInput"}
- if s.FilterName == nil {
- invalidParams.Add(request.NewErrParamRequired("FilterName"))
- }
- if s.FilterName != nil && len(*s.FilterName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("FilterName", 1))
- }
- if s.LogGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
+func (s *DescribeDeliveryDestinationsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeDeliveryDestinationsInput"}
+ if s.Limit != nil && *s.Limit < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
}
- if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
}
if invalidParams.Len() > 0 {
@@ -6563,20 +9719,28 @@ func (s *DeleteMetricFilterInput) Validate() error {
return nil
}
-// SetFilterName sets the FilterName field's value.
-func (s *DeleteMetricFilterInput) SetFilterName(v string) *DeleteMetricFilterInput {
- s.FilterName = &v
+// SetLimit sets the Limit field's value.
+func (s *DescribeDeliveryDestinationsInput) SetLimit(v int64) *DescribeDeliveryDestinationsInput {
+ s.Limit = &v
return s
}
-// SetLogGroupName sets the LogGroupName field's value.
-func (s *DeleteMetricFilterInput) SetLogGroupName(v string) *DeleteMetricFilterInput {
- s.LogGroupName = &v
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeDeliveryDestinationsInput) SetNextToken(v string) *DescribeDeliveryDestinationsInput {
+ s.NextToken = &v
return s
}
-type DeleteMetricFilterOutput struct {
+type DescribeDeliveryDestinationsOutput struct {
_ struct{} `type:"structure"`
+
+ // An array of structures. Each structure contains information about one delivery
+ // destination in the account.
+ DeliveryDestinations []*DeliveryDestination `locationName:"deliveryDestinations" type:"list"`
+
+ // The token for the next set of items to return. The token expires after 24
+ // hours.
+ NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}
// String returns the string representation.
@@ -6584,7 +9748,7 @@ type DeleteMetricFilterOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteMetricFilterOutput) String() string {
+func (s DescribeDeliveryDestinationsOutput) String() string {
return awsutil.Prettify(s)
}
@@ -6593,19 +9757,32 @@ func (s DeleteMetricFilterOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteMetricFilterOutput) GoString() string {
+func (s DescribeDeliveryDestinationsOutput) GoString() string {
return s.String()
}
-type DeleteQueryDefinitionInput struct {
+// SetDeliveryDestinations sets the DeliveryDestinations field's value.
+func (s *DescribeDeliveryDestinationsOutput) SetDeliveryDestinations(v []*DeliveryDestination) *DescribeDeliveryDestinationsOutput {
+ s.DeliveryDestinations = v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeDeliveryDestinationsOutput) SetNextToken(v string) *DescribeDeliveryDestinationsOutput {
+ s.NextToken = &v
+ return s
+}
+
+type DescribeDeliverySourcesInput struct {
_ struct{} `type:"structure"`
- // The ID of the query definition that you want to delete. You can use DescribeQueryDefinitions
- // (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeQueryDefinitions.html)
- // to retrieve the IDs of your saved query definitions.
- //
- // QueryDefinitionId is a required field
- QueryDefinitionId *string `locationName:"queryDefinitionId" type:"string" required:"true"`
+ // Optionally specify the maximum number of delivery sources to return in the
+ // response.
+ Limit *int64 `locationName:"limit" min:"1" type:"integer"`
+
+ // The token for the next set of items to return. The token expires after 24
+ // hours.
+ NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}
// String returns the string representation.
@@ -6613,7 +9790,7 @@ type DeleteQueryDefinitionInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteQueryDefinitionInput) String() string {
+func (s DescribeDeliverySourcesInput) String() string {
return awsutil.Prettify(s)
}
@@ -6622,15 +9799,18 @@ func (s DeleteQueryDefinitionInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteQueryDefinitionInput) GoString() string {
+func (s DescribeDeliverySourcesInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *DeleteQueryDefinitionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteQueryDefinitionInput"}
- if s.QueryDefinitionId == nil {
- invalidParams.Add(request.NewErrParamRequired("QueryDefinitionId"))
+func (s *DescribeDeliverySourcesInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeDeliverySourcesInput"}
+ if s.Limit != nil && *s.Limit < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
+ }
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
}
if invalidParams.Len() > 0 {
@@ -6639,18 +9819,28 @@ func (s *DeleteQueryDefinitionInput) Validate() error {
return nil
}
-// SetQueryDefinitionId sets the QueryDefinitionId field's value.
-func (s *DeleteQueryDefinitionInput) SetQueryDefinitionId(v string) *DeleteQueryDefinitionInput {
- s.QueryDefinitionId = &v
+// SetLimit sets the Limit field's value.
+func (s *DescribeDeliverySourcesInput) SetLimit(v int64) *DescribeDeliverySourcesInput {
+ s.Limit = &v
return s
}
-type DeleteQueryDefinitionOutput struct {
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeDeliverySourcesInput) SetNextToken(v string) *DescribeDeliverySourcesInput {
+ s.NextToken = &v
+ return s
+}
+
+type DescribeDeliverySourcesOutput struct {
_ struct{} `type:"structure"`
- // A value of TRUE indicates that the operation succeeded. FALSE indicates that
- // the operation failed.
- Success *bool `locationName:"success" type:"boolean"`
+ // An array of structures. Each structure contains information about one delivery
+ // source in the account.
+ DeliverySources []*DeliverySource `locationName:"deliverySources" type:"list"`
+
+ // The token for the next set of items to return. The token expires after 24
+ // hours.
+ NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}
// String returns the string representation.
@@ -6658,7 +9848,7 @@ type DeleteQueryDefinitionOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteQueryDefinitionOutput) String() string {
+func (s DescribeDeliverySourcesOutput) String() string {
return awsutil.Prettify(s)
}
@@ -6667,21 +9857,35 @@ func (s DeleteQueryDefinitionOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteQueryDefinitionOutput) GoString() string {
+func (s DescribeDeliverySourcesOutput) GoString() string {
return s.String()
}
-// SetSuccess sets the Success field's value.
-func (s *DeleteQueryDefinitionOutput) SetSuccess(v bool) *DeleteQueryDefinitionOutput {
- s.Success = &v
+// SetDeliverySources sets the DeliverySources field's value.
+func (s *DescribeDeliverySourcesOutput) SetDeliverySources(v []*DeliverySource) *DescribeDeliverySourcesOutput {
+ s.DeliverySources = v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeDeliverySourcesOutput) SetNextToken(v string) *DescribeDeliverySourcesOutput {
+ s.NextToken = &v
return s
}
-type DeleteResourcePolicyInput struct {
+type DescribeDestinationsInput struct {
_ struct{} `type:"structure"`
- // The name of the policy to be revoked. This parameter is required.
- PolicyName *string `locationName:"policyName" type:"string"`
+ // The prefix to match. If you don't specify a value, no prefix filter is applied.
+ DestinationNamePrefix *string `min:"1" type:"string"`
+
+ // The maximum number of items returned. If you don't specify a value, the default
+ // maximum value of 50 items is used.
+ Limit *int64 `locationName:"limit" min:"1" type:"integer"`
+
+ // The token for the next set of items to return. (You received this token from
+ // a previous call.)
+ NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}
// String returns the string representation.
@@ -6689,7 +9893,7 @@ type DeleteResourcePolicyInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteResourcePolicyInput) String() string {
+func (s DescribeDestinationsInput) String() string {
return awsutil.Prettify(s)
}
@@ -6698,18 +9902,56 @@ func (s DeleteResourcePolicyInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteResourcePolicyInput) GoString() string {
+func (s DescribeDestinationsInput) GoString() string {
return s.String()
}
-// SetPolicyName sets the PolicyName field's value.
-func (s *DeleteResourcePolicyInput) SetPolicyName(v string) *DeleteResourcePolicyInput {
- s.PolicyName = &v
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DescribeDestinationsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeDestinationsInput"}
+ if s.DestinationNamePrefix != nil && len(*s.DestinationNamePrefix) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("DestinationNamePrefix", 1))
+ }
+ if s.Limit != nil && *s.Limit < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
+ }
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDestinationNamePrefix sets the DestinationNamePrefix field's value.
+func (s *DescribeDestinationsInput) SetDestinationNamePrefix(v string) *DescribeDestinationsInput {
+ s.DestinationNamePrefix = &v
return s
}
-type DeleteResourcePolicyOutput struct {
+// SetLimit sets the Limit field's value.
+func (s *DescribeDestinationsInput) SetLimit(v int64) *DescribeDestinationsInput {
+ s.Limit = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeDestinationsInput) SetNextToken(v string) *DescribeDestinationsInput {
+ s.NextToken = &v
+ return s
+}
+
+type DescribeDestinationsOutput struct {
_ struct{} `type:"structure"`
+
+ // The destinations.
+ Destinations []*Destination `locationName:"destinations" type:"list"`
+
+ // The token for the next set of items to return. The token expires after 24
+ // hours.
+ NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}
// String returns the string representation.
@@ -6717,7 +9959,7 @@ type DeleteResourcePolicyOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteResourcePolicyOutput) String() string {
+func (s DescribeDestinationsOutput) String() string {
return awsutil.Prettify(s)
}
@@ -6726,17 +9968,40 @@ func (s DeleteResourcePolicyOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteResourcePolicyOutput) GoString() string {
+func (s DescribeDestinationsOutput) GoString() string {
return s.String()
}
-type DeleteRetentionPolicyInput struct {
+// SetDestinations sets the Destinations field's value.
+func (s *DescribeDestinationsOutput) SetDestinations(v []*Destination) *DescribeDestinationsOutput {
+ s.Destinations = v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeDestinationsOutput) SetNextToken(v string) *DescribeDestinationsOutput {
+ s.NextToken = &v
+ return s
+}
+
+type DescribeExportTasksInput struct {
_ struct{} `type:"structure"`
- // The name of the log group.
- //
- // LogGroupName is a required field
- LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"`
+ // The maximum number of items returned. If you don't specify a value, the default
+ // is up to 50 items.
+ Limit *int64 `locationName:"limit" min:"1" type:"integer"`
+
+ // The token for the next set of items to return. (You received this token from
+ // a previous call.)
+ NextToken *string `locationName:"nextToken" min:"1" type:"string"`
+
+ // The status code of the export task. Specifying a status code filters the
+ // results to zero or more export tasks.
+ StatusCode *string `locationName:"statusCode" type:"string" enum:"ExportTaskStatusCode"`
+
+ // The ID of the export task. Specifying a task ID filters the results to one
+ // or zero export tasks.
+ TaskId *string `locationName:"taskId" min:"1" type:"string"`
}
// String returns the string representation.
@@ -6744,7 +10009,7 @@ type DeleteRetentionPolicyInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteRetentionPolicyInput) String() string {
+func (s DescribeExportTasksInput) String() string {
return awsutil.Prettify(s)
}
@@ -6753,18 +10018,21 @@ func (s DeleteRetentionPolicyInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteRetentionPolicyInput) GoString() string {
+func (s DescribeExportTasksInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *DeleteRetentionPolicyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteRetentionPolicyInput"}
- if s.LogGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
+func (s *DescribeExportTasksInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeExportTasksInput"}
+ if s.Limit != nil && *s.Limit < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
}
- if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ }
+ if s.TaskId != nil && len(*s.TaskId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("TaskId", 1))
}
if invalidParams.Len() > 0 {
@@ -6773,14 +10041,39 @@ func (s *DeleteRetentionPolicyInput) Validate() error {
return nil
}
-// SetLogGroupName sets the LogGroupName field's value.
-func (s *DeleteRetentionPolicyInput) SetLogGroupName(v string) *DeleteRetentionPolicyInput {
- s.LogGroupName = &v
+// SetLimit sets the Limit field's value.
+func (s *DescribeExportTasksInput) SetLimit(v int64) *DescribeExportTasksInput {
+ s.Limit = &v
return s
}
-type DeleteRetentionPolicyOutput struct {
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeExportTasksInput) SetNextToken(v string) *DescribeExportTasksInput {
+ s.NextToken = &v
+ return s
+}
+
+// SetStatusCode sets the StatusCode field's value.
+func (s *DescribeExportTasksInput) SetStatusCode(v string) *DescribeExportTasksInput {
+ s.StatusCode = &v
+ return s
+}
+
+// SetTaskId sets the TaskId field's value.
+func (s *DescribeExportTasksInput) SetTaskId(v string) *DescribeExportTasksInput {
+ s.TaskId = &v
+ return s
+}
+
+type DescribeExportTasksOutput struct {
_ struct{} `type:"structure"`
+
+ // The export tasks.
+ ExportTasks []*ExportTask `locationName:"exportTasks" type:"list"`
+
+ // The token for the next set of items to return. The token expires after 24
+ // hours.
+ NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}
// String returns the string representation.
@@ -6788,7 +10081,7 @@ type DeleteRetentionPolicyOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteRetentionPolicyOutput) String() string {
+func (s DescribeExportTasksOutput) String() string {
return awsutil.Prettify(s)
}
@@ -6797,22 +10090,63 @@ func (s DeleteRetentionPolicyOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteRetentionPolicyOutput) GoString() string {
+func (s DescribeExportTasksOutput) GoString() string {
return s.String()
}
-type DeleteSubscriptionFilterInput struct {
+// SetExportTasks sets the ExportTasks field's value.
+func (s *DescribeExportTasksOutput) SetExportTasks(v []*ExportTask) *DescribeExportTasksOutput {
+ s.ExportTasks = v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeExportTasksOutput) SetNextToken(v string) *DescribeExportTasksOutput {
+ s.NextToken = &v
+ return s
+}
+
+type DescribeLogGroupsInput struct {
_ struct{} `type:"structure"`
- // The name of the subscription filter.
+ // 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 `locationName:"accountIdentifiers" type:"list"`
+
+ // If you are using a monitoring account, set this to True to have the operation
+ // return log groups in the accounts listed in accountIdentifiers.
//
- // FilterName is a required field
- FilterName *string `locationName:"filterName" min:"1" type:"string" required:"true"`
+ // 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 `locationName:"includeLinkedAccounts" type:"boolean"`
- // The name of the log group.
+ // The maximum number of items returned. If you don't specify a value, the default
+ // is up to 50 items.
+ Limit *int64 `locationName:"limit" min:"1" type:"integer"`
+
+ // 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.
//
- // LogGroupName is a required field
- LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"`
+ // 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 `locationName:"logGroupNamePattern" type:"string"`
+
+ // The prefix to match.
+ //
+ // logGroupNamePrefix and logGroupNamePattern are mutually exclusive. Only one
+ // of these parameters can be passed.
+ LogGroupNamePrefix *string `locationName:"logGroupNamePrefix" min:"1" type:"string"`
+
+ // The token for the next set of items to return. (You received this token from
+ // a previous call.)
+ NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}
// String returns the string representation.
@@ -6820,7 +10154,7 @@ type DeleteSubscriptionFilterInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteSubscriptionFilterInput) String() string {
+func (s DescribeLogGroupsInput) String() string {
return awsutil.Prettify(s)
}
@@ -6829,24 +10163,21 @@ func (s DeleteSubscriptionFilterInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteSubscriptionFilterInput) GoString() string {
+func (s DescribeLogGroupsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *DeleteSubscriptionFilterInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteSubscriptionFilterInput"}
- if s.FilterName == nil {
- invalidParams.Add(request.NewErrParamRequired("FilterName"))
- }
- if s.FilterName != nil && len(*s.FilterName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("FilterName", 1))
+func (s *DescribeLogGroupsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeLogGroupsInput"}
+ if s.Limit != nil && *s.Limit < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
}
- if s.LogGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
+ if s.LogGroupNamePrefix != nil && len(*s.LogGroupNamePrefix) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("LogGroupNamePrefix", 1))
}
- if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
}
if invalidParams.Len() > 0 {
@@ -6855,20 +10186,54 @@ func (s *DeleteSubscriptionFilterInput) Validate() error {
return nil
}
-// SetFilterName sets the FilterName field's value.
-func (s *DeleteSubscriptionFilterInput) SetFilterName(v string) *DeleteSubscriptionFilterInput {
- s.FilterName = &v
+// SetAccountIdentifiers sets the AccountIdentifiers field's value.
+func (s *DescribeLogGroupsInput) SetAccountIdentifiers(v []*string) *DescribeLogGroupsInput {
+ s.AccountIdentifiers = v
+ return s
+}
+
+// SetIncludeLinkedAccounts sets the IncludeLinkedAccounts field's value.
+func (s *DescribeLogGroupsInput) SetIncludeLinkedAccounts(v bool) *DescribeLogGroupsInput {
+ s.IncludeLinkedAccounts = &v
+ return s
+}
+
+// SetLimit sets the Limit field's value.
+func (s *DescribeLogGroupsInput) SetLimit(v int64) *DescribeLogGroupsInput {
+ s.Limit = &v
+ return s
+}
+
+// SetLogGroupNamePattern sets the LogGroupNamePattern field's value.
+func (s *DescribeLogGroupsInput) SetLogGroupNamePattern(v string) *DescribeLogGroupsInput {
+ s.LogGroupNamePattern = &v
+ return s
+}
+
+// SetLogGroupNamePrefix sets the LogGroupNamePrefix field's value.
+func (s *DescribeLogGroupsInput) SetLogGroupNamePrefix(v string) *DescribeLogGroupsInput {
+ s.LogGroupNamePrefix = &v
return s
}
-// SetLogGroupName sets the LogGroupName field's value.
-func (s *DeleteSubscriptionFilterInput) SetLogGroupName(v string) *DeleteSubscriptionFilterInput {
- s.LogGroupName = &v
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeLogGroupsInput) SetNextToken(v string) *DescribeLogGroupsInput {
+ s.NextToken = &v
return s
}
-type DeleteSubscriptionFilterOutput struct {
+type DescribeLogGroupsOutput struct {
_ struct{} `type:"structure"`
+
+ // The log groups.
+ //
+ // If the retentionInDays value is not included for a log group, then that log
+ // group's events do not expire.
+ LogGroups []*LogGroup `locationName:"logGroups" type:"list"`
+
+ // The token for the next set of items to return. The token expires after 24
+ // hours.
+ NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}
// String returns the string representation.
@@ -6876,7 +10241,7 @@ type DeleteSubscriptionFilterOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteSubscriptionFilterOutput) String() string {
+func (s DescribeLogGroupsOutput) String() string {
return awsutil.Prettify(s)
}
@@ -6885,32 +10250,68 @@ func (s DeleteSubscriptionFilterOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DeleteSubscriptionFilterOutput) GoString() string {
+func (s DescribeLogGroupsOutput) GoString() string {
return s.String()
}
-type DescribeAccountPoliciesInput struct {
+// SetLogGroups sets the LogGroups field's value.
+func (s *DescribeLogGroupsOutput) SetLogGroups(v []*LogGroup) *DescribeLogGroupsOutput {
+ s.LogGroups = v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeLogGroupsOutput) SetNextToken(v string) *DescribeLogGroupsOutput {
+ s.NextToken = &v
+ return s
+}
+
+type DescribeLogStreamsInput struct {
_ struct{} `type:"structure"`
- // 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 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.
+ Descending *bool `locationName:"descending" type:"boolean"`
+
+ // The maximum number of items returned. If you don't specify a value, the default
+ // is up to 50 items.
+ Limit *int64 `locationName:"limit" min:"1" type:"integer"`
+
+ // 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.
//
- // If you omit this parameter, only the policy in the current account is returned.
- AccountIdentifiers []*string `locationName:"accountIdentifiers" type:"list"`
+ // You must include either logGroupIdentifier or logGroupName, but not both.
+ LogGroupIdentifier *string `locationName:"logGroupIdentifier" min:"1" type:"string"`
- // Use this parameter to limit the returned policies to only the policy with
- // the name that you specify.
- PolicyName *string `locationName:"policyName" type:"string"`
+ // The name of the log group.
+ //
+ // You must include either logGroupIdentifier or logGroupName, but not both.
+ LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`
- // 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.
+ // The prefix to match.
//
- // PolicyType is a required field
- PolicyType *string `locationName:"policyType" type:"string" required:"true" enum:"PolicyType"`
+ // If orderBy is LastEventTime, you cannot specify this parameter.
+ LogStreamNamePrefix *string `locationName:"logStreamNamePrefix" min:"1" type:"string"`
+
+ // The token for the next set of items to return. (You received this token from
+ // a previous call.)
+ NextToken *string `locationName:"nextToken" min:"1" type:"string"`
+
+ // 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.
+ OrderBy *string `locationName:"orderBy" type:"string" enum:"OrderBy"`
}
// String returns the string representation.
@@ -6918,7 +10319,7 @@ type DescribeAccountPoliciesInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeAccountPoliciesInput) String() string {
+func (s DescribeLogStreamsInput) String() string {
return awsutil.Prettify(s)
}
@@ -6927,15 +10328,27 @@ func (s DescribeAccountPoliciesInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeAccountPoliciesInput) GoString() string {
+func (s DescribeLogStreamsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *DescribeAccountPoliciesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeAccountPoliciesInput"}
- if s.PolicyType == nil {
- invalidParams.Add(request.NewErrParamRequired("PolicyType"))
+func (s *DescribeLogStreamsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeLogStreamsInput"}
+ if s.Limit != nil && *s.Limit < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
+ }
+ if s.LogGroupIdentifier != nil && len(*s.LogGroupIdentifier) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("LogGroupIdentifier", 1))
+ }
+ if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
+ }
+ if s.LogStreamNamePrefix != nil && len(*s.LogStreamNamePrefix) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("LogStreamNamePrefix", 1))
+ }
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
}
if invalidParams.Len() > 0 {
@@ -6944,30 +10357,57 @@ func (s *DescribeAccountPoliciesInput) Validate() error {
return nil
}
-// SetAccountIdentifiers sets the AccountIdentifiers field's value.
-func (s *DescribeAccountPoliciesInput) SetAccountIdentifiers(v []*string) *DescribeAccountPoliciesInput {
- s.AccountIdentifiers = v
+// SetDescending sets the Descending field's value.
+func (s *DescribeLogStreamsInput) SetDescending(v bool) *DescribeLogStreamsInput {
+ s.Descending = &v
return s
}
-// SetPolicyName sets the PolicyName field's value.
-func (s *DescribeAccountPoliciesInput) SetPolicyName(v string) *DescribeAccountPoliciesInput {
- s.PolicyName = &v
+// SetLimit sets the Limit field's value.
+func (s *DescribeLogStreamsInput) SetLimit(v int64) *DescribeLogStreamsInput {
+ s.Limit = &v
return s
}
-// SetPolicyType sets the PolicyType field's value.
-func (s *DescribeAccountPoliciesInput) SetPolicyType(v string) *DescribeAccountPoliciesInput {
- s.PolicyType = &v
+// SetLogGroupIdentifier sets the LogGroupIdentifier field's value.
+func (s *DescribeLogStreamsInput) SetLogGroupIdentifier(v string) *DescribeLogStreamsInput {
+ s.LogGroupIdentifier = &v
return s
}
-type DescribeAccountPoliciesOutput struct {
+// SetLogGroupName sets the LogGroupName field's value.
+func (s *DescribeLogStreamsInput) SetLogGroupName(v string) *DescribeLogStreamsInput {
+ s.LogGroupName = &v
+ return s
+}
+
+// SetLogStreamNamePrefix sets the LogStreamNamePrefix field's value.
+func (s *DescribeLogStreamsInput) SetLogStreamNamePrefix(v string) *DescribeLogStreamsInput {
+ s.LogStreamNamePrefix = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeLogStreamsInput) SetNextToken(v string) *DescribeLogStreamsInput {
+ s.NextToken = &v
+ return s
+}
+
+// SetOrderBy sets the OrderBy field's value.
+func (s *DescribeLogStreamsInput) SetOrderBy(v string) *DescribeLogStreamsInput {
+ s.OrderBy = &v
+ return s
+}
+
+type DescribeLogStreamsOutput struct {
_ struct{} `type:"structure"`
- // An array of structures that contain information about the CloudWatch Logs
- // account policies that match the specified filters.
- AccountPolicies []*AccountPolicy `locationName:"accountPolicies" type:"list"`
+ // The log streams.
+ LogStreams []*LogStream `locationName:"logStreams" type:"list"`
+
+ // The token for the next set of items to return. The token expires after 24
+ // hours.
+ NextToken *string `locationName:"nextToken" min:"1" type:"string"`
}
// String returns the string representation.
@@ -6975,7 +10415,7 @@ type DescribeAccountPoliciesOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeAccountPoliciesOutput) String() string {
+func (s DescribeLogStreamsOutput) String() string {
return awsutil.Prettify(s)
}
@@ -6984,26 +10424,46 @@ func (s DescribeAccountPoliciesOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeAccountPoliciesOutput) GoString() string {
+func (s DescribeLogStreamsOutput) GoString() string {
return s.String()
}
-// SetAccountPolicies sets the AccountPolicies field's value.
-func (s *DescribeAccountPoliciesOutput) SetAccountPolicies(v []*AccountPolicy) *DescribeAccountPoliciesOutput {
- s.AccountPolicies = v
+// SetLogStreams sets the LogStreams field's value.
+func (s *DescribeLogStreamsOutput) SetLogStreams(v []*LogStream) *DescribeLogStreamsOutput {
+ s.LogStreams = v
return s
}
-type DescribeDestinationsInput struct {
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeLogStreamsOutput) SetNextToken(v string) *DescribeLogStreamsOutput {
+ s.NextToken = &v
+ return s
+}
+
+type DescribeMetricFiltersInput struct {
_ struct{} `type:"structure"`
- // The prefix to match. If you don't specify a value, no prefix filter is applied.
- DestinationNamePrefix *string `min:"1" type:"string"`
+ // The prefix to match. CloudWatch Logs uses the value that you set here only
+ // if you also include the logGroupName parameter in your request.
+ FilterNamePrefix *string `locationName:"filterNamePrefix" min:"1" type:"string"`
// The maximum number of items returned. If you don't specify a value, the default
- // maximum value of 50 items is used.
+ // is up to 50 items.
Limit *int64 `locationName:"limit" min:"1" type:"integer"`
+ // The name of the log group.
+ LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`
+
+ // 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.
+ MetricName *string `locationName:"metricName" type:"string"`
+
+ // 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.
+ MetricNamespace *string `locationName:"metricNamespace" type:"string"`
+
// The token for the next set of items to return. (You received this token from
// a previous call.)
NextToken *string `locationName:"nextToken" min:"1" type:"string"`
@@ -7014,7 +10474,7 @@ type DescribeDestinationsInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeDestinationsInput) String() string {
+func (s DescribeMetricFiltersInput) String() string {
return awsutil.Prettify(s)
}
@@ -7023,19 +10483,22 @@ func (s DescribeDestinationsInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeDestinationsInput) GoString() string {
+func (s DescribeMetricFiltersInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *DescribeDestinationsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeDestinationsInput"}
- if s.DestinationNamePrefix != nil && len(*s.DestinationNamePrefix) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DestinationNamePrefix", 1))
+func (s *DescribeMetricFiltersInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeMetricFiltersInput"}
+ if s.FilterNamePrefix != nil && len(*s.FilterNamePrefix) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("FilterNamePrefix", 1))
}
if s.Limit != nil && *s.Limit < 1 {
invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
}
+ if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
+ }
if s.NextToken != nil && len(*s.NextToken) < 1 {
invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
}
@@ -7046,29 +10509,47 @@ func (s *DescribeDestinationsInput) Validate() error {
return nil
}
-// SetDestinationNamePrefix sets the DestinationNamePrefix field's value.
-func (s *DescribeDestinationsInput) SetDestinationNamePrefix(v string) *DescribeDestinationsInput {
- s.DestinationNamePrefix = &v
+// SetFilterNamePrefix sets the FilterNamePrefix field's value.
+func (s *DescribeMetricFiltersInput) SetFilterNamePrefix(v string) *DescribeMetricFiltersInput {
+ s.FilterNamePrefix = &v
return s
}
// SetLimit sets the Limit field's value.
-func (s *DescribeDestinationsInput) SetLimit(v int64) *DescribeDestinationsInput {
+func (s *DescribeMetricFiltersInput) SetLimit(v int64) *DescribeMetricFiltersInput {
s.Limit = &v
return s
}
+// SetLogGroupName sets the LogGroupName field's value.
+func (s *DescribeMetricFiltersInput) SetLogGroupName(v string) *DescribeMetricFiltersInput {
+ s.LogGroupName = &v
+ return s
+}
+
+// SetMetricName sets the MetricName field's value.
+func (s *DescribeMetricFiltersInput) SetMetricName(v string) *DescribeMetricFiltersInput {
+ s.MetricName = &v
+ return s
+}
+
+// SetMetricNamespace sets the MetricNamespace field's value.
+func (s *DescribeMetricFiltersInput) SetMetricNamespace(v string) *DescribeMetricFiltersInput {
+ s.MetricNamespace = &v
+ return s
+}
+
// SetNextToken sets the NextToken field's value.
-func (s *DescribeDestinationsInput) SetNextToken(v string) *DescribeDestinationsInput {
+func (s *DescribeMetricFiltersInput) SetNextToken(v string) *DescribeMetricFiltersInput {
s.NextToken = &v
return s
}
-type DescribeDestinationsOutput struct {
+type DescribeMetricFiltersOutput struct {
_ struct{} `type:"structure"`
- // The destinations.
- Destinations []*Destination `locationName:"destinations" type:"list"`
+ // The metric filters.
+ MetricFilters []*MetricFilter `locationName:"metricFilters" type:"list"`
// The token for the next set of items to return. The token expires after 24
// hours.
@@ -7080,7 +10561,7 @@ type DescribeDestinationsOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeDestinationsOutput) String() string {
+func (s DescribeMetricFiltersOutput) String() string {
return awsutil.Prettify(s)
}
@@ -7089,40 +10570,38 @@ func (s DescribeDestinationsOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeDestinationsOutput) GoString() string {
+func (s DescribeMetricFiltersOutput) GoString() string {
return s.String()
}
-// SetDestinations sets the Destinations field's value.
-func (s *DescribeDestinationsOutput) SetDestinations(v []*Destination) *DescribeDestinationsOutput {
- s.Destinations = v
+// SetMetricFilters sets the MetricFilters field's value.
+func (s *DescribeMetricFiltersOutput) SetMetricFilters(v []*MetricFilter) *DescribeMetricFiltersOutput {
+ s.MetricFilters = v
return s
}
// SetNextToken sets the NextToken field's value.
-func (s *DescribeDestinationsOutput) SetNextToken(v string) *DescribeDestinationsOutput {
+func (s *DescribeMetricFiltersOutput) SetNextToken(v string) *DescribeMetricFiltersOutput {
s.NextToken = &v
return s
}
-type DescribeExportTasksInput struct {
+type DescribeQueriesInput struct {
_ struct{} `type:"structure"`
- // The maximum number of items returned. If you don't specify a value, the default
- // is up to 50 items.
- Limit *int64 `locationName:"limit" min:"1" type:"integer"`
+ // Limits the returned queries to only those for the specified log group.
+ LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`
- // The token for the next set of items to return. (You received this token from
- // a previous call.)
- NextToken *string `locationName:"nextToken" min:"1" type:"string"`
+ // Limits the number of returned queries to the specified number.
+ MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
- // The status code of the export task. Specifying a status code filters the
- // results to zero or more export tasks.
- StatusCode *string `locationName:"statusCode" type:"string" enum:"ExportTaskStatusCode"`
+ // The token for the next set of items to return. The token expires after 24
+ // hours.
+ NextToken *string `locationName:"nextToken" min:"1" type:"string"`
- // The ID of the export task. Specifying a task ID filters the results to one
- // or zero export tasks.
- TaskId *string `locationName:"taskId" min:"1" type:"string"`
+ // Limits the returned queries to only those that have the specified status.
+ // Valid values are Cancelled, Complete, Failed, Running, and Scheduled.
+ Status *string `locationName:"status" type:"string" enum:"QueryStatus"`
}
// String returns the string representation.
@@ -7130,7 +10609,7 @@ type DescribeExportTasksInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeExportTasksInput) String() string {
+func (s DescribeQueriesInput) String() string {
return awsutil.Prettify(s)
}
@@ -7139,22 +10618,22 @@ func (s DescribeExportTasksInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeExportTasksInput) GoString() string {
+func (s DescribeQueriesInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *DescribeExportTasksInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeExportTasksInput"}
- if s.Limit != nil && *s.Limit < 1 {
- invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
+func (s *DescribeQueriesInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeQueriesInput"}
+ if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
+ }
+ if s.MaxResults != nil && *s.MaxResults < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
}
if s.NextToken != nil && len(*s.NextToken) < 1 {
invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
}
- if s.TaskId != nil && len(*s.TaskId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TaskId", 1))
- }
if invalidParams.Len() > 0 {
return invalidParams
@@ -7162,39 +10641,39 @@ func (s *DescribeExportTasksInput) Validate() error {
return nil
}
-// SetLimit sets the Limit field's value.
-func (s *DescribeExportTasksInput) SetLimit(v int64) *DescribeExportTasksInput {
- s.Limit = &v
+// SetLogGroupName sets the LogGroupName field's value.
+func (s *DescribeQueriesInput) SetLogGroupName(v string) *DescribeQueriesInput {
+ s.LogGroupName = &v
return s
}
-// SetNextToken sets the NextToken field's value.
-func (s *DescribeExportTasksInput) SetNextToken(v string) *DescribeExportTasksInput {
- s.NextToken = &v
+// SetMaxResults sets the MaxResults field's value.
+func (s *DescribeQueriesInput) SetMaxResults(v int64) *DescribeQueriesInput {
+ s.MaxResults = &v
return s
}
-// SetStatusCode sets the StatusCode field's value.
-func (s *DescribeExportTasksInput) SetStatusCode(v string) *DescribeExportTasksInput {
- s.StatusCode = &v
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeQueriesInput) SetNextToken(v string) *DescribeQueriesInput {
+ s.NextToken = &v
return s
}
-// SetTaskId sets the TaskId field's value.
-func (s *DescribeExportTasksInput) SetTaskId(v string) *DescribeExportTasksInput {
- s.TaskId = &v
+// SetStatus sets the Status field's value.
+func (s *DescribeQueriesInput) SetStatus(v string) *DescribeQueriesInput {
+ s.Status = &v
return s
}
-type DescribeExportTasksOutput struct {
+type DescribeQueriesOutput struct {
_ struct{} `type:"structure"`
- // The export tasks.
- ExportTasks []*ExportTask `locationName:"exportTasks" type:"list"`
-
// The token for the next set of items to return. The token expires after 24
// hours.
NextToken *string `locationName:"nextToken" min:"1" type:"string"`
+
+ // The list of queries that match the request.
+ Queries []*QueryInfo `locationName:"queries" type:"list"`
}
// String returns the string representation.
@@ -7202,7 +10681,7 @@ type DescribeExportTasksOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeExportTasksOutput) String() string {
+func (s DescribeQueriesOutput) String() string {
return awsutil.Prettify(s)
}
@@ -7211,63 +10690,35 @@ func (s DescribeExportTasksOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeExportTasksOutput) GoString() string {
+func (s DescribeQueriesOutput) GoString() string {
return s.String()
}
-// SetExportTasks sets the ExportTasks field's value.
-func (s *DescribeExportTasksOutput) SetExportTasks(v []*ExportTask) *DescribeExportTasksOutput {
- s.ExportTasks = v
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeQueriesOutput) SetNextToken(v string) *DescribeQueriesOutput {
+ s.NextToken = &v
return s
}
-// SetNextToken sets the NextToken field's value.
-func (s *DescribeExportTasksOutput) SetNextToken(v string) *DescribeExportTasksOutput {
- s.NextToken = &v
+// SetQueries sets the Queries field's value.
+func (s *DescribeQueriesOutput) SetQueries(v []*QueryInfo) *DescribeQueriesOutput {
+ s.Queries = v
return s
}
-type DescribeLogGroupsInput struct {
+type DescribeQueryDefinitionsInput struct {
_ struct{} `type:"structure"`
- // 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 `locationName:"accountIdentifiers" type:"list"`
-
- // 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 `locationName:"includeLinkedAccounts" type:"boolean"`
-
- // The maximum number of items returned. If you don't specify a value, the default
- // is up to 50 items.
- Limit *int64 `locationName:"limit" min:"1" type:"integer"`
-
- // 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 `locationName:"logGroupNamePattern" type:"string"`
-
- // The prefix to match.
- //
- // logGroupNamePrefix and logGroupNamePattern are mutually exclusive. Only one
- // of these parameters can be passed.
- LogGroupNamePrefix *string `locationName:"logGroupNamePrefix" min:"1" type:"string"`
+ // Limits the number of returned query definitions to the specified number.
+ MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
- // The token for the next set of items to return. (You received this token from
- // a previous call.)
+ // The token for the next set of items to return. The token expires after 24
+ // hours.
NextToken *string `locationName:"nextToken" min:"1" type:"string"`
+
+ // Use this parameter to filter your results to only the query definitions that
+ // have names that start with the prefix you specify.
+ QueryDefinitionNamePrefix *string `locationName:"queryDefinitionNamePrefix" min:"1" type:"string"`
}
// String returns the string representation.
@@ -7275,7 +10726,7 @@ type DescribeLogGroupsInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeLogGroupsInput) String() string {
+func (s DescribeQueryDefinitionsInput) String() string {
return awsutil.Prettify(s)
}
@@ -7284,22 +10735,22 @@ func (s DescribeLogGroupsInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeLogGroupsInput) GoString() string {
+func (s DescribeQueryDefinitionsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *DescribeLogGroupsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeLogGroupsInput"}
- if s.Limit != nil && *s.Limit < 1 {
- invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
- }
- if s.LogGroupNamePrefix != nil && len(*s.LogGroupNamePrefix) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("LogGroupNamePrefix", 1))
+func (s *DescribeQueryDefinitionsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeQueryDefinitionsInput"}
+ if s.MaxResults != nil && *s.MaxResults < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
}
if s.NextToken != nil && len(*s.NextToken) < 1 {
invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
}
+ if s.QueryDefinitionNamePrefix != nil && len(*s.QueryDefinitionNamePrefix) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("QueryDefinitionNamePrefix", 1))
+ }
if invalidParams.Len() > 0 {
return invalidParams
@@ -7307,54 +10758,33 @@ func (s *DescribeLogGroupsInput) Validate() error {
return nil
}
-// SetAccountIdentifiers sets the AccountIdentifiers field's value.
-func (s *DescribeLogGroupsInput) SetAccountIdentifiers(v []*string) *DescribeLogGroupsInput {
- s.AccountIdentifiers = v
- return s
-}
-
-// SetIncludeLinkedAccounts sets the IncludeLinkedAccounts field's value.
-func (s *DescribeLogGroupsInput) SetIncludeLinkedAccounts(v bool) *DescribeLogGroupsInput {
- s.IncludeLinkedAccounts = &v
- return s
-}
-
-// SetLimit sets the Limit field's value.
-func (s *DescribeLogGroupsInput) SetLimit(v int64) *DescribeLogGroupsInput {
- s.Limit = &v
- return s
-}
-
-// SetLogGroupNamePattern sets the LogGroupNamePattern field's value.
-func (s *DescribeLogGroupsInput) SetLogGroupNamePattern(v string) *DescribeLogGroupsInput {
- s.LogGroupNamePattern = &v
+// SetMaxResults sets the MaxResults field's value.
+func (s *DescribeQueryDefinitionsInput) SetMaxResults(v int64) *DescribeQueryDefinitionsInput {
+ s.MaxResults = &v
return s
}
-// SetLogGroupNamePrefix sets the LogGroupNamePrefix field's value.
-func (s *DescribeLogGroupsInput) SetLogGroupNamePrefix(v string) *DescribeLogGroupsInput {
- s.LogGroupNamePrefix = &v
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeQueryDefinitionsInput) SetNextToken(v string) *DescribeQueryDefinitionsInput {
+ s.NextToken = &v
return s
}
-// SetNextToken sets the NextToken field's value.
-func (s *DescribeLogGroupsInput) SetNextToken(v string) *DescribeLogGroupsInput {
- s.NextToken = &v
+// SetQueryDefinitionNamePrefix sets the QueryDefinitionNamePrefix field's value.
+func (s *DescribeQueryDefinitionsInput) SetQueryDefinitionNamePrefix(v string) *DescribeQueryDefinitionsInput {
+ s.QueryDefinitionNamePrefix = &v
return s
}
-type DescribeLogGroupsOutput struct {
+type DescribeQueryDefinitionsOutput struct {
_ struct{} `type:"structure"`
- // The log groups.
- //
- // If the retentionInDays value is not included for a log group, then that log
- // group's events do not expire.
- LogGroups []*LogGroup `locationName:"logGroups" type:"list"`
-
// The token for the next set of items to return. The token expires after 24
// hours.
NextToken *string `locationName:"nextToken" min:"1" type:"string"`
+
+ // The list of query definitions that match your request.
+ QueryDefinitions []*QueryDefinition `locationName:"queryDefinitions" type:"list"`
}
// String returns the string representation.
@@ -7362,7 +10792,7 @@ type DescribeLogGroupsOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeLogGroupsOutput) String() string {
+func (s DescribeQueryDefinitionsOutput) String() string {
return awsutil.Prettify(s)
}
@@ -7371,68 +10801,32 @@ func (s DescribeLogGroupsOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeLogGroupsOutput) GoString() string {
+func (s DescribeQueryDefinitionsOutput) GoString() string {
return s.String()
}
-// SetLogGroups sets the LogGroups field's value.
-func (s *DescribeLogGroupsOutput) SetLogGroups(v []*LogGroup) *DescribeLogGroupsOutput {
- s.LogGroups = v
- return s
-}
-
// SetNextToken sets the NextToken field's value.
-func (s *DescribeLogGroupsOutput) SetNextToken(v string) *DescribeLogGroupsOutput {
+func (s *DescribeQueryDefinitionsOutput) SetNextToken(v string) *DescribeQueryDefinitionsOutput {
s.NextToken = &v
return s
}
-type DescribeLogStreamsInput struct {
- _ struct{} `type:"structure"`
-
- // 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.
- Descending *bool `locationName:"descending" type:"boolean"`
-
- // The maximum number of items returned. If you don't specify a value, the default
- // is up to 50 items.
- Limit *int64 `locationName:"limit" min:"1" type:"integer"`
-
- // 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.
- LogGroupIdentifier *string `locationName:"logGroupIdentifier" min:"1" type:"string"`
+// SetQueryDefinitions sets the QueryDefinitions field's value.
+func (s *DescribeQueryDefinitionsOutput) SetQueryDefinitions(v []*QueryDefinition) *DescribeQueryDefinitionsOutput {
+ s.QueryDefinitions = v
+ return s
+}
- // The name of the log group.
- //
- // You must include either logGroupIdentifier or logGroupName, but not both.
- LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`
+type DescribeResourcePoliciesInput struct {
+ _ struct{} `type:"structure"`
- // The prefix to match.
- //
- // If orderBy is LastEventTime, you cannot specify this parameter.
- LogStreamNamePrefix *string `locationName:"logStreamNamePrefix" min:"1" type:"string"`
+ // The maximum number of resource policies to be displayed with one call of
+ // this API.
+ Limit *int64 `locationName:"limit" min:"1" type:"integer"`
- // The token for the next set of items to return. (You received this token from
- // a previous call.)
+ // The token for the next set of items to return. The token expires after 24
+ // hours.
NextToken *string `locationName:"nextToken" min:"1" type:"string"`
-
- // 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.
- OrderBy *string `locationName:"orderBy" type:"string" enum:"OrderBy"`
}
// String returns the string representation.
@@ -7440,7 +10834,7 @@ type DescribeLogStreamsInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeLogStreamsInput) String() string {
+func (s DescribeResourcePoliciesInput) String() string {
return awsutil.Prettify(s)
}
@@ -7449,25 +10843,16 @@ func (s DescribeLogStreamsInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeLogStreamsInput) GoString() string {
+func (s DescribeResourcePoliciesInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *DescribeLogStreamsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeLogStreamsInput"}
+func (s *DescribeResourcePoliciesInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeResourcePoliciesInput"}
if s.Limit != nil && *s.Limit < 1 {
invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
}
- if s.LogGroupIdentifier != nil && len(*s.LogGroupIdentifier) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("LogGroupIdentifier", 1))
- }
- if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
- }
- if s.LogStreamNamePrefix != nil && len(*s.LogStreamNamePrefix) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("LogStreamNamePrefix", 1))
- }
if s.NextToken != nil && len(*s.NextToken) < 1 {
invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
}
@@ -7478,57 +10863,27 @@ func (s *DescribeLogStreamsInput) Validate() error {
return nil
}
-// SetDescending sets the Descending field's value.
-func (s *DescribeLogStreamsInput) SetDescending(v bool) *DescribeLogStreamsInput {
- s.Descending = &v
- return s
-}
-
// SetLimit sets the Limit field's value.
-func (s *DescribeLogStreamsInput) SetLimit(v int64) *DescribeLogStreamsInput {
+func (s *DescribeResourcePoliciesInput) SetLimit(v int64) *DescribeResourcePoliciesInput {
s.Limit = &v
return s
}
-// SetLogGroupIdentifier sets the LogGroupIdentifier field's value.
-func (s *DescribeLogStreamsInput) SetLogGroupIdentifier(v string) *DescribeLogStreamsInput {
- s.LogGroupIdentifier = &v
- return s
-}
-
-// SetLogGroupName sets the LogGroupName field's value.
-func (s *DescribeLogStreamsInput) SetLogGroupName(v string) *DescribeLogStreamsInput {
- s.LogGroupName = &v
- return s
-}
-
-// SetLogStreamNamePrefix sets the LogStreamNamePrefix field's value.
-func (s *DescribeLogStreamsInput) SetLogStreamNamePrefix(v string) *DescribeLogStreamsInput {
- s.LogStreamNamePrefix = &v
- return s
-}
-
// SetNextToken sets the NextToken field's value.
-func (s *DescribeLogStreamsInput) SetNextToken(v string) *DescribeLogStreamsInput {
+func (s *DescribeResourcePoliciesInput) SetNextToken(v string) *DescribeResourcePoliciesInput {
s.NextToken = &v
return s
}
-// SetOrderBy sets the OrderBy field's value.
-func (s *DescribeLogStreamsInput) SetOrderBy(v string) *DescribeLogStreamsInput {
- s.OrderBy = &v
- return s
-}
-
-type DescribeLogStreamsOutput struct {
+type DescribeResourcePoliciesOutput struct {
_ struct{} `type:"structure"`
- // The log streams.
- LogStreams []*LogStream `locationName:"logStreams" type:"list"`
-
// The token for the next set of items to return. The token expires after 24
// hours.
NextToken *string `locationName:"nextToken" min:"1" type:"string"`
+
+ // The resource policies that exist in this account.
+ ResourcePolicies []*ResourcePolicy `locationName:"resourcePolicies" type:"list"`
}
// String returns the string representation.
@@ -7536,7 +10891,7 @@ type DescribeLogStreamsOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeLogStreamsOutput) String() string {
+func (s DescribeResourcePoliciesOutput) String() string {
return awsutil.Prettify(s)
}
@@ -7545,27 +10900,26 @@ func (s DescribeLogStreamsOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeLogStreamsOutput) GoString() string {
+func (s DescribeResourcePoliciesOutput) GoString() string {
return s.String()
}
-// SetLogStreams sets the LogStreams field's value.
-func (s *DescribeLogStreamsOutput) SetLogStreams(v []*LogStream) *DescribeLogStreamsOutput {
- s.LogStreams = v
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeResourcePoliciesOutput) SetNextToken(v string) *DescribeResourcePoliciesOutput {
+ s.NextToken = &v
return s
}
-// SetNextToken sets the NextToken field's value.
-func (s *DescribeLogStreamsOutput) SetNextToken(v string) *DescribeLogStreamsOutput {
- s.NextToken = &v
+// SetResourcePolicies sets the ResourcePolicies field's value.
+func (s *DescribeResourcePoliciesOutput) SetResourcePolicies(v []*ResourcePolicy) *DescribeResourcePoliciesOutput {
+ s.ResourcePolicies = v
return s
}
-type DescribeMetricFiltersInput struct {
+type DescribeSubscriptionFiltersInput struct {
_ struct{} `type:"structure"`
- // The prefix to match. CloudWatch Logs uses the value that you set here only
- // if you also include the logGroupName parameter in your request.
+ // The prefix to match. If you don't specify a value, no prefix filter is applied.
FilterNamePrefix *string `locationName:"filterNamePrefix" min:"1" type:"string"`
// The maximum number of items returned. If you don't specify a value, the default
@@ -7573,17 +10927,9 @@ type DescribeMetricFiltersInput struct {
Limit *int64 `locationName:"limit" min:"1" type:"integer"`
// The name of the log group.
- LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`
-
- // 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.
- MetricName *string `locationName:"metricName" type:"string"`
-
- // 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.
- MetricNamespace *string `locationName:"metricNamespace" type:"string"`
+ //
+ // LogGroupName is a required field
+ LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"`
// The token for the next set of items to return. (You received this token from
// a previous call.)
@@ -7595,7 +10941,7 @@ type DescribeMetricFiltersInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeMetricFiltersInput) String() string {
+func (s DescribeSubscriptionFiltersInput) String() string {
return awsutil.Prettify(s)
}
@@ -7604,19 +10950,22 @@ func (s DescribeMetricFiltersInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeMetricFiltersInput) GoString() string {
+func (s DescribeSubscriptionFiltersInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *DescribeMetricFiltersInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeMetricFiltersInput"}
+func (s *DescribeSubscriptionFiltersInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeSubscriptionFiltersInput"}
if s.FilterNamePrefix != nil && len(*s.FilterNamePrefix) < 1 {
invalidParams.Add(request.NewErrParamMinLen("FilterNamePrefix", 1))
}
if s.Limit != nil && *s.Limit < 1 {
invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
}
+ if s.LogGroupName == nil {
+ invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
+ }
if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
}
@@ -7631,50 +10980,94 @@ func (s *DescribeMetricFiltersInput) Validate() error {
}
// SetFilterNamePrefix sets the FilterNamePrefix field's value.
-func (s *DescribeMetricFiltersInput) SetFilterNamePrefix(v string) *DescribeMetricFiltersInput {
+func (s *DescribeSubscriptionFiltersInput) SetFilterNamePrefix(v string) *DescribeSubscriptionFiltersInput {
s.FilterNamePrefix = &v
return s
}
// SetLimit sets the Limit field's value.
-func (s *DescribeMetricFiltersInput) SetLimit(v int64) *DescribeMetricFiltersInput {
+func (s *DescribeSubscriptionFiltersInput) SetLimit(v int64) *DescribeSubscriptionFiltersInput {
s.Limit = &v
return s
}
// SetLogGroupName sets the LogGroupName field's value.
-func (s *DescribeMetricFiltersInput) SetLogGroupName(v string) *DescribeMetricFiltersInput {
+func (s *DescribeSubscriptionFiltersInput) SetLogGroupName(v string) *DescribeSubscriptionFiltersInput {
s.LogGroupName = &v
return s
}
-// SetMetricName sets the MetricName field's value.
-func (s *DescribeMetricFiltersInput) SetMetricName(v string) *DescribeMetricFiltersInput {
- s.MetricName = &v
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeSubscriptionFiltersInput) SetNextToken(v string) *DescribeSubscriptionFiltersInput {
+ s.NextToken = &v
return s
}
-// SetMetricNamespace sets the MetricNamespace field's value.
-func (s *DescribeMetricFiltersInput) SetMetricNamespace(v string) *DescribeMetricFiltersInput {
- s.MetricNamespace = &v
- return s
+type DescribeSubscriptionFiltersOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The token for the next set of items to return. The token expires after 24
+ // hours.
+ NextToken *string `locationName:"nextToken" min:"1" type:"string"`
+
+ // The subscription filters.
+ SubscriptionFilters []*SubscriptionFilter `locationName:"subscriptionFilters" type:"list"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeSubscriptionFiltersOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeSubscriptionFiltersOutput) GoString() string {
+ return s.String()
}
// SetNextToken sets the NextToken field's value.
-func (s *DescribeMetricFiltersInput) SetNextToken(v string) *DescribeMetricFiltersInput {
+func (s *DescribeSubscriptionFiltersOutput) SetNextToken(v string) *DescribeSubscriptionFiltersOutput {
s.NextToken = &v
return s
}
-type DescribeMetricFiltersOutput struct {
+// SetSubscriptionFilters sets the SubscriptionFilters field's value.
+func (s *DescribeSubscriptionFiltersOutput) SetSubscriptionFilters(v []*SubscriptionFilter) *DescribeSubscriptionFiltersOutput {
+ s.SubscriptionFilters = v
+ return s
+}
+
+// Represents a cross-account destination that receives subscription log events.
+type Destination struct {
_ struct{} `type:"structure"`
- // The metric filters.
- MetricFilters []*MetricFilter `locationName:"metricFilters" type:"list"`
+ // An IAM policy document that governs which Amazon Web Services accounts can
+ // create subscription filters against this destination.
+ AccessPolicy *string `locationName:"accessPolicy" min:"1" type:"string"`
- // The token for the next set of items to return. The token expires after 24
- // hours.
- NextToken *string `locationName:"nextToken" min:"1" type:"string"`
+ // The ARN of this destination.
+ Arn *string `locationName:"arn" type:"string"`
+
+ // The creation time of the destination, expressed as the number of milliseconds
+ // after Jan 1, 1970 00:00:00 UTC.
+ CreationTime *int64 `locationName:"creationTime" type:"long"`
+
+ // The name of the destination.
+ DestinationName *string `locationName:"destinationName" min:"1" type:"string"`
+
+ // A role for impersonation, used when delivering log events to the target.
+ RoleArn *string `locationName:"roleArn" min:"1" type:"string"`
+
+ // The Amazon Resource Name (ARN) of the physical target where the log events
+ // are delivered (for example, a Kinesis stream).
+ TargetArn *string `locationName:"targetArn" min:"1" type:"string"`
}
// String returns the string representation.
@@ -7682,7 +11075,7 @@ type DescribeMetricFiltersOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeMetricFiltersOutput) String() string {
+func (s Destination) String() string {
return awsutil.Prettify(s)
}
@@ -7691,38 +11084,72 @@ func (s DescribeMetricFiltersOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeMetricFiltersOutput) GoString() string {
+func (s Destination) GoString() string {
return s.String()
}
-// SetMetricFilters sets the MetricFilters field's value.
-func (s *DescribeMetricFiltersOutput) SetMetricFilters(v []*MetricFilter) *DescribeMetricFiltersOutput {
- s.MetricFilters = v
+// SetAccessPolicy sets the AccessPolicy field's value.
+func (s *Destination) SetAccessPolicy(v string) *Destination {
+ s.AccessPolicy = &v
return s
}
-// SetNextToken sets the NextToken field's value.
-func (s *DescribeMetricFiltersOutput) SetNextToken(v string) *DescribeMetricFiltersOutput {
- s.NextToken = &v
+// SetArn sets the Arn field's value.
+func (s *Destination) SetArn(v string) *Destination {
+ s.Arn = &v
return s
}
-type DescribeQueriesInput struct {
+// SetCreationTime sets the CreationTime field's value.
+func (s *Destination) SetCreationTime(v int64) *Destination {
+ s.CreationTime = &v
+ return s
+}
+
+// SetDestinationName sets the DestinationName field's value.
+func (s *Destination) SetDestinationName(v string) *Destination {
+ s.DestinationName = &v
+ return s
+}
+
+// SetRoleArn sets the RoleArn field's value.
+func (s *Destination) SetRoleArn(v string) *Destination {
+ s.RoleArn = &v
+ return s
+}
+
+// SetTargetArn sets the TargetArn field's value.
+func (s *Destination) SetTargetArn(v string) *Destination {
+ s.TargetArn = &v
+ return s
+}
+
+type DisassociateKmsKeyInput struct {
_ struct{} `type:"structure"`
- // Limits the returned queries to only those for the specified log group.
+ // 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.
LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`
- // Limits the number of returned queries to the specified number.
- MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
-
- // The token for the next set of items to return. The token expires after 24
- // hours.
- NextToken *string `locationName:"nextToken" min:"1" type:"string"`
-
- // Limits the returned queries to only those that have the specified status.
- // Valid values are Cancelled, Complete, Failed, Running, and Scheduled.
- Status *string `locationName:"status" type:"string" enum:"QueryStatus"`
+ // Specifies the target for this operation. You must specify one of the following:
+ //
+ // * Specify the ARN of a log group to stop having CloudWatch Logs use the
+ // KMS key to encrypt log events that are ingested and stored by that log
+ // group. After you run this operation, CloudWatch Logs encrypts ingested
+ // log events with the default CloudWatch Logs method. The log group ARN
+ // must be in the following format. Replace REGION and ACCOUNT_ID with your
+ // Region and account ID. arn:aws:logs:REGION:ACCOUNT_ID:log-group:LOG_GROUP_NAME
+ //
+ // * Specify the following ARN to stop using this key to encrypt the results
+ // of future StartQuery (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartQuery.html)
+ // operations in this account. Replace REGION and ACCOUNT_ID with your Region
+ // and account ID. arn:aws:logs:REGION:ACCOUNT_ID:query-result:*
+ //
+ // In your DisssociateKmsKey operation, you must specify either the resourceIdentifier
+ // parameter or the logGroup parameter, but you can't specify both.
+ ResourceIdentifier *string `locationName:"resourceIdentifier" min:"1" type:"string"`
}
// String returns the string representation.
@@ -7730,7 +11157,7 @@ type DescribeQueriesInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeQueriesInput) String() string {
+func (s DisassociateKmsKeyInput) String() string {
return awsutil.Prettify(s)
}
@@ -7739,21 +11166,18 @@ func (s DescribeQueriesInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeQueriesInput) GoString() string {
+func (s DisassociateKmsKeyInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *DescribeQueriesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeQueriesInput"}
+func (s *DisassociateKmsKeyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DisassociateKmsKeyInput"}
if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.NextToken != nil && len(*s.NextToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ if s.ResourceIdentifier != nil && len(*s.ResourceIdentifier) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ResourceIdentifier", 1))
}
if invalidParams.Len() > 0 {
@@ -7763,38 +11187,19 @@ func (s *DescribeQueriesInput) Validate() error {
}
// SetLogGroupName sets the LogGroupName field's value.
-func (s *DescribeQueriesInput) SetLogGroupName(v string) *DescribeQueriesInput {
+func (s *DisassociateKmsKeyInput) SetLogGroupName(v string) *DisassociateKmsKeyInput {
s.LogGroupName = &v
return s
}
-// SetMaxResults sets the MaxResults field's value.
-func (s *DescribeQueriesInput) SetMaxResults(v int64) *DescribeQueriesInput {
- s.MaxResults = &v
- return s
-}
-
-// SetNextToken sets the NextToken field's value.
-func (s *DescribeQueriesInput) SetNextToken(v string) *DescribeQueriesInput {
- s.NextToken = &v
- return s
-}
-
-// SetStatus sets the Status field's value.
-func (s *DescribeQueriesInput) SetStatus(v string) *DescribeQueriesInput {
- s.Status = &v
+// SetResourceIdentifier sets the ResourceIdentifier field's value.
+func (s *DisassociateKmsKeyInput) SetResourceIdentifier(v string) *DisassociateKmsKeyInput {
+ s.ResourceIdentifier = &v
return s
}
-type DescribeQueriesOutput struct {
+type DisassociateKmsKeyOutput struct {
_ struct{} `type:"structure"`
-
- // The token for the next set of items to return. The token expires after 24
- // hours.
- NextToken *string `locationName:"nextToken" min:"1" type:"string"`
-
- // The list of queries that match the request.
- Queries []*QueryInfo `locationName:"queries" type:"list"`
}
// String returns the string representation.
@@ -7802,7 +11207,7 @@ type DescribeQueriesOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeQueriesOutput) String() string {
+func (s DisassociateKmsKeyOutput) String() string {
return awsutil.Prettify(s)
}
@@ -7811,35 +11216,42 @@ func (s DescribeQueriesOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeQueriesOutput) GoString() string {
+func (s DisassociateKmsKeyOutput) GoString() string {
return s.String()
}
-// SetNextToken sets the NextToken field's value.
-func (s *DescribeQueriesOutput) SetNextToken(v string) *DescribeQueriesOutput {
- s.NextToken = &v
- return s
-}
+// Represents an export task.
+type ExportTask struct {
+ _ struct{} `type:"structure"`
-// SetQueries sets the Queries field's value.
-func (s *DescribeQueriesOutput) SetQueries(v []*QueryInfo) *DescribeQueriesOutput {
- s.Queries = v
- return s
-}
+ // The name of the S3 bucket to which the log data was exported.
+ Destination *string `locationName:"destination" min:"1" type:"string"`
-type DescribeQueryDefinitionsInput struct {
- _ struct{} `type:"structure"`
+ // The prefix that was used as the start of Amazon S3 key for every object exported.
+ DestinationPrefix *string `locationName:"destinationPrefix" type:"string"`
- // Limits the number of returned query definitions to the specified number.
- MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
+ // Execution information about the export task.
+ ExecutionInfo *ExportTaskExecutionInfo `locationName:"executionInfo" type:"structure"`
- // The token for the next set of items to return. The token expires after 24
- // hours.
- NextToken *string `locationName:"nextToken" min:"1" type:"string"`
+ // 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.
+ From *int64 `locationName:"from" type:"long"`
- // Use this parameter to filter your results to only the query definitions that
- // have names that start with the prefix you specify.
- QueryDefinitionNamePrefix *string `locationName:"queryDefinitionNamePrefix" min:"1" type:"string"`
+ // The name of the log group from which logs data was exported.
+ LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`
+
+ // The status of the export task.
+ Status *ExportTaskStatus `locationName:"status" type:"structure"`
+
+ // The ID of the export task.
+ TaskId *string `locationName:"taskId" min:"1" type:"string"`
+
+ // The name of the export task.
+ TaskName *string `locationName:"taskName" min:"1" type:"string"`
+
+ // 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.
+ To *int64 `locationName:"to" type:"long"`
}
// String returns the string representation.
@@ -7847,7 +11259,7 @@ type DescribeQueryDefinitionsInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeQueryDefinitionsInput) String() string {
+func (s ExportTask) String() string {
return awsutil.Prettify(s)
}
@@ -7856,98 +11268,75 @@ func (s DescribeQueryDefinitionsInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeQueryDefinitionsInput) GoString() string {
+func (s ExportTask) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *DescribeQueryDefinitionsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeQueryDefinitionsInput"}
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if s.NextToken != nil && len(*s.NextToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
- }
- if s.QueryDefinitionNamePrefix != nil && len(*s.QueryDefinitionNamePrefix) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("QueryDefinitionNamePrefix", 1))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
+// SetDestination sets the Destination field's value.
+func (s *ExportTask) SetDestination(v string) *ExportTask {
+ s.Destination = &v
+ return s
}
-// SetMaxResults sets the MaxResults field's value.
-func (s *DescribeQueryDefinitionsInput) SetMaxResults(v int64) *DescribeQueryDefinitionsInput {
- s.MaxResults = &v
+// SetDestinationPrefix sets the DestinationPrefix field's value.
+func (s *ExportTask) SetDestinationPrefix(v string) *ExportTask {
+ s.DestinationPrefix = &v
return s
}
-// SetNextToken sets the NextToken field's value.
-func (s *DescribeQueryDefinitionsInput) SetNextToken(v string) *DescribeQueryDefinitionsInput {
- s.NextToken = &v
+// SetExecutionInfo sets the ExecutionInfo field's value.
+func (s *ExportTask) SetExecutionInfo(v *ExportTaskExecutionInfo) *ExportTask {
+ s.ExecutionInfo = v
return s
}
-// SetQueryDefinitionNamePrefix sets the QueryDefinitionNamePrefix field's value.
-func (s *DescribeQueryDefinitionsInput) SetQueryDefinitionNamePrefix(v string) *DescribeQueryDefinitionsInput {
- s.QueryDefinitionNamePrefix = &v
+// SetFrom sets the From field's value.
+func (s *ExportTask) SetFrom(v int64) *ExportTask {
+ s.From = &v
return s
}
-type DescribeQueryDefinitionsOutput struct {
- _ struct{} `type:"structure"`
-
- // The token for the next set of items to return. The token expires after 24
- // hours.
- NextToken *string `locationName:"nextToken" min:"1" type:"string"`
-
- // The list of query definitions that match your request.
- QueryDefinitions []*QueryDefinition `locationName:"queryDefinitions" type:"list"`
+// SetLogGroupName sets the LogGroupName field's value.
+func (s *ExportTask) SetLogGroupName(v string) *ExportTask {
+ s.LogGroupName = &v
+ return s
}
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s DescribeQueryDefinitionsOutput) String() string {
- return awsutil.Prettify(s)
+// SetStatus sets the Status field's value.
+func (s *ExportTask) SetStatus(v *ExportTaskStatus) *ExportTask {
+ s.Status = v
+ return s
}
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s DescribeQueryDefinitionsOutput) GoString() string {
- return s.String()
+// SetTaskId sets the TaskId field's value.
+func (s *ExportTask) SetTaskId(v string) *ExportTask {
+ s.TaskId = &v
+ return s
}
-// SetNextToken sets the NextToken field's value.
-func (s *DescribeQueryDefinitionsOutput) SetNextToken(v string) *DescribeQueryDefinitionsOutput {
- s.NextToken = &v
+// SetTaskName sets the TaskName field's value.
+func (s *ExportTask) SetTaskName(v string) *ExportTask {
+ s.TaskName = &v
return s
}
-// SetQueryDefinitions sets the QueryDefinitions field's value.
-func (s *DescribeQueryDefinitionsOutput) SetQueryDefinitions(v []*QueryDefinition) *DescribeQueryDefinitionsOutput {
- s.QueryDefinitions = v
+// SetTo sets the To field's value.
+func (s *ExportTask) SetTo(v int64) *ExportTask {
+ s.To = &v
return s
}
-type DescribeResourcePoliciesInput struct {
+// Represents the status of an export task.
+type ExportTaskExecutionInfo struct {
_ struct{} `type:"structure"`
- // The maximum number of resource policies to be displayed with one call of
- // this API.
- Limit *int64 `locationName:"limit" min:"1" type:"integer"`
+ // The completion time of the export task, expressed as the number of milliseconds
+ // after Jan 1, 1970 00:00:00 UTC.
+ CompletionTime *int64 `locationName:"completionTime" type:"long"`
- // The token for the next set of items to return. The token expires after 24
- // hours.
- NextToken *string `locationName:"nextToken" min:"1" type:"string"`
+ // The creation time of the export task, expressed as the number of milliseconds
+ // after Jan 1, 1970 00:00:00 UTC.
+ CreationTime *int64 `locationName:"creationTime" type:"long"`
}
// String returns the string representation.
@@ -7955,56 +11344,40 @@ type DescribeResourcePoliciesInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeResourcePoliciesInput) String() string {
+func (s ExportTaskExecutionInfo) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s DescribeResourcePoliciesInput) GoString() string {
- return s.String()
-}
-
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *DescribeResourcePoliciesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeResourcePoliciesInput"}
- if s.Limit != nil && *s.Limit < 1 {
- invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
- }
- if s.NextToken != nil && len(*s.NextToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ExportTaskExecutionInfo) GoString() string {
+ return s.String()
}
-// SetLimit sets the Limit field's value.
-func (s *DescribeResourcePoliciesInput) SetLimit(v int64) *DescribeResourcePoliciesInput {
- s.Limit = &v
+// SetCompletionTime sets the CompletionTime field's value.
+func (s *ExportTaskExecutionInfo) SetCompletionTime(v int64) *ExportTaskExecutionInfo {
+ s.CompletionTime = &v
return s
}
-// SetNextToken sets the NextToken field's value.
-func (s *DescribeResourcePoliciesInput) SetNextToken(v string) *DescribeResourcePoliciesInput {
- s.NextToken = &v
+// SetCreationTime sets the CreationTime field's value.
+func (s *ExportTaskExecutionInfo) SetCreationTime(v int64) *ExportTaskExecutionInfo {
+ s.CreationTime = &v
return s
}
-type DescribeResourcePoliciesOutput struct {
+// Represents the status of an export task.
+type ExportTaskStatus struct {
_ struct{} `type:"structure"`
- // The token for the next set of items to return. The token expires after 24
- // hours.
- NextToken *string `locationName:"nextToken" min:"1" type:"string"`
+ // The status code of the export task.
+ Code *string `locationName:"code" type:"string" enum:"ExportTaskStatusCode"`
- // The resource policies that exist in this account.
- ResourcePolicies []*ResourcePolicy `locationName:"resourcePolicies" type:"list"`
+ // The status message related to the status code.
+ Message *string `locationName:"message" type:"string"`
}
// String returns the string representation.
@@ -8012,7 +11385,7 @@ type DescribeResourcePoliciesOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeResourcePoliciesOutput) String() string {
+func (s ExportTaskStatus) String() string {
return awsutil.Prettify(s)
}
@@ -8021,40 +11394,93 @@ func (s DescribeResourcePoliciesOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeResourcePoliciesOutput) GoString() string {
+func (s ExportTaskStatus) GoString() string {
return s.String()
}
-// SetNextToken sets the NextToken field's value.
-func (s *DescribeResourcePoliciesOutput) SetNextToken(v string) *DescribeResourcePoliciesOutput {
- s.NextToken = &v
+// SetCode sets the Code field's value.
+func (s *ExportTaskStatus) SetCode(v string) *ExportTaskStatus {
+ s.Code = &v
return s
}
-// SetResourcePolicies sets the ResourcePolicies field's value.
-func (s *DescribeResourcePoliciesOutput) SetResourcePolicies(v []*ResourcePolicy) *DescribeResourcePoliciesOutput {
- s.ResourcePolicies = v
+// SetMessage sets the Message field's value.
+func (s *ExportTaskStatus) SetMessage(v string) *ExportTaskStatus {
+ s.Message = &v
return s
}
-type DescribeSubscriptionFiltersInput struct {
+type FilterLogEventsInput struct {
_ struct{} `type:"structure"`
- // The prefix to match. If you don't specify a value, no prefix filter is applied.
- FilterNamePrefix *string `locationName:"filterNamePrefix" min:"1" type:"string"`
+ // 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.
+ EndTime *int64 `locationName:"endTime" type:"long"`
- // The maximum number of items returned. If you don't specify a value, the default
- // is up to 50 items.
+ // 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 `locationName:"filterPattern" type:"string"`
+
+ // 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 value will be assumed to be true. The response from this operation will always interleave events from multiple log streams within a log group.
+ Interleaved *bool `locationName:"interleaved" deprecated:"true" type:"boolean"`
+
+ // The maximum number of events to return. The default is 10,000 events.
Limit *int64 `locationName:"limit" min:"1" type:"integer"`
- // The name of the log group.
+ // 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.
//
- // LogGroupName is a required field
- LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"`
+ // You must include either logGroupIdentifier or logGroupName, but not both.
+ LogGroupIdentifier *string `locationName:"logGroupIdentifier" min:"1" type:"string"`
- // The token for the next set of items to return. (You received this token from
- // a previous call.)
+ // The name of the log group to search.
+ //
+ // You must include either logGroupIdentifier or logGroupName, but not both.
+ LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`
+
+ // 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.
+ LogStreamNamePrefix *string `locationName:"logStreamNamePrefix" min:"1" type:"string"`
+
+ // 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.
+ LogStreamNames []*string `locationName:"logStreamNames" min:"1" type:"list"`
+
+ // The token for the next set of events to return. (You received this token
+ // from a previous call.)
NextToken *string `locationName:"nextToken" min:"1" type:"string"`
+
+ // 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.
+ StartTime *int64 `locationName:"startTime" type:"long"`
+
+ // 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 `locationName:"unmask" type:"boolean"`
}
// String returns the string representation.
@@ -8062,7 +11488,7 @@ type DescribeSubscriptionFiltersInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeSubscriptionFiltersInput) String() string {
+func (s FilterLogEventsInput) String() string {
return awsutil.Prettify(s)
}
@@ -8071,25 +11497,28 @@ func (s DescribeSubscriptionFiltersInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeSubscriptionFiltersInput) GoString() string {
+func (s FilterLogEventsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *DescribeSubscriptionFiltersInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeSubscriptionFiltersInput"}
- if s.FilterNamePrefix != nil && len(*s.FilterNamePrefix) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("FilterNamePrefix", 1))
- }
+func (s *FilterLogEventsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "FilterLogEventsInput"}
if s.Limit != nil && *s.Limit < 1 {
invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
}
- if s.LogGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
+ if s.LogGroupIdentifier != nil && len(*s.LogGroupIdentifier) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("LogGroupIdentifier", 1))
}
if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
}
+ if s.LogStreamNamePrefix != nil && len(*s.LogStreamNamePrefix) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("LogStreamNamePrefix", 1))
+ }
+ if s.LogStreamNames != nil && len(s.LogStreamNames) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("LogStreamNames", 1))
+ }
if s.NextToken != nil && len(*s.NextToken) < 1 {
invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
}
@@ -8100,39 +11529,88 @@ func (s *DescribeSubscriptionFiltersInput) Validate() error {
return nil
}
-// SetFilterNamePrefix sets the FilterNamePrefix field's value.
-func (s *DescribeSubscriptionFiltersInput) SetFilterNamePrefix(v string) *DescribeSubscriptionFiltersInput {
- s.FilterNamePrefix = &v
+// SetEndTime sets the EndTime field's value.
+func (s *FilterLogEventsInput) SetEndTime(v int64) *FilterLogEventsInput {
+ s.EndTime = &v
+ return s
+}
+
+// SetFilterPattern sets the FilterPattern field's value.
+func (s *FilterLogEventsInput) SetFilterPattern(v string) *FilterLogEventsInput {
+ s.FilterPattern = &v
+ return s
+}
+
+// SetInterleaved sets the Interleaved field's value.
+func (s *FilterLogEventsInput) SetInterleaved(v bool) *FilterLogEventsInput {
+ s.Interleaved = &v
return s
}
// SetLimit sets the Limit field's value.
-func (s *DescribeSubscriptionFiltersInput) SetLimit(v int64) *DescribeSubscriptionFiltersInput {
+func (s *FilterLogEventsInput) SetLimit(v int64) *FilterLogEventsInput {
s.Limit = &v
return s
}
+// SetLogGroupIdentifier sets the LogGroupIdentifier field's value.
+func (s *FilterLogEventsInput) SetLogGroupIdentifier(v string) *FilterLogEventsInput {
+ s.LogGroupIdentifier = &v
+ return s
+}
+
// SetLogGroupName sets the LogGroupName field's value.
-func (s *DescribeSubscriptionFiltersInput) SetLogGroupName(v string) *DescribeSubscriptionFiltersInput {
+func (s *FilterLogEventsInput) SetLogGroupName(v string) *FilterLogEventsInput {
s.LogGroupName = &v
return s
}
+// SetLogStreamNamePrefix sets the LogStreamNamePrefix field's value.
+func (s *FilterLogEventsInput) SetLogStreamNamePrefix(v string) *FilterLogEventsInput {
+ s.LogStreamNamePrefix = &v
+ return s
+}
+
+// SetLogStreamNames sets the LogStreamNames field's value.
+func (s *FilterLogEventsInput) SetLogStreamNames(v []*string) *FilterLogEventsInput {
+ s.LogStreamNames = v
+ return s
+}
+
// SetNextToken sets the NextToken field's value.
-func (s *DescribeSubscriptionFiltersInput) SetNextToken(v string) *DescribeSubscriptionFiltersInput {
+func (s *FilterLogEventsInput) SetNextToken(v string) *FilterLogEventsInput {
s.NextToken = &v
return s
}
-type DescribeSubscriptionFiltersOutput struct {
+// SetStartTime sets the StartTime field's value.
+func (s *FilterLogEventsInput) SetStartTime(v int64) *FilterLogEventsInput {
+ s.StartTime = &v
+ return s
+}
+
+// SetUnmask sets the Unmask field's value.
+func (s *FilterLogEventsInput) SetUnmask(v bool) *FilterLogEventsInput {
+ s.Unmask = &v
+ return s
+}
+
+type FilterLogEventsOutput struct {
_ struct{} `type:"structure"`
- // The token for the next set of items to return. The token expires after 24
- // hours.
+ // The matched events.
+ Events []*FilteredLogEvent `locationName:"events" type:"list"`
+
+ // The token to use when requesting the next set of items. The token expires
+ // after 24 hours.
NextToken *string `locationName:"nextToken" min:"1" type:"string"`
- // The subscription filters.
- SubscriptionFilters []*SubscriptionFilter `locationName:"subscriptionFilters" type:"list"`
+ // 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 []*SearchedLogStream `locationName:"searchedLogStreams" type:"list"`
}
// String returns the string representation.
@@ -8140,7 +11618,7 @@ type DescribeSubscriptionFiltersOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeSubscriptionFiltersOutput) String() string {
+func (s FilterLogEventsOutput) String() string {
return awsutil.Prettify(s)
}
@@ -8149,46 +11627,48 @@ func (s DescribeSubscriptionFiltersOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DescribeSubscriptionFiltersOutput) GoString() string {
+func (s FilterLogEventsOutput) GoString() string {
return s.String()
}
+// SetEvents sets the Events field's value.
+func (s *FilterLogEventsOutput) SetEvents(v []*FilteredLogEvent) *FilterLogEventsOutput {
+ s.Events = v
+ return s
+}
+
// SetNextToken sets the NextToken field's value.
-func (s *DescribeSubscriptionFiltersOutput) SetNextToken(v string) *DescribeSubscriptionFiltersOutput {
+func (s *FilterLogEventsOutput) SetNextToken(v string) *FilterLogEventsOutput {
s.NextToken = &v
return s
}
-// SetSubscriptionFilters sets the SubscriptionFilters field's value.
-func (s *DescribeSubscriptionFiltersOutput) SetSubscriptionFilters(v []*SubscriptionFilter) *DescribeSubscriptionFiltersOutput {
- s.SubscriptionFilters = v
+// SetSearchedLogStreams sets the SearchedLogStreams field's value.
+func (s *FilterLogEventsOutput) SetSearchedLogStreams(v []*SearchedLogStream) *FilterLogEventsOutput {
+ s.SearchedLogStreams = v
return s
}
-// Represents a cross-account destination that receives subscription log events.
-type Destination struct {
+// Represents a matched event.
+type FilteredLogEvent struct {
_ struct{} `type:"structure"`
- // An IAM policy document that governs which Amazon Web Services accounts can
- // create subscription filters against this destination.
- AccessPolicy *string `locationName:"accessPolicy" min:"1" type:"string"`
-
- // The ARN of this destination.
- Arn *string `locationName:"arn" type:"string"`
+ // The ID of the event.
+ EventId *string `locationName:"eventId" type:"string"`
- // The creation time of the destination, expressed as the number of milliseconds
+ // The time the event was ingested, expressed as the number of milliseconds
// after Jan 1, 1970 00:00:00 UTC.
- CreationTime *int64 `locationName:"creationTime" type:"long"`
-
- // The name of the destination.
- DestinationName *string `locationName:"destinationName" min:"1" type:"string"`
+ IngestionTime *int64 `locationName:"ingestionTime" type:"long"`
- // A role for impersonation, used when delivering log events to the target.
- RoleArn *string `locationName:"roleArn" min:"1" type:"string"`
+ // The name of the log stream to which this event belongs.
+ LogStreamName *string `locationName:"logStreamName" min:"1" type:"string"`
- // The Amazon Resource Name (ARN) of the physical target where the log events
- // are delivered (for example, a Kinesis stream).
- TargetArn *string `locationName:"targetArn" min:"1" type:"string"`
+ // The data contained in the log event.
+ Message *string `locationName:"message" min:"1" type:"string"`
+
+ // The time the event occurred, expressed as the number of milliseconds after
+ // Jan 1, 1970 00:00:00 UTC.
+ Timestamp *int64 `locationName:"timestamp" type:"long"`
}
// String returns the string representation.
@@ -8196,7 +11676,7 @@ type Destination struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s Destination) String() string {
+func (s FilteredLogEvent) String() string {
return awsutil.Prettify(s)
}
@@ -8205,72 +11685,48 @@ func (s Destination) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s Destination) GoString() string {
+func (s FilteredLogEvent) GoString() string {
return s.String()
}
-// SetAccessPolicy sets the AccessPolicy field's value.
-func (s *Destination) SetAccessPolicy(v string) *Destination {
- s.AccessPolicy = &v
- return s
-}
-
-// SetArn sets the Arn field's value.
-func (s *Destination) SetArn(v string) *Destination {
- s.Arn = &v
+// SetEventId sets the EventId field's value.
+func (s *FilteredLogEvent) SetEventId(v string) *FilteredLogEvent {
+ s.EventId = &v
return s
}
-// SetCreationTime sets the CreationTime field's value.
-func (s *Destination) SetCreationTime(v int64) *Destination {
- s.CreationTime = &v
+// SetIngestionTime sets the IngestionTime field's value.
+func (s *FilteredLogEvent) SetIngestionTime(v int64) *FilteredLogEvent {
+ s.IngestionTime = &v
return s
}
-// SetDestinationName sets the DestinationName field's value.
-func (s *Destination) SetDestinationName(v string) *Destination {
- s.DestinationName = &v
+// SetLogStreamName sets the LogStreamName field's value.
+func (s *FilteredLogEvent) SetLogStreamName(v string) *FilteredLogEvent {
+ s.LogStreamName = &v
return s
}
-// SetRoleArn sets the RoleArn field's value.
-func (s *Destination) SetRoleArn(v string) *Destination {
- s.RoleArn = &v
+// SetMessage sets the Message field's value.
+func (s *FilteredLogEvent) SetMessage(v string) *FilteredLogEvent {
+ s.Message = &v
return s
}
-// SetTargetArn sets the TargetArn field's value.
-func (s *Destination) SetTargetArn(v string) *Destination {
- s.TargetArn = &v
+// SetTimestamp sets the Timestamp field's value.
+func (s *FilteredLogEvent) SetTimestamp(v int64) *FilteredLogEvent {
+ s.Timestamp = &v
return s
}
-type DisassociateKmsKeyInput struct {
+type GetDataProtectionPolicyInput struct {
_ struct{} `type:"structure"`
- // 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.
- LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`
-
- // Specifies the target for this operation. You must specify one of the following:
- //
- // * Specify the ARN of a log group to stop having CloudWatch Logs use the
- // KMS key to encrypt log events that are ingested and stored by that log
- // group. After you run this operation, CloudWatch Logs encrypts ingested
- // log events with the default CloudWatch Logs method. The log group ARN
- // must be in the following format. Replace REGION and ACCOUNT_ID with your
- // Region and account ID. arn:aws:logs:REGION:ACCOUNT_ID:log-group:LOG_GROUP_NAME
- //
- // * Specify the following ARN to stop using this key to encrypt the results
- // of future StartQuery (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartQuery.html)
- // operations in this account. Replace REGION and ACCOUNT_ID with your Region
- // and account ID. arn:aws:logs:REGION:ACCOUNT_ID:query-result:*
+ // The name or ARN of the log group that contains the data protection policy
+ // that you want to see.
//
- // In your DisssociateKmsKey operation, you must specify either the resourceIdentifier
- // parameter or the logGroup parameter, but you can't specify both.
- ResourceIdentifier *string `locationName:"resourceIdentifier" min:"1" type:"string"`
+ // LogGroupIdentifier is a required field
+ LogGroupIdentifier *string `locationName:"logGroupIdentifier" min:"1" type:"string" required:"true"`
}
// String returns the string representation.
@@ -8278,7 +11734,7 @@ type DisassociateKmsKeyInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DisassociateKmsKeyInput) String() string {
+func (s GetDataProtectionPolicyInput) String() string {
return awsutil.Prettify(s)
}
@@ -8287,18 +11743,18 @@ func (s DisassociateKmsKeyInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DisassociateKmsKeyInput) GoString() string {
+func (s GetDataProtectionPolicyInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *DisassociateKmsKeyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DisassociateKmsKeyInput"}
- if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
+func (s *GetDataProtectionPolicyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetDataProtectionPolicyInput"}
+ if s.LogGroupIdentifier == nil {
+ invalidParams.Add(request.NewErrParamRequired("LogGroupIdentifier"))
}
- if s.ResourceIdentifier != nil && len(*s.ResourceIdentifier) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ResourceIdentifier", 1))
+ if s.LogGroupIdentifier != nil && len(*s.LogGroupIdentifier) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("LogGroupIdentifier", 1))
}
if invalidParams.Len() > 0 {
@@ -8307,72 +11763,23 @@ func (s *DisassociateKmsKeyInput) Validate() error {
return nil
}
-// SetLogGroupName sets the LogGroupName field's value.
-func (s *DisassociateKmsKeyInput) SetLogGroupName(v string) *DisassociateKmsKeyInput {
- s.LogGroupName = &v
- return s
-}
-
-// SetResourceIdentifier sets the ResourceIdentifier field's value.
-func (s *DisassociateKmsKeyInput) SetResourceIdentifier(v string) *DisassociateKmsKeyInput {
- s.ResourceIdentifier = &v
+// SetLogGroupIdentifier sets the LogGroupIdentifier field's value.
+func (s *GetDataProtectionPolicyInput) SetLogGroupIdentifier(v string) *GetDataProtectionPolicyInput {
+ s.LogGroupIdentifier = &v
return s
}
-type DisassociateKmsKeyOutput struct {
- _ struct{} `type:"structure"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s DisassociateKmsKeyOutput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s DisassociateKmsKeyOutput) GoString() string {
- return s.String()
-}
-
-// Represents an export task.
-type ExportTask struct {
+type GetDataProtectionPolicyOutput struct {
_ struct{} `type:"structure"`
- // The name of the S3 bucket to which the log data was exported.
- Destination *string `locationName:"destination" min:"1" type:"string"`
-
- // The prefix that was used as the start of Amazon S3 key for every object exported.
- DestinationPrefix *string `locationName:"destinationPrefix" type:"string"`
-
- // Execution information about the export task.
- ExecutionInfo *ExportTaskExecutionInfo `locationName:"executionInfo" type:"structure"`
-
- // 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.
- From *int64 `locationName:"from" type:"long"`
-
- // The name of the log group from which logs data was exported.
- LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`
-
- // The status of the export task.
- Status *ExportTaskStatus `locationName:"status" type:"structure"`
-
- // The ID of the export task.
- TaskId *string `locationName:"taskId" min:"1" type:"string"`
+ // The date and time that this policy was most recently updated.
+ LastUpdatedTime *int64 `locationName:"lastUpdatedTime" type:"long"`
- // The name of the export task.
- TaskName *string `locationName:"taskName" min:"1" type:"string"`
+ // The log group name or ARN that you specified in your request.
+ LogGroupIdentifier *string `locationName:"logGroupIdentifier" min:"1" type:"string"`
- // 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.
- To *int64 `locationName:"to" type:"long"`
+ // The data protection policy document for this log group.
+ PolicyDocument *string `locationName:"policyDocument" type:"string"`
}
// String returns the string representation.
@@ -8380,7 +11787,7 @@ type ExportTask struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ExportTask) String() string {
+func (s GetDataProtectionPolicyOutput) String() string {
return awsutil.Prettify(s)
}
@@ -8389,75 +11796,35 @@ func (s ExportTask) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ExportTask) GoString() string {
+func (s GetDataProtectionPolicyOutput) GoString() string {
return s.String()
}
-// SetDestination sets the Destination field's value.
-func (s *ExportTask) SetDestination(v string) *ExportTask {
- s.Destination = &v
- return s
-}
-
-// SetDestinationPrefix sets the DestinationPrefix field's value.
-func (s *ExportTask) SetDestinationPrefix(v string) *ExportTask {
- s.DestinationPrefix = &v
- return s
-}
-
-// SetExecutionInfo sets the ExecutionInfo field's value.
-func (s *ExportTask) SetExecutionInfo(v *ExportTaskExecutionInfo) *ExportTask {
- s.ExecutionInfo = v
- return s
-}
-
-// SetFrom sets the From field's value.
-func (s *ExportTask) SetFrom(v int64) *ExportTask {
- s.From = &v
- return s
-}
-
-// SetLogGroupName sets the LogGroupName field's value.
-func (s *ExportTask) SetLogGroupName(v string) *ExportTask {
- s.LogGroupName = &v
- return s
-}
-
-// SetStatus sets the Status field's value.
-func (s *ExportTask) SetStatus(v *ExportTaskStatus) *ExportTask {
- s.Status = v
- return s
-}
-
-// SetTaskId sets the TaskId field's value.
-func (s *ExportTask) SetTaskId(v string) *ExportTask {
- s.TaskId = &v
+// SetLastUpdatedTime sets the LastUpdatedTime field's value.
+func (s *GetDataProtectionPolicyOutput) SetLastUpdatedTime(v int64) *GetDataProtectionPolicyOutput {
+ s.LastUpdatedTime = &v
return s
}
-// SetTaskName sets the TaskName field's value.
-func (s *ExportTask) SetTaskName(v string) *ExportTask {
- s.TaskName = &v
+// SetLogGroupIdentifier sets the LogGroupIdentifier field's value.
+func (s *GetDataProtectionPolicyOutput) SetLogGroupIdentifier(v string) *GetDataProtectionPolicyOutput {
+ s.LogGroupIdentifier = &v
return s
}
-// SetTo sets the To field's value.
-func (s *ExportTask) SetTo(v int64) *ExportTask {
- s.To = &v
+// SetPolicyDocument sets the PolicyDocument field's value.
+func (s *GetDataProtectionPolicyOutput) SetPolicyDocument(v string) *GetDataProtectionPolicyOutput {
+ s.PolicyDocument = &v
return s
}
-// Represents the status of an export task.
-type ExportTaskExecutionInfo struct {
+type GetDeliveryDestinationInput struct {
_ struct{} `type:"structure"`
- // The completion time of the export task, expressed as the number of milliseconds
- // after Jan 1, 1970 00:00:00 UTC.
- CompletionTime *int64 `locationName:"completionTime" type:"long"`
-
- // The creation time of the export task, expressed as the number of milliseconds
- // after Jan 1, 1970 00:00:00 UTC.
- CreationTime *int64 `locationName:"creationTime" type:"long"`
+ // The name of the delivery destination that you want to retrieve.
+ //
+ // Name is a required field
+ Name *string `locationName:"name" min:"1" type:"string" required:"true"`
}
// String returns the string representation.
@@ -8465,7 +11832,7 @@ type ExportTaskExecutionInfo struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ExportTaskExecutionInfo) String() string {
+func (s GetDeliveryDestinationInput) String() string {
return awsutil.Prettify(s)
}
@@ -8474,31 +11841,37 @@ func (s ExportTaskExecutionInfo) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ExportTaskExecutionInfo) GoString() string {
+func (s GetDeliveryDestinationInput) GoString() string {
return s.String()
}
-// SetCompletionTime sets the CompletionTime field's value.
-func (s *ExportTaskExecutionInfo) SetCompletionTime(v int64) *ExportTaskExecutionInfo {
- s.CompletionTime = &v
- return s
-}
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *GetDeliveryDestinationInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetDeliveryDestinationInput"}
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
+ }
+ if s.Name != nil && len(*s.Name) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Name", 1))
+ }
-// SetCreationTime sets the CreationTime field's value.
-func (s *ExportTaskExecutionInfo) SetCreationTime(v int64) *ExportTaskExecutionInfo {
- s.CreationTime = &v
- return s
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
}
-// Represents the status of an export task.
-type ExportTaskStatus struct {
- _ struct{} `type:"structure"`
+// SetName sets the Name field's value.
+func (s *GetDeliveryDestinationInput) SetName(v string) *GetDeliveryDestinationInput {
+ s.Name = &v
+ return s
+}
- // The status code of the export task.
- Code *string `locationName:"code" type:"string" enum:"ExportTaskStatusCode"`
+type GetDeliveryDestinationOutput struct {
+ _ struct{} `type:"structure"`
- // The status message related to the status code.
- Message *string `locationName:"message" type:"string"`
+ // A structure containing information about the delivery destination.
+ DeliveryDestination *DeliveryDestination `locationName:"deliveryDestination" type:"structure"`
}
// String returns the string representation.
@@ -8506,7 +11879,7 @@ type ExportTaskStatus struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ExportTaskStatus) String() string {
+func (s GetDeliveryDestinationOutput) String() string {
return awsutil.Prettify(s)
}
@@ -8515,93 +11888,24 @@ func (s ExportTaskStatus) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ExportTaskStatus) GoString() string {
+func (s GetDeliveryDestinationOutput) GoString() string {
return s.String()
}
-// SetCode sets the Code field's value.
-func (s *ExportTaskStatus) SetCode(v string) *ExportTaskStatus {
- s.Code = &v
- return s
-}
-
-// SetMessage sets the Message field's value.
-func (s *ExportTaskStatus) SetMessage(v string) *ExportTaskStatus {
- s.Message = &v
+// SetDeliveryDestination sets the DeliveryDestination field's value.
+func (s *GetDeliveryDestinationOutput) SetDeliveryDestination(v *DeliveryDestination) *GetDeliveryDestinationOutput {
+ s.DeliveryDestination = v
return s
}
-type FilterLogEventsInput struct {
+type GetDeliveryDestinationPolicyInput struct {
_ struct{} `type:"structure"`
- // 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.
- EndTime *int64 `locationName:"endTime" type:"long"`
-
- // 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 `locationName:"filterPattern" type:"string"`
-
- // 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 value will be assumed to be true. The response from this operation will always interleave events from multiple log streams within a log group.
- Interleaved *bool `locationName:"interleaved" deprecated:"true" type:"boolean"`
-
- // The maximum number of events to return. The default is 10,000 events.
- Limit *int64 `locationName:"limit" min:"1" type:"integer"`
-
- // 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 `locationName:"logGroupIdentifier" min:"1" type:"string"`
-
- // The name of the log group to search.
- //
- // You must include either logGroupIdentifier or logGroupName, but not both.
- LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`
-
- // 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.
- LogStreamNamePrefix *string `locationName:"logStreamNamePrefix" min:"1" type:"string"`
-
- // 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.
- LogStreamNames []*string `locationName:"logStreamNames" min:"1" type:"list"`
-
- // The token for the next set of events to return. (You received this token
- // from a previous call.)
- NextToken *string `locationName:"nextToken" min:"1" type:"string"`
-
- // 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.
- StartTime *int64 `locationName:"startTime" type:"long"`
-
- // Specify true to display the log event fields with all sensitive data unmasked
- // and visible. The default is false.
+ // The name of the delivery destination that you want to retrieve the policy
+ // of.
//
- // To use this operation with this parameter, you must be signed into an account
- // with the logs:Unmask permission.
- Unmask *bool `locationName:"unmask" type:"boolean"`
+ // DeliveryDestinationName is a required field
+ DeliveryDestinationName *string `locationName:"deliveryDestinationName" min:"1" type:"string" required:"true"`
}
// String returns the string representation.
@@ -8609,7 +11913,7 @@ type FilterLogEventsInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s FilterLogEventsInput) String() string {
+func (s GetDeliveryDestinationPolicyInput) String() string {
return awsutil.Prettify(s)
}
@@ -8618,30 +11922,18 @@ func (s FilterLogEventsInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s FilterLogEventsInput) GoString() string {
+func (s GetDeliveryDestinationPolicyInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *FilterLogEventsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "FilterLogEventsInput"}
- if s.Limit != nil && *s.Limit < 1 {
- invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
- }
- if s.LogGroupIdentifier != nil && len(*s.LogGroupIdentifier) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("LogGroupIdentifier", 1))
- }
- if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
- }
- if s.LogStreamNamePrefix != nil && len(*s.LogStreamNamePrefix) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("LogStreamNamePrefix", 1))
+func (s *GetDeliveryDestinationPolicyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetDeliveryDestinationPolicyInput"}
+ if s.DeliveryDestinationName == nil {
+ invalidParams.Add(request.NewErrParamRequired("DeliveryDestinationName"))
}
- if s.LogStreamNames != nil && len(s.LogStreamNames) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("LogStreamNames", 1))
- }
- if s.NextToken != nil && len(*s.NextToken) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ if s.DeliveryDestinationName != nil && len(*s.DeliveryDestinationName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("DeliveryDestinationName", 1))
}
if invalidParams.Len() > 0 {
@@ -8650,88 +11942,50 @@ func (s *FilterLogEventsInput) Validate() error {
return nil
}
-// SetEndTime sets the EndTime field's value.
-func (s *FilterLogEventsInput) SetEndTime(v int64) *FilterLogEventsInput {
- s.EndTime = &v
- return s
-}
-
-// SetFilterPattern sets the FilterPattern field's value.
-func (s *FilterLogEventsInput) SetFilterPattern(v string) *FilterLogEventsInput {
- s.FilterPattern = &v
- return s
-}
-
-// SetInterleaved sets the Interleaved field's value.
-func (s *FilterLogEventsInput) SetInterleaved(v bool) *FilterLogEventsInput {
- s.Interleaved = &v
- return s
-}
-
-// SetLimit sets the Limit field's value.
-func (s *FilterLogEventsInput) SetLimit(v int64) *FilterLogEventsInput {
- s.Limit = &v
- return s
-}
-
-// SetLogGroupIdentifier sets the LogGroupIdentifier field's value.
-func (s *FilterLogEventsInput) SetLogGroupIdentifier(v string) *FilterLogEventsInput {
- s.LogGroupIdentifier = &v
- return s
-}
-
-// SetLogGroupName sets the LogGroupName field's value.
-func (s *FilterLogEventsInput) SetLogGroupName(v string) *FilterLogEventsInput {
- s.LogGroupName = &v
+// SetDeliveryDestinationName sets the DeliveryDestinationName field's value.
+func (s *GetDeliveryDestinationPolicyInput) SetDeliveryDestinationName(v string) *GetDeliveryDestinationPolicyInput {
+ s.DeliveryDestinationName = &v
return s
}
-// SetLogStreamNamePrefix sets the LogStreamNamePrefix field's value.
-func (s *FilterLogEventsInput) SetLogStreamNamePrefix(v string) *FilterLogEventsInput {
- s.LogStreamNamePrefix = &v
- return s
-}
+type GetDeliveryDestinationPolicyOutput struct {
+ _ struct{} `type:"structure"`
-// SetLogStreamNames sets the LogStreamNames field's value.
-func (s *FilterLogEventsInput) SetLogStreamNames(v []*string) *FilterLogEventsInput {
- s.LogStreamNames = v
- return s
+ // The IAM policy for this delivery destination.
+ Policy *Policy `locationName:"policy" type:"structure"`
}
-// SetNextToken sets the NextToken field's value.
-func (s *FilterLogEventsInput) SetNextToken(v string) *FilterLogEventsInput {
- s.NextToken = &v
- return s
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s GetDeliveryDestinationPolicyOutput) String() string {
+ return awsutil.Prettify(s)
}
-// SetStartTime sets the StartTime field's value.
-func (s *FilterLogEventsInput) SetStartTime(v int64) *FilterLogEventsInput {
- s.StartTime = &v
- return s
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s GetDeliveryDestinationPolicyOutput) GoString() string {
+ return s.String()
}
-// SetUnmask sets the Unmask field's value.
-func (s *FilterLogEventsInput) SetUnmask(v bool) *FilterLogEventsInput {
- s.Unmask = &v
+// SetPolicy sets the Policy field's value.
+func (s *GetDeliveryDestinationPolicyOutput) SetPolicy(v *Policy) *GetDeliveryDestinationPolicyOutput {
+ s.Policy = v
return s
}
-type FilterLogEventsOutput struct {
+type GetDeliveryInput struct {
_ struct{} `type:"structure"`
- // The matched events.
- Events []*FilteredLogEvent `locationName:"events" type:"list"`
-
- // The token to use when requesting the next set of items. The token expires
- // after 24 hours.
- NextToken *string `locationName:"nextToken" min:"1" type:"string"`
-
- // Important As of May 15, 2020, this parameter is no longer supported. This
- // parameter returns an empty list.
+ // The ID of the delivery that you want to retrieve.
//
- // Indicates which log streams have been searched and whether each has been
- // searched completely.
- SearchedLogStreams []*SearchedLogStream `locationName:"searchedLogStreams" type:"list"`
+ // Id is a required field
+ Id *string `locationName:"id" min:"1" type:"string" required:"true"`
}
// String returns the string representation.
@@ -8739,7 +11993,7 @@ type FilterLogEventsOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s FilterLogEventsOutput) String() string {
+func (s GetDeliveryInput) String() string {
return awsutil.Prettify(s)
}
@@ -8748,48 +12002,37 @@ func (s FilterLogEventsOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s FilterLogEventsOutput) GoString() string {
+func (s GetDeliveryInput) GoString() string {
return s.String()
}
-// SetEvents sets the Events field's value.
-func (s *FilterLogEventsOutput) SetEvents(v []*FilteredLogEvent) *FilterLogEventsOutput {
- s.Events = v
- return s
-}
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *GetDeliveryInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetDeliveryInput"}
+ if s.Id == nil {
+ invalidParams.Add(request.NewErrParamRequired("Id"))
+ }
+ if s.Id != nil && len(*s.Id) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Id", 1))
+ }
-// SetNextToken sets the NextToken field's value.
-func (s *FilterLogEventsOutput) SetNextToken(v string) *FilterLogEventsOutput {
- s.NextToken = &v
- return s
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
}
-// SetSearchedLogStreams sets the SearchedLogStreams field's value.
-func (s *FilterLogEventsOutput) SetSearchedLogStreams(v []*SearchedLogStream) *FilterLogEventsOutput {
- s.SearchedLogStreams = v
+// SetId sets the Id field's value.
+func (s *GetDeliveryInput) SetId(v string) *GetDeliveryInput {
+ s.Id = &v
return s
}
-// Represents a matched event.
-type FilteredLogEvent struct {
+type GetDeliveryOutput struct {
_ struct{} `type:"structure"`
- // The ID of the event.
- EventId *string `locationName:"eventId" type:"string"`
-
- // The time the event was ingested, expressed as the number of milliseconds
- // after Jan 1, 1970 00:00:00 UTC.
- IngestionTime *int64 `locationName:"ingestionTime" type:"long"`
-
- // The name of the log stream to which this event belongs.
- LogStreamName *string `locationName:"logStreamName" min:"1" type:"string"`
-
- // The data contained in the log event.
- Message *string `locationName:"message" min:"1" type:"string"`
-
- // The time the event occurred, expressed as the number of milliseconds after
- // Jan 1, 1970 00:00:00 UTC.
- Timestamp *int64 `locationName:"timestamp" type:"long"`
+ // A structure that contains information about the delivery.
+ Delivery *Delivery `locationName:"delivery" type:"structure"`
}
// String returns the string representation.
@@ -8797,7 +12040,7 @@ type FilteredLogEvent struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s FilteredLogEvent) String() string {
+func (s GetDeliveryOutput) String() string {
return awsutil.Prettify(s)
}
@@ -8806,48 +12049,23 @@ func (s FilteredLogEvent) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s FilteredLogEvent) GoString() string {
+func (s GetDeliveryOutput) GoString() string {
return s.String()
}
-// SetEventId sets the EventId field's value.
-func (s *FilteredLogEvent) SetEventId(v string) *FilteredLogEvent {
- s.EventId = &v
- return s
-}
-
-// SetIngestionTime sets the IngestionTime field's value.
-func (s *FilteredLogEvent) SetIngestionTime(v int64) *FilteredLogEvent {
- s.IngestionTime = &v
- return s
-}
-
-// SetLogStreamName sets the LogStreamName field's value.
-func (s *FilteredLogEvent) SetLogStreamName(v string) *FilteredLogEvent {
- s.LogStreamName = &v
- return s
-}
-
-// SetMessage sets the Message field's value.
-func (s *FilteredLogEvent) SetMessage(v string) *FilteredLogEvent {
- s.Message = &v
- return s
-}
-
-// SetTimestamp sets the Timestamp field's value.
-func (s *FilteredLogEvent) SetTimestamp(v int64) *FilteredLogEvent {
- s.Timestamp = &v
+// SetDelivery sets the Delivery field's value.
+func (s *GetDeliveryOutput) SetDelivery(v *Delivery) *GetDeliveryOutput {
+ s.Delivery = v
return s
}
-type GetDataProtectionPolicyInput struct {
+type GetDeliverySourceInput struct {
_ struct{} `type:"structure"`
-
- // The name or ARN of the log group that contains the data protection policy
- // that you want to see.
+
+ // The name of the delivery source that you want to retrieve.
//
- // LogGroupIdentifier is a required field
- LogGroupIdentifier *string `locationName:"logGroupIdentifier" min:"1" type:"string" required:"true"`
+ // Name is a required field
+ Name *string `locationName:"name" min:"1" type:"string" required:"true"`
}
// String returns the string representation.
@@ -8855,7 +12073,7 @@ type GetDataProtectionPolicyInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetDataProtectionPolicyInput) String() string {
+func (s GetDeliverySourceInput) String() string {
return awsutil.Prettify(s)
}
@@ -8864,18 +12082,18 @@ func (s GetDataProtectionPolicyInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetDataProtectionPolicyInput) GoString() string {
+func (s GetDeliverySourceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *GetDataProtectionPolicyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetDataProtectionPolicyInput"}
- if s.LogGroupIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("LogGroupIdentifier"))
+func (s *GetDeliverySourceInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetDeliverySourceInput"}
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
}
- if s.LogGroupIdentifier != nil && len(*s.LogGroupIdentifier) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("LogGroupIdentifier", 1))
+ if s.Name != nil && len(*s.Name) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Name", 1))
}
if invalidParams.Len() > 0 {
@@ -8884,23 +12102,17 @@ func (s *GetDataProtectionPolicyInput) Validate() error {
return nil
}
-// SetLogGroupIdentifier sets the LogGroupIdentifier field's value.
-func (s *GetDataProtectionPolicyInput) SetLogGroupIdentifier(v string) *GetDataProtectionPolicyInput {
- s.LogGroupIdentifier = &v
+// SetName sets the Name field's value.
+func (s *GetDeliverySourceInput) SetName(v string) *GetDeliverySourceInput {
+ s.Name = &v
return s
}
-type GetDataProtectionPolicyOutput struct {
+type GetDeliverySourceOutput struct {
_ struct{} `type:"structure"`
- // The date and time that this policy was most recently updated.
- LastUpdatedTime *int64 `locationName:"lastUpdatedTime" type:"long"`
-
- // The log group name or ARN that you specified in your request.
- LogGroupIdentifier *string `locationName:"logGroupIdentifier" min:"1" type:"string"`
-
- // The data protection policy document for this log group.
- PolicyDocument *string `locationName:"policyDocument" type:"string"`
+ // A structure containing information about the delivery source.
+ DeliverySource *DeliverySource `locationName:"deliverySource" type:"structure"`
}
// String returns the string representation.
@@ -8908,7 +12120,7 @@ type GetDataProtectionPolicyOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetDataProtectionPolicyOutput) String() string {
+func (s GetDeliverySourceOutput) String() string {
return awsutil.Prettify(s)
}
@@ -8917,25 +12129,13 @@ func (s GetDataProtectionPolicyOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s GetDataProtectionPolicyOutput) GoString() string {
+func (s GetDeliverySourceOutput) GoString() string {
return s.String()
}
-// SetLastUpdatedTime sets the LastUpdatedTime field's value.
-func (s *GetDataProtectionPolicyOutput) SetLastUpdatedTime(v int64) *GetDataProtectionPolicyOutput {
- s.LastUpdatedTime = &v
- return s
-}
-
-// SetLogGroupIdentifier sets the LogGroupIdentifier field's value.
-func (s *GetDataProtectionPolicyOutput) SetLogGroupIdentifier(v string) *GetDataProtectionPolicyOutput {
- s.LogGroupIdentifier = &v
- return s
-}
-
-// SetPolicyDocument sets the PolicyDocument field's value.
-func (s *GetDataProtectionPolicyOutput) SetPolicyDocument(v string) *GetDataProtectionPolicyOutput {
- s.PolicyDocument = &v
+// SetDeliverySource sets the DeliverySource field's value.
+func (s *GetDeliverySourceOutput) SetDeliverySource(v *DeliverySource) *GetDeliverySourceOutput {
+ s.DeliverySource = v
return s
}
@@ -9715,31 +12915,232 @@ func (s *InvalidSequenceTokenException) Message() string {
return ""
}
-// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s *InvalidSequenceTokenException) OrigErr() error {
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *InvalidSequenceTokenException) OrigErr() error {
+ return nil
+}
+
+func (s *InvalidSequenceTokenException) Error() string {
+ return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *InvalidSequenceTokenException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *InvalidSequenceTokenException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+// You have reached the maximum number of resources that can be created.
+type LimitExceededException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"message" type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s LimitExceededException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s LimitExceededException) GoString() string {
+ return s.String()
+}
+
+func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
+ return &LimitExceededException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *LimitExceededException) Code() string {
+ return "LimitExceededException"
+}
+
+// Message returns the exception's message.
+func (s *LimitExceededException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *LimitExceededException) OrigErr() error {
+ return nil
+}
+
+func (s *LimitExceededException) Error() string {
+ return fmt.Sprintf("%s: %s", s.Code(), s.Message())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+type ListTagsForResourceInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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).
+ //
+ // ResourceArn is a required field
+ ResourceArn *string `locationName:"resourceArn" min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ListTagsForResourceInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ListTagsForResourceInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ListTagsForResourceInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
+ if s.ResourceArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
+ }
+ if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetResourceArn sets the ResourceArn field's value.
+func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput {
+ s.ResourceArn = &v
+ return s
+}
+
+type ListTagsForResourceOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The list of tags associated with the requested resource.>
+ Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ListTagsForResourceOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ListTagsForResourceOutput) GoString() string {
+ return s.String()
+}
+
+// SetTags sets the Tags field's value.
+func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput {
+ s.Tags = v
+ return s
+}
+
+// Deprecated: Please use the generic tagging API model ListTagsForResourceRequest and ListTagsForResourceResponse
+type ListTagsLogGroupInput struct {
+ _ struct{} `deprecated:"true" type:"structure"`
+
+ // The name of the log group.
+ //
+ // LogGroupName is a required field
+ LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ListTagsLogGroupInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ListTagsLogGroupInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ListTagsLogGroupInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListTagsLogGroupInput"}
+ if s.LogGroupName == nil {
+ invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
+ }
+ if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
return nil
}
-func (s *InvalidSequenceTokenException) Error() string {
- return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
-}
-
-// Status code returns the HTTP status code for the request's response error.
-func (s *InvalidSequenceTokenException) StatusCode() int {
- return s.RespMetadata.StatusCode
-}
-
-// RequestID returns the service's response RequestID for request.
-func (s *InvalidSequenceTokenException) RequestID() string {
- return s.RespMetadata.RequestID
+// SetLogGroupName sets the LogGroupName field's value.
+func (s *ListTagsLogGroupInput) SetLogGroupName(v string) *ListTagsLogGroupInput {
+ s.LogGroupName = &v
+ return s
}
-// You have reached the maximum number of resources that can be created.
-type LimitExceededException struct {
- _ struct{} `type:"structure"`
- RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+// Deprecated: Please use the generic tagging API model ListTagsForResourceRequest and ListTagsForResourceResponse
+type ListTagsLogGroupOutput struct {
+ _ struct{} `deprecated:"true" type:"structure"`
- Message_ *string `locationName:"message" type:"string"`
+ // The tags for the log group.
+ Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
}
// String returns the string representation.
@@ -9747,7 +13148,7 @@ type LimitExceededException struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s LimitExceededException) String() string {
+func (s ListTagsLogGroupOutput) String() string {
return awsutil.Prettify(s)
}
@@ -9756,62 +13157,55 @@ func (s LimitExceededException) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s LimitExceededException) GoString() string {
+func (s ListTagsLogGroupOutput) GoString() string {
return s.String()
}
-func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
- return &LimitExceededException{
- RespMetadata: v,
- }
+// SetTags sets the Tags field's value.
+func (s *ListTagsLogGroupOutput) SetTags(v map[string]*string) *ListTagsLogGroupOutput {
+ s.Tags = v
+ return s
}
-// Code returns the exception type name.
-func (s *LimitExceededException) Code() string {
- return "LimitExceededException"
-}
+// Represents a log group.
+type LogGroup struct {
+ _ struct{} `type:"structure"`
-// Message returns the exception's message.
-func (s *LimitExceededException) Message() string {
- if s.Message_ != nil {
- return *s.Message_
- }
- return ""
-}
+ // The Amazon Resource Name (ARN) of the log group.
+ Arn *string `locationName:"arn" type:"string"`
-// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s *LimitExceededException) OrigErr() error {
- return nil
-}
+ // The creation time of the log group, expressed as the number of milliseconds
+ // after Jan 1, 1970 00:00:00 UTC.
+ CreationTime *int64 `locationName:"creationTime" type:"long"`
-func (s *LimitExceededException) Error() string {
- return fmt.Sprintf("%s: %s", s.Code(), s.Message())
-}
+ // Displays whether this log group has a protection policy, or whether it had
+ // one in the past. For more information, see PutDataProtectionPolicy (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDataProtectionPolicy.html).
+ DataProtectionStatus *string `locationName:"dataProtectionStatus" type:"string" enum:"DataProtectionStatus"`
-// Status code returns the HTTP status code for the request's response error.
-func (s *LimitExceededException) StatusCode() int {
- return s.RespMetadata.StatusCode
-}
+ // Displays all the properties that this log group has inherited from account-level
+ // settings.
+ InheritedProperties []*string `locationName:"inheritedProperties" type:"list" enum:"InheritedProperty"`
-// RequestID returns the service's response RequestID for request.
-func (s *LimitExceededException) RequestID() string {
- return s.RespMetadata.RequestID
-}
+ // The Amazon Resource Name (ARN) of the KMS key to use when encrypting log
+ // data.
+ KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
-type ListTagsForResourceInput struct {
- _ struct{} `type:"structure"`
+ // The name of the log group.
+ LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`
- // 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).
+ // The number of metric filters.
+ MetricFilterCount *int64 `locationName:"metricFilterCount" type:"integer"`
+
+ // 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.
//
- // ResourceArn is a required field
- ResourceArn *string `locationName:"resourceArn" min:"1" type:"string" required:"true"`
+ // 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).
+ RetentionInDays *int64 `locationName:"retentionInDays" type:"integer"`
+
+ // The number of bytes stored.
+ StoredBytes *int64 `locationName:"storedBytes" type:"long"`
}
// String returns the string representation.
@@ -9819,7 +13213,7 @@ type ListTagsForResourceInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ListTagsForResourceInput) String() string {
+func (s LogGroup) String() string {
return awsutil.Prettify(s)
}
@@ -9828,37 +13222,74 @@ func (s ListTagsForResourceInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ListTagsForResourceInput) GoString() string {
+func (s LogGroup) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *ListTagsForResourceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
- if s.ResourceArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
- }
- if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
- }
+// SetArn sets the Arn field's value.
+func (s *LogGroup) SetArn(v string) *LogGroup {
+ s.Arn = &v
+ return s
+}
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
+// SetCreationTime sets the CreationTime field's value.
+func (s *LogGroup) SetCreationTime(v int64) *LogGroup {
+ s.CreationTime = &v
+ return s
}
-// SetResourceArn sets the ResourceArn field's value.
-func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput {
- s.ResourceArn = &v
+// SetDataProtectionStatus sets the DataProtectionStatus field's value.
+func (s *LogGroup) SetDataProtectionStatus(v string) *LogGroup {
+ s.DataProtectionStatus = &v
return s
}
-type ListTagsForResourceOutput struct {
+// SetInheritedProperties sets the InheritedProperties field's value.
+func (s *LogGroup) SetInheritedProperties(v []*string) *LogGroup {
+ s.InheritedProperties = v
+ return s
+}
+
+// SetKmsKeyId sets the KmsKeyId field's value.
+func (s *LogGroup) SetKmsKeyId(v string) *LogGroup {
+ s.KmsKeyId = &v
+ return s
+}
+
+// SetLogGroupName sets the LogGroupName field's value.
+func (s *LogGroup) SetLogGroupName(v string) *LogGroup {
+ s.LogGroupName = &v
+ return s
+}
+
+// SetMetricFilterCount sets the MetricFilterCount field's value.
+func (s *LogGroup) SetMetricFilterCount(v int64) *LogGroup {
+ s.MetricFilterCount = &v
+ return s
+}
+
+// SetRetentionInDays sets the RetentionInDays field's value.
+func (s *LogGroup) SetRetentionInDays(v int64) *LogGroup {
+ s.RetentionInDays = &v
+ return s
+}
+
+// SetStoredBytes sets the StoredBytes field's value.
+func (s *LogGroup) SetStoredBytes(v int64) *LogGroup {
+ s.StoredBytes = &v
+ return s
+}
+
+// The fields contained in log events found by a GetLogGroupFields operation,
+// along with the percentage of queried log events in which each field appears.
+type LogGroupField struct {
_ struct{} `type:"structure"`
- // The list of tags associated with the requested resource.>
- Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
+ // The name of a log field.
+ Name *string `locationName:"name" type:"string"`
+
+ // The percentage of log events queried that contained the field.
+ Percent *int64 `locationName:"percent" type:"integer"`
}
// String returns the string representation.
@@ -9866,7 +13297,7 @@ type ListTagsForResourceOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ListTagsForResourceOutput) String() string {
+func (s LogGroupField) String() string {
return awsutil.Prettify(s)
}
@@ -9875,24 +13306,69 @@ func (s ListTagsForResourceOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ListTagsForResourceOutput) GoString() string {
+func (s LogGroupField) GoString() string {
return s.String()
}
-// SetTags sets the Tags field's value.
-func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput {
- s.Tags = v
+// SetName sets the Name field's value.
+func (s *LogGroupField) SetName(v string) *LogGroupField {
+ s.Name = &v
return s
}
-// Deprecated: Please use the generic tagging API model ListTagsForResourceRequest and ListTagsForResourceResponse
-type ListTagsLogGroupInput struct {
- _ struct{} `deprecated:"true" type:"structure"`
+// SetPercent sets the Percent field's value.
+func (s *LogGroupField) SetPercent(v int64) *LogGroupField {
+ s.Percent = &v
+ return s
+}
- // The name of the log group.
+// Represents a log stream, which is a sequence of log events from a single
+// emitter of logs.
+type LogStream struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the log stream.
+ Arn *string `locationName:"arn" type:"string"`
+
+ // The creation time of the stream, expressed as the number of milliseconds
+ // after Jan 1, 1970 00:00:00 UTC.
+ CreationTime *int64 `locationName:"creationTime" type:"long"`
+
+ // The time of the first event, expressed as the number of milliseconds after
+ // Jan 1, 1970 00:00:00 UTC.
+ FirstEventTimestamp *int64 `locationName:"firstEventTimestamp" type:"long"`
+
+ // 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.
+ LastEventTimestamp *int64 `locationName:"lastEventTimestamp" type:"long"`
+
+ // 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.
+ LastIngestionTime *int64 `locationName:"lastIngestionTime" type:"long"`
+
+ // The name of the log stream.
+ LogStreamName *string `locationName:"logStreamName" min:"1" type:"string"`
+
+ // The number of bytes stored.
//
- // LogGroupName is a required field
- LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"`
+ // 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.
+ //
+ // Deprecated: 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.
+ StoredBytes *int64 `locationName:"storedBytes" deprecated:"true" type:"long"`
+
+ // 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.
+ UploadSequenceToken *string `locationName:"uploadSequenceToken" min:"1" type:"string"`
}
// String returns the string representation.
@@ -9900,7 +13376,7 @@ type ListTagsLogGroupInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ListTagsLogGroupInput) String() string {
+func (s LogStream) String() string {
return awsutil.Prettify(s)
}
@@ -9909,38 +13385,71 @@ func (s ListTagsLogGroupInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ListTagsLogGroupInput) GoString() string {
+func (s LogStream) GoString() string {
return s.String()
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *ListTagsLogGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListTagsLogGroupInput"}
- if s.LogGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
- }
- if s.LogGroupName != nil && len(*s.LogGroupName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 1))
- }
+// SetArn sets the Arn field's value.
+func (s *LogStream) SetArn(v string) *LogStream {
+ s.Arn = &v
+ return s
+}
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
+// SetCreationTime sets the CreationTime field's value.
+func (s *LogStream) SetCreationTime(v int64) *LogStream {
+ s.CreationTime = &v
+ return s
}
-// SetLogGroupName sets the LogGroupName field's value.
-func (s *ListTagsLogGroupInput) SetLogGroupName(v string) *ListTagsLogGroupInput {
- s.LogGroupName = &v
+// SetFirstEventTimestamp sets the FirstEventTimestamp field's value.
+func (s *LogStream) SetFirstEventTimestamp(v int64) *LogStream {
+ s.FirstEventTimestamp = &v
return s
}
-// Deprecated: Please use the generic tagging API model ListTagsForResourceRequest and ListTagsForResourceResponse
-type ListTagsLogGroupOutput struct {
- _ struct{} `deprecated:"true" type:"structure"`
+// SetLastEventTimestamp sets the LastEventTimestamp field's value.
+func (s *LogStream) SetLastEventTimestamp(v int64) *LogStream {
+ s.LastEventTimestamp = &v
+ return s
+}
- // The tags for the log group.
- Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
+// SetLastIngestionTime sets the LastIngestionTime field's value.
+func (s *LogStream) SetLastIngestionTime(v int64) *LogStream {
+ s.LastIngestionTime = &v
+ return s
+}
+
+// SetLogStreamName sets the LogStreamName field's value.
+func (s *LogStream) SetLogStreamName(v string) *LogStream {
+ s.LogStreamName = &v
+ return s
+}
+
+// SetStoredBytes sets the StoredBytes field's value.
+func (s *LogStream) SetStoredBytes(v int64) *LogStream {
+ s.StoredBytes = &v
+ return s
+}
+
+// SetUploadSequenceToken sets the UploadSequenceToken field's value.
+func (s *LogStream) SetUploadSequenceToken(v string) *LogStream {
+ s.UploadSequenceToken = &v
+ return s
+}
+
+// The query string is not valid. Details about this error are displayed in
+// a QueryCompileError object. For more information, see QueryCompileError (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_QueryCompileError.html).
+//
+// For more information about valid query syntax, see CloudWatch Logs Insights
+// Query Syntax (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html).
+type MalformedQueryException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"message" type:"string"`
+
+ // Reserved.
+ QueryCompileError *QueryCompileError `locationName:"queryCompileError" type:"structure"`
}
// String returns the string representation.
@@ -9948,7 +13457,7 @@ type ListTagsLogGroupOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ListTagsLogGroupOutput) String() string {
+func (s MalformedQueryException) String() string {
return awsutil.Prettify(s)
}
@@ -9957,55 +13466,72 @@ func (s ListTagsLogGroupOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s ListTagsLogGroupOutput) GoString() string {
+func (s MalformedQueryException) GoString() string {
return s.String()
}
-// SetTags sets the Tags field's value.
-func (s *ListTagsLogGroupOutput) SetTags(v map[string]*string) *ListTagsLogGroupOutput {
- s.Tags = v
- return s
+func newErrorMalformedQueryException(v protocol.ResponseMetadata) error {
+ return &MalformedQueryException{
+ RespMetadata: v,
+ }
}
-// Represents a log group.
-type LogGroup struct {
- _ struct{} `type:"structure"`
+// Code returns the exception type name.
+func (s *MalformedQueryException) Code() string {
+ return "MalformedQueryException"
+}
- // The Amazon Resource Name (ARN) of the log group.
- Arn *string `locationName:"arn" type:"string"`
+// Message returns the exception's message.
+func (s *MalformedQueryException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
- // The creation time of the log group, expressed as the number of milliseconds
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *MalformedQueryException) OrigErr() error {
+ return nil
+}
+
+func (s *MalformedQueryException) Error() string {
+ return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *MalformedQueryException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *MalformedQueryException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+// Metric filters express how CloudWatch Logs would extract metric observations
+// from ingested log events and transform them into metric data in a CloudWatch
+// metric.
+type MetricFilter struct {
+ _ struct{} `type:"structure"`
+
+ // The creation time of the metric filter, expressed as the number of milliseconds
// after Jan 1, 1970 00:00:00 UTC.
CreationTime *int64 `locationName:"creationTime" type:"long"`
- // Displays whether this log group has a protection policy, or whether it had
- // one in the past. For more information, see PutDataProtectionPolicy (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDataProtectionPolicy.html).
- DataProtectionStatus *string `locationName:"dataProtectionStatus" type:"string" enum:"DataProtectionStatus"`
-
- // Displays all the properties that this log group has inherited from account-level
- // settings.
- InheritedProperties []*string `locationName:"inheritedProperties" type:"list" enum:"InheritedProperty"`
+ // The name of the metric filter.
+ FilterName *string `locationName:"filterName" min:"1" type:"string"`
- // The Amazon Resource Name (ARN) of the KMS key to use when encrypting log
- // data.
- KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
+ // 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.
+ FilterPattern *string `locationName:"filterPattern" type:"string"`
// The name of the log group.
LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`
- // The number of metric filters.
- MetricFilterCount *int64 `locationName:"metricFilterCount" type:"integer"`
-
- // 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
- // (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DeleteRetentionPolicy.html).
- RetentionInDays *int64 `locationName:"retentionInDays" type:"integer"`
-
- // The number of bytes stored.
- StoredBytes *int64 `locationName:"storedBytes" type:"long"`
+ // The metric transformations.
+ MetricTransformations []*MetricTransformation `locationName:"metricTransformations" min:"1" type:"list"`
}
// String returns the string representation.
@@ -10013,7 +13539,7 @@ type LogGroup struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s LogGroup) String() string {
+func (s MetricFilter) String() string {
return awsutil.Prettify(s)
}
@@ -10022,74 +13548,52 @@ func (s LogGroup) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s LogGroup) GoString() string {
+func (s MetricFilter) GoString() string {
return s.String()
}
-// SetArn sets the Arn field's value.
-func (s *LogGroup) SetArn(v string) *LogGroup {
- s.Arn = &v
- return s
-}
-
// SetCreationTime sets the CreationTime field's value.
-func (s *LogGroup) SetCreationTime(v int64) *LogGroup {
+func (s *MetricFilter) SetCreationTime(v int64) *MetricFilter {
s.CreationTime = &v
return s
}
-// SetDataProtectionStatus sets the DataProtectionStatus field's value.
-func (s *LogGroup) SetDataProtectionStatus(v string) *LogGroup {
- s.DataProtectionStatus = &v
- return s
-}
-
-// SetInheritedProperties sets the InheritedProperties field's value.
-func (s *LogGroup) SetInheritedProperties(v []*string) *LogGroup {
- s.InheritedProperties = v
+// SetFilterName sets the FilterName field's value.
+func (s *MetricFilter) SetFilterName(v string) *MetricFilter {
+ s.FilterName = &v
return s
}
-// SetKmsKeyId sets the KmsKeyId field's value.
-func (s *LogGroup) SetKmsKeyId(v string) *LogGroup {
- s.KmsKeyId = &v
+// SetFilterPattern sets the FilterPattern field's value.
+func (s *MetricFilter) SetFilterPattern(v string) *MetricFilter {
+ s.FilterPattern = &v
return s
}
// SetLogGroupName sets the LogGroupName field's value.
-func (s *LogGroup) SetLogGroupName(v string) *LogGroup {
+func (s *MetricFilter) SetLogGroupName(v string) *MetricFilter {
s.LogGroupName = &v
return s
}
-// SetMetricFilterCount sets the MetricFilterCount field's value.
-func (s *LogGroup) SetMetricFilterCount(v int64) *LogGroup {
- s.MetricFilterCount = &v
- return s
-}
-
-// SetRetentionInDays sets the RetentionInDays field's value.
-func (s *LogGroup) SetRetentionInDays(v int64) *LogGroup {
- s.RetentionInDays = &v
- return s
-}
-
-// SetStoredBytes sets the StoredBytes field's value.
-func (s *LogGroup) SetStoredBytes(v int64) *LogGroup {
- s.StoredBytes = &v
+// SetMetricTransformations sets the MetricTransformations field's value.
+func (s *MetricFilter) SetMetricTransformations(v []*MetricTransformation) *MetricFilter {
+ s.MetricTransformations = v
return s
}
-// The fields contained in log events found by a GetLogGroupFields operation,
-// along with the percentage of queried log events in which each field appears.
-type LogGroupField struct {
+// Represents a matched event.
+type MetricFilterMatchRecord struct {
_ struct{} `type:"structure"`
- // The name of a log field.
- Name *string `locationName:"name" type:"string"`
+ // The raw event data.
+ EventMessage *string `locationName:"eventMessage" min:"1" type:"string"`
- // The percentage of log events queried that contained the field.
- Percent *int64 `locationName:"percent" type:"integer"`
+ // The event number.
+ EventNumber *int64 `locationName:"eventNumber" type:"long"`
+
+ // The values extracted from the event data by the filter.
+ ExtractedValues map[string]*string `locationName:"extractedValues" type:"map"`
}
// String returns the string representation.
@@ -10097,7 +13601,7 @@ type LogGroupField struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s LogGroupField) String() string {
+func (s MetricFilterMatchRecord) String() string {
return awsutil.Prettify(s)
}
@@ -10106,69 +13610,74 @@ func (s LogGroupField) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s LogGroupField) GoString() string {
+func (s MetricFilterMatchRecord) GoString() string {
return s.String()
}
-// SetName sets the Name field's value.
-func (s *LogGroupField) SetName(v string) *LogGroupField {
- s.Name = &v
+// SetEventMessage sets the EventMessage field's value.
+func (s *MetricFilterMatchRecord) SetEventMessage(v string) *MetricFilterMatchRecord {
+ s.EventMessage = &v
return s
}
-// SetPercent sets the Percent field's value.
-func (s *LogGroupField) SetPercent(v int64) *LogGroupField {
- s.Percent = &v
+// SetEventNumber sets the EventNumber field's value.
+func (s *MetricFilterMatchRecord) SetEventNumber(v int64) *MetricFilterMatchRecord {
+ s.EventNumber = &v
+ return s
+}
+
+// SetExtractedValues sets the ExtractedValues field's value.
+func (s *MetricFilterMatchRecord) SetExtractedValues(v map[string]*string) *MetricFilterMatchRecord {
+ s.ExtractedValues = v
return s
}
-// Represents a log stream, which is a sequence of log events from a single
-// emitter of logs.
-type LogStream struct {
+// Indicates how to transform ingested log events to metric data in a CloudWatch
+// metric.
+type MetricTransformation struct {
_ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the log stream.
- Arn *string `locationName:"arn" type:"string"`
-
- // The creation time of the stream, expressed as the number of milliseconds
- // after Jan 1, 1970 00:00:00 UTC.
- CreationTime *int64 `locationName:"creationTime" type:"long"`
-
- // The time of the first event, expressed as the number of milliseconds after
- // Jan 1, 1970 00:00:00 UTC.
- FirstEventTimestamp *int64 `locationName:"firstEventTimestamp" type:"long"`
-
- // 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.
- LastEventTimestamp *int64 `locationName:"lastEventTimestamp" type:"long"`
-
- // 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.
- LastIngestionTime *int64 `locationName:"lastIngestionTime" type:"long"`
+ // (Optional) The value to emit when a filter pattern does not match a log event.
+ // This value can be null.
+ DefaultValue *float64 `locationName:"defaultValue" type:"double"`
- // The name of the log stream.
- LogStreamName *string `locationName:"logStreamName" min:"1" type:"string"`
+ // 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 (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/monitor_estimated_charges_with_cloudwatch.html).
+ Dimensions map[string]*string `locationName:"dimensions" type:"map"`
- // The number of bytes stored.
+ // The name of the CloudWatch metric.
//
- // 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.
+ // MetricName is a required field
+ MetricName *string `locationName:"metricName" type:"string" required:"true"`
+
+ // A custom namespace to contain your metric in CloudWatch. Use namespaces to
+ // group together metrics that are similar. For more information, see Namespaces
+ // (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Namespace).
//
- // Deprecated: 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.
- StoredBytes *int64 `locationName:"storedBytes" deprecated:"true" type:"long"`
+ // MetricNamespace is a required field
+ MetricNamespace *string `locationName:"metricNamespace" type:"string" required:"true"`
- // The sequence token.
+ // The value to publish to the CloudWatch metric when a filter pattern matches
+ // a log event.
//
- // 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.
- UploadSequenceToken *string `locationName:"uploadSequenceToken" min:"1" type:"string"`
+ // MetricValue is a required field
+ MetricValue *string `locationName:"metricValue" type:"string" required:"true"`
+
+ // The unit to assign to the metric. If you omit this, the unit is set as None.
+ Unit *string `locationName:"unit" type:"string" enum:"StandardUnit"`
}
// String returns the string representation.
@@ -10176,7 +13685,7 @@ type LogStream struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s LogStream) String() string {
+func (s MetricTransformation) String() string {
return awsutil.Prettify(s)
}
@@ -10185,71 +13694,71 @@ func (s LogStream) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s LogStream) GoString() string {
+func (s MetricTransformation) GoString() string {
return s.String()
}
-// SetArn sets the Arn field's value.
-func (s *LogStream) SetArn(v string) *LogStream {
- s.Arn = &v
- return s
-}
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *MetricTransformation) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "MetricTransformation"}
+ if s.MetricName == nil {
+ invalidParams.Add(request.NewErrParamRequired("MetricName"))
+ }
+ if s.MetricNamespace == nil {
+ invalidParams.Add(request.NewErrParamRequired("MetricNamespace"))
+ }
+ if s.MetricValue == nil {
+ invalidParams.Add(request.NewErrParamRequired("MetricValue"))
+ }
-// SetCreationTime sets the CreationTime field's value.
-func (s *LogStream) SetCreationTime(v int64) *LogStream {
- s.CreationTime = &v
- return s
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
}
-// SetFirstEventTimestamp sets the FirstEventTimestamp field's value.
-func (s *LogStream) SetFirstEventTimestamp(v int64) *LogStream {
- s.FirstEventTimestamp = &v
+// SetDefaultValue sets the DefaultValue field's value.
+func (s *MetricTransformation) SetDefaultValue(v float64) *MetricTransformation {
+ s.DefaultValue = &v
return s
}
-// SetLastEventTimestamp sets the LastEventTimestamp field's value.
-func (s *LogStream) SetLastEventTimestamp(v int64) *LogStream {
- s.LastEventTimestamp = &v
+// SetDimensions sets the Dimensions field's value.
+func (s *MetricTransformation) SetDimensions(v map[string]*string) *MetricTransformation {
+ s.Dimensions = v
return s
}
-// SetLastIngestionTime sets the LastIngestionTime field's value.
-func (s *LogStream) SetLastIngestionTime(v int64) *LogStream {
- s.LastIngestionTime = &v
+// SetMetricName sets the MetricName field's value.
+func (s *MetricTransformation) SetMetricName(v string) *MetricTransformation {
+ s.MetricName = &v
return s
}
-// SetLogStreamName sets the LogStreamName field's value.
-func (s *LogStream) SetLogStreamName(v string) *LogStream {
- s.LogStreamName = &v
+// SetMetricNamespace sets the MetricNamespace field's value.
+func (s *MetricTransformation) SetMetricNamespace(v string) *MetricTransformation {
+ s.MetricNamespace = &v
return s
}
-// SetStoredBytes sets the StoredBytes field's value.
-func (s *LogStream) SetStoredBytes(v int64) *LogStream {
- s.StoredBytes = &v
+// SetMetricValue sets the MetricValue field's value.
+func (s *MetricTransformation) SetMetricValue(v string) *MetricTransformation {
+ s.MetricValue = &v
return s
}
-// SetUploadSequenceToken sets the UploadSequenceToken field's value.
-func (s *LogStream) SetUploadSequenceToken(v string) *LogStream {
- s.UploadSequenceToken = &v
+// SetUnit sets the Unit field's value.
+func (s *MetricTransformation) SetUnit(v string) *MetricTransformation {
+ s.Unit = &v
return s
}
-// The query string is not valid. Details about this error are displayed in
-// a QueryCompileError object. For more information, see QueryCompileError (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_QueryCompileError.html).
-//
-// For more information about valid query syntax, see CloudWatch Logs Insights
-// Query Syntax (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html).
-type MalformedQueryException struct {
+// Multiple concurrent requests to update the same resource were in conflict.
+type OperationAbortedException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
-
- // Reserved.
- QueryCompileError *QueryCompileError `locationName:"queryCompileError" type:"structure"`
}
// String returns the string representation.
@@ -10257,7 +13766,7 @@ type MalformedQueryException struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s MalformedQueryException) String() string {
+func (s OperationAbortedException) String() string {
return awsutil.Prettify(s)
}
@@ -10266,23 +13775,23 @@ func (s MalformedQueryException) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s MalformedQueryException) GoString() string {
+func (s OperationAbortedException) GoString() string {
return s.String()
}
-func newErrorMalformedQueryException(v protocol.ResponseMetadata) error {
- return &MalformedQueryException{
+func newErrorOperationAbortedException(v protocol.ResponseMetadata) error {
+ return &OperationAbortedException{
RespMetadata: v,
}
}
// Code returns the exception type name.
-func (s *MalformedQueryException) Code() string {
- return "MalformedQueryException"
+func (s *OperationAbortedException) Code() string {
+ return "OperationAbortedException"
}
// Message returns the exception's message.
-func (s *MalformedQueryException) Message() string {
+func (s *OperationAbortedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
@@ -10290,48 +13799,161 @@ func (s *MalformedQueryException) Message() string {
}
// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s *MalformedQueryException) OrigErr() error {
+func (s *OperationAbortedException) OrigErr() error {
return nil
}
-func (s *MalformedQueryException) Error() string {
- return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
+func (s *OperationAbortedException) Error() string {
+ return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
-func (s *MalformedQueryException) StatusCode() int {
+func (s *OperationAbortedException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
-func (s *MalformedQueryException) RequestID() string {
+func (s *OperationAbortedException) RequestID() string {
return s.RespMetadata.RequestID
}
-// Metric filters express how CloudWatch Logs would extract metric observations
-// from ingested log events and transform them into metric data in a CloudWatch
-// metric.
-type MetricFilter struct {
+// Represents a log event.
+type OutputLogEvent struct {
_ struct{} `type:"structure"`
- // The creation time of the metric filter, expressed as the number of milliseconds
+ // The time the event was ingested, expressed as the number of milliseconds
// after Jan 1, 1970 00:00:00 UTC.
- CreationTime *int64 `locationName:"creationTime" type:"long"`
+ IngestionTime *int64 `locationName:"ingestionTime" type:"long"`
+
+ // The data contained in the log event.
+ Message *string `locationName:"message" min:"1" type:"string"`
+
+ // The time the event occurred, expressed as the number of milliseconds after
+ // Jan 1, 1970 00:00:00 UTC.
+ Timestamp *int64 `locationName:"timestamp" type:"long"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s OutputLogEvent) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s OutputLogEvent) GoString() string {
+ return s.String()
+}
+
+// SetIngestionTime sets the IngestionTime field's value.
+func (s *OutputLogEvent) SetIngestionTime(v int64) *OutputLogEvent {
+ s.IngestionTime = &v
+ return s
+}
+
+// SetMessage sets the Message field's value.
+func (s *OutputLogEvent) SetMessage(v string) *OutputLogEvent {
+ s.Message = &v
+ return s
+}
+
+// SetTimestamp sets the Timestamp field's value.
+func (s *OutputLogEvent) SetTimestamp(v int64) *OutputLogEvent {
+ s.Timestamp = &v
+ return s
+}
+
+// A structure that contains information about one delivery destination policy.
+type Policy struct {
+ _ struct{} `type:"structure"`
+
+ // The contents of the delivery destination policy.
+ DeliveryDestinationPolicy *string `locationName:"deliveryDestinationPolicy" min:"1" type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s Policy) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s Policy) GoString() string {
+ return s.String()
+}
+
+// SetDeliveryDestinationPolicy sets the DeliveryDestinationPolicy field's value.
+func (s *Policy) SetDeliveryDestinationPolicy(v string) *Policy {
+ s.DeliveryDestinationPolicy = &v
+ return s
+}
+
+type PutAccountPolicyInput struct {
+ _ struct{} `type:"structure"`
- // The name of the metric filter.
- FilterName *string `locationName:"filterName" min:"1" type:"string"`
+ // Specify the data protection policy, in JSON.
+ //
+ // This 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.
+ //
+ // PolicyDocument is a required field
+ PolicyDocument *string `locationName:"policyDocument" type:"string" required:"true"`
- // 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.
- FilterPattern *string `locationName:"filterPattern" type:"string"`
+ // A name for the policy. This must be unique within the account.
+ //
+ // PolicyName is a required field
+ PolicyName *string `locationName:"policyName" type:"string" required:"true"`
- // The name of the log group.
- LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`
+ // Currently the only valid value for this parameter is DATA_PROTECTION_POLICY.
+ //
+ // PolicyType is a required field
+ PolicyType *string `locationName:"policyType" type:"string" required:"true" enum:"PolicyType"`
- // The metric transformations.
- MetricTransformations []*MetricTransformation `locationName:"metricTransformations" min:"1" type:"list"`
+ // 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 *string `locationName:"scope" type:"string" enum:"Scope"`
}
// String returns the string representation.
@@ -10339,7 +13961,7 @@ type MetricFilter struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s MetricFilter) String() string {
+func (s PutAccountPolicyInput) String() string {
return awsutil.Prettify(s)
}
@@ -10348,52 +13970,58 @@ func (s MetricFilter) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s MetricFilter) GoString() string {
+func (s PutAccountPolicyInput) GoString() string {
return s.String()
}
-// SetCreationTime sets the CreationTime field's value.
-func (s *MetricFilter) SetCreationTime(v int64) *MetricFilter {
- s.CreationTime = &v
- return s
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *PutAccountPolicyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "PutAccountPolicyInput"}
+ if s.PolicyDocument == nil {
+ invalidParams.Add(request.NewErrParamRequired("PolicyDocument"))
+ }
+ if s.PolicyName == nil {
+ invalidParams.Add(request.NewErrParamRequired("PolicyName"))
+ }
+ if s.PolicyType == nil {
+ invalidParams.Add(request.NewErrParamRequired("PolicyType"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
}
-// SetFilterName sets the FilterName field's value.
-func (s *MetricFilter) SetFilterName(v string) *MetricFilter {
- s.FilterName = &v
+// SetPolicyDocument sets the PolicyDocument field's value.
+func (s *PutAccountPolicyInput) SetPolicyDocument(v string) *PutAccountPolicyInput {
+ s.PolicyDocument = &v
return s
}
-// SetFilterPattern sets the FilterPattern field's value.
-func (s *MetricFilter) SetFilterPattern(v string) *MetricFilter {
- s.FilterPattern = &v
+// SetPolicyName sets the PolicyName field's value.
+func (s *PutAccountPolicyInput) SetPolicyName(v string) *PutAccountPolicyInput {
+ s.PolicyName = &v
return s
}
-// SetLogGroupName sets the LogGroupName field's value.
-func (s *MetricFilter) SetLogGroupName(v string) *MetricFilter {
- s.LogGroupName = &v
+// SetPolicyType sets the PolicyType field's value.
+func (s *PutAccountPolicyInput) SetPolicyType(v string) *PutAccountPolicyInput {
+ s.PolicyType = &v
return s
}
-// SetMetricTransformations sets the MetricTransformations field's value.
-func (s *MetricFilter) SetMetricTransformations(v []*MetricTransformation) *MetricFilter {
- s.MetricTransformations = v
+// SetScope sets the Scope field's value.
+func (s *PutAccountPolicyInput) SetScope(v string) *PutAccountPolicyInput {
+ s.Scope = &v
return s
}
-// Represents a matched event.
-type MetricFilterMatchRecord struct {
+type PutAccountPolicyOutput struct {
_ struct{} `type:"structure"`
- // The raw event data.
- EventMessage *string `locationName:"eventMessage" min:"1" type:"string"`
-
- // The event number.
- EventNumber *int64 `locationName:"eventNumber" type:"long"`
-
- // The values extracted from the event data by the filter.
- ExtractedValues map[string]*string `locationName:"extractedValues" type:"map"`
+ // The account policy that you created.
+ AccountPolicy *AccountPolicy `locationName:"accountPolicy" type:"structure"`
}
// String returns the string representation.
@@ -10401,7 +14029,7 @@ type MetricFilterMatchRecord struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s MetricFilterMatchRecord) String() string {
+func (s PutAccountPolicyOutput) String() string {
return awsutil.Prettify(s)
}
@@ -10410,74 +14038,58 @@ func (s MetricFilterMatchRecord) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s MetricFilterMatchRecord) GoString() string {
+func (s PutAccountPolicyOutput) GoString() string {
return s.String()
}
-// SetEventMessage sets the EventMessage field's value.
-func (s *MetricFilterMatchRecord) SetEventMessage(v string) *MetricFilterMatchRecord {
- s.EventMessage = &v
- return s
-}
-
-// SetEventNumber sets the EventNumber field's value.
-func (s *MetricFilterMatchRecord) SetEventNumber(v int64) *MetricFilterMatchRecord {
- s.EventNumber = &v
- return s
-}
-
-// SetExtractedValues sets the ExtractedValues field's value.
-func (s *MetricFilterMatchRecord) SetExtractedValues(v map[string]*string) *MetricFilterMatchRecord {
- s.ExtractedValues = v
+// SetAccountPolicy sets the AccountPolicy field's value.
+func (s *PutAccountPolicyOutput) SetAccountPolicy(v *AccountPolicy) *PutAccountPolicyOutput {
+ s.AccountPolicy = v
return s
}
-// Indicates how to transform ingested log events to metric data in a CloudWatch
-// metric.
-type MetricTransformation struct {
+type PutDataProtectionPolicyInput struct {
_ struct{} `type:"structure"`
- // (Optional) The value to emit when a filter pattern does not match a log event.
- // This value can be null.
- DefaultValue *float64 `locationName:"defaultValue" type:"double"`
+ // Specify either the log group name or log group ARN.
+ //
+ // LogGroupIdentifier is a required field
+ LogGroupIdentifier *string `locationName:"logGroupIdentifier" min:"1" type:"string" required:"true"`
- // The fields to use as dimensions for the metric. One metric filter can include
- // as many as three dimensions.
+ // Specify the data protection policy, in JSON.
//
- // 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.
+ // This policy must include two JSON blocks:
//
- // 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.
+ // * 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.
//
- // 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).
- Dimensions map[string]*string `locationName:"dimensions" type:"map"`
-
- // The name of the CloudWatch metric.
+ // * 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.
//
- // MetricName is a required field
- MetricName *string `locationName:"metricName" type:"string" required:"true"`
-
- // A custom namespace to contain your metric in CloudWatch. Use namespaces to
- // group together metrics that are similar. For more information, see Namespaces
- // (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Namespace).
+ // For an example data protection policy, see the Examples section on this page.
//
- // MetricNamespace is a required field
- MetricNamespace *string `locationName:"metricNamespace" type:"string" required:"true"`
-
- // The value to publish to the CloudWatch metric when a filter pattern matches
- // a log event.
+ // The contents of the two DataIdentifer arrays must match exactly.
//
- // MetricValue is a required field
- MetricValue *string `locationName:"metricValue" type:"string" required:"true"`
-
- // The unit to assign to the metric. If you omit this, the unit is set as None.
- Unit *string `locationName:"unit" type:"string" enum:"StandardUnit"`
+ // 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.
+ //
+ // PolicyDocument is a required field
+ PolicyDocument *string `locationName:"policyDocument" type:"string" required:"true"`
}
// String returns the string representation.
@@ -10485,7 +14097,7 @@ type MetricTransformation struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s MetricTransformation) String() string {
+func (s PutDataProtectionPolicyInput) String() string {
return awsutil.Prettify(s)
}
@@ -10494,21 +14106,21 @@ func (s MetricTransformation) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s MetricTransformation) GoString() string {
+func (s PutDataProtectionPolicyInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *MetricTransformation) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "MetricTransformation"}
- if s.MetricName == nil {
- invalidParams.Add(request.NewErrParamRequired("MetricName"))
+func (s *PutDataProtectionPolicyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "PutDataProtectionPolicyInput"}
+ if s.LogGroupIdentifier == nil {
+ invalidParams.Add(request.NewErrParamRequired("LogGroupIdentifier"))
}
- if s.MetricNamespace == nil {
- invalidParams.Add(request.NewErrParamRequired("MetricNamespace"))
+ if s.LogGroupIdentifier != nil && len(*s.LogGroupIdentifier) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("LogGroupIdentifier", 1))
}
- if s.MetricValue == nil {
- invalidParams.Add(request.NewErrParamRequired("MetricValue"))
+ if s.PolicyDocument == nil {
+ invalidParams.Add(request.NewErrParamRequired("PolicyDocument"))
}
if invalidParams.Len() > 0 {
@@ -10517,48 +14129,90 @@ func (s *MetricTransformation) Validate() error {
return nil
}
-// SetDefaultValue sets the DefaultValue field's value.
-func (s *MetricTransformation) SetDefaultValue(v float64) *MetricTransformation {
- s.DefaultValue = &v
+// SetLogGroupIdentifier sets the LogGroupIdentifier field's value.
+func (s *PutDataProtectionPolicyInput) SetLogGroupIdentifier(v string) *PutDataProtectionPolicyInput {
+ s.LogGroupIdentifier = &v
+ return s
+}
+
+// SetPolicyDocument sets the PolicyDocument field's value.
+func (s *PutDataProtectionPolicyInput) SetPolicyDocument(v string) *PutDataProtectionPolicyInput {
+ s.PolicyDocument = &v
return s
}
-// SetDimensions sets the Dimensions field's value.
-func (s *MetricTransformation) SetDimensions(v map[string]*string) *MetricTransformation {
- s.Dimensions = v
- return s
+type PutDataProtectionPolicyOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The date and time that this policy was most recently updated.
+ LastUpdatedTime *int64 `locationName:"lastUpdatedTime" type:"long"`
+
+ // The log group name or ARN that you specified in your request.
+ LogGroupIdentifier *string `locationName:"logGroupIdentifier" min:"1" type:"string"`
+
+ // The data protection policy used for this log group.
+ PolicyDocument *string `locationName:"policyDocument" type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s PutDataProtectionPolicyOutput) String() string {
+ return awsutil.Prettify(s)
}
-// SetMetricName sets the MetricName field's value.
-func (s *MetricTransformation) SetMetricName(v string) *MetricTransformation {
- s.MetricName = &v
- return s
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s PutDataProtectionPolicyOutput) GoString() string {
+ return s.String()
}
-// SetMetricNamespace sets the MetricNamespace field's value.
-func (s *MetricTransformation) SetMetricNamespace(v string) *MetricTransformation {
- s.MetricNamespace = &v
+// SetLastUpdatedTime sets the LastUpdatedTime field's value.
+func (s *PutDataProtectionPolicyOutput) SetLastUpdatedTime(v int64) *PutDataProtectionPolicyOutput {
+ s.LastUpdatedTime = &v
return s
}
-// SetMetricValue sets the MetricValue field's value.
-func (s *MetricTransformation) SetMetricValue(v string) *MetricTransformation {
- s.MetricValue = &v
+// SetLogGroupIdentifier sets the LogGroupIdentifier field's value.
+func (s *PutDataProtectionPolicyOutput) SetLogGroupIdentifier(v string) *PutDataProtectionPolicyOutput {
+ s.LogGroupIdentifier = &v
return s
}
-// SetUnit sets the Unit field's value.
-func (s *MetricTransformation) SetUnit(v string) *MetricTransformation {
- s.Unit = &v
+// SetPolicyDocument sets the PolicyDocument field's value.
+func (s *PutDataProtectionPolicyOutput) SetPolicyDocument(v string) *PutDataProtectionPolicyOutput {
+ s.PolicyDocument = &v
return s
}
-// Multiple concurrent requests to update the same resource were in conflict.
-type OperationAbortedException struct {
- _ struct{} `type:"structure"`
- RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+type PutDeliveryDestinationInput struct {
+ _ struct{} `type:"structure"`
- Message_ *string `locationName:"message" type:"string"`
+ // A structure that contains the ARN of the Amazon Web Services resource that
+ // will receive the logs.
+ //
+ // DeliveryDestinationConfiguration is a required field
+ DeliveryDestinationConfiguration *DeliveryDestinationConfiguration `locationName:"deliveryDestinationConfiguration" type:"structure" required:"true"`
+
+ // A name for this delivery destination. This name must be unique for all delivery
+ // destinations in your account.
+ //
+ // Name is a required field
+ Name *string `locationName:"name" min:"1" type:"string" required:"true"`
+
+ // The format for the logs that this delivery destination will receive.
+ OutputFormat *string `locationName:"outputFormat" type:"string" enum:"OutputFormat"`
+
+ // An optional list of key-value pairs to associate with the resource.
+ //
+ // For more information about tagging, see Tagging Amazon Web Services resources
+ // (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html)
+ Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
}
// String returns the string representation.
@@ -10566,7 +14220,7 @@ type OperationAbortedException struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s OperationAbortedException) String() string {
+func (s PutDeliveryDestinationInput) String() string {
return awsutil.Prettify(s)
}
@@ -10575,62 +14229,67 @@ func (s OperationAbortedException) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s OperationAbortedException) GoString() string {
+func (s PutDeliveryDestinationInput) GoString() string {
return s.String()
}
-func newErrorOperationAbortedException(v protocol.ResponseMetadata) error {
- return &OperationAbortedException{
- RespMetadata: v,
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *PutDeliveryDestinationInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "PutDeliveryDestinationInput"}
+ if s.DeliveryDestinationConfiguration == nil {
+ invalidParams.Add(request.NewErrParamRequired("DeliveryDestinationConfiguration"))
+ }
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
+ }
+ if s.Name != nil && len(*s.Name) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Name", 1))
+ }
+ if s.Tags != nil && len(s.Tags) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
+ }
+ if s.DeliveryDestinationConfiguration != nil {
+ if err := s.DeliveryDestinationConfiguration.Validate(); err != nil {
+ invalidParams.AddNested("DeliveryDestinationConfiguration", err.(request.ErrInvalidParams))
+ }
}
-}
-
-// Code returns the exception type name.
-func (s *OperationAbortedException) Code() string {
- return "OperationAbortedException"
-}
-// Message returns the exception's message.
-func (s *OperationAbortedException) Message() string {
- if s.Message_ != nil {
- return *s.Message_
+ if invalidParams.Len() > 0 {
+ return invalidParams
}
- return ""
+ return nil
}
-// OrigErr always returns nil, satisfies awserr.Error interface.
-func (s *OperationAbortedException) OrigErr() error {
- return nil
+// SetDeliveryDestinationConfiguration sets the DeliveryDestinationConfiguration field's value.
+func (s *PutDeliveryDestinationInput) SetDeliveryDestinationConfiguration(v *DeliveryDestinationConfiguration) *PutDeliveryDestinationInput {
+ s.DeliveryDestinationConfiguration = v
+ return s
}
-func (s *OperationAbortedException) Error() string {
- return fmt.Sprintf("%s: %s", s.Code(), s.Message())
+// SetName sets the Name field's value.
+func (s *PutDeliveryDestinationInput) SetName(v string) *PutDeliveryDestinationInput {
+ s.Name = &v
+ return s
}
-// Status code returns the HTTP status code for the request's response error.
-func (s *OperationAbortedException) StatusCode() int {
- return s.RespMetadata.StatusCode
+// SetOutputFormat sets the OutputFormat field's value.
+func (s *PutDeliveryDestinationInput) SetOutputFormat(v string) *PutDeliveryDestinationInput {
+ s.OutputFormat = &v
+ return s
}
-// RequestID returns the service's response RequestID for request.
-func (s *OperationAbortedException) RequestID() string {
- return s.RespMetadata.RequestID
+// SetTags sets the Tags field's value.
+func (s *PutDeliveryDestinationInput) SetTags(v map[string]*string) *PutDeliveryDestinationInput {
+ s.Tags = v
+ return s
}
-// Represents a log event.
-type OutputLogEvent struct {
+type PutDeliveryDestinationOutput struct {
_ struct{} `type:"structure"`
- // The time the event was ingested, expressed as the number of milliseconds
- // after Jan 1, 1970 00:00:00 UTC.
- IngestionTime *int64 `locationName:"ingestionTime" type:"long"`
-
- // The data contained in the log event.
- Message *string `locationName:"message" min:"1" type:"string"`
-
- // The time the event occurred, expressed as the number of milliseconds after
- // Jan 1, 1970 00:00:00 UTC.
- Timestamp *int64 `locationName:"timestamp" type:"long"`
+ // A structure containing information about the delivery destination that you
+ // just created or updated.
+ DeliveryDestination *DeliveryDestination `locationName:"deliveryDestination" type:"structure"`
}
// String returns the string representation.
@@ -10638,7 +14297,7 @@ type OutputLogEvent struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s OutputLogEvent) String() string {
+func (s PutDeliveryDestinationOutput) String() string {
return awsutil.Prettify(s)
}
@@ -10647,81 +14306,28 @@ func (s OutputLogEvent) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s OutputLogEvent) GoString() string {
+func (s PutDeliveryDestinationOutput) GoString() string {
return s.String()
}
-// SetIngestionTime sets the IngestionTime field's value.
-func (s *OutputLogEvent) SetIngestionTime(v int64) *OutputLogEvent {
- s.IngestionTime = &v
- return s
-}
-
-// SetMessage sets the Message field's value.
-func (s *OutputLogEvent) SetMessage(v string) *OutputLogEvent {
- s.Message = &v
- return s
-}
-
-// SetTimestamp sets the Timestamp field's value.
-func (s *OutputLogEvent) SetTimestamp(v int64) *OutputLogEvent {
- s.Timestamp = &v
+// SetDeliveryDestination sets the DeliveryDestination field's value.
+func (s *PutDeliveryDestinationOutput) SetDeliveryDestination(v *DeliveryDestination) *PutDeliveryDestinationOutput {
+ s.DeliveryDestination = v
return s
}
-type PutAccountPolicyInput struct {
+type PutDeliveryDestinationPolicyInput struct {
_ struct{} `type:"structure"`
- // Specify the data protection policy, in JSON.
- //
- // This 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.
- //
- // PolicyDocument is a required field
- PolicyDocument *string `locationName:"policyDocument" type:"string" required:"true"`
-
- // A name for the policy. This must be unique within the account.
+ // The name of the delivery destination to assign this policy to.
//
- // PolicyName is a required field
- PolicyName *string `locationName:"policyName" type:"string" required:"true"`
+ // DeliveryDestinationName is a required field
+ DeliveryDestinationName *string `locationName:"deliveryDestinationName" min:"1" type:"string" required:"true"`
- // Currently the only valid value for this parameter is DATA_PROTECTION_POLICY.
+ // The contents of the policy.
//
- // PolicyType is a required field
- PolicyType *string `locationName:"policyType" type:"string" required:"true" enum:"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 *string `locationName:"scope" type:"string" enum:"Scope"`
+ // DeliveryDestinationPolicy is a required field
+ DeliveryDestinationPolicy *string `locationName:"deliveryDestinationPolicy" min:"1" type:"string" required:"true"`
}
// String returns the string representation.
@@ -10729,7 +14335,7 @@ type PutAccountPolicyInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutAccountPolicyInput) String() string {
+func (s PutDeliveryDestinationPolicyInput) String() string {
return awsutil.Prettify(s)
}
@@ -10738,21 +14344,24 @@ func (s PutAccountPolicyInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutAccountPolicyInput) GoString() string {
+func (s PutDeliveryDestinationPolicyInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *PutAccountPolicyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutAccountPolicyInput"}
- if s.PolicyDocument == nil {
- invalidParams.Add(request.NewErrParamRequired("PolicyDocument"))
+func (s *PutDeliveryDestinationPolicyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "PutDeliveryDestinationPolicyInput"}
+ if s.DeliveryDestinationName == nil {
+ invalidParams.Add(request.NewErrParamRequired("DeliveryDestinationName"))
}
- if s.PolicyName == nil {
- invalidParams.Add(request.NewErrParamRequired("PolicyName"))
+ if s.DeliveryDestinationName != nil && len(*s.DeliveryDestinationName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("DeliveryDestinationName", 1))
}
- if s.PolicyType == nil {
- invalidParams.Add(request.NewErrParamRequired("PolicyType"))
+ if s.DeliveryDestinationPolicy == nil {
+ invalidParams.Add(request.NewErrParamRequired("DeliveryDestinationPolicy"))
+ }
+ if s.DeliveryDestinationPolicy != nil && len(*s.DeliveryDestinationPolicy) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("DeliveryDestinationPolicy", 1))
}
if invalidParams.Len() > 0 {
@@ -10761,35 +14370,23 @@ func (s *PutAccountPolicyInput) Validate() error {
return nil
}
-// SetPolicyDocument sets the PolicyDocument field's value.
-func (s *PutAccountPolicyInput) SetPolicyDocument(v string) *PutAccountPolicyInput {
- s.PolicyDocument = &v
- return s
-}
-
-// SetPolicyName sets the PolicyName field's value.
-func (s *PutAccountPolicyInput) SetPolicyName(v string) *PutAccountPolicyInput {
- s.PolicyName = &v
- return s
-}
-
-// SetPolicyType sets the PolicyType field's value.
-func (s *PutAccountPolicyInput) SetPolicyType(v string) *PutAccountPolicyInput {
- s.PolicyType = &v
+// SetDeliveryDestinationName sets the DeliveryDestinationName field's value.
+func (s *PutDeliveryDestinationPolicyInput) SetDeliveryDestinationName(v string) *PutDeliveryDestinationPolicyInput {
+ s.DeliveryDestinationName = &v
return s
}
-// SetScope sets the Scope field's value.
-func (s *PutAccountPolicyInput) SetScope(v string) *PutAccountPolicyInput {
- s.Scope = &v
+// SetDeliveryDestinationPolicy sets the DeliveryDestinationPolicy field's value.
+func (s *PutDeliveryDestinationPolicyInput) SetDeliveryDestinationPolicy(v string) *PutDeliveryDestinationPolicyInput {
+ s.DeliveryDestinationPolicy = &v
return s
}
-type PutAccountPolicyOutput struct {
+type PutDeliveryDestinationPolicyOutput struct {
_ struct{} `type:"structure"`
- // The account policy that you created.
- AccountPolicy *AccountPolicy `locationName:"accountPolicy" type:"structure"`
+ // The contents of the policy that you just created.
+ Policy *Policy `locationName:"policy" type:"structure"`
}
// String returns the string representation.
@@ -10797,7 +14394,7 @@ type PutAccountPolicyOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutAccountPolicyOutput) String() string {
+func (s PutDeliveryDestinationPolicyOutput) String() string {
return awsutil.Prettify(s)
}
@@ -10806,58 +14403,42 @@ func (s PutAccountPolicyOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutAccountPolicyOutput) GoString() string {
+func (s PutDeliveryDestinationPolicyOutput) GoString() string {
return s.String()
}
-// SetAccountPolicy sets the AccountPolicy field's value.
-func (s *PutAccountPolicyOutput) SetAccountPolicy(v *AccountPolicy) *PutAccountPolicyOutput {
- s.AccountPolicy = v
+// SetPolicy sets the Policy field's value.
+func (s *PutDeliveryDestinationPolicyOutput) SetPolicy(v *Policy) *PutDeliveryDestinationPolicyOutput {
+ s.Policy = v
return s
}
-
-type PutDataProtectionPolicyInput struct {
- _ struct{} `type:"structure"`
-
- // Specify either the log group name or log group ARN.
- //
- // LogGroupIdentifier is a required field
- LogGroupIdentifier *string `locationName:"logGroupIdentifier" min:"1" type:"string" required:"true"`
-
- // Specify the data protection policy, in JSON.
- //
- // This 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.
+
+type PutDeliverySourceInput struct {
+ _ struct{} `type:"structure"`
+
+ // Defines the type of log that the source is sending. For valid values for
+ // this parameter, see the documentation for the source service.
//
- // The contents of the two DataIdentifer arrays must match exactly.
+ // LogType is a required field
+ LogType *string `locationName:"logType" min:"1" type:"string" required:"true"`
+
+ // A name for this delivery source. This name must be unique for all delivery
+ // sources in your account.
//
- // 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.
+ // Name is a required field
+ Name *string `locationName:"name" min:"1" type:"string" required:"true"`
+
+ // The ARN of the Amazon Web Services resource that is generating and sending
+ // logs. For example, arn:aws:workmail:us-east-1:123456789012:organization/m-1234EXAMPLEabcd1234abcd1234abcd1234
//
- // The JSON specified in policyDocument can be up to 30,720 characters.
+ // ResourceArn is a required field
+ ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"`
+
+ // An optional list of key-value pairs to associate with the resource.
//
- // PolicyDocument is a required field
- PolicyDocument *string `locationName:"policyDocument" type:"string" required:"true"`
+ // For more information about tagging, see Tagging Amazon Web Services resources
+ // (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html)
+ Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
}
// String returns the string representation.
@@ -10865,7 +14446,7 @@ type PutDataProtectionPolicyInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutDataProtectionPolicyInput) String() string {
+func (s PutDeliverySourceInput) String() string {
return awsutil.Prettify(s)
}
@@ -10874,21 +14455,30 @@ func (s PutDataProtectionPolicyInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutDataProtectionPolicyInput) GoString() string {
+func (s PutDeliverySourceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *PutDataProtectionPolicyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutDataProtectionPolicyInput"}
- if s.LogGroupIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("LogGroupIdentifier"))
+func (s *PutDeliverySourceInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "PutDeliverySourceInput"}
+ if s.LogType == nil {
+ invalidParams.Add(request.NewErrParamRequired("LogType"))
}
- if s.LogGroupIdentifier != nil && len(*s.LogGroupIdentifier) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("LogGroupIdentifier", 1))
+ if s.LogType != nil && len(*s.LogType) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("LogType", 1))
}
- if s.PolicyDocument == nil {
- invalidParams.Add(request.NewErrParamRequired("PolicyDocument"))
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
+ }
+ if s.Name != nil && len(*s.Name) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Name", 1))
+ }
+ if s.ResourceArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
+ }
+ if s.Tags != nil && len(s.Tags) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
}
if invalidParams.Len() > 0 {
@@ -10897,29 +14487,36 @@ func (s *PutDataProtectionPolicyInput) Validate() error {
return nil
}
-// SetLogGroupIdentifier sets the LogGroupIdentifier field's value.
-func (s *PutDataProtectionPolicyInput) SetLogGroupIdentifier(v string) *PutDataProtectionPolicyInput {
- s.LogGroupIdentifier = &v
+// SetLogType sets the LogType field's value.
+func (s *PutDeliverySourceInput) SetLogType(v string) *PutDeliverySourceInput {
+ s.LogType = &v
return s
}
-// SetPolicyDocument sets the PolicyDocument field's value.
-func (s *PutDataProtectionPolicyInput) SetPolicyDocument(v string) *PutDataProtectionPolicyInput {
- s.PolicyDocument = &v
+// SetName sets the Name field's value.
+func (s *PutDeliverySourceInput) SetName(v string) *PutDeliverySourceInput {
+ s.Name = &v
return s
}
-type PutDataProtectionPolicyOutput struct {
- _ struct{} `type:"structure"`
+// SetResourceArn sets the ResourceArn field's value.
+func (s *PutDeliverySourceInput) SetResourceArn(v string) *PutDeliverySourceInput {
+ s.ResourceArn = &v
+ return s
+}
- // The date and time that this policy was most recently updated.
- LastUpdatedTime *int64 `locationName:"lastUpdatedTime" type:"long"`
+// SetTags sets the Tags field's value.
+func (s *PutDeliverySourceInput) SetTags(v map[string]*string) *PutDeliverySourceInput {
+ s.Tags = v
+ return s
+}
- // The log group name or ARN that you specified in your request.
- LogGroupIdentifier *string `locationName:"logGroupIdentifier" min:"1" type:"string"`
+type PutDeliverySourceOutput struct {
+ _ struct{} `type:"structure"`
- // The data protection policy used for this log group.
- PolicyDocument *string `locationName:"policyDocument" type:"string"`
+ // A structure containing information about the delivery source that was just
+ // created or updated.
+ DeliverySource *DeliverySource `locationName:"deliverySource" type:"structure"`
}
// String returns the string representation.
@@ -10927,7 +14524,7 @@ type PutDataProtectionPolicyOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutDataProtectionPolicyOutput) String() string {
+func (s PutDeliverySourceOutput) String() string {
return awsutil.Prettify(s)
}
@@ -10936,25 +14533,13 @@ func (s PutDataProtectionPolicyOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s PutDataProtectionPolicyOutput) GoString() string {
+func (s PutDeliverySourceOutput) GoString() string {
return s.String()
}
-// SetLastUpdatedTime sets the LastUpdatedTime field's value.
-func (s *PutDataProtectionPolicyOutput) SetLastUpdatedTime(v int64) *PutDataProtectionPolicyOutput {
- s.LastUpdatedTime = &v
- return s
-}
-
-// SetLogGroupIdentifier sets the LogGroupIdentifier field's value.
-func (s *PutDataProtectionPolicyOutput) SetLogGroupIdentifier(v string) *PutDataProtectionPolicyOutput {
- s.LogGroupIdentifier = &v
- return s
-}
-
-// SetPolicyDocument sets the PolicyDocument field's value.
-func (s *PutDataProtectionPolicyOutput) SetPolicyDocument(v string) *PutDataProtectionPolicyOutput {
- s.PolicyDocument = &v
+// SetDeliverySource sets the DeliverySource field's value.
+func (s *PutDeliverySourceOutput) SetDeliverySource(v *DeliverySource) *PutDeliverySourceOutput {
+ s.DeliverySource = v
return s
}
@@ -12575,6 +16160,70 @@ func (s *SearchedLogStream) SetSearchedCompletely(v bool) *SearchedLogStream {
return s
}
+// This request exceeds a service quota.
+type ServiceQuotaExceededException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"message" type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ServiceQuotaExceededException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ServiceQuotaExceededException) GoString() string {
+ return s.String()
+}
+
+func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error {
+ return &ServiceQuotaExceededException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *ServiceQuotaExceededException) Code() string {
+ return "ServiceQuotaExceededException"
+}
+
+// Message returns the exception's message.
+func (s *ServiceQuotaExceededException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *ServiceQuotaExceededException) OrigErr() error {
+ return nil
+}
+
+func (s *ServiceQuotaExceededException) Error() string {
+ return fmt.Sprintf("%s: %s", s.Code(), s.Message())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *ServiceQuotaExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *ServiceQuotaExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
// The service cannot complete the request.
type ServiceUnavailableException struct {
_ struct{} `type:"structure"`
@@ -13257,6 +16906,70 @@ func (s *TestMetricFilterOutput) SetMatches(v []*MetricFilterMatchRecord) *TestM
return s
}
+// The request was throttled because of quota limits.
+type ThrottlingException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"message" type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ThrottlingException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ThrottlingException) GoString() string {
+ return s.String()
+}
+
+func newErrorThrottlingException(v protocol.ResponseMetadata) error {
+ return &ThrottlingException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *ThrottlingException) Code() string {
+ return "ThrottlingException"
+}
+
+// Message returns the exception's message.
+func (s *ThrottlingException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *ThrottlingException) OrigErr() error {
+ return nil
+}
+
+func (s *ThrottlingException) Error() string {
+ return fmt.Sprintf("%s: %s", s.Code(), s.Message())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *ThrottlingException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *ThrottlingException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
// A resource can have no more than 50 tags.
type TooManyTagsException struct {
_ struct{} `type:"structure"`
@@ -13570,6 +17283,70 @@ func (s UntagResourceOutput) GoString() string {
return s.String()
}
+// One of the parameters for the request is not valid.
+type ValidationException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"message" type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ValidationException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ValidationException) GoString() string {
+ return s.String()
+}
+
+func newErrorValidationException(v protocol.ResponseMetadata) error {
+ return &ValidationException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *ValidationException) Code() string {
+ return "ValidationException"
+}
+
+// Message returns the exception's message.
+func (s *ValidationException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *ValidationException) OrigErr() error {
+ return nil
+}
+
+func (s *ValidationException) Error() string {
+ return fmt.Sprintf("%s: %s", s.Code(), s.Message())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *ValidationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *ValidationException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
const (
// DataProtectionStatusActivated is a DataProtectionStatus enum value
DataProtectionStatusActivated = "ACTIVATED"
@@ -13594,6 +17371,26 @@ func DataProtectionStatus_Values() []string {
}
}
+const (
+ // DeliveryDestinationTypeS3 is a DeliveryDestinationType enum value
+ DeliveryDestinationTypeS3 = "S3"
+
+ // DeliveryDestinationTypeCwl is a DeliveryDestinationType enum value
+ DeliveryDestinationTypeCwl = "CWL"
+
+ // DeliveryDestinationTypeFh is a DeliveryDestinationType enum value
+ DeliveryDestinationTypeFh = "FH"
+)
+
+// DeliveryDestinationType_Values returns all elements of the DeliveryDestinationType enum
+func DeliveryDestinationType_Values() []string {
+ return []string{
+ DeliveryDestinationTypeS3,
+ DeliveryDestinationTypeCwl,
+ DeliveryDestinationTypeFh,
+ }
+}
+
// The method used to distribute log data to the destination, which can be either
// random or grouped by log stream.
const (
@@ -13672,6 +17469,34 @@ func OrderBy_Values() []string {
}
}
+const (
+ // OutputFormatJson is a OutputFormat enum value
+ OutputFormatJson = "json"
+
+ // OutputFormatPlain is a OutputFormat enum value
+ OutputFormatPlain = "plain"
+
+ // OutputFormatW3c is a OutputFormat enum value
+ OutputFormatW3c = "w3c"
+
+ // OutputFormatRaw is a OutputFormat enum value
+ OutputFormatRaw = "raw"
+
+ // OutputFormatParquet is a OutputFormat enum value
+ OutputFormatParquet = "parquet"
+)
+
+// OutputFormat_Values returns all elements of the OutputFormat enum
+func OutputFormat_Values() []string {
+ return []string{
+ OutputFormatJson,
+ OutputFormatPlain,
+ OutputFormatW3c,
+ OutputFormatRaw,
+ OutputFormatParquet,
+ }
+}
+
const (
// PolicyTypeDataProtectionPolicy is a PolicyType enum value
PolicyTypeDataProtectionPolicy = "DATA_PROTECTION_POLICY"
diff --git a/service/cloudwatchlogs/cloudwatchlogsiface/interface.go b/service/cloudwatchlogs/cloudwatchlogsiface/interface.go
index 79e8f177adb..7cf534b497a 100644
--- a/service/cloudwatchlogs/cloudwatchlogsiface/interface.go
+++ b/service/cloudwatchlogs/cloudwatchlogsiface/interface.go
@@ -68,6 +68,10 @@ type CloudWatchLogsAPI interface {
CancelExportTaskWithContext(aws.Context, *cloudwatchlogs.CancelExportTaskInput, ...request.Option) (*cloudwatchlogs.CancelExportTaskOutput, error)
CancelExportTaskRequest(*cloudwatchlogs.CancelExportTaskInput) (*request.Request, *cloudwatchlogs.CancelExportTaskOutput)
+ CreateDelivery(*cloudwatchlogs.CreateDeliveryInput) (*cloudwatchlogs.CreateDeliveryOutput, error)
+ CreateDeliveryWithContext(aws.Context, *cloudwatchlogs.CreateDeliveryInput, ...request.Option) (*cloudwatchlogs.CreateDeliveryOutput, error)
+ CreateDeliveryRequest(*cloudwatchlogs.CreateDeliveryInput) (*request.Request, *cloudwatchlogs.CreateDeliveryOutput)
+
CreateExportTask(*cloudwatchlogs.CreateExportTaskInput) (*cloudwatchlogs.CreateExportTaskOutput, error)
CreateExportTaskWithContext(aws.Context, *cloudwatchlogs.CreateExportTaskInput, ...request.Option) (*cloudwatchlogs.CreateExportTaskOutput, error)
CreateExportTaskRequest(*cloudwatchlogs.CreateExportTaskInput) (*request.Request, *cloudwatchlogs.CreateExportTaskOutput)
@@ -88,6 +92,22 @@ type CloudWatchLogsAPI interface {
DeleteDataProtectionPolicyWithContext(aws.Context, *cloudwatchlogs.DeleteDataProtectionPolicyInput, ...request.Option) (*cloudwatchlogs.DeleteDataProtectionPolicyOutput, error)
DeleteDataProtectionPolicyRequest(*cloudwatchlogs.DeleteDataProtectionPolicyInput) (*request.Request, *cloudwatchlogs.DeleteDataProtectionPolicyOutput)
+ DeleteDelivery(*cloudwatchlogs.DeleteDeliveryInput) (*cloudwatchlogs.DeleteDeliveryOutput, error)
+ DeleteDeliveryWithContext(aws.Context, *cloudwatchlogs.DeleteDeliveryInput, ...request.Option) (*cloudwatchlogs.DeleteDeliveryOutput, error)
+ DeleteDeliveryRequest(*cloudwatchlogs.DeleteDeliveryInput) (*request.Request, *cloudwatchlogs.DeleteDeliveryOutput)
+
+ DeleteDeliveryDestination(*cloudwatchlogs.DeleteDeliveryDestinationInput) (*cloudwatchlogs.DeleteDeliveryDestinationOutput, error)
+ DeleteDeliveryDestinationWithContext(aws.Context, *cloudwatchlogs.DeleteDeliveryDestinationInput, ...request.Option) (*cloudwatchlogs.DeleteDeliveryDestinationOutput, error)
+ DeleteDeliveryDestinationRequest(*cloudwatchlogs.DeleteDeliveryDestinationInput) (*request.Request, *cloudwatchlogs.DeleteDeliveryDestinationOutput)
+
+ DeleteDeliveryDestinationPolicy(*cloudwatchlogs.DeleteDeliveryDestinationPolicyInput) (*cloudwatchlogs.DeleteDeliveryDestinationPolicyOutput, error)
+ DeleteDeliveryDestinationPolicyWithContext(aws.Context, *cloudwatchlogs.DeleteDeliveryDestinationPolicyInput, ...request.Option) (*cloudwatchlogs.DeleteDeliveryDestinationPolicyOutput, error)
+ DeleteDeliveryDestinationPolicyRequest(*cloudwatchlogs.DeleteDeliveryDestinationPolicyInput) (*request.Request, *cloudwatchlogs.DeleteDeliveryDestinationPolicyOutput)
+
+ DeleteDeliverySource(*cloudwatchlogs.DeleteDeliverySourceInput) (*cloudwatchlogs.DeleteDeliverySourceOutput, error)
+ DeleteDeliverySourceWithContext(aws.Context, *cloudwatchlogs.DeleteDeliverySourceInput, ...request.Option) (*cloudwatchlogs.DeleteDeliverySourceOutput, error)
+ DeleteDeliverySourceRequest(*cloudwatchlogs.DeleteDeliverySourceInput) (*request.Request, *cloudwatchlogs.DeleteDeliverySourceOutput)
+
DeleteDestination(*cloudwatchlogs.DeleteDestinationInput) (*cloudwatchlogs.DeleteDestinationOutput, error)
DeleteDestinationWithContext(aws.Context, *cloudwatchlogs.DeleteDestinationInput, ...request.Option) (*cloudwatchlogs.DeleteDestinationOutput, error)
DeleteDestinationRequest(*cloudwatchlogs.DeleteDestinationInput) (*request.Request, *cloudwatchlogs.DeleteDestinationOutput)
@@ -124,6 +144,27 @@ type CloudWatchLogsAPI interface {
DescribeAccountPoliciesWithContext(aws.Context, *cloudwatchlogs.DescribeAccountPoliciesInput, ...request.Option) (*cloudwatchlogs.DescribeAccountPoliciesOutput, error)
DescribeAccountPoliciesRequest(*cloudwatchlogs.DescribeAccountPoliciesInput) (*request.Request, *cloudwatchlogs.DescribeAccountPoliciesOutput)
+ DescribeDeliveries(*cloudwatchlogs.DescribeDeliveriesInput) (*cloudwatchlogs.DescribeDeliveriesOutput, error)
+ DescribeDeliveriesWithContext(aws.Context, *cloudwatchlogs.DescribeDeliveriesInput, ...request.Option) (*cloudwatchlogs.DescribeDeliveriesOutput, error)
+ DescribeDeliveriesRequest(*cloudwatchlogs.DescribeDeliveriesInput) (*request.Request, *cloudwatchlogs.DescribeDeliveriesOutput)
+
+ DescribeDeliveriesPages(*cloudwatchlogs.DescribeDeliveriesInput, func(*cloudwatchlogs.DescribeDeliveriesOutput, bool) bool) error
+ DescribeDeliveriesPagesWithContext(aws.Context, *cloudwatchlogs.DescribeDeliveriesInput, func(*cloudwatchlogs.DescribeDeliveriesOutput, bool) bool, ...request.Option) error
+
+ DescribeDeliveryDestinations(*cloudwatchlogs.DescribeDeliveryDestinationsInput) (*cloudwatchlogs.DescribeDeliveryDestinationsOutput, error)
+ DescribeDeliveryDestinationsWithContext(aws.Context, *cloudwatchlogs.DescribeDeliveryDestinationsInput, ...request.Option) (*cloudwatchlogs.DescribeDeliveryDestinationsOutput, error)
+ DescribeDeliveryDestinationsRequest(*cloudwatchlogs.DescribeDeliveryDestinationsInput) (*request.Request, *cloudwatchlogs.DescribeDeliveryDestinationsOutput)
+
+ DescribeDeliveryDestinationsPages(*cloudwatchlogs.DescribeDeliveryDestinationsInput, func(*cloudwatchlogs.DescribeDeliveryDestinationsOutput, bool) bool) error
+ DescribeDeliveryDestinationsPagesWithContext(aws.Context, *cloudwatchlogs.DescribeDeliveryDestinationsInput, func(*cloudwatchlogs.DescribeDeliveryDestinationsOutput, bool) bool, ...request.Option) error
+
+ DescribeDeliverySources(*cloudwatchlogs.DescribeDeliverySourcesInput) (*cloudwatchlogs.DescribeDeliverySourcesOutput, error)
+ DescribeDeliverySourcesWithContext(aws.Context, *cloudwatchlogs.DescribeDeliverySourcesInput, ...request.Option) (*cloudwatchlogs.DescribeDeliverySourcesOutput, error)
+ DescribeDeliverySourcesRequest(*cloudwatchlogs.DescribeDeliverySourcesInput) (*request.Request, *cloudwatchlogs.DescribeDeliverySourcesOutput)
+
+ DescribeDeliverySourcesPages(*cloudwatchlogs.DescribeDeliverySourcesInput, func(*cloudwatchlogs.DescribeDeliverySourcesOutput, bool) bool) error
+ DescribeDeliverySourcesPagesWithContext(aws.Context, *cloudwatchlogs.DescribeDeliverySourcesInput, func(*cloudwatchlogs.DescribeDeliverySourcesOutput, bool) bool, ...request.Option) error
+
DescribeDestinations(*cloudwatchlogs.DescribeDestinationsInput) (*cloudwatchlogs.DescribeDestinationsOutput, error)
DescribeDestinationsWithContext(aws.Context, *cloudwatchlogs.DescribeDestinationsInput, ...request.Option) (*cloudwatchlogs.DescribeDestinationsOutput, error)
DescribeDestinationsRequest(*cloudwatchlogs.DescribeDestinationsInput) (*request.Request, *cloudwatchlogs.DescribeDestinationsOutput)
@@ -190,6 +231,22 @@ type CloudWatchLogsAPI interface {
GetDataProtectionPolicyWithContext(aws.Context, *cloudwatchlogs.GetDataProtectionPolicyInput, ...request.Option) (*cloudwatchlogs.GetDataProtectionPolicyOutput, error)
GetDataProtectionPolicyRequest(*cloudwatchlogs.GetDataProtectionPolicyInput) (*request.Request, *cloudwatchlogs.GetDataProtectionPolicyOutput)
+ GetDelivery(*cloudwatchlogs.GetDeliveryInput) (*cloudwatchlogs.GetDeliveryOutput, error)
+ GetDeliveryWithContext(aws.Context, *cloudwatchlogs.GetDeliveryInput, ...request.Option) (*cloudwatchlogs.GetDeliveryOutput, error)
+ GetDeliveryRequest(*cloudwatchlogs.GetDeliveryInput) (*request.Request, *cloudwatchlogs.GetDeliveryOutput)
+
+ GetDeliveryDestination(*cloudwatchlogs.GetDeliveryDestinationInput) (*cloudwatchlogs.GetDeliveryDestinationOutput, error)
+ GetDeliveryDestinationWithContext(aws.Context, *cloudwatchlogs.GetDeliveryDestinationInput, ...request.Option) (*cloudwatchlogs.GetDeliveryDestinationOutput, error)
+ GetDeliveryDestinationRequest(*cloudwatchlogs.GetDeliveryDestinationInput) (*request.Request, *cloudwatchlogs.GetDeliveryDestinationOutput)
+
+ GetDeliveryDestinationPolicy(*cloudwatchlogs.GetDeliveryDestinationPolicyInput) (*cloudwatchlogs.GetDeliveryDestinationPolicyOutput, error)
+ GetDeliveryDestinationPolicyWithContext(aws.Context, *cloudwatchlogs.GetDeliveryDestinationPolicyInput, ...request.Option) (*cloudwatchlogs.GetDeliveryDestinationPolicyOutput, error)
+ GetDeliveryDestinationPolicyRequest(*cloudwatchlogs.GetDeliveryDestinationPolicyInput) (*request.Request, *cloudwatchlogs.GetDeliveryDestinationPolicyOutput)
+
+ GetDeliverySource(*cloudwatchlogs.GetDeliverySourceInput) (*cloudwatchlogs.GetDeliverySourceOutput, error)
+ GetDeliverySourceWithContext(aws.Context, *cloudwatchlogs.GetDeliverySourceInput, ...request.Option) (*cloudwatchlogs.GetDeliverySourceOutput, error)
+ GetDeliverySourceRequest(*cloudwatchlogs.GetDeliverySourceInput) (*request.Request, *cloudwatchlogs.GetDeliverySourceOutput)
+
GetLogEvents(*cloudwatchlogs.GetLogEventsInput) (*cloudwatchlogs.GetLogEventsOutput, error)
GetLogEventsWithContext(aws.Context, *cloudwatchlogs.GetLogEventsInput, ...request.Option) (*cloudwatchlogs.GetLogEventsOutput, error)
GetLogEventsRequest(*cloudwatchlogs.GetLogEventsInput) (*request.Request, *cloudwatchlogs.GetLogEventsOutput)
@@ -225,6 +282,18 @@ type CloudWatchLogsAPI interface {
PutDataProtectionPolicyWithContext(aws.Context, *cloudwatchlogs.PutDataProtectionPolicyInput, ...request.Option) (*cloudwatchlogs.PutDataProtectionPolicyOutput, error)
PutDataProtectionPolicyRequest(*cloudwatchlogs.PutDataProtectionPolicyInput) (*request.Request, *cloudwatchlogs.PutDataProtectionPolicyOutput)
+ PutDeliveryDestination(*cloudwatchlogs.PutDeliveryDestinationInput) (*cloudwatchlogs.PutDeliveryDestinationOutput, error)
+ PutDeliveryDestinationWithContext(aws.Context, *cloudwatchlogs.PutDeliveryDestinationInput, ...request.Option) (*cloudwatchlogs.PutDeliveryDestinationOutput, error)
+ PutDeliveryDestinationRequest(*cloudwatchlogs.PutDeliveryDestinationInput) (*request.Request, *cloudwatchlogs.PutDeliveryDestinationOutput)
+
+ PutDeliveryDestinationPolicy(*cloudwatchlogs.PutDeliveryDestinationPolicyInput) (*cloudwatchlogs.PutDeliveryDestinationPolicyOutput, error)
+ PutDeliveryDestinationPolicyWithContext(aws.Context, *cloudwatchlogs.PutDeliveryDestinationPolicyInput, ...request.Option) (*cloudwatchlogs.PutDeliveryDestinationPolicyOutput, error)
+ PutDeliveryDestinationPolicyRequest(*cloudwatchlogs.PutDeliveryDestinationPolicyInput) (*request.Request, *cloudwatchlogs.PutDeliveryDestinationPolicyOutput)
+
+ PutDeliverySource(*cloudwatchlogs.PutDeliverySourceInput) (*cloudwatchlogs.PutDeliverySourceOutput, error)
+ PutDeliverySourceWithContext(aws.Context, *cloudwatchlogs.PutDeliverySourceInput, ...request.Option) (*cloudwatchlogs.PutDeliverySourceOutput, error)
+ PutDeliverySourceRequest(*cloudwatchlogs.PutDeliverySourceInput) (*request.Request, *cloudwatchlogs.PutDeliverySourceOutput)
+
PutDestination(*cloudwatchlogs.PutDestinationInput) (*cloudwatchlogs.PutDestinationOutput, error)
PutDestinationWithContext(aws.Context, *cloudwatchlogs.PutDestinationInput, ...request.Option) (*cloudwatchlogs.PutDestinationOutput, error)
PutDestinationRequest(*cloudwatchlogs.PutDestinationInput) (*request.Request, *cloudwatchlogs.PutDestinationOutput)
diff --git a/service/cloudwatchlogs/errors.go b/service/cloudwatchlogs/errors.go
index 0f1f1c866e5..b9244c6a6c3 100644
--- a/service/cloudwatchlogs/errors.go
+++ b/service/cloudwatchlogs/errors.go
@@ -8,6 +8,18 @@ import (
const (
+ // ErrCodeAccessDeniedException for service response error code
+ // "AccessDeniedException".
+ //
+ // You don't have sufficient permissions to perform this action.
+ ErrCodeAccessDeniedException = "AccessDeniedException"
+
+ // ErrCodeConflictException for service response error code
+ // "ConflictException".
+ //
+ // This operation attempted to create a resource that already exists.
+ ErrCodeConflictException = "ConflictException"
+
// ErrCodeDataAlreadyAcceptedException for service response error code
// "DataAlreadyAcceptedException".
//
@@ -73,12 +85,24 @@ const (
// The specified resource does not exist.
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
+ // ErrCodeServiceQuotaExceededException for service response error code
+ // "ServiceQuotaExceededException".
+ //
+ // This request exceeds a service quota.
+ ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException"
+
// ErrCodeServiceUnavailableException for service response error code
// "ServiceUnavailableException".
//
// The service cannot complete the request.
ErrCodeServiceUnavailableException = "ServiceUnavailableException"
+ // ErrCodeThrottlingException for service response error code
+ // "ThrottlingException".
+ //
+ // The request was throttled because of quota limits.
+ ErrCodeThrottlingException = "ThrottlingException"
+
// ErrCodeTooManyTagsException for service response error code
// "TooManyTagsException".
//
@@ -91,9 +115,17 @@ const (
// The most likely cause is an Amazon Web Services access key ID or secret key
// that's not valid.
ErrCodeUnrecognizedClientException = "UnrecognizedClientException"
+
+ // ErrCodeValidationException for service response error code
+ // "ValidationException".
+ //
+ // One of the parameters for the request is not valid.
+ ErrCodeValidationException = "ValidationException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
+ "AccessDeniedException": newErrorAccessDeniedException,
+ "ConflictException": newErrorConflictException,
"DataAlreadyAcceptedException": newErrorDataAlreadyAcceptedException,
"InvalidOperationException": newErrorInvalidOperationException,
"InvalidParameterException": newErrorInvalidParameterException,
@@ -103,7 +135,10 @@ var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"OperationAbortedException": newErrorOperationAbortedException,
"ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException,
"ResourceNotFoundException": newErrorResourceNotFoundException,
+ "ServiceQuotaExceededException": newErrorServiceQuotaExceededException,
"ServiceUnavailableException": newErrorServiceUnavailableException,
+ "ThrottlingException": newErrorThrottlingException,
"TooManyTagsException": newErrorTooManyTagsException,
"UnrecognizedClientException": newErrorUnrecognizedClientException,
+ "ValidationException": newErrorValidationException,
}
diff --git a/service/comprehend/api.go b/service/comprehend/api.go
index 7d667affa13..9ed24af97ab 100644
--- a/service/comprehend/api.go
+++ b/service/comprehend/api.go
@@ -541,7 +541,8 @@ func (c *Comprehend) BatchDetectTargetedSentimentRequest(input *BatchDetectTarge
// Inspects a batch of documents and returns a sentiment analysis for each entity
// identified in the documents.
//
-// For more information about targeted sentiment, see Targeted sentiment (https://docs.aws.amazon.com/comprehend/latest/dg/how-targeted-sentiment.html).
+// For more information about targeted sentiment, see Targeted sentiment (https://docs.aws.amazon.com/comprehend/latest/dg/how-targeted-sentiment.html)
+// in the Amazon Comprehend Developer Guide.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
@@ -637,12 +638,20 @@ func (c *Comprehend) ClassifyDocumentRequest(input *ClassifyDocumentInput) (req
// ClassifyDocument API operation for Amazon Comprehend.
//
-// Creates a new document classification request to analyze a single document
-// in real-time, using a previously created and trained custom model and an
-// endpoint.
+// Creates a classification request to analyze a single document in real-time.
+// ClassifyDocument supports the following model types:
+//
+// - Custom classifier - a custom model that you have created and trained.
+// For input, you can provide plain text, a single-page document (PDF, Word,
+// or image), or Textract API output. For more information, see Custom classification
+// (https://docs.aws.amazon.com/comprehend/latest/dg/how-document-classification.html)
+// in the Amazon Comprehend Developer Guide.
//
-// You can input plain text or you can upload a single-page input document (text,
-// PDF, Word, or image).
+// - Prompt classifier - Amazon Comprehend provides a model for classifying
+// prompts. For input, you provide English plain text input. For prompt classification,
+// the response includes only the Classes field. For more information about
+// prompt classifiers, see Prompt classifiers (https://docs.aws.amazon.com/comprehend/latest/dg/prompt-classification.html)
+// in the Amazon Comprehend Developer Guide.
//
// If the system detects errors while processing a page in the input document,
// the API response includes an entry in Errors that describes the errors.
@@ -3905,7 +3914,8 @@ func (c *Comprehend) DetectTargetedSentimentRequest(input *DetectTargetedSentime
// Inspects the input text and returns a sentiment analysis for each entity
// identified in the text.
//
-// For more information about targeted sentiment, see Targeted sentiment (https://docs.aws.amazon.com/comprehend/latest/dg/how-targeted-sentiment.html).
+// For more information about targeted sentiment, see Targeted sentiment (https://docs.aws.amazon.com/comprehend/latest/dg/how-targeted-sentiment.html)
+// in the Amazon Comprehend Developer Guide.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
@@ -3954,6 +3964,103 @@ func (c *Comprehend) DetectTargetedSentimentWithContext(ctx aws.Context, input *
return out, req.Send()
}
+const opDetectToxicContent = "DetectToxicContent"
+
+// DetectToxicContentRequest generates a "aws/request.Request" representing the
+// client's request for the DetectToxicContent operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DetectToxicContent for more information on using the DetectToxicContent
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the DetectToxicContentRequest method.
+// req, resp := client.DetectToxicContentRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectToxicContent
+func (c *Comprehend) DetectToxicContentRequest(input *DetectToxicContentInput) (req *request.Request, output *DetectToxicContentOutput) {
+ op := &request.Operation{
+ Name: opDetectToxicContent,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &DetectToxicContentInput{}
+ }
+
+ output = &DetectToxicContentOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DetectToxicContent API operation for Amazon Comprehend.
+//
+// Performs toxicity analysis on the list of text strings that you provide as
+// input. The analysis uses the order of strings in the list to determine context
+// when predicting toxicity. The API response contains a results list that matches
+// the size of the input list. For more information about toxicity detection,
+// see Toxicity detection (https://docs.aws.amazon.com/comprehend/latest/dg/toxicity-detection.html)
+// in the Amazon Comprehend Developer Guide
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Comprehend's
+// API operation DetectToxicContent for usage and error information.
+//
+// Returned Error Types:
+//
+// - InvalidRequestException
+// The request is invalid.
+//
+// - TextSizeLimitExceededException
+// The size of the input text exceeds the limit. Use a smaller document.
+//
+// - UnsupportedLanguageException
+// Amazon Comprehend can't process the language of the input text. For custom
+// entity recognition APIs, only English, Spanish, French, Italian, German,
+// or Portuguese are accepted. For a list of supported languages, Supported
+// languages (https://docs.aws.amazon.com/comprehend/latest/dg/supported-languages.html)
+// in the Comprehend Developer Guide.
+//
+// - InternalServerException
+// An internal server error occurred. Retry your request.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectToxicContent
+func (c *Comprehend) DetectToxicContent(input *DetectToxicContentInput) (*DetectToxicContentOutput, error) {
+ req, out := c.DetectToxicContentRequest(input)
+ return out, req.Send()
+}
+
+// DetectToxicContentWithContext is the same as DetectToxicContent with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DetectToxicContent for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *Comprehend) DetectToxicContentWithContext(ctx aws.Context, input *DetectToxicContentInput, opts ...request.Option) (*DetectToxicContentOutput, error) {
+ req, out := c.DetectToxicContentRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opImportModel = "ImportModel"
// ImportModelRequest generates a "aws/request.Request" representing the
@@ -10615,9 +10722,14 @@ func (s *ClassifierMetadata) SetNumberOfTrainedDocuments(v int64) *ClassifierMet
type ClassifyDocumentInput struct {
_ struct{} `type:"structure"`
- // Use the Bytes parameter to input a text, PDF, Word or image file. You can
- // also use the Bytes parameter to input an Amazon Textract DetectDocumentText
- // or AnalyzeDocument output file.
+ // Use the Bytes parameter to input a text, PDF, Word or image file.
+ //
+ // When you classify a document using a custom model, you can also use the Bytes
+ // parameter to input an Amazon Textract DetectDocumentText or AnalyzeDocument
+ // output file.
+ //
+ // To classify a document using the prompt classifier, use the Text parameter
+ // for input.
//
// Provide the input document as a sequence of base64-encoded bytes. If your
// code uses an Amazon Web Services SDK to classify documents, the SDK may encode
@@ -10635,8 +10747,12 @@ type ClassifyDocumentInput struct {
// text from PDF documents and image files.
DocumentReaderConfig *DocumentReaderConfig `type:"structure"`
- // The Amazon Resource Number (ARN) of the endpoint. For information about endpoints,
- // see Managing endpoints (https://docs.aws.amazon.com/comprehend/latest/dg/manage-endpoints.html).
+ // The Amazon Resource Number (ARN) of the endpoint.
+ //
+ // For prompt classification, Amazon Comprehend provides the endpoint ARN: zzz.
+ //
+ // For custom classification, you create an endpoint for your custom model.
+ // For more information, see Using Amazon Comprehend endpoints (https://docs.aws.amazon.com/comprehend/latest/dg/using-endpoints.html).
//
// EndpointArn is a required field
EndpointArn *string `type:"string" required:"true"`
@@ -10723,6 +10839,10 @@ type ClassifyDocumentOutput struct {
// trained models. Individual classes are mutually exclusive and each document
// is expected to have only a single class assigned to it. For example, an animal
// can be a dog or a cat, but not both at the same time.
+ //
+ // For prompt classification, the response includes a single class (UNDESIRED_PROMPT),
+ // along with a confidence score. A higher confidence score indicates that the
+ // input prompt is undesired in nature.
Classes []*DocumentClass `type:"list"`
// Extraction information about the document. This field is present in the response
@@ -11195,8 +11315,7 @@ type CreateDocumentClassifierInput struct {
ModelPolicy *string `min:"1" type:"string"`
// Specifies the location for the output files from a custom classifier job.
- // This parameter is required for a request that creates a native classifier
- // model.
+ // This parameter is required for a request that creates a native document model.
OutputDataConfig *DocumentClassifierOutputDataConfig `type:"structure"`
// Tags to associate with the document classifier. A tag is a key-value pair
@@ -11839,7 +11958,8 @@ type CreateFlywheelInput struct {
_ struct{} `type:"structure"`
// To associate an existing model with the flywheel, specify the Amazon Resource
- // Number (ARN) of the model version.
+ // Number (ARN) of the model version. Do not set TaskConfig or ModelType if
+ // you specify an ActiveModelArn.
ActiveModelArn *string `type:"string"`
// A unique identifier for the request. If you don't set the client request
@@ -11867,13 +11987,15 @@ type CreateFlywheelInput struct {
// FlywheelName is a required field
FlywheelName *string `type:"string" required:"true"`
- // The model type.
+ // The model type. You need to set ModelType if you are creating a flywheel
+ // for a new model.
ModelType *string `type:"string" enum:"ModelType"`
// The tags to associate with this flywheel.
Tags []*Tag `type:"list"`
- // Configuration about the custom classifier associated with the flywheel.
+ // Configuration about the model associated with the flywheel. You need to set
+ // TaskConfig if you are creating a flywheel for a new model.
TaskConfig *TaskConfig `type:"structure"`
}
@@ -15293,6 +15415,118 @@ func (s *DetectTargetedSentimentOutput) SetEntities(v []*TargetedSentimentEntity
return s
}
+type DetectToxicContentInput struct {
+ _ struct{} `type:"structure"`
+
+ // The language of the input text. Currently, English is the only supported
+ // language.
+ //
+ // LanguageCode is a required field
+ LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"`
+
+ // A list of up to 10 text strings. The maximum size for the list is 10 KB.
+ //
+ // TextSegments is a sensitive parameter and its value will be
+ // replaced with "sensitive" in string returned by DetectToxicContentInput's
+ // String and GoString methods.
+ //
+ // TextSegments is a required field
+ TextSegments []*TextSegment `min:"1" type:"list" required:"true" sensitive:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DetectToxicContentInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DetectToxicContentInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DetectToxicContentInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DetectToxicContentInput"}
+ if s.LanguageCode == nil {
+ invalidParams.Add(request.NewErrParamRequired("LanguageCode"))
+ }
+ if s.TextSegments == nil {
+ invalidParams.Add(request.NewErrParamRequired("TextSegments"))
+ }
+ if s.TextSegments != nil && len(s.TextSegments) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("TextSegments", 1))
+ }
+ if s.TextSegments != nil {
+ for i, v := range s.TextSegments {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TextSegments", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetLanguageCode sets the LanguageCode field's value.
+func (s *DetectToxicContentInput) SetLanguageCode(v string) *DetectToxicContentInput {
+ s.LanguageCode = &v
+ return s
+}
+
+// SetTextSegments sets the TextSegments field's value.
+func (s *DetectToxicContentInput) SetTextSegments(v []*TextSegment) *DetectToxicContentInput {
+ s.TextSegments = v
+ return s
+}
+
+type DetectToxicContentOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Results of the content moderation analysis. Each entry in the results list
+ // contains a list of toxic content types identified in the text, along with
+ // a confidence score for each content type. The results list also includes
+ // a toxicity score for each entry in the results list.
+ ResultList []*ToxicLabels `type:"list"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DetectToxicContentOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DetectToxicContentOutput) GoString() string {
+ return s.String()
+}
+
+// SetResultList sets the ResultList field's value.
+func (s *DetectToxicContentOutput) SetResultList(v []*ToxicLabels) *DetectToxicContentOutput {
+ s.ResultList = v
+ return s
+}
+
// Specifies the class that categorizes the document being analyzed
type DocumentClass struct {
_ struct{} `type:"structure"`
@@ -15344,7 +15578,7 @@ func (s *DocumentClass) SetScore(v float64) *DocumentClass {
return s
}
-// Configuration required for a custom classification model.
+// Configuration required for a document classification model.
type DocumentClassificationConfig struct {
_ struct{} `type:"structure"`
@@ -15544,7 +15778,7 @@ type DocumentClassificationJobProperties struct {
// Configuration parameters for a private Virtual Private Cloud (VPC) containing
// the resources you are using for your document classification job. For more
- // information, see Amazon VPC (https://docs.aws.amazon.com/vppc/latest/userguide/what-is-amazon-vpc.html).
+ // information, see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html).
VpcConfig *VpcConfig `type:"structure"`
}
@@ -15651,7 +15885,7 @@ func (s *DocumentClassificationJobProperties) SetVpcConfig(v *VpcConfig) *Docume
}
// The location of the training documents. This parameter is required in a request
-// to create a native classifier model.
+// to create a semi-structured document classification model.
type DocumentClassifierDocuments struct {
_ struct{} `type:"structure"`
@@ -15828,11 +16062,11 @@ type DocumentClassifierInputDataConfig struct {
// The type of input documents for training the model. Provide plain-text documents
// to create a plain-text model, and provide semi-structured documents to create
- // a native model.
+ // a native document model.
DocumentType *string `type:"string" enum:"DocumentClassifierDocumentTypeFormat"`
// The S3 location of the training documents. This parameter is required in
- // a request to create a native classifier model.
+ // a request to create a native document model.
Documents *DocumentClassifierDocuments `type:"structure"`
// Indicates the delimiter used to separate each label for training a multi-label
@@ -15854,9 +16088,9 @@ type DocumentClassifierInputDataConfig struct {
// This parameter is required if you set DataFormat to COMPREHEND_CSV.
S3Uri *string `type:"string"`
- // This specifies the Amazon S3 location where the test annotations for an entity
- // recognizer are located. The URI must be in the same Amazon Web Services Region
- // as the API endpoint that you are calling.
+ // This specifies the Amazon S3 location that contains the test annotations
+ // for the document classifier. The URI must be in the same Amazon Web Services
+ // Region as the API endpoint that you are calling.
TestS3Uri *string `type:"string"`
}
@@ -15960,7 +16194,7 @@ func (s *DocumentClassifierInputDataConfig) SetTestS3Uri(v string) *DocumentClas
}
// Provide the location for output data from a custom classifier job. This field
-// is mandatory if you are training a native classifier model.
+// is mandatory if you are training a native document model.
type DocumentClassifierOutputDataConfig struct {
_ struct{} `type:"structure"`
@@ -16124,7 +16358,7 @@ type DocumentClassifierProperties struct {
// Configuration parameters for a private Virtual Private Cloud (VPC) containing
// the resources you are using for your custom classifier. For more information,
- // see Amazon VPC (https://docs.aws.amazon.com/vppc/latest/userguide/what-is-amazon-vpc.html).
+ // see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html).
VpcConfig *VpcConfig `type:"structure"`
}
@@ -19130,7 +19364,7 @@ type FlywheelProperties struct {
// The status of the flywheel.
Status *string `type:"string" enum:"FlywheelStatus"`
- // Configuration about the custom classifier associated with the flywheel.
+ // Configuration about the model associated with a flywheel.
TaskConfig *TaskConfig `type:"structure"`
}
@@ -22246,7 +22480,8 @@ func (s *ListTopicsDetectionJobsOutput) SetTopicsDetectionJobPropertiesList(v []
// Contains the sentiment and sentiment score for one mention of an entity.
//
-// For more information about targeted sentiment, see Targeted sentiment (https://docs.aws.amazon.com/comprehend/latest/dg/how-targeted-sentiment.html).
+// For more information about targeted sentiment, see Targeted sentiment (https://docs.aws.amazon.com/comprehend/latest/dg/how-targeted-sentiment.html)
+// in the Amazon Comprehend Developer Guide.
type MentionSentiment struct {
_ struct{} `type:"structure"`
@@ -22293,8 +22528,11 @@ type OutputDataConfig struct {
_ struct{} `type:"structure"`
// ID for the Amazon Web Services Key Management Service (KMS) key that Amazon
- // Comprehend uses to encrypt the output results from an analysis job. The KmsKeyId
- // can be one of the following formats:
+ // Comprehend uses to encrypt the output results from an analysis job. Specify
+ // the Key Id of a symmetric key, because you cannot use an asymmetric key for
+ // uploading data to S3.
+ //
+ // The KmsKeyId can be one of the following formats:
//
// * KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
//
@@ -25454,7 +25692,7 @@ type StartTargetedSentimentDetectionJobInput struct {
// The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend
// read access to your input data. For more information, see Role-based permissions
- // (https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions).
+ // (https://docs.aws.amazon.com/comprehend/latest/dg/security_iam_id-based-policy-examples.html#auth-role-permissions).
//
// DataAccessRoleArn is a required field
DataAccessRoleArn *string `min:"20" type:"string" required:"true"`
@@ -27189,7 +27427,8 @@ func (s *TargetedSentimentDetectionJobProperties) SetVpcConfig(v *VpcConfig) *Ta
// Information about one of the entities found by targeted sentiment analysis.
//
-// For more information about targeted sentiment, see Targeted sentiment (https://docs.aws.amazon.com/comprehend/latest/dg/how-targeted-sentiment.html).
+// For more information about targeted sentiment, see Targeted sentiment (https://docs.aws.amazon.com/comprehend/latest/dg/how-targeted-sentiment.html)
+// in the Amazon Comprehend Developer Guide.
type TargetedSentimentEntity struct {
_ struct{} `type:"structure"`
@@ -27236,7 +27475,8 @@ func (s *TargetedSentimentEntity) SetMentions(v []*TargetedSentimentMention) *Ta
// Information about one mention of an entity. The mention information includes
// the location of the mention in the text and the sentiment of the mention.
//
-// For more information about targeted sentiment, see Targeted sentiment (https://docs.aws.amazon.com/comprehend/latest/dg/how-targeted-sentiment.html).
+// For more information about targeted sentiment, see Targeted sentiment (https://docs.aws.amazon.com/comprehend/latest/dg/how-targeted-sentiment.html)
+// in the Amazon Comprehend Developer Guide.
type TargetedSentimentMention struct {
_ struct{} `type:"structure"`
@@ -27325,11 +27565,11 @@ func (s *TargetedSentimentMention) SetType(v string) *TargetedSentimentMention {
return s
}
-// Configuration about the custom classifier associated with the flywheel.
+// Configuration about the model associated with a flywheel.
type TaskConfig struct {
_ struct{} `type:"structure"`
- // Configuration required for a classification model.
+ // Configuration required for a document classification model.
DocumentClassificationConfig *DocumentClassificationConfig `type:"structure"`
// Configuration required for an entity recognition model.
@@ -27400,6 +27640,60 @@ func (s *TaskConfig) SetLanguageCode(v string) *TaskConfig {
return s
}
+// One of the of text strings. Each string has a size limit of 1KB.
+type TextSegment struct {
+ _ struct{} `type:"structure"`
+
+ // The text content.
+ //
+ // Text is a sensitive parameter and its value will be
+ // replaced with "sensitive" in string returned by TextSegment's
+ // String and GoString methods.
+ //
+ // Text is a required field
+ Text *string `min:"1" type:"string" required:"true" sensitive:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s TextSegment) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s TextSegment) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *TextSegment) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "TextSegment"}
+ if s.Text == nil {
+ invalidParams.Add(request.NewErrParamRequired("Text"))
+ }
+ if s.Text != nil && len(*s.Text) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Text", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetText sets the Text field's value.
+func (s *TextSegment) SetText(v string) *TextSegment {
+ s.Text = &v
+ return s
+}
+
// The size of the input text exceeds the limit. Use a smaller document.
type TextSizeLimitExceededException struct {
_ struct{} `type:"structure"`
@@ -27899,6 +28193,93 @@ func (s *TopicsDetectionJobProperties) SetVpcConfig(v *VpcConfig) *TopicsDetecti
return s
}
+// Toxic content analysis result for one string. For more information about
+// toxicity detection, see Toxicity detection (https://docs.aws.amazon.com/comprehend/latest/dg/toxicity-detection.html)
+// in the Amazon Comprehend Developer Guide
+type ToxicContent struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the toxic content type.
+ Name *string `type:"string" enum:"ToxicContentType"`
+
+ // Model confidence in the detected content type. Value range is zero to one,
+ // where one is highest confidence.
+ Score *float64 `type:"float"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ToxicContent) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ToxicContent) GoString() string {
+ return s.String()
+}
+
+// SetName sets the Name field's value.
+func (s *ToxicContent) SetName(v string) *ToxicContent {
+ s.Name = &v
+ return s
+}
+
+// SetScore sets the Score field's value.
+func (s *ToxicContent) SetScore(v float64) *ToxicContent {
+ s.Score = &v
+ return s
+}
+
+// Toxicity analysis result for one string. For more information about toxicity
+// detection, see Toxicity detection (https://docs.aws.amazon.com/comprehend/latest/dg/toxicity-detection.html)
+// in the Amazon Comprehend Developer Guide
+type ToxicLabels struct {
+ _ struct{} `type:"structure"`
+
+ // Array of toxic content types identified in the string.
+ Labels []*ToxicContent `type:"list"`
+
+ // Overall toxicity score for the string.
+ Toxicity *float64 `type:"float"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ToxicLabels) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ToxicLabels) GoString() string {
+ return s.String()
+}
+
+// SetLabels sets the Labels field's value.
+func (s *ToxicLabels) SetLabels(v []*ToxicContent) *ToxicLabels {
+ s.Labels = v
+ return s
+}
+
+// SetToxicity sets the Toxicity field's value.
+func (s *ToxicLabels) SetToxicity(v float64) *ToxicLabels {
+ s.Toxicity = &v
+ return s
+}
+
// Amazon Comprehend can't process the language of the input text. For custom
// entity recognition APIs, only English, Spanish, French, Italian, German,
// or Portuguese are accepted. For a list of supported languages, Supported
@@ -28442,7 +28823,7 @@ func (s *VpcConfig) SetSubnets(v []*string) *VpcConfig {
// input document:
//
// - The document to classify is plain text, but the classifier is a native
-// model.
+// document model.
//
// - The document to classify is semi-structured, but the classifier is a
// plain-text model.
@@ -29534,3 +29915,39 @@ func TargetedSentimentEntityType_Values() []string {
TargetedSentimentEntityTypeOther,
}
}
+
+const (
+ // ToxicContentTypeGraphic is a ToxicContentType enum value
+ ToxicContentTypeGraphic = "GRAPHIC"
+
+ // ToxicContentTypeHarassmentOrAbuse is a ToxicContentType enum value
+ ToxicContentTypeHarassmentOrAbuse = "HARASSMENT_OR_ABUSE"
+
+ // ToxicContentTypeHateSpeech is a ToxicContentType enum value
+ ToxicContentTypeHateSpeech = "HATE_SPEECH"
+
+ // ToxicContentTypeInsult is a ToxicContentType enum value
+ ToxicContentTypeInsult = "INSULT"
+
+ // ToxicContentTypeProfanity is a ToxicContentType enum value
+ ToxicContentTypeProfanity = "PROFANITY"
+
+ // ToxicContentTypeSexual is a ToxicContentType enum value
+ ToxicContentTypeSexual = "SEXUAL"
+
+ // ToxicContentTypeViolenceOrThreat is a ToxicContentType enum value
+ ToxicContentTypeViolenceOrThreat = "VIOLENCE_OR_THREAT"
+)
+
+// ToxicContentType_Values returns all elements of the ToxicContentType enum
+func ToxicContentType_Values() []string {
+ return []string{
+ ToxicContentTypeGraphic,
+ ToxicContentTypeHarassmentOrAbuse,
+ ToxicContentTypeHateSpeech,
+ ToxicContentTypeInsult,
+ ToxicContentTypeProfanity,
+ ToxicContentTypeSexual,
+ ToxicContentTypeViolenceOrThreat,
+ }
+}
diff --git a/service/comprehend/comprehendiface/interface.go b/service/comprehend/comprehendiface/interface.go
index 7825fdf6ca9..6cf032310d7 100644
--- a/service/comprehend/comprehendiface/interface.go
+++ b/service/comprehend/comprehendiface/interface.go
@@ -224,6 +224,10 @@ type ComprehendAPI interface {
DetectTargetedSentimentWithContext(aws.Context, *comprehend.DetectTargetedSentimentInput, ...request.Option) (*comprehend.DetectTargetedSentimentOutput, error)
DetectTargetedSentimentRequest(*comprehend.DetectTargetedSentimentInput) (*request.Request, *comprehend.DetectTargetedSentimentOutput)
+ DetectToxicContent(*comprehend.DetectToxicContentInput) (*comprehend.DetectToxicContentOutput, error)
+ DetectToxicContentWithContext(aws.Context, *comprehend.DetectToxicContentInput, ...request.Option) (*comprehend.DetectToxicContentOutput, error)
+ DetectToxicContentRequest(*comprehend.DetectToxicContentInput) (*request.Request, *comprehend.DetectToxicContentOutput)
+
ImportModel(*comprehend.ImportModelInput) (*comprehend.ImportModelOutput, error)
ImportModelWithContext(aws.Context, *comprehend.ImportModelInput, ...request.Option) (*comprehend.ImportModelOutput, error)
ImportModelRequest(*comprehend.ImportModelInput) (*request.Request, *comprehend.ImportModelOutput)
diff --git a/service/connect/api.go b/service/connect/api.go
index 45b9f000435..478777f3cad 100644
--- a/service/connect/api.go
+++ b/service/connect/api.go
@@ -46155,6 +46155,9 @@ type ListIntegrationAssociationsInput struct {
// InstanceId is a required field
InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"`
+ // The Amazon Resource Name (ARN) of the integration.
+ IntegrationArn *string `location:"querystring" locationName:"integrationArn" type:"string"`
+
// The integration type.
IntegrationType *string `location:"querystring" locationName:"integrationType" type:"string" enum:"IntegrationType"`
@@ -46209,6 +46212,12 @@ func (s *ListIntegrationAssociationsInput) SetInstanceId(v string) *ListIntegrat
return s
}
+// SetIntegrationArn sets the IntegrationArn field's value.
+func (s *ListIntegrationAssociationsInput) SetIntegrationArn(v string) *ListIntegrationAssociationsInput {
+ s.IntegrationArn = &v
+ return s
+}
+
// SetIntegrationType sets the IntegrationType field's value.
func (s *ListIntegrationAssociationsInput) SetIntegrationType(v string) *ListIntegrationAssociationsInput {
s.IntegrationType = &v
@@ -67659,6 +67668,9 @@ const (
// IntegrationTypeApplication is a IntegrationType enum value
IntegrationTypeApplication = "APPLICATION"
+
+ // IntegrationTypeFileScanner is a IntegrationType enum value
+ IntegrationTypeFileScanner = "FILE_SCANNER"
)
// IntegrationType_Values returns all elements of the IntegrationType enum
@@ -67671,6 +67683,7 @@ func IntegrationType_Values() []string {
IntegrationTypeWisdomKnowledgeBase,
IntegrationTypeCasesDomain,
IntegrationTypeApplication,
+ IntegrationTypeFileScanner,
}
}
diff --git a/service/ec2/api.go b/service/ec2/api.go
index be14ddc590b..f3e52ea3c4e 100644
--- a/service/ec2/api.go
+++ b/service/ec2/api.go
@@ -36052,6 +36052,89 @@ func (c *EC2) DisableSerialConsoleAccessWithContext(ctx aws.Context, input *Disa
return out, req.Send()
}
+const opDisableSnapshotBlockPublicAccess = "DisableSnapshotBlockPublicAccess"
+
+// DisableSnapshotBlockPublicAccessRequest generates a "aws/request.Request" representing the
+// client's request for the DisableSnapshotBlockPublicAccess operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DisableSnapshotBlockPublicAccess for more information on using the DisableSnapshotBlockPublicAccess
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the DisableSnapshotBlockPublicAccessRequest method.
+// req, resp := client.DisableSnapshotBlockPublicAccessRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableSnapshotBlockPublicAccess
+func (c *EC2) DisableSnapshotBlockPublicAccessRequest(input *DisableSnapshotBlockPublicAccessInput) (req *request.Request, output *DisableSnapshotBlockPublicAccessOutput) {
+ op := &request.Operation{
+ Name: opDisableSnapshotBlockPublicAccess,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &DisableSnapshotBlockPublicAccessInput{}
+ }
+
+ output = &DisableSnapshotBlockPublicAccessOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DisableSnapshotBlockPublicAccess API operation for Amazon Elastic Compute Cloud.
+//
+// Disables the block public access for snapshots setting at the account level
+// for the specified Amazon Web Services Region. After you disable block public
+// access for snapshots in a Region, users can publicly share snapshots in that
+// Region.
+//
+// If block public access is enabled in block-all-sharing mode, and you disable
+// block public access, all snapshots that were previously publicly shared are
+// no longer treated as private and they become publicly accessible again.
+//
+// For more information, see Block public access for snapshots (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-public-access-snapshots.html)
+// in the Amazon Elastic Compute Cloud User Guide .
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Elastic Compute Cloud's
+// API operation DisableSnapshotBlockPublicAccess for usage and error information.
+// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableSnapshotBlockPublicAccess
+func (c *EC2) DisableSnapshotBlockPublicAccess(input *DisableSnapshotBlockPublicAccessInput) (*DisableSnapshotBlockPublicAccessOutput, error) {
+ req, out := c.DisableSnapshotBlockPublicAccessRequest(input)
+ return out, req.Send()
+}
+
+// DisableSnapshotBlockPublicAccessWithContext is the same as DisableSnapshotBlockPublicAccess with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DisableSnapshotBlockPublicAccess for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *EC2) DisableSnapshotBlockPublicAccessWithContext(ctx aws.Context, input *DisableSnapshotBlockPublicAccessInput, opts ...request.Option) (*DisableSnapshotBlockPublicAccessOutput, error) {
+ req, out := c.DisableSnapshotBlockPublicAccessRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opDisableTransitGatewayRouteTablePropagation = "DisableTransitGatewayRouteTablePropagation"
// DisableTransitGatewayRouteTablePropagationRequest generates a "aws/request.Request" representing the
@@ -38306,6 +38389,92 @@ func (c *EC2) EnableSerialConsoleAccessWithContext(ctx aws.Context, input *Enabl
return out, req.Send()
}
+const opEnableSnapshotBlockPublicAccess = "EnableSnapshotBlockPublicAccess"
+
+// EnableSnapshotBlockPublicAccessRequest generates a "aws/request.Request" representing the
+// client's request for the EnableSnapshotBlockPublicAccess operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See EnableSnapshotBlockPublicAccess for more information on using the EnableSnapshotBlockPublicAccess
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the EnableSnapshotBlockPublicAccessRequest method.
+// req, resp := client.EnableSnapshotBlockPublicAccessRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableSnapshotBlockPublicAccess
+func (c *EC2) EnableSnapshotBlockPublicAccessRequest(input *EnableSnapshotBlockPublicAccessInput) (req *request.Request, output *EnableSnapshotBlockPublicAccessOutput) {
+ op := &request.Operation{
+ Name: opEnableSnapshotBlockPublicAccess,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &EnableSnapshotBlockPublicAccessInput{}
+ }
+
+ output = &EnableSnapshotBlockPublicAccessOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// EnableSnapshotBlockPublicAccess API operation for Amazon Elastic Compute Cloud.
+//
+// Enables or modifies the block public access for snapshots setting at the
+// account level for the specified Amazon Web Services Region. After you enable
+// block public access for snapshots in a Region, users can no longer request
+// public sharing for snapshots in that Region. Snapshots that are already publicly
+// shared are either treated as private or they remain publicly shared, depending
+// on the State that you specify.
+//
+// If block public access is enabled in block-all-sharing mode, and you change
+// the mode to block-new-sharing, all snapshots that were previously publicly
+// shared are no longer treated as private and they become publicly accessible
+// again.
+//
+// For more information, see Block public access for snapshots (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-public-access-snapshots.html)
+// in the Amazon Elastic Compute Cloud User Guide.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Elastic Compute Cloud's
+// API operation EnableSnapshotBlockPublicAccess for usage and error information.
+// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableSnapshotBlockPublicAccess
+func (c *EC2) EnableSnapshotBlockPublicAccess(input *EnableSnapshotBlockPublicAccessInput) (*EnableSnapshotBlockPublicAccessOutput, error) {
+ req, out := c.EnableSnapshotBlockPublicAccessRequest(input)
+ return out, req.Send()
+}
+
+// EnableSnapshotBlockPublicAccessWithContext is the same as EnableSnapshotBlockPublicAccess with the addition of
+// the ability to pass a context and additional request options.
+//
+// See EnableSnapshotBlockPublicAccess for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *EC2) EnableSnapshotBlockPublicAccessWithContext(ctx aws.Context, input *EnableSnapshotBlockPublicAccessInput, opts ...request.Option) (*EnableSnapshotBlockPublicAccessOutput, error) {
+ req, out := c.EnableSnapshotBlockPublicAccessRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opEnableTransitGatewayRouteTablePropagation = "EnableTransitGatewayRouteTablePropagation"
// EnableTransitGatewayRouteTablePropagationRequest generates a "aws/request.Request" representing the
@@ -42202,6 +42371,83 @@ func (c *EC2) GetSerialConsoleAccessStatusWithContext(ctx aws.Context, input *Ge
return out, req.Send()
}
+const opGetSnapshotBlockPublicAccessState = "GetSnapshotBlockPublicAccessState"
+
+// GetSnapshotBlockPublicAccessStateRequest generates a "aws/request.Request" representing the
+// client's request for the GetSnapshotBlockPublicAccessState operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See GetSnapshotBlockPublicAccessState for more information on using the GetSnapshotBlockPublicAccessState
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the GetSnapshotBlockPublicAccessStateRequest method.
+// req, resp := client.GetSnapshotBlockPublicAccessStateRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetSnapshotBlockPublicAccessState
+func (c *EC2) GetSnapshotBlockPublicAccessStateRequest(input *GetSnapshotBlockPublicAccessStateInput) (req *request.Request, output *GetSnapshotBlockPublicAccessStateOutput) {
+ op := &request.Operation{
+ Name: opGetSnapshotBlockPublicAccessState,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &GetSnapshotBlockPublicAccessStateInput{}
+ }
+
+ output = &GetSnapshotBlockPublicAccessStateOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// GetSnapshotBlockPublicAccessState API operation for Amazon Elastic Compute Cloud.
+//
+// Gets the current state of block public access for snapshots setting for the
+// account and Region.
+//
+// For more information, see Block public access for snapshots (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-public-access-snapshots.html)
+// in the Amazon Elastic Compute Cloud User Guide.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Elastic Compute Cloud's
+// API operation GetSnapshotBlockPublicAccessState for usage and error information.
+// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetSnapshotBlockPublicAccessState
+func (c *EC2) GetSnapshotBlockPublicAccessState(input *GetSnapshotBlockPublicAccessStateInput) (*GetSnapshotBlockPublicAccessStateOutput, error) {
+ req, out := c.GetSnapshotBlockPublicAccessStateRequest(input)
+ return out, req.Send()
+}
+
+// GetSnapshotBlockPublicAccessStateWithContext is the same as GetSnapshotBlockPublicAccessState with the addition of
+// the ability to pass a context and additional request options.
+//
+// See GetSnapshotBlockPublicAccessState for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *EC2) GetSnapshotBlockPublicAccessStateWithContext(ctx aws.Context, input *GetSnapshotBlockPublicAccessStateInput, opts ...request.Option) (*GetSnapshotBlockPublicAccessStateOutput, error) {
+ req, out := c.GetSnapshotBlockPublicAccessStateRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opGetSpotPlacementScores = "GetSpotPlacementScores"
// GetSpotPlacementScoresRequest generates a "aws/request.Request" representing the
@@ -112048,6 +112294,71 @@ func (s *DisableSerialConsoleAccessOutput) SetSerialConsoleAccessEnabled(v bool)
return s
}
+type DisableSnapshotBlockPublicAccessInput struct {
+ _ struct{} `type:"structure"`
+
+ // Checks whether you have the required permissions for the action, without
+ // actually making the request, and provides an error response. If you have
+ // the required permissions, the error response is DryRunOperation. Otherwise,
+ // it is UnauthorizedOperation.
+ DryRun *bool `type:"boolean"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DisableSnapshotBlockPublicAccessInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DisableSnapshotBlockPublicAccessInput) GoString() string {
+ return s.String()
+}
+
+// SetDryRun sets the DryRun field's value.
+func (s *DisableSnapshotBlockPublicAccessInput) SetDryRun(v bool) *DisableSnapshotBlockPublicAccessInput {
+ s.DryRun = &v
+ return s
+}
+
+type DisableSnapshotBlockPublicAccessOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Returns unblocked if the request succeeds.
+ State *string `locationName:"state" type:"string" enum:"SnapshotBlockPublicAccessState"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DisableSnapshotBlockPublicAccessOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DisableSnapshotBlockPublicAccessOutput) GoString() string {
+ return s.String()
+}
+
+// SetState sets the State field's value.
+func (s *DisableSnapshotBlockPublicAccessOutput) SetState(v string) *DisableSnapshotBlockPublicAccessOutput {
+ s.State = &v
+ return s
+}
+
type DisableTransitGatewayRouteTablePropagationInput struct {
_ struct{} `type:"structure"`
@@ -116794,6 +117105,112 @@ func (s *EnableSerialConsoleAccessOutput) SetSerialConsoleAccessEnabled(v bool)
return s
}
+type EnableSnapshotBlockPublicAccessInput struct {
+ _ struct{} `type:"structure"`
+
+ // Checks whether you have the required permissions for the action, without
+ // actually making the request, and provides an error response. If you have
+ // the required permissions, the error response is DryRunOperation. Otherwise,
+ // it is UnauthorizedOperation.
+ DryRun *bool `type:"boolean"`
+
+ // The mode in which to enable block public access for snapshots for the Region.
+ // Specify one of the following values:
+ //
+ // * block-all-sharing - Prevents all public sharing of snapshots in the
+ // Region. Users in the account will no longer be able to request new public
+ // sharing. Additionally, snapshots that are already publicly shared are
+ // treated as private and they are no longer publicly available. If you enable
+ // block public access for snapshots in block-all-sharing mode, it does not
+ // change the permissions for snapshots that are already publicly shared.
+ // Instead, it prevents these snapshots from be publicly visible and publicly
+ // accessible. Therefore, the attributes for these snapshots still indicate
+ // that they are publicly shared, even though they are not publicly available.
+ //
+ // * block-new-sharing - Prevents only new public sharing of snapshots in
+ // the Region. Users in the account will no longer be able to request new
+ // public sharing. However, snapshots that are already publicly shared, remain
+ // publicly available.
+ //
+ // State is a required field
+ State *string `type:"string" required:"true" enum:"SnapshotBlockPublicAccessState"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s EnableSnapshotBlockPublicAccessInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s EnableSnapshotBlockPublicAccessInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *EnableSnapshotBlockPublicAccessInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "EnableSnapshotBlockPublicAccessInput"}
+ if s.State == nil {
+ invalidParams.Add(request.NewErrParamRequired("State"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDryRun sets the DryRun field's value.
+func (s *EnableSnapshotBlockPublicAccessInput) SetDryRun(v bool) *EnableSnapshotBlockPublicAccessInput {
+ s.DryRun = &v
+ return s
+}
+
+// SetState sets the State field's value.
+func (s *EnableSnapshotBlockPublicAccessInput) SetState(v string) *EnableSnapshotBlockPublicAccessInput {
+ s.State = &v
+ return s
+}
+
+type EnableSnapshotBlockPublicAccessOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The state of block public access for snapshots for the account and Region.
+ // Returns either block-all-sharing or block-new-sharing if the request succeeds.
+ State *string `locationName:"state" type:"string" enum:"SnapshotBlockPublicAccessState"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s EnableSnapshotBlockPublicAccessOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s EnableSnapshotBlockPublicAccessOutput) GoString() string {
+ return s.String()
+}
+
+// SetState sets the State field's value.
+func (s *EnableSnapshotBlockPublicAccessOutput) SetState(v string) *EnableSnapshotBlockPublicAccessOutput {
+ s.State = &v
+ return s
+}
+
type EnableTransitGatewayRouteTablePropagationInput struct {
_ struct{} `type:"structure"`
@@ -125066,6 +125483,83 @@ func (s *GetSerialConsoleAccessStatusOutput) SetSerialConsoleAccessEnabled(v boo
return s
}
+type GetSnapshotBlockPublicAccessStateInput struct {
+ _ struct{} `type:"structure"`
+
+ // Checks whether you have the required permissions for the action, without
+ // actually making the request, and provides an error response. If you have
+ // the required permissions, the error response is DryRunOperation. Otherwise,
+ // it is UnauthorizedOperation.
+ DryRun *bool `type:"boolean"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s GetSnapshotBlockPublicAccessStateInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s GetSnapshotBlockPublicAccessStateInput) GoString() string {
+ return s.String()
+}
+
+// SetDryRun sets the DryRun field's value.
+func (s *GetSnapshotBlockPublicAccessStateInput) SetDryRun(v bool) *GetSnapshotBlockPublicAccessStateInput {
+ s.DryRun = &v
+ return s
+}
+
+type GetSnapshotBlockPublicAccessStateOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The current state of block public access for snapshots. Possible values include:
+ //
+ // * block-all-sharing - All public sharing of snapshots is blocked. Users
+ // in the account can't request new public sharing. Additionally, snapshots
+ // that were already publicly shared are treated as private and are not publicly
+ // available.
+ //
+ // * block-new-sharing - Only new public sharing of snapshots is blocked.
+ // Users in the account can't request new public sharing. However, snapshots
+ // that were already publicly shared, remain publicly available.
+ //
+ // * unblocked - Public sharing is not blocked. Users can publicly share
+ // snapshots.
+ State *string `locationName:"state" type:"string" enum:"SnapshotBlockPublicAccessState"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s GetSnapshotBlockPublicAccessStateOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s GetSnapshotBlockPublicAccessStateOutput) GoString() string {
+ return s.String()
+}
+
+// SetState sets the State field's value.
+func (s *GetSnapshotBlockPublicAccessStateOutput) SetState(v string) *GetSnapshotBlockPublicAccessStateOutput {
+ s.State = &v
+ return s
+}
+
type GetSpotPlacementScoresInput struct {
_ struct{} `type:"structure"`
@@ -193124,6 +193618,26 @@ func SnapshotAttributeName_Values() []string {
}
}
+const (
+ // SnapshotBlockPublicAccessStateBlockAllSharing is a SnapshotBlockPublicAccessState enum value
+ SnapshotBlockPublicAccessStateBlockAllSharing = "block-all-sharing"
+
+ // SnapshotBlockPublicAccessStateBlockNewSharing is a SnapshotBlockPublicAccessState enum value
+ SnapshotBlockPublicAccessStateBlockNewSharing = "block-new-sharing"
+
+ // SnapshotBlockPublicAccessStateUnblocked is a SnapshotBlockPublicAccessState enum value
+ SnapshotBlockPublicAccessStateUnblocked = "unblocked"
+)
+
+// SnapshotBlockPublicAccessState_Values returns all elements of the SnapshotBlockPublicAccessState enum
+func SnapshotBlockPublicAccessState_Values() []string {
+ return []string{
+ SnapshotBlockPublicAccessStateBlockAllSharing,
+ SnapshotBlockPublicAccessStateBlockNewSharing,
+ SnapshotBlockPublicAccessStateUnblocked,
+ }
+}
+
const (
// SnapshotStatePending is a SnapshotState enum value
SnapshotStatePending = "pending"
diff --git a/service/ec2/ec2iface/interface.go b/service/ec2/ec2iface/interface.go
index c119b4cec24..6edae1ae8dd 100644
--- a/service/ec2/ec2iface/interface.go
+++ b/service/ec2/ec2iface/interface.go
@@ -1912,6 +1912,10 @@ type EC2API interface {
DisableSerialConsoleAccessWithContext(aws.Context, *ec2.DisableSerialConsoleAccessInput, ...request.Option) (*ec2.DisableSerialConsoleAccessOutput, error)
DisableSerialConsoleAccessRequest(*ec2.DisableSerialConsoleAccessInput) (*request.Request, *ec2.DisableSerialConsoleAccessOutput)
+ DisableSnapshotBlockPublicAccess(*ec2.DisableSnapshotBlockPublicAccessInput) (*ec2.DisableSnapshotBlockPublicAccessOutput, error)
+ DisableSnapshotBlockPublicAccessWithContext(aws.Context, *ec2.DisableSnapshotBlockPublicAccessInput, ...request.Option) (*ec2.DisableSnapshotBlockPublicAccessOutput, error)
+ DisableSnapshotBlockPublicAccessRequest(*ec2.DisableSnapshotBlockPublicAccessInput) (*request.Request, *ec2.DisableSnapshotBlockPublicAccessOutput)
+
DisableTransitGatewayRouteTablePropagation(*ec2.DisableTransitGatewayRouteTablePropagationInput) (*ec2.DisableTransitGatewayRouteTablePropagationOutput, error)
DisableTransitGatewayRouteTablePropagationWithContext(aws.Context, *ec2.DisableTransitGatewayRouteTablePropagationInput, ...request.Option) (*ec2.DisableTransitGatewayRouteTablePropagationOutput, error)
DisableTransitGatewayRouteTablePropagationRequest(*ec2.DisableTransitGatewayRouteTablePropagationInput) (*request.Request, *ec2.DisableTransitGatewayRouteTablePropagationOutput)
@@ -2028,6 +2032,10 @@ type EC2API interface {
EnableSerialConsoleAccessWithContext(aws.Context, *ec2.EnableSerialConsoleAccessInput, ...request.Option) (*ec2.EnableSerialConsoleAccessOutput, error)
EnableSerialConsoleAccessRequest(*ec2.EnableSerialConsoleAccessInput) (*request.Request, *ec2.EnableSerialConsoleAccessOutput)
+ EnableSnapshotBlockPublicAccess(*ec2.EnableSnapshotBlockPublicAccessInput) (*ec2.EnableSnapshotBlockPublicAccessOutput, error)
+ EnableSnapshotBlockPublicAccessWithContext(aws.Context, *ec2.EnableSnapshotBlockPublicAccessInput, ...request.Option) (*ec2.EnableSnapshotBlockPublicAccessOutput, error)
+ EnableSnapshotBlockPublicAccessRequest(*ec2.EnableSnapshotBlockPublicAccessInput) (*request.Request, *ec2.EnableSnapshotBlockPublicAccessOutput)
+
EnableTransitGatewayRouteTablePropagation(*ec2.EnableTransitGatewayRouteTablePropagationInput) (*ec2.EnableTransitGatewayRouteTablePropagationOutput, error)
EnableTransitGatewayRouteTablePropagationWithContext(aws.Context, *ec2.EnableTransitGatewayRouteTablePropagationInput, ...request.Option) (*ec2.EnableTransitGatewayRouteTablePropagationOutput, error)
EnableTransitGatewayRouteTablePropagationRequest(*ec2.EnableTransitGatewayRouteTablePropagationInput) (*request.Request, *ec2.EnableTransitGatewayRouteTablePropagationOutput)
@@ -2230,6 +2238,10 @@ type EC2API interface {
GetSerialConsoleAccessStatusWithContext(aws.Context, *ec2.GetSerialConsoleAccessStatusInput, ...request.Option) (*ec2.GetSerialConsoleAccessStatusOutput, error)
GetSerialConsoleAccessStatusRequest(*ec2.GetSerialConsoleAccessStatusInput) (*request.Request, *ec2.GetSerialConsoleAccessStatusOutput)
+ GetSnapshotBlockPublicAccessState(*ec2.GetSnapshotBlockPublicAccessStateInput) (*ec2.GetSnapshotBlockPublicAccessStateOutput, error)
+ GetSnapshotBlockPublicAccessStateWithContext(aws.Context, *ec2.GetSnapshotBlockPublicAccessStateInput, ...request.Option) (*ec2.GetSnapshotBlockPublicAccessStateOutput, error)
+ GetSnapshotBlockPublicAccessStateRequest(*ec2.GetSnapshotBlockPublicAccessStateInput) (*request.Request, *ec2.GetSnapshotBlockPublicAccessStateOutput)
+
GetSpotPlacementScores(*ec2.GetSpotPlacementScoresInput) (*ec2.GetSpotPlacementScoresOutput, error)
GetSpotPlacementScoresWithContext(aws.Context, *ec2.GetSpotPlacementScoresInput, ...request.Option) (*ec2.GetSpotPlacementScoresOutput, error)
GetSpotPlacementScoresRequest(*ec2.GetSpotPlacementScoresInput) (*request.Request, *ec2.GetSpotPlacementScoresOutput)
diff --git a/service/eks/api.go b/service/eks/api.go
index fdd08172cc5..c4defce0a79 100644
--- a/service/eks/api.go
+++ b/service/eks/api.go
@@ -77,8 +77,9 @@ func (c *EKS) AssociateEncryptionConfigRequest(input *AssociateEncryptionConfigI
//
// - ClientException
// These errors are usually caused by a client action. Actions can include using
-// an action or resource on behalf of a user that doesn't have permissions to
-// use the action or resource or specifying an identifier that is not valid.
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
//
// - ServerException
// These errors are usually caused by a server-side issue.
@@ -185,8 +186,9 @@ func (c *EKS) AssociateIdentityProviderConfigRequest(input *AssociateIdentityPro
//
// - ClientException
// These errors are usually caused by a client action. Actions can include using
-// an action or resource on behalf of a user that doesn't have permissions to
-// use the action or resource or specifying an identifier that is not valid.
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
//
// - ServerException
// These errors are usually caused by a server-side issue.
@@ -302,8 +304,9 @@ func (c *EKS) CreateAddonRequest(input *CreateAddonInput) (req *request.Request,
//
// - ClientException
// These errors are usually caused by a client action. Actions can include using
-// an action or resource on behalf of a user that doesn't have permissions to
-// use the action or resource or specifying an identifier that is not valid.
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
//
// - ServerException
// These errors are usually caused by a server-side issue.
@@ -420,8 +423,9 @@ func (c *EKS) CreateClusterRequest(input *CreateClusterInput) (req *request.Requ
//
// - ClientException
// These errors are usually caused by a client action. Actions can include using
-// an action or resource on behalf of a user that doesn't have permissions to
-// use the action or resource or specifying an identifier that is not valid.
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
//
// - ServerException
// These errors are usually caused by a server-side issue.
@@ -457,6 +461,105 @@ func (c *EKS) CreateClusterWithContext(ctx aws.Context, input *CreateClusterInpu
return out, req.Send()
}
+const opCreateEksAnywhereSubscription = "CreateEksAnywhereSubscription"
+
+// CreateEksAnywhereSubscriptionRequest generates a "aws/request.Request" representing the
+// client's request for the CreateEksAnywhereSubscription operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See CreateEksAnywhereSubscription for more information on using the CreateEksAnywhereSubscription
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the CreateEksAnywhereSubscriptionRequest method.
+// req, resp := client.CreateEksAnywhereSubscriptionRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/CreateEksAnywhereSubscription
+func (c *EKS) CreateEksAnywhereSubscriptionRequest(input *CreateEksAnywhereSubscriptionInput) (req *request.Request, output *CreateEksAnywhereSubscriptionOutput) {
+ op := &request.Operation{
+ Name: opCreateEksAnywhereSubscription,
+ HTTPMethod: "POST",
+ HTTPPath: "/eks-anywhere-subscriptions",
+ }
+
+ if input == nil {
+ input = &CreateEksAnywhereSubscriptionInput{}
+ }
+
+ output = &CreateEksAnywhereSubscriptionOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// CreateEksAnywhereSubscription API operation for Amazon Elastic Kubernetes Service.
+//
+// Creates an EKS Anywhere subscription. When a subscription is created, it
+// is a contract agreement for the length of the term specified in the request.
+// Licenses that are used to validate support are provisioned in Amazon Web
+// Services License Manager and the caller account is granted access to EKS
+// Anywhere Curated Packages.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Elastic Kubernetes Service's
+// API operation CreateEksAnywhereSubscription for usage and error information.
+//
+// Returned Error Types:
+//
+// - ResourceLimitExceededException
+// You have encountered a service limit on the specified resource.
+//
+// - InvalidParameterException
+// The specified parameter is invalid. Review the available parameters for the
+// API request.
+//
+// - ClientException
+// These errors are usually caused by a client action. Actions can include using
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
+//
+// - ServerException
+// These errors are usually caused by a server-side issue.
+//
+// - ServiceUnavailableException
+// The service is unavailable. Back off and retry the operation.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/CreateEksAnywhereSubscription
+func (c *EKS) CreateEksAnywhereSubscription(input *CreateEksAnywhereSubscriptionInput) (*CreateEksAnywhereSubscriptionOutput, error) {
+ req, out := c.CreateEksAnywhereSubscriptionRequest(input)
+ return out, req.Send()
+}
+
+// CreateEksAnywhereSubscriptionWithContext is the same as CreateEksAnywhereSubscription with the addition of
+// the ability to pass a context and additional request options.
+//
+// See CreateEksAnywhereSubscription for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *EKS) CreateEksAnywhereSubscriptionWithContext(ctx aws.Context, input *CreateEksAnywhereSubscriptionInput, opts ...request.Option) (*CreateEksAnywhereSubscriptionOutput, error) {
+ req, out := c.CreateEksAnywhereSubscriptionRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opCreateFargateProfile = "CreateFargateProfile"
// CreateFargateProfileRequest generates a "aws/request.Request" representing the
@@ -514,7 +617,7 @@ func (c *EKS) CreateFargateProfileRequest(input *CreateFargateProfileInput) (req
//
// When you create a Fargate profile, you must specify a pod execution role
// to use with the pods that are scheduled with the profile. This role is added
-// to the cluster's Kubernetes Role Based Access Control (https://kubernetes.io/docs/admin/authorization/rbac/)
+// to the cluster's Kubernetes Role Based Access Control (https://kubernetes.io/docs/reference/access-authn-authz/rbac/)
// (RBAC) for authorization so that the kubelet that is running on the Fargate
// infrastructure can register with your Amazon EKS cluster so that it can appear
// in your cluster as a node. The pod execution role also provides IAM permissions
@@ -552,8 +655,9 @@ func (c *EKS) CreateFargateProfileRequest(input *CreateFargateProfileInput) (req
//
// - ClientException
// These errors are usually caused by a client action. Actions can include using
-// an action or resource on behalf of a user that doesn't have permissions to
-// use the action or resource or specifying an identifier that is not valid.
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
//
// - ServerException
// These errors are usually caused by a server-side issue.
@@ -634,10 +738,7 @@ func (c *EKS) CreateNodegroupRequest(input *CreateNodegroupInput) (req *request.
//
// Creates a managed node group for an Amazon EKS cluster. You can only create
// a node group for your cluster that is equal to the current Kubernetes version
-// for the cluster. All node groups are created with the latest AMI release
-// version for the respective minor Kubernetes version of the cluster, unless
-// you deploy a custom AMI using a launch template. For more information about
-// using launch templates, see Launch template support (https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html).
+// for the cluster.
//
// An Amazon EKS managed node group is an Amazon EC2 Auto Scaling group and
// associated Amazon EC2 instances that are managed by Amazon Web Services for
@@ -672,8 +773,9 @@ func (c *EKS) CreateNodegroupRequest(input *CreateNodegroupInput) (req *request.
//
// - ClientException
// These errors are usually caused by a client action. Actions can include using
-// an action or resource on behalf of a user that doesn't have permissions to
-// use the action or resource or specifying an identifier that is not valid.
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
//
// - ServerException
// These errors are usually caused by a server-side issue.
@@ -775,8 +877,9 @@ func (c *EKS) DeleteAddonRequest(input *DeleteAddonInput) (req *request.Request,
//
// - ClientException
// These errors are usually caused by a client action. Actions can include using
-// an action or resource on behalf of a user that doesn't have permissions to
-// use the action or resource or specifying an identifier that is not valid.
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
//
// - ServerException
// These errors are usually caused by a server-side issue.
@@ -878,8 +981,9 @@ func (c *EKS) DeleteClusterRequest(input *DeleteClusterInput) (req *request.Requ
//
// - ClientException
// These errors are usually caused by a client action. Actions can include using
-// an action or resource on behalf of a user that doesn't have permissions to
-// use the action or resource or specifying an identifier that is not valid.
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
//
// - ServerException
// These errors are usually caused by a server-side issue.
@@ -909,6 +1013,104 @@ func (c *EKS) DeleteClusterWithContext(ctx aws.Context, input *DeleteClusterInpu
return out, req.Send()
}
+const opDeleteEksAnywhereSubscription = "DeleteEksAnywhereSubscription"
+
+// DeleteEksAnywhereSubscriptionRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteEksAnywhereSubscription operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DeleteEksAnywhereSubscription for more information on using the DeleteEksAnywhereSubscription
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the DeleteEksAnywhereSubscriptionRequest method.
+// req, resp := client.DeleteEksAnywhereSubscriptionRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DeleteEksAnywhereSubscription
+func (c *EKS) DeleteEksAnywhereSubscriptionRequest(input *DeleteEksAnywhereSubscriptionInput) (req *request.Request, output *DeleteEksAnywhereSubscriptionOutput) {
+ op := &request.Operation{
+ Name: opDeleteEksAnywhereSubscription,
+ HTTPMethod: "DELETE",
+ HTTPPath: "/eks-anywhere-subscriptions/{id}",
+ }
+
+ if input == nil {
+ input = &DeleteEksAnywhereSubscriptionInput{}
+ }
+
+ output = &DeleteEksAnywhereSubscriptionOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DeleteEksAnywhereSubscription API operation for Amazon Elastic Kubernetes Service.
+//
+// Deletes an expired / inactive subscription. Deleting inactive subscriptions
+// removes them from the Amazon Web Services Management Console view and from
+// list/describe API responses. Subscriptions can only be cancelled within 7
+// days of creation, and are cancelled by creating a ticket in the Amazon Web
+// Services Support Center.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Elastic Kubernetes Service's
+// API operation DeleteEksAnywhereSubscription for usage and error information.
+//
+// Returned Error Types:
+//
+// - ResourceNotFoundException
+// The specified resource could not be found. You can view your available clusters
+// with ListClusters. You can view your available managed node groups with ListNodegroups.
+// Amazon EKS clusters and node groups are Region-specific.
+//
+// - ClientException
+// These errors are usually caused by a client action. Actions can include using
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
+//
+// - InvalidRequestException
+// The request is invalid given the state of the cluster. Check the state of
+// the cluster and the associated operations.
+//
+// - ServerException
+// These errors are usually caused by a server-side issue.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DeleteEksAnywhereSubscription
+func (c *EKS) DeleteEksAnywhereSubscription(input *DeleteEksAnywhereSubscriptionInput) (*DeleteEksAnywhereSubscriptionOutput, error) {
+ req, out := c.DeleteEksAnywhereSubscriptionRequest(input)
+ return out, req.Send()
+}
+
+// DeleteEksAnywhereSubscriptionWithContext is the same as DeleteEksAnywhereSubscription with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DeleteEksAnywhereSubscription for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *EKS) DeleteEksAnywhereSubscriptionWithContext(ctx aws.Context, input *DeleteEksAnywhereSubscriptionInput, opts ...request.Option) (*DeleteEksAnywhereSubscriptionOutput, error) {
+ req, out := c.DeleteEksAnywhereSubscriptionRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opDeleteFargateProfile = "DeleteFargateProfile"
// DeleteFargateProfileRequest generates a "aws/request.Request" representing the
@@ -979,8 +1181,9 @@ func (c *EKS) DeleteFargateProfileRequest(input *DeleteFargateProfileInput) (req
//
// - ClientException
// These errors are usually caused by a client action. Actions can include using
-// an action or resource on behalf of a user that doesn't have permissions to
-// use the action or resource or specifying an identifier that is not valid.
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
//
// - ServerException
// These errors are usually caused by a server-side issue.
@@ -1080,8 +1283,9 @@ func (c *EKS) DeleteNodegroupRequest(input *DeleteNodegroupInput) (req *request.
//
// - ClientException
// These errors are usually caused by a client action. Actions can include using
-// an action or resource on behalf of a user that doesn't have permissions to
-// use the action or resource or specifying an identifier that is not valid.
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
//
// - ServerException
// These errors are usually caused by a server-side issue.
@@ -1176,8 +1380,9 @@ func (c *EKS) DeregisterClusterRequest(input *DeregisterClusterInput) (req *requ
//
// - ClientException
// These errors are usually caused by a client action. Actions can include using
-// an action or resource on behalf of a user that doesn't have permissions to
-// use the action or resource or specifying an identifier that is not valid.
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
//
// - ServerException
// These errors are usually caused by a server-side issue.
@@ -1186,11 +1391,12 @@ func (c *EKS) DeregisterClusterRequest(input *DeregisterClusterInput) (req *requ
// The service is unavailable. Back off and retry the operation.
//
// - AccessDeniedException
-// You don't have permissions to perform the requested operation. The user or
-// role that is making the request must have at least one IAM permissions policy
-// attached that grants the required permissions. For more information, see
-// Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html)
-// in the IAM User Guide.
+// You don't have permissions to perform the requested operation. The IAM principal
+// (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// making the request must have at least one IAM permissions policy attached
+// that grants the required permissions. For more information, see Access management
+// (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) in the IAM
+// User Guide.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DeregisterCluster
func (c *EKS) DeregisterCluster(input *DeregisterClusterInput) (*DeregisterClusterOutput, error) {
@@ -1283,8 +1489,9 @@ func (c *EKS) DescribeAddonRequest(input *DescribeAddonInput) (req *request.Requ
//
// - ClientException
// These errors are usually caused by a client action. Actions can include using
-// an action or resource on behalf of a user that doesn't have permissions to
-// use the action or resource or specifying an identifier that is not valid.
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
//
// - ServerException
// These errors are usually caused by a server-side issue.
@@ -1615,8 +1822,9 @@ func (c *EKS) DescribeClusterRequest(input *DescribeClusterInput) (req *request.
//
// - ClientException
// These errors are usually caused by a client action. Actions can include using
-// an action or resource on behalf of a user that doesn't have permissions to
-// use the action or resource or specifying an identifier that is not valid.
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
//
// - ServerException
// These errors are usually caused by a server-side issue.
@@ -1646,6 +1854,99 @@ func (c *EKS) DescribeClusterWithContext(ctx aws.Context, input *DescribeCluster
return out, req.Send()
}
+const opDescribeEksAnywhereSubscription = "DescribeEksAnywhereSubscription"
+
+// DescribeEksAnywhereSubscriptionRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeEksAnywhereSubscription operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DescribeEksAnywhereSubscription for more information on using the DescribeEksAnywhereSubscription
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the DescribeEksAnywhereSubscriptionRequest method.
+// req, resp := client.DescribeEksAnywhereSubscriptionRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DescribeEksAnywhereSubscription
+func (c *EKS) DescribeEksAnywhereSubscriptionRequest(input *DescribeEksAnywhereSubscriptionInput) (req *request.Request, output *DescribeEksAnywhereSubscriptionOutput) {
+ op := &request.Operation{
+ Name: opDescribeEksAnywhereSubscription,
+ HTTPMethod: "GET",
+ HTTPPath: "/eks-anywhere-subscriptions/{id}",
+ }
+
+ if input == nil {
+ input = &DescribeEksAnywhereSubscriptionInput{}
+ }
+
+ output = &DescribeEksAnywhereSubscriptionOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DescribeEksAnywhereSubscription API operation for Amazon Elastic Kubernetes Service.
+//
+// Returns descriptive information about a subscription.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Elastic Kubernetes Service's
+// API operation DescribeEksAnywhereSubscription for usage and error information.
+//
+// Returned Error Types:
+//
+// - ResourceNotFoundException
+// The specified resource could not be found. You can view your available clusters
+// with ListClusters. You can view your available managed node groups with ListNodegroups.
+// Amazon EKS clusters and node groups are Region-specific.
+//
+// - ClientException
+// These errors are usually caused by a client action. Actions can include using
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
+//
+// - ServerException
+// These errors are usually caused by a server-side issue.
+//
+// - ServiceUnavailableException
+// The service is unavailable. Back off and retry the operation.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DescribeEksAnywhereSubscription
+func (c *EKS) DescribeEksAnywhereSubscription(input *DescribeEksAnywhereSubscriptionInput) (*DescribeEksAnywhereSubscriptionOutput, error) {
+ req, out := c.DescribeEksAnywhereSubscriptionRequest(input)
+ return out, req.Send()
+}
+
+// DescribeEksAnywhereSubscriptionWithContext is the same as DescribeEksAnywhereSubscription with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DescribeEksAnywhereSubscription for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *EKS) DescribeEksAnywhereSubscriptionWithContext(ctx aws.Context, input *DescribeEksAnywhereSubscriptionInput, opts ...request.Option) (*DescribeEksAnywhereSubscriptionOutput, error) {
+ req, out := c.DescribeEksAnywhereSubscriptionRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opDescribeFargateProfile = "DescribeFargateProfile"
// DescribeFargateProfileRequest generates a "aws/request.Request" representing the
@@ -1706,8 +2007,9 @@ func (c *EKS) DescribeFargateProfileRequest(input *DescribeFargateProfileInput)
//
// - ClientException
// These errors are usually caused by a client action. Actions can include using
-// an action or resource on behalf of a user that doesn't have permissions to
-// use the action or resource or specifying an identifier that is not valid.
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
//
// - ServerException
// These errors are usually caused by a server-side issue.
@@ -1804,8 +2106,9 @@ func (c *EKS) DescribeIdentityProviderConfigRequest(input *DescribeIdentityProvi
//
// - ClientException
// These errors are usually caused by a client action. Actions can include using
-// an action or resource on behalf of a user that doesn't have permissions to
-// use the action or resource or specifying an identifier that is not valid.
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
//
// - ServerException
// These errors are usually caused by a server-side issue.
@@ -1900,8 +2203,9 @@ func (c *EKS) DescribeNodegroupRequest(input *DescribeNodegroupInput) (req *requ
//
// - ClientException
// These errors are usually caused by a client action. Actions can include using
-// an action or resource on behalf of a user that doesn't have permissions to
-// use the action or resource or specifying an identifier that is not valid.
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
//
// - ServerException
// These errors are usually caused by a server-side issue.
@@ -1996,8 +2300,9 @@ func (c *EKS) DescribeUpdateRequest(input *DescribeUpdateInput) (req *request.Re
//
// - ClientException
// These errors are usually caused by a client action. Actions can include using
-// an action or resource on behalf of a user that doesn't have permissions to
-// use the action or resource or specifying an identifier that is not valid.
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
//
// - ServerException
// These errors are usually caused by a server-side issue.
@@ -2075,7 +2380,7 @@ func (c *EKS) DisassociateIdentityProviderConfigRequest(input *DisassociateIdent
// Disassociates an identity provider configuration from a cluster. If you disassociate
// an identity provider from your cluster, users included in the provider can
// no longer access the cluster. However, you can still access the cluster with
-// Amazon Web Services IAM users.
+// IAM principals (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
@@ -2092,8 +2397,9 @@ func (c *EKS) DisassociateIdentityProviderConfigRequest(input *DisassociateIdent
//
// - ClientException
// These errors are usually caused by a client action. Actions can include using
-// an action or resource on behalf of a user that doesn't have permissions to
-// use the action or resource or specifying an identifier that is not valid.
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
//
// - ServerException
// These errors are usually caused by a server-side issue.
@@ -2181,7 +2487,7 @@ func (c *EKS) ListAddonsRequest(input *ListAddonsInput) (req *request.Request, o
// ListAddons API operation for Amazon Elastic Kubernetes Service.
//
-// Lists the available add-ons.
+// Lists the installed add-ons.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
@@ -2202,8 +2508,9 @@ func (c *EKS) ListAddonsRequest(input *ListAddonsInput) (req *request.Request, o
//
// - ClientException
// These errors are usually caused by a client action. Actions can include using
-// an action or resource on behalf of a user that doesn't have permissions to
-// use the action or resource or specifying an identifier that is not valid.
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
//
// - ResourceNotFoundException
// The specified resource could not be found. You can view your available clusters
@@ -2353,8 +2660,9 @@ func (c *EKS) ListClustersRequest(input *ListClustersInput) (req *request.Reques
//
// - ClientException
// These errors are usually caused by a client action. Actions can include using
-// an action or resource on behalf of a user that doesn't have permissions to
-// use the action or resource or specifying an identifier that is not valid.
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
//
// - ServerException
// These errors are usually caused by a server-side issue.
@@ -2435,64 +2743,57 @@ func (c *EKS) ListClustersPagesWithContext(ctx aws.Context, input *ListClustersI
return p.Err()
}
-const opListFargateProfiles = "ListFargateProfiles"
+const opListEksAnywhereSubscriptions = "ListEksAnywhereSubscriptions"
-// ListFargateProfilesRequest generates a "aws/request.Request" representing the
-// client's request for the ListFargateProfiles operation. The "output" return
+// ListEksAnywhereSubscriptionsRequest generates a "aws/request.Request" representing the
+// client's request for the ListEksAnywhereSubscriptions operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
-// See ListFargateProfiles for more information on using the ListFargateProfiles
+// See ListEksAnywhereSubscriptions for more information on using the ListEksAnywhereSubscriptions
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
-// // Example sending a request using the ListFargateProfilesRequest method.
-// req, resp := client.ListFargateProfilesRequest(params)
+// // Example sending a request using the ListEksAnywhereSubscriptionsRequest method.
+// req, resp := client.ListEksAnywhereSubscriptionsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/ListFargateProfiles
-func (c *EKS) ListFargateProfilesRequest(input *ListFargateProfilesInput) (req *request.Request, output *ListFargateProfilesOutput) {
+// See also, https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/ListEksAnywhereSubscriptions
+func (c *EKS) ListEksAnywhereSubscriptionsRequest(input *ListEksAnywhereSubscriptionsInput) (req *request.Request, output *ListEksAnywhereSubscriptionsOutput) {
op := &request.Operation{
- Name: opListFargateProfiles,
+ Name: opListEksAnywhereSubscriptions,
HTTPMethod: "GET",
- HTTPPath: "/clusters/{name}/fargate-profiles",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextToken"},
- LimitToken: "maxResults",
- TruncationToken: "",
- },
+ HTTPPath: "/eks-anywhere-subscriptions",
}
if input == nil {
- input = &ListFargateProfilesInput{}
+ input = &ListEksAnywhereSubscriptionsInput{}
}
- output = &ListFargateProfilesOutput{}
+ output = &ListEksAnywhereSubscriptionsOutput{}
req = c.newRequest(op, input, output)
return
}
-// ListFargateProfiles API operation for Amazon Elastic Kubernetes Service.
+// ListEksAnywhereSubscriptions API operation for Amazon Elastic Kubernetes Service.
//
-// Lists the Fargate profiles associated with the specified cluster in your
-// Amazon Web Services account in the specified Region.
+// Displays the full description of the subscription.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon Elastic Kubernetes Service's
-// API operation ListFargateProfiles for usage and error information.
+// API operation ListEksAnywhereSubscriptions for usage and error information.
//
// Returned Error Types:
//
@@ -2500,46 +2801,146 @@ func (c *EKS) ListFargateProfilesRequest(input *ListFargateProfilesInput) (req *
// The specified parameter is invalid. Review the available parameters for the
// API request.
//
-// - ResourceNotFoundException
-// The specified resource could not be found. You can view your available clusters
-// with ListClusters. You can view your available managed node groups with ListNodegroups.
-// Amazon EKS clusters and node groups are Region-specific.
-//
// - ClientException
// These errors are usually caused by a client action. Actions can include using
-// an action or resource on behalf of a user that doesn't have permissions to
-// use the action or resource or specifying an identifier that is not valid.
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
//
// - ServerException
// These errors are usually caused by a server-side issue.
//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/ListFargateProfiles
-func (c *EKS) ListFargateProfiles(input *ListFargateProfilesInput) (*ListFargateProfilesOutput, error) {
- req, out := c.ListFargateProfilesRequest(input)
+// - ServiceUnavailableException
+// The service is unavailable. Back off and retry the operation.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/ListEksAnywhereSubscriptions
+func (c *EKS) ListEksAnywhereSubscriptions(input *ListEksAnywhereSubscriptionsInput) (*ListEksAnywhereSubscriptionsOutput, error) {
+ req, out := c.ListEksAnywhereSubscriptionsRequest(input)
return out, req.Send()
}
-// ListFargateProfilesWithContext is the same as ListFargateProfiles with the addition of
+// ListEksAnywhereSubscriptionsWithContext is the same as ListEksAnywhereSubscriptions with the addition of
// the ability to pass a context and additional request options.
//
-// See ListFargateProfiles for details on how to use this API operation.
+// See ListEksAnywhereSubscriptions for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
-func (c *EKS) ListFargateProfilesWithContext(ctx aws.Context, input *ListFargateProfilesInput, opts ...request.Option) (*ListFargateProfilesOutput, error) {
- req, out := c.ListFargateProfilesRequest(input)
+func (c *EKS) ListEksAnywhereSubscriptionsWithContext(ctx aws.Context, input *ListEksAnywhereSubscriptionsInput, opts ...request.Option) (*ListEksAnywhereSubscriptionsOutput, error) {
+ req, out := c.ListEksAnywhereSubscriptionsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
-// ListFargateProfilesPages iterates over the pages of a ListFargateProfiles operation,
-// calling the "fn" function with the response data for each page. To stop
-// iterating, return false from the fn function.
+const opListFargateProfiles = "ListFargateProfiles"
+
+// ListFargateProfilesRequest generates a "aws/request.Request" representing the
+// client's request for the ListFargateProfiles operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
//
-// See ListFargateProfiles method for more information on how to use this operation.
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ListFargateProfiles for more information on using the ListFargateProfiles
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the ListFargateProfilesRequest method.
+// req, resp := client.ListFargateProfilesRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/ListFargateProfiles
+func (c *EKS) ListFargateProfilesRequest(input *ListFargateProfilesInput) (req *request.Request, output *ListFargateProfilesOutput) {
+ op := &request.Operation{
+ Name: opListFargateProfiles,
+ HTTPMethod: "GET",
+ HTTPPath: "/clusters/{name}/fargate-profiles",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"nextToken"},
+ OutputTokens: []string{"nextToken"},
+ LimitToken: "maxResults",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &ListFargateProfilesInput{}
+ }
+
+ output = &ListFargateProfilesOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ListFargateProfiles API operation for Amazon Elastic Kubernetes Service.
+//
+// Lists the Fargate profiles associated with the specified cluster in your
+// Amazon Web Services account in the specified Region.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Elastic Kubernetes Service's
+// API operation ListFargateProfiles for usage and error information.
+//
+// Returned Error Types:
+//
+// - InvalidParameterException
+// The specified parameter is invalid. Review the available parameters for the
+// API request.
+//
+// - ResourceNotFoundException
+// The specified resource could not be found. You can view your available clusters
+// with ListClusters. You can view your available managed node groups with ListNodegroups.
+// Amazon EKS clusters and node groups are Region-specific.
+//
+// - ClientException
+// These errors are usually caused by a client action. Actions can include using
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
+//
+// - ServerException
+// These errors are usually caused by a server-side issue.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/ListFargateProfiles
+func (c *EKS) ListFargateProfiles(input *ListFargateProfilesInput) (*ListFargateProfilesOutput, error) {
+ req, out := c.ListFargateProfilesRequest(input)
+ return out, req.Send()
+}
+
+// ListFargateProfilesWithContext is the same as ListFargateProfiles with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ListFargateProfiles for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *EKS) ListFargateProfilesWithContext(ctx aws.Context, input *ListFargateProfilesInput, opts ...request.Option) (*ListFargateProfilesOutput, error) {
+ req, out := c.ListFargateProfilesRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// ListFargateProfilesPages iterates over the pages of a ListFargateProfiles operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See ListFargateProfiles method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
@@ -2652,8 +3053,9 @@ func (c *EKS) ListIdentityProviderConfigsRequest(input *ListIdentityProviderConf
//
// - ClientException
// These errors are usually caused by a client action. Actions can include using
-// an action or resource on behalf of a user that doesn't have permissions to
-// use the action or resource or specifying an identifier that is not valid.
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
//
// - ServerException
// These errors are usually caused by a server-side issue.
@@ -2807,8 +3209,9 @@ func (c *EKS) ListNodegroupsRequest(input *ListNodegroupsInput) (req *request.Re
//
// - ClientException
// These errors are usually caused by a client action. Actions can include using
-// an action or resource on behalf of a user that doesn't have permissions to
-// use the action or resource or specifying an identifier that is not valid.
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
//
// - ServerException
// These errors are usually caused by a server-side issue.
@@ -3045,8 +3448,9 @@ func (c *EKS) ListUpdatesRequest(input *ListUpdatesInput) (req *request.Request,
//
// - ClientException
// These errors are usually caused by a client action. Actions can include using
-// an action or resource on behalf of a user that doesn't have permissions to
-// use the action or resource or specifying an identifier that is not valid.
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
//
// - ServerException
// These errors are usually caused by a server-side issue.
@@ -3207,8 +3611,9 @@ func (c *EKS) RegisterClusterRequest(input *RegisterClusterInput) (req *request.
//
// - ClientException
// These errors are usually caused by a client action. Actions can include using
-// an action or resource on behalf of a user that doesn't have permissions to
-// use the action or resource or specifying an identifier that is not valid.
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
//
// - ServerException
// These errors are usually caused by a server-side issue.
@@ -3217,11 +3622,12 @@ func (c *EKS) RegisterClusterRequest(input *RegisterClusterInput) (req *request.
// The service is unavailable. Back off and retry the operation.
//
// - AccessDeniedException
-// You don't have permissions to perform the requested operation. The user or
-// role that is making the request must have at least one IAM permissions policy
-// attached that grants the required permissions. For more information, see
-// Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html)
-// in the IAM User Guide.
+// You don't have permissions to perform the requested operation. The IAM principal
+// (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// making the request must have at least one IAM permissions policy attached
+// that grants the required permissions. For more information, see Access management
+// (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) in the IAM
+// User Guide.
//
// - ResourceInUseException
// The specified resource is in use.
@@ -3500,8 +3906,9 @@ func (c *EKS) UpdateAddonRequest(input *UpdateAddonInput) (req *request.Request,
//
// - ClientException
// These errors are usually caused by a client action. Actions can include using
-// an action or resource on behalf of a user that doesn't have permissions to
-// use the action or resource or specifying an identifier that is not valid.
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
//
// - ServerException
// These errors are usually caused by a server-side issue.
@@ -3614,8 +4021,9 @@ func (c *EKS) UpdateClusterConfigRequest(input *UpdateClusterConfigInput) (req *
//
// - ClientException
// These errors are usually caused by a client action. Actions can include using
-// an action or resource on behalf of a user that doesn't have permissions to
-// use the action or resource or specifying an identifier that is not valid.
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
//
// - ServerException
// These errors are usually caused by a server-side issue.
@@ -3726,8 +4134,9 @@ func (c *EKS) UpdateClusterVersionRequest(input *UpdateClusterVersionInput) (req
//
// - ClientException
// These errors are usually caused by a client action. Actions can include using
-// an action or resource on behalf of a user that doesn't have permissions to
-// use the action or resource or specifying an identifier that is not valid.
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
//
// - ServerException
// These errors are usually caused by a server-side issue.
@@ -3766,6 +4175,105 @@ func (c *EKS) UpdateClusterVersionWithContext(ctx aws.Context, input *UpdateClus
return out, req.Send()
}
+const opUpdateEksAnywhereSubscription = "UpdateEksAnywhereSubscription"
+
+// UpdateEksAnywhereSubscriptionRequest generates a "aws/request.Request" representing the
+// client's request for the UpdateEksAnywhereSubscription operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See UpdateEksAnywhereSubscription for more information on using the UpdateEksAnywhereSubscription
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+// // Example sending a request using the UpdateEksAnywhereSubscriptionRequest method.
+// req, resp := client.UpdateEksAnywhereSubscriptionRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/UpdateEksAnywhereSubscription
+func (c *EKS) UpdateEksAnywhereSubscriptionRequest(input *UpdateEksAnywhereSubscriptionInput) (req *request.Request, output *UpdateEksAnywhereSubscriptionOutput) {
+ op := &request.Operation{
+ Name: opUpdateEksAnywhereSubscription,
+ HTTPMethod: "POST",
+ HTTPPath: "/eks-anywhere-subscriptions/{id}",
+ }
+
+ if input == nil {
+ input = &UpdateEksAnywhereSubscriptionInput{}
+ }
+
+ output = &UpdateEksAnywhereSubscriptionOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// UpdateEksAnywhereSubscription API operation for Amazon Elastic Kubernetes Service.
+//
+// Update an EKS Anywhere Subscription. Only auto renewal and tags can be updated
+// after subscription creation.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Elastic Kubernetes Service's
+// API operation UpdateEksAnywhereSubscription for usage and error information.
+//
+// Returned Error Types:
+//
+// - InvalidParameterException
+// The specified parameter is invalid. Review the available parameters for the
+// API request.
+//
+// - ClientException
+// These errors are usually caused by a client action. Actions can include using
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
+//
+// - ServerException
+// These errors are usually caused by a server-side issue.
+//
+// - ResourceNotFoundException
+// The specified resource could not be found. You can view your available clusters
+// with ListClusters. You can view your available managed node groups with ListNodegroups.
+// Amazon EKS clusters and node groups are Region-specific.
+//
+// - InvalidRequestException
+// The request is invalid given the state of the cluster. Check the state of
+// the cluster and the associated operations.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/UpdateEksAnywhereSubscription
+func (c *EKS) UpdateEksAnywhereSubscription(input *UpdateEksAnywhereSubscriptionInput) (*UpdateEksAnywhereSubscriptionOutput, error) {
+ req, out := c.UpdateEksAnywhereSubscriptionRequest(input)
+ return out, req.Send()
+}
+
+// UpdateEksAnywhereSubscriptionWithContext is the same as UpdateEksAnywhereSubscription with the addition of
+// the ability to pass a context and additional request options.
+//
+// See UpdateEksAnywhereSubscription for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *EKS) UpdateEksAnywhereSubscriptionWithContext(ctx aws.Context, input *UpdateEksAnywhereSubscriptionInput, opts ...request.Option) (*UpdateEksAnywhereSubscriptionOutput, error) {
+ req, out := c.UpdateEksAnywhereSubscriptionRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opUpdateNodegroupConfig = "UpdateNodegroupConfig"
// UpdateNodegroupConfigRequest generates a "aws/request.Request" representing the
@@ -3830,8 +4338,9 @@ func (c *EKS) UpdateNodegroupConfigRequest(input *UpdateNodegroupConfigInput) (r
//
// - ClientException
// These errors are usually caused by a client action. Actions can include using
-// an action or resource on behalf of a user that doesn't have permissions to
-// use the action or resource or specifying an identifier that is not valid.
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
//
// - ServerException
// These errors are usually caused by a server-side issue.
@@ -3956,8 +4465,9 @@ func (c *EKS) UpdateNodegroupVersionRequest(input *UpdateNodegroupVersionInput)
//
// - ClientException
// These errors are usually caused by a client action. Actions can include using
-// an action or resource on behalf of a user that doesn't have permissions to
-// use the action or resource or specifying an identifier that is not valid.
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
//
// - ServerException
// These errors are usually caused by a server-side issue.
@@ -3996,11 +4506,12 @@ func (c *EKS) UpdateNodegroupVersionWithContext(ctx aws.Context, input *UpdateNo
return out, req.Send()
}
-// You don't have permissions to perform the requested operation. The user or
-// role that is making the request must have at least one IAM permissions policy
-// attached that grants the required permissions. For more information, see
-// Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html)
-// in the IAM User Guide.
+// You don't have permissions to perform the requested operation. The IAM principal
+// (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// making the request must have at least one IAM permissions policy attached
+// that grants the required permissions. For more information, see Access management
+// (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) in the IAM
+// User Guide.
type AccessDeniedException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
@@ -4806,8 +5317,9 @@ func (s *Certificate) SetData(v string) *Certificate {
}
// These errors are usually caused by a client action. Actions can include using
-// an action or resource on behalf of a user that doesn't have permissions to
-// use the action or resource or specifying an identifier that is not valid.
+// an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+// that doesn't have permissions to use the action or resource or specifying
+// an identifier that is not valid.
type ClientException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
@@ -4821,6 +5333,9 @@ type ClientException struct {
// The Amazon EKS managed node group associated with the exception.
NodegroupName *string `locationName:"nodegroupName" type:"string"`
+
+ // The Amazon EKS subscription ID with the exception.
+ SubscriptionId *string `locationName:"subscriptionId" type:"string"`
}
// String returns the string representation.
@@ -5372,7 +5887,7 @@ func (s *ConnectorConfigResponse) SetRoleArn(v string) *ConnectorConfigResponse
// The placement configuration for all the control plane instances of your local
// Amazon EKS cluster on an Amazon Web Services Outpost. For more information,
// see Capacity considerations (https://docs.aws.amazon.com/eks/latest/userguide/eks-outposts-capacity-considerations.html)
-// in the Amazon EKS User Guide
+// in the Amazon EKS User Guide.
type ControlPlanePlacementRequest struct {
_ struct{} `type:"structure"`
@@ -5480,8 +5995,11 @@ type CreateAddonInput struct {
// existing value, Amazon EKS changes the value to the Amazon EKS default
// value.
//
- // * Preserve – Not supported. You can set this value when updating an
- // add-on though. For more information, see UpdateAddon (https://docs.aws.amazon.com/eks/latest/APIReference/API_UpdateAddon.html).
+ // * Preserve – This is similar to the NONE option. If the self-managed
+ // version of the add-on is installed on your cluster Amazon EKS doesn't
+ // change the add-on resource properties. Creation of the add-on might fail
+ // if conflicts are detected. This option works differently during the update
+ // operation. For more information, see UpdateAddon (https://docs.aws.amazon.com/eks/latest/APIReference/API_UpdateAddon.html).
//
// If you don't currently have the self-managed version of the add-on installed
// on your cluster, the Amazon EKS add-on is installed. Amazon EKS sets all
@@ -5836,48 +6354,47 @@ func (s *CreateClusterOutput) SetCluster(v *Cluster) *CreateClusterOutput {
return s
}
-type CreateFargateProfileInput struct {
+type CreateEksAnywhereSubscriptionInput struct {
_ struct{} `type:"structure"`
+ // A boolean indicating whether the subscription auto renews at the end of the
+ // term.
+ AutoRenew *bool `locationName:"autoRenew" type:"boolean"`
+
// Unique, case-sensitive identifier that you provide to ensure the idempotency
// of the request.
ClientRequestToken *string `locationName:"clientRequestToken" type:"string" idempotencyToken:"true"`
- // The name of the Amazon EKS cluster to apply the Fargate profile to.
- //
- // ClusterName is a required field
- ClusterName *string `location:"uri" locationName:"name" type:"string" required:"true"`
+ // The number of licenses to purchase with the subscription. Valid values are
+ // between 1 and 1000. This value cannot be changed after creating the subscription.
+ LicenseQuantity *int64 `locationName:"licenseQuantity" type:"integer"`
- // The name of the Fargate profile.
- //
- // FargateProfileName is a required field
- FargateProfileName *string `locationName:"fargateProfileName" type:"string" required:"true"`
+ // The license type for all licenses in the subscription. Valid value is CLUSTER.
+ // With the CLUSTER license type, each license covers support for a single EKS
+ // Anywhere cluster.
+ LicenseType *string `locationName:"licenseType" type:"string" enum:"EksAnywhereSubscriptionLicenseType"`
- // The Amazon Resource Name (ARN) of the pod execution role to use for pods
- // that match the selectors in the Fargate profile. The pod execution role allows
- // Fargate infrastructure to register with your cluster as a node, and it provides
- // read access to Amazon ECR image repositories. For more information, see Pod
- // Execution Role (https://docs.aws.amazon.com/eks/latest/userguide/pod-execution-role.html)
- // in the Amazon EKS User Guide.
+ // The unique name for your subscription. It must be unique in your Amazon Web
+ // Services account in the Amazon Web Services Region you're creating the subscription
+ // in. The name can contain only alphanumeric characters (case-sensitive), hyphens,
+ // and underscores. It must start with an alphabetic character and can't be
+ // longer than 100 characters.
//
- // PodExecutionRoleArn is a required field
- PodExecutionRoleArn *string `locationName:"podExecutionRoleArn" type:"string" required:"true"`
-
- // The selectors to match for pods to use this Fargate profile. Each selector
- // must have an associated namespace. Optionally, you can also specify labels
- // for a namespace. You may specify up to five selectors in a Fargate profile.
- Selectors []*FargateProfileSelector `locationName:"selectors" type:"list"`
-
- // The IDs of subnets to launch your pods into. At this time, pods running on
- // Fargate are not assigned public IP addresses, so only private subnets (with
- // no direct route to an Internet Gateway) are accepted for this parameter.
- Subnets []*string `locationName:"subnets" type:"list"`
+ // Name is a required field
+ Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- // The metadata to apply to the Fargate profile to assist with categorization
- // and organization. Each tag consists of a key and an optional value. You define
- // both. Fargate profile tags do not propagate to any other resources associated
- // with the Fargate profile, such as the pods that are scheduled with it.
+ // The metadata for a subscription to assist with categorization and organization.
+ // Each tag consists of a key and an optional value. Subscription tags do not
+ // propagate to any other resources associated with the subscription.
Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
+
+ // An object representing the term duration and term unit type of your subscription.
+ // This determines the term length of your subscription. Valid values are MONTHS
+ // for term unit and 12 or 36 for term duration, indicating a 12 month or 36
+ // month subscription. This value cannot be changed after creating the subscription.
+ //
+ // Term is a required field
+ Term *EksAnywhereSubscriptionTerm `locationName:"term" type:"structure" required:"true"`
}
// String returns the string representation.
@@ -5885,7 +6402,7 @@ type CreateFargateProfileInput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateFargateProfileInput) String() string {
+func (s CreateEksAnywhereSubscriptionInput) String() string {
return awsutil.Prettify(s)
}
@@ -5894,28 +6411,25 @@ func (s CreateFargateProfileInput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateFargateProfileInput) GoString() string {
+func (s CreateEksAnywhereSubscriptionInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
-func (s *CreateFargateProfileInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateFargateProfileInput"}
- if s.ClusterName == nil {
- invalidParams.Add(request.NewErrParamRequired("ClusterName"))
- }
- if s.ClusterName != nil && len(*s.ClusterName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ClusterName", 1))
- }
- if s.FargateProfileName == nil {
- invalidParams.Add(request.NewErrParamRequired("FargateProfileName"))
+func (s *CreateEksAnywhereSubscriptionInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CreateEksAnywhereSubscriptionInput"}
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
}
- if s.PodExecutionRoleArn == nil {
- invalidParams.Add(request.NewErrParamRequired("PodExecutionRoleArn"))
+ if s.Name != nil && len(*s.Name) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Name", 1))
}
if s.Tags != nil && len(s.Tags) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
}
+ if s.Term == nil {
+ invalidParams.Add(request.NewErrParamRequired("Term"))
+ }
if invalidParams.Len() > 0 {
return invalidParams
@@ -5923,53 +6437,53 @@ func (s *CreateFargateProfileInput) Validate() error {
return nil
}
-// SetClientRequestToken sets the ClientRequestToken field's value.
-func (s *CreateFargateProfileInput) SetClientRequestToken(v string) *CreateFargateProfileInput {
- s.ClientRequestToken = &v
+// SetAutoRenew sets the AutoRenew field's value.
+func (s *CreateEksAnywhereSubscriptionInput) SetAutoRenew(v bool) *CreateEksAnywhereSubscriptionInput {
+ s.AutoRenew = &v
return s
}
-// SetClusterName sets the ClusterName field's value.
-func (s *CreateFargateProfileInput) SetClusterName(v string) *CreateFargateProfileInput {
- s.ClusterName = &v
+// SetClientRequestToken sets the ClientRequestToken field's value.
+func (s *CreateEksAnywhereSubscriptionInput) SetClientRequestToken(v string) *CreateEksAnywhereSubscriptionInput {
+ s.ClientRequestToken = &v
return s
}
-// SetFargateProfileName sets the FargateProfileName field's value.
-func (s *CreateFargateProfileInput) SetFargateProfileName(v string) *CreateFargateProfileInput {
- s.FargateProfileName = &v
+// SetLicenseQuantity sets the LicenseQuantity field's value.
+func (s *CreateEksAnywhereSubscriptionInput) SetLicenseQuantity(v int64) *CreateEksAnywhereSubscriptionInput {
+ s.LicenseQuantity = &v
return s
}
-// SetPodExecutionRoleArn sets the PodExecutionRoleArn field's value.
-func (s *CreateFargateProfileInput) SetPodExecutionRoleArn(v string) *CreateFargateProfileInput {
- s.PodExecutionRoleArn = &v
+// SetLicenseType sets the LicenseType field's value.
+func (s *CreateEksAnywhereSubscriptionInput) SetLicenseType(v string) *CreateEksAnywhereSubscriptionInput {
+ s.LicenseType = &v
return s
}
-// SetSelectors sets the Selectors field's value.
-func (s *CreateFargateProfileInput) SetSelectors(v []*FargateProfileSelector) *CreateFargateProfileInput {
- s.Selectors = v
+// SetName sets the Name field's value.
+func (s *CreateEksAnywhereSubscriptionInput) SetName(v string) *CreateEksAnywhereSubscriptionInput {
+ s.Name = &v
return s
}
-// SetSubnets sets the Subnets field's value.
-func (s *CreateFargateProfileInput) SetSubnets(v []*string) *CreateFargateProfileInput {
- s.Subnets = v
+// SetTags sets the Tags field's value.
+func (s *CreateEksAnywhereSubscriptionInput) SetTags(v map[string]*string) *CreateEksAnywhereSubscriptionInput {
+ s.Tags = v
return s
}
-// SetTags sets the Tags field's value.
-func (s *CreateFargateProfileInput) SetTags(v map[string]*string) *CreateFargateProfileInput {
- s.Tags = v
+// SetTerm sets the Term field's value.
+func (s *CreateEksAnywhereSubscriptionInput) SetTerm(v *EksAnywhereSubscriptionTerm) *CreateEksAnywhereSubscriptionInput {
+ s.Term = v
return s
}
-type CreateFargateProfileOutput struct {
+type CreateEksAnywhereSubscriptionOutput struct {
_ struct{} `type:"structure"`
- // The full description of your new Fargate profile.
- FargateProfile *FargateProfile `locationName:"fargateProfile" type:"structure"`
+ // The full description of the subscription.
+ Subscription *EksAnywhereSubscription `locationName:"subscription" type:"structure"`
}
// String returns the string representation.
@@ -5977,7 +6491,7 @@ type CreateFargateProfileOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateFargateProfileOutput) String() string {
+func (s CreateEksAnywhereSubscriptionOutput) String() string {
return awsutil.Prettify(s)
}
@@ -5986,7 +6500,167 @@ func (s CreateFargateProfileOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s CreateFargateProfileOutput) GoString() string {
+func (s CreateEksAnywhereSubscriptionOutput) GoString() string {
+ return s.String()
+}
+
+// SetSubscription sets the Subscription field's value.
+func (s *CreateEksAnywhereSubscriptionOutput) SetSubscription(v *EksAnywhereSubscription) *CreateEksAnywhereSubscriptionOutput {
+ s.Subscription = v
+ return s
+}
+
+type CreateFargateProfileInput struct {
+ _ struct{} `type:"structure"`
+
+ // Unique, case-sensitive identifier that you provide to ensure the idempotency
+ // of the request.
+ ClientRequestToken *string `locationName:"clientRequestToken" type:"string" idempotencyToken:"true"`
+
+ // The name of the Amazon EKS cluster to apply the Fargate profile to.
+ //
+ // ClusterName is a required field
+ ClusterName *string `location:"uri" locationName:"name" type:"string" required:"true"`
+
+ // The name of the Fargate profile.
+ //
+ // FargateProfileName is a required field
+ FargateProfileName *string `locationName:"fargateProfileName" type:"string" required:"true"`
+
+ // The Amazon Resource Name (ARN) of the pod execution role to use for pods
+ // that match the selectors in the Fargate profile. The pod execution role allows
+ // Fargate infrastructure to register with your cluster as a node, and it provides
+ // read access to Amazon ECR image repositories. For more information, see Pod
+ // Execution Role (https://docs.aws.amazon.com/eks/latest/userguide/pod-execution-role.html)
+ // in the Amazon EKS User Guide.
+ //
+ // PodExecutionRoleArn is a required field
+ PodExecutionRoleArn *string `locationName:"podExecutionRoleArn" type:"string" required:"true"`
+
+ // The selectors to match for pods to use this Fargate profile. Each selector
+ // must have an associated namespace. Optionally, you can also specify labels
+ // for a namespace. You may specify up to five selectors in a Fargate profile.
+ Selectors []*FargateProfileSelector `locationName:"selectors" type:"list"`
+
+ // The IDs of subnets to launch your pods into. At this time, pods running on
+ // Fargate are not assigned public IP addresses, so only private subnets (with
+ // no direct route to an Internet Gateway) are accepted for this parameter.
+ Subnets []*string `locationName:"subnets" type:"list"`
+
+ // The metadata to apply to the Fargate profile to assist with categorization
+ // and organization. Each tag consists of a key and an optional value. You define
+ // both. Fargate profile tags do not propagate to any other resources associated
+ // with the Fargate profile, such as the pods that are scheduled with it.
+ Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateFargateProfileInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateFargateProfileInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CreateFargateProfileInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CreateFargateProfileInput"}
+ if s.ClusterName == nil {
+ invalidParams.Add(request.NewErrParamRequired("ClusterName"))
+ }
+ if s.ClusterName != nil && len(*s.ClusterName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ClusterName", 1))
+ }
+ if s.FargateProfileName == nil {
+ invalidParams.Add(request.NewErrParamRequired("FargateProfileName"))
+ }
+ if s.PodExecutionRoleArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("PodExecutionRoleArn"))
+ }
+ if s.Tags != nil && len(s.Tags) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetClientRequestToken sets the ClientRequestToken field's value.
+func (s *CreateFargateProfileInput) SetClientRequestToken(v string) *CreateFargateProfileInput {
+ s.ClientRequestToken = &v
+ return s
+}
+
+// SetClusterName sets the ClusterName field's value.
+func (s *CreateFargateProfileInput) SetClusterName(v string) *CreateFargateProfileInput {
+ s.ClusterName = &v
+ return s
+}
+
+// SetFargateProfileName sets the FargateProfileName field's value.
+func (s *CreateFargateProfileInput) SetFargateProfileName(v string) *CreateFargateProfileInput {
+ s.FargateProfileName = &v
+ return s
+}
+
+// SetPodExecutionRoleArn sets the PodExecutionRoleArn field's value.
+func (s *CreateFargateProfileInput) SetPodExecutionRoleArn(v string) *CreateFargateProfileInput {
+ s.PodExecutionRoleArn = &v
+ return s
+}
+
+// SetSelectors sets the Selectors field's value.
+func (s *CreateFargateProfileInput) SetSelectors(v []*FargateProfileSelector) *CreateFargateProfileInput {
+ s.Selectors = v
+ return s
+}
+
+// SetSubnets sets the Subnets field's value.
+func (s *CreateFargateProfileInput) SetSubnets(v []*string) *CreateFargateProfileInput {
+ s.Subnets = v
+ return s
+}
+
+// SetTags sets the Tags field's value.
+func (s *CreateFargateProfileInput) SetTags(v map[string]*string) *CreateFargateProfileInput {
+ s.Tags = v
+ return s
+}
+
+type CreateFargateProfileOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The full description of your new Fargate profile.
+ FargateProfile *FargateProfile `locationName:"fargateProfile" type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateFargateProfileOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateFargateProfileOutput) GoString() string {
return s.String()
}
@@ -6529,6 +7203,86 @@ func (s *DeleteClusterOutput) SetCluster(v *Cluster) *DeleteClusterOutput {
return s
}
+type DeleteEksAnywhereSubscriptionInput struct {
+ _ struct{} `type:"structure" nopayload:"true"`
+
+ // The ID of the subscription.
+ //
+ // Id is a required field
+ Id *string `location:"uri" locationName:"id" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteEksAnywhereSubscriptionInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteEksAnywhereSubscriptionInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteEksAnywhereSubscriptionInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteEksAnywhereSubscriptionInput"}
+ if s.Id == nil {
+ invalidParams.Add(request.NewErrParamRequired("Id"))
+ }
+ if s.Id != nil && len(*s.Id) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Id", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetId sets the Id field's value.
+func (s *DeleteEksAnywhereSubscriptionInput) SetId(v string) *DeleteEksAnywhereSubscriptionInput {
+ s.Id = &v
+ return s
+}
+
+type DeleteEksAnywhereSubscriptionOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The full description of the subscription to be deleted.
+ Subscription *EksAnywhereSubscription `locationName:"subscription" type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteEksAnywhereSubscriptionOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteEksAnywhereSubscriptionOutput) GoString() string {
+ return s.String()
+}
+
+// SetSubscription sets the Subscription field's value.
+func (s *DeleteEksAnywhereSubscriptionOutput) SetSubscription(v *EksAnywhereSubscription) *DeleteEksAnywhereSubscriptionOutput {
+ s.Subscription = v
+ return s
+}
+
type DeleteFargateProfileInput struct {
_ struct{} `type:"structure" nopayload:"true"`
@@ -7251,6 +8005,86 @@ func (s *DescribeClusterOutput) SetCluster(v *Cluster) *DescribeClusterOutput {
return s
}
+type DescribeEksAnywhereSubscriptionInput struct {
+ _ struct{} `type:"structure" nopayload:"true"`
+
+ // The ID of the subscription.
+ //
+ // Id is a required field
+ Id *string `location:"uri" locationName:"id" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeEksAnywhereSubscriptionInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeEksAnywhereSubscriptionInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DescribeEksAnywhereSubscriptionInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeEksAnywhereSubscriptionInput"}
+ if s.Id == nil {
+ invalidParams.Add(request.NewErrParamRequired("Id"))
+ }
+ if s.Id != nil && len(*s.Id) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Id", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetId sets the Id field's value.
+func (s *DescribeEksAnywhereSubscriptionInput) SetId(v string) *DescribeEksAnywhereSubscriptionInput {
+ s.Id = &v
+ return s
+}
+
+type DescribeEksAnywhereSubscriptionOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The full description of the subscription.
+ Subscription *EksAnywhereSubscription `locationName:"subscription" type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeEksAnywhereSubscriptionOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeEksAnywhereSubscriptionOutput) GoString() string {
+ return s.String()
+}
+
+// SetSubscription sets the Subscription field's value.
+func (s *DescribeEksAnywhereSubscriptionOutput) SetSubscription(v *EksAnywhereSubscription) *DescribeEksAnywhereSubscriptionOutput {
+ s.Subscription = v
+ return s
+}
+
type DescribeFargateProfileInput struct {
_ struct{} `type:"structure" nopayload:"true"`
@@ -7674,77 +8508,255 @@ type DisassociateIdentityProviderConfigInput struct {
// ClusterName is a required field
ClusterName *string `location:"uri" locationName:"name" type:"string" required:"true"`
- // An object representing an identity provider configuration.
- //
- // IdentityProviderConfig is a required field
- IdentityProviderConfig *IdentityProviderConfig `locationName:"identityProviderConfig" type:"structure" required:"true"`
+ // An object representing an identity provider configuration.
+ //
+ // IdentityProviderConfig is a required field
+ IdentityProviderConfig *IdentityProviderConfig `locationName:"identityProviderConfig" type:"structure" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DisassociateIdentityProviderConfigInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DisassociateIdentityProviderConfigInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DisassociateIdentityProviderConfigInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DisassociateIdentityProviderConfigInput"}
+ if s.ClusterName == nil {
+ invalidParams.Add(request.NewErrParamRequired("ClusterName"))
+ }
+ if s.ClusterName != nil && len(*s.ClusterName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ClusterName", 1))
+ }
+ if s.IdentityProviderConfig == nil {
+ invalidParams.Add(request.NewErrParamRequired("IdentityProviderConfig"))
+ }
+ if s.IdentityProviderConfig != nil {
+ if err := s.IdentityProviderConfig.Validate(); err != nil {
+ invalidParams.AddNested("IdentityProviderConfig", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetClientRequestToken sets the ClientRequestToken field's value.
+func (s *DisassociateIdentityProviderConfigInput) SetClientRequestToken(v string) *DisassociateIdentityProviderConfigInput {
+ s.ClientRequestToken = &v
+ return s
+}
+
+// SetClusterName sets the ClusterName field's value.
+func (s *DisassociateIdentityProviderConfigInput) SetClusterName(v string) *DisassociateIdentityProviderConfigInput {
+ s.ClusterName = &v
+ return s
+}
+
+// SetIdentityProviderConfig sets the IdentityProviderConfig field's value.
+func (s *DisassociateIdentityProviderConfigInput) SetIdentityProviderConfig(v *IdentityProviderConfig) *DisassociateIdentityProviderConfigInput {
+ s.IdentityProviderConfig = v
+ return s
+}
+
+type DisassociateIdentityProviderConfigOutput struct {
+ _ struct{} `type:"structure"`
+
+ // An object representing an asynchronous update.
+ Update *Update `locationName:"update" type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DisassociateIdentityProviderConfigOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DisassociateIdentityProviderConfigOutput) GoString() string {
+ return s.String()
+}
+
+// SetUpdate sets the Update field's value.
+func (s *DisassociateIdentityProviderConfigOutput) SetUpdate(v *Update) *DisassociateIdentityProviderConfigOutput {
+ s.Update = v
+ return s
+}
+
+// An EKS Anywhere subscription authorizing the customer to support for licensed
+// clusters and access to EKS Anywhere Curated Packages.
+type EksAnywhereSubscription struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) for the subscription.
+ Arn *string `locationName:"arn" type:"string"`
+
+ // A boolean indicating whether or not a subscription will auto renew when it
+ // expires.
+ AutoRenew *bool `locationName:"autoRenew" type:"boolean"`
+
+ // The Unix timestamp in seconds for when the subscription was created.
+ CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"`
+
+ // The Unix timestamp in seconds for when the subscription is effective.
+ EffectiveDate *time.Time `locationName:"effectiveDate" type:"timestamp"`
+
+ // The Unix timestamp in seconds for when the subscription will expire or auto
+ // renew, depending on the auto renew configuration of the subscription object.
+ ExpirationDate *time.Time `locationName:"expirationDate" type:"timestamp"`
+
+ // UUID identifying a subscription.
+ Id *string `locationName:"id" type:"string"`
+
+ // License Manager License ARNs associated with the subscription.
+ LicenseArns []*string `locationName:"licenseArns" type:"list"`
+
+ // The number of licenses included in a subscription. Valid values are between
+ // 1 and 1000.
+ LicenseQuantity *int64 `locationName:"licenseQuantity" type:"integer"`
+
+ // The type of licenses included in the subscription. Valid value is CLUSTER.
+ // With the CLUSTER license type, each license covers support for a single EKS
+ // Anywhere cluster.
+ LicenseType *string `locationName:"licenseType" type:"string" enum:"EksAnywhereSubscriptionLicenseType"`
+
+ // The status of a subscription.
+ Status *string `locationName:"status" type:"string"`
+
+ // The metadata for a subscription to assist with categorization and organization.
+ // Each tag consists of a key and an optional value. Subscription tags do not
+ // propagate to any other resources associated with the subscription.
+ Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
+
+ // An EksAnywhereSubscriptionTerm object.
+ Term *EksAnywhereSubscriptionTerm `locationName:"term" type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s EksAnywhereSubscription) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s EksAnywhereSubscription) GoString() string {
+ return s.String()
+}
+
+// SetArn sets the Arn field's value.
+func (s *EksAnywhereSubscription) SetArn(v string) *EksAnywhereSubscription {
+ s.Arn = &v
+ return s
+}
+
+// SetAutoRenew sets the AutoRenew field's value.
+func (s *EksAnywhereSubscription) SetAutoRenew(v bool) *EksAnywhereSubscription {
+ s.AutoRenew = &v
+ return s
+}
+
+// SetCreatedAt sets the CreatedAt field's value.
+func (s *EksAnywhereSubscription) SetCreatedAt(v time.Time) *EksAnywhereSubscription {
+ s.CreatedAt = &v
+ return s
+}
+
+// SetEffectiveDate sets the EffectiveDate field's value.
+func (s *EksAnywhereSubscription) SetEffectiveDate(v time.Time) *EksAnywhereSubscription {
+ s.EffectiveDate = &v
+ return s
+}
+
+// SetExpirationDate sets the ExpirationDate field's value.
+func (s *EksAnywhereSubscription) SetExpirationDate(v time.Time) *EksAnywhereSubscription {
+ s.ExpirationDate = &v
+ return s
}
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s DisassociateIdentityProviderConfigInput) String() string {
- return awsutil.Prettify(s)
+// SetId sets the Id field's value.
+func (s *EksAnywhereSubscription) SetId(v string) *EksAnywhereSubscription {
+ s.Id = &v
+ return s
}
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s DisassociateIdentityProviderConfigInput) GoString() string {
- return s.String()
+// SetLicenseArns sets the LicenseArns field's value.
+func (s *EksAnywhereSubscription) SetLicenseArns(v []*string) *EksAnywhereSubscription {
+ s.LicenseArns = v
+ return s
}
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *DisassociateIdentityProviderConfigInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DisassociateIdentityProviderConfigInput"}
- if s.ClusterName == nil {
- invalidParams.Add(request.NewErrParamRequired("ClusterName"))
- }
- if s.ClusterName != nil && len(*s.ClusterName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ClusterName", 1))
- }
- if s.IdentityProviderConfig == nil {
- invalidParams.Add(request.NewErrParamRequired("IdentityProviderConfig"))
- }
- if s.IdentityProviderConfig != nil {
- if err := s.IdentityProviderConfig.Validate(); err != nil {
- invalidParams.AddNested("IdentityProviderConfig", err.(request.ErrInvalidParams))
- }
- }
+// SetLicenseQuantity sets the LicenseQuantity field's value.
+func (s *EksAnywhereSubscription) SetLicenseQuantity(v int64) *EksAnywhereSubscription {
+ s.LicenseQuantity = &v
+ return s
+}
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
+// SetLicenseType sets the LicenseType field's value.
+func (s *EksAnywhereSubscription) SetLicenseType(v string) *EksAnywhereSubscription {
+ s.LicenseType = &v
+ return s
}
-// SetClientRequestToken sets the ClientRequestToken field's value.
-func (s *DisassociateIdentityProviderConfigInput) SetClientRequestToken(v string) *DisassociateIdentityProviderConfigInput {
- s.ClientRequestToken = &v
+// SetStatus sets the Status field's value.
+func (s *EksAnywhereSubscription) SetStatus(v string) *EksAnywhereSubscription {
+ s.Status = &v
return s
}
-// SetClusterName sets the ClusterName field's value.
-func (s *DisassociateIdentityProviderConfigInput) SetClusterName(v string) *DisassociateIdentityProviderConfigInput {
- s.ClusterName = &v
+// SetTags sets the Tags field's value.
+func (s *EksAnywhereSubscription) SetTags(v map[string]*string) *EksAnywhereSubscription {
+ s.Tags = v
return s
}
-// SetIdentityProviderConfig sets the IdentityProviderConfig field's value.
-func (s *DisassociateIdentityProviderConfigInput) SetIdentityProviderConfig(v *IdentityProviderConfig) *DisassociateIdentityProviderConfigInput {
- s.IdentityProviderConfig = v
+// SetTerm sets the Term field's value.
+func (s *EksAnywhereSubscription) SetTerm(v *EksAnywhereSubscriptionTerm) *EksAnywhereSubscription {
+ s.Term = v
return s
}
-type DisassociateIdentityProviderConfigOutput struct {
+// An object representing the term duration and term unit type of your subscription.
+// This determines the term length of your subscription. Valid values are MONTHS
+// for term unit and 12 or 36 for term duration, indicating a 12 month or 36
+// month subscription.
+type EksAnywhereSubscriptionTerm struct {
_ struct{} `type:"structure"`
- // An object representing an asynchronous update.
- Update *Update `locationName:"update" type:"structure"`
+ // The duration of the subscription term. Valid values are 12 and 36, indicating
+ // a 12 month or 36 month subscription.
+ Duration *int64 `locationName:"duration" type:"integer"`
+
+ // The term unit of the subscription. Valid value is MONTHS.
+ Unit *string `locationName:"unit" type:"string" enum:"EksAnywhereSubscriptionTermUnit"`
}
// String returns the string representation.
@@ -7752,7 +8764,7 @@ type DisassociateIdentityProviderConfigOutput struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DisassociateIdentityProviderConfigOutput) String() string {
+func (s EksAnywhereSubscriptionTerm) String() string {
return awsutil.Prettify(s)
}
@@ -7761,13 +8773,19 @@ func (s DisassociateIdentityProviderConfigOutput) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DisassociateIdentityProviderConfigOutput) GoString() string {
+func (s EksAnywhereSubscriptionTerm) GoString() string {
return s.String()
}
-// SetUpdate sets the Update field's value.
-func (s *DisassociateIdentityProviderConfigOutput) SetUpdate(v *Update) *DisassociateIdentityProviderConfigOutput {
- s.Update = v
+// SetDuration sets the Duration field's value.
+func (s *EksAnywhereSubscriptionTerm) SetDuration(v int64) *EksAnywhereSubscriptionTerm {
+ s.Duration = &v
+ return s
+}
+
+// SetUnit sets the Unit field's value.
+func (s *EksAnywhereSubscriptionTerm) SetUnit(v string) *EksAnywhereSubscriptionTerm {
+ s.Unit = &v
return s
}
@@ -8179,6 +9197,9 @@ type InvalidParameterException struct {
// The Amazon EKS managed node group associated with the exception.
NodegroupName *string `locationName:"nodegroupName" type:"string"`
+
+ // The Amazon EKS subscription ID with the exception.
+ SubscriptionId *string `locationName:"subscriptionId" type:"string"`
}
// String returns the string representation.
@@ -8252,6 +9273,9 @@ type InvalidRequestException struct {
// The Amazon EKS managed node group associated with the exception.
NodegroupName *string `locationName:"nodegroupName" type:"string"`
+
+ // The Amazon EKS subscription ID with the exception.
+ SubscriptionId *string `locationName:"subscriptionId" type:"string"`
}
// String returns the string representation.
@@ -8712,7 +9736,7 @@ func (s *ListAddonsInput) SetNextToken(v string) *ListAddonsInput {
type ListAddonsOutput struct {
_ struct{} `type:"structure"`
- // A list of available add-ons.
+ // A list of installed add-ons.
Addons []*string `locationName:"addons" type:"list"`
// The nextToken value returned from a previous paginated ListAddonsResponse
@@ -8874,6 +9898,122 @@ func (s *ListClustersOutput) SetNextToken(v string) *ListClustersOutput {
return s
}
+type ListEksAnywhereSubscriptionsInput struct {
+ _ struct{} `type:"structure" nopayload:"true"`
+
+ // An array of subscription statuses to filter on.
+ IncludeStatus []*string `location:"querystring" locationName:"includeStatus" type:"list" enum:"EksAnywhereSubscriptionStatus"`
+
+ // The maximum number of cluster results returned by ListEksAnywhereSubscriptions
+ // in paginated output. When you use this parameter, ListEksAnywhereSubscriptions
+ // returns only maxResults results in a single page along with a nextToken response
+ // element. You can see the remaining results of the initial request by sending
+ // another ListEksAnywhereSubscriptions request with the returned nextToken
+ // value. This value can be between 1 and 100. If you don't use this parameter,
+ // ListEksAnywhereSubscriptions returns up to 10 results and a nextToken value
+ // if applicable.
+ MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
+
+ // The nextToken value to include in a future ListEksAnywhereSubscriptions request.
+ // When the results of a ListEksAnywhereSubscriptions request exceed maxResults,
+ // you can use this value to retrieve the next page of results. This value is
+ // null when there are no more results to return.
+ NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ListEksAnywhereSubscriptionsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ListEksAnywhereSubscriptionsInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ListEksAnywhereSubscriptionsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListEksAnywhereSubscriptionsInput"}
+ if s.MaxResults != nil && *s.MaxResults < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetIncludeStatus sets the IncludeStatus field's value.
+func (s *ListEksAnywhereSubscriptionsInput) SetIncludeStatus(v []*string) *ListEksAnywhereSubscriptionsInput {
+ s.IncludeStatus = v
+ return s
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *ListEksAnywhereSubscriptionsInput) SetMaxResults(v int64) *ListEksAnywhereSubscriptionsInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListEksAnywhereSubscriptionsInput) SetNextToken(v string) *ListEksAnywhereSubscriptionsInput {
+ s.NextToken = &v
+ return s
+}
+
+type ListEksAnywhereSubscriptionsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The nextToken value to include in a future ListEksAnywhereSubscriptions request.
+ // When the results of a ListEksAnywhereSubscriptions request exceed maxResults,
+ // you can use this value to retrieve the next page of results. This value is
+ // null when there are no more results to return.
+ NextToken *string `locationName:"nextToken" type:"string"`
+
+ // A list of all subscription objects in the region, filtered by includeStatus
+ // and paginated by nextToken and maxResults.
+ Subscriptions []*EksAnywhereSubscription `locationName:"subscriptions" type:"list"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ListEksAnywhereSubscriptionsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ListEksAnywhereSubscriptionsOutput) GoString() string {
+ return s.String()
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListEksAnywhereSubscriptionsOutput) SetNextToken(v string) *ListEksAnywhereSubscriptionsOutput {
+ s.NextToken = &v
+ return s
+}
+
+// SetSubscriptions sets the Subscriptions field's value.
+func (s *ListEksAnywhereSubscriptionsOutput) SetSubscriptions(v []*EksAnywhereSubscription) *ListEksAnywhereSubscriptionsOutput {
+ s.Subscriptions = v
+ return s
+}
+
type ListFargateProfilesInput struct {
_ struct{} `type:"structure" nopayload:"true"`
@@ -10599,10 +11739,11 @@ func (s *OutpostConfigResponse) SetOutpostArns(v []*string) *OutpostConfigRespon
type Provider struct {
_ struct{} `type:"structure"`
- // Amazon Resource Name (ARN) or alias of the KMS key. The KMS key must be symmetric,
- // created in the same region as the cluster, and if the KMS key was created
- // in a different account, the user must have access to the KMS key. For more
- // information, see Allowing Users in Other Accounts to Use a KMS key (https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-modifying-external-accounts.html)
+ // Amazon Resource Name (ARN) or alias of the KMS key. The KMS key must be symmetric
+ // and created in the same Amazon Web Services Region as the cluster. If the
+ // KMS key was created in a different account, the IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+ // must have access to the KMS key. For more information, see Allowing users
+ // in other accounts to use a KMS key (https://docs.aws.amazon.com/kms/latest/developerguide/key-policy-modifying-external-accounts.html)
// in the Key Management Service Developer Guide.
KeyArn *string `locationName:"keyArn" type:"string"`
}
@@ -10893,6 +12034,9 @@ type ResourceLimitExceededException struct {
// The Amazon EKS managed node group associated with the exception.
NodegroupName *string `locationName:"nodegroupName" type:"string"`
+
+ // The Amazon EKS subscription ID with the exception.
+ SubscriptionId *string `locationName:"subscriptionId" type:"string"`
}
// String returns the string representation.
@@ -10970,6 +12114,9 @@ type ResourceNotFoundException struct {
// The Amazon EKS managed node group associated with the exception.
NodegroupName *string `locationName:"nodegroupName" type:"string"`
+
+ // The Amazon EKS subscription ID with the exception.
+ SubscriptionId *string `locationName:"subscriptionId" type:"string"`
}
// String returns the string representation.
@@ -11107,6 +12254,9 @@ type ServerException struct {
// The Amazon EKS managed node group associated with the exception.
NodegroupName *string `locationName:"nodegroupName" type:"string"`
+
+ // The Amazon EKS subscription ID with the exception.
+ SubscriptionId *string `locationName:"subscriptionId" type:"string"`
}
// String returns the string representation.
@@ -12017,6 +13167,107 @@ func (s *UpdateClusterVersionOutput) SetUpdate(v *Update) *UpdateClusterVersionO
return s
}
+type UpdateEksAnywhereSubscriptionInput struct {
+ _ struct{} `type:"structure"`
+
+ // A boolean indicating whether or not to automatically renew the subscription.
+ //
+ // AutoRenew is a required field
+ AutoRenew *bool `locationName:"autoRenew" type:"boolean" required:"true"`
+
+ // Unique, case-sensitive identifier to ensure the idempotency of the request.
+ ClientRequestToken *string `locationName:"clientRequestToken" type:"string" idempotencyToken:"true"`
+
+ // Id is a required field
+ Id *string `location:"uri" locationName:"id" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UpdateEksAnywhereSubscriptionInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UpdateEksAnywhereSubscriptionInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *UpdateEksAnywhereSubscriptionInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "UpdateEksAnywhereSubscriptionInput"}
+ if s.AutoRenew == nil {
+ invalidParams.Add(request.NewErrParamRequired("AutoRenew"))
+ }
+ if s.Id == nil {
+ invalidParams.Add(request.NewErrParamRequired("Id"))
+ }
+ if s.Id != nil && len(*s.Id) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Id", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAutoRenew sets the AutoRenew field's value.
+func (s *UpdateEksAnywhereSubscriptionInput) SetAutoRenew(v bool) *UpdateEksAnywhereSubscriptionInput {
+ s.AutoRenew = &v
+ return s
+}
+
+// SetClientRequestToken sets the ClientRequestToken field's value.
+func (s *UpdateEksAnywhereSubscriptionInput) SetClientRequestToken(v string) *UpdateEksAnywhereSubscriptionInput {
+ s.ClientRequestToken = &v
+ return s
+}
+
+// SetId sets the Id field's value.
+func (s *UpdateEksAnywhereSubscriptionInput) SetId(v string) *UpdateEksAnywhereSubscriptionInput {
+ s.Id = &v
+ return s
+}
+
+type UpdateEksAnywhereSubscriptionOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The full description of the updated subscription.
+ Subscription *EksAnywhereSubscription `locationName:"subscription" type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UpdateEksAnywhereSubscriptionOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UpdateEksAnywhereSubscriptionOutput) GoString() string {
+ return s.String()
+}
+
+// SetSubscription sets the Subscription field's value.
+func (s *UpdateEksAnywhereSubscriptionOutput) SetSubscription(v *EksAnywhereSubscription) *UpdateEksAnywhereSubscriptionOutput {
+ s.Subscription = v
+ return s
+}
+
// An object representing a Kubernetes label change for a managed node group.
type UpdateLabelsPayload struct {
_ struct{} `type:"structure"`
@@ -13036,6 +14287,62 @@ func ConnectorConfigProvider_Values() []string {
}
}
+const (
+ // EksAnywhereSubscriptionLicenseTypeCluster is a EksAnywhereSubscriptionLicenseType enum value
+ EksAnywhereSubscriptionLicenseTypeCluster = "Cluster"
+)
+
+// EksAnywhereSubscriptionLicenseType_Values returns all elements of the EksAnywhereSubscriptionLicenseType enum
+func EksAnywhereSubscriptionLicenseType_Values() []string {
+ return []string{
+ EksAnywhereSubscriptionLicenseTypeCluster,
+ }
+}
+
+const (
+ // EksAnywhereSubscriptionStatusCreating is a EksAnywhereSubscriptionStatus enum value
+ EksAnywhereSubscriptionStatusCreating = "CREATING"
+
+ // EksAnywhereSubscriptionStatusActive is a EksAnywhereSubscriptionStatus enum value
+ EksAnywhereSubscriptionStatusActive = "ACTIVE"
+
+ // EksAnywhereSubscriptionStatusUpdating is a EksAnywhereSubscriptionStatus enum value
+ EksAnywhereSubscriptionStatusUpdating = "UPDATING"
+
+ // EksAnywhereSubscriptionStatusExpiring is a EksAnywhereSubscriptionStatus enum value
+ EksAnywhereSubscriptionStatusExpiring = "EXPIRING"
+
+ // EksAnywhereSubscriptionStatusExpired is a EksAnywhereSubscriptionStatus enum value
+ EksAnywhereSubscriptionStatusExpired = "EXPIRED"
+
+ // EksAnywhereSubscriptionStatusDeleting is a EksAnywhereSubscriptionStatus enum value
+ EksAnywhereSubscriptionStatusDeleting = "DELETING"
+)
+
+// EksAnywhereSubscriptionStatus_Values returns all elements of the EksAnywhereSubscriptionStatus enum
+func EksAnywhereSubscriptionStatus_Values() []string {
+ return []string{
+ EksAnywhereSubscriptionStatusCreating,
+ EksAnywhereSubscriptionStatusActive,
+ EksAnywhereSubscriptionStatusUpdating,
+ EksAnywhereSubscriptionStatusExpiring,
+ EksAnywhereSubscriptionStatusExpired,
+ EksAnywhereSubscriptionStatusDeleting,
+ }
+}
+
+const (
+ // EksAnywhereSubscriptionTermUnitMonths is a EksAnywhereSubscriptionTermUnit enum value
+ EksAnywhereSubscriptionTermUnitMonths = "MONTHS"
+)
+
+// EksAnywhereSubscriptionTermUnit_Values returns all elements of the EksAnywhereSubscriptionTermUnit enum
+func EksAnywhereSubscriptionTermUnit_Values() []string {
+ return []string{
+ EksAnywhereSubscriptionTermUnitMonths,
+ }
+}
+
const (
// ErrorCodeSubnetNotFound is a ErrorCode enum value
ErrorCodeSubnetNotFound = "SubnetNotFound"
diff --git a/service/eks/eksiface/interface.go b/service/eks/eksiface/interface.go
index eb7063eb34a..fa5ff7eedc7 100644
--- a/service/eks/eksiface/interface.go
+++ b/service/eks/eksiface/interface.go
@@ -76,6 +76,10 @@ type EKSAPI interface {
CreateClusterWithContext(aws.Context, *eks.CreateClusterInput, ...request.Option) (*eks.CreateClusterOutput, error)
CreateClusterRequest(*eks.CreateClusterInput) (*request.Request, *eks.CreateClusterOutput)
+ CreateEksAnywhereSubscription(*eks.CreateEksAnywhereSubscriptionInput) (*eks.CreateEksAnywhereSubscriptionOutput, error)
+ CreateEksAnywhereSubscriptionWithContext(aws.Context, *eks.CreateEksAnywhereSubscriptionInput, ...request.Option) (*eks.CreateEksAnywhereSubscriptionOutput, error)
+ CreateEksAnywhereSubscriptionRequest(*eks.CreateEksAnywhereSubscriptionInput) (*request.Request, *eks.CreateEksAnywhereSubscriptionOutput)
+
CreateFargateProfile(*eks.CreateFargateProfileInput) (*eks.CreateFargateProfileOutput, error)
CreateFargateProfileWithContext(aws.Context, *eks.CreateFargateProfileInput, ...request.Option) (*eks.CreateFargateProfileOutput, error)
CreateFargateProfileRequest(*eks.CreateFargateProfileInput) (*request.Request, *eks.CreateFargateProfileOutput)
@@ -92,6 +96,10 @@ type EKSAPI interface {
DeleteClusterWithContext(aws.Context, *eks.DeleteClusterInput, ...request.Option) (*eks.DeleteClusterOutput, error)
DeleteClusterRequest(*eks.DeleteClusterInput) (*request.Request, *eks.DeleteClusterOutput)
+ DeleteEksAnywhereSubscription(*eks.DeleteEksAnywhereSubscriptionInput) (*eks.DeleteEksAnywhereSubscriptionOutput, error)
+ DeleteEksAnywhereSubscriptionWithContext(aws.Context, *eks.DeleteEksAnywhereSubscriptionInput, ...request.Option) (*eks.DeleteEksAnywhereSubscriptionOutput, error)
+ DeleteEksAnywhereSubscriptionRequest(*eks.DeleteEksAnywhereSubscriptionInput) (*request.Request, *eks.DeleteEksAnywhereSubscriptionOutput)
+
DeleteFargateProfile(*eks.DeleteFargateProfileInput) (*eks.DeleteFargateProfileOutput, error)
DeleteFargateProfileWithContext(aws.Context, *eks.DeleteFargateProfileInput, ...request.Option) (*eks.DeleteFargateProfileOutput, error)
DeleteFargateProfileRequest(*eks.DeleteFargateProfileInput) (*request.Request, *eks.DeleteFargateProfileOutput)
@@ -123,6 +131,10 @@ type EKSAPI interface {
DescribeClusterWithContext(aws.Context, *eks.DescribeClusterInput, ...request.Option) (*eks.DescribeClusterOutput, error)
DescribeClusterRequest(*eks.DescribeClusterInput) (*request.Request, *eks.DescribeClusterOutput)
+ DescribeEksAnywhereSubscription(*eks.DescribeEksAnywhereSubscriptionInput) (*eks.DescribeEksAnywhereSubscriptionOutput, error)
+ DescribeEksAnywhereSubscriptionWithContext(aws.Context, *eks.DescribeEksAnywhereSubscriptionInput, ...request.Option) (*eks.DescribeEksAnywhereSubscriptionOutput, error)
+ DescribeEksAnywhereSubscriptionRequest(*eks.DescribeEksAnywhereSubscriptionInput) (*request.Request, *eks.DescribeEksAnywhereSubscriptionOutput)
+
DescribeFargateProfile(*eks.DescribeFargateProfileInput) (*eks.DescribeFargateProfileOutput, error)
DescribeFargateProfileWithContext(aws.Context, *eks.DescribeFargateProfileInput, ...request.Option) (*eks.DescribeFargateProfileOutput, error)
DescribeFargateProfileRequest(*eks.DescribeFargateProfileInput) (*request.Request, *eks.DescribeFargateProfileOutput)
@@ -157,6 +169,10 @@ type EKSAPI interface {
ListClustersPages(*eks.ListClustersInput, func(*eks.ListClustersOutput, bool) bool) error
ListClustersPagesWithContext(aws.Context, *eks.ListClustersInput, func(*eks.ListClustersOutput, bool) bool, ...request.Option) error
+ ListEksAnywhereSubscriptions(*eks.ListEksAnywhereSubscriptionsInput) (*eks.ListEksAnywhereSubscriptionsOutput, error)
+ ListEksAnywhereSubscriptionsWithContext(aws.Context, *eks.ListEksAnywhereSubscriptionsInput, ...request.Option) (*eks.ListEksAnywhereSubscriptionsOutput, error)
+ ListEksAnywhereSubscriptionsRequest(*eks.ListEksAnywhereSubscriptionsInput) (*request.Request, *eks.ListEksAnywhereSubscriptionsOutput)
+
ListFargateProfiles(*eks.ListFargateProfilesInput) (*eks.ListFargateProfilesOutput, error)
ListFargateProfilesWithContext(aws.Context, *eks.ListFargateProfilesInput, ...request.Option) (*eks.ListFargateProfilesOutput, error)
ListFargateProfilesRequest(*eks.ListFargateProfilesInput) (*request.Request, *eks.ListFargateProfilesOutput)
@@ -213,6 +229,10 @@ type EKSAPI interface {
UpdateClusterVersionWithContext(aws.Context, *eks.UpdateClusterVersionInput, ...request.Option) (*eks.UpdateClusterVersionOutput, error)
UpdateClusterVersionRequest(*eks.UpdateClusterVersionInput) (*request.Request, *eks.UpdateClusterVersionOutput)
+ UpdateEksAnywhereSubscription(*eks.UpdateEksAnywhereSubscriptionInput) (*eks.UpdateEksAnywhereSubscriptionOutput, error)
+ UpdateEksAnywhereSubscriptionWithContext(aws.Context, *eks.UpdateEksAnywhereSubscriptionInput, ...request.Option) (*eks.UpdateEksAnywhereSubscriptionOutput, error)
+ UpdateEksAnywhereSubscriptionRequest(*eks.UpdateEksAnywhereSubscriptionInput) (*request.Request, *eks.UpdateEksAnywhereSubscriptionOutput)
+
UpdateNodegroupConfig(*eks.UpdateNodegroupConfigInput) (*eks.UpdateNodegroupConfigOutput, error)
UpdateNodegroupConfigWithContext(aws.Context, *eks.UpdateNodegroupConfigInput, ...request.Option) (*eks.UpdateNodegroupConfigOutput, error)
UpdateNodegroupConfigRequest(*eks.UpdateNodegroupConfigInput) (*request.Request, *eks.UpdateNodegroupConfigOutput)
diff --git a/service/eks/errors.go b/service/eks/errors.go
index 19ea7424a1e..ad8048119db 100644
--- a/service/eks/errors.go
+++ b/service/eks/errors.go
@@ -11,11 +11,12 @@ const (
// ErrCodeAccessDeniedException for service response error code
// "AccessDeniedException".
//
- // You don't have permissions to perform the requested operation. The user or
- // role that is making the request must have at least one IAM permissions policy
- // attached that grants the required permissions. For more information, see
- // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html)
- // in the IAM User Guide.
+ // You don't have permissions to perform the requested operation. The IAM principal
+ // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+ // making the request must have at least one IAM permissions policy attached
+ // that grants the required permissions. For more information, see Access management
+ // (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) in the IAM
+ // User Guide.
ErrCodeAccessDeniedException = "AccessDeniedException"
// ErrCodeBadRequestException for service response error code
@@ -29,8 +30,9 @@ const (
// "ClientException".
//
// These errors are usually caused by a client action. Actions can include using
- // an action or resource on behalf of a user that doesn't have permissions to
- // use the action or resource or specifying an identifier that is not valid.
+ // an action or resource on behalf of an IAM principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html)
+ // that doesn't have permissions to use the action or resource or specifying
+ // an identifier that is not valid.
ErrCodeClientException = "ClientException"
// ErrCodeInvalidParameterException for service response error code
diff --git a/service/lambda/api.go b/service/lambda/api.go
index 45fd2d00093..35a667e037c 100644
--- a/service/lambda/api.go
+++ b/service/lambda/api.go
@@ -23011,6 +23011,9 @@ const (
// RuntimeNodejs20X is a Runtime enum value
RuntimeNodejs20X = "nodejs20.x"
+
+ // RuntimeProvidedAl2023 is a Runtime enum value
+ RuntimeProvidedAl2023 = "provided.al2023"
)
// Runtime_Values returns all elements of the Runtime enum
@@ -23049,6 +23052,7 @@ func Runtime_Values() []string {
RuntimeRuby32,
RuntimePython311,
RuntimeNodejs20X,
+ RuntimeProvidedAl2023,
}
}
diff --git a/service/omics/api.go b/service/omics/api.go
index 6f4f4a31498..5d260d20c60 100644
--- a/service/omics/api.go
+++ b/service/omics/api.go
@@ -11174,9 +11174,7 @@ type CreateMultipartReadSetUploadInput struct {
Name *string `locationName:"name" min:"1" type:"string" required:"true"`
// The ARN of the reference.
- //
- // ReferenceArn is a required field
- ReferenceArn *string `locationName:"referenceArn" min:"1" type:"string" required:"true"`
+ ReferenceArn *string `locationName:"referenceArn" min:"1" type:"string"`
// The source's sample ID.
//
@@ -11239,9 +11237,6 @@ func (s *CreateMultipartReadSetUploadInput) Validate() error {
if s.Name != nil && len(*s.Name) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Name", 1))
}
- if s.ReferenceArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ReferenceArn"))
- }
if s.ReferenceArn != nil && len(*s.ReferenceArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ReferenceArn", 1))
}
@@ -21286,7 +21281,7 @@ type ReadSetFilter struct {
Name *string `locationName:"name" min:"1" type:"string"`
// A genome reference ARN to filter on.
- ReferenceArn *string `locationName:"referenceArn" min:"1" type:"string"`
+ ReferenceArn *string `locationName:"referenceArn" type:"string"`
// The read set source's sample ID.
SampleId *string `locationName:"sampleId" min:"1" type:"string"`
@@ -21325,9 +21320,6 @@ func (s *ReadSetFilter) Validate() error {
if s.Name != nil && len(*s.Name) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Name", 1))
}
- if s.ReferenceArn != nil && len(*s.ReferenceArn) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ReferenceArn", 1))
- }
if s.SampleId != nil && len(*s.SampleId) < 1 {
invalidParams.Add(request.NewErrParamMinLen("SampleId", 1))
}
@@ -23763,9 +23755,7 @@ type StartReadSetImportJobSourceItem struct {
Name *string `locationName:"name" min:"1" type:"string"`
// The source's reference ARN.
- //
- // ReferenceArn is a required field
- ReferenceArn *string `locationName:"referenceArn" min:"1" type:"string" required:"true"`
+ ReferenceArn *string `locationName:"referenceArn" min:"1" type:"string"`
// The source's sample ID.
//
@@ -23821,9 +23811,6 @@ func (s *StartReadSetImportJobSourceItem) Validate() error {
if s.Name != nil && len(*s.Name) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Name", 1))
}
- if s.ReferenceArn == nil {
- invalidParams.Add(request.NewErrParamRequired("ReferenceArn"))
- }
if s.ReferenceArn != nil && len(*s.ReferenceArn) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ReferenceArn", 1))
}
@@ -26844,6 +26831,9 @@ const (
// FileTypeCram is a FileType enum value
FileTypeCram = "CRAM"
+
+ // FileTypeUbam is a FileType enum value
+ FileTypeUbam = "UBAM"
)
// FileType_Values returns all elements of the FileType enum
@@ -26852,6 +26842,7 @@ func FileType_Values() []string {
FileTypeFastq,
FileTypeBam,
FileTypeCram,
+ FileTypeUbam,
}
}