From b843e7153c864b0a15a449342ce2c1019a566e83 Mon Sep 17 00:00:00 2001 From: aws-sdk-go-automation <43143561+aws-sdk-go-automation@users.noreply.github.com> Date: Wed, 24 Feb 2021 11:46:46 -0800 Subject: [PATCH] Release v1.37.18 (2021-02-24) (#3798) Release v1.37.18 (2021-02-24) === ### Service Client Updates * `service/appflow`: Updates service API and documentation * `service/compute-optimizer`: Updates service documentation * `service/ecr-public`: Updates service API and documentation * `service/es`: Updates service API, documentation, and paginators * Amazon Elasticsearch Service now supports Auto-Tune, which monitors performance metrics and automatically optimizes domains * `service/mediapackage-vod`: Updates service API and documentation --- CHANGELOG.md | 11 + aws/version.go | 2 +- models/apis/appflow/2020-08-23/api-2.json | 74 +- models/apis/appflow/2020-08-23/docs-2.json | 63 +- .../compute-optimizer/2019-11-01/docs-2.json | 8 +- models/apis/ecr-public/2020-10-30/api-2.json | 139 ++- models/apis/ecr-public/2020-10-30/docs-2.json | 83 +- models/apis/es/2015-01-01/api-2.json | 197 +++- models/apis/es/2015-01-01/docs-2.json | 164 +++ models/apis/es/2015-01-01/paginators-1.json | 5 + .../mediapackage-vod/2018-11-07/api-2.json | 122 +++ .../mediapackage-vod/2018-11-07/docs-2.json | 14 + service/appflow/api.go | 288 ++++++ service/computeoptimizer/api.go | 42 +- service/ecrpublic/api.go | 691 +++++++++++++ service/ecrpublic/ecrpubliciface/interface.go | 12 + service/ecrpublic/errors.go | 17 + service/elasticsearchservice/api.go | 975 +++++++++++++++++- .../elasticsearchserviceiface/interface.go | 7 + service/mediapackagevod/api.go | 270 +++++ .../mediapackagevodiface/interface.go | 8 +- 21 files changed, 3147 insertions(+), 45 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 00511615f36..25c2563a0fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,14 @@ +Release v1.37.18 (2021-02-24) +=== + +### Service Client Updates +* `service/appflow`: Updates service API and documentation +* `service/compute-optimizer`: Updates service documentation +* `service/ecr-public`: Updates service API and documentation +* `service/es`: Updates service API, documentation, and paginators + * Amazon Elasticsearch Service now supports Auto-Tune, which monitors performance metrics and automatically optimizes domains +* `service/mediapackage-vod`: Updates service API and documentation + Release v1.37.17 (2021-02-23) === diff --git a/aws/version.go b/aws/version.go index 799250a1991..783d5b67d90 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.37.17" +const SDKVersion = "1.37.18" diff --git a/models/apis/appflow/2020-08-23/api-2.json b/models/apis/appflow/2020-08-23/api-2.json index 530341e1b95..47b4e1d9b6e 100644 --- a/models/apis/appflow/2020-08-23/api-2.json +++ b/models/apis/appflow/2020-08-23/api-2.json @@ -498,7 +498,9 @@ "Veeva":{"shape":"VeevaMetadata"}, "Zendesk":{"shape":"ZendeskMetadata"}, "EventBridge":{"shape":"EventBridgeMetadata"}, - "Upsolver":{"shape":"UpsolverMetadata"} + "Upsolver":{"shape":"UpsolverMetadata"}, + "CustomerProfiles":{"shape":"CustomerProfilesMetadata"}, + "Honeycode":{"shape":"HoneycodeMetadata"} } }, "ConnectorOAuthRequest":{ @@ -563,6 +565,7 @@ "Datadog":{"shape":"DatadogConnectorProfileCredentials"}, "Dynatrace":{"shape":"DynatraceConnectorProfileCredentials"}, "GoogleAnalytics":{"shape":"GoogleAnalyticsConnectorProfileCredentials"}, + "Honeycode":{"shape":"HoneycodeConnectorProfileCredentials"}, "InforNexus":{"shape":"InforNexusConnectorProfileCredentials"}, "Marketo":{"shape":"MarketoConnectorProfileCredentials"}, "Redshift":{"shape":"RedshiftConnectorProfileCredentials"}, @@ -598,6 +601,7 @@ "Datadog":{"shape":"DatadogConnectorProfileProperties"}, "Dynatrace":{"shape":"DynatraceConnectorProfileProperties"}, "GoogleAnalytics":{"shape":"GoogleAnalyticsConnectorProfileProperties"}, + "Honeycode":{"shape":"HoneycodeConnectorProfileProperties"}, "InforNexus":{"shape":"InforNexusConnectorProfileProperties"}, "Marketo":{"shape":"MarketoConnectorProfileProperties"}, "Redshift":{"shape":"RedshiftConnectorProfileProperties"}, @@ -639,7 +643,10 @@ "Amplitude", "Veeva", "EventBridge", - "Upsolver" + "LookoutMetrics", + "Upsolver", + "Honeycode", + "CustomerProfiles" ] }, "ConnectorTypeList":{ @@ -702,6 +709,19 @@ "max":256, "pattern":"\\S+" }, + "CustomerProfilesDestinationProperties":{ + "type":"structure", + "required":["domainName"], + "members":{ + "domainName":{"shape":"DomainName"}, + "objectTypeName":{"shape":"ObjectTypeName"} + } + }, + "CustomerProfilesMetadata":{ + "type":"structure", + "members":{ + } + }, "DataPullMode":{ "type":"string", "enum":[ @@ -899,7 +919,10 @@ "Salesforce":{"shape":"SalesforceDestinationProperties"}, "Snowflake":{"shape":"SnowflakeDestinationProperties"}, "EventBridge":{"shape":"EventBridgeDestinationProperties"}, - "Upsolver":{"shape":"UpsolverDestinationProperties"} + "LookoutMetrics":{"shape":"LookoutMetricsDestinationProperties"}, + "Upsolver":{"shape":"UpsolverDestinationProperties"}, + "Honeycode":{"shape":"HoneycodeDestinationProperties"}, + "CustomerProfiles":{"shape":"CustomerProfilesDestinationProperties"} } }, "DestinationField":{ @@ -933,6 +956,11 @@ "type":"list", "member":{"shape":"DestinationFlowConfig"} }, + "DomainName":{ + "type":"string", + "max":64, + "pattern":"\\S+" + }, "DynatraceConnectorOperator":{ "type":"string", "enum":[ @@ -1190,6 +1218,33 @@ "max":128, "pattern":"\\S+" }, + "HoneycodeConnectorProfileCredentials":{ + "type":"structure", + "members":{ + "accessToken":{"shape":"AccessToken"}, + "refreshToken":{"shape":"RefreshToken"}, + "oAuthRequest":{"shape":"ConnectorOAuthRequest"} + } + }, + "HoneycodeConnectorProfileProperties":{ + "type":"structure", + "members":{ + } + }, + "HoneycodeDestinationProperties":{ + "type":"structure", + "required":["object"], + "members":{ + "object":{"shape":"Object"}, + "errorHandlingConfig":{"shape":"ErrorHandlingConfig"} + } + }, + "HoneycodeMetadata":{ + "type":"structure", + "members":{ + "oAuthScopes":{"shape":"OAuthScopeList"} + } + }, "IdFieldNameList":{ "type":"list", "member":{"shape":"Name"}, @@ -1337,6 +1392,11 @@ } }, "Long":{"type":"long"}, + "LookoutMetricsDestinationProperties":{ + "type":"structure", + "members":{ + } + }, "MarketoConnectorOperator":{ "type":"string", "enum":[ @@ -1424,6 +1484,11 @@ "max":512, "pattern":"\\S+" }, + "ObjectTypeName":{ + "type":"string", + "max":255, + "pattern":"\\S+" + }, "Operator":{ "type":"string", "enum":[ @@ -1740,7 +1805,8 @@ "scheduleOffset":{ "shape":"ScheduleOffset", "box":true - } + }, + "firstExecutionFrom":{"shape":"Date"} } }, "SchedulingFrequencyTypeList":{ diff --git a/models/apis/appflow/2020-08-23/docs-2.json b/models/apis/appflow/2020-08-23/docs-2.json index d982aac50de..e8d54c68c02 100644 --- a/models/apis/appflow/2020-08-23/docs-2.json +++ b/models/apis/appflow/2020-08-23/docs-2.json @@ -41,6 +41,7 @@ "base": null, "refs": { "GoogleAnalyticsConnectorProfileCredentials$accessToken": "

The credentials used to access protected Google Analytics resources.

", + "HoneycodeConnectorProfileCredentials$accessToken": null, "MarketoConnectorProfileCredentials$accessToken": "

The credentials used to access protected Marketo resources.

", "SalesforceConnectorProfileCredentials$accessToken": "

The credentials used to access protected Salesforce resources.

", "SlackConnectorProfileCredentials$accessToken": "

The credentials used to access protected Slack resources.

", @@ -269,6 +270,7 @@ "base": "

Used by select connectors for which the OAuth workflow is supported, such as Salesforce, Google Analytics, Marketo, Zendesk, and Slack.

", "refs": { "GoogleAnalyticsConnectorProfileCredentials$oAuthRequest": "

The OAuth requirement needed to request security tokens from the connector endpoint.

", + "HoneycodeConnectorProfileCredentials$oAuthRequest": null, "MarketoConnectorProfileCredentials$oAuthRequest": "

The OAuth requirement needed to request security tokens from the connector endpoint.

", "SalesforceConnectorProfileCredentials$oAuthRequest": "

The OAuth requirement needed to request security tokens from the connector endpoint.

", "SlackConnectorProfileCredentials$oAuthRequest": "

The OAuth requirement needed to request security tokens from the connector endpoint.

", @@ -396,6 +398,18 @@ "FlowDefinition$createdBy": "

The ARN of the user who created the flow.

" } }, + "CustomerProfilesDestinationProperties": { + "base": null, + "refs": { + "DestinationConnectorProperties$CustomerProfiles": null + } + }, + "CustomerProfilesMetadata": { + "base": null, + "refs": { + "ConnectorMetadata$CustomerProfiles": null + } + }, "DataPullMode": { "base": null, "refs": { @@ -453,7 +467,8 @@ "FlowDefinition$createdAt": "

Specifies when the flow was created.

", "FlowDefinition$lastUpdatedAt": "

Specifies when the flow was last updated.

", "ScheduledTriggerProperties$scheduleStartTime": "

Specifies the scheduled start time for a schedule-triggered flow.

", - "ScheduledTriggerProperties$scheduleEndTime": "

Specifies the scheduled end time for a schedule-triggered flow.

" + "ScheduledTriggerProperties$scheduleEndTime": "

Specifies the scheduled end time for a schedule-triggered flow.

", + "ScheduledTriggerProperties$firstExecutionFrom": null } }, "DatetimeTypeFieldName": { @@ -570,6 +585,12 @@ "UpdateFlowRequest$destinationFlowConfigList": "

The configuration that controls how Amazon AppFlow transfers data to the destination connector.

" } }, + "DomainName": { + "base": null, + "refs": { + "CustomerProfilesDestinationProperties$domainName": null + } + }, "DynatraceConnectorOperator": { "base": null, "refs": { @@ -610,6 +631,7 @@ "base": "

The settings that determine how Amazon AppFlow handles an error when placing data in the destination. For example, this setting would determine if the flow should fail after one insertion error, or continue and attempt to insert every record regardless of the initial failure. ErrorHandlingConfig is a part of the destination connector details.

", "refs": { "EventBridgeDestinationProperties$errorHandlingConfig": null, + "HoneycodeDestinationProperties$errorHandlingConfig": null, "RedshiftDestinationProperties$errorHandlingConfig": "

The settings that determine how Amazon AppFlow handles an error when placing data in the Amazon Redshift destination. For example, this setting would determine if the flow should fail after one insertion error, or continue and attempt to insert every record regardless of the initial failure. ErrorHandlingConfig is a part of the destination connector details.

", "SalesforceDestinationProperties$errorHandlingConfig": "

The settings that determine how Amazon AppFlow handles an error when placing data in the Salesforce destination. For example, this setting would determine if the flow should fail after one insertion error, or continue and attempt to insert every record regardless of the initial failure. ErrorHandlingConfig is a part of the destination connector details.

", "SnowflakeDestinationProperties$errorHandlingConfig": "

The settings that determine how Amazon AppFlow handles an error when placing data in the Snowflake destination. For example, this setting would determine if the flow should fail after one insertion error, or continue and attempt to insert every record regardless of the initial failure. ErrorHandlingConfig is a part of the destination connector details.

" @@ -814,6 +836,30 @@ "ConnectorEntityMap$key": null } }, + "HoneycodeConnectorProfileCredentials": { + "base": null, + "refs": { + "ConnectorProfileCredentials$Honeycode": null + } + }, + "HoneycodeConnectorProfileProperties": { + "base": null, + "refs": { + "ConnectorProfileProperties$Honeycode": null + } + }, + "HoneycodeDestinationProperties": { + "base": null, + "refs": { + "DestinationConnectorProperties$Honeycode": null + } + }, + "HoneycodeMetadata": { + "base": null, + "refs": { + "ConnectorMetadata$Honeycode": null + } + }, "IdFieldNameList": { "base": "

A list of field names that can be used as an ID field when performing a write operation.

", "refs": { @@ -942,6 +988,12 @@ "ExecutionResult$recordsProcessed": "

The number of records processed in the flow run.

" } }, + "LookoutMetricsDestinationProperties": { + "base": null, + "refs": { + "DestinationConnectorProperties$LookoutMetrics": null + } + }, "MarketoConnectorOperator": { "base": null, "refs": { @@ -1017,6 +1069,7 @@ "base": null, "refs": { "GoogleAnalyticsMetadata$oAuthScopes": "

The desired authorization scope for the Google Analytics account.

", + "HoneycodeMetadata$oAuthScopes": null, "SalesforceMetadata$oAuthScopes": "

The desired authorization scope for the Salesforce account.

", "SlackMetadata$oAuthScopes": "

The desired authorization scope for the Slack account.

", "ZendeskMetadata$oAuthScopes": "

The desired authorization scope for the Zendesk account.

" @@ -1030,6 +1083,7 @@ "DynatraceSourceProperties$object": "

The object specified in the Dynatrace flow source.

", "EventBridgeDestinationProperties$object": "

The object specified in the Amazon EventBridge flow destination.

", "GoogleAnalyticsSourceProperties$object": "

The object specified in the Google Analytics flow source.

", + "HoneycodeDestinationProperties$object": null, "InforNexusSourceProperties$object": "

The object specified in the Infor Nexus flow source.

", "MarketoSourceProperties$object": "

The object specified in the Marketo flow source.

", "RedshiftDestinationProperties$object": "

The object specified in the Amazon Redshift flow destination.

", @@ -1044,6 +1098,12 @@ "ZendeskSourceProperties$object": "

The object specified in the Zendesk flow source.

" } }, + "ObjectTypeName": { + "base": null, + "refs": { + "CustomerProfilesDestinationProperties$objectTypeName": null + } + }, "Operator": { "base": null, "refs": { @@ -1130,6 +1190,7 @@ "base": null, "refs": { "GoogleAnalyticsConnectorProfileCredentials$refreshToken": "

The credentials used to acquire new access tokens. This is required only for OAuth2 access tokens, and is not required for OAuth1 access tokens.

", + "HoneycodeConnectorProfileCredentials$refreshToken": null, "SalesforceConnectorProfileCredentials$refreshToken": "

The credentials used to acquire new access tokens.

" } }, diff --git a/models/apis/compute-optimizer/2019-11-01/docs-2.json b/models/apis/compute-optimizer/2019-11-01/docs-2.json index 2b9f458da46..f2565539d87 100644 --- a/models/apis/compute-optimizer/2019-11-01/docs-2.json +++ b/models/apis/compute-optimizer/2019-11-01/docs-2.json @@ -12,7 +12,7 @@ "GetEnrollmentStatus": "

Returns the enrollment (opt in) status of an account to the AWS Compute Optimizer service.

If the account is the management account of an organization, this action also confirms the enrollment status of member accounts within the organization.

", "GetLambdaFunctionRecommendations": "

Returns AWS Lambda function recommendations.

AWS Compute Optimizer generates recommendations for functions that meet a specific set of requirements. For more information, see the Supported resources and requirements in the AWS Compute Optimizer User Guide.

", "GetRecommendationSummaries": "

Returns the optimization findings for an account.

For example, it returns the number of Amazon EC2 instances in an account that are under-provisioned, over-provisioned, or optimized. It also returns the number of Auto Scaling groups in an account that are not optimized, or optimized.

", - "UpdateEnrollmentStatus": "

Updates the enrollment (opt in) status of an account to the AWS Compute Optimizer service.

If the account is a management account of an organization, this action can also be used to enroll member accounts within the organization.

" + "UpdateEnrollmentStatus": "

Updates the enrollment (opt in and opt out) status of an account to the AWS Compute Optimizer service.

If the account is a management account of an organization, this action can also be used to enroll member accounts within the organization.

You must have the appropriate permissions to opt in to Compute Optimizer, to view its recommendations, and to opt out. For more information, see Controlling access with AWS Identity and Access Management in the Compute Optimizer User Guide.

When you opt in, Compute Optimizer automatically creates a Service-Linked Role in your account to access its data. For more information, see Using Service-Linked Roles for AWS Compute Optimizer in the Compute Optimizer User Guide.

" }, "shapes": { "AccessDeniedException": { @@ -429,7 +429,7 @@ "refs": { "ExportAutoScalingGroupRecommendationsRequest$includeMemberAccounts": "

Indicates whether to include recommendations for resources in all member accounts of the organization if your account is the management account of an organization.

The member accounts must also be opted in to Compute Optimizer.

Recommendations for member accounts of the organization are not included in the export file if this parameter is omitted.

This parameter cannot be specified together with the account IDs parameter. The parameters are mutually exclusive.

Recommendations for member accounts are not included in the export if this parameter, or the account IDs parameter, is omitted.

", "ExportEC2InstanceRecommendationsRequest$includeMemberAccounts": "

Indicates whether to include recommendations for resources in all member accounts of the organization if your account is the management account of an organization.

The member accounts must also be opted in to Compute Optimizer.

Recommendations for member accounts of the organization are not included in the export file if this parameter is omitted.

Recommendations for member accounts are not included in the export if this parameter, or the account IDs parameter, is omitted.

", - "UpdateEnrollmentStatusRequest$includeMemberAccounts": "

Indicates whether to enroll member accounts of the organization if the your account is the management account of an organization.

" + "UpdateEnrollmentStatusRequest$includeMemberAccounts": "

Indicates whether to enroll member accounts of the organization if the account is the management account of an organization.

" } }, "InstanceArn": { @@ -565,7 +565,7 @@ "LambdaFunctionMetricName": { "base": null, "refs": { - "LambdaFunctionUtilizationMetric$name": "

The name of the utilization metric.

" + "LambdaFunctionUtilizationMetric$name": "

The name of the utilization metric.

The following utilization metrics are available:

" } }, "LambdaFunctionMetricStatistic": { @@ -938,7 +938,7 @@ "base": null, "refs": { "GetEnrollmentStatusResponse$status": "

The enrollment status of the account.

", - "UpdateEnrollmentStatusRequest$status": "

The new enrollment status of the account.

Accepted options are Active or Inactive. You will get an error if Pending or Failed are specified.

", + "UpdateEnrollmentStatusRequest$status": "

The new enrollment status of the account.

The following status options are available:

The Pending and Failed options cannot be used to update the enrollment status of an account. They are returned in the response of a request to update the enrollment status of an account.

", "UpdateEnrollmentStatusResponse$status": "

The enrollment status of the account.

" } }, diff --git a/models/apis/ecr-public/2020-10-30/api-2.json b/models/apis/ecr-public/2020-10-30/api-2.json index a0b50d04926..7bafe891a24 100644 --- a/models/apis/ecr-public/2020-10-30/api-2.json +++ b/models/apis/ecr-public/2020-10-30/api-2.json @@ -75,6 +75,8 @@ "errors":[ {"shape":"ServerException"}, {"shape":"InvalidParameterException"}, + {"shape":"InvalidTagParameterException"}, + {"shape":"TooManyTagsException"}, {"shape":"RepositoryAlreadyExistsException"}, {"shape":"LimitExceededException"} ] @@ -237,6 +239,20 @@ {"shape":"UnsupportedCommandException"} ] }, + "ListTagsForResource":{ + "name":"ListTagsForResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListTagsForResourceRequest"}, + "output":{"shape":"ListTagsForResourceResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"RepositoryNotFoundException"}, + {"shape":"ServerException"} + ] + }, "PutImage":{ "name":"PutImage", "http":{ @@ -301,6 +317,38 @@ {"shape":"RepositoryNotFoundException"} ] }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"TagResourceRequest"}, + "output":{"shape":"TagResourceResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"InvalidTagParameterException"}, + {"shape":"TooManyTagsException"}, + {"shape":"RepositoryNotFoundException"}, + {"shape":"ServerException"} + ] + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UntagResourceRequest"}, + "output":{"shape":"UntagResourceResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"InvalidTagParameterException"}, + {"shape":"TooManyTagsException"}, + {"shape":"RepositoryNotFoundException"}, + {"shape":"ServerException"} + ] + }, "UploadLayerPart":{ "name":"UploadLayerPart", "http":{ @@ -425,7 +473,8 @@ "required":["repositoryName"], "members":{ "repositoryName":{"shape":"RepositoryName"}, - "catalogData":{"shape":"RepositoryCatalogDataInput"} + "catalogData":{"shape":"RepositoryCatalogDataInput"}, + "tags":{"shape":"TagList"} } }, "CreateRepositoryResponse":{ @@ -758,6 +807,13 @@ }, "exception":true }, + "InvalidTagParameterException":{ + "type":"structure", + "members":{ + "message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, "Layer":{ "type":"structure", "members":{ @@ -842,6 +898,19 @@ }, "exception":true }, + "ListTagsForResourceRequest":{ + "type":"structure", + "required":["resourceArn"], + "members":{ + "resourceArn":{"shape":"Arn"} + } + }, + "ListTagsForResourceResponse":{ + "type":"structure", + "members":{ + "tags":{"shape":"TagList"} + } + }, "LogoImageBlob":{ "type":"blob", "max":512000, @@ -1141,6 +1210,58 @@ "policyText":{"shape":"RepositoryPolicyText"} } }, + "Tag":{ + "type":"structure", + "members":{ + "Key":{"shape":"TagKey"}, + "Value":{"shape":"TagValue"} + } + }, + "TagKey":{ + "type":"string", + "max":128, + "min":1 + }, + "TagKeyList":{ + "type":"list", + "member":{"shape":"TagKey"}, + "max":200, + "min":0 + }, + "TagList":{ + "type":"list", + "member":{"shape":"Tag"}, + "max":200, + "min":0 + }, + "TagResourceRequest":{ + "type":"structure", + "required":[ + "resourceArn", + "tags" + ], + "members":{ + "resourceArn":{"shape":"Arn"}, + "tags":{"shape":"TagList"} + } + }, + "TagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "TagValue":{ + "type":"string", + "max":256, + "min":0 + }, + "TooManyTagsException":{ + "type":"structure", + "members":{ + "message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, "UnsupportedCommandException":{ "type":"structure", "members":{ @@ -1148,6 +1269,22 @@ }, "exception":true }, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "resourceArn", + "tagKeys" + ], + "members":{ + "resourceArn":{"shape":"Arn"}, + "tagKeys":{"shape":"TagKeyList"} + } + }, + "UntagResourceResponse":{ + "type":"structure", + "members":{ + } + }, "UploadId":{ "type":"string", "pattern":"[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}" diff --git a/models/apis/ecr-public/2020-10-30/docs-2.json b/models/apis/ecr-public/2020-10-30/docs-2.json index 5b0c6b72b8d..b697f29db08 100644 --- a/models/apis/ecr-public/2020-10-30/docs-2.json +++ b/models/apis/ecr-public/2020-10-30/docs-2.json @@ -17,10 +17,13 @@ "GetRepositoryCatalogData": "

Retrieve catalog metadata for a repository in a public registry. This metadata is displayed publicly in the Amazon ECR Public Gallery.

", "GetRepositoryPolicy": "

Retrieves the repository policy for the specified repository.

", "InitiateLayerUpload": "

Notifies Amazon ECR that you intend to upload an image layer.

When an image is pushed, the InitiateLayerUpload API is called once per image layer that has not already been uploaded. Whether or not an image layer has been uploaded is determined by the BatchCheckLayerAvailability API action.

This operation is used by the Amazon ECR proxy and is not generally used by customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.

", + "ListTagsForResource": "

List the tags for an Amazon ECR Public resource.

", "PutImage": "

Creates or updates the image manifest and tags associated with an image.

When an image is pushed and all new image layers have been uploaded, the PutImage API is called once to create or update the image manifest and the tags associated with the image.

This operation is used by the Amazon ECR proxy and is not generally used by customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.

", "PutRegistryCatalogData": "

Create or updates the catalog data for a public registry.

", "PutRepositoryCatalogData": "

Creates or updates the catalog data for a repository in a public registry.

", "SetRepositoryPolicy": "

Applies a repository policy to the specified public repository to control access permissions. For more information, see Amazon ECR Repository Policies in the Amazon Elastic Container Registry User Guide.

", + "TagResource": "

Associates the specified tags to a resource with the specified resourceArn. If existing tags on a resource are not specified in the request parameters, they are not changed. When a resource is deleted, the tags associated with that resource are deleted as well.

", + "UntagResource": "

Deletes specified tags from a resource.

", "UploadLayerPart": "

Uploads an image layer part to Amazon ECR.

When an image is pushed, each new image layer is uploaded in parts. The maximum size of each image layer part can be 20971520 bytes (or about 20MB). The UploadLayerPart API is called once per each new image layer part.

This operation is used by the Amazon ECR proxy and is not generally used by customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.

" }, "shapes": { @@ -47,8 +50,11 @@ "Arn": { "base": null, "refs": { + "ListTagsForResourceRequest$resourceArn": "

The Amazon Resource Name (ARN) that identifies the resource for which to list the tags. Currently, the supported resource is an Amazon ECR Public repository.

", "Registry$registryArn": "

The Amazon Resource Name (ARN) of the public registry.

", - "Repository$repositoryArn": "

The Amazon Resource Name (ARN) that identifies the repository. The ARN contains the arn:aws:ecr namespace, followed by the region of the repository, AWS account ID of the repository owner, repository namespace, and repository name. For example, arn:aws:ecr:region:012345678910:repository/test.

" + "Repository$repositoryArn": "

The Amazon Resource Name (ARN) that identifies the repository. The ARN contains the arn:aws:ecr namespace, followed by the region of the repository, AWS account ID of the repository owner, repository namespace, and repository name. For example, arn:aws:ecr:region:012345678910:repository/test.

", + "TagResourceRequest$resourceArn": "

The Amazon Resource Name (ARN) of the resource to which to add tags. Currently, the supported resource is an Amazon ECR Public repository.

", + "UntagResourceRequest$resourceArn": "

The Amazon Resource Name (ARN) of the resource from which to delete tags. Currently, the supported resource is an Amazon ECR Public repository.

" } }, "AuthorizationData": { @@ -205,6 +211,7 @@ "InvalidLayerException$message": null, "InvalidLayerPartException$message": null, "InvalidParameterException$message": null, + "InvalidTagParameterException$message": null, "LayerAlreadyExistsException$message": null, "LayerPartTooSmallException$message": null, "LayersNotFoundException$message": null, @@ -216,6 +223,7 @@ "RepositoryNotFoundException$message": null, "RepositoryPolicyNotFoundException$message": null, "ServerException$message": null, + "TooManyTagsException$message": null, "UnsupportedCommandException$message": null, "UploadNotFoundException$message": null } @@ -426,6 +434,11 @@ "refs": { } }, + "InvalidTagParameterException": { + "base": "

An invalid parameter has been specified. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.

", + "refs": { + } + }, "Layer": { "base": "

An object representing an Amazon ECR image layer.

", "refs": { @@ -514,6 +527,16 @@ "refs": { } }, + "ListTagsForResourceRequest": { + "base": null, + "refs": { + } + }, + "ListTagsForResourceResponse": { + "base": null, + "refs": { + } + }, "LogoImageBlob": { "base": null, "refs": { @@ -855,11 +878,69 @@ "refs": { } }, + "Tag": { + "base": "

The metadata that you apply to a resource to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.

", + "refs": { + "TagList$member": null + } + }, + "TagKey": { + "base": null, + "refs": { + "Tag$Key": "

One part of a key-value pair that make up a tag. A key is a general label that acts like a category for more specific tag values.

", + "TagKeyList$member": null + } + }, + "TagKeyList": { + "base": null, + "refs": { + "UntagResourceRequest$tagKeys": "

The keys of the tags to be removed.

" + } + }, + "TagList": { + "base": null, + "refs": { + "CreateRepositoryRequest$tags": "

The metadata that you apply to the repository to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.

", + "ListTagsForResourceResponse$tags": "

The tags for the resource.

", + "TagResourceRequest$tags": "

The tags to add to the resource. A tag is an array of key-value pairs. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.

" + } + }, + "TagResourceRequest": { + "base": null, + "refs": { + } + }, + "TagResourceResponse": { + "base": null, + "refs": { + } + }, + "TagValue": { + "base": null, + "refs": { + "Tag$Value": "

The optional part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key).

" + } + }, + "TooManyTagsException": { + "base": "

The list of tags on the repository is over the limit. The maximum number of tags that can be applied to a repository is 50.

", + "refs": { + } + }, "UnsupportedCommandException": { "base": "

The action is not supported in this Region.

", "refs": { } }, + "UntagResourceRequest": { + "base": null, + "refs": { + } + }, + "UntagResourceResponse": { + "base": null, + "refs": { + } + }, "UploadId": { "base": null, "refs": { diff --git a/models/apis/es/2015-01-01/api-2.json b/models/apis/es/2015-01-01/api-2.json index 122a416cdbe..58662f29273 100644 --- a/models/apis/es/2015-01-01/api-2.json +++ b/models/apis/es/2015-01-01/api-2.json @@ -191,6 +191,21 @@ {"shape":"ConflictException"} ] }, + "DescribeDomainAutoTunes":{ + "name":"DescribeDomainAutoTunes", + "http":{ + "method":"GET", + "requestUri":"/2015-01-01/es/domain/{DomainName}/autoTunes" + }, + "input":{"shape":"DescribeDomainAutoTunesRequest"}, + "output":{"shape":"DescribeDomainAutoTunesResponse"}, + "errors":[ + {"shape":"BaseException"}, + {"shape":"InternalException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"} + ] + }, "DescribeElasticsearchDomain":{ "name":"DescribeElasticsearchDomain", "http":{ @@ -732,6 +747,107 @@ "DomainPackageDetails":{"shape":"DomainPackageDetails"} } }, + "AutoTune":{ + "type":"structure", + "members":{ + "AutoTuneType":{"shape":"AutoTuneType"}, + "AutoTuneDetails":{"shape":"AutoTuneDetails"} + } + }, + "AutoTuneDate":{"type":"timestamp"}, + "AutoTuneDesiredState":{ + "type":"string", + "enum":[ + "ENABLED", + "DISABLED" + ] + }, + "AutoTuneDetails":{ + "type":"structure", + "members":{ + "ScheduledAutoTuneDetails":{"shape":"ScheduledAutoTuneDetails"} + } + }, + "AutoTuneList":{ + "type":"list", + "member":{"shape":"AutoTune"} + }, + "AutoTuneMaintenanceSchedule":{ + "type":"structure", + "members":{ + "StartAt":{"shape":"StartAt"}, + "Duration":{"shape":"Duration"}, + "CronExpressionForRecurrence":{"shape":"String"} + } + }, + "AutoTuneMaintenanceScheduleList":{ + "type":"list", + "member":{"shape":"AutoTuneMaintenanceSchedule"}, + "max":100 + }, + "AutoTuneOptions":{ + "type":"structure", + "members":{ + "DesiredState":{"shape":"AutoTuneDesiredState"}, + "RollbackOnDisable":{"shape":"RollbackOnDisable"}, + "MaintenanceSchedules":{"shape":"AutoTuneMaintenanceScheduleList"} + } + }, + "AutoTuneOptionsInput":{ + "type":"structure", + "members":{ + "DesiredState":{"shape":"AutoTuneDesiredState"}, + "MaintenanceSchedules":{"shape":"AutoTuneMaintenanceScheduleList"} + } + }, + "AutoTuneOptionsOutput":{ + "type":"structure", + "members":{ + "State":{"shape":"AutoTuneState"}, + "ErrorMessage":{"shape":"String"} + } + }, + "AutoTuneOptionsStatus":{ + "type":"structure", + "members":{ + "Options":{"shape":"AutoTuneOptions"}, + "Status":{"shape":"AutoTuneStatus"} + } + }, + "AutoTuneState":{ + "type":"string", + "enum":[ + "ENABLED", + "DISABLED", + "ENABLE_IN_PROGRESS", + "DISABLE_IN_PROGRESS", + "DISABLED_AND_ROLLBACK_SCHEDULED", + "DISABLED_AND_ROLLBACK_IN_PROGRESS", + "DISABLED_AND_ROLLBACK_COMPLETE", + "DISABLED_AND_ROLLBACK_ERROR", + "ERROR" + ] + }, + "AutoTuneStatus":{ + "type":"structure", + "required":[ + "CreationDate", + "UpdateDate", + "State" + ], + "members":{ + "CreationDate":{"shape":"UpdateTimestamp"}, + "UpdateDate":{"shape":"UpdateTimestamp"}, + "UpdateVersion":{"shape":"UIntValue"}, + "State":{"shape":"AutoTuneState"}, + "ErrorMessage":{"shape":"String"}, + "PendingDeletion":{"shape":"Boolean"} + } + }, + "AutoTuneType":{ + "type":"string", + "enum":["SCHEDULED_ACTION"] + }, "BackendRole":{ "type":"string", "max":256, @@ -822,7 +938,8 @@ "AdvancedOptions":{"shape":"AdvancedOptions"}, "LogPublishingOptions":{"shape":"LogPublishingOptions"}, "DomainEndpointOptions":{"shape":"DomainEndpointOptions"}, - "AdvancedSecurityOptions":{"shape":"AdvancedSecurityOptionsInput"} + "AdvancedSecurityOptions":{"shape":"AdvancedSecurityOptionsInput"}, + "AutoTuneOptions":{"shape":"AutoTuneOptionsInput"} } }, "CreateElasticsearchDomainResponse":{ @@ -956,6 +1073,26 @@ "ELIGIBLE" ] }, + "DescribeDomainAutoTunesRequest":{ + "type":"structure", + "required":["DomainName"], + "members":{ + "DomainName":{ + "shape":"DomainName", + "location":"uri", + "locationName":"DomainName" + }, + "MaxResults":{"shape":"MaxResults"}, + "NextToken":{"shape":"NextToken"} + } + }, + "DescribeDomainAutoTunesResponse":{ + "type":"structure", + "members":{ + "AutoTunes":{"shape":"AutoTuneList"}, + "NextToken":{"shape":"NextToken"} + } + }, "DescribeElasticsearchDomainConfigRequest":{ "type":"structure", "required":["DomainName"], @@ -1284,6 +1421,18 @@ ] }, "Double":{"type":"double"}, + "Duration":{ + "type":"structure", + "members":{ + "Value":{"shape":"DurationValue"}, + "Unit":{"shape":"TimeUnit"} + } + }, + "DurationValue":{ + "type":"long", + "max":24, + "min":1 + }, "EBSOptions":{ "type":"structure", "members":{ @@ -1415,7 +1564,8 @@ "AdvancedOptions":{"shape":"AdvancedOptionsStatus"}, "LogPublishingOptions":{"shape":"LogPublishingOptionsStatus"}, "DomainEndpointOptions":{"shape":"DomainEndpointOptionsStatus"}, - "AdvancedSecurityOptions":{"shape":"AdvancedSecurityOptionsStatus"} + "AdvancedSecurityOptions":{"shape":"AdvancedSecurityOptionsStatus"}, + "AutoTuneOptions":{"shape":"AutoTuneOptionsStatus"} } }, "ElasticsearchDomainStatus":{ @@ -1449,7 +1599,8 @@ "LogPublishingOptions":{"shape":"LogPublishingOptions"}, "ServiceSoftwareOptions":{"shape":"ServiceSoftwareOptions"}, "DomainEndpointOptions":{"shape":"DomainEndpointOptions"}, - "AdvancedSecurityOptions":{"shape":"AdvancedSecurityOptions"} + "AdvancedSecurityOptions":{"shape":"AdvancedSecurityOptions"}, + "AutoTuneOptions":{"shape":"AutoTuneOptionsOutput"} } }, "ElasticsearchDomainStatusList":{ @@ -2193,6 +2344,13 @@ "max":2048, "min":20 }, + "RollbackOnDisable":{ + "type":"string", + "enum":[ + "NO_ROLLBACK", + "DEFAULT_ROLLBACK" + ] + }, "S3BucketName":{ "type":"string", "max":63, @@ -2242,6 +2400,31 @@ "SessionTimeoutMinutes":{"shape":"IntegerClass"} } }, + "ScheduledAutoTuneActionType":{ + "type":"string", + "enum":[ + "JVM_HEAP_SIZE_TUNING", + "JVM_YOUNG_GEN_TUNING" + ] + }, + "ScheduledAutoTuneDescription":{"type":"string"}, + "ScheduledAutoTuneDetails":{ + "type":"structure", + "members":{ + "Date":{"shape":"AutoTuneDate"}, + "ActionType":{"shape":"ScheduledAutoTuneActionType"}, + "Action":{"shape":"ScheduledAutoTuneDescription"}, + "Severity":{"shape":"ScheduledAutoTuneSeverityType"} + } + }, + "ScheduledAutoTuneSeverityType":{ + "type":"string", + "enum":[ + "LOW", + "MEDIUM", + "HIGH" + ] + }, "ServiceSoftwareOptions":{ "type":"structure", "members":{ @@ -2273,6 +2456,7 @@ "Status":{"shape":"OptionStatus"} } }, + "StartAt":{"type":"timestamp"}, "StartElasticsearchServiceSoftwareUpdateRequest":{ "type":"structure", "required":["DomainName"], @@ -2349,6 +2533,10 @@ "max":256, "min":0 }, + "TimeUnit":{ + "type":"string", + "enum":["HOURS"] + }, "UIntValue":{ "type":"integer", "min":0 @@ -2373,7 +2561,8 @@ "DomainEndpointOptions":{"shape":"DomainEndpointOptions"}, "AdvancedSecurityOptions":{"shape":"AdvancedSecurityOptionsInput"}, "NodeToNodeEncryptionOptions":{"shape":"NodeToNodeEncryptionOptions"}, - "EncryptionAtRestOptions":{"shape":"EncryptionAtRestOptions"} + "EncryptionAtRestOptions":{"shape":"EncryptionAtRestOptions"}, + "AutoTuneOptions":{"shape":"AutoTuneOptions"} } }, "UpdateElasticsearchDomainConfigResponse":{ diff --git a/models/apis/es/2015-01-01/docs-2.json b/models/apis/es/2015-01-01/docs-2.json index ad5871926be..fe23d21231d 100644 --- a/models/apis/es/2015-01-01/docs-2.json +++ b/models/apis/es/2015-01-01/docs-2.json @@ -14,6 +14,7 @@ "DeleteInboundCrossClusterSearchConnection": "

Allows the destination domain owner to delete an existing inbound cross-cluster search connection.

", "DeleteOutboundCrossClusterSearchConnection": "

Allows the source domain owner to delete an existing outbound cross-cluster search connection.

", "DeletePackage": "

Delete the package.

", + "DescribeDomainAutoTunes": "

Provides scheduled Auto-Tune action details for the Elasticsearch domain, such as Auto-Tune action type, description, severity, and scheduled date.

", "DescribeElasticsearchDomain": "

Returns domain configuration information about the specified Elasticsearch domain, including the domain ID, domain endpoint, and domain ARN.

", "DescribeElasticsearchDomainConfig": "

Provides cluster configuration information about the specified Elasticsearch domain, such as the state, creation date, update version, and update date for cluster options.

", "DescribeElasticsearchDomains": "

Returns domain configuration information about the specified Elasticsearch domains, including the domain ID, domain endpoint, and domain ARN.

", @@ -137,6 +138,94 @@ "refs": { } }, + "AutoTune": { + "base": "

Specifies Auto-Tune type and Auto-Tune action details.

", + "refs": { + "AutoTuneList$member": null + } + }, + "AutoTuneDate": { + "base": "

Specifies timestamp for the Auto-Tune action scheduled for the domain.

", + "refs": { + "ScheduledAutoTuneDetails$Date": "

Specifies timestamp for the Auto-Tune action scheduled for the domain.

" + } + }, + "AutoTuneDesiredState": { + "base": "

Specifies the Auto-Tune desired state. Valid values are ENABLED, DISABLED.

", + "refs": { + "AutoTuneOptions$DesiredState": "

Specifies the Auto-Tune desired state. Valid values are ENABLED, DISABLED.

", + "AutoTuneOptionsInput$DesiredState": "

Specifies the Auto-Tune desired state. Valid values are ENABLED, DISABLED.

" + } + }, + "AutoTuneDetails": { + "base": "

Specifies details of the Auto-Tune action. See the Developer Guide for more information.

", + "refs": { + "AutoTune$AutoTuneDetails": "

Specifies details of the Auto-Tune action. See the Developer Guide for more information.

" + } + }, + "AutoTuneList": { + "base": null, + "refs": { + "DescribeDomainAutoTunesResponse$AutoTunes": "

Specifies the list of setting adjustments that Auto-Tune has made to the domain. See the Developer Guide for more information.

" + } + }, + "AutoTuneMaintenanceSchedule": { + "base": "

Specifies Auto-Tune maitenance schedule. See the Developer Guide for more information.

", + "refs": { + "AutoTuneMaintenanceScheduleList$member": null + } + }, + "AutoTuneMaintenanceScheduleList": { + "base": null, + "refs": { + "AutoTuneOptions$MaintenanceSchedules": "

Specifies list of maitenance schedules. See the Developer Guide for more information.

", + "AutoTuneOptionsInput$MaintenanceSchedules": "

Specifies list of maitenance schedules. See the Developer Guide for more information.

" + } + }, + "AutoTuneOptions": { + "base": "

Specifies the Auto-Tune options: the Auto-Tune desired state for the domain, rollback state when disabling Auto-Tune options and list of maintenance schedules.

", + "refs": { + "AutoTuneOptionsStatus$Options": "

Specifies Auto-Tune options for the specified Elasticsearch domain.

", + "UpdateElasticsearchDomainConfigRequest$AutoTuneOptions": "

Specifies Auto-Tune options.

" + } + }, + "AutoTuneOptionsInput": { + "base": "

Specifies the Auto-Tune options: the Auto-Tune desired state for the domain and list of maintenance schedules.

", + "refs": { + "CreateElasticsearchDomainRequest$AutoTuneOptions": "

Specifies Auto-Tune options.

" + } + }, + "AutoTuneOptionsOutput": { + "base": "

Specifies the Auto-Tune options: the Auto-Tune desired state for the domain and list of maintenance schedules.

", + "refs": { + "ElasticsearchDomainStatus$AutoTuneOptions": "

The current status of the Elasticsearch domain's Auto-Tune options.

" + } + }, + "AutoTuneOptionsStatus": { + "base": "

Specifies the status of Auto-Tune options for the specified Elasticsearch domain.

", + "refs": { + "ElasticsearchDomainConfig$AutoTuneOptions": "

Specifies AutoTuneOptions for the domain.

" + } + }, + "AutoTuneState": { + "base": "

Specifies the Auto-Tune state for the Elasticsearch domain. For valid states see the Developer Guide.

", + "refs": { + "AutoTuneOptionsOutput$State": "

Specifies the AutoTuneState for the Elasticsearch domain.

", + "AutoTuneStatus$State": "

Specifies the AutoTuneState for the Elasticsearch domain.

" + } + }, + "AutoTuneStatus": { + "base": "

Provides the current status of the Auto-Tune options.

", + "refs": { + "AutoTuneOptionsStatus$Status": "

Specifies Status of the Auto-Tune options for the specified Elasticsearch domain.

" + } + }, + "AutoTuneType": { + "base": "

Specifies Auto-Tune type. Valid value is SCHEDULED_ACTION.

", + "refs": { + "AutoTune$AutoTuneType": "

Specifies Auto-Tune type. Valid value is SCHEDULED_ACTION.

" + } + }, "BackendRole": { "base": null, "refs": { @@ -155,6 +244,7 @@ "AdvancedSecurityOptions$InternalUserDatabaseEnabled": "

True if the internal user database is enabled.

", "AdvancedSecurityOptionsInput$Enabled": "

True if advanced security is enabled.

", "AdvancedSecurityOptionsInput$InternalUserDatabaseEnabled": "

True if the internal user database is enabled.

", + "AutoTuneStatus$PendingDeletion": "

Indicates whether the Elasticsearch domain is being deleted.

", "CognitoOptions$Enabled": "

Specifies the option to enable Cognito for Kibana authentication.

", "DomainEndpointOptions$EnforceHTTPS": "

Specify if only HTTPS endpoint should be enabled for the Elasticsearch domain.

", "DomainEndpointOptions$CustomEndpointEnabled": "

Specify if custom endpoint should be enabled for the Elasticsearch domain.

", @@ -350,6 +440,16 @@ "ServiceSoftwareOptions$UpdateStatus": "

The status of your service software update. This field can take the following values: ELIGIBLE, PENDING_UPDATE, IN_PROGRESS, COMPLETED, and NOT_ELIGIBLE.

" } }, + "DescribeDomainAutoTunesRequest": { + "base": "

Container for the parameters to the DescribeDomainAutoTunes operation.

", + "refs": { + } + }, + "DescribeDomainAutoTunesResponse": { + "base": "

The result of DescribeDomainAutoTunes request. See the Developer Guide for more information.

", + "refs": { + } + }, "DescribeElasticsearchDomainConfigRequest": { "base": "

Container for the parameters to the DescribeElasticsearchDomainConfig operation. Specifies the domain name for which you want configuration information.

", "refs": { @@ -538,6 +638,7 @@ "CancelElasticsearchServiceSoftwareUpdateRequest$DomainName": "

The name of the domain that you want to stop the latest service software update on.

", "CreateElasticsearchDomainRequest$DomainName": "

The name of the Elasticsearch domain that you are creating. Domain names are unique across the domains owned by an account within an AWS region. Domain names must start with a lowercase letter and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).

", "DeleteElasticsearchDomainRequest$DomainName": "

The name of the Elasticsearch domain that you want to permanently delete.

", + "DescribeDomainAutoTunesRequest$DomainName": "

Specifies the domain name for which you want Auto-Tune action details.

", "DescribeElasticsearchDomainConfigRequest$DomainName": "

The Elasticsearch domain that you want to get information about.

", "DescribeElasticsearchDomainRequest$DomainName": "

The name of the Elasticsearch domain for which you want information.

", "DescribeElasticsearchInstanceTypeLimitsRequest$DomainName": "

DomainName represents the name of the Domain that we are trying to modify. This should be present only if we are querying for Elasticsearch Limits for existing domain.

", @@ -602,6 +703,18 @@ "UpgradeStepItem$ProgressPercent": "

The Floating point value representing progress percentage of a particular step.

" } }, + "Duration": { + "base": "

Specifies maintenance schedule duration: duration value and duration unit. See the Developer Guide for more information.

", + "refs": { + "AutoTuneMaintenanceSchedule$Duration": "

Specifies maintenance schedule duration: duration value and duration unit. See the Developer Guide for more information.

" + } + }, + "DurationValue": { + "base": "

Integer to specify the value of a maintenance schedule duration. See the Developer Guide for more information.

", + "refs": { + "Duration$Value": "

Integer to specify the value of a maintenance schedule duration. See the Developer Guide for more information.

" + } + }, "EBSOptions": { "base": "

Options to enable, disable, and specify the properties of EBS storage volumes. For more information, see Configuring EBS-based Storage.

", "refs": { @@ -1056,6 +1169,7 @@ "MaxResults": { "base": "

Set this value to limit the number of results returned.

", "refs": { + "DescribeDomainAutoTunesRequest$MaxResults": "

Set this value to limit the number of results returned. If not specified, defaults to 100.

", "DescribeInboundCrossClusterSearchConnectionsRequest$MaxResults": "

Set this value to limit the number of results returned. If not specified, defaults to 100.

", "DescribeOutboundCrossClusterSearchConnectionsRequest$MaxResults": "

Set this value to limit the number of results returned. If not specified, defaults to 100.

", "DescribePackagesRequest$MaxResults": "

Limits results to a maximum number of packages.

", @@ -1084,6 +1198,8 @@ "NextToken": { "base": "

Paginated APIs accepts NextToken input to returns next page results and provides a NextToken output in the response which can be used by the client to retrieve more results.

", "refs": { + "DescribeDomainAutoTunesRequest$NextToken": "

NextToken is sent in case the earlier API call results contain the NextToken. It is used for pagination.

", + "DescribeDomainAutoTunesResponse$NextToken": "

Specifies an identifier to allow retrieval of paginated results.

", "DescribeInboundCrossClusterSearchConnectionsRequest$NextToken": "

NextToken is sent in case the earlier API call results contain the NextToken. It is used for pagination.

", "DescribeInboundCrossClusterSearchConnectionsResponse$NextToken": "

If more results are available and NextToken is present, make the next request to the same API with the received NextToken to paginate the remaining results.

", "DescribeOutboundCrossClusterSearchConnectionsRequest$NextToken": "

NextToken is sent in case the earlier API call results contain the NextToken. It is used for pagination.

", @@ -1386,6 +1502,12 @@ "CognitoOptions$RoleArn": "

Specifies the role ARN that provides Elasticsearch permissions for accessing Cognito resources.

" } }, + "RollbackOnDisable": { + "base": "

Specifies the rollback state while disabling Auto-Tune for the domain. Valid values are NO_ROLLBACK, DEFAULT_ROLLBACK.

", + "refs": { + "AutoTuneOptions$RollbackOnDisable": "

Specifies the rollback state while disabling Auto-Tune for the domain. Valid values are NO_ROLLBACK, DEFAULT_ROLLBACK.

" + } + }, "S3BucketName": { "base": null, "refs": { @@ -1429,6 +1551,30 @@ "AdvancedSecurityOptions$SAMLOptions": "

Describes the SAML application configured for a domain.

" } }, + "ScheduledAutoTuneActionType": { + "base": "

Specifies Auto-Tune action type. Valid values are JVM_HEAP_SIZE_TUNING and JVM_YOUNG_GEN_TUNING.

", + "refs": { + "ScheduledAutoTuneDetails$ActionType": "

Specifies Auto-Tune action type. Valid values are JVM_HEAP_SIZE_TUNING and JVM_YOUNG_GEN_TUNING.

" + } + }, + "ScheduledAutoTuneDescription": { + "base": "

Specifies Auto-Tune action description.

", + "refs": { + "ScheduledAutoTuneDetails$Action": "

Specifies Auto-Tune action description.

" + } + }, + "ScheduledAutoTuneDetails": { + "base": "

Specifies details of the scheduled Auto-Tune action. See the Developer Guide for more information.

", + "refs": { + "AutoTuneDetails$ScheduledAutoTuneDetails": null + } + }, + "ScheduledAutoTuneSeverityType": { + "base": "

Specifies Auto-Tune action severity. Valid values are LOW, MEDIUM and HIGH.

", + "refs": { + "ScheduledAutoTuneDetails$Severity": "

Specifies Auto-Tune action severity. Valid values are LOW, MEDIUM and HIGH.

" + } + }, "ServiceSoftwareOptions": { "base": "

The current options of an Elasticsearch domain service software options.

", "refs": { @@ -1459,6 +1605,12 @@ "ElasticsearchDomainConfig$SnapshotOptions": "

Specifies the SnapshotOptions for the Elasticsearch domain.

" } }, + "StartAt": { + "base": null, + "refs": { + "AutoTuneMaintenanceSchedule$StartAt": "

Specifies timestamp at which Auto-Tune maintenance schedule start.

" + } + }, "StartElasticsearchServiceSoftwareUpdateRequest": { "base": "

Container for the parameters to the StartElasticsearchServiceSoftwareUpdate operation. Specifies the name of the Elasticsearch domain that you wish to schedule a service software update on.

", "refs": { @@ -1516,6 +1668,9 @@ "refs": { "AdvancedOptions$key": null, "AdvancedOptions$value": null, + "AutoTuneMaintenanceSchedule$CronExpressionForRecurrence": "

Specifies cron expression for a recurring maintenance schedule. See the Developer Guide for more information.

", + "AutoTuneOptionsOutput$ErrorMessage": "

Specifies the error message while enabling or disabling the Auto-Tune.

", + "AutoTuneStatus$ErrorMessage": "

Specifies the error message while enabling or disabling the Auto-Tune options.

", "DescribePackagesResponse$NextToken": null, "DescribeReservedElasticsearchInstancesResponse$NextToken": "

Provides an identifier to allow retrieval of paginated results.

", "EndpointsMap$key": null, @@ -1581,9 +1736,16 @@ "Tag$Value": "

Specifies the TagValue, the value assigned to the corresponding tag key. Tag values can be null and do not have to be unique in a tag set. For example, you can have a key value pair in a tag set of project : Trinity and cost-center : Trinity

" } }, + "TimeUnit": { + "base": "

Specifies the unit of a maintenance schedule duration. Valid value is HOUR. See the Developer Guide for more information.

", + "refs": { + "Duration$Unit": "

Specifies the unit of a maintenance schedule duration. Valid value is HOURS. See the Developer Guide for more information.

" + } + }, "UIntValue": { "base": null, "refs": { + "AutoTuneStatus$UpdateVersion": "

Specifies the Auto-Tune options latest version.

", "OptionStatus$UpdateVersion": "

Specifies the latest version for the entity.

" } }, @@ -1610,6 +1772,8 @@ "UpdateTimestamp": { "base": null, "refs": { + "AutoTuneStatus$CreationDate": "

Timestamp which tells Auto-Tune options creation date .

", + "AutoTuneStatus$UpdateDate": "

Timestamp which tells Auto-Tune options last updated time.

", "OptionStatus$CreationDate": "

Timestamp which tells the creation date for the entity.

", "OptionStatus$UpdateDate": "

Timestamp which tells the last updated time for the entity.

", "ReservedElasticsearchInstance$StartTime": "

The time the reservation started.

" diff --git a/models/apis/es/2015-01-01/paginators-1.json b/models/apis/es/2015-01-01/paginators-1.json index 2ca3f2e67f7..11c12d11825 100644 --- a/models/apis/es/2015-01-01/paginators-1.json +++ b/models/apis/es/2015-01-01/paginators-1.json @@ -1,5 +1,10 @@ { "pagination": { + "DescribeDomainAutoTunes": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, "DescribeInboundCrossClusterSearchConnections": { "input_token": "NextToken", "output_token": "NextToken", diff --git a/models/apis/mediapackage-vod/2018-11-07/api-2.json b/models/apis/mediapackage-vod/2018-11-07/api-2.json index 8bd639b5c19..afb8d3b9629 100644 --- a/models/apis/mediapackage-vod/2018-11-07/api-2.json +++ b/models/apis/mediapackage-vod/2018-11-07/api-2.json @@ -12,6 +12,40 @@ "uid": "mediapackage-vod-2018-11-07" }, "operations": { + "ConfigureLogs": { + "errors": [ + { + "shape": "UnprocessableEntityException" + }, + { + "shape": "InternalServerErrorException" + }, + { + "shape": "ForbiddenException" + }, + { + "shape": "NotFoundException" + }, + { + "shape": "ServiceUnavailableException" + }, + { + "shape": "TooManyRequestsException" + } + ], + "http": { + "method": "PUT", + "requestUri": "/packaging_groups/{id}/configure_logs", + "responseCode": 200 + }, + "input": { + "shape": "ConfigureLogsRequest" + }, + "name": "ConfigureLogs", + "output": { + "shape": "ConfigureLogsResponse" + } + }, "CreateAsset": { "errors": [ { @@ -678,6 +712,61 @@ ], "type": "structure" }, + "ConfigureLogsParameters": { + "members": { + "EgressAccessLogs": { + "locationName": "egressAccessLogs", + "shape": "EgressAccessLogs" + } + }, + "type": "structure" + }, + "ConfigureLogsRequest": { + "members": { + "EgressAccessLogs": { + "locationName": "egressAccessLogs", + "shape": "EgressAccessLogs" + }, + "Id": { + "location": "uri", + "locationName": "id", + "shape": "__string" + } + }, + "required": [ + "Id" + ], + "type": "structure" + }, + "ConfigureLogsResponse": { + "members": { + "Arn": { + "locationName": "arn", + "shape": "__string" + }, + "Authorization": { + "locationName": "authorization", + "shape": "Authorization" + }, + "DomainName": { + "locationName": "domainName", + "shape": "__string" + }, + "EgressAccessLogs": { + "locationName": "egressAccessLogs", + "shape": "EgressAccessLogs" + }, + "Id": { + "locationName": "id", + "shape": "__string" + }, + "Tags": { + "locationName": "tags", + "shape": "Tags" + } + }, + "type": "structure" + }, "CreateAssetRequest": { "members": { "Id": { @@ -834,6 +923,10 @@ "locationName": "authorization", "shape": "Authorization" }, + "EgressAccessLogs": { + "locationName": "egressAccessLogs", + "shape": "EgressAccessLogs" + }, "Id": { "locationName": "id", "shape": "__string" @@ -862,6 +955,10 @@ "locationName": "domainName", "shape": "__string" }, + "EgressAccessLogs": { + "locationName": "egressAccessLogs", + "shape": "EgressAccessLogs" + }, "Id": { "locationName": "id", "shape": "__string" @@ -1120,6 +1217,10 @@ "locationName": "domainName", "shape": "__string" }, + "EgressAccessLogs": { + "locationName": "egressAccessLogs", + "shape": "EgressAccessLogs" + }, "Id": { "locationName": "id", "shape": "__string" @@ -1131,6 +1232,15 @@ }, "type": "structure" }, + "EgressAccessLogs": { + "members": { + "LogGroupName": { + "locationName": "logGroupName", + "shape": "__string" + } + }, + "type": "structure" + }, "EgressEndpoint": { "members": { "PackagingConfigurationId": { @@ -1537,6 +1647,10 @@ "locationName": "domainName", "shape": "__string" }, + "EgressAccessLogs": { + "locationName": "egressAccessLogs", + "shape": "EgressAccessLogs" + }, "Id": { "locationName": "id", "shape": "__string" @@ -1554,6 +1668,10 @@ "locationName": "authorization", "shape": "Authorization" }, + "EgressAccessLogs": { + "locationName": "egressAccessLogs", + "shape": "EgressAccessLogs" + }, "Id": { "locationName": "id", "shape": "__string" @@ -1780,6 +1898,10 @@ "locationName": "domainName", "shape": "__string" }, + "EgressAccessLogs": { + "locationName": "egressAccessLogs", + "shape": "EgressAccessLogs" + }, "Id": { "locationName": "id", "shape": "__string" diff --git a/models/apis/mediapackage-vod/2018-11-07/docs-2.json b/models/apis/mediapackage-vod/2018-11-07/docs-2.json index a0addb6df01..c0c27ff88f3 100644 --- a/models/apis/mediapackage-vod/2018-11-07/docs-2.json +++ b/models/apis/mediapackage-vod/2018-11-07/docs-2.json @@ -2,6 +2,7 @@ "version" : "2.0", "service" : "AWS Elemental MediaPackage VOD", "operations" : { + "ConfigureLogs" : "Changes the packaging group's properities to configure log subscription", "CreateAsset" : "Creates a new MediaPackage VOD Asset resource.", "CreatePackagingConfiguration" : "Creates a new MediaPackage VOD PackagingConfiguration resource.", "CreatePackagingGroup" : "Creates a new MediaPackage VOD PackagingGroup resource.", @@ -65,6 +66,10 @@ "PackagingConfigurationCreateParameters$CmafPackage" : null } }, + "ConfigureLogsParameters" : { + "base" : "The configuration parameters for egress access logging.", + "refs" : { } + }, "DashEncryption" : { "base" : "A Dynamic Adaptive Streaming over HTTP (DASH) encryption configuration.", "refs" : { @@ -84,6 +89,14 @@ "PackagingConfigurationCreateParameters$DashPackage" : null } }, + "EgressAccessLogs" : { + "base" : "Configure egress access logging.", + "refs" : { + "ConfigureLogsParameters$EgressAccessLogs" : null, + "PackagingGroup$EgressAccessLogs" : null, + "PackagingGroupCreateParameters$EgressAccessLogs" : null + } + }, "EgressEndpoint" : { "base" : "The endpoint URL used to access an Asset using one PackagingConfiguration.", "refs" : { @@ -337,6 +350,7 @@ "Authorization$CdnIdentifierSecret" : "The Amazon Resource Name (ARN) for the secret in AWS Secrets Manager that is used for CDN authorization.", "Authorization$SecretsRoleArn" : "The Amazon Resource Name (ARN) for the IAM role that allows MediaPackage to communicate with AWS Secrets Manager.", "DashManifest$ManifestName" : "An optional string to include in the name of the manifest.", + "EgressAccessLogs$LogGroupName" : "Customize the log group name.", "EgressEndpoint$PackagingConfigurationId" : "The ID of the PackagingConfiguration being applied to the Asset.", "EgressEndpoint$Url" : "The URL of the parent manifest for the repackaged Asset.", "HlsEncryption$ConstantInitializationVector" : "A constant initialization vector for encryption (optional).\nWhen not specified the initialization vector will be periodically rotated.\n", diff --git a/service/appflow/api.go b/service/appflow/api.go index 00315cabf9b..8d4564f60aa 100644 --- a/service/appflow/api.go +++ b/service/appflow/api.go @@ -2383,6 +2383,8 @@ type ConnectorMetadata struct { // The connector metadata specific to Amplitude. Amplitude *AmplitudeMetadata `type:"structure"` + CustomerProfiles *CustomerProfilesMetadata `type:"structure"` + // The connector metadata specific to Datadog. Datadog *DatadogMetadata `type:"structure"` @@ -2395,6 +2397,8 @@ type ConnectorMetadata struct { // The connector metadata specific to Google Analytics. GoogleAnalytics *GoogleAnalyticsMetadata `type:"structure"` + Honeycode *HoneycodeMetadata `type:"structure"` + // The connector metadata specific to Infor Nexus. InforNexus *InforNexusMetadata `type:"structure"` @@ -2451,6 +2455,12 @@ func (s *ConnectorMetadata) SetAmplitude(v *AmplitudeMetadata) *ConnectorMetadat return s } +// SetCustomerProfiles sets the CustomerProfiles field's value. +func (s *ConnectorMetadata) SetCustomerProfiles(v *CustomerProfilesMetadata) *ConnectorMetadata { + s.CustomerProfiles = v + return s +} + // SetDatadog sets the Datadog field's value. func (s *ConnectorMetadata) SetDatadog(v *DatadogMetadata) *ConnectorMetadata { s.Datadog = v @@ -2475,6 +2485,12 @@ func (s *ConnectorMetadata) SetGoogleAnalytics(v *GoogleAnalyticsMetadata) *Conn return s } +// SetHoneycode sets the Honeycode field's value. +func (s *ConnectorMetadata) SetHoneycode(v *HoneycodeMetadata) *ConnectorMetadata { + s.Honeycode = v + return s +} + // SetInforNexus sets the InforNexus field's value. func (s *ConnectorMetadata) SetInforNexus(v *InforNexusMetadata) *ConnectorMetadata { s.InforNexus = v @@ -2902,6 +2918,8 @@ type ConnectorProfileCredentials struct { // The connector-specific credentials required when using Google Analytics. GoogleAnalytics *GoogleAnalyticsConnectorProfileCredentials `type:"structure"` + Honeycode *HoneycodeConnectorProfileCredentials `type:"structure"` + // The connector-specific credentials required when using Infor Nexus. InforNexus *InforNexusConnectorProfileCredentials `type:"structure"` @@ -3055,6 +3073,12 @@ func (s *ConnectorProfileCredentials) SetGoogleAnalytics(v *GoogleAnalyticsConne return s } +// SetHoneycode sets the Honeycode field's value. +func (s *ConnectorProfileCredentials) SetHoneycode(v *HoneycodeConnectorProfileCredentials) *ConnectorProfileCredentials { + s.Honeycode = v + return s +} + // SetInforNexus sets the InforNexus field's value. func (s *ConnectorProfileCredentials) SetInforNexus(v *InforNexusConnectorProfileCredentials) *ConnectorProfileCredentials { s.InforNexus = v @@ -3137,6 +3161,8 @@ type ConnectorProfileProperties struct { // The connector-specific properties required Google Analytics. GoogleAnalytics *GoogleAnalyticsConnectorProfileProperties `type:"structure"` + Honeycode *HoneycodeConnectorProfileProperties `type:"structure"` + // The connector-specific properties required by Infor Nexus. InforNexus *InforNexusConnectorProfileProperties `type:"structure"` @@ -3265,6 +3291,12 @@ func (s *ConnectorProfileProperties) SetGoogleAnalytics(v *GoogleAnalyticsConnec return s } +// SetHoneycode sets the Honeycode field's value. +func (s *ConnectorProfileProperties) SetHoneycode(v *HoneycodeConnectorProfileProperties) *ConnectorProfileProperties { + s.Honeycode = v + return s +} + // SetInforNexus sets the InforNexus field's value. func (s *ConnectorProfileProperties) SetInforNexus(v *InforNexusConnectorProfileProperties) *ConnectorProfileProperties { s.InforNexus = v @@ -3706,6 +3738,64 @@ func (s *CreateFlowOutput) SetFlowStatus(v string) *CreateFlowOutput { return s } +type CustomerProfilesDestinationProperties struct { + _ struct{} `type:"structure"` + + // DomainName is a required field + DomainName *string `locationName:"domainName" type:"string" required:"true"` + + ObjectTypeName *string `locationName:"objectTypeName" type:"string"` +} + +// String returns the string representation +func (s CustomerProfilesDestinationProperties) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CustomerProfilesDestinationProperties) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CustomerProfilesDestinationProperties) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CustomerProfilesDestinationProperties"} + if s.DomainName == nil { + invalidParams.Add(request.NewErrParamRequired("DomainName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDomainName sets the DomainName field's value. +func (s *CustomerProfilesDestinationProperties) SetDomainName(v string) *CustomerProfilesDestinationProperties { + s.DomainName = &v + return s +} + +// SetObjectTypeName sets the ObjectTypeName field's value. +func (s *CustomerProfilesDestinationProperties) SetObjectTypeName(v string) *CustomerProfilesDestinationProperties { + s.ObjectTypeName = &v + return s +} + +type CustomerProfilesMetadata struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s CustomerProfilesMetadata) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CustomerProfilesMetadata) GoString() string { + return s.String() +} + // The connector-specific credentials required by Datadog. type DatadogConnectorProfileCredentials struct { _ struct{} `type:"structure"` @@ -4533,9 +4623,15 @@ func (s *DescribeFlowOutput) SetTriggerConfig(v *TriggerConfig) *DescribeFlowOut type DestinationConnectorProperties struct { _ struct{} `type:"structure"` + CustomerProfiles *CustomerProfilesDestinationProperties `type:"structure"` + // The properties required to query Amazon EventBridge. EventBridge *EventBridgeDestinationProperties `type:"structure"` + Honeycode *HoneycodeDestinationProperties `type:"structure"` + + LookoutMetrics *LookoutMetricsDestinationProperties `type:"structure"` + // The properties required to query Amazon Redshift. Redshift *RedshiftDestinationProperties `type:"structure"` @@ -4565,11 +4661,21 @@ func (s DestinationConnectorProperties) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *DestinationConnectorProperties) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DestinationConnectorProperties"} + if s.CustomerProfiles != nil { + if err := s.CustomerProfiles.Validate(); err != nil { + invalidParams.AddNested("CustomerProfiles", err.(request.ErrInvalidParams)) + } + } if s.EventBridge != nil { if err := s.EventBridge.Validate(); err != nil { invalidParams.AddNested("EventBridge", err.(request.ErrInvalidParams)) } } + if s.Honeycode != nil { + if err := s.Honeycode.Validate(); err != nil { + invalidParams.AddNested("Honeycode", err.(request.ErrInvalidParams)) + } + } if s.Redshift != nil { if err := s.Redshift.Validate(); err != nil { invalidParams.AddNested("Redshift", err.(request.ErrInvalidParams)) @@ -4602,12 +4708,30 @@ func (s *DestinationConnectorProperties) Validate() error { return nil } +// SetCustomerProfiles sets the CustomerProfiles field's value. +func (s *DestinationConnectorProperties) SetCustomerProfiles(v *CustomerProfilesDestinationProperties) *DestinationConnectorProperties { + s.CustomerProfiles = v + return s +} + // SetEventBridge sets the EventBridge field's value. func (s *DestinationConnectorProperties) SetEventBridge(v *EventBridgeDestinationProperties) *DestinationConnectorProperties { s.EventBridge = v return s } +// SetHoneycode sets the Honeycode field's value. +func (s *DestinationConnectorProperties) SetHoneycode(v *HoneycodeDestinationProperties) *DestinationConnectorProperties { + s.Honeycode = v + return s +} + +// SetLookoutMetrics sets the LookoutMetrics field's value. +func (s *DestinationConnectorProperties) SetLookoutMetrics(v *LookoutMetricsDestinationProperties) *DestinationConnectorProperties { + s.LookoutMetrics = v + return s +} + // SetRedshift sets the Redshift field's value. func (s *DestinationConnectorProperties) SetRedshift(v *RedshiftDestinationProperties) *DestinationConnectorProperties { s.Redshift = v @@ -5592,6 +5716,136 @@ func (s *GoogleAnalyticsSourceProperties) SetObject(v string) *GoogleAnalyticsSo return s } +type HoneycodeConnectorProfileCredentials struct { + _ struct{} `type:"structure"` + + AccessToken *string `locationName:"accessToken" type:"string" sensitive:"true"` + + // Used by select connectors for which the OAuth workflow is supported, such + // as Salesforce, Google Analytics, Marketo, Zendesk, and Slack. + OAuthRequest *ConnectorOAuthRequest `locationName:"oAuthRequest" type:"structure"` + + RefreshToken *string `locationName:"refreshToken" type:"string"` +} + +// String returns the string representation +func (s HoneycodeConnectorProfileCredentials) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HoneycodeConnectorProfileCredentials) GoString() string { + return s.String() +} + +// SetAccessToken sets the AccessToken field's value. +func (s *HoneycodeConnectorProfileCredentials) SetAccessToken(v string) *HoneycodeConnectorProfileCredentials { + s.AccessToken = &v + return s +} + +// SetOAuthRequest sets the OAuthRequest field's value. +func (s *HoneycodeConnectorProfileCredentials) SetOAuthRequest(v *ConnectorOAuthRequest) *HoneycodeConnectorProfileCredentials { + s.OAuthRequest = v + return s +} + +// SetRefreshToken sets the RefreshToken field's value. +func (s *HoneycodeConnectorProfileCredentials) SetRefreshToken(v string) *HoneycodeConnectorProfileCredentials { + s.RefreshToken = &v + return s +} + +type HoneycodeConnectorProfileProperties struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s HoneycodeConnectorProfileProperties) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HoneycodeConnectorProfileProperties) GoString() string { + return s.String() +} + +type HoneycodeDestinationProperties struct { + _ struct{} `type:"structure"` + + // The settings that determine how Amazon AppFlow handles an error when placing + // data in the destination. For example, this setting would determine if the + // flow should fail after one insertion error, or continue and attempt to insert + // every record regardless of the initial failure. ErrorHandlingConfig is a + // part of the destination connector details. + ErrorHandlingConfig *ErrorHandlingConfig `locationName:"errorHandlingConfig" type:"structure"` + + // Object is a required field + Object *string `locationName:"object" type:"string" required:"true"` +} + +// String returns the string representation +func (s HoneycodeDestinationProperties) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HoneycodeDestinationProperties) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *HoneycodeDestinationProperties) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "HoneycodeDestinationProperties"} + if s.Object == nil { + invalidParams.Add(request.NewErrParamRequired("Object")) + } + if s.ErrorHandlingConfig != nil { + if err := s.ErrorHandlingConfig.Validate(); err != nil { + invalidParams.AddNested("ErrorHandlingConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetErrorHandlingConfig sets the ErrorHandlingConfig field's value. +func (s *HoneycodeDestinationProperties) SetErrorHandlingConfig(v *ErrorHandlingConfig) *HoneycodeDestinationProperties { + s.ErrorHandlingConfig = v + return s +} + +// SetObject sets the Object field's value. +func (s *HoneycodeDestinationProperties) SetObject(v string) *HoneycodeDestinationProperties { + s.Object = &v + return s +} + +type HoneycodeMetadata struct { + _ struct{} `type:"structure"` + + OAuthScopes []*string `locationName:"oAuthScopes" type:"list"` +} + +// String returns the string representation +func (s HoneycodeMetadata) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HoneycodeMetadata) GoString() string { + return s.String() +} + +// SetOAuthScopes sets the OAuthScopes field's value. +func (s *HoneycodeMetadata) SetOAuthScopes(v []*string) *HoneycodeMetadata { + s.OAuthScopes = v + return s +} + // Specifies the configuration used when importing incremental records from // the source. type IncrementalPullConfig struct { @@ -6065,6 +6319,20 @@ func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForRe return s } +type LookoutMetricsDestinationProperties struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s LookoutMetricsDestinationProperties) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LookoutMetricsDestinationProperties) GoString() string { + return s.String() +} + // The connector-specific profile credentials required by Marketo. type MarketoConnectorProfileCredentials struct { _ struct{} `type:"structure"` @@ -7002,6 +7270,8 @@ type ScheduledTriggerProperties struct { // complete data transfer for each flow run. DataPullMode *string `locationName:"dataPullMode" type:"string" enum:"DataPullMode"` + FirstExecutionFrom *time.Time `locationName:"firstExecutionFrom" type:"timestamp"` + // Specifies the scheduled end time for a schedule-triggered flow. ScheduleEndTime *time.Time `locationName:"scheduleEndTime" type:"timestamp"` @@ -7052,6 +7322,12 @@ func (s *ScheduledTriggerProperties) SetDataPullMode(v string) *ScheduledTrigger return s } +// SetFirstExecutionFrom sets the FirstExecutionFrom field's value. +func (s *ScheduledTriggerProperties) SetFirstExecutionFrom(v time.Time) *ScheduledTriggerProperties { + s.FirstExecutionFrom = &v + return s +} + // SetScheduleEndTime sets the ScheduleEndTime field's value. func (s *ScheduledTriggerProperties) SetScheduleEndTime(v time.Time) *ScheduledTriggerProperties { s.ScheduleEndTime = &v @@ -9708,8 +9984,17 @@ const ( // ConnectorTypeEventBridge is a ConnectorType enum value ConnectorTypeEventBridge = "EventBridge" + // ConnectorTypeLookoutMetrics is a ConnectorType enum value + ConnectorTypeLookoutMetrics = "LookoutMetrics" + // ConnectorTypeUpsolver is a ConnectorType enum value ConnectorTypeUpsolver = "Upsolver" + + // ConnectorTypeHoneycode is a ConnectorType enum value + ConnectorTypeHoneycode = "Honeycode" + + // ConnectorTypeCustomerProfiles is a ConnectorType enum value + ConnectorTypeCustomerProfiles = "CustomerProfiles" ) // ConnectorType_Values returns all elements of the ConnectorType enum @@ -9732,7 +10017,10 @@ func ConnectorType_Values() []string { ConnectorTypeAmplitude, ConnectorTypeVeeva, ConnectorTypeEventBridge, + ConnectorTypeLookoutMetrics, ConnectorTypeUpsolver, + ConnectorTypeHoneycode, + ConnectorTypeCustomerProfiles, } } diff --git a/service/computeoptimizer/api.go b/service/computeoptimizer/api.go index 386bf53c117..2d51f2d5beb 100644 --- a/service/computeoptimizer/api.go +++ b/service/computeoptimizer/api.go @@ -1113,12 +1113,22 @@ func (c *ComputeOptimizer) UpdateEnrollmentStatusRequest(input *UpdateEnrollment // UpdateEnrollmentStatus API operation for AWS Compute Optimizer. // -// Updates the enrollment (opt in) status of an account to the AWS Compute Optimizer -// service. +// Updates the enrollment (opt in and opt out) status of an account to the AWS +// Compute Optimizer service. // // If the account is a management account of an organization, this action can // also be used to enroll member accounts within the organization. // +// You must have the appropriate permissions to opt in to Compute Optimizer, +// to view its recommendations, and to opt out. For more information, see Controlling +// access with AWS Identity and Access Management (https://docs.aws.amazon.com/compute-optimizer/ug/security-iam.html) +// in the Compute Optimizer User Guide. +// +// When you opt in, Compute Optimizer automatically creates a Service-Linked +// Role in your account to access its data. For more information, see Using +// Service-Linked Roles for AWS Compute Optimizer (https://docs.aws.amazon.com/compute-optimizer/ug/using-service-linked-roles.html) +// in the Compute Optimizer 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. @@ -3477,6 +3487,13 @@ type LambdaFunctionUtilizationMetric struct { _ struct{} `type:"structure"` // The name of the utilization metric. + // + // The following utilization metrics are available: + // + // * Duration - The amount of time that your function code spends processing + // an event. + // + // * Memory - The amount of memory used per invocation. Name *string `locationName:"name" type:"string" enum:"LambdaFunctionMetricName"` // The statistic of the utilization metric. @@ -4308,14 +4325,27 @@ func (s *ThrottlingException) RequestID() string { type UpdateEnrollmentStatusInput struct { _ struct{} `type:"structure"` - // Indicates whether to enroll member accounts of the organization if the your - // account is the management account of an organization. + // Indicates whether to enroll member accounts of the organization if the account + // is the management account of an organization. IncludeMemberAccounts *bool `locationName:"includeMemberAccounts" type:"boolean"` // The new enrollment status of the account. // - // Accepted options are Active or Inactive. You will get an error if Pending - // or Failed are specified. + // The following status options are available: + // + // * Active - Opts in your account to the Compute Optimizer service. Compute + // Optimizer begins analyzing the configuration and utilization metrics of + // your AWS resources after you opt in. For more information, see Metrics + // analyzed by AWS Compute Optimizer (https://docs.aws.amazon.com/compute-optimizer/ug/metrics.html) + // in the Compute Optimizer User Guide. + // + // * Inactive - Opts out your account from the Compute Optimizer service. + // Your account's recommendations and related metrics data will be deleted + // from Compute Optimizer after you opt out. + // + // The Pending and Failed options cannot be used to update the enrollment status + // of an account. They are returned in the response of a request to update the + // enrollment status of an account. // // Status is a required field Status *string `locationName:"status" type:"string" required:"true" enum:"Status"` diff --git a/service/ecrpublic/api.go b/service/ecrpublic/api.go index edb22e9784d..a8aebfc0dee 100644 --- a/service/ecrpublic/api.go +++ b/service/ecrpublic/api.go @@ -10,6 +10,7 @@ import ( "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/private/protocol" + "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) const opBatchCheckLayerAvailability = "BatchCheckLayerAvailability" @@ -386,6 +387,15 @@ func (c *ECRPublic) CreateRepositoryRequest(input *CreateRepositoryInput) (req * // The specified parameter is invalid. Review the available parameters for the // API request. // +// * InvalidTagParameterException +// An invalid parameter has been specified. Tag keys can have a maximum character +// length of 128 characters, and tag values can have a maximum length of 256 +// characters. +// +// * TooManyTagsException +// The list of tags on the repository is over the limit. The maximum number +// of tags that can be applied to a repository is 50. +// // * RepositoryAlreadyExistsException // The specified repository already exists in the specified registry. // @@ -1636,6 +1646,93 @@ func (c *ECRPublic) InitiateLayerUploadWithContext(ctx aws.Context, input *Initi return out, req.Send() } +const opListTagsForResource = "ListTagsForResource" + +// 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 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 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/ecr-public-2020-10-30/ListTagsForResource +func (c *ECRPublic) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { + op := &request.Operation{ + Name: opListTagsForResource, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListTagsForResourceInput{} + } + + output = &ListTagsForResourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListTagsForResource API operation for Amazon Elastic Container Registry Public. +// +// List the tags for an Amazon ECR Public 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 Elastic Container Registry Public's +// API operation ListTagsForResource for usage and error information. +// +// Returned Error Types: +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// * RepositoryNotFoundException +// The specified repository could not be found. Check the spelling of the specified +// repository and ensure that you are performing operations on the correct registry. +// +// * ServerException +// These errors are usually caused by a server-side issue. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ecr-public-2020-10-30/ListTagsForResource +func (c *ECRPublic) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + return out, req.Send() +} + +// ListTagsForResourceWithContext is the same as ListTagsForResource 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. +// +// 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 *ECRPublic) 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 opPutImage = "PutImage" // PutImageRequest generates a "aws/request.Request" representing the @@ -2024,6 +2121,203 @@ func (c *ECRPublic) SetRepositoryPolicyWithContext(ctx aws.Context, input *SetRe 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/ecr-public-2020-10-30/TagResource +func (c *ECRPublic) 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 Elastic Container Registry Public. +// +// Associates the specified tags to a resource with the specified resourceArn. +// If existing tags on a resource are not specified in the request parameters, +// they are not changed. When a resource is deleted, the tags associated with +// that resource are deleted as well. +// +// 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 Container Registry Public's +// API operation TagResource for usage and error information. +// +// Returned Error Types: +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// * InvalidTagParameterException +// An invalid parameter has been specified. Tag keys can have a maximum character +// length of 128 characters, and tag values can have a maximum length of 256 +// characters. +// +// * TooManyTagsException +// The list of tags on the repository is over the limit. The maximum number +// of tags that can be applied to a repository is 50. +// +// * RepositoryNotFoundException +// The specified repository could not be found. Check the spelling of the specified +// repository and ensure that you are performing operations on the correct registry. +// +// * ServerException +// These errors are usually caused by a server-side issue. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ecr-public-2020-10-30/TagResource +func (c *ECRPublic) 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 *ECRPublic) 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 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/ecr-public-2020-10-30/UntagResource +func (c *ECRPublic) 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 Elastic Container Registry Public. +// +// Deletes specified tags from a 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 Elastic Container Registry Public's +// API operation UntagResource for usage and error information. +// +// Returned Error Types: +// * InvalidParameterException +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// * InvalidTagParameterException +// An invalid parameter has been specified. Tag keys can have a maximum character +// length of 128 characters, and tag values can have a maximum length of 256 +// characters. +// +// * TooManyTagsException +// The list of tags on the repository is over the limit. The maximum number +// of tags that can be applied to a repository is 50. +// +// * RepositoryNotFoundException +// The specified repository could not be found. Check the spelling of the specified +// repository and ensure that you are performing operations on the correct registry. +// +// * ServerException +// These errors are usually caused by a server-side issue. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ecr-public-2020-10-30/UntagResource +func (c *ECRPublic) 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 *ECRPublic) 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() +} + const opUploadLayerPart = "UploadLayerPart" // UploadLayerPartRequest generates a "aws/request.Request" representing the @@ -2542,6 +2836,12 @@ type CreateRepositoryInput struct { // // RepositoryName is a required field RepositoryName *string `locationName:"repositoryName" min:"2" type:"string" required:"true"` + + // The metadata that you apply to the repository to help you categorize and + // organize them. Each tag consists of a key and an optional value, both of + // which you define. Tag keys can have a maximum character length of 128 characters, + // and tag values can have a maximum length of 256 characters. + Tags []*Tag `locationName:"tags" type:"list"` } // String returns the string representation @@ -2563,6 +2863,16 @@ func (s *CreateRepositoryInput) Validate() error { if s.RepositoryName != nil && len(*s.RepositoryName) < 2 { invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 2)) } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -2582,6 +2892,12 @@ func (s *CreateRepositoryInput) SetRepositoryName(v string) *CreateRepositoryInp return s } +// SetTags sets the Tags field's value. +func (s *CreateRepositoryInput) SetTags(v []*Tag) *CreateRepositoryInput { + s.Tags = v + return s +} + type CreateRepositoryOutput struct { _ struct{} `type:"structure"` @@ -4354,6 +4670,64 @@ func (s *InvalidParameterException) RequestID() string { return s.RespMetadata.RequestID } +// An invalid parameter has been specified. Tag keys can have a maximum character +// length of 128 characters, and tag values can have a maximum length of 256 +// characters. +type InvalidTagParameterException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidTagParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidTagParameterException) GoString() string { + return s.String() +} + +func newErrorInvalidTagParameterException(v protocol.ResponseMetadata) error { + return &InvalidTagParameterException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *InvalidTagParameterException) Code() string { + return "InvalidTagParameterException" +} + +// Message returns the exception's message. +func (s *InvalidTagParameterException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InvalidTagParameterException) OrigErr() error { + return nil +} + +func (s *InvalidTagParameterException) 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 *InvalidTagParameterException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *InvalidTagParameterException) RequestID() string { + return s.RespMetadata.RequestID +} + // An object representing an Amazon ECR image layer. type Layer struct { _ struct{} `type:"structure"` @@ -4675,6 +5049,69 @@ func (s *LimitExceededException) RequestID() string { return s.RespMetadata.RequestID } +type ListTagsForResourceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) that identifies the resource for which to + // list the tags. Currently, the supported resource is an Amazon ECR Public + // repository. + // + // ResourceArn is a required field + ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListTagsForResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 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 tags for the resource. + Tags []*Tag `locationName:"tags" type:"list"` +} + +// String returns the string representation +func (s ListTagsForResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTagsForResourceOutput) GoString() string { + return s.String() +} + +// SetTags sets the Tags field's value. +func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { + s.Tags = v + return s +} + type PutImageInput struct { _ struct{} `type:"structure"` @@ -5958,6 +6395,193 @@ func (s *SetRepositoryPolicyOutput) SetRepositoryName(v string) *SetRepositoryPo return s } +// The metadata that you apply to a resource to help you categorize and organize +// them. Each tag consists of a key and an optional value, both of which you +// define. Tag keys can have a maximum character length of 128 characters, and +// tag values can have a maximum length of 256 characters. +type Tag struct { + _ struct{} `type:"structure"` + + // One part of a key-value pair that make up a tag. A key is a general label + // that acts like a category for more specific tag values. + Key *string `min:"1" type:"string"` + + // The optional part of a key-value pair that make up a tag. A value acts as + // a descriptor within a tag category (key). + Value *string `type:"string"` +} + +// String returns the string representation +func (s Tag) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Tag) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Tag) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Tag"} + if s.Key != nil && len(*s.Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Key", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + +type TagResourceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the resource to which to add tags. Currently, + // the supported resource is an Amazon ECR Public repository. + // + // ResourceArn is a required field + ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"` + + // The tags to add to the resource. A tag is an array of key-value pairs. Tag + // keys can have a maximum character length of 128 characters, and tag values + // can have a maximum length of 256 characters. + // + // Tags is a required field + Tags []*Tag `locationName:"tags" type:"list" required:"true"` +} + +// String returns the string representation +func (s TagResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.Tags == nil { + invalidParams.Add(request.NewErrParamRequired("Tags")) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { + s.ResourceArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput { + s.Tags = v + return s +} + +type TagResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s TagResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagResourceOutput) GoString() string { + return s.String() +} + +// The list of tags on the repository is over the limit. The maximum number +// of tags that can be applied to a repository is 50. +type TooManyTagsException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TooManyTagsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyTagsException) GoString() string { + return s.String() +} + +func newErrorTooManyTagsException(v protocol.ResponseMetadata) error { + return &TooManyTagsException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *TooManyTagsException) Code() string { + return "TooManyTagsException" +} + +// Message returns the exception's message. +func (s *TooManyTagsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *TooManyTagsException) OrigErr() error { + return nil +} + +func (s *TooManyTagsException) 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 *TooManyTagsException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *TooManyTagsException) RequestID() string { + return s.RespMetadata.RequestID +} + // The action is not supported in this Region. type UnsupportedCommandException struct { _ struct{} `type:"structure"` @@ -6014,6 +6638,73 @@ func (s *UnsupportedCommandException) RequestID() string { return s.RespMetadata.RequestID } +type UntagResourceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the resource from which to delete tags. + // Currently, the supported resource is an Amazon ECR Public repository. + // + // ResourceArn is a required field + ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"` + + // The keys of the tags to be removed. + // + // TagKeys is a required field + TagKeys []*string `locationName:"tagKeys" type:"list" required:"true"` +} + +// String returns the string representation +func (s UntagResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UntagResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UntagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.TagKeys == nil { + invalidParams.Add(request.NewErrParamRequired("TagKeys")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { + s.ResourceArn = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { + s.TagKeys = v + return s +} + +type UntagResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UntagResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UntagResourceOutput) GoString() string { + return s.String() +} + type UploadLayerPartInput struct { _ struct{} `type:"structure"` diff --git a/service/ecrpublic/ecrpubliciface/interface.go b/service/ecrpublic/ecrpubliciface/interface.go index 75fbe5cb658..943c5b552b7 100644 --- a/service/ecrpublic/ecrpubliciface/interface.go +++ b/service/ecrpublic/ecrpubliciface/interface.go @@ -132,6 +132,10 @@ type ECRPublicAPI interface { InitiateLayerUploadWithContext(aws.Context, *ecrpublic.InitiateLayerUploadInput, ...request.Option) (*ecrpublic.InitiateLayerUploadOutput, error) InitiateLayerUploadRequest(*ecrpublic.InitiateLayerUploadInput) (*request.Request, *ecrpublic.InitiateLayerUploadOutput) + ListTagsForResource(*ecrpublic.ListTagsForResourceInput) (*ecrpublic.ListTagsForResourceOutput, error) + ListTagsForResourceWithContext(aws.Context, *ecrpublic.ListTagsForResourceInput, ...request.Option) (*ecrpublic.ListTagsForResourceOutput, error) + ListTagsForResourceRequest(*ecrpublic.ListTagsForResourceInput) (*request.Request, *ecrpublic.ListTagsForResourceOutput) + PutImage(*ecrpublic.PutImageInput) (*ecrpublic.PutImageOutput, error) PutImageWithContext(aws.Context, *ecrpublic.PutImageInput, ...request.Option) (*ecrpublic.PutImageOutput, error) PutImageRequest(*ecrpublic.PutImageInput) (*request.Request, *ecrpublic.PutImageOutput) @@ -148,6 +152,14 @@ type ECRPublicAPI interface { SetRepositoryPolicyWithContext(aws.Context, *ecrpublic.SetRepositoryPolicyInput, ...request.Option) (*ecrpublic.SetRepositoryPolicyOutput, error) SetRepositoryPolicyRequest(*ecrpublic.SetRepositoryPolicyInput) (*request.Request, *ecrpublic.SetRepositoryPolicyOutput) + TagResource(*ecrpublic.TagResourceInput) (*ecrpublic.TagResourceOutput, error) + TagResourceWithContext(aws.Context, *ecrpublic.TagResourceInput, ...request.Option) (*ecrpublic.TagResourceOutput, error) + TagResourceRequest(*ecrpublic.TagResourceInput) (*request.Request, *ecrpublic.TagResourceOutput) + + UntagResource(*ecrpublic.UntagResourceInput) (*ecrpublic.UntagResourceOutput, error) + UntagResourceWithContext(aws.Context, *ecrpublic.UntagResourceInput, ...request.Option) (*ecrpublic.UntagResourceOutput, error) + UntagResourceRequest(*ecrpublic.UntagResourceInput) (*request.Request, *ecrpublic.UntagResourceOutput) + UploadLayerPart(*ecrpublic.UploadLayerPartInput) (*ecrpublic.UploadLayerPartOutput, error) UploadLayerPartWithContext(aws.Context, *ecrpublic.UploadLayerPartInput, ...request.Option) (*ecrpublic.UploadLayerPartOutput, error) UploadLayerPartRequest(*ecrpublic.UploadLayerPartInput) (*request.Request, *ecrpublic.UploadLayerPartOutput) diff --git a/service/ecrpublic/errors.go b/service/ecrpublic/errors.go index 3f110058144..05033154210 100644 --- a/service/ecrpublic/errors.go +++ b/service/ecrpublic/errors.go @@ -62,6 +62,14 @@ const ( // API request. ErrCodeInvalidParameterException = "InvalidParameterException" + // ErrCodeInvalidTagParameterException for service response error code + // "InvalidTagParameterException". + // + // An invalid parameter has been specified. Tag keys can have a maximum character + // length of 128 characters, and tag values can have a maximum length of 256 + // characters. + ErrCodeInvalidTagParameterException = "InvalidTagParameterException" + // ErrCodeLayerAlreadyExistsException for service response error code // "LayerAlreadyExistsException". // @@ -134,6 +142,13 @@ const ( // These errors are usually caused by a server-side issue. ErrCodeServerException = "ServerException" + // ErrCodeTooManyTagsException for service response error code + // "TooManyTagsException". + // + // The list of tags on the repository is over the limit. The maximum number + // of tags that can be applied to a repository is 50. + ErrCodeTooManyTagsException = "TooManyTagsException" + // ErrCodeUnsupportedCommandException for service response error code // "UnsupportedCommandException". // @@ -157,6 +172,7 @@ var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "InvalidLayerException": newErrorInvalidLayerException, "InvalidLayerPartException": newErrorInvalidLayerPartException, "InvalidParameterException": newErrorInvalidParameterException, + "InvalidTagParameterException": newErrorInvalidTagParameterException, "LayerAlreadyExistsException": newErrorLayerAlreadyExistsException, "LayerPartTooSmallException": newErrorLayerPartTooSmallException, "LayersNotFoundException": newErrorLayersNotFoundException, @@ -168,6 +184,7 @@ var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "RepositoryNotFoundException": newErrorRepositoryNotFoundException, "RepositoryPolicyNotFoundException": newErrorRepositoryPolicyNotFoundException, "ServerException": newErrorServerException, + "TooManyTagsException": newErrorTooManyTagsException, "UnsupportedCommandException": newErrorUnsupportedCommandException, "UploadNotFoundException": newErrorUploadNotFoundException, } diff --git a/service/elasticsearchservice/api.go b/service/elasticsearchservice/api.go index bac2ee72518..f4f67738d7d 100644 --- a/service/elasticsearchservice/api.go +++ b/service/elasticsearchservice/api.go @@ -1115,6 +1115,154 @@ func (c *ElasticsearchService) DeletePackageWithContext(ctx aws.Context, input * return out, req.Send() } +const opDescribeDomainAutoTunes = "DescribeDomainAutoTunes" + +// DescribeDomainAutoTunesRequest generates a "aws/request.Request" representing the +// client's request for the DescribeDomainAutoTunes 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 DescribeDomainAutoTunes for more information on using the DescribeDomainAutoTunes +// 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 DescribeDomainAutoTunesRequest method. +// req, resp := client.DescribeDomainAutoTunesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *ElasticsearchService) DescribeDomainAutoTunesRequest(input *DescribeDomainAutoTunesInput) (req *request.Request, output *DescribeDomainAutoTunesOutput) { + op := &request.Operation{ + Name: opDescribeDomainAutoTunes, + HTTPMethod: "GET", + HTTPPath: "/2015-01-01/es/domain/{DomainName}/autoTunes", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &DescribeDomainAutoTunesInput{} + } + + output = &DescribeDomainAutoTunesOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeDomainAutoTunes API operation for Amazon Elasticsearch Service. +// +// Provides scheduled Auto-Tune action details for the Elasticsearch domain, +// such as Auto-Tune action type, description, severity, and scheduled date. +// +// 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 Elasticsearch Service's +// API operation DescribeDomainAutoTunes for usage and error information. +// +// Returned Error Types: +// * BaseException +// An error occurred while processing the request. +// +// * InternalException +// The request processing has failed because of an unknown error, exception +// or failure (the failure is internal to the service) . Gives http status code +// of 500. +// +// * ResourceNotFoundException +// An exception for accessing or deleting a resource that does not exist. Gives +// http status code of 400. +// +// * ValidationException +// An exception for missing / invalid input fields. Gives http status code of +// 400. +// +func (c *ElasticsearchService) DescribeDomainAutoTunes(input *DescribeDomainAutoTunesInput) (*DescribeDomainAutoTunesOutput, error) { + req, out := c.DescribeDomainAutoTunesRequest(input) + return out, req.Send() +} + +// DescribeDomainAutoTunesWithContext is the same as DescribeDomainAutoTunes with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeDomainAutoTunes 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 *ElasticsearchService) DescribeDomainAutoTunesWithContext(ctx aws.Context, input *DescribeDomainAutoTunesInput, opts ...request.Option) (*DescribeDomainAutoTunesOutput, error) { + req, out := c.DescribeDomainAutoTunesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// DescribeDomainAutoTunesPages iterates over the pages of a DescribeDomainAutoTunes operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeDomainAutoTunes 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 DescribeDomainAutoTunes operation. +// pageNum := 0 +// err := client.DescribeDomainAutoTunesPages(params, +// func(page *elasticsearchservice.DescribeDomainAutoTunesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *ElasticsearchService) DescribeDomainAutoTunesPages(input *DescribeDomainAutoTunesInput, fn func(*DescribeDomainAutoTunesOutput, bool) bool) error { + return c.DescribeDomainAutoTunesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// DescribeDomainAutoTunesPagesWithContext same as DescribeDomainAutoTunesPages 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 *ElasticsearchService) DescribeDomainAutoTunesPagesWithContext(ctx aws.Context, input *DescribeDomainAutoTunesInput, fn func(*DescribeDomainAutoTunesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeDomainAutoTunesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeDomainAutoTunesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*DescribeDomainAutoTunesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opDescribeElasticsearchDomain = "DescribeElasticsearchDomain" // DescribeElasticsearchDomainRequest generates a "aws/request.Request" representing the @@ -4747,39 +4895,426 @@ func (s *AssociatePackageInput) Validate() error { return nil } -// SetDomainName sets the DomainName field's value. -func (s *AssociatePackageInput) SetDomainName(v string) *AssociatePackageInput { - s.DomainName = &v - return s +// SetDomainName sets the DomainName field's value. +func (s *AssociatePackageInput) SetDomainName(v string) *AssociatePackageInput { + s.DomainName = &v + return s +} + +// SetPackageID sets the PackageID field's value. +func (s *AssociatePackageInput) SetPackageID(v string) *AssociatePackageInput { + s.PackageID = &v + return s +} + +// Container for response returned by AssociatePackage operation. +type AssociatePackageOutput struct { + _ struct{} `type:"structure"` + + // DomainPackageDetails + DomainPackageDetails *DomainPackageDetails `type:"structure"` +} + +// String returns the string representation +func (s AssociatePackageOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociatePackageOutput) GoString() string { + return s.String() +} + +// SetDomainPackageDetails sets the DomainPackageDetails field's value. +func (s *AssociatePackageOutput) SetDomainPackageDetails(v *DomainPackageDetails) *AssociatePackageOutput { + s.DomainPackageDetails = v + return s +} + +// Specifies Auto-Tune type and Auto-Tune action details. +type AutoTune struct { + _ struct{} `type:"structure"` + + // Specifies details of the Auto-Tune action. See the Developer Guide (https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/auto-tune.html) + // for more information. + AutoTuneDetails *AutoTuneDetails `type:"structure"` + + // Specifies Auto-Tune type. Valid value is SCHEDULED_ACTION. + AutoTuneType *string `type:"string" enum:"AutoTuneType"` +} + +// String returns the string representation +func (s AutoTune) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AutoTune) GoString() string { + return s.String() +} + +// SetAutoTuneDetails sets the AutoTuneDetails field's value. +func (s *AutoTune) SetAutoTuneDetails(v *AutoTuneDetails) *AutoTune { + s.AutoTuneDetails = v + return s +} + +// SetAutoTuneType sets the AutoTuneType field's value. +func (s *AutoTune) SetAutoTuneType(v string) *AutoTune { + s.AutoTuneType = &v + return s +} + +// Specifies details of the Auto-Tune action. See the Developer Guide (https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/auto-tune.html) +// for more information. +type AutoTuneDetails struct { + _ struct{} `type:"structure"` + + // Specifies details of the scheduled Auto-Tune action. See the Developer Guide + // (https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/auto-tune.html) + // for more information. + ScheduledAutoTuneDetails *ScheduledAutoTuneDetails `type:"structure"` +} + +// String returns the string representation +func (s AutoTuneDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AutoTuneDetails) GoString() string { + return s.String() +} + +// SetScheduledAutoTuneDetails sets the ScheduledAutoTuneDetails field's value. +func (s *AutoTuneDetails) SetScheduledAutoTuneDetails(v *ScheduledAutoTuneDetails) *AutoTuneDetails { + s.ScheduledAutoTuneDetails = v + return s +} + +// Specifies Auto-Tune maitenance schedule. See the Developer Guide (https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/auto-tune.html) +// for more information. +type AutoTuneMaintenanceSchedule struct { + _ struct{} `type:"structure"` + + // Specifies cron expression for a recurring maintenance schedule. See the Developer + // Guide (https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/auto-tune.html) + // for more information. + CronExpressionForRecurrence *string `type:"string"` + + // Specifies maintenance schedule duration: duration value and duration unit. + // See the Developer Guide (https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/auto-tune.html) + // for more information. + Duration *Duration `type:"structure"` + + // Specifies timestamp at which Auto-Tune maintenance schedule start. + StartAt *time.Time `type:"timestamp"` +} + +// String returns the string representation +func (s AutoTuneMaintenanceSchedule) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AutoTuneMaintenanceSchedule) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AutoTuneMaintenanceSchedule) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AutoTuneMaintenanceSchedule"} + if s.Duration != nil { + if err := s.Duration.Validate(); err != nil { + invalidParams.AddNested("Duration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCronExpressionForRecurrence sets the CronExpressionForRecurrence field's value. +func (s *AutoTuneMaintenanceSchedule) SetCronExpressionForRecurrence(v string) *AutoTuneMaintenanceSchedule { + s.CronExpressionForRecurrence = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *AutoTuneMaintenanceSchedule) SetDuration(v *Duration) *AutoTuneMaintenanceSchedule { + s.Duration = v + return s +} + +// SetStartAt sets the StartAt field's value. +func (s *AutoTuneMaintenanceSchedule) SetStartAt(v time.Time) *AutoTuneMaintenanceSchedule { + s.StartAt = &v + return s +} + +// Specifies the Auto-Tune options: the Auto-Tune desired state for the domain, +// rollback state when disabling Auto-Tune options and list of maintenance schedules. +type AutoTuneOptions struct { + _ struct{} `type:"structure"` + + // Specifies the Auto-Tune desired state. Valid values are ENABLED, DISABLED. + DesiredState *string `type:"string" enum:"AutoTuneDesiredState"` + + // Specifies list of maitenance schedules. See the Developer Guide (https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/auto-tune.html) + // for more information. + MaintenanceSchedules []*AutoTuneMaintenanceSchedule `type:"list"` + + // Specifies the rollback state while disabling Auto-Tune for the domain. Valid + // values are NO_ROLLBACK, DEFAULT_ROLLBACK. + RollbackOnDisable *string `type:"string" enum:"RollbackOnDisable"` +} + +// String returns the string representation +func (s AutoTuneOptions) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AutoTuneOptions) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AutoTuneOptions) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AutoTuneOptions"} + if s.MaintenanceSchedules != nil { + for i, v := range s.MaintenanceSchedules { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MaintenanceSchedules", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDesiredState sets the DesiredState field's value. +func (s *AutoTuneOptions) SetDesiredState(v string) *AutoTuneOptions { + s.DesiredState = &v + return s +} + +// SetMaintenanceSchedules sets the MaintenanceSchedules field's value. +func (s *AutoTuneOptions) SetMaintenanceSchedules(v []*AutoTuneMaintenanceSchedule) *AutoTuneOptions { + s.MaintenanceSchedules = v + return s +} + +// SetRollbackOnDisable sets the RollbackOnDisable field's value. +func (s *AutoTuneOptions) SetRollbackOnDisable(v string) *AutoTuneOptions { + s.RollbackOnDisable = &v + return s +} + +// Specifies the Auto-Tune options: the Auto-Tune desired state for the domain +// and list of maintenance schedules. +type AutoTuneOptionsInput struct { + _ struct{} `type:"structure"` + + // Specifies the Auto-Tune desired state. Valid values are ENABLED, DISABLED. + DesiredState *string `type:"string" enum:"AutoTuneDesiredState"` + + // Specifies list of maitenance schedules. See the Developer Guide (https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/auto-tune.html) + // for more information. + MaintenanceSchedules []*AutoTuneMaintenanceSchedule `type:"list"` +} + +// String returns the string representation +func (s AutoTuneOptionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AutoTuneOptionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AutoTuneOptionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AutoTuneOptionsInput"} + if s.MaintenanceSchedules != nil { + for i, v := range s.MaintenanceSchedules { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MaintenanceSchedules", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDesiredState sets the DesiredState field's value. +func (s *AutoTuneOptionsInput) SetDesiredState(v string) *AutoTuneOptionsInput { + s.DesiredState = &v + return s +} + +// SetMaintenanceSchedules sets the MaintenanceSchedules field's value. +func (s *AutoTuneOptionsInput) SetMaintenanceSchedules(v []*AutoTuneMaintenanceSchedule) *AutoTuneOptionsInput { + s.MaintenanceSchedules = v + return s +} + +// Specifies the Auto-Tune options: the Auto-Tune desired state for the domain +// and list of maintenance schedules. +type AutoTuneOptionsOutput struct { + _ struct{} `type:"structure"` + + // Specifies the error message while enabling or disabling the Auto-Tune. + ErrorMessage *string `type:"string"` + + // Specifies the AutoTuneState for the Elasticsearch domain. + State *string `type:"string" enum:"AutoTuneState"` +} + +// String returns the string representation +func (s AutoTuneOptionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AutoTuneOptionsOutput) GoString() string { + return s.String() +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *AutoTuneOptionsOutput) SetErrorMessage(v string) *AutoTuneOptionsOutput { + s.ErrorMessage = &v + return s +} + +// SetState sets the State field's value. +func (s *AutoTuneOptionsOutput) SetState(v string) *AutoTuneOptionsOutput { + s.State = &v + return s +} + +// Specifies the status of Auto-Tune options for the specified Elasticsearch +// domain. +type AutoTuneOptionsStatus struct { + _ struct{} `type:"structure"` + + // Specifies Auto-Tune options for the specified Elasticsearch domain. + Options *AutoTuneOptions `type:"structure"` + + // Specifies Status of the Auto-Tune options for the specified Elasticsearch + // domain. + Status *AutoTuneStatus `type:"structure"` +} + +// String returns the string representation +func (s AutoTuneOptionsStatus) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AutoTuneOptionsStatus) GoString() string { + return s.String() +} + +// SetOptions sets the Options field's value. +func (s *AutoTuneOptionsStatus) SetOptions(v *AutoTuneOptions) *AutoTuneOptionsStatus { + s.Options = v + return s +} + +// SetStatus sets the Status field's value. +func (s *AutoTuneOptionsStatus) SetStatus(v *AutoTuneStatus) *AutoTuneOptionsStatus { + s.Status = v + return s +} + +// Provides the current status of the Auto-Tune options. +type AutoTuneStatus struct { + _ struct{} `type:"structure"` + + // Timestamp which tells Auto-Tune options creation date . + // + // CreationDate is a required field + CreationDate *time.Time `type:"timestamp" required:"true"` + + // Specifies the error message while enabling or disabling the Auto-Tune options. + ErrorMessage *string `type:"string"` + + // Indicates whether the Elasticsearch domain is being deleted. + PendingDeletion *bool `type:"boolean"` + + // Specifies the AutoTuneState for the Elasticsearch domain. + // + // State is a required field + State *string `type:"string" required:"true" enum:"AutoTuneState"` + + // Timestamp which tells Auto-Tune options last updated time. + // + // UpdateDate is a required field + UpdateDate *time.Time `type:"timestamp" required:"true"` + + // Specifies the Auto-Tune options latest version. + UpdateVersion *int64 `type:"integer"` +} + +// String returns the string representation +func (s AutoTuneStatus) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AutoTuneStatus) GoString() string { + return s.String() } -// SetPackageID sets the PackageID field's value. -func (s *AssociatePackageInput) SetPackageID(v string) *AssociatePackageInput { - s.PackageID = &v +// SetCreationDate sets the CreationDate field's value. +func (s *AutoTuneStatus) SetCreationDate(v time.Time) *AutoTuneStatus { + s.CreationDate = &v return s } -// Container for response returned by AssociatePackage operation. -type AssociatePackageOutput struct { - _ struct{} `type:"structure"` +// SetErrorMessage sets the ErrorMessage field's value. +func (s *AutoTuneStatus) SetErrorMessage(v string) *AutoTuneStatus { + s.ErrorMessage = &v + return s +} - // DomainPackageDetails - DomainPackageDetails *DomainPackageDetails `type:"structure"` +// SetPendingDeletion sets the PendingDeletion field's value. +func (s *AutoTuneStatus) SetPendingDeletion(v bool) *AutoTuneStatus { + s.PendingDeletion = &v + return s } -// String returns the string representation -func (s AssociatePackageOutput) String() string { - return awsutil.Prettify(s) +// SetState sets the State field's value. +func (s *AutoTuneStatus) SetState(v string) *AutoTuneStatus { + s.State = &v + return s } -// GoString returns the string representation -func (s AssociatePackageOutput) GoString() string { - return s.String() +// SetUpdateDate sets the UpdateDate field's value. +func (s *AutoTuneStatus) SetUpdateDate(v time.Time) *AutoTuneStatus { + s.UpdateDate = &v + return s } -// SetDomainPackageDetails sets the DomainPackageDetails field's value. -func (s *AssociatePackageOutput) SetDomainPackageDetails(v *DomainPackageDetails) *AssociatePackageOutput { - s.DomainPackageDetails = v +// SetUpdateVersion sets the UpdateVersion field's value. +func (s *AutoTuneStatus) SetUpdateVersion(v int64) *AutoTuneStatus { + s.UpdateVersion = &v return s } @@ -5126,6 +5661,9 @@ type CreateElasticsearchDomainInput struct { // Specifies advanced security options. AdvancedSecurityOptions *AdvancedSecurityOptionsInput `type:"structure"` + // Specifies Auto-Tune options. + AutoTuneOptions *AutoTuneOptionsInput `type:"structure"` + // Options to specify the Cognito user and identity pools for Kibana authentication. // For more information, see Amazon Cognito Authentication for Kibana (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-cognito-auth.html). CognitoOptions *CognitoOptions `type:"structure"` @@ -5198,6 +5736,11 @@ func (s *CreateElasticsearchDomainInput) Validate() error { invalidParams.AddNested("AdvancedSecurityOptions", err.(request.ErrInvalidParams)) } } + if s.AutoTuneOptions != nil { + if err := s.AutoTuneOptions.Validate(); err != nil { + invalidParams.AddNested("AutoTuneOptions", err.(request.ErrInvalidParams)) + } + } if s.CognitoOptions != nil { if err := s.CognitoOptions.Validate(); err != nil { invalidParams.AddNested("CognitoOptions", err.(request.ErrInvalidParams)) @@ -5238,6 +5781,12 @@ func (s *CreateElasticsearchDomainInput) SetAdvancedSecurityOptions(v *AdvancedS return s } +// SetAutoTuneOptions sets the AutoTuneOptions field's value. +func (s *CreateElasticsearchDomainInput) SetAutoTuneOptions(v *AutoTuneOptionsInput) *CreateElasticsearchDomainInput { + s.AutoTuneOptions = v + return s +} + // SetCognitoOptions sets the CognitoOptions field's value. func (s *CreateElasticsearchDomainInput) SetCognitoOptions(v *CognitoOptions) *CreateElasticsearchDomainInput { s.CognitoOptions = v @@ -5879,6 +6428,104 @@ func (s *DeletePackageOutput) SetPackageDetails(v *PackageDetails) *DeletePackag return s } +// Container for the parameters to the DescribeDomainAutoTunes operation. +type DescribeDomainAutoTunesInput struct { + _ struct{} `type:"structure"` + + // Specifies the domain name for which you want Auto-Tune action details. + // + // DomainName is a required field + DomainName *string `location:"uri" locationName:"DomainName" min:"3" type:"string" required:"true"` + + // Set this value to limit the number of results returned. If not specified, + // defaults to 100. + MaxResults *int64 `type:"integer"` + + // NextToken is sent in case the earlier API call results contain the NextToken. + // It is used for pagination. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribeDomainAutoTunesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeDomainAutoTunesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeDomainAutoTunesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeDomainAutoTunesInput"} + if s.DomainName == nil { + invalidParams.Add(request.NewErrParamRequired("DomainName")) + } + if s.DomainName != nil && len(*s.DomainName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDomainName sets the DomainName field's value. +func (s *DescribeDomainAutoTunesInput) SetDomainName(v string) *DescribeDomainAutoTunesInput { + s.DomainName = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeDomainAutoTunesInput) SetMaxResults(v int64) *DescribeDomainAutoTunesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeDomainAutoTunesInput) SetNextToken(v string) *DescribeDomainAutoTunesInput { + s.NextToken = &v + return s +} + +// The result of DescribeDomainAutoTunes request. See the Developer Guide (https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/auto-tune.html) +// for more information. +type DescribeDomainAutoTunesOutput struct { + _ struct{} `type:"structure"` + + // Specifies the list of setting adjustments that Auto-Tune has made to the + // domain. See the Developer Guide (https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/auto-tune.html) + // for more information. + AutoTunes []*AutoTune `type:"list"` + + // Specifies an identifier to allow retrieval of paginated results. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribeDomainAutoTunesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeDomainAutoTunesOutput) GoString() string { + return s.String() +} + +// SetAutoTunes sets the AutoTunes field's value. +func (s *DescribeDomainAutoTunesOutput) SetAutoTunes(v []*AutoTune) *DescribeDomainAutoTunesOutput { + s.AutoTunes = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeDomainAutoTunesOutput) SetNextToken(v string) *DescribeDomainAutoTunesOutput { + s.NextToken = &v + return s +} + // Container for the parameters to the DescribeElasticsearchDomainConfig operation. // Specifies the domain name for which you want configuration information. type DescribeElasticsearchDomainConfigInput struct { @@ -7118,6 +7765,58 @@ func (s *DomainPackageDetails) SetReferencePath(v string) *DomainPackageDetails return s } +// Specifies maintenance schedule duration: duration value and duration unit. +// See the Developer Guide (https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/auto-tune.html) +// for more information. +type Duration struct { + _ struct{} `type:"structure"` + + // Specifies the unit of a maintenance schedule duration. Valid value is HOURS. + // See the Developer Guide (https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/auto-tune.html) + // for more information. + Unit *string `type:"string" enum:"TimeUnit"` + + // Integer to specify the value of a maintenance schedule duration. See the + // Developer Guide (https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/auto-tune.html) + // for more information. + Value *int64 `min:"1" type:"long"` +} + +// String returns the string representation +func (s Duration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Duration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Duration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Duration"} + if s.Value != nil && *s.Value < 1 { + invalidParams.Add(request.NewErrParamMinValue("Value", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetUnit sets the Unit field's value. +func (s *Duration) SetUnit(v string) *Duration { + s.Unit = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Duration) SetValue(v int64) *Duration { + s.Value = &v + return s +} + // Options to enable, disable, and specify the properties of EBS storage volumes. // For more information, see Configuring EBS-based Storage (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-ebs). type EBSOptions struct { @@ -7372,6 +8071,9 @@ type ElasticsearchDomainConfig struct { // Specifies AdvancedSecurityOptions for the domain. AdvancedSecurityOptions *AdvancedSecurityOptionsStatus `type:"structure"` + // Specifies AutoTuneOptions for the domain. + AutoTuneOptions *AutoTuneOptionsStatus `type:"structure"` + // The CognitoOptions for the specified domain. For more information, see Amazon // Cognito Authentication for Kibana (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-cognito-auth.html). CognitoOptions *CognitoOptionsStatus `type:"structure"` @@ -7433,6 +8135,12 @@ func (s *ElasticsearchDomainConfig) SetAdvancedSecurityOptions(v *AdvancedSecuri return s } +// SetAutoTuneOptions sets the AutoTuneOptions field's value. +func (s *ElasticsearchDomainConfig) SetAutoTuneOptions(v *AutoTuneOptionsStatus) *ElasticsearchDomainConfig { + s.AutoTuneOptions = v + return s +} + // SetCognitoOptions sets the CognitoOptions field's value. func (s *ElasticsearchDomainConfig) SetCognitoOptions(v *CognitoOptionsStatus) *ElasticsearchDomainConfig { s.CognitoOptions = v @@ -7513,6 +8221,9 @@ type ElasticsearchDomainStatus struct { // The current status of the Elasticsearch domain's advanced security options. AdvancedSecurityOptions *AdvancedSecurityOptions `type:"structure"` + // The current status of the Elasticsearch domain's Auto-Tune options. + AutoTuneOptions *AutoTuneOptionsOutput `type:"structure"` + // The CognitoOptions for the specified domain. For more information, see Amazon // Cognito Authentication for Kibana (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-cognito-auth.html). CognitoOptions *CognitoOptions `type:"structure"` @@ -7626,6 +8337,12 @@ func (s *ElasticsearchDomainStatus) SetAdvancedSecurityOptions(v *AdvancedSecuri return s } +// SetAutoTuneOptions sets the AutoTuneOptions field's value. +func (s *ElasticsearchDomainStatus) SetAutoTuneOptions(v *AutoTuneOptionsOutput) *ElasticsearchDomainStatus { + s.AutoTuneOptions = v + return s +} + // SetCognitoOptions sets the CognitoOptions field's value. func (s *ElasticsearchDomainStatus) SetCognitoOptions(v *CognitoOptions) *ElasticsearchDomainStatus { s.CognitoOptions = v @@ -10625,6 +11342,60 @@ func (s *SAMLOptionsOutput) SetSubjectKey(v string) *SAMLOptionsOutput { return s } +// Specifies details of the scheduled Auto-Tune action. See the Developer Guide +// (https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/auto-tune.html) +// for more information. +type ScheduledAutoTuneDetails struct { + _ struct{} `type:"structure"` + + // Specifies Auto-Tune action description. + Action *string `type:"string"` + + // Specifies Auto-Tune action type. Valid values are JVM_HEAP_SIZE_TUNING and + // JVM_YOUNG_GEN_TUNING. + ActionType *string `type:"string" enum:"ScheduledAutoTuneActionType"` + + // Specifies timestamp for the Auto-Tune action scheduled for the domain. + Date *time.Time `type:"timestamp"` + + // Specifies Auto-Tune action severity. Valid values are LOW, MEDIUM and HIGH. + Severity *string `type:"string" enum:"ScheduledAutoTuneSeverityType"` +} + +// String returns the string representation +func (s ScheduledAutoTuneDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ScheduledAutoTuneDetails) GoString() string { + return s.String() +} + +// SetAction sets the Action field's value. +func (s *ScheduledAutoTuneDetails) SetAction(v string) *ScheduledAutoTuneDetails { + s.Action = &v + return s +} + +// SetActionType sets the ActionType field's value. +func (s *ScheduledAutoTuneDetails) SetActionType(v string) *ScheduledAutoTuneDetails { + s.ActionType = &v + return s +} + +// SetDate sets the Date field's value. +func (s *ScheduledAutoTuneDetails) SetDate(v time.Time) *ScheduledAutoTuneDetails { + s.Date = &v + return s +} + +// SetSeverity sets the Severity field's value. +func (s *ScheduledAutoTuneDetails) SetSeverity(v string) *ScheduledAutoTuneDetails { + s.Severity = &v + return s +} + // The current options of an Elasticsearch domain service software options. type ServiceSoftwareOptions struct { _ struct{} `type:"structure"` @@ -11015,6 +11786,9 @@ type UpdateElasticsearchDomainConfigInput struct { // Specifies advanced security options. AdvancedSecurityOptions *AdvancedSecurityOptionsInput `type:"structure"` + // Specifies Auto-Tune options. + AutoTuneOptions *AutoTuneOptions `type:"structure"` + // Options to specify the Cognito user and identity pools for Kibana authentication. // For more information, see Amazon Cognito Authentication for Kibana (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-cognito-auth.html). CognitoOptions *CognitoOptions `type:"structure"` @@ -11077,6 +11851,11 @@ func (s *UpdateElasticsearchDomainConfigInput) Validate() error { invalidParams.AddNested("AdvancedSecurityOptions", err.(request.ErrInvalidParams)) } } + if s.AutoTuneOptions != nil { + if err := s.AutoTuneOptions.Validate(); err != nil { + invalidParams.AddNested("AutoTuneOptions", err.(request.ErrInvalidParams)) + } + } if s.CognitoOptions != nil { if err := s.CognitoOptions.Validate(); err != nil { invalidParams.AddNested("CognitoOptions", err.(request.ErrInvalidParams)) @@ -11117,6 +11896,12 @@ func (s *UpdateElasticsearchDomainConfigInput) SetAdvancedSecurityOptions(v *Adv return s } +// SetAutoTuneOptions sets the AutoTuneOptions field's value. +func (s *UpdateElasticsearchDomainConfigInput) SetAutoTuneOptions(v *AutoTuneOptions) *UpdateElasticsearchDomainConfigInput { + s.AutoTuneOptions = v + return s +} + // SetCognitoOptions sets the CognitoOptions field's value. func (s *UpdateElasticsearchDomainConfigInput) SetCognitoOptions(v *CognitoOptions) *UpdateElasticsearchDomainConfigInput { s.CognitoOptions = v @@ -11758,6 +12543,82 @@ func (s *ZoneAwarenessConfig) SetAvailabilityZoneCount(v int64) *ZoneAwarenessCo return s } +// Specifies the Auto-Tune desired state. Valid values are ENABLED, DISABLED. +const ( + // AutoTuneDesiredStateEnabled is a AutoTuneDesiredState enum value + AutoTuneDesiredStateEnabled = "ENABLED" + + // AutoTuneDesiredStateDisabled is a AutoTuneDesiredState enum value + AutoTuneDesiredStateDisabled = "DISABLED" +) + +// AutoTuneDesiredState_Values returns all elements of the AutoTuneDesiredState enum +func AutoTuneDesiredState_Values() []string { + return []string{ + AutoTuneDesiredStateEnabled, + AutoTuneDesiredStateDisabled, + } +} + +// Specifies the Auto-Tune state for the Elasticsearch domain. For valid states +// see the Developer Guide (https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/auto-tune.html). +const ( + // AutoTuneStateEnabled is a AutoTuneState enum value + AutoTuneStateEnabled = "ENABLED" + + // AutoTuneStateDisabled is a AutoTuneState enum value + AutoTuneStateDisabled = "DISABLED" + + // AutoTuneStateEnableInProgress is a AutoTuneState enum value + AutoTuneStateEnableInProgress = "ENABLE_IN_PROGRESS" + + // AutoTuneStateDisableInProgress is a AutoTuneState enum value + AutoTuneStateDisableInProgress = "DISABLE_IN_PROGRESS" + + // AutoTuneStateDisabledAndRollbackScheduled is a AutoTuneState enum value + AutoTuneStateDisabledAndRollbackScheduled = "DISABLED_AND_ROLLBACK_SCHEDULED" + + // AutoTuneStateDisabledAndRollbackInProgress is a AutoTuneState enum value + AutoTuneStateDisabledAndRollbackInProgress = "DISABLED_AND_ROLLBACK_IN_PROGRESS" + + // AutoTuneStateDisabledAndRollbackComplete is a AutoTuneState enum value + AutoTuneStateDisabledAndRollbackComplete = "DISABLED_AND_ROLLBACK_COMPLETE" + + // AutoTuneStateDisabledAndRollbackError is a AutoTuneState enum value + AutoTuneStateDisabledAndRollbackError = "DISABLED_AND_ROLLBACK_ERROR" + + // AutoTuneStateError is a AutoTuneState enum value + AutoTuneStateError = "ERROR" +) + +// AutoTuneState_Values returns all elements of the AutoTuneState enum +func AutoTuneState_Values() []string { + return []string{ + AutoTuneStateEnabled, + AutoTuneStateDisabled, + AutoTuneStateEnableInProgress, + AutoTuneStateDisableInProgress, + AutoTuneStateDisabledAndRollbackScheduled, + AutoTuneStateDisabledAndRollbackInProgress, + AutoTuneStateDisabledAndRollbackComplete, + AutoTuneStateDisabledAndRollbackError, + AutoTuneStateError, + } +} + +// Specifies Auto-Tune type. Valid value is SCHEDULED_ACTION. +const ( + // AutoTuneTypeScheduledAction is a AutoTuneType enum value + AutoTuneTypeScheduledAction = "SCHEDULED_ACTION" +) + +// AutoTuneType_Values returns all elements of the AutoTuneType enum +func AutoTuneType_Values() []string { + return []string{ + AutoTuneTypeScheduledAction, + } +} + const ( // DeploymentStatusPendingUpdate is a DeploymentStatus enum value DeploymentStatusPendingUpdate = "PENDING_UPDATE" @@ -12297,6 +13158,63 @@ func ReservedElasticsearchInstancePaymentOption_Values() []string { } } +// Specifies the rollback state while disabling Auto-Tune for the domain. Valid +// values are NO_ROLLBACK, DEFAULT_ROLLBACK. +const ( + // RollbackOnDisableNoRollback is a RollbackOnDisable enum value + RollbackOnDisableNoRollback = "NO_ROLLBACK" + + // RollbackOnDisableDefaultRollback is a RollbackOnDisable enum value + RollbackOnDisableDefaultRollback = "DEFAULT_ROLLBACK" +) + +// RollbackOnDisable_Values returns all elements of the RollbackOnDisable enum +func RollbackOnDisable_Values() []string { + return []string{ + RollbackOnDisableNoRollback, + RollbackOnDisableDefaultRollback, + } +} + +// Specifies Auto-Tune action type. Valid values are JVM_HEAP_SIZE_TUNING and +// JVM_YOUNG_GEN_TUNING. +const ( + // ScheduledAutoTuneActionTypeJvmHeapSizeTuning is a ScheduledAutoTuneActionType enum value + ScheduledAutoTuneActionTypeJvmHeapSizeTuning = "JVM_HEAP_SIZE_TUNING" + + // ScheduledAutoTuneActionTypeJvmYoungGenTuning is a ScheduledAutoTuneActionType enum value + ScheduledAutoTuneActionTypeJvmYoungGenTuning = "JVM_YOUNG_GEN_TUNING" +) + +// ScheduledAutoTuneActionType_Values returns all elements of the ScheduledAutoTuneActionType enum +func ScheduledAutoTuneActionType_Values() []string { + return []string{ + ScheduledAutoTuneActionTypeJvmHeapSizeTuning, + ScheduledAutoTuneActionTypeJvmYoungGenTuning, + } +} + +// Specifies Auto-Tune action severity. Valid values are LOW, MEDIUM and HIGH. +const ( + // ScheduledAutoTuneSeverityTypeLow is a ScheduledAutoTuneSeverityType enum value + ScheduledAutoTuneSeverityTypeLow = "LOW" + + // ScheduledAutoTuneSeverityTypeMedium is a ScheduledAutoTuneSeverityType enum value + ScheduledAutoTuneSeverityTypeMedium = "MEDIUM" + + // ScheduledAutoTuneSeverityTypeHigh is a ScheduledAutoTuneSeverityType enum value + ScheduledAutoTuneSeverityTypeHigh = "HIGH" +) + +// ScheduledAutoTuneSeverityType_Values returns all elements of the ScheduledAutoTuneSeverityType enum +func ScheduledAutoTuneSeverityType_Values() []string { + return []string{ + ScheduledAutoTuneSeverityTypeLow, + ScheduledAutoTuneSeverityTypeMedium, + ScheduledAutoTuneSeverityTypeHigh, + } +} + const ( // TLSSecurityPolicyPolicyMinTls10201907 is a TLSSecurityPolicy enum value TLSSecurityPolicyPolicyMinTls10201907 = "Policy-Min-TLS-1-0-2019-07" @@ -12313,6 +13231,21 @@ func TLSSecurityPolicy_Values() []string { } } +// Specifies the unit of a maintenance schedule duration. Valid value is HOUR. +// See the Developer Guide (https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/auto-tune.html) +// for more information. +const ( + // TimeUnitHours is a TimeUnit enum value + TimeUnitHours = "HOURS" +) + +// TimeUnit_Values returns all elements of the TimeUnit enum +func TimeUnit_Values() []string { + return []string{ + TimeUnitHours, + } +} + const ( // UpgradeStatusInProgress is a UpgradeStatus enum value UpgradeStatusInProgress = "IN_PROGRESS" diff --git a/service/elasticsearchservice/elasticsearchserviceiface/interface.go b/service/elasticsearchservice/elasticsearchserviceiface/interface.go index 8fa8cc1bbc1..0ddaeb16b9b 100644 --- a/service/elasticsearchservice/elasticsearchserviceiface/interface.go +++ b/service/elasticsearchservice/elasticsearchserviceiface/interface.go @@ -108,6 +108,13 @@ type ElasticsearchServiceAPI interface { DeletePackageWithContext(aws.Context, *elasticsearchservice.DeletePackageInput, ...request.Option) (*elasticsearchservice.DeletePackageOutput, error) DeletePackageRequest(*elasticsearchservice.DeletePackageInput) (*request.Request, *elasticsearchservice.DeletePackageOutput) + DescribeDomainAutoTunes(*elasticsearchservice.DescribeDomainAutoTunesInput) (*elasticsearchservice.DescribeDomainAutoTunesOutput, error) + DescribeDomainAutoTunesWithContext(aws.Context, *elasticsearchservice.DescribeDomainAutoTunesInput, ...request.Option) (*elasticsearchservice.DescribeDomainAutoTunesOutput, error) + DescribeDomainAutoTunesRequest(*elasticsearchservice.DescribeDomainAutoTunesInput) (*request.Request, *elasticsearchservice.DescribeDomainAutoTunesOutput) + + DescribeDomainAutoTunesPages(*elasticsearchservice.DescribeDomainAutoTunesInput, func(*elasticsearchservice.DescribeDomainAutoTunesOutput, bool) bool) error + DescribeDomainAutoTunesPagesWithContext(aws.Context, *elasticsearchservice.DescribeDomainAutoTunesInput, func(*elasticsearchservice.DescribeDomainAutoTunesOutput, bool) bool, ...request.Option) error + DescribeElasticsearchDomain(*elasticsearchservice.DescribeElasticsearchDomainInput) (*elasticsearchservice.DescribeElasticsearchDomainOutput, error) DescribeElasticsearchDomainWithContext(aws.Context, *elasticsearchservice.DescribeElasticsearchDomainInput, ...request.Option) (*elasticsearchservice.DescribeElasticsearchDomainOutput, error) DescribeElasticsearchDomainRequest(*elasticsearchservice.DescribeElasticsearchDomainInput) (*request.Request, *elasticsearchservice.DescribeElasticsearchDomainOutput) diff --git a/service/mediapackagevod/api.go b/service/mediapackagevod/api.go index 9237503df4a..9e19270b3f9 100644 --- a/service/mediapackagevod/api.go +++ b/service/mediapackagevod/api.go @@ -12,6 +12,94 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/restjson" ) +const opConfigureLogs = "ConfigureLogs" + +// ConfigureLogsRequest generates a "aws/request.Request" representing the +// client's request for the ConfigureLogs 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 ConfigureLogs for more information on using the ConfigureLogs +// 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 ConfigureLogsRequest method. +// req, resp := client.ConfigureLogsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/ConfigureLogs +func (c *MediaPackageVod) ConfigureLogsRequest(input *ConfigureLogsInput) (req *request.Request, output *ConfigureLogsOutput) { + op := &request.Operation{ + Name: opConfigureLogs, + HTTPMethod: "PUT", + HTTPPath: "/packaging_groups/{id}/configure_logs", + } + + if input == nil { + input = &ConfigureLogsInput{} + } + + output = &ConfigureLogsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ConfigureLogs API operation for AWS Elemental MediaPackage VOD. +// +// Changes the packaging group's properities to configure log 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 AWS Elemental MediaPackage VOD's +// API operation ConfigureLogs for usage and error information. +// +// Returned Error Types: +// * UnprocessableEntityException +// +// * InternalServerErrorException +// +// * ForbiddenException +// +// * NotFoundException +// +// * ServiceUnavailableException +// +// * TooManyRequestsException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/ConfigureLogs +func (c *MediaPackageVod) ConfigureLogs(input *ConfigureLogsInput) (*ConfigureLogsOutput, error) { + req, out := c.ConfigureLogsRequest(input) + return out, req.Send() +} + +// ConfigureLogsWithContext is the same as ConfigureLogs with the addition of +// the ability to pass a context and additional request options. +// +// See ConfigureLogs 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 *MediaPackageVod) ConfigureLogsWithContext(ctx aws.Context, input *ConfigureLogsInput, opts ...request.Option) (*ConfigureLogsOutput, error) { + req, out := c.ConfigureLogsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateAsset = "CreateAsset" // CreateAssetRequest generates a "aws/request.Request" representing the @@ -1810,6 +1898,119 @@ func (s *CmafPackage) SetSegmentDurationSeconds(v int64) *CmafPackage { return s } +type ConfigureLogsInput struct { + _ struct{} `type:"structure"` + + // Configure egress access logging. + EgressAccessLogs *EgressAccessLogs `locationName:"egressAccessLogs" type:"structure"` + + // Id is a required field + Id *string `location:"uri" locationName:"id" type:"string" required:"true"` +} + +// String returns the string representation +func (s ConfigureLogsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConfigureLogsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ConfigureLogsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ConfigureLogsInput"} + 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 +} + +// SetEgressAccessLogs sets the EgressAccessLogs field's value. +func (s *ConfigureLogsInput) SetEgressAccessLogs(v *EgressAccessLogs) *ConfigureLogsInput { + s.EgressAccessLogs = v + return s +} + +// SetId sets the Id field's value. +func (s *ConfigureLogsInput) SetId(v string) *ConfigureLogsInput { + s.Id = &v + return s +} + +type ConfigureLogsOutput struct { + _ struct{} `type:"structure"` + + Arn *string `locationName:"arn" type:"string"` + + // CDN Authorization credentials + Authorization *Authorization `locationName:"authorization" type:"structure"` + + DomainName *string `locationName:"domainName" type:"string"` + + // Configure egress access logging. + EgressAccessLogs *EgressAccessLogs `locationName:"egressAccessLogs" type:"structure"` + + Id *string `locationName:"id" type:"string"` + + // A collection of tags associated with a resource + Tags map[string]*string `locationName:"tags" type:"map"` +} + +// String returns the string representation +func (s ConfigureLogsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConfigureLogsOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *ConfigureLogsOutput) SetArn(v string) *ConfigureLogsOutput { + s.Arn = &v + return s +} + +// SetAuthorization sets the Authorization field's value. +func (s *ConfigureLogsOutput) SetAuthorization(v *Authorization) *ConfigureLogsOutput { + s.Authorization = v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *ConfigureLogsOutput) SetDomainName(v string) *ConfigureLogsOutput { + s.DomainName = &v + return s +} + +// SetEgressAccessLogs sets the EgressAccessLogs field's value. +func (s *ConfigureLogsOutput) SetEgressAccessLogs(v *EgressAccessLogs) *ConfigureLogsOutput { + s.EgressAccessLogs = v + return s +} + +// SetId sets the Id field's value. +func (s *ConfigureLogsOutput) SetId(v string) *ConfigureLogsOutput { + s.Id = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ConfigureLogsOutput) SetTags(v map[string]*string) *ConfigureLogsOutput { + s.Tags = v + return s +} + type CreateAssetInput struct { _ struct{} `type:"structure"` @@ -2188,6 +2389,9 @@ type CreatePackagingGroupInput struct { // CDN Authorization credentials Authorization *Authorization `locationName:"authorization" type:"structure"` + // Configure egress access logging. + EgressAccessLogs *EgressAccessLogs `locationName:"egressAccessLogs" type:"structure"` + // Id is a required field Id *string `locationName:"id" type:"string" required:"true"` @@ -2229,6 +2433,12 @@ func (s *CreatePackagingGroupInput) SetAuthorization(v *Authorization) *CreatePa return s } +// SetEgressAccessLogs sets the EgressAccessLogs field's value. +func (s *CreatePackagingGroupInput) SetEgressAccessLogs(v *EgressAccessLogs) *CreatePackagingGroupInput { + s.EgressAccessLogs = v + return s +} + // SetId sets the Id field's value. func (s *CreatePackagingGroupInput) SetId(v string) *CreatePackagingGroupInput { s.Id = &v @@ -2251,6 +2461,9 @@ type CreatePackagingGroupOutput struct { DomainName *string `locationName:"domainName" type:"string"` + // Configure egress access logging. + EgressAccessLogs *EgressAccessLogs `locationName:"egressAccessLogs" type:"structure"` + Id *string `locationName:"id" type:"string"` // A collection of tags associated with a resource @@ -2285,6 +2498,12 @@ func (s *CreatePackagingGroupOutput) SetDomainName(v string) *CreatePackagingGro return s } +// SetEgressAccessLogs sets the EgressAccessLogs field's value. +func (s *CreatePackagingGroupOutput) SetEgressAccessLogs(v *EgressAccessLogs) *CreatePackagingGroupOutput { + s.EgressAccessLogs = v + return s +} + // SetId sets the Id field's value. func (s *CreatePackagingGroupOutput) SetId(v string) *CreatePackagingGroupOutput { s.Id = &v @@ -2953,6 +3172,9 @@ type DescribePackagingGroupOutput struct { DomainName *string `locationName:"domainName" type:"string"` + // Configure egress access logging. + EgressAccessLogs *EgressAccessLogs `locationName:"egressAccessLogs" type:"structure"` + Id *string `locationName:"id" type:"string"` // A collection of tags associated with a resource @@ -2987,6 +3209,12 @@ func (s *DescribePackagingGroupOutput) SetDomainName(v string) *DescribePackagin return s } +// SetEgressAccessLogs sets the EgressAccessLogs field's value. +func (s *DescribePackagingGroupOutput) SetEgressAccessLogs(v *EgressAccessLogs) *DescribePackagingGroupOutput { + s.EgressAccessLogs = v + return s +} + // SetId sets the Id field's value. func (s *DescribePackagingGroupOutput) SetId(v string) *DescribePackagingGroupOutput { s.Id = &v @@ -2999,6 +3227,30 @@ func (s *DescribePackagingGroupOutput) SetTags(v map[string]*string) *DescribePa return s } +// Configure egress access logging. +type EgressAccessLogs struct { + _ struct{} `type:"structure"` + + // Customize the log group name. + LogGroupName *string `locationName:"logGroupName" type:"string"` +} + +// String returns the string representation +func (s EgressAccessLogs) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EgressAccessLogs) GoString() string { + return s.String() +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *EgressAccessLogs) SetLogGroupName(v string) *EgressAccessLogs { + s.LogGroupName = &v + return s +} + // The endpoint URL used to access an Asset using one PackagingConfiguration. type EgressEndpoint struct { _ struct{} `type:"structure"` @@ -3949,6 +4201,9 @@ type PackagingGroup struct { // The fully qualified domain name for Assets in the PackagingGroup. DomainName *string `locationName:"domainName" type:"string"` + // Configure egress access logging. + EgressAccessLogs *EgressAccessLogs `locationName:"egressAccessLogs" type:"structure"` + // The ID of the PackagingGroup. Id *string `locationName:"id" type:"string"` @@ -3984,6 +4239,12 @@ func (s *PackagingGroup) SetDomainName(v string) *PackagingGroup { return s } +// SetEgressAccessLogs sets the EgressAccessLogs field's value. +func (s *PackagingGroup) SetEgressAccessLogs(v *EgressAccessLogs) *PackagingGroup { + s.EgressAccessLogs = v + return s +} + // SetId sets the Id field's value. func (s *PackagingGroup) SetId(v string) *PackagingGroup { s.Id = &v @@ -4465,6 +4726,9 @@ type UpdatePackagingGroupOutput struct { DomainName *string `locationName:"domainName" type:"string"` + // Configure egress access logging. + EgressAccessLogs *EgressAccessLogs `locationName:"egressAccessLogs" type:"structure"` + Id *string `locationName:"id" type:"string"` // A collection of tags associated with a resource @@ -4499,6 +4763,12 @@ func (s *UpdatePackagingGroupOutput) SetDomainName(v string) *UpdatePackagingGro return s } +// SetEgressAccessLogs sets the EgressAccessLogs field's value. +func (s *UpdatePackagingGroupOutput) SetEgressAccessLogs(v *EgressAccessLogs) *UpdatePackagingGroupOutput { + s.EgressAccessLogs = v + return s +} + // SetId sets the Id field's value. func (s *UpdatePackagingGroupOutput) SetId(v string) *UpdatePackagingGroupOutput { s.Id = &v diff --git a/service/mediapackagevod/mediapackagevodiface/interface.go b/service/mediapackagevod/mediapackagevodiface/interface.go index f5403fb0ba4..12af1d61b23 100644 --- a/service/mediapackagevod/mediapackagevodiface/interface.go +++ b/service/mediapackagevod/mediapackagevodiface/interface.go @@ -26,7 +26,7 @@ import ( // // myFunc uses an SDK service client to make a request to // // AWS Elemental MediaPackage VOD. // func myFunc(svc mediapackagevodiface.MediaPackageVodAPI) bool { -// // Make svc.CreateAsset request +// // Make svc.ConfigureLogs request // } // // func main() { @@ -42,7 +42,7 @@ import ( // type mockMediaPackageVodClient struct { // mediapackagevodiface.MediaPackageVodAPI // } -// func (m *mockMediaPackageVodClient) CreateAsset(input *mediapackagevod.CreateAssetInput) (*mediapackagevod.CreateAssetOutput, error) { +// func (m *mockMediaPackageVodClient) ConfigureLogs(input *mediapackagevod.ConfigureLogsInput) (*mediapackagevod.ConfigureLogsOutput, error) { // // mock response/functionality // } // @@ -60,6 +60,10 @@ import ( // and waiters. Its suggested to use the pattern above for testing, or using // tooling to generate mocks to satisfy the interfaces. type MediaPackageVodAPI interface { + ConfigureLogs(*mediapackagevod.ConfigureLogsInput) (*mediapackagevod.ConfigureLogsOutput, error) + ConfigureLogsWithContext(aws.Context, *mediapackagevod.ConfigureLogsInput, ...request.Option) (*mediapackagevod.ConfigureLogsOutput, error) + ConfigureLogsRequest(*mediapackagevod.ConfigureLogsInput) (*request.Request, *mediapackagevod.ConfigureLogsOutput) + CreateAsset(*mediapackagevod.CreateAssetInput) (*mediapackagevod.CreateAssetOutput, error) CreateAssetWithContext(aws.Context, *mediapackagevod.CreateAssetInput, ...request.Option) (*mediapackagevod.CreateAssetOutput, error) CreateAssetRequest(*mediapackagevod.CreateAssetInput) (*request.Request, *mediapackagevod.CreateAssetOutput)