From f62236fda5f8164e086a1a6d71a5e3971da799bb Mon Sep 17 00:00:00 2001 From: aws-sdk-go-automation <43143561+aws-sdk-go-automation@users.noreply.github.com> Date: Fri, 26 Apr 2024 14:28:15 -0400 Subject: [PATCH] Release v1.51.30 (2024-04-26) (#5243) Release v1.51.30 (2024-04-26) === ### Service Client Updates * `service/codepipeline`: Updates service API and documentation * Add ability to manually and automatically roll back a pipeline stage to a previously successful execution. * `service/cognito-idp`: Updates service API and documentation * `service/connectcampaigns`: Updates service API and documentation * `service/entitlement.marketplace`: Updates service API * `service/oam`: Updates service API and documentation * `service/rds`: Updates service API, documentation, waiters, paginators, and examples * SupportsLimitlessDatabase field added to describe-db-engine-versions to indicate whether the DB engine version supports Aurora Limitless Database. * `service/support`: Updates service API * Releasing minor endpoint updates. --- CHANGELOG.md | 15 + aws/endpoints/defaults.go | 2 +- aws/version.go | 2 +- .../apis/codepipeline/2015-07-09/api-2.json | 108 ++- .../apis/codepipeline/2015-07-09/docs-2.json | 75 +- models/apis/cognito-idp/2016-04-18/api-2.json | 1 + .../apis/cognito-idp/2016-04-18/docs-2.json | 48 +- .../connectcampaigns/2021-01-30/api-2.json | 4 +- .../connectcampaigns/2021-01-30/docs-2.json | 3 +- .../2017-01-11/api-2.json | 1 + .../2017-01-11/endpoint-rule-set-1.json | 19 + .../2017-01-11/endpoint-tests-1.json | 13 + models/apis/oam/2022-06-10/api-2.json | 67 +- models/apis/oam/2022-06-10/docs-2.json | 48 +- models/apis/rds/2014-10-31/api-2.json | 2 + models/apis/rds/2014-10-31/docs-2.json | 2 + models/apis/support/2013-04-15/api-2.json | 1 + .../2013-04-15/endpoint-rule-set-1.json | 807 +++++++++--------- .../support/2013-04-15/endpoint-tests-1.json | 33 +- models/endpoints/endpoints.json | 2 +- service/codepipeline/api.go | 624 ++++++++++++++ .../codepipelineiface/interface.go | 4 + service/codepipeline/errors.go | 17 + service/cognitoidentityprovider/api.go | 133 ++- service/connectcampaigns/api.go | 9 + service/oam/api.go | 304 ++++++- service/rds/api.go | 45 + 27 files changed, 1885 insertions(+), 504 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fafdbb11f6..6bc3830b70 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,18 @@ +Release v1.51.30 (2024-04-26) +=== + +### Service Client Updates +* `service/codepipeline`: Updates service API and documentation + * Add ability to manually and automatically roll back a pipeline stage to a previously successful execution. +* `service/cognito-idp`: Updates service API and documentation +* `service/connectcampaigns`: Updates service API and documentation +* `service/entitlement.marketplace`: Updates service API +* `service/oam`: Updates service API and documentation +* `service/rds`: Updates service API, documentation, waiters, paginators, and examples + * SupportsLimitlessDatabase field added to describe-db-engine-versions to indicate whether the DB engine version supports Aurora Limitless Database. +* `service/support`: Updates service API + * Releasing minor endpoint updates. + Release v1.51.29 (2024-04-25) === diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go index 99dbf98350..17371d7b78 100644 --- a/aws/endpoints/defaults.go +++ b/aws/endpoints/defaults.go @@ -36403,7 +36403,7 @@ var awscnPartition = partition{ Region: "cn-northwest-1", }: endpoint{ Hostname: "entitlement-marketplace.cn-northwest-1.amazonaws.com.cn", - Protocols: []string{"HTTPS"}, + Protocols: []string{"https"}, CredentialScope: credentialScope{ Region: "cn-northwest-1", }, diff --git a/aws/version.go b/aws/version.go index 7910bd62ca..f46fc4b23d 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.51.29" +const SDKVersion = "1.51.30" diff --git a/models/apis/codepipeline/2015-07-09/api-2.json b/models/apis/codepipeline/2015-07-09/api-2.json index 4ff1ee5e09..109b08b0f7 100644 --- a/models/apis/codepipeline/2015-07-09/api-2.json +++ b/models/apis/codepipeline/2015-07-09/api-2.json @@ -5,6 +5,7 @@ "endpointPrefix":"codepipeline", "jsonVersion":"1.1", "protocol":"json", + "protocols":["json"], "serviceAbbreviation":"CodePipeline", "serviceFullName":"AWS CodePipeline", "serviceId":"CodePipeline", @@ -482,6 +483,24 @@ {"shape":"NotLatestPipelineExecutionException"} ] }, + "RollbackStage":{ + "name":"RollbackStage", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RollbackStageInput"}, + "output":{"shape":"RollbackStageOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"PipelineNotFoundException"}, + {"shape":"PipelineExecutionNotFoundException"}, + {"shape":"PipelineExecutionOutdatedException"}, + {"shape":"StageNotFoundException"}, + {"shape":"UnableToRollbackStageException"} + ] + }, "StartPipelineExecution":{ "name":"StartPipelineExecution", "http":{ @@ -1453,6 +1472,13 @@ "triggerDetail":{"shape":"TriggerDetail"} } }, + "ExecutionType":{ + "type":"string", + "enum":[ + "STANDARD", + "ROLLBACK" + ] + }, "ExecutorConfiguration":{ "type":"structure", "members":{ @@ -1469,6 +1495,12 @@ }, "ExternalExecutionId":{"type":"string"}, "ExternalExecutionSummary":{"type":"string"}, + "FailureConditions":{ + "type":"structure", + "members":{ + "result":{"shape":"Result"} + } + }, "FailureDetails":{ "type":"structure", "required":[ @@ -1941,6 +1973,7 @@ "members":{ "pipelineName":{"shape":"PipelineName"}, "maxResults":{"shape":"MaxResults"}, + "filter":{"shape":"PipelineExecutionFilter"}, "nextToken":{"shape":"NextToken"} } }, @@ -2149,7 +2182,15 @@ "artifactRevisions":{"shape":"ArtifactRevisionList"}, "variables":{"shape":"ResolvedPipelineVariableList"}, "trigger":{"shape":"ExecutionTrigger"}, - "executionMode":{"shape":"ExecutionMode"} + "executionMode":{"shape":"ExecutionMode"}, + "executionType":{"shape":"ExecutionType"}, + "rollbackMetadata":{"shape":"PipelineRollbackMetadata"} + } + }, + "PipelineExecutionFilter":{ + "type":"structure", + "members":{ + "succeededInStage":{"shape":"SucceededInStageFilter"} } }, "PipelineExecutionId":{ @@ -2169,6 +2210,13 @@ }, "exception":true }, + "PipelineExecutionOutdatedException":{ + "type":"structure", + "members":{ + "message":{"shape":"Message"} + }, + "exception":true + }, "PipelineExecutionStatus":{ "type":"string", "enum":[ @@ -2187,12 +2235,15 @@ "members":{ "pipelineExecutionId":{"shape":"PipelineExecutionId"}, "status":{"shape":"PipelineExecutionStatus"}, + "statusSummary":{"shape":"PipelineExecutionStatusSummary"}, "startTime":{"shape":"Timestamp"}, "lastUpdateTime":{"shape":"Timestamp"}, "sourceRevisions":{"shape":"SourceRevisionList"}, "trigger":{"shape":"ExecutionTrigger"}, "stopTrigger":{"shape":"StopExecutionTrigger"}, - "executionMode":{"shape":"ExecutionMode"} + "executionMode":{"shape":"ExecutionMode"}, + "executionType":{"shape":"ExecutionType"}, + "rollbackMetadata":{"shape":"PipelineRollbackMetadata"} } }, "PipelineExecutionSummaryList":{ @@ -2230,6 +2281,12 @@ }, "exception":true }, + "PipelineRollbackMetadata":{ + "type":"structure", + "members":{ + "rollbackTargetPipelineExecutionId":{"shape":"PipelineExecutionId"} + } + }, "PipelineStageDeclarationList":{ "type":"list", "member":{"shape":"StageDeclaration"} @@ -2541,6 +2598,10 @@ }, "exception":true }, + "Result":{ + "type":"string", + "enum":["ROLLBACK"] + }, "RetryStageExecutionInput":{ "type":"structure", "required":[ @@ -2582,6 +2643,26 @@ "max":1024, "pattern":"arn:aws(-[\\w]+)*:iam::[0-9]{12}:role/.*" }, + "RollbackStageInput":{ + "type":"structure", + "required":[ + "pipelineName", + "stageName", + "targetPipelineExecutionId" + ], + "members":{ + "pipelineName":{"shape":"PipelineName"}, + "stageName":{"shape":"StageName"}, + "targetPipelineExecutionId":{"shape":"PipelineExecutionId"} + } + }, + "RollbackStageOutput":{ + "type":"structure", + "required":["pipelineExecutionId"], + "members":{ + "pipelineExecutionId":{"shape":"PipelineExecutionId"} + } + }, "S3ArtifactLocation":{ "type":"structure", "required":[ @@ -2689,7 +2770,8 @@ "members":{ "name":{"shape":"StageName"}, "blockers":{"shape":"StageBlockerDeclarationList"}, - "actions":{"shape":"StageActionDeclarationList"} + "actions":{"shape":"StageActionDeclarationList"}, + "onFailure":{"shape":"FailureConditions"} } }, "StageExecution":{ @@ -2700,7 +2782,8 @@ ], "members":{ "pipelineExecutionId":{"shape":"PipelineExecutionId"}, - "status":{"shape":"StageExecutionStatus"} + "status":{"shape":"StageExecutionStatus"}, + "type":{"shape":"ExecutionType"} } }, "StageExecutionList":{ @@ -2821,6 +2904,12 @@ "max":200 }, "String":{"type":"string"}, + "SucceededInStageFilter":{ + "type":"structure", + "members":{ + "stageName":{"shape":"StageName"} + } + }, "Tag":{ "type":"structure", "required":[ @@ -2935,9 +3024,18 @@ "Webhook", "CloudWatchEvent", "PutActionRevision", - "WebhookV2" + "WebhookV2", + "ManualRollback", + "AutomatedRollback" ] }, + "UnableToRollbackStageException":{ + "type":"structure", + "members":{ + "message":{"shape":"String"} + }, + "exception":true + }, "UntagResourceInput":{ "type":"structure", "required":[ diff --git a/models/apis/codepipeline/2015-07-09/docs-2.json b/models/apis/codepipeline/2015-07-09/docs-2.json index 9579c520e0..460c47c740 100644 --- a/models/apis/codepipeline/2015-07-09/docs-2.json +++ b/models/apis/codepipeline/2015-07-09/docs-2.json @@ -35,6 +35,7 @@ "PutWebhook": "

Defines a webhook and returns a unique webhook URL generated by CodePipeline. This URL can be supplied to third party source hosting providers to call every time there's a code change. When CodePipeline receives a POST request on this URL, the pipeline defined in the webhook is started as long as the POST request satisfied the authentication and filtering requirements supplied when defining the webhook. RegisterWebhookWithThirdParty and DeregisterWebhookWithThirdParty APIs can be used to automatically configure supported third parties to call the generated webhook URL.

", "RegisterWebhookWithThirdParty": "

Configures a connection between the webhook that was created and the external tool with events to be detected.

", "RetryStageExecution": "

You can retry a stage that has failed without having to run a pipeline again from the beginning. You do this by either retrying the failed actions in a stage or by retrying all actions in the stage starting from the first action in the stage. When you retry the failed actions in a stage, all actions that are still in progress continue working, and failed actions are triggered again. When you retry a failed stage from the first action in the stage, the stage cannot have any actions in progress. Before a stage can be retried, it must either have all actions failed or some actions failed and some succeeded.

", + "RollbackStage": "

Rolls back a stage execution.

", "StartPipelineExecution": "

Starts the specified pipeline. Specifically, it begins processing the latest commit to the source location specified as part of the pipeline.

", "StopPipelineExecution": "

Stops the specified pipeline execution. You choose to either stop the pipeline execution by completing in-progress actions without starting subsequent actions, or by abandoning in-progress actions. While completing or abandoning in-progress actions, the pipeline execution is in a Stopping state. After all in-progress actions are completed or abandoned, the pipeline execution is in a Stopped state.

", "TagResource": "

Adds to or modifies the tags of the given resource. Tags are metadata that can be used to manage a resource.

", @@ -790,6 +791,14 @@ "PipelineExecutionSummary$trigger": "

The interaction or event that started a pipeline execution, such as automated change detection or a StartPipelineExecution API call.

" } }, + "ExecutionType": { + "base": null, + "refs": { + "PipelineExecution$executionType": "

The type of the pipeline execution.

", + "PipelineExecutionSummary$executionType": "

Type of the pipeline execution.

", + "StageExecution$type": "

The type of pipeline execution for the stage, such as a rollback pipeline execution.

" + } + }, "ExecutorConfiguration": { "base": "

The action engine, or executor, related to the supported integration model used to create and update the action type. The available executor types are Lambda and JobWorker.

", "refs": { @@ -814,6 +823,12 @@ "ActionExecutionResult$externalExecutionSummary": "

The action provider's summary for the action execution.

" } }, + "FailureConditions": { + "base": "

The configuration that specifies the result, such as rollback, to occur upon stage failure.

", + "refs": { + "StageDeclaration$onFailure": "

The method to use when a stage has not completed successfully. For example, configuring this field for rollback will roll back a failed stage automatically to the last successful pipeline execution in the stage.

" + } + }, "FailureDetails": { "base": "

Represents information about failure details.

", "refs": { @@ -1299,6 +1314,7 @@ "InvalidTagsException$message": null, "OutputVariablesSizeExceededException$message": null, "PipelineExecutionNotStoppableException$message": null, + "PipelineExecutionOutdatedException$message": null, "RequestFailedException$message": null, "TooManyTagsException$message": null } @@ -1419,6 +1435,12 @@ "GetPipelineExecutionOutput$pipelineExecution": "

Represents information about the execution of a pipeline.

" } }, + "PipelineExecutionFilter": { + "base": "

The pipeline execution to filter on.

", + "refs": { + "ListPipelineExecutionsInput$filter": "

The pipeline execution to filter on.

" + } + }, "PipelineExecutionId": { "base": null, "refs": { @@ -1429,9 +1451,12 @@ "PipelineContext$pipelineExecutionId": "

The execution ID of the pipeline.

", "PipelineExecution$pipelineExecutionId": "

The ID of the pipeline execution.

", "PipelineExecutionSummary$pipelineExecutionId": "

The ID of the pipeline execution.

", + "PipelineRollbackMetadata$rollbackTargetPipelineExecutionId": "

The pipeline execution ID to which the stage will be rolled back.

", "PutActionRevisionOutput$pipelineExecutionId": "

The ID of the current workflow state of the pipeline.

", "RetryStageExecutionInput$pipelineExecutionId": "

The ID of the pipeline execution in the failed stage to be retried. Use the GetPipelineState action to retrieve the current pipelineExecutionId of the failed stage

", "RetryStageExecutionOutput$pipelineExecutionId": "

The ID of the current workflow execution in the failed stage.

", + "RollbackStageInput$targetPipelineExecutionId": "

The pipeline execution ID for the stage to be rolled back to.

", + "RollbackStageOutput$pipelineExecutionId": "

The execution ID of the pipeline execution for the stage that has been rolled back.

", "StageExecution$pipelineExecutionId": "

The ID of the pipeline execution associated with the stage.

", "StartPipelineExecutionOutput$pipelineExecutionId": "

The unique system-generated ID of the pipeline execution that was started.

", "StopPipelineExecutionInput$pipelineExecutionId": "

The ID of the pipeline execution to be stopped in the current stage. Use the GetPipelineState action to retrieve the current pipelineExecutionId.

", @@ -1448,6 +1473,11 @@ "refs": { } }, + "PipelineExecutionOutdatedException": { + "base": "

The specified pipeline execution is outdated and cannot be used as a target pipeline execution for rollback.

", + "refs": { + } + }, "PipelineExecutionStatus": { "base": null, "refs": { @@ -1458,7 +1488,8 @@ "PipelineExecutionStatusSummary": { "base": null, "refs": { - "PipelineExecution$statusSummary": "

A summary that contains a description of the pipeline execution status.

" + "PipelineExecution$statusSummary": "

A summary that contains a description of the pipeline execution status.

", + "PipelineExecutionSummary$statusSummary": "

Status summary for the pipeline.

" } }, "PipelineExecutionSummary": { @@ -1504,6 +1535,7 @@ "PutActionRevisionInput$pipelineName": "

The name of the pipeline that starts processing the revision to the source.

", "PutApprovalResultInput$pipelineName": "

The name of the pipeline that contains the action.

", "RetryStageExecutionInput$pipelineName": "

The name of the pipeline that contains the failed stage.

", + "RollbackStageInput$pipelineName": "

The name of the pipeline for which the stage will be rolled back.

", "StartPipelineExecutionInput$name": "

The name of the pipeline to start.

", "StopPipelineExecutionInput$pipelineName": "

The name of the pipeline to stop.

", "WebhookDefinition$targetPipeline": "

The name of the pipeline you want to connect to the webhook.

" @@ -1519,6 +1551,13 @@ "refs": { } }, + "PipelineRollbackMetadata": { + "base": "

The metadata for the stage execution to be rolled back.

", + "refs": { + "PipelineExecution$rollbackMetadata": "

The metadata about the execution pertaining to stage rollback.

", + "PipelineExecutionSummary$rollbackMetadata": "

The metadata for the stage execution to be rolled back.

" + } + }, "PipelineStageDeclarationList": { "base": null, "refs": { @@ -1762,6 +1801,12 @@ "refs": { } }, + "Result": { + "base": null, + "refs": { + "FailureConditions$result": "

The specified result for when the failure conditions are met, such as rolling back the stage.

" + } + }, "RetryStageExecutionInput": { "base": "

Represents the input of a RetryStageExecution action.

", "refs": { @@ -1807,6 +1852,16 @@ "PipelineDeclaration$roleArn": "

The Amazon Resource Name (ARN) for CodePipeline to use to either perform actions with no actionRoleArn, or to use to assume roles for actions with an actionRoleArn.

" } }, + "RollbackStageInput": { + "base": null, + "refs": { + } + }, + "RollbackStageOutput": { + "base": null, + "refs": { + } + }, "S3ArtifactLocation": { "base": "

The location of the S3 bucket that contains a revision.

", "refs": { @@ -1944,9 +1999,11 @@ "PutActionRevisionInput$stageName": "

The name of the stage that contains the action that acts on the revision.

", "PutApprovalResultInput$stageName": "

The name of the stage that contains the action.

", "RetryStageExecutionInput$stageName": "

The name of the failed stage to be retried.

", + "RollbackStageInput$stageName": "

The name of the stage in the pipeline to be rolled back.

", "StageContext$name": "

The name of the stage.

", "StageDeclaration$name": "

The name of the stage.

", - "StageState$stageName": "

The name of the stage.

" + "StageState$stageName": "

The name of the stage.

", + "SucceededInStageFilter$stageName": "

The name of the stage for filtering for pipeline executions where the stage was successful in the current pipeline version.

" } }, "StageNotFoundException": { @@ -2029,7 +2086,14 @@ "ResolvedActionConfigurationMap$key": null, "ResolvedActionConfigurationMap$value": null, "ResolvedPipelineVariable$name": "

The name of a pipeline-level variable.

", - "ResolvedPipelineVariable$resolvedValue": "

The resolved value of a pipeline-level variable.

" + "ResolvedPipelineVariable$resolvedValue": "

The resolved value of a pipeline-level variable.

", + "UnableToRollbackStageException$message": null + } + }, + "SucceededInStageFilter": { + "base": "

Filter for pipeline executions that have successfully completed the stage in the current pipeline version.

", + "refs": { + "PipelineExecutionFilter$succeededInStage": "

Filter for pipeline executions where the stage was successful in the current pipeline version.

" } }, "Tag": { @@ -2163,6 +2227,11 @@ "ExecutionTrigger$triggerType": "

The type of change-detection method, command, or user interaction that started a pipeline execution.

" } }, + "UnableToRollbackStageException": { + "base": "

Unable to roll back the stage. The cause might be if the pipeline version has changed since the target pipeline execution was deployed, the stage is currently running, or an incorrect target pipeline execution ID was provided.

", + "refs": { + } + }, "UntagResourceInput": { "base": null, "refs": { diff --git a/models/apis/cognito-idp/2016-04-18/api-2.json b/models/apis/cognito-idp/2016-04-18/api-2.json index 3fbda4f4ff..dc034a044a 100644 --- a/models/apis/cognito-idp/2016-04-18/api-2.json +++ b/models/apis/cognito-idp/2016-04-18/api-2.json @@ -1673,6 +1673,7 @@ {"shape":"UsernameExistsException"}, {"shape":"TooManyRequestsException"}, {"shape":"InternalErrorException"}, + {"shape":"LimitExceededException"}, {"shape":"InvalidSmsRoleAccessPolicyException"}, {"shape":"InvalidSmsRoleTrustRelationshipException"}, {"shape":"InvalidEmailRoleAccessPolicyException"}, diff --git a/models/apis/cognito-idp/2016-04-18/docs-2.json b/models/apis/cognito-idp/2016-04-18/docs-2.json index 01c0dc42f6..7d84c925fb 100644 --- a/models/apis/cognito-idp/2016-04-18/docs-2.json +++ b/models/apis/cognito-idp/2016-04-18/docs-2.json @@ -1053,32 +1053,32 @@ "base": null, "refs": { "AdminGetUserResponse$UserCreateDate": "

The date the user was created.

", - "AdminGetUserResponse$UserLastModifiedDate": "

The date and time, in ISO 8601 format, when the item was modified.

", - "AuthEventType$CreationDate": "

The date and time, in ISO 8601 format, when the item was created.

", + "AdminGetUserResponse$UserLastModifiedDate": "

The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date object.

", + "AuthEventType$CreationDate": "

The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date object.

", "DeviceType$DeviceCreateDate": "

The creation date of the device.

", - "DeviceType$DeviceLastModifiedDate": "

The date and time, in ISO 8601 format, when the item was modified.

", + "DeviceType$DeviceLastModifiedDate": "

The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date object.

", "DeviceType$DeviceLastAuthenticatedDate": "

The date when the device was last authenticated.

", "EventFeedbackType$FeedbackDate": "

The event feedback date.

", - "GroupType$LastModifiedDate": "

The date and time, in ISO 8601 format, when the item was modified.

", - "GroupType$CreationDate": "

The date and time, in ISO 8601 format, when the item was created.

", - "IdentityProviderType$LastModifiedDate": "

The date and time, in ISO 8601 format, when the item was modified.

", - "IdentityProviderType$CreationDate": "

The date and time, in ISO 8601 format, when the item was created.

", + "GroupType$LastModifiedDate": "

The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date object.

", + "GroupType$CreationDate": "

The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date object.

", + "IdentityProviderType$LastModifiedDate": "

The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date object.

", + "IdentityProviderType$CreationDate": "

The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date object.

", "ProviderDescription$LastModifiedDate": "

The date the provider was last modified.

", - "ProviderDescription$CreationDate": "

The date and time, in ISO 8601 format, when the item was created.

", - "RiskConfigurationType$LastModifiedDate": "

The date and time, in ISO 8601 format, when the item was modified.

", - "UICustomizationType$LastModifiedDate": "

The date and time, in ISO 8601 format, when the item was modified.

", - "UICustomizationType$CreationDate": "

The date and time, in ISO 8601 format, when the item was created.

", - "UserImportJobType$CreationDate": "

The date and time, in ISO 8601 format, when the item was created.

", + "ProviderDescription$CreationDate": "

The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date object.

", + "RiskConfigurationType$LastModifiedDate": "

The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date object.

", + "UICustomizationType$LastModifiedDate": "

The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date object.

", + "UICustomizationType$CreationDate": "

The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date object.

", + "UserImportJobType$CreationDate": "

The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date object.

", "UserImportJobType$StartDate": "

The date when the user import job was started.

", "UserImportJobType$CompletionDate": "

The date when the user import job was completed.

", - "UserPoolClientType$LastModifiedDate": "

The date and time, in ISO 8601 format, when the item was modified.

", - "UserPoolClientType$CreationDate": "

The date and time, in ISO 8601 format, when the item was created.

", - "UserPoolDescriptionType$LastModifiedDate": "

The date and time, in ISO 8601 format, when the item was modified.

", - "UserPoolDescriptionType$CreationDate": "

The date and time, in ISO 8601 format, when the item was created.

", - "UserPoolType$LastModifiedDate": "

The date and time, in ISO 8601 format, when the item was modified.

", - "UserPoolType$CreationDate": "

The date and time, in ISO 8601 format, when the item was created.

", + "UserPoolClientType$LastModifiedDate": "

The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date object.

", + "UserPoolClientType$CreationDate": "

The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date object.

", + "UserPoolDescriptionType$LastModifiedDate": "

The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date object.

", + "UserPoolDescriptionType$CreationDate": "

The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date object.

", + "UserPoolType$LastModifiedDate": "

The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date object.

", + "UserPoolType$CreationDate": "

The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date object.

", "UserType$UserCreateDate": "

The creation date of the user.

", - "UserType$UserLastModifiedDate": "

The date and time, in ISO 8601 format, when the item was modified.

" + "UserType$UserLastModifiedDate": "

The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date object.

" } }, "DefaultEmailOptionType": { @@ -2283,7 +2283,7 @@ "base": null, "refs": { "CallbackURLsListType$member": null, - "CreateUserPoolClientRequest$DefaultRedirectURI": "

The default redirect URI. Must be in the CallbackURLs list.

A redirect URI must:

See OAuth 2.0 - Redirection Endpoint.

Amazon Cognito requires HTTPS over HTTP except for http://localhost for testing purposes only.

App callback URLs such as myapp://example are also supported.

", + "CreateUserPoolClientRequest$DefaultRedirectURI": "

The default redirect URI. In app clients with one assigned IdP, replaces redirect_uri in authentication requests. Must be in the CallbackURLs list.

A redirect URI must:

For more information, see Default redirect URI.

Amazon Cognito requires HTTPS over HTTP except for http://localhost for testing purposes only.

App callback URLs such as myapp://example are also supported.

", "LogoutURLsListType$member": null, "UpdateUserPoolClientRequest$DefaultRedirectURI": "

The default redirect URI. Must be in the CallbackURLs list.

A redirect URI must:

See OAuth 2.0 - Redirection Endpoint.

Amazon Cognito requires HTTPS over HTTP except for http://localhost for testing purposes only.

App callback URLs such as myapp://example are also supported.

", "UserPoolClientType$DefaultRedirectURI": "

The default redirect URI. Must be in the CallbackURLs list.

A redirect URI must:

See OAuth 2.0 - Redirection Endpoint.

Amazon Cognito requires HTTPS over HTTP except for http://localhost for testing purposes only.

App callback URLs such as myapp://example are also supported.

" @@ -2321,11 +2321,11 @@ "ResourceServerIdentifierType": { "base": null, "refs": { - "CreateResourceServerRequest$Identifier": "

A unique resource server identifier for the resource server. This could be an HTTPS endpoint where the resource server is located, such as https://my-weather-api.example.com.

", + "CreateResourceServerRequest$Identifier": "

A unique resource server identifier for the resource server. The identifier can be an API friendly name like solar-system-data. You can also set an API URL like https://solar-system-data-api.example.com as your identifier.

Amazon Cognito represents scopes in the access token in the format $resource-server-identifier/$scope. Longer scope-identifier strings increase the size of your access tokens.

", "DeleteResourceServerRequest$Identifier": "

The identifier for the resource server.

", - "DescribeResourceServerRequest$Identifier": "

The identifier for the resource server

", - "ResourceServerType$Identifier": "

The identifier for the resource server.

", - "UpdateResourceServerRequest$Identifier": "

The identifier for the resource server.

" + "DescribeResourceServerRequest$Identifier": "

A unique resource server identifier for the resource server. The identifier can be an API friendly name like solar-system-data. You can also set an API URL like https://solar-system-data-api.example.com as your identifier.

Amazon Cognito represents scopes in the access token in the format $resource-server-identifier/$scope. Longer scope-identifier strings increase the size of your access tokens.

", + "ResourceServerType$Identifier": "

A unique resource server identifier for the resource server. The identifier can be an API friendly name like solar-system-data. You can also set an API URL like https://solar-system-data-api.example.com as your identifier.

Amazon Cognito represents scopes in the access token in the format $resource-server-identifier/$scope. Longer scope-identifier strings increase the size of your access tokens.

", + "UpdateResourceServerRequest$Identifier": "

A unique resource server identifier for the resource server. The identifier can be an API friendly name like solar-system-data. You can also set an API URL like https://solar-system-data-api.example.com as your identifier.

Amazon Cognito represents scopes in the access token in the format $resource-server-identifier/$scope. Longer scope-identifier strings increase the size of your access tokens.

" } }, "ResourceServerNameType": { diff --git a/models/apis/connectcampaigns/2021-01-30/api-2.json b/models/apis/connectcampaigns/2021-01-30/api-2.json index 7e168924ba..79962a6d8c 100644 --- a/models/apis/connectcampaigns/2021-01-30/api-2.json +++ b/models/apis/connectcampaigns/2021-01-30/api-2.json @@ -5,6 +5,7 @@ "endpointPrefix":"connect-campaigns", "jsonVersion":"1.1", "protocol":"rest-json", + "protocols":["rest-json"], "serviceFullName":"AmazonConnectCampaignService", "serviceId":"ConnectCampaigns", "signatureVersion":"v4", @@ -423,7 +424,8 @@ "type":"structure", "required":["enableAnswerMachineDetection"], "members":{ - "enableAnswerMachineDetection":{"shape":"Boolean"} + "enableAnswerMachineDetection":{"shape":"Boolean"}, + "awaitAnswerMachinePrompt":{"shape":"Boolean"} } }, "Arn":{ diff --git a/models/apis/connectcampaigns/2021-01-30/docs-2.json b/models/apis/connectcampaigns/2021-01-30/docs-2.json index bee3ddef72..707a68c666 100644 --- a/models/apis/connectcampaigns/2021-01-30/docs-2.json +++ b/models/apis/connectcampaigns/2021-01-30/docs-2.json @@ -80,7 +80,8 @@ "Boolean": { "base": null, "refs": { - "AnswerMachineDetectionConfig$enableAnswerMachineDetection": "

Enable or disable answering machine detection

" + "AnswerMachineDetectionConfig$enableAnswerMachineDetection": "

Enable or disable answering machine detection

", + "AnswerMachineDetectionConfig$awaitAnswerMachinePrompt": "

Enable or disable await answer machine prompt

" } }, "Campaign": { diff --git a/models/apis/entitlement.marketplace/2017-01-11/api-2.json b/models/apis/entitlement.marketplace/2017-01-11/api-2.json index 3488d5e696..5b11875adb 100644 --- a/models/apis/entitlement.marketplace/2017-01-11/api-2.json +++ b/models/apis/entitlement.marketplace/2017-01-11/api-2.json @@ -5,6 +5,7 @@ "endpointPrefix":"entitlement.marketplace", "jsonVersion":"1.1", "protocol":"json", + "protocols":["json"], "serviceFullName":"AWS Marketplace Entitlement Service", "serviceId":"Marketplace Entitlement Service", "signatureVersion":"v4", diff --git a/models/apis/entitlement.marketplace/2017-01-11/endpoint-rule-set-1.json b/models/apis/entitlement.marketplace/2017-01-11/endpoint-rule-set-1.json index e91f63bfb7..7fc0cc5746 100644 --- a/models/apis/entitlement.marketplace/2017-01-11/endpoint-rule-set-1.json +++ b/models/apis/entitlement.marketplace/2017-01-11/endpoint-rule-set-1.json @@ -290,6 +290,25 @@ ], "type": "tree" }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "ref": "Region" + }, + "cn-northwest-1" + ] + } + ], + "endpoint": { + "url": "https://entitlement-marketplace.cn-northwest-1.amazonaws.com.cn", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + }, { "conditions": [ { diff --git a/models/apis/entitlement.marketplace/2017-01-11/endpoint-tests-1.json b/models/apis/entitlement.marketplace/2017-01-11/endpoint-tests-1.json index e813b500d7..c3c840c417 100644 --- a/models/apis/entitlement.marketplace/2017-01-11/endpoint-tests-1.json +++ b/models/apis/entitlement.marketplace/2017-01-11/endpoint-tests-1.json @@ -52,6 +52,19 @@ "UseDualStack": true } }, + { + "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://entitlement-marketplace.cn-northwest-1.amazonaws.com.cn" + } + }, + "params": { + "Region": "cn-northwest-1", + "UseFIPS": false, + "UseDualStack": false + } + }, { "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", "expect": { diff --git a/models/apis/oam/2022-06-10/api-2.json b/models/apis/oam/2022-06-10/api-2.json index 92e7350764..65c3742032 100644 --- a/models/apis/oam/2022-06-10/api-2.json +++ b/models/apis/oam/2022-06-10/api-2.json @@ -5,6 +5,7 @@ "endpointPrefix":"oam", "jsonVersion":"1.1", "protocol":"rest-json", + "protocols":["rest-json"], "serviceFullName":"CloudWatch Observability Access Manager", "serviceId":"OAM", "signatureVersion":"v4", @@ -252,7 +253,7 @@ "shapes":{ "Arn":{ "type":"string", - "pattern":"arn:(\\w|-)+:oam:.+:.+:.+.*" + "pattern":"^arn:(\\w|-)+:oam:.+:.+:.+" }, "ConflictException":{ "type":"structure", @@ -279,6 +280,7 @@ ], "members":{ "LabelTemplate":{"shape":"LabelTemplate"}, + "LinkConfiguration":{"shape":"LinkConfiguration"}, "ResourceTypes":{"shape":"ResourceTypesInput"}, "SinkIdentifier":{"shape":"ResourceIdentifier"}, "Tags":{"shape":"TagMapInput"} @@ -291,6 +293,7 @@ "Id":{"shape":"String"}, "Label":{"shape":"String"}, "LabelTemplate":{"shape":"String"}, + "LinkConfiguration":{"shape":"LinkConfiguration"}, "ResourceTypes":{"shape":"ResourceTypesOutput"}, "SinkArn":{"shape":"String"}, "Tags":{"shape":"TagMapOutput"} @@ -351,6 +354,7 @@ "Id":{"shape":"String"}, "Label":{"shape":"String"}, "LabelTemplate":{"shape":"String"}, + "LinkConfiguration":{"shape":"LinkConfiguration"}, "ResourceTypes":{"shape":"ResourceTypesOutput"}, "SinkArn":{"shape":"String"}, "Tags":{"shape":"TagMapOutput"} @@ -382,9 +386,9 @@ "GetSinkPolicyOutput":{ "type":"structure", "members":{ + "Policy":{"shape":"String"}, "SinkArn":{"shape":"String"}, - "SinkId":{"shape":"String"}, - "Policy":{"shape":"String"} + "SinkId":{"shape":"String"} } }, "InternalServiceFault":{ @@ -404,12 +408,12 @@ "InvalidParameterException":{ "type":"structure", "members":{ - "message":{"shape":"String"}, "amznErrorType":{ "shape":"String", "location":"header", "locationName":"x-amzn-ErrorType" - } + }, + "message":{"shape":"String"} }, "error":{ "httpStatusCode":400, @@ -422,6 +426,13 @@ "max":64, "min":1 }, + "LinkConfiguration":{ + "type":"structure", + "members":{ + "LogGroupConfiguration":{"shape":"LogGroupConfiguration"}, + "MetricConfiguration":{"shape":"MetricConfiguration"} + } + }, "ListAttachedLinksInput":{ "type":"structure", "required":["SinkIdentifier"], @@ -542,15 +553,39 @@ "Tags":{"shape":"TagMapOutput"} } }, + "LogGroupConfiguration":{ + "type":"structure", + "required":["Filter"], + "members":{ + "Filter":{"shape":"LogsFilter"} + } + }, + "LogsFilter":{ + "type":"string", + "max":2000, + "min":1 + }, + "MetricConfiguration":{ + "type":"structure", + "required":["Filter"], + "members":{ + "Filter":{"shape":"MetricsFilter"} + } + }, + "MetricsFilter":{ + "type":"string", + "max":2000, + "min":1 + }, "MissingRequiredParameterException":{ "type":"structure", "members":{ - "message":{"shape":"String"}, "amznErrorType":{ "shape":"String", "location":"header", "locationName":"x-amzn-ErrorType" - } + }, + "message":{"shape":"String"} }, "error":{ "httpStatusCode":400, @@ -562,25 +597,25 @@ "PutSinkPolicyInput":{ "type":"structure", "required":[ - "SinkIdentifier", - "Policy" + "Policy", + "SinkIdentifier" ], "members":{ - "SinkIdentifier":{"shape":"ResourceIdentifier"}, - "Policy":{"shape":"SinkPolicy"} + "Policy":{"shape":"SinkPolicy"}, + "SinkIdentifier":{"shape":"ResourceIdentifier"} } }, "PutSinkPolicyOutput":{ "type":"structure", "members":{ + "Policy":{"shape":"String"}, "SinkArn":{"shape":"String"}, - "SinkId":{"shape":"String"}, - "Policy":{"shape":"String"} + "SinkId":{"shape":"String"} } }, "ResourceIdentifier":{ "type":"string", - "pattern":"[a-zA-Z0-9][a-zA-Z0-9_:\\.\\-\\/]{0,2047}" + "pattern":"^[a-zA-Z0-9][a-zA-Z0-9_:\\.\\-\\/]{0,2047}$" }, "ResourceNotFoundException":{ "type":"structure", @@ -636,7 +671,7 @@ }, "SinkName":{ "type":"string", - "pattern":"[a-zA-Z0-9_\\.\\-]{1,255}" + "pattern":"^[a-zA-Z0-9_\\.\\-]{1,255}$" }, "SinkPolicy":{"type":"string"}, "String":{"type":"string"}, @@ -729,6 +764,7 @@ ], "members":{ "Identifier":{"shape":"ResourceIdentifier"}, + "LinkConfiguration":{"shape":"LinkConfiguration"}, "ResourceTypes":{"shape":"ResourceTypesInput"} } }, @@ -739,6 +775,7 @@ "Id":{"shape":"String"}, "Label":{"shape":"String"}, "LabelTemplate":{"shape":"LabelTemplate"}, + "LinkConfiguration":{"shape":"LinkConfiguration"}, "ResourceTypes":{"shape":"ResourceTypesOutput"}, "SinkArn":{"shape":"String"}, "Tags":{"shape":"TagMapOutput"} diff --git a/models/apis/oam/2022-06-10/docs-2.json b/models/apis/oam/2022-06-10/docs-2.json index 61796d3d7c..48c9d4345c 100644 --- a/models/apis/oam/2022-06-10/docs-2.json +++ b/models/apis/oam/2022-06-10/docs-2.json @@ -2,8 +2,8 @@ "version": "2.0", "service": "

Use Amazon CloudWatch Observability Access Manager to create and manage links between source accounts and monitoring accounts by using CloudWatch cross-account observability. With CloudWatch cross-account observability, you can monitor and troubleshoot applications that span multiple accounts within a Region. Seamlessly search, visualize, and analyze your metrics, logs, traces, and Application Insights applications in any of the linked accounts without account boundaries.

Set up one or more Amazon Web Services accounts as monitoring accounts and link them with multiple source accounts. A monitoring account is a central Amazon Web Services account that can view and interact with observability data generated from source accounts. A source account is an individual Amazon Web Services account that generates observability data for the resources that reside in it. Source accounts share their observability data with the monitoring account. The shared observability data can include metrics in Amazon CloudWatch, logs in Amazon CloudWatch Logs, traces in X-Ray, and applications in Amazon CloudWatch Application Insights.

", "operations": { - "CreateLink": "

Creates a link between a source account and a sink that you have created in a monitoring account.

Before you create a link, you must create a sink in the monitoring account and create a sink policy in that account. The sink policy must permit the source account to link to it. You can grant permission to source accounts by granting permission to an entire organization or to individual accounts.

For more information, see CreateSink and PutSinkPolicy.

Each monitoring account can be linked to as many as 100,000 source accounts.

Each source account can be linked to as many as five monitoring accounts.

", - "CreateSink": "

Use this to create a sink in the current account, so that it can be used as a monitoring account in CloudWatch cross-account observability. A sink is a resource that represents an attachment point in a monitoring account. Source accounts can link to the sink to send observability data.

After you create a sink, you must create a sink policy that allows source accounts to attach to it. For more information, see PutSinkPolicy.

Each account can contain one sink. If you delete a sink, you can then create a new one in that account.

", + "CreateLink": "

Creates a link between a source account and a sink that you have created in a monitoring account. After the link is created, data is sent from the source account to the monitoring account. When you create a link, you can optionally specify filters that specify which metric namespaces and which log groups are shared from the source account to the monitoring account.

Before you create a link, you must create a sink in the monitoring account and create a sink policy in that account. The sink policy must permit the source account to link to it. You can grant permission to source accounts by granting permission to an entire organization or to individual accounts.

For more information, see CreateSink and PutSinkPolicy.

Each monitoring account can be linked to as many as 100,000 source accounts.

Each source account can be linked to as many as five monitoring accounts.

", + "CreateSink": "

Use this to create a sink in the current account, so that it can be used as a monitoring account in CloudWatch cross-account observability. A sink is a resource that represents an attachment point in a monitoring account. Source accounts can link to the sink to send observability data.

After you create a sink, you must create a sink policy that allows source accounts to attach to it. For more information, see PutSinkPolicy.

Each account can contain one sink per Region. If you delete a sink, you can then create a new one in that Region.

", "DeleteLink": "

Deletes a link between a monitoring account sink and a source account. You must run this operation in the source account.

", "DeleteSink": "

Deletes a sink. You must delete all links to a sink before you can delete that sink.

", "GetLink": "

Returns complete information about one link.

To use this operation, provide the link ARN. To retrieve a list of link ARNs, use ListLinks.

", @@ -16,7 +16,7 @@ "PutSinkPolicy": "

Creates or updates the resource policy that grants permissions to source accounts to link to the monitoring account sink. When you create a sink policy, you can grant permissions to all accounts in an organization or to individual accounts.

You can also use a sink policy to limit the types of data that is shared. The three types that you can allow or deny are:

See the examples in this section to see how to specify permitted source accounts and data types.

", "TagResource": "

Assigns one or more tags (key-value pairs) to the specified resource. Both sinks and links can be tagged.

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

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

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

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

Unlike tagging permissions in other Amazon Web Services services, to tag or untag links and sinks you must have the oam:ResourceTag permission. The iam:ResourceTag permission does not allow you to tag and untag links and sinks.

", "UntagResource": "

Removes one or more tags from the specified resource.

Unlike tagging permissions in other Amazon Web Services services, to tag or untag links and sinks you must have the oam:ResourceTag permission. The iam:TagResource permission does not allow you to tag and untag links and sinks.

", - "UpdateLink": "

Use this operation to change what types of data are shared from a source account to its linked monitoring account sink. You can't change the sink or change the monitoring account with this operation.

To update the list of tags associated with the sink, use TagResource.

" + "UpdateLink": "

Use this operation to change what types of data are shared from a source account to its linked monitoring account sink. You can't change the sink or change the monitoring account with this operation.

When you update a link, you can optionally specify filters that specify which metric namespaces and which log groups are shared from the source account to the monitoring account.

To update the list of tags associated with the sink, use TagResource.

" }, "shapes": { "Arn": { @@ -119,6 +119,16 @@ "UpdateLinkOutput$LabelTemplate": "

The exact label template that was specified when the link was created, with the template variables not resolved.

" } }, + "LinkConfiguration": { + "base": "

Use this structure to optionally create filters that specify that only some metric namespaces or log groups are to be shared from the source account to the monitoring account.

", + "refs": { + "CreateLinkInput$LinkConfiguration": "

Use this structure to optionally create filters that specify that only some metric namespaces or log groups are to be shared from the source account to the monitoring account.

", + "CreateLinkOutput$LinkConfiguration": "

This structure includes filters that specify which metric namespaces and which log groups are shared from the source account to the monitoring account.

", + "GetLinkOutput$LinkConfiguration": "

This structure includes filters that specify which metric namespaces and which log groups are shared from the source account to the monitoring account.

", + "UpdateLinkInput$LinkConfiguration": "

Use this structure to filter which metric namespaces and which log groups are to be shared from the source account to the monitoring account.

", + "UpdateLinkOutput$LinkConfiguration": "

This structure includes filters that specify which metric namespaces and which log groups are shared from the source account to the monitoring account.

" + } + }, "ListAttachedLinksInput": { "base": null, "refs": { @@ -213,6 +223,30 @@ "refs": { } }, + "LogGroupConfiguration": { + "base": "

This structure contains the Filter parameter which you can use to specify which log groups are to share log events from this source account to the monitoring account.

", + "refs": { + "LinkConfiguration$LogGroupConfiguration": "

Use this structure to filter which log groups are to send log events from the source account to the monitoring account.

" + } + }, + "LogsFilter": { + "base": null, + "refs": { + "LogGroupConfiguration$Filter": "

Use this field to specify which log groups are to share their log events with the monitoring account. Use the term LogGroupName and one or more of the following operands. Use single quotation marks (') around log group names. The matching of log group names is case sensitive. Each filter has a limit of five conditional operands. Conditional operands are AND and OR.

Examples:

If you are updating a link that uses filters, you can specify * as the only value for the filter parameter to delete the filter and share all log groups with the monitoring account.

" + } + }, + "MetricConfiguration": { + "base": "

This structure contains the Filter parameter which you can use to specify which metric namespaces are to be shared from this source account to the monitoring account.

", + "refs": { + "LinkConfiguration$MetricConfiguration": "

Use this structure to filter which metric namespaces are to be shared from the source account to the monitoring account.

" + } + }, + "MetricsFilter": { + "base": null, + "refs": { + "MetricConfiguration$Filter": "

Use this field to specify which metrics are to be shared with the monitoring account. Use the term Namespace and one or more of the following operands. Use single quotation marks (') around namespace names. The matching of namespace names is case sensitive. Each filter has a limit of five conditional operands. Conditional operands are AND and OR.

Examples:

If you are updating a link that uses filters, you can specify * as the only value for the filter parameter to delete the filter and share all metric namespaces with the monitoring account.

" + } + }, "MissingRequiredParameterException": { "base": "

A required parameter is missing from the request.

", "refs": { @@ -316,13 +350,13 @@ "GetSinkOutput$Arn": "

The ARN of the sink.

", "GetSinkOutput$Id": "

The random ID string that Amazon Web Services generated as part of the sink ARN.

", "GetSinkOutput$Name": "

The name of the sink.

", + "GetSinkPolicyOutput$Policy": "

The policy that you specified, in JSON format.

", "GetSinkPolicyOutput$SinkArn": "

The ARN of the sink.

", "GetSinkPolicyOutput$SinkId": "

The random ID string that Amazon Web Services generated as part of the sink ARN.

", - "GetSinkPolicyOutput$Policy": "

The policy that you specified, in JSON format.

", "InternalServiceFault$Message": null, "InternalServiceFault$amznErrorType": "

The name of the exception.

", - "InvalidParameterException$message": null, "InvalidParameterException$amznErrorType": "

The name of the exception.

", + "InvalidParameterException$message": null, "ListAttachedLinksItem$Label": "

The label that was assigned to this link at creation, with the variables resolved to their actual values.

", "ListAttachedLinksItem$LinkArn": "

The ARN of the link.

", "ListAttachedLinksOutput$NextToken": "

The token to use when requesting the next set of links.

", @@ -335,11 +369,11 @@ "ListSinksItem$Id": "

The random ID string that Amazon Web Services generated as part of the sink ARN.

", "ListSinksItem$Name": "

The name of the sink.

", "ListSinksOutput$NextToken": "

The token to use when requesting the next set of sinks.

", - "MissingRequiredParameterException$message": null, "MissingRequiredParameterException$amznErrorType": "

The name of the exception.

", + "MissingRequiredParameterException$message": null, + "PutSinkPolicyOutput$Policy": "

The policy that you specified.

", "PutSinkPolicyOutput$SinkArn": "

The ARN of the sink.

", "PutSinkPolicyOutput$SinkId": "

The random ID string that Amazon Web Services generated as part of the sink ARN.

", - "PutSinkPolicyOutput$Policy": "

The policy that you specified.

", "ResourceNotFoundException$Message": null, "ResourceNotFoundException$amznErrorType": "

The name of the exception.

", "ResourceTypesOutput$member": null, diff --git a/models/apis/rds/2014-10-31/api-2.json b/models/apis/rds/2014-10-31/api-2.json index c7158f15bc..78ffd8fc2f 100644 --- a/models/apis/rds/2014-10-31/api-2.json +++ b/models/apis/rds/2014-10-31/api-2.json @@ -4673,6 +4673,7 @@ "TagList":{"shape":"TagList"}, "SupportsBabelfish":{"shape":"Boolean"}, "CustomDBEngineVersionManifest":{"shape":"CustomDBEngineVersionManifest"}, + "SupportsLimitlessDatabase":{"shape":"Boolean"}, "SupportsCertificateRotationWithoutRestart":{"shape":"BooleanOptional"}, "SupportedCACertificateIdentifiers":{"shape":"CACertificateIdentifiersList"}, "SupportsLocalWriteForwarding":{"shape":"BooleanOptional"}, @@ -10125,6 +10126,7 @@ "SupportsParallelQuery":{"shape":"BooleanOptional"}, "SupportsGlobalDatabases":{"shape":"BooleanOptional"}, "SupportsBabelfish":{"shape":"BooleanOptional"}, + "SupportsLimitlessDatabase":{"shape":"BooleanOptional"}, "SupportsLocalWriteForwarding":{"shape":"BooleanOptional"}, "SupportsIntegrations":{"shape":"BooleanOptional"} } diff --git a/models/apis/rds/2014-10-31/docs-2.json b/models/apis/rds/2014-10-31/docs-2.json index c960a74424..e982f29362 100644 --- a/models/apis/rds/2014-10-31/docs-2.json +++ b/models/apis/rds/2014-10-31/docs-2.json @@ -470,6 +470,7 @@ "DBEngineVersion$SupportsParallelQuery": "

Indicates whether you can use Aurora parallel query with a specific DB engine version.

", "DBEngineVersion$SupportsGlobalDatabases": "

Indicates whether you can use Aurora global databases with a specific DB engine version.

", "DBEngineVersion$SupportsBabelfish": "

Indicates whether the engine version supports Babelfish for Aurora PostgreSQL.

", + "DBEngineVersion$SupportsLimitlessDatabase": "

Indicates whether the DB engine version supports Aurora Limitless Database.

", "DBEngineVersion$SupportsIntegrations": "

Indicates whether the DB engine version supports zero-ETL integrations with Amazon Redshift.

", "DBInstance$MultiAZ": "

Indicates whether the DB instance is a Multi-AZ deployment. This setting doesn't apply to RDS Custom DB instances.

", "DBInstance$AutoMinorVersionUpgrade": "

Indicates whether minor version patches are applied automatically.

", @@ -729,6 +730,7 @@ "UpgradeTarget$SupportsParallelQuery": "

Indicates whether you can use Aurora parallel query with the target engine version.

", "UpgradeTarget$SupportsGlobalDatabases": "

Indicates whether you can use Aurora global databases with the target engine version.

", "UpgradeTarget$SupportsBabelfish": "

Indicates whether you can use Babelfish for Aurora PostgreSQL with the target engine version.

", + "UpgradeTarget$SupportsLimitlessDatabase": "

Indicates whether the DB engine version supports Aurora Limitless Database.

", "UpgradeTarget$SupportsLocalWriteForwarding": "

Indicates whether the target engine version supports forwarding write operations from reader DB instances to the writer DB instance in the DB cluster. By default, write operations aren't allowed on reader DB instances.

Valid for: Aurora DB clusters only

", "UpgradeTarget$SupportsIntegrations": "

Indicates whether the DB engine version supports zero-ETL integrations with Amazon Redshift.

" } diff --git a/models/apis/support/2013-04-15/api-2.json b/models/apis/support/2013-04-15/api-2.json index c3ca8d3587..795ef1477b 100644 --- a/models/apis/support/2013-04-15/api-2.json +++ b/models/apis/support/2013-04-15/api-2.json @@ -5,6 +5,7 @@ "endpointPrefix":"support", "jsonVersion":"1.1", "protocol":"json", + "protocols":["json"], "serviceFullName":"AWS Support", "serviceId":"Support", "signatureVersion":"v4", diff --git a/models/apis/support/2013-04-15/endpoint-rule-set-1.json b/models/apis/support/2013-04-15/endpoint-rule-set-1.json index 3898b7fffc..f280a83892 100644 --- a/models/apis/support/2013-04-15/endpoint-rule-set-1.json +++ b/models/apis/support/2013-04-15/endpoint-rule-set-1.json @@ -40,7 +40,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -58,548 +57,564 @@ "type": "error" }, { - "conditions": [], - "type": "tree", - "rules": [ + "conditions": [ { - "conditions": [ + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [], - "endpoint": { - "url": { - "ref": "Endpoint" + "ref": "UseDualStack" }, - "properties": {}, - "headers": {} - }, - "type": "endpoint" + true + ] } - ] + ], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" + }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" } - ] + ], + "type": "tree" }, { - "conditions": [], - "type": "tree", + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Region" + } + ] + } + ], "rules": [ { "conditions": [ { - "fn": "isSet", + "fn": "aws.partition", "argv": [ { "ref": "Region" } - ] + ], + "assign": "PartitionResult" } ], - "type": "tree", "rules": [ { "conditions": [ { - "fn": "aws.partition", + "fn": "stringEquals", "argv": [ { - "ref": "Region" - } - ], - "assign": "PartitionResult" - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "stringEquals", + "fn": "getAttr", "argv": [ { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "name" - ] + "ref": "PartitionResult" }, - "aws" + "name" ] }, + "aws" + ] + }, + { + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - false - ] + "ref": "UseFIPS" }, + false + ] + }, + { + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - false - ] - } - ], - "endpoint": { - "url": "https://support.us-east-1.amazonaws.com", - "properties": { - "authSchemes": [ - { - "name": "sigv4", - "signingName": "support", - "signingRegion": "us-east-1" - } - ] + "ref": "UseDualStack" }, - "headers": {} - }, - "type": "endpoint" + false + ] + } + ], + "endpoint": { + "url": "https://support.us-east-1.amazonaws.com", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "support", + "signingRegion": "us-east-1" + } + ] }, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ { - "conditions": [ + "fn": "stringEquals", + "argv": [ { - "fn": "stringEquals", + "fn": "getAttr", "argv": [ { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "name" - ] + "ref": "PartitionResult" }, - "aws-cn" + "name" ] }, + "aws-cn" + ] + }, + { + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - false - ] + "ref": "UseFIPS" }, + false + ] + }, + { + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - false - ] - } - ], - "endpoint": { - "url": "https://support.cn-north-1.amazonaws.com.cn", - "properties": { - "authSchemes": [ - { - "name": "sigv4", - "signingName": "support", - "signingRegion": "cn-north-1" - } - ] + "ref": "UseDualStack" }, - "headers": {} - }, - "type": "endpoint" + false + ] + } + ], + "endpoint": { + "url": "https://support.cn-north-1.amazonaws.com.cn", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "support", + "signingRegion": "cn-north-1" + } + ] }, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ { - "conditions": [ + "fn": "stringEquals", + "argv": [ { - "fn": "stringEquals", + "fn": "getAttr", "argv": [ { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "name" - ] + "ref": "PartitionResult" }, - "aws-us-gov" + "name" ] }, + "aws-us-gov" + ] + }, + { + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - false - ] + "ref": "UseFIPS" }, + false + ] + }, + { + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - false - ] - } - ], - "endpoint": { - "url": "https://support.us-gov-west-1.amazonaws.com", - "properties": { - "authSchemes": [ - { - "name": "sigv4", - "signingName": "support", - "signingRegion": "us-gov-west-1" - } - ] + "ref": "UseDualStack" }, - "headers": {} - }, - "type": "endpoint" + false + ] + } + ], + "endpoint": { + "url": "https://support.us-gov-west-1.amazonaws.com", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "support", + "signingRegion": "us-gov-west-1" + } + ] }, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ { - "conditions": [ + "fn": "stringEquals", + "argv": [ { - "fn": "stringEquals", + "fn": "getAttr", "argv": [ { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "name" - ] + "ref": "PartitionResult" }, - "aws-iso" + "name" ] }, + "aws-us-gov" + ] + }, + { + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - false - ] + "ref": "UseFIPS" }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - false - ] - } - ], - "endpoint": { - "url": "https://support.us-iso-east-1.c2s.ic.gov", - "properties": { - "authSchemes": [ - { - "name": "sigv4", - "signingName": "support", - "signingRegion": "us-iso-east-1" - } - ] + "ref": "UseDualStack" }, - "headers": {} - }, - "type": "endpoint" + false + ] + } + ], + "endpoint": { + "url": "https://support.us-gov-west-1.amazonaws.com", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "support", + "signingRegion": "us-gov-west-1" + } + ] }, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ { - "conditions": [ + "fn": "stringEquals", + "argv": [ { - "fn": "stringEquals", + "fn": "getAttr", "argv": [ { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "name" - ] + "ref": "PartitionResult" }, - "aws-iso-b" + "name" ] }, + "aws-iso" + ] + }, + { + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - false - ] + "ref": "UseFIPS" }, + false + ] + }, + { + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", + "ref": "UseDualStack" + }, + false + ] + } + ], + "endpoint": { + "url": "https://support.us-iso-east-1.c2s.ic.gov", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "support", + "signingRegion": "us-iso-east-1" + } + ] + }, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "fn": "getAttr", "argv": [ { - "ref": "UseDualStack" + "ref": "PartitionResult" }, - false + "name" ] + }, + "aws-iso-b" + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + false + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + false + ] + } + ], + "endpoint": { + "url": "https://support.us-isob-east-1.sc2s.sgov.gov", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "support", + "signingRegion": "us-isob-east-1" } - ], - "endpoint": { - "url": "https://support.us-isob-east-1.sc2s.sgov.gov", - "properties": { - "authSchemes": [ - { - "name": "sigv4", - "signingName": "support", - "signingRegion": "us-isob-east-1" - } - ] + ] + }, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" }, - "headers": {} - }, - "type": "endpoint" + true + ] }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseFIPS" - }, - true + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } ] }, { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - }, - { - "fn": "booleanEquals", + "fn": "getAttr", "argv": [ - true, { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://support-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } + "ref": "PartitionResult" + }, + "supportsDualStack" ] } ] - }, + } + ], + "rules": [ { "conditions": [], - "error": "FIPS and DualStack are enabled, but this partition does not support one or both", - "type": "error" + "endpoint": { + "url": "https://support-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } - ] + ], + "type": "tree" }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ { - "ref": "UseFIPS" + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] }, true ] } ], - "type": "tree", "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://support-fips.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - } - ] - }, { "conditions": [], - "error": "FIPS is enabled but this partition does not support FIPS", - "type": "error" + "endpoint": { + "url": "https://support-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } - ] + ], + "type": "tree" }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", + "fn": "getAttr", "argv": [ - true, { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://support.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } + "ref": "PartitionResult" + }, + "supportsDualStack" ] } ] - }, - { - "conditions": [], - "error": "DualStack is enabled but this partition does not support DualStack", - "type": "error" } - ] - }, - { - "conditions": [], - "type": "tree", + ], "rules": [ { "conditions": [], "endpoint": { - "url": "https://support.{Region}.{PartitionResult#dnsSuffix}", + "url": "https://support.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } - ] + ], + "type": "tree" + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" } - ] + ], + "type": "tree" + }, + { + "conditions": [], + "endpoint": { + "url": "https://support.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } - ] - }, - { - "conditions": [], - "error": "Invalid Configuration: Missing Region", - "type": "error" + ], + "type": "tree" } - ] + ], + "type": "tree" + }, + { + "conditions": [], + "error": "Invalid Configuration: Missing Region", + "type": "error" } ] } \ No newline at end of file diff --git a/models/apis/support/2013-04-15/endpoint-tests-1.json b/models/apis/support/2013-04-15/endpoint-tests-1.json index 6bd6b8fa74..275cc370a2 100644 --- a/models/apis/support/2013-04-15/endpoint-tests-1.json +++ b/models/apis/support/2013-04-15/endpoint-tests-1.json @@ -188,6 +188,28 @@ "UseDualStack": false } }, + { + "documentation": "For region aws-us-gov-global with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "support", + "signingRegion": "us-gov-west-1" + } + ] + }, + "url": "https://support.us-gov-west-1.amazonaws.com" + } + }, + "params": { + "Region": "aws-us-gov-global", + "UseFIPS": true, + "UseDualStack": false + } + }, { "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", "expect": { @@ -205,7 +227,16 @@ "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://support-fips.us-gov-east-1.amazonaws.com" + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "support", + "signingRegion": "us-gov-west-1" + } + ] + }, + "url": "https://support.us-gov-west-1.amazonaws.com" } }, "params": { diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json index aaebfda15c..85d596c563 100644 --- a/models/endpoints/endpoints.json +++ b/models/endpoints/endpoints.json @@ -21263,7 +21263,7 @@ "region" : "cn-northwest-1" }, "hostname" : "entitlement-marketplace.cn-northwest-1.amazonaws.com.cn", - "protocols" : [ "HTTPS" ] + "protocols" : [ "https" ] } } }, diff --git a/service/codepipeline/api.go b/service/codepipeline/api.go index 0db31a9224..82e3b1504a 100644 --- a/service/codepipeline/api.go +++ b/service/codepipeline/api.go @@ -3307,6 +3307,108 @@ func (c *CodePipeline) RetryStageExecutionWithContext(ctx aws.Context, input *Re return out, req.Send() } +const opRollbackStage = "RollbackStage" + +// RollbackStageRequest generates a "aws/request.Request" representing the +// client's request for the RollbackStage 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 RollbackStage for more information on using the RollbackStage +// 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 RollbackStageRequest method. +// req, resp := client.RollbackStageRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/RollbackStage +func (c *CodePipeline) RollbackStageRequest(input *RollbackStageInput) (req *request.Request, output *RollbackStageOutput) { + op := &request.Operation{ + Name: opRollbackStage, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &RollbackStageInput{} + } + + output = &RollbackStageOutput{} + req = c.newRequest(op, input, output) + return +} + +// RollbackStage API operation for AWS CodePipeline. +// +// Rolls back a stage execution. +// +// 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 CodePipeline's +// API operation RollbackStage for usage and error information. +// +// Returned Error Types: +// +// - ValidationException +// The validation was specified in an invalid format. +// +// - ConflictException +// Your request cannot be handled because the pipeline is busy handling ongoing +// activities. Try again later. +// +// - PipelineNotFoundException +// The pipeline was specified in an invalid format or cannot be found. +// +// - PipelineExecutionNotFoundException +// The pipeline execution was specified in an invalid format or cannot be found, +// or an execution ID does not belong to the specified pipeline. +// +// - PipelineExecutionOutdatedException +// The specified pipeline execution is outdated and cannot be used as a target +// pipeline execution for rollback. +// +// - StageNotFoundException +// The stage was specified in an invalid format or cannot be found. +// +// - UnableToRollbackStageException +// Unable to roll back the stage. The cause might be if the pipeline version +// has changed since the target pipeline execution was deployed, the stage is +// currently running, or an incorrect target pipeline execution ID was provided. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/RollbackStage +func (c *CodePipeline) RollbackStage(input *RollbackStageInput) (*RollbackStageOutput, error) { + req, out := c.RollbackStageRequest(input) + return out, req.Send() +} + +// RollbackStageWithContext is the same as RollbackStage with the addition of +// the ability to pass a context and additional request options. +// +// See RollbackStage 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 *CodePipeline) RollbackStageWithContext(ctx aws.Context, input *RollbackStageInput, opts ...request.Option) (*RollbackStageOutput, error) { + req, out := c.RollbackStageRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opStartPipelineExecution = "StartPipelineExecution" // StartPipelineExecutionRequest generates a "aws/request.Request" representing the @@ -8422,6 +8524,40 @@ func (s *ExecutorConfiguration) SetLambdaExecutorConfiguration(v *LambdaExecutor return s } +// The configuration that specifies the result, such as rollback, to occur upon +// stage failure. +type FailureConditions struct { + _ struct{} `type:"structure"` + + // The specified result for when the failure conditions are met, such as rolling + // back the stage. + Result *string `locationName:"result" type:"string" enum:"Result"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s FailureConditions) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s FailureConditions) GoString() string { + return s.String() +} + +// SetResult sets the Result field's value. +func (s *FailureConditions) SetResult(v string) *FailureConditions { + s.Result = &v + return s +} + // Represents information about failure details. type FailureDetails struct { _ struct{} `type:"structure"` @@ -11319,6 +11455,9 @@ func (s *ListActionTypesOutput) SetNextToken(v string) *ListActionTypesOutput { type ListPipelineExecutionsInput struct { _ struct{} `type:"structure"` + // The pipeline execution to filter on. + Filter *PipelineExecutionFilter `locationName:"filter" type:"structure"` + // The maximum number of results to return in a single call. To retrieve the // remaining results, make another call with the returned nextToken value. Pipeline // history is limited to the most recent 12 months, based on pipeline execution @@ -11368,6 +11507,11 @@ func (s *ListPipelineExecutionsInput) Validate() error { if s.PipelineName != nil && len(*s.PipelineName) < 1 { invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1)) } + if s.Filter != nil { + if err := s.Filter.Validate(); err != nil { + invalidParams.AddNested("Filter", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -11375,6 +11519,12 @@ func (s *ListPipelineExecutionsInput) Validate() error { return nil } +// SetFilter sets the Filter field's value. +func (s *ListPipelineExecutionsInput) SetFilter(v *PipelineExecutionFilter) *ListPipelineExecutionsInput { + s.Filter = v + return s +} + // SetMaxResults sets the MaxResults field's value. func (s *ListPipelineExecutionsInput) SetMaxResults(v int64) *ListPipelineExecutionsInput { s.MaxResults = &v @@ -12349,6 +12499,9 @@ type PipelineExecution struct { // default mode is SUPERSEDED. ExecutionMode *string `locationName:"executionMode" type:"string" enum:"ExecutionMode"` + // The type of the pipeline execution. + ExecutionType *string `locationName:"executionType" type:"string" enum:"ExecutionType"` + // The ID of the pipeline execution. PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string"` @@ -12358,6 +12511,9 @@ type PipelineExecution struct { // The version number of the pipeline with the specified pipeline execution. PipelineVersion *int64 `locationName:"pipelineVersion" min:"1" type:"integer"` + // The metadata about the execution pertaining to stage rollback. + RollbackMetadata *PipelineRollbackMetadata `locationName:"rollbackMetadata" type:"structure"` + // The status of the pipeline execution. // // * Cancelled: The pipeline’s definition was updated before the pipeline @@ -12423,6 +12579,12 @@ func (s *PipelineExecution) SetExecutionMode(v string) *PipelineExecution { return s } +// SetExecutionType sets the ExecutionType field's value. +func (s *PipelineExecution) SetExecutionType(v string) *PipelineExecution { + s.ExecutionType = &v + return s +} + // SetPipelineExecutionId sets the PipelineExecutionId field's value. func (s *PipelineExecution) SetPipelineExecutionId(v string) *PipelineExecution { s.PipelineExecutionId = &v @@ -12441,6 +12603,12 @@ func (s *PipelineExecution) SetPipelineVersion(v int64) *PipelineExecution { return s } +// SetRollbackMetadata sets the RollbackMetadata field's value. +func (s *PipelineExecution) SetRollbackMetadata(v *PipelineRollbackMetadata) *PipelineExecution { + s.RollbackMetadata = v + return s +} + // SetStatus sets the Status field's value. func (s *PipelineExecution) SetStatus(v string) *PipelineExecution { s.Status = &v @@ -12465,6 +12633,54 @@ func (s *PipelineExecution) SetVariables(v []*ResolvedPipelineVariable) *Pipelin return s } +// The pipeline execution to filter on. +type PipelineExecutionFilter struct { + _ struct{} `type:"structure"` + + // Filter for pipeline executions where the stage was successful in the current + // pipeline version. + SucceededInStage *SucceededInStageFilter `locationName:"succeededInStage" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PipelineExecutionFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PipelineExecutionFilter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PipelineExecutionFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PipelineExecutionFilter"} + if s.SucceededInStage != nil { + if err := s.SucceededInStage.Validate(); err != nil { + invalidParams.AddNested("SucceededInStage", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSucceededInStage sets the SucceededInStage field's value. +func (s *PipelineExecutionFilter) SetSucceededInStage(v *SucceededInStageFilter) *PipelineExecutionFilter { + s.SucceededInStage = v + return s +} + // The pipeline execution was specified in an invalid format or cannot be found, // or an execution ID does not belong to the specified pipeline. type PipelineExecutionNotFoundException struct { @@ -12595,6 +12811,71 @@ func (s *PipelineExecutionNotStoppableException) RequestID() string { return s.RespMetadata.RequestID } +// The specified pipeline execution is outdated and cannot be used as a target +// pipeline execution for rollback. +type PipelineExecutionOutdatedException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PipelineExecutionOutdatedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PipelineExecutionOutdatedException) GoString() string { + return s.String() +} + +func newErrorPipelineExecutionOutdatedException(v protocol.ResponseMetadata) error { + return &PipelineExecutionOutdatedException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *PipelineExecutionOutdatedException) Code() string { + return "PipelineExecutionOutdatedException" +} + +// Message returns the exception's message. +func (s *PipelineExecutionOutdatedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *PipelineExecutionOutdatedException) OrigErr() error { + return nil +} + +func (s *PipelineExecutionOutdatedException) 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 *PipelineExecutionOutdatedException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *PipelineExecutionOutdatedException) RequestID() string { + return s.RespMetadata.RequestID +} + // Summary information about a pipeline execution. type PipelineExecutionSummary struct { _ struct{} `type:"structure"` @@ -12603,6 +12884,9 @@ type PipelineExecutionSummary struct { // default mode is SUPERSEDED. ExecutionMode *string `locationName:"executionMode" type:"string" enum:"ExecutionMode"` + // Type of the pipeline execution. + ExecutionType *string `locationName:"executionType" type:"string" enum:"ExecutionType"` + // The date and time of the last change to the pipeline execution, in timestamp // format. LastUpdateTime *time.Time `locationName:"lastUpdateTime" type:"timestamp"` @@ -12610,6 +12894,9 @@ type PipelineExecutionSummary struct { // The ID of the pipeline execution. PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string"` + // The metadata for the stage execution to be rolled back. + RollbackMetadata *PipelineRollbackMetadata `locationName:"rollbackMetadata" type:"structure"` + // A list of the source artifact revisions that initiated a pipeline execution. SourceRevisions []*SourceRevision `locationName:"sourceRevisions" type:"list"` @@ -12638,6 +12925,9 @@ type PipelineExecutionSummary struct { // * Failed: The pipeline execution was not completed successfully. Status *string `locationName:"status" type:"string" enum:"PipelineExecutionStatus"` + // Status summary for the pipeline. + StatusSummary *string `locationName:"statusSummary" type:"string"` + // The interaction that stopped a pipeline execution. StopTrigger *StopExecutionTrigger `locationName:"stopTrigger" type:"structure"` @@ -12670,6 +12960,12 @@ func (s *PipelineExecutionSummary) SetExecutionMode(v string) *PipelineExecution return s } +// SetExecutionType sets the ExecutionType field's value. +func (s *PipelineExecutionSummary) SetExecutionType(v string) *PipelineExecutionSummary { + s.ExecutionType = &v + return s +} + // SetLastUpdateTime sets the LastUpdateTime field's value. func (s *PipelineExecutionSummary) SetLastUpdateTime(v time.Time) *PipelineExecutionSummary { s.LastUpdateTime = &v @@ -12682,6 +12978,12 @@ func (s *PipelineExecutionSummary) SetPipelineExecutionId(v string) *PipelineExe return s } +// SetRollbackMetadata sets the RollbackMetadata field's value. +func (s *PipelineExecutionSummary) SetRollbackMetadata(v *PipelineRollbackMetadata) *PipelineExecutionSummary { + s.RollbackMetadata = v + return s +} + // SetSourceRevisions sets the SourceRevisions field's value. func (s *PipelineExecutionSummary) SetSourceRevisions(v []*SourceRevision) *PipelineExecutionSummary { s.SourceRevisions = v @@ -12700,6 +13002,12 @@ func (s *PipelineExecutionSummary) SetStatus(v string) *PipelineExecutionSummary return s } +// SetStatusSummary sets the StatusSummary field's value. +func (s *PipelineExecutionSummary) SetStatusSummary(v string) *PipelineExecutionSummary { + s.StatusSummary = &v + return s +} + // SetStopTrigger sets the StopTrigger field's value. func (s *PipelineExecutionSummary) SetStopTrigger(v *StopExecutionTrigger) *PipelineExecutionSummary { s.StopTrigger = v @@ -12905,6 +13213,38 @@ func (s *PipelineNotFoundException) RequestID() string { return s.RespMetadata.RequestID } +// The metadata for the stage execution to be rolled back. +type PipelineRollbackMetadata struct { + _ struct{} `type:"structure"` + + // The pipeline execution ID to which the stage will be rolled back. + RollbackTargetPipelineExecutionId *string `locationName:"rollbackTargetPipelineExecutionId" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PipelineRollbackMetadata) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PipelineRollbackMetadata) GoString() string { + return s.String() +} + +// SetRollbackTargetPipelineExecutionId sets the RollbackTargetPipelineExecutionId field's value. +func (s *PipelineRollbackMetadata) SetRollbackTargetPipelineExecutionId(v string) *PipelineRollbackMetadata { + s.RollbackTargetPipelineExecutionId = &v + return s +} + // Returns a summary of a pipeline. type PipelineSummary struct { _ struct{} `type:"structure"` @@ -14711,6 +15051,120 @@ func (s *RetryStageExecutionOutput) SetPipelineExecutionId(v string) *RetryStage return s } +type RollbackStageInput struct { + _ struct{} `type:"structure"` + + // The name of the pipeline for which the stage will be rolled back. + // + // PipelineName is a required field + PipelineName *string `locationName:"pipelineName" min:"1" type:"string" required:"true"` + + // The name of the stage in the pipeline to be rolled back. + // + // StageName is a required field + StageName *string `locationName:"stageName" min:"1" type:"string" required:"true"` + + // The pipeline execution ID for the stage to be rolled back to. + // + // TargetPipelineExecutionId is a required field + TargetPipelineExecutionId *string `locationName:"targetPipelineExecutionId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RollbackStageInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RollbackStageInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RollbackStageInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RollbackStageInput"} + if s.PipelineName == nil { + invalidParams.Add(request.NewErrParamRequired("PipelineName")) + } + if s.PipelineName != nil && len(*s.PipelineName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PipelineName", 1)) + } + if s.StageName == nil { + invalidParams.Add(request.NewErrParamRequired("StageName")) + } + if s.StageName != nil && len(*s.StageName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StageName", 1)) + } + if s.TargetPipelineExecutionId == nil { + invalidParams.Add(request.NewErrParamRequired("TargetPipelineExecutionId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPipelineName sets the PipelineName field's value. +func (s *RollbackStageInput) SetPipelineName(v string) *RollbackStageInput { + s.PipelineName = &v + return s +} + +// SetStageName sets the StageName field's value. +func (s *RollbackStageInput) SetStageName(v string) *RollbackStageInput { + s.StageName = &v + return s +} + +// SetTargetPipelineExecutionId sets the TargetPipelineExecutionId field's value. +func (s *RollbackStageInput) SetTargetPipelineExecutionId(v string) *RollbackStageInput { + s.TargetPipelineExecutionId = &v + return s +} + +type RollbackStageOutput struct { + _ struct{} `type:"structure"` + + // The execution ID of the pipeline execution for the stage that has been rolled + // back. + // + // PipelineExecutionId is a required field + PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RollbackStageOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RollbackStageOutput) GoString() string { + return s.String() +} + +// SetPipelineExecutionId sets the PipelineExecutionId field's value. +func (s *RollbackStageOutput) SetPipelineExecutionId(v string) *RollbackStageOutput { + s.PipelineExecutionId = &v + return s +} + // The location of the S3 bucket that contains a revision. type S3ArtifactLocation struct { _ struct{} `type:"structure"` @@ -14999,6 +15453,11 @@ type StageDeclaration struct { // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // The method to use when a stage has not completed successfully. For example, + // configuring this field for rollback will roll back a failed stage automatically + // to the last successful pipeline execution in the stage. + OnFailure *FailureConditions `locationName:"onFailure" type:"structure"` } // String returns the string representation. @@ -15076,6 +15535,12 @@ func (s *StageDeclaration) SetName(v string) *StageDeclaration { return s } +// SetOnFailure sets the OnFailure field's value. +func (s *StageDeclaration) SetOnFailure(v *FailureConditions) *StageDeclaration { + s.OnFailure = v + return s +} + // Represents information about the run of a stage. type StageExecution struct { _ struct{} `type:"structure"` @@ -15093,6 +15558,10 @@ type StageExecution struct { // // Status is a required field Status *string `locationName:"status" type:"string" required:"true" enum:"StageExecutionStatus"` + + // The type of pipeline execution for the stage, such as a rollback pipeline + // execution. + Type *string `locationName:"type" type:"string" enum:"ExecutionType"` } // String returns the string representation. @@ -15125,6 +15594,12 @@ func (s *StageExecution) SetStatus(v string) *StageExecution { return s } +// SetType sets the Type field's value. +func (s *StageExecution) SetType(v string) *StageExecution { + s.Type = &v + return s +} + // The stage was specified in an invalid format or cannot be found. type StageNotFoundException struct { _ struct{} `type:"structure"` @@ -15620,6 +16095,53 @@ func (s *StopPipelineExecutionOutput) SetPipelineExecutionId(v string) *StopPipe return s } +// Filter for pipeline executions that have successfully completed the stage +// in the current pipeline version. +type SucceededInStageFilter struct { + _ struct{} `type:"structure"` + + // The name of the stage for filtering for pipeline executions where the stage + // was successful in the current pipeline version. + StageName *string `locationName:"stageName" min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SucceededInStageFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SucceededInStageFilter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SucceededInStageFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SucceededInStageFilter"} + if s.StageName != nil && len(*s.StageName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StageName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetStageName sets the StageName field's value. +func (s *SucceededInStageFilter) SetStageName(v string) *SucceededInStageFilter { + s.StageName = &v + return s +} + // A tag is a key-value pair that is used to manage the resource. type Tag struct { _ struct{} `type:"structure"` @@ -16109,6 +16631,72 @@ func (s *TransitionState) SetLastChangedBy(v string) *TransitionState { return s } +// Unable to roll back the stage. The cause might be if the pipeline version +// has changed since the target pipeline execution was deployed, the stage is +// currently running, or an incorrect target pipeline execution ID was provided. +type UnableToRollbackStageException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UnableToRollbackStageException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UnableToRollbackStageException) GoString() string { + return s.String() +} + +func newErrorUnableToRollbackStageException(v protocol.ResponseMetadata) error { + return &UnableToRollbackStageException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *UnableToRollbackStageException) Code() string { + return "UnableToRollbackStageException" +} + +// Message returns the exception's message. +func (s *UnableToRollbackStageException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *UnableToRollbackStageException) OrigErr() error { + return nil +} + +func (s *UnableToRollbackStageException) 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 *UnableToRollbackStageException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *UnableToRollbackStageException) RequestID() string { + return s.RespMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` @@ -16948,6 +17536,22 @@ func ExecutionMode_Values() []string { } } +const ( + // ExecutionTypeStandard is a ExecutionType enum value + ExecutionTypeStandard = "STANDARD" + + // ExecutionTypeRollback is a ExecutionType enum value + ExecutionTypeRollback = "ROLLBACK" +) + +// ExecutionType_Values returns all elements of the ExecutionType enum +func ExecutionType_Values() []string { + return []string{ + ExecutionTypeStandard, + ExecutionTypeRollback, + } +} + const ( // ExecutorTypeJobWorker is a ExecutorType enum value ExecutorTypeJobWorker = "JobWorker" @@ -17116,6 +17720,18 @@ func PipelineType_Values() []string { } } +const ( + // ResultRollback is a Result enum value + ResultRollback = "ROLLBACK" +) + +// Result_Values returns all elements of the Result enum +func Result_Values() []string { + return []string{ + ResultRollback, + } +} + const ( // SourceRevisionTypeCommitId is a SourceRevisionType enum value SourceRevisionTypeCommitId = "COMMIT_ID" @@ -17237,6 +17853,12 @@ const ( // TriggerTypeWebhookV2 is a TriggerType enum value TriggerTypeWebhookV2 = "WebhookV2" + + // TriggerTypeManualRollback is a TriggerType enum value + TriggerTypeManualRollback = "ManualRollback" + + // TriggerTypeAutomatedRollback is a TriggerType enum value + TriggerTypeAutomatedRollback = "AutomatedRollback" ) // TriggerType_Values returns all elements of the TriggerType enum @@ -17249,6 +17871,8 @@ func TriggerType_Values() []string { TriggerTypeCloudWatchEvent, TriggerTypePutActionRevision, TriggerTypeWebhookV2, + TriggerTypeManualRollback, + TriggerTypeAutomatedRollback, } } diff --git a/service/codepipeline/codepipelineiface/interface.go b/service/codepipeline/codepipelineiface/interface.go index b8d71ada66..cf75bca9fa 100644 --- a/service/codepipeline/codepipelineiface/interface.go +++ b/service/codepipeline/codepipelineiface/interface.go @@ -210,6 +210,10 @@ type CodePipelineAPI interface { RetryStageExecutionWithContext(aws.Context, *codepipeline.RetryStageExecutionInput, ...request.Option) (*codepipeline.RetryStageExecutionOutput, error) RetryStageExecutionRequest(*codepipeline.RetryStageExecutionInput) (*request.Request, *codepipeline.RetryStageExecutionOutput) + RollbackStage(*codepipeline.RollbackStageInput) (*codepipeline.RollbackStageOutput, error) + RollbackStageWithContext(aws.Context, *codepipeline.RollbackStageInput, ...request.Option) (*codepipeline.RollbackStageOutput, error) + RollbackStageRequest(*codepipeline.RollbackStageInput) (*request.Request, *codepipeline.RollbackStageOutput) + StartPipelineExecution(*codepipeline.StartPipelineExecutionInput) (*codepipeline.StartPipelineExecutionOutput, error) StartPipelineExecutionWithContext(aws.Context, *codepipeline.StartPipelineExecutionInput, ...request.Option) (*codepipeline.StartPipelineExecutionOutput, error) StartPipelineExecutionRequest(*codepipeline.StartPipelineExecutionInput) (*request.Request, *codepipeline.StartPipelineExecutionOutput) diff --git a/service/codepipeline/errors.go b/service/codepipeline/errors.go index f635420845..ecd53b5d2f 100644 --- a/service/codepipeline/errors.go +++ b/service/codepipeline/errors.go @@ -180,6 +180,13 @@ const ( // a Stopped state, or it might no longer be in progress. ErrCodePipelineExecutionNotStoppableException = "PipelineExecutionNotStoppableException" + // ErrCodePipelineExecutionOutdatedException for service response error code + // "PipelineExecutionOutdatedException". + // + // The specified pipeline execution is outdated and cannot be used as a target + // pipeline execution for rollback. + ErrCodePipelineExecutionOutdatedException = "PipelineExecutionOutdatedException" + // ErrCodePipelineNameInUseException for service response error code // "PipelineNameInUseException". // @@ -229,6 +236,14 @@ const ( // The tags limit for a resource has been exceeded. ErrCodeTooManyTagsException = "TooManyTagsException" + // ErrCodeUnableToRollbackStageException for service response error code + // "UnableToRollbackStageException". + // + // Unable to roll back the stage. The cause might be if the pipeline version + // has changed since the target pipeline execution was deployed, the stage is + // currently running, or an incorrect target pipeline execution ID was provided. + ErrCodeUnableToRollbackStageException = "UnableToRollbackStageException" + // ErrCodeValidationException for service response error code // "ValidationException". // @@ -270,6 +285,7 @@ var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "OutputVariablesSizeExceededException": newErrorOutputVariablesSizeExceededException, "PipelineExecutionNotFoundException": newErrorPipelineExecutionNotFoundException, "PipelineExecutionNotStoppableException": newErrorPipelineExecutionNotStoppableException, + "PipelineExecutionOutdatedException": newErrorPipelineExecutionOutdatedException, "PipelineNameInUseException": newErrorPipelineNameInUseException, "PipelineNotFoundException": newErrorPipelineNotFoundException, "PipelineVersionNotFoundException": newErrorPipelineVersionNotFoundException, @@ -278,6 +294,7 @@ var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "StageNotFoundException": newErrorStageNotFoundException, "StageNotRetryableException": newErrorStageNotRetryableException, "TooManyTagsException": newErrorTooManyTagsException, + "UnableToRollbackStageException": newErrorUnableToRollbackStageException, "ValidationException": newErrorValidationException, "WebhookNotFoundException": newErrorWebhookNotFoundException, } diff --git a/service/cognitoidentityprovider/api.go b/service/cognitoidentityprovider/api.go index a8366ebf79..1ce5f5ac0a 100644 --- a/service/cognitoidentityprovider/api.go +++ b/service/cognitoidentityprovider/api.go @@ -10920,6 +10920,10 @@ func (c *CognitoIdentityProvider) SignUpRequest(input *SignUpInput) (req *reques // - InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // +// - LimitExceededException +// This exception is thrown when a user exceeds the limit for a requested Amazon +// Web Services resource. +// // - InvalidSmsRoleAccessPolicyException // This exception is returned when the role provided for SMS configuration doesn't // have permission to publish using Amazon SNS. @@ -14606,8 +14610,9 @@ type AdminGetUserOutput struct { // The date the user was created. UserCreateDate *time.Time `type:"timestamp"` - // The date and time, in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) - // format, when the item was modified. + // The date and time when the item was modified. Amazon Cognito returns this + // timestamp in UNIX epoch time format. Your SDK might render the output in + // a human-readable format like ISO 8601 or a Java Date object. UserLastModifiedDate *time.Time `type:"timestamp"` // The MFA options that are activated for the user. The possible values in this @@ -17507,8 +17512,9 @@ type AuthEventType struct { // The challenge responses. ChallengeResponses []*ChallengeResponseType `type:"list"` - // The date and time, in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) - // format, when the item was created. + // The date and time when the item was created. Amazon Cognito returns this + // timestamp in UNIX epoch time format. Your SDK might render the output in + // a human-readable format like ISO 8601 or a Java Date object. CreationDate *time.Time `type:"timestamp"` // The user context data captured at the time of an event request. This value @@ -19288,8 +19294,12 @@ func (s *CreateIdentityProviderOutput) SetIdentityProvider(v *IdentityProviderTy type CreateResourceServerInput struct { _ struct{} `type:"structure"` - // A unique resource server identifier for the resource server. This could be - // an HTTPS endpoint where the resource server is located, such as https://my-weather-api.example.com. + // A unique resource server identifier for the resource server. The identifier + // can be an API friendly name like solar-system-data. You can also set an API + // URL like https://solar-system-data-api.example.com as your identifier. + // + // Amazon Cognito represents scopes in the access token in the format $resource-server-identifier/$scope. + // Longer scope-identifier strings increase the size of your access tokens. // // Identifier is a required field Identifier *string `min:"1" type:"string" required:"true"` @@ -19642,7 +19652,8 @@ type CreateUserPoolClientInput struct { // ClientName is a required field ClientName *string `min:"1" type:"string" required:"true"` - // The default redirect URI. Must be in the CallbackURLs list. + // The default redirect URI. In app clients with one assigned IdP, replaces + // redirect_uri in authentication requests. Must be in the CallbackURLs list. // // A redirect URI must: // @@ -19652,7 +19663,7 @@ type CreateUserPoolClientInput struct { // // * Not include a fragment component. // - // See OAuth 2.0 - Redirection Endpoint (https://tools.ietf.org/html/rfc6749#section-3.1.2). + // For more information, see Default redirect URI (https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-client-apps.html#cognito-user-pools-app-idp-settings-about). // // Amazon Cognito requires HTTPS over HTTP except for http://localhost for testing // purposes only. @@ -21551,7 +21562,12 @@ func (s *DescribeIdentityProviderOutput) SetIdentityProvider(v *IdentityProvider type DescribeResourceServerInput struct { _ struct{} `type:"structure"` - // The identifier for the resource server + // A unique resource server identifier for the resource server. The identifier + // can be an API friendly name like solar-system-data. You can also set an API + // URL like https://solar-system-data-api.example.com as your identifier. + // + // Amazon Cognito represents scopes in the access token in the format $resource-server-identifier/$scope. + // Longer scope-identifier strings increase the size of your access tokens. // // Identifier is a required field Identifier *string `min:"1" type:"string" required:"true"` @@ -22243,8 +22259,9 @@ type DeviceType struct { // The date when the device was last authenticated. DeviceLastAuthenticatedDate *time.Time `type:"timestamp"` - // The date and time, in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) - // format, when the item was modified. + // The date and time when the item was modified. Amazon Cognito returns this + // timestamp in UNIX epoch time format. Your SDK might render the output in + // a human-readable format like ISO 8601 or a Java Date object. DeviceLastModifiedDate *time.Time `type:"timestamp"` } @@ -24451,8 +24468,9 @@ func (s *GroupExistsException) RequestID() string { type GroupType struct { _ struct{} `type:"structure"` - // The date and time, in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) - // format, when the item was created. + // The date and time when the item was created. Amazon Cognito returns this + // timestamp in UNIX epoch time format. Your SDK might render the output in + // a human-readable format like ISO 8601 or a Java Date object. CreationDate *time.Time `type:"timestamp"` // A string containing the description of the group. @@ -24461,8 +24479,9 @@ type GroupType struct { // The name of the group. GroupName *string `min:"1" type:"string"` - // The date and time, in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) - // format, when the item was modified. + // The date and time when the item was modified. Amazon Cognito returns this + // timestamp in UNIX epoch time format. Your SDK might render the output in + // a human-readable format like ISO 8601 or a Java Date object. LastModifiedDate *time.Time `type:"timestamp"` // A non-negative integer value that specifies the precedence of this group @@ -24597,15 +24616,17 @@ type IdentityProviderType struct { // A mapping of IdP attributes to standard and custom user pool attributes. AttributeMapping map[string]*string `type:"map"` - // The date and time, in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) - // format, when the item was created. + // The date and time when the item was created. Amazon Cognito returns this + // timestamp in UNIX epoch time format. Your SDK might render the output in + // a human-readable format like ISO 8601 or a Java Date object. CreationDate *time.Time `type:"timestamp"` // A list of IdP identifiers. IdpIdentifiers []*string `type:"list"` - // The date and time, in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) - // format, when the item was modified. + // The date and time when the item was modified. Amazon Cognito returns this + // timestamp in UNIX epoch time format. Your SDK might render the output in + // a human-readable format like ISO 8601 or a Java Date object. LastModifiedDate *time.Time `type:"timestamp"` // The scopes, URLs, and identifiers for your external identity provider. The @@ -28184,8 +28205,9 @@ func (s *PreconditionNotMetException) RequestID() string { type ProviderDescription struct { _ struct{} `type:"structure"` - // The date and time, in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) - // format, when the item was created. + // The date and time when the item was created. Amazon Cognito returns this + // timestamp in UNIX epoch time format. Your SDK might render the output in + // a human-readable format like ISO 8601 or a Java Date object. CreationDate *time.Time `type:"timestamp"` // The date the provider was last modified. @@ -28699,7 +28721,12 @@ func (s *ResourceServerScopeType) SetScopeName(v string) *ResourceServerScopeTyp type ResourceServerType struct { _ struct{} `type:"structure"` - // The identifier for the resource server. + // A unique resource server identifier for the resource server. The identifier + // can be an API friendly name like solar-system-data. You can also set an API + // URL like https://solar-system-data-api.example.com as your identifier. + // + // Amazon Cognito represents scopes in the access token in the format $resource-server-identifier/$scope. + // Longer scope-identifier strings increase the size of your access tokens. Identifier *string `min:"1" type:"string"` // The name of the resource server. @@ -29189,8 +29216,9 @@ type RiskConfigurationType struct { // and the EventAction. CompromisedCredentialsRiskConfiguration *CompromisedCredentialsRiskConfigurationType `type:"structure"` - // The date and time, in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) - // format, when the item was modified. + // The date and time when the item was modified. Amazon Cognito returns this + // timestamp in UNIX epoch time format. Your SDK might render the output in + // a human-readable format like ISO 8601 or a Java Date object. LastModifiedDate *time.Time `type:"timestamp"` // The configuration to override the risk decision. @@ -31376,15 +31404,17 @@ type UICustomizationType struct { // String and GoString methods. ClientId *string `min:"1" type:"string" sensitive:"true"` - // The date and time, in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) - // format, when the item was created. + // The date and time when the item was created. Amazon Cognito returns this + // timestamp in UNIX epoch time format. Your SDK might render the output in + // a human-readable format like ISO 8601 or a Java Date object. CreationDate *time.Time `type:"timestamp"` // The logo image for the UI customization. ImageUrl *string `type:"string"` - // The date and time, in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) - // format, when the item was modified. + // The date and time when the item was modified. Amazon Cognito returns this + // timestamp in UNIX epoch time format. Your SDK might render the output in + // a human-readable format like ISO 8601 or a Java Date object. LastModifiedDate *time.Time `type:"timestamp"` // The user pool ID for the user pool. @@ -32527,7 +32557,12 @@ func (s *UpdateIdentityProviderOutput) SetIdentityProvider(v *IdentityProviderTy type UpdateResourceServerInput struct { _ struct{} `type:"structure"` - // The identifier for the resource server. + // A unique resource server identifier for the resource server. The identifier + // can be an API friendly name like solar-system-data. You can also set an API + // URL like https://solar-system-data-api.example.com as your identifier. + // + // Amazon Cognito represents scopes in the access token in the format $resource-server-identifier/$scope. + // Longer scope-identifier strings increase the size of your access tokens. // // Identifier is a required field Identifier *string `min:"1" type:"string" required:"true"` @@ -33959,8 +33994,9 @@ type UserImportJobType struct { // The message returned when the user import job is completed. CompletionMessage *string `min:"1" type:"string"` - // The date and time, in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) - // format, when the item was created. + // The date and time when the item was created. Amazon Cognito returns this + // timestamp in UNIX epoch time format. Your SDK might render the output in + // a human-readable format like ISO 8601 or a Java Date object. CreationDate *time.Time `type:"timestamp"` // The number of users that couldn't be imported. @@ -34586,8 +34622,9 @@ type UserPoolClientType struct { // String and GoString methods. ClientSecret *string `min:"1" type:"string" sensitive:"true"` - // The date and time, in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) - // format, when the item was created. + // The date and time when the item was created. Amazon Cognito returns this + // timestamp in UNIX epoch time format. Your SDK might render the output in + // a human-readable format like ISO 8601 or a Java Date object. CreationDate *time.Time `type:"timestamp"` // The default redirect URI. Must be in the CallbackURLs list. @@ -34679,8 +34716,9 @@ type UserPoolClientType struct { // ID tokens are valid for one hour. IdTokenValidity *int64 `min:"1" type:"integer"` - // The date and time, in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) - // format, when the item was modified. + // The date and time when the item was modified. Amazon Cognito returns this + // timestamp in UNIX epoch time format. Your SDK might render the output in + // a human-readable format like ISO 8601 or a Java Date object. LastModifiedDate *time.Time `type:"timestamp"` // A list of allowed logout URLs for the IdPs. @@ -34944,8 +34982,9 @@ func (s *UserPoolClientType) SetWriteAttributes(v []*string) *UserPoolClientType type UserPoolDescriptionType struct { _ struct{} `type:"structure"` - // The date and time, in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) - // format, when the item was created. + // The date and time when the item was created. Amazon Cognito returns this + // timestamp in UNIX epoch time format. Your SDK might render the output in + // a human-readable format like ISO 8601 or a Java Date object. CreationDate *time.Time `type:"timestamp"` // The ID in a user pool description. @@ -34954,8 +34993,9 @@ type UserPoolDescriptionType struct { // The Lambda configuration information in a user pool description. LambdaConfig *LambdaConfigType `type:"structure"` - // The date and time, in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) - // format, when the item was modified. + // The date and time when the item was modified. Amazon Cognito returns this + // timestamp in UNIX epoch time format. Your SDK might render the output in + // a human-readable format like ISO 8601 or a Java Date object. LastModifiedDate *time.Time `type:"timestamp"` // The name in a user pool description. @@ -35157,8 +35197,9 @@ type UserPoolType struct { // The attributes that are auto-verified in a user pool. AutoVerifiedAttributes []*string `type:"list" enum:"VerifiedAttributeType"` - // The date and time, in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) - // format, when the item was created. + // The date and time when the item was created. Amazon Cognito returns this + // timestamp in UNIX epoch time format. Your SDK might render the output in + // a human-readable format like ISO 8601 or a Java Date object. CreationDate *time.Time `type:"timestamp"` // A custom domain name that you provide to Amazon Cognito. This parameter applies @@ -35213,8 +35254,9 @@ type UserPoolType struct { // The Lambda triggers associated with the user pool. LambdaConfig *LambdaConfigType `type:"structure"` - // The date and time, in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) - // format, when the item was modified. + // The date and time when the item was modified. Amazon Cognito returns this + // timestamp in UNIX epoch time format. Your SDK might render the output in + // a human-readable format like ISO 8601 or a Java Date object. LastModifiedDate *time.Time `type:"timestamp"` // Can be one of the following values: @@ -35550,8 +35592,9 @@ type UserType struct { // The creation date of the user. UserCreateDate *time.Time `type:"timestamp"` - // The date and time, in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) - // format, when the item was modified. + // The date and time when the item was modified. Amazon Cognito returns this + // timestamp in UNIX epoch time format. Your SDK might render the output in + // a human-readable format like ISO 8601 or a Java Date object. UserLastModifiedDate *time.Time `type:"timestamp"` // The user status. This can be one of the following: diff --git a/service/connectcampaigns/api.go b/service/connectcampaigns/api.go index 81b7b50de8..ce7e005760 100644 --- a/service/connectcampaigns/api.go +++ b/service/connectcampaigns/api.go @@ -2243,6 +2243,9 @@ func (s *AgentlessDialerConfig) SetDialingCapacity(v float64) *AgentlessDialerCo type AnswerMachineDetectionConfig struct { _ struct{} `type:"structure"` + // Enable or disable await answer machine prompt + AwaitAnswerMachinePrompt *bool `locationName:"awaitAnswerMachinePrompt" type:"boolean"` + // Enable or disable answering machine detection // // EnableAnswerMachineDetection is a required field @@ -2280,6 +2283,12 @@ func (s *AnswerMachineDetectionConfig) Validate() error { return nil } +// SetAwaitAnswerMachinePrompt sets the AwaitAnswerMachinePrompt field's value. +func (s *AnswerMachineDetectionConfig) SetAwaitAnswerMachinePrompt(v bool) *AnswerMachineDetectionConfig { + s.AwaitAnswerMachinePrompt = &v + return s +} + // SetEnableAnswerMachineDetection sets the EnableAnswerMachineDetection field's value. func (s *AnswerMachineDetectionConfig) SetEnableAnswerMachineDetection(v bool) *AnswerMachineDetectionConfig { s.EnableAnswerMachineDetection = &v diff --git a/service/oam/api.go b/service/oam/api.go index ea0eed6a68..c76b0de0a2 100644 --- a/service/oam/api.go +++ b/service/oam/api.go @@ -56,7 +56,10 @@ func (c *OAM) CreateLinkRequest(input *CreateLinkInput) (req *request.Request, o // CreateLink API operation for CloudWatch Observability Access Manager. // // Creates a link between a source account and a sink that you have created -// in a monitoring account. +// in a monitoring account. After the link is created, data is sent from the +// source account to the monitoring account. When you create a link, you can +// optionally specify filters that specify which metric namespaces and which +// log groups are shared from the source account to the monitoring account. // // Before you create a link, you must create a sink in the monitoring account // and create a sink policy in that account. The sink policy must permit the @@ -167,8 +170,8 @@ func (c *OAM) CreateSinkRequest(input *CreateSinkInput) (req *request.Request, o // After you create a sink, you must create a sink policy that allows source // accounts to attach to it. For more information, see PutSinkPolicy (https://docs.aws.amazon.com/OAM/latest/APIReference/API_PutSinkPolicy.html). // -// Each account can contain one sink. If you delete a sink, you can then create -// a new one in that account. +// Each account can contain one sink per Region. If you delete a sink, you can +// then create a new one in that Region. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1542,6 +1545,10 @@ func (c *OAM) UpdateLinkRequest(input *UpdateLinkInput) (req *request.Request, o // account to its linked monitoring account sink. You can't change the sink // or change the monitoring account with this operation. // +// When you update a link, you can optionally specify filters that specify which +// metric namespaces and which log groups are shared from the source account +// to the monitoring account. +// // To update the list of tags associated with the sink, use TagResource (https://docs.aws.amazon.com/OAM/latest/APIReference/API_TagResource.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1672,6 +1679,11 @@ type CreateLinkInput struct { // LabelTemplate is a required field LabelTemplate *string `min:"1" type:"string" required:"true"` + // Use this structure to optionally create filters that specify that only some + // metric namespaces or log groups are to be shared from the source account + // to the monitoring account. + LinkConfiguration *LinkConfiguration `type:"structure"` + // An array of strings that define which types of data that the source account // shares with the monitoring account. // @@ -1733,6 +1745,11 @@ func (s *CreateLinkInput) Validate() error { if s.SinkIdentifier == nil { invalidParams.Add(request.NewErrParamRequired("SinkIdentifier")) } + if s.LinkConfiguration != nil { + if err := s.LinkConfiguration.Validate(); err != nil { + invalidParams.AddNested("LinkConfiguration", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -1746,6 +1763,12 @@ func (s *CreateLinkInput) SetLabelTemplate(v string) *CreateLinkInput { return s } +// SetLinkConfiguration sets the LinkConfiguration field's value. +func (s *CreateLinkInput) SetLinkConfiguration(v *LinkConfiguration) *CreateLinkInput { + s.LinkConfiguration = v + return s +} + // SetResourceTypes sets the ResourceTypes field's value. func (s *CreateLinkInput) SetResourceTypes(v []*string) *CreateLinkInput { s.ResourceTypes = v @@ -1781,6 +1804,10 @@ type CreateLinkOutput struct { // The exact label template that you specified, with the variables not resolved. LabelTemplate *string `type:"string"` + // This structure includes filters that specify which metric namespaces and + // which log groups are shared from the source account to the monitoring account. + LinkConfiguration *LinkConfiguration `type:"structure"` + // The resource types supported by this link. ResourceTypes []*string `type:"list"` @@ -1833,6 +1860,12 @@ func (s *CreateLinkOutput) SetLabelTemplate(v string) *CreateLinkOutput { return s } +// SetLinkConfiguration sets the LinkConfiguration field's value. +func (s *CreateLinkOutput) SetLinkConfiguration(v *LinkConfiguration) *CreateLinkOutput { + s.LinkConfiguration = v + return s +} + // SetResourceTypes sets the ResourceTypes field's value. func (s *CreateLinkOutput) SetResourceTypes(v []*string) *CreateLinkOutput { s.ResourceTypes = v @@ -2172,6 +2205,10 @@ type GetLinkOutput struct { // the template variables not resolved. LabelTemplate *string `type:"string"` + // This structure includes filters that specify which metric namespaces and + // which log groups are shared from the source account to the monitoring account. + LinkConfiguration *LinkConfiguration `type:"structure"` + // The resource types supported by this link. ResourceTypes []*string `type:"list"` @@ -2224,6 +2261,12 @@ func (s *GetLinkOutput) SetLabelTemplate(v string) *GetLinkOutput { return s } +// SetLinkConfiguration sets the LinkConfiguration field's value. +func (s *GetLinkOutput) SetLinkConfiguration(v *LinkConfiguration) *GetLinkOutput { + s.LinkConfiguration = v + return s +} + // SetResourceTypes sets the ResourceTypes field's value. func (s *GetLinkOutput) SetResourceTypes(v []*string) *GetLinkOutput { s.ResourceTypes = v @@ -2577,6 +2620,71 @@ func (s *InvalidParameterException) RequestID() string { return s.RespMetadata.RequestID } +// Use this structure to optionally create filters that specify that only some +// metric namespaces or log groups are to be shared from the source account +// to the monitoring account. +type LinkConfiguration struct { + _ struct{} `type:"structure"` + + // Use this structure to filter which log groups are to send log events from + // the source account to the monitoring account. + LogGroupConfiguration *LogGroupConfiguration `type:"structure"` + + // Use this structure to filter which metric namespaces are to be shared from + // the source account to the monitoring account. + MetricConfiguration *MetricConfiguration `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LinkConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LinkConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *LinkConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LinkConfiguration"} + if s.LogGroupConfiguration != nil { + if err := s.LogGroupConfiguration.Validate(); err != nil { + invalidParams.AddNested("LogGroupConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.MetricConfiguration != nil { + if err := s.MetricConfiguration.Validate(); err != nil { + invalidParams.AddNested("MetricConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLogGroupConfiguration sets the LogGroupConfiguration field's value. +func (s *LinkConfiguration) SetLogGroupConfiguration(v *LogGroupConfiguration) *LinkConfiguration { + s.LogGroupConfiguration = v + return s +} + +// SetMetricConfiguration sets the MetricConfiguration field's value. +func (s *LinkConfiguration) SetMetricConfiguration(v *MetricConfiguration) *LinkConfiguration { + s.MetricConfiguration = v + return s +} + type ListAttachedLinksInput struct { _ struct{} `type:"structure"` @@ -3146,6 +3254,171 @@ func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForRe return s } +// This structure contains the Filter parameter which you can use to specify +// which log groups are to share log events from this source account to the +// monitoring account. +type LogGroupConfiguration struct { + _ struct{} `type:"structure"` + + // Use this field to specify which log groups are to share their log events + // with the monitoring account. Use the term LogGroupName and one or more of + // the following operands. Use single quotation marks (') around log group names. + // The matching of log group names is case sensitive. Each filter has a limit + // of five conditional operands. Conditional operands are AND and OR. + // + // * = and != + // + // * AND + // + // * OR + // + // * LIKE and NOT LIKE. These can be used only as prefix searches. Include + // a % at the end of the string that you want to search for and include. + // + // * IN and NOT IN, using parentheses ( ) + // + // Examples: + // + // * LogGroupName IN ('This-Log-Group', 'Other-Log-Group') includes only + // the log groups with names This-Log-Group and Other-Log-Group. + // + // * LogGroupName NOT IN ('Private-Log-Group', 'Private-Log-Group-2') includes + // all log groups except the log groups with names Private-Log-Group and + // Private-Log-Group-2. + // + // * LogGroupName LIKE 'aws/lambda/%' OR LogGroupName LIKE 'AWSLogs%' includes + // all log groups that have names that start with aws/lambda/ or AWSLogs. + // + // If you are updating a link that uses filters, you can specify * as the only + // value for the filter parameter to delete the filter and share all log groups + // with the monitoring account. + // + // Filter is a required field + Filter *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LogGroupConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LogGroupConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *LogGroupConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LogGroupConfiguration"} + if s.Filter == nil { + invalidParams.Add(request.NewErrParamRequired("Filter")) + } + if s.Filter != nil && len(*s.Filter) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Filter", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilter sets the Filter field's value. +func (s *LogGroupConfiguration) SetFilter(v string) *LogGroupConfiguration { + s.Filter = &v + return s +} + +// This structure contains the Filter parameter which you can use to specify +// which metric namespaces are to be shared from this source account to the +// monitoring account. +type MetricConfiguration struct { + _ struct{} `type:"structure"` + + // Use this field to specify which metrics are to be shared with the monitoring + // account. Use the term Namespace and one or more of the following operands. + // Use single quotation marks (') around namespace names. The matching of namespace + // names is case sensitive. Each filter has a limit of five conditional operands. + // Conditional operands are AND and OR. + // + // * = and != + // + // * AND + // + // * OR + // + // * LIKE and NOT LIKE. These can be used only as prefix searches. Include + // a % at the end of the string that you want to search for and include. + // + // * IN and NOT IN, using parentheses ( ) + // + // Examples: + // + // * Namespace NOT LIKE 'AWS/%' includes only namespaces that don't start + // with AWS/, such as custom namespaces. + // + // * Namespace IN ('AWS/EC2', 'AWS/ELB', 'AWS/S3') includes only the metrics + // in the EC2, Elastic Load Balancing, and Amazon S3 namespaces. + // + // * Namespace = 'AWS/EC2' OR Namespace NOT LIKE 'AWS/%' includes only the + // EC2 namespace and your custom namespaces. + // + // If you are updating a link that uses filters, you can specify * as the only + // value for the filter parameter to delete the filter and share all metric + // namespaces with the monitoring account. + // + // Filter is a required field + Filter *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s MetricConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s MetricConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *MetricConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MetricConfiguration"} + if s.Filter == nil { + invalidParams.Add(request.NewErrParamRequired("Filter")) + } + if s.Filter != nil && len(*s.Filter) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Filter", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilter sets the Filter field's value. +func (s *MetricConfiguration) SetFilter(v string) *MetricConfiguration { + s.Filter = &v + return s +} + // A required parameter is missing from the request. type MissingRequiredParameterException struct { _ struct{} `type:"structure"` @@ -3720,6 +3993,10 @@ type UpdateLinkInput struct { // Identifier is a required field Identifier *string `type:"string" required:"true"` + // Use this structure to filter which metric namespaces and which log groups + // are to be shared from the source account to the monitoring account. + LinkConfiguration *LinkConfiguration `type:"structure"` + // An array of strings that define which types of data that the source account // will send to the monitoring account. // @@ -3759,6 +4036,11 @@ func (s *UpdateLinkInput) Validate() error { if s.ResourceTypes != nil && len(s.ResourceTypes) < 1 { invalidParams.Add(request.NewErrParamMinLen("ResourceTypes", 1)) } + if s.LinkConfiguration != nil { + if err := s.LinkConfiguration.Validate(); err != nil { + invalidParams.AddNested("LinkConfiguration", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -3772,6 +4054,12 @@ func (s *UpdateLinkInput) SetIdentifier(v string) *UpdateLinkInput { return s } +// SetLinkConfiguration sets the LinkConfiguration field's value. +func (s *UpdateLinkInput) SetLinkConfiguration(v *LinkConfiguration) *UpdateLinkInput { + s.LinkConfiguration = v + return s +} + // SetResourceTypes sets the ResourceTypes field's value. func (s *UpdateLinkInput) SetResourceTypes(v []*string) *UpdateLinkInput { s.ResourceTypes = v @@ -3796,6 +4084,10 @@ type UpdateLinkOutput struct { // the template variables not resolved. LabelTemplate *string `min:"1" type:"string"` + // This structure includes filters that specify which metric namespaces and + // which log groups are shared from the source account to the monitoring account. + LinkConfiguration *LinkConfiguration `type:"structure"` + // The resource types now supported by this link. ResourceTypes []*string `type:"list"` @@ -3848,6 +4140,12 @@ func (s *UpdateLinkOutput) SetLabelTemplate(v string) *UpdateLinkOutput { return s } +// SetLinkConfiguration sets the LinkConfiguration field's value. +func (s *UpdateLinkOutput) SetLinkConfiguration(v *LinkConfiguration) *UpdateLinkOutput { + s.LinkConfiguration = v + return s +} + // SetResourceTypes sets the ResourceTypes field's value. func (s *UpdateLinkOutput) SetResourceTypes(v []*string) *UpdateLinkOutput { s.ResourceTypes = v diff --git a/service/rds/api.go b/service/rds/api.go index 632afa38f2..09374e00d5 100644 --- a/service/rds/api.go +++ b/service/rds/api.go @@ -21496,6 +21496,9 @@ type CreateCustomDBEngineVersionOutput struct { // Amazon Redshift. SupportsIntegrations *bool `type:"boolean"` + // Indicates whether the DB engine version supports Aurora Limitless Database. + SupportsLimitlessDatabase *bool `type:"boolean"` + // Indicates whether the DB engine version supports forwarding write operations // from reader DB instances to the writer DB instance in the DB cluster. By // default, write operations aren't allowed on reader DB instances. @@ -21703,6 +21706,12 @@ func (s *CreateCustomDBEngineVersionOutput) SetSupportsIntegrations(v bool) *Cre return s } +// SetSupportsLimitlessDatabase sets the SupportsLimitlessDatabase field's value. +func (s *CreateCustomDBEngineVersionOutput) SetSupportsLimitlessDatabase(v bool) *CreateCustomDBEngineVersionOutput { + s.SupportsLimitlessDatabase = &v + return s +} + // SetSupportsLocalWriteForwarding sets the SupportsLocalWriteForwarding field's value. func (s *CreateCustomDBEngineVersionOutput) SetSupportsLocalWriteForwarding(v bool) *CreateCustomDBEngineVersionOutput { s.SupportsLocalWriteForwarding = &v @@ -30136,6 +30145,9 @@ type DBEngineVersion struct { // Amazon Redshift. SupportsIntegrations *bool `type:"boolean"` + // Indicates whether the DB engine version supports Aurora Limitless Database. + SupportsLimitlessDatabase *bool `type:"boolean"` + // Indicates whether the DB engine version supports forwarding write operations // from reader DB instances to the writer DB instance in the DB cluster. By // default, write operations aren't allowed on reader DB instances. @@ -30343,6 +30355,12 @@ func (s *DBEngineVersion) SetSupportsIntegrations(v bool) *DBEngineVersion { return s } +// SetSupportsLimitlessDatabase sets the SupportsLimitlessDatabase field's value. +func (s *DBEngineVersion) SetSupportsLimitlessDatabase(v bool) *DBEngineVersion { + s.SupportsLimitlessDatabase = &v + return s +} + // SetSupportsLocalWriteForwarding sets the SupportsLocalWriteForwarding field's value. func (s *DBEngineVersion) SetSupportsLocalWriteForwarding(v bool) *DBEngineVersion { s.SupportsLocalWriteForwarding = &v @@ -34054,6 +34072,9 @@ type DeleteCustomDBEngineVersionOutput struct { // Amazon Redshift. SupportsIntegrations *bool `type:"boolean"` + // Indicates whether the DB engine version supports Aurora Limitless Database. + SupportsLimitlessDatabase *bool `type:"boolean"` + // Indicates whether the DB engine version supports forwarding write operations // from reader DB instances to the writer DB instance in the DB cluster. By // default, write operations aren't allowed on reader DB instances. @@ -34261,6 +34282,12 @@ func (s *DeleteCustomDBEngineVersionOutput) SetSupportsIntegrations(v bool) *Del return s } +// SetSupportsLimitlessDatabase sets the SupportsLimitlessDatabase field's value. +func (s *DeleteCustomDBEngineVersionOutput) SetSupportsLimitlessDatabase(v bool) *DeleteCustomDBEngineVersionOutput { + s.SupportsLimitlessDatabase = &v + return s +} + // SetSupportsLocalWriteForwarding sets the SupportsLocalWriteForwarding field's value. func (s *DeleteCustomDBEngineVersionOutput) SetSupportsLocalWriteForwarding(v bool) *DeleteCustomDBEngineVersionOutput { s.SupportsLocalWriteForwarding = &v @@ -46467,6 +46494,9 @@ type ModifyCustomDBEngineVersionOutput struct { // Amazon Redshift. SupportsIntegrations *bool `type:"boolean"` + // Indicates whether the DB engine version supports Aurora Limitless Database. + SupportsLimitlessDatabase *bool `type:"boolean"` + // Indicates whether the DB engine version supports forwarding write operations // from reader DB instances to the writer DB instance in the DB cluster. By // default, write operations aren't allowed on reader DB instances. @@ -46674,6 +46704,12 @@ func (s *ModifyCustomDBEngineVersionOutput) SetSupportsIntegrations(v bool) *Mod return s } +// SetSupportsLimitlessDatabase sets the SupportsLimitlessDatabase field's value. +func (s *ModifyCustomDBEngineVersionOutput) SetSupportsLimitlessDatabase(v bool) *ModifyCustomDBEngineVersionOutput { + s.SupportsLimitlessDatabase = &v + return s +} + // SetSupportsLocalWriteForwarding sets the SupportsLocalWriteForwarding field's value. func (s *ModifyCustomDBEngineVersionOutput) SetSupportsLocalWriteForwarding(v bool) *ModifyCustomDBEngineVersionOutput { s.SupportsLocalWriteForwarding = &v @@ -62333,6 +62369,9 @@ type UpgradeTarget struct { // Amazon Redshift. SupportsIntegrations *bool `type:"boolean"` + // Indicates whether the DB engine version supports Aurora Limitless Database. + SupportsLimitlessDatabase *bool `type:"boolean"` + // Indicates whether the target engine version supports forwarding write operations // from reader DB instances to the writer DB instance in the DB cluster. By // default, write operations aren't allowed on reader DB instances. @@ -62417,6 +62456,12 @@ func (s *UpgradeTarget) SetSupportsIntegrations(v bool) *UpgradeTarget { return s } +// SetSupportsLimitlessDatabase sets the SupportsLimitlessDatabase field's value. +func (s *UpgradeTarget) SetSupportsLimitlessDatabase(v bool) *UpgradeTarget { + s.SupportsLimitlessDatabase = &v + return s +} + // SetSupportsLocalWriteForwarding sets the SupportsLocalWriteForwarding field's value. func (s *UpgradeTarget) SetSupportsLocalWriteForwarding(v bool) *UpgradeTarget { s.SupportsLocalWriteForwarding = &v