diff --git a/CHANGELOG.md b/CHANGELOG.md index f4e35ade01d..cc9276d049d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,32 @@ +Release v1.47.1 (2023-11-01) +=== + +### Service Client Updates +* `service/connect`: Updates service API, documentation, and paginators +* `service/globalaccelerator`: Updates service API, documentation, and paginators +* `service/rds`: Updates service API, documentation, waiters, paginators, and examples + * This release adds support for customized networking resources to Amazon RDS Custom. +* `service/redshift`: Updates service API and documentation + * Added support for Multi-AZ deployments for Provisioned RA3 clusters that provide 99.99% SLA availability. +* `service/sagemaker`: Updates service API and documentation + * Support for batch transform input in Model dashboard + +Release v1.47.0 (2023-10-31) +=== + +### Service Client Updates +* `service/amplify`: Updates service API, documentation, and paginators +* `service/application-insights`: Updates service API and documentation +* `service/ec2`: Updates service API, documentation, and paginators + * Capacity Blocks for ML are a new EC2 purchasing option for reserving GPU instances on a future date to support short duration machine learning (ML) workloads. Capacity Blocks automatically place instances close together inside Amazon EC2 UltraClusters for low-latency, high-throughput networking. +* `service/m2`: Updates service API and documentation +* `service/neptunedata`: Updates service API and documentation +* `service/translate`: Updates service API and documentation + +### SDK Features +* `aws`: Bump minimum go version to 1.19. + * See https://aws.amazon.com/blogs/developer/aws-sdk-for-go-aligns-with-go-release-policy-on-supported-runtimes/. + Release v1.46.7 (2023-10-30) === diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index 0bbfeddce54..75c24e949c8 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -1,6 +1,4 @@ ### SDK Features -* `aws`: Bump minimum go version to 1.19. - * See https://aws.amazon.com/blogs/developer/aws-sdk-for-go-aligns-with-go-release-policy-on-supported-runtimes/. ### SDK Enhancements * `aws/ec2metadata`: Added environment and shared config support for disabling IMDSv1 fallback. diff --git a/aws/version.go b/aws/version.go index a516335df8e..ad2912c085d 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.46.7" +const SDKVersion = "1.47.1" diff --git a/example/aws/credentials/plugincreds/plugin/plugin.go b/example/aws/credentials/plugincreds/plugin/plugin.go index c790e086414..7f04e2b0f83 100644 --- a/example/aws/credentials/plugincreds/plugin/plugin.go +++ b/example/aws/credentials/plugincreds/plugin/plugin.go @@ -5,9 +5,8 @@ package main import ( "encoding/json" + "fmt" "os" - - "github.com/pkg/errors" ) // Example plugin that will retrieve credentials from a JSON file that the @@ -41,7 +40,7 @@ type provider struct { func (p *provider) Retrieve() (key, secret, token string, err error) { f, err := os.Open(p.Filename) if err != nil { - return "", "", "", errors.Wrapf(err, "failed to open credentials file, %q", p.Filename) + return "", "", "", fmt.Errorf("failed to open credentials file, %q: %w", p.Filename, err) } decoder := json.NewDecoder(f) @@ -50,7 +49,7 @@ func (p *provider) Retrieve() (key, secret, token string, err error) { }{} if err := decoder.Decode(&creds); err != nil { - return "", "", "", errors.Wrap(err, "failed to decode credentials file") + return "", "", "", fmt.Errorf("failed to decode credentials file: %w", err) } p.loaded = true diff --git a/go.mod b/go.mod index 4a67acfc030..78680c74db3 100644 --- a/go.mod +++ b/go.mod @@ -4,8 +4,7 @@ go 1.19 require ( github.com/jmespath/go-jmespath v0.4.0 - github.com/pkg/errors v0.9.1 - golang.org/x/net v0.1.0 + golang.org/x/net v0.17.0 ) -require golang.org/x/text v0.4.0 // indirect +require golang.org/x/text v0.13.0 // indirect diff --git a/go.sum b/go.sum index 3926565837c..1d2030fc29c 100644 --- a/go.sum +++ b/go.sum @@ -4,15 +4,13 @@ github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9Y github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8= github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= -github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= -github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -golang.org/x/net v0.1.0 h1:hZ/3BUoy5aId7sCpA/Tc5lt8DkFgdVS2onTpJsZ/fl0= -golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= -golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg= -golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= +golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= +golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= +golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/models/apis/amplify/2017-07-25/api-2.json b/models/apis/amplify/2017-07-25/api-2.json index 1df4574cb78..edd916e44ee 100644 --- a/models/apis/amplify/2017-07-25/api-2.json +++ b/models/apis/amplify/2017-07-25/api-2.json @@ -735,6 +735,12 @@ "max":1000, "pattern":"^$|^arn:aws:iam::\\d{12}:role.+" }, + "Backend":{ + "type":"structure", + "members":{ + "stackArn":{"shape":"StackArn"} + } + }, "BackendEnvironment":{ "type":"structure", "required":[ @@ -824,7 +830,8 @@ "pullRequestEnvironmentName":{"shape":"PullRequestEnvironmentName"}, "destinationBranch":{"shape":"BranchName"}, "sourceBranch":{"shape":"BranchName"}, - "backendEnvironmentArn":{"shape":"BackendEnvironmentArn"} + "backendEnvironmentArn":{"shape":"BackendEnvironmentArn"}, + "backend":{"shape":"Backend"} } }, "BranchArn":{ @@ -957,7 +964,8 @@ "displayName":{"shape":"DisplayName"}, "enablePullRequestPreview":{"shape":"EnablePullRequestPreview"}, "pullRequestEnvironmentName":{"shape":"PullRequestEnvironmentName"}, - "backendEnvironmentArn":{"shape":"BackendEnvironmentArn"} + "backendEnvironmentArn":{"shape":"BackendEnvironmentArn"}, + "backend":{"shape":"Backend"} } }, "CreateBranchResult":{ @@ -2010,6 +2018,12 @@ "max":3000, "pattern":"(?s).*" }, + "StackArn":{ + "type":"string", + "max":2048, + "min":20, + "pattern":"^arn:aws:cloudformation:[a-z0-9-]+:\\d{12}:stack/.+/.+$" + }, "StackName":{ "type":"string", "max":255, @@ -2370,7 +2384,8 @@ "displayName":{"shape":"DisplayName"}, "enablePullRequestPreview":{"shape":"EnablePullRequestPreview"}, "pullRequestEnvironmentName":{"shape":"PullRequestEnvironmentName"}, - "backendEnvironmentArn":{"shape":"BackendEnvironmentArn"} + "backendEnvironmentArn":{"shape":"BackendEnvironmentArn"}, + "backend":{"shape":"Backend"} } }, "UpdateBranchResult":{ diff --git a/models/apis/amplify/2017-07-25/docs-2.json b/models/apis/amplify/2017-07-25/docs-2.json index e962174e2e9..12830fc28ac 100644 --- a/models/apis/amplify/2017-07-25/docs-2.json +++ b/models/apis/amplify/2017-07-25/docs-2.json @@ -1,51 +1,51 @@ { "version": "2.0", - "service": "
Amplify enables developers to develop and deploy cloud-powered mobile and web apps. The Amplify Console provides a continuous delivery and hosting service for web applications. For more information, see the Amplify Console User Guide. The Amplify Framework is a comprehensive set of SDKs, libraries, tools, and documentation for client app development. For more information, see the Amplify Framework.
", + "service": "Amplify enables developers to develop and deploy cloud-powered mobile and web apps. Amplify Hosting provides a continuous delivery and hosting service for web applications. For more information, see the Amplify Hosting User Guide. The Amplify Framework is a comprehensive set of SDKs, libraries, tools, and documentation for client app development. For more information, see the Amplify Framework.
", "operations": { - "CreateApp": "Creates a new Amplify app.
", - "CreateBackendEnvironment": "Creates a new backend environment for an Amplify app.
", + "CreateApp": "Creates a new Amplify app.
", + "CreateBackendEnvironment": "Creates a new backend environment for an Amplify app.
", "CreateBranch": "Creates a new branch for an Amplify app.
", - "CreateDeployment": "Creates a deployment for a manually deployed Amplify app. Manually deployed apps are not connected to a repository.
", + "CreateDeployment": "Creates a deployment for a manually deployed Amplify app. Manually deployed apps are not connected to a repository.
The maximum duration between the CreateDeployment
call and the StartDeployment
call cannot exceed 8 hours. If the duration exceeds 8 hours, the StartDeployment
call and the associated Job
will fail.
Creates a new domain association for an Amplify app. This action associates a custom domain with the Amplify app
", - "CreateWebhook": "Creates a new webhook on an Amplify app.
", - "DeleteApp": "Deletes an existing Amplify app specified by an app ID.
", - "DeleteBackendEnvironment": "Deletes a backend environment for an Amplify app.
", + "CreateWebhook": "Creates a new webhook on an Amplify app.
", + "DeleteApp": "Deletes an existing Amplify app specified by an app ID.
", + "DeleteBackendEnvironment": "Deletes a backend environment for an Amplify app.
", "DeleteBranch": "Deletes a branch for an Amplify app.
", "DeleteDomainAssociation": "Deletes a domain association for an Amplify app.
", "DeleteJob": "Deletes a job for a branch of an Amplify app.
", - "DeleteWebhook": "Deletes a webhook.
", - "GenerateAccessLogs": "Returns the website access logs for a specific time range using a presigned URL.
", - "GetApp": "Returns an existing Amplify app by appID.
", - "GetArtifactUrl": "Returns the artifact info that corresponds to an artifact id.
", - "GetBackendEnvironment": "Returns a backend environment for an Amplify app.
", + "DeleteWebhook": "Deletes a webhook.
", + "GenerateAccessLogs": "Returns the website access logs for a specific time range using a presigned URL.
", + "GetApp": "Returns an existing Amplify app specified by an app ID.
", + "GetArtifactUrl": "Returns the artifact info that corresponds to an artifact id.
", + "GetBackendEnvironment": "Returns a backend environment for an Amplify app.
", "GetBranch": "Returns a branch for an Amplify app.
", "GetDomainAssociation": "Returns the domain information for an Amplify app.
", "GetJob": "Returns a job for a branch of an Amplify app.
", - "GetWebhook": "Returns the webhook information that corresponds to a specified webhook ID.
", - "ListApps": "Returns a list of the existing Amplify apps.
", - "ListArtifacts": "Returns a list of artifacts for a specified app, branch, and job.
", - "ListBackendEnvironments": "Lists the backend environments for an Amplify app.
", + "GetWebhook": "Returns the webhook information that corresponds to a specified webhook ID.
", + "ListApps": "Returns a list of the existing Amplify apps.
", + "ListArtifacts": "Returns a list of artifacts for a specified app, branch, and job.
", + "ListBackendEnvironments": "Lists the backend environments for an Amplify app.
", "ListBranches": "Lists the branches of an Amplify app.
", "ListDomainAssociations": "Returns the domain associations for an Amplify app.
", "ListJobs": "Lists the jobs for a branch of an Amplify app.
", - "ListTagsForResource": "Returns a list of tags for a specified Amazon Resource Name (ARN).
", - "ListWebhooks": "Returns a list of webhooks for an Amplify app.
", - "StartDeployment": "Starts a deployment for a manually deployed app. Manually deployed apps are not connected to a repository.
", + "ListTagsForResource": "Returns a list of tags for a specified Amazon Resource Name (ARN).
", + "ListWebhooks": "Returns a list of webhooks for an Amplify app.
", + "StartDeployment": "Starts a deployment for a manually deployed app. Manually deployed apps are not connected to a repository.
The maximum duration between the CreateDeployment
call and the StartDeployment
call cannot exceed 8 hours. If the duration exceeds 8 hours, the StartDeployment
call and the associated Job
will fail.
Starts a new job for a branch of an Amplify app.
", "StopJob": "Stops a job that is in progress for a branch of an Amplify app.
", - "TagResource": "Tags the resource with a tag key and value.
", - "UntagResource": "Untags a resource with a specified Amazon Resource Name (ARN).
", - "UpdateApp": "Updates an existing Amplify app.
", + "TagResource": "Tags the resource with a tag key and value.
", + "UntagResource": "Untags a resource with a specified Amazon Resource Name (ARN).
", + "UpdateApp": "Updates an existing Amplify app.
", "UpdateBranch": "Updates a branch for an Amplify app.
", "UpdateDomainAssociation": "Creates a new domain association for an Amplify app.
", - "UpdateWebhook": "Updates a webhook.
" + "UpdateWebhook": "Updates a webhook.
" }, "shapes": { "AccessToken": { "base": null, "refs": { - "CreateAppRequest$accessToken": "The personal access token for a GitHub repository for an Amplify app. The personal access token is used to authorize access to a GitHub repository using the Amplify GitHub App. The token is not stored.
Use accessToken
for GitHub repositories only. To authorize access to a repository provider such as Bitbucket or CodeCommit, use oauthToken
.
You must specify either accessToken
or oauthToken
when you create a new app.
Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see Migrating an existing OAuth app to the Amplify GitHub App in the Amplify User Guide .
", - "UpdateAppRequest$accessToken": "The personal access token for a GitHub repository for an Amplify app. The personal access token is used to authorize access to a GitHub repository using the Amplify GitHub App. The token is not stored.
Use accessToken
for GitHub repositories only. To authorize access to a repository provider such as Bitbucket or CodeCommit, use oauthToken
.
You must specify either accessToken
or oauthToken
when you update an app.
Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see Migrating an existing OAuth app to the Amplify GitHub App in the Amplify User Guide .
" + "CreateAppRequest$accessToken": "The personal access token for a GitHub repository for an Amplify app. The personal access token is used to authorize access to a GitHub repository using the Amplify GitHub App. The token is not stored.
Use accessToken
for GitHub repositories only. To authorize access to a repository provider such as Bitbucket or CodeCommit, use oauthToken
.
You must specify either accessToken
or oauthToken
when you create a new app.
Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see Migrating an existing OAuth app to the Amplify GitHub App in the Amplify User Guide .
", + "UpdateAppRequest$accessToken": "The personal access token for a GitHub repository for an Amplify app. The personal access token is used to authorize access to a GitHub repository using the Amplify GitHub App. The token is not stored.
Use accessToken
for GitHub repositories only. To authorize access to a repository provider such as Bitbucket or CodeCommit, use oauthToken
.
You must specify either accessToken
or oauthToken
when you update an app.
Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see Migrating an existing OAuth app to the Amplify GitHub App in the Amplify User Guide .
" } }, "ActiveJobId": { @@ -55,51 +55,51 @@ } }, "App": { - "base": "Represents the different branches of a repository for building, deploying, and hosting an Amplify app.
", + "base": "Represents the different branches of a repository for building, deploying, and hosting an Amplify app.
", "refs": { "Apps$member": null, "CreateAppResult$app": null, "DeleteAppResult$app": null, "GetAppResult$app": null, - "UpdateAppResult$app": "Represents the updated Amplify app.
" + "UpdateAppResult$app": "Represents the updated Amplify app.
" } }, "AppArn": { "base": null, "refs": { - "App$appArn": "The Amazon Resource Name (ARN) of the Amplify app.
" + "App$appArn": "The Amazon Resource Name (ARN) of the Amplify app.
" } }, "AppId": { "base": null, "refs": { - "App$appId": "The unique ID of the Amplify app.
", - "CreateBackendEnvironmentRequest$appId": "The unique ID for an Amplify app.
", + "App$appId": "The unique ID of the Amplify app.
", + "CreateBackendEnvironmentRequest$appId": "The unique ID for an Amplify app.
", "CreateBranchRequest$appId": "The unique ID for an Amplify app.
", "CreateDeploymentRequest$appId": "The unique ID for an Amplify app.
", "CreateDomainAssociationRequest$appId": "The unique ID for an Amplify app.
", - "CreateWebhookRequest$appId": "The unique ID for an Amplify app.
", - "DeleteAppRequest$appId": "The unique ID for an Amplify app.
", - "DeleteBackendEnvironmentRequest$appId": "The unique ID of an Amplify app.
", + "CreateWebhookRequest$appId": "The unique ID for an Amplify app.
", + "DeleteAppRequest$appId": "The unique ID for an Amplify app.
", + "DeleteBackendEnvironmentRequest$appId": "The unique ID of an Amplify app.
", "DeleteBranchRequest$appId": "The unique ID for an Amplify app.
", "DeleteDomainAssociationRequest$appId": "The unique id for an Amplify app.
", "DeleteJobRequest$appId": "The unique ID for an Amplify app.
", - "GenerateAccessLogsRequest$appId": "The unique ID for an Amplify app.
", - "GetAppRequest$appId": "The unique ID for an Amplify app.
", - "GetBackendEnvironmentRequest$appId": "The unique id for an Amplify app.
", + "GenerateAccessLogsRequest$appId": "The unique ID for an Amplify app.
", + "GetAppRequest$appId": "The unique ID for an Amplify app.
", + "GetBackendEnvironmentRequest$appId": "The unique id for an Amplify app.
", "GetBranchRequest$appId": "The unique ID for an Amplify app.
", "GetDomainAssociationRequest$appId": "The unique id for an Amplify app.
", - "GetJobRequest$appId": "The unique ID for an Amplify app.
", - "ListArtifactsRequest$appId": "The unique ID for an Amplify app.
", - "ListBackendEnvironmentsRequest$appId": "The unique ID for an Amplify app.
", - "ListBranchesRequest$appId": "The unique ID for an Amplify app.
", + "GetJobRequest$appId": "The unique ID for an Amplify app.
", + "ListArtifactsRequest$appId": "The unique ID for an Amplify app.
", + "ListBackendEnvironmentsRequest$appId": "The unique ID for an Amplify app.
", + "ListBranchesRequest$appId": "The unique ID for an Amplify app.
", "ListDomainAssociationsRequest$appId": "The unique ID for an Amplify app.
", "ListJobsRequest$appId": "The unique ID for an Amplify app.
", - "ListWebhooksRequest$appId": "The unique ID for an Amplify app.
", - "StartDeploymentRequest$appId": "The unique ID for an Amplify app.
", - "StartJobRequest$appId": "The unique ID for an Amplify app.
", + "ListWebhooksRequest$appId": "The unique ID for an Amplify app.
", + "StartDeploymentRequest$appId": "The unique ID for an Amplify app.
", + "StartJobRequest$appId": "The unique ID for an Amplify app.
", "StopJobRequest$appId": "The unique ID for an Amplify app.
", - "UpdateAppRequest$appId": "The unique ID for an Amplify app.
", + "UpdateAppRequest$appId": "The unique ID for an Amplify app.
", "UpdateBranchRequest$appId": "The unique ID for an Amplify app.
", "UpdateDomainAssociationRequest$appId": "The unique ID for an Amplify app.
" } @@ -107,11 +107,11 @@ "Apps": { "base": null, "refs": { - "ListAppsResult$apps": "A list of Amplify apps.
" + "ListAppsResult$apps": "A list of Amplify apps.
" } }, "Artifact": { - "base": "Describes an artifact.
", + "base": "Describes an artifact.
", "refs": { "Artifacts$member": null } @@ -119,27 +119,27 @@ "ArtifactFileName": { "base": null, "refs": { - "Artifact$artifactFileName": "The file name for the artifact.
" + "Artifact$artifactFileName": "The file name for the artifact.
" } }, "ArtifactId": { "base": null, "refs": { - "Artifact$artifactId": "The unique ID for the artifact.
", - "GetArtifactUrlRequest$artifactId": "The unique ID for an artifact.
", - "GetArtifactUrlResult$artifactId": "The unique ID for an artifact.
" + "Artifact$artifactId": "The unique ID for the artifact.
", + "GetArtifactUrlRequest$artifactId": "The unique ID for an artifact.
", + "GetArtifactUrlResult$artifactId": "The unique ID for an artifact.
" } }, "ArtifactUrl": { "base": null, "refs": { - "GetArtifactUrlResult$artifactUrl": "The presigned URL for the artifact.
" + "GetArtifactUrlResult$artifactUrl": "The presigned URL for the artifact.
" } }, "Artifacts": { "base": null, "refs": { - "ListArtifactsResult$artifacts": "A list of artifacts.
" + "ListArtifactsResult$artifacts": "A list of artifacts.
" } }, "ArtifactsUrl": { @@ -161,11 +161,11 @@ } }, "AutoBranchCreationConfig": { - "base": "Describes the automated branch creation configuration.
", + "base": "Describes the automated branch creation configuration.
", "refs": { - "App$autoBranchCreationConfig": "Describes the automated branch creation configuration for the Amplify app.
", - "CreateAppRequest$autoBranchCreationConfig": "The automated branch creation configuration for an Amplify app.
", - "UpdateAppRequest$autoBranchCreationConfig": "The automated branch creation configuration for an Amplify app.
" + "App$autoBranchCreationConfig": "Describes the automated branch creation configuration for the Amplify app.
", + "CreateAppRequest$autoBranchCreationConfig": "The automated branch creation configuration for an Amplify app.
", + "UpdateAppRequest$autoBranchCreationConfig": "The automated branch creation configuration for an Amplify app.
" } }, "AutoBranchCreationPattern": { @@ -177,9 +177,9 @@ "AutoBranchCreationPatterns": { "base": null, "refs": { - "App$autoBranchCreationPatterns": "Describes the automated branch creation glob patterns for the Amplify app.
", - "CreateAppRequest$autoBranchCreationPatterns": "The automated branch creation glob patterns for an Amplify app.
", - "UpdateAppRequest$autoBranchCreationPatterns": "Describes the automated branch creation glob patterns for an Amplify app.
" + "App$autoBranchCreationPatterns": "Describes the automated branch creation glob patterns for the Amplify app.
", + "CreateAppRequest$autoBranchCreationPatterns": "The automated branch creation glob patterns for an Amplify app.
", + "UpdateAppRequest$autoBranchCreationPatterns": "Describes the automated branch creation glob patterns for an Amplify app.
" } }, "AutoSubDomainCreationPattern": { @@ -204,44 +204,52 @@ "UpdateDomainAssociationRequest$autoSubDomainIAMRole": "The required AWS Identity and Access Management (IAM) service role for the Amazon Resource Name (ARN) for automatically creating subdomains.
" } }, + "Backend": { + "base": "Describes the backend properties associated with an Amplify Branch
.
The backend for a Branch
of an Amplify app. Use for a backend created from an CloudFormation stack.
The backend for a Branch
of an Amplify app. Use for a backend created from an CloudFormation stack.
Describes the backend environment for an Amplify app.
", + "base": "Describes the backend environment for an Amplify app.
", "refs": { "BackendEnvironments$member": null, - "CreateBackendEnvironmentResult$backendEnvironment": "Describes the backend environment for an Amplify app.
", - "DeleteBackendEnvironmentResult$backendEnvironment": "Describes the backend environment for an Amplify app.
", - "GetBackendEnvironmentResult$backendEnvironment": "Describes the backend environment for an Amplify app.
" + "CreateBackendEnvironmentResult$backendEnvironment": "Describes the backend environment for an Amplify app.
", + "DeleteBackendEnvironmentResult$backendEnvironment": "Describes the backend environment for an Amplify app.
", + "GetBackendEnvironmentResult$backendEnvironment": "Describes the backend environment for an Amplify app.
" } }, "BackendEnvironmentArn": { "base": null, "refs": { - "BackendEnvironment$backendEnvironmentArn": "The Amazon Resource Name (ARN) for a backend environment that is part of an Amplify app.
", + "BackendEnvironment$backendEnvironmentArn": "The Amazon Resource Name (ARN) for a backend environment that is part of an Amplify app.
", "Branch$backendEnvironmentArn": "The Amazon Resource Name (ARN) for a backend environment that is part of an Amplify app.
", - "CreateBranchRequest$backendEnvironmentArn": "The Amazon Resource Name (ARN) for a backend environment that is part of an Amplify app.
", - "UpdateBranchRequest$backendEnvironmentArn": "The Amazon Resource Name (ARN) for a backend environment that is part of an Amplify app.
" + "CreateBranchRequest$backendEnvironmentArn": "The Amazon Resource Name (ARN) for a backend environment that is part of an Amplify app.
", + "UpdateBranchRequest$backendEnvironmentArn": "The Amazon Resource Name (ARN) for a backend environment that is part of an Amplify app.
" } }, "BackendEnvironments": { "base": null, "refs": { - "ListBackendEnvironmentsResult$backendEnvironments": "The list of backend environments for an Amplify app.
" + "ListBackendEnvironmentsResult$backendEnvironments": "The list of backend environments for an Amplify app.
" } }, "BadRequestException": { - "base": "A request contains unexpected data.
", + "base": "A request contains unexpected data.
", "refs": { } }, "BasicAuthCredentials": { "base": null, "refs": { - "App$basicAuthCredentials": " The basic authorization credentials for branches for the Amplify app. You must base64-encode the authorization credentials and provide them in the format user:password
.
The basic authorization credentials for the autocreated branch. You must base64-encode the authorization credentials and provide them in the format user:password
.
The basic authorization credentials for branches for the Amplify app. You must base64-encode the authorization credentials and provide them in the format user:password
.
The basic authorization credentials for the autocreated branch. You must base64-encode the authorization credentials and provide them in the format user:password
.
The basic authorization credentials for a branch of an Amplify app. You must base64-encode the authorization credentials and provide them in the format user:password
.
The credentials for basic authorization for an Amplify app. You must base64-encode the authorization credentials and provide them in the format user:password
.
The credentials for basic authorization for an Amplify app. You must base64-encode the authorization credentials and provide them in the format user:password
.
The basic authorization credentials for the branch. You must base64-encode the authorization credentials and provide them in the format user:password
.
The basic authorization credentials for an Amplify app. You must base64-encode the authorization credentials and provide them in the format user:password
.
The basic authorization credentials for an Amplify app. You must base64-encode the authorization credentials and provide them in the format user:password
.
The basic authorization credentials for the branch. You must base64-encode the authorization credentials and provide them in the format user:password
.
Describes the branch for an Amplify app, which maps to a third-party repository branch.
", - "DeleteBranchResult$branch": "The branch for an Amplify app, which maps to a third-party repository branch.
", + "DeleteBranchResult$branch": "The branch for an Amplify app, which maps to a third-party repository branch.
", "GetBranchResult$branch": null, "UpdateBranchResult$branch": "The branch for an Amplify app, which maps to a third-party repository branch.
" } @@ -267,23 +275,23 @@ "Branch$branchName": "The name for the branch that is part of an Amplify app.
", "Branch$destinationBranch": "The destination branch if the branch is a pull request branch.
", "Branch$sourceBranch": "The source branch if the branch is a pull request branch.
", - "CreateBranchRequest$branchName": "The name for the branch.
", - "CreateDeploymentRequest$branchName": "The name for the branch, for the job.
", - "CreateWebhookRequest$branchName": "The name for a branch that is part of an Amplify app.
", - "DeleteBranchRequest$branchName": "The name for the branch.
", - "DeleteJobRequest$branchName": "The name for the branch, for the job.
", - "GetBranchRequest$branchName": "The name for the branch.
", - "GetJobRequest$branchName": "The branch name for the job.
", - "ListArtifactsRequest$branchName": "The name of a branch that is part of an Amplify app.
", - "ListJobsRequest$branchName": "The name for a branch.
", - "ProductionBranch$branchName": "The branch name for the production branch.
", - "StartDeploymentRequest$branchName": "The name for the branch, for the job.
", - "StartJobRequest$branchName": "The branch name for the job.
", - "StopJobRequest$branchName": "The name for the branch, for the job.
", + "CreateBranchRequest$branchName": "The name for the branch.
", + "CreateDeploymentRequest$branchName": "The name of the branch to use for the job.
", + "CreateWebhookRequest$branchName": "The name for a branch that is part of an Amplify app.
", + "DeleteBranchRequest$branchName": "The name of the branch.
", + "DeleteJobRequest$branchName": "The name of the branch to use for the job.
", + "GetBranchRequest$branchName": "The name of the branch.
", + "GetJobRequest$branchName": "The name of the branch to use for the job.
", + "ListArtifactsRequest$branchName": "The name of a branch that is part of an Amplify app.
", + "ListJobsRequest$branchName": "The name of the branch to use for the request.
", + "ProductionBranch$branchName": "The branch name for the production branch.
", + "StartDeploymentRequest$branchName": "The name of the branch to use for the job.
", + "StartJobRequest$branchName": "The name of the branch to use for the job.
", + "StopJobRequest$branchName": "The name of the branch to use for the stop job request.
", "SubDomainSetting$branchName": "The branch name setting for the subdomain.
", - "UpdateBranchRequest$branchName": "The name for the branch.
", - "UpdateWebhookRequest$branchName": "The name for a branch that is part of an Amplify app.
", - "Webhook$branchName": "The name for a branch that is part of an Amplify app.
" + "UpdateBranchRequest$branchName": "The name of the branch.
", + "UpdateWebhookRequest$branchName": "The name for a branch that is part of an Amplify app.
", + "Webhook$branchName": "The name for a branch that is part of an Amplify app.
" } }, "Branches": { @@ -293,14 +301,14 @@ } }, "BuildSpec": { - "base": "The build specification (build spec) file for an Amplify app build.
", + "base": "The build specification (build spec) file for an Amplify app build.
", "refs": { - "App$buildSpec": "Describes the content of the build specification (build spec) for the Amplify app.
", - "AutoBranchCreationConfig$buildSpec": "The build specification (build spec) for the autocreated branch.
", + "App$buildSpec": "Describes the content of the build specification (build spec) for the Amplify app.
", + "AutoBranchCreationConfig$buildSpec": "The build specification (build spec) for the autocreated branch.
", "Branch$buildSpec": "The build specification (build spec) content for the branch of an Amplify app.
", - "CreateAppRequest$buildSpec": "The build specification (build spec) for an Amplify app.
", + "CreateAppRequest$buildSpec": "The build specification (build spec) for an Amplify app.
", "CreateBranchRequest$buildSpec": "The build specification (build spec) for the branch.
", - "UpdateAppRequest$buildSpec": "The build specification (build spec) for an Amplify app.
", + "UpdateAppRequest$buildSpec": "The build specification (build spec) for an Amplify app.
", "UpdateBranchRequest$buildSpec": "The build specification (build spec) for the branch.
" } }, @@ -340,7 +348,7 @@ "Condition": { "base": null, "refs": { - "CustomRule$condition": "The condition for a URL rewrite or redirect rule, such as a country code.
" + "CustomRule$condition": "The condition for a URL rewrite or redirect rule, such as a country code.
" } }, "Context": { @@ -350,7 +358,7 @@ } }, "CreateAppRequest": { - "base": "The request structure used to create apps in Amplify.
", + "base": "The request structure used to create apps in Amplify.
", "refs": { } }, @@ -360,12 +368,12 @@ } }, "CreateBackendEnvironmentRequest": { - "base": "The request structure for the backend environment create request.
", + "base": "The request structure for the backend environment create request.
", "refs": { } }, "CreateBackendEnvironmentResult": { - "base": "The result structure for the create backend environment request.
", + "base": "The result structure for the create backend environment request.
", "refs": { } }, @@ -402,19 +410,19 @@ "CreateTime": { "base": null, "refs": { - "App$createTime": "Creates a date and time for the Amplify app.
", - "BackendEnvironment$createTime": "The creation date and time for a backend environment that is part of an Amplify app.
", + "App$createTime": "Creates a date and time for the Amplify app.
", + "BackendEnvironment$createTime": "The creation date and time for a backend environment that is part of an Amplify app.
", "Branch$createTime": "The creation date and time for a branch that is part of an Amplify app.
", - "Webhook$createTime": "The create date and time for a webhook.
" + "Webhook$createTime": "The create date and time for a webhook.
" } }, "CreateWebhookRequest": { - "base": "The request structure for the create webhook request.
", + "base": "The request structure for the create webhook request.
", "refs": { } }, "CreateWebhookResult": { - "base": "The result structure for the create webhook request.
", + "base": "The result structure for the create webhook request.
", "refs": { } }, @@ -439,7 +447,7 @@ } }, "CustomRule": { - "base": "Describes a custom rewrite or redirect rule.
", + "base": "Describes a custom rewrite or redirect rule.
", "refs": { "CustomRules$member": null } @@ -447,9 +455,9 @@ "CustomRules": { "base": null, "refs": { - "App$customRules": "Describes the custom redirect and rewrite rules for the Amplify app.
", - "CreateAppRequest$customRules": "The custom rewrite and redirect rules for an Amplify app.
", - "UpdateAppRequest$customRules": "The custom redirect and rewrite rules for an Amplify app.
" + "App$customRules": "Describes the custom redirect and rewrite rules for the Amplify app.
", + "CreateAppRequest$customRules": "The custom rewrite and redirect rules for an Amplify app.
", + "UpdateAppRequest$customRules": "The custom redirect and rewrite rules for an Amplify app.
" } }, "DNSRecord": { @@ -461,26 +469,26 @@ "DefaultDomain": { "base": null, "refs": { - "App$defaultDomain": "The default domain for the Amplify app.
" + "App$defaultDomain": "The default domain for the Amplify app.
" } }, "DeleteAppRequest": { - "base": "Describes the request structure for the delete app request.
", + "base": "Describes the request structure for the delete app request.
", "refs": { } }, "DeleteAppResult": { - "base": "The result structure for the delete app request.
", + "base": "The result structure for the delete app request.
", "refs": { } }, "DeleteBackendEnvironmentRequest": { - "base": "The request structure for the delete backend environment request.
", + "base": "The request structure for the delete backend environment request.
", "refs": { } }, "DeleteBackendEnvironmentResult": { - "base": "The result structure of the delete backend environment result.
", + "base": "The result structure of the delete backend environment result.
", "refs": { } }, @@ -490,7 +498,7 @@ } }, "DeleteBranchResult": { - "base": "The result structure for the delete branch request.
", + "base": "The result structure for the delete branch request.
", "refs": { } }, @@ -515,39 +523,39 @@ } }, "DeleteWebhookRequest": { - "base": "The request structure for the delete webhook request.
", + "base": "The request structure for the delete webhook request.
", "refs": { } }, "DeleteWebhookResult": { - "base": "The result structure for the delete webhook request.
", + "base": "The result structure for the delete webhook request.
", "refs": { } }, "DependentServiceFailureException": { - "base": "An operation failed because a dependent service threw an exception.
", + "base": "An operation failed because a dependent service threw an exception.
", "refs": { } }, "DeploymentArtifacts": { "base": null, "refs": { - "BackendEnvironment$deploymentArtifacts": "The name of deployment artifacts.
", - "CreateBackendEnvironmentRequest$deploymentArtifacts": "The name of deployment artifacts.
" + "BackendEnvironment$deploymentArtifacts": "The name of deployment artifacts.
", + "CreateBackendEnvironmentRequest$deploymentArtifacts": "The name of deployment artifacts.
" } }, "Description": { "base": null, "refs": { - "App$description": "The description for the Amplify app.
", + "App$description": "The description for the Amplify app.
", "Branch$description": "The description for the branch that is part of an Amplify app.
", - "CreateAppRequest$description": "The description for an Amplify app.
", - "CreateBranchRequest$description": "The description for the branch.
", - "CreateWebhookRequest$description": "The description for a webhook.
", - "UpdateAppRequest$description": "The description for an Amplify app.
", + "CreateAppRequest$description": "The description of the Amplify app.
", + "CreateBranchRequest$description": "The description for the branch.
", + "CreateWebhookRequest$description": "The description for a webhook.
", + "UpdateAppRequest$description": "The description for an Amplify app.
", "UpdateBranchRequest$description": "The description for the branch.
", - "UpdateWebhookRequest$description": "The description for a webhook.
", - "Webhook$description": "The description for a webhook.
" + "UpdateWebhookRequest$description": "The description for a webhook.
", + "Webhook$description": "The description for a webhook.
" } }, "DisplayName": { @@ -586,7 +594,7 @@ "CreateDomainAssociationRequest$domainName": "The domain name for the domain association.
", "DeleteDomainAssociationRequest$domainName": "The name of the domain.
", "DomainAssociation$domainName": "The name of the domain.
", - "GenerateAccessLogsRequest$domainName": "The name of the domain.
", + "GenerateAccessLogsRequest$domainName": "The name of the domain.
", "GetDomainAssociationRequest$domainName": "The name of the domain.
", "UpdateDomainAssociationRequest$domainName": "The name of the domain.
" } @@ -606,18 +614,18 @@ "EnableAutoBranchCreation": { "base": null, "refs": { - "App$enableAutoBranchCreation": "Enables automated branch creation for the Amplify app.
", - "CreateAppRequest$enableAutoBranchCreation": "Enables automated branch creation for an Amplify app.
", - "UpdateAppRequest$enableAutoBranchCreation": "Enables automated branch creation for an Amplify app.
" + "App$enableAutoBranchCreation": "Enables automated branch creation for the Amplify app.
", + "CreateAppRequest$enableAutoBranchCreation": "Enables automated branch creation for an Amplify app.
", + "UpdateAppRequest$enableAutoBranchCreation": "Enables automated branch creation for an Amplify app.
" } }, "EnableAutoBuild": { "base": null, "refs": { - "AutoBranchCreationConfig$enableAutoBuild": "Enables auto building for the autocreated branch.
", + "AutoBranchCreationConfig$enableAutoBuild": "Enables auto building for the autocreated branch.
", "Branch$enableAutoBuild": "Enables auto-building on push for a branch of an Amplify app.
", "CreateBranchRequest$enableAutoBuild": "Enables auto building for the branch.
", - "UpdateAppRequest$enableBranchAutoBuild": "Enables branch auto-building for an Amplify app.
", + "UpdateAppRequest$enableBranchAutoBuild": "Enables branch auto-building for an Amplify app.
", "UpdateBranchRequest$enableAutoBuild": "Enables auto building for the branch.
" } }, @@ -632,28 +640,28 @@ "EnableBasicAuth": { "base": null, "refs": { - "App$enableBasicAuth": "Enables basic authorization for the Amplify app's branches.
", - "AutoBranchCreationConfig$enableBasicAuth": "Enables basic authorization for the autocreated branch.
", + "App$enableBasicAuth": "Enables basic authorization for the Amplify app's branches.
", + "AutoBranchCreationConfig$enableBasicAuth": "Enables basic authorization for the autocreated branch.
", "Branch$enableBasicAuth": "Enables basic authorization for a branch of an Amplify app.
", - "CreateAppRequest$enableBasicAuth": "Enables basic authorization for an Amplify app. This will apply to all branches that are part of this app.
", + "CreateAppRequest$enableBasicAuth": "Enables basic authorization for an Amplify app. This will apply to all branches that are part of this app.
", "CreateBranchRequest$enableBasicAuth": "Enables basic authorization for the branch.
", - "UpdateAppRequest$enableBasicAuth": "Enables basic authorization for an Amplify app.
", + "UpdateAppRequest$enableBasicAuth": "Enables basic authorization for an Amplify app.
", "UpdateBranchRequest$enableBasicAuth": "Enables basic authorization for the branch.
" } }, "EnableBranchAutoBuild": { "base": null, "refs": { - "App$enableBranchAutoBuild": "Enables the auto-building of branches for the Amplify app.
", - "CreateAppRequest$enableBranchAutoBuild": "Enables the auto building of branches for an Amplify app.
" + "App$enableBranchAutoBuild": "Enables the auto-building of branches for the Amplify app.
", + "CreateAppRequest$enableBranchAutoBuild": "Enables the auto building of branches for an Amplify app.
" } }, "EnableBranchAutoDeletion": { "base": null, "refs": { - "App$enableBranchAutoDeletion": "Automatically disconnect a branch in the Amplify Console when you delete a branch from your Git repository.
", - "CreateAppRequest$enableBranchAutoDeletion": "Automatically disconnects a branch in the Amplify Console when you delete a branch from your Git repository.
", - "UpdateAppRequest$enableBranchAutoDeletion": "Automatically disconnects a branch in the Amplify Console when you delete a branch from your Git repository.
" + "App$enableBranchAutoDeletion": "Automatically disconnect a branch in the Amplify console when you delete a branch from your Git repository.
", + "CreateAppRequest$enableBranchAutoDeletion": "Automatically disconnects a branch in the Amplify console when you delete a branch from your Git repository.
", + "UpdateAppRequest$enableBranchAutoDeletion": "Automatically disconnects a branch in the Amplify console when you delete a branch from your Git repository.
" } }, "EnableNotification": { @@ -676,7 +684,7 @@ "EnablePullRequestPreview": { "base": null, "refs": { - "AutoBranchCreationConfig$enablePullRequestPreview": "Enables pull request previews for the autocreated branch.
", + "AutoBranchCreationConfig$enablePullRequestPreview": "Enables pull request previews for the autocreated branch.
", "Branch$enablePullRequestPreview": "Enables pull request previews for the branch.
", "CreateBranchRequest$enablePullRequestPreview": "Enables pull request previews for this branch.
", "UpdateBranchRequest$enablePullRequestPreview": "Enables pull request previews for this branch.
" @@ -685,7 +693,7 @@ "EndTime": { "base": null, "refs": { - "GenerateAccessLogsRequest$endTime": "The time at which the logs should end. The time range specified is inclusive of the end time.
", + "GenerateAccessLogsRequest$endTime": "The time at which the logs should end. The time range specified is inclusive of the end time.
", "JobSummary$endTime": "The end date and time for the job.
", "Step$endTime": "The end date and time of the execution step.
" } @@ -705,22 +713,22 @@ "EnvironmentName": { "base": null, "refs": { - "BackendEnvironment$environmentName": "The name for a backend environment that is part of an Amplify app.
", - "CreateBackendEnvironmentRequest$environmentName": "The name for the backend environment.
", - "DeleteBackendEnvironmentRequest$environmentName": "The name of a backend environment of an Amplify app.
", - "GetBackendEnvironmentRequest$environmentName": "The name for the backend environment.
", - "ListBackendEnvironmentsRequest$environmentName": "The name of the backend environment
" + "BackendEnvironment$environmentName": "The name for a backend environment that is part of an Amplify app.
", + "CreateBackendEnvironmentRequest$environmentName": "The name for the backend environment.
", + "DeleteBackendEnvironmentRequest$environmentName": "The name of a backend environment of an Amplify app.
", + "GetBackendEnvironmentRequest$environmentName": "The name for the backend environment.
", + "ListBackendEnvironmentsRequest$environmentName": "The name of the backend environment
" } }, "EnvironmentVariables": { "base": null, "refs": { - "App$environmentVariables": "The environment variables for the Amplify app.
", - "AutoBranchCreationConfig$environmentVariables": "The environment variables for the autocreated branch.
", + "App$environmentVariables": "The environment variables for the Amplify app.
For a list of the environment variables that are accessible to Amplify by default, see Amplify Environment variables in the Amplify Hosting User Guide.
", + "AutoBranchCreationConfig$environmentVariables": "The environment variables for the autocreated branch.
", "Branch$environmentVariables": "The environment variables specific to a branch of an Amplify app.
", - "CreateAppRequest$environmentVariables": "The environment variables map for an Amplify app.
", + "CreateAppRequest$environmentVariables": "The environment variables map for an Amplify app.
For a list of the environment variables that are accessible to Amplify by default, see Amplify Environment variables in the Amplify Hosting User Guide.
", "CreateBranchRequest$environmentVariables": "The environment variables for the branch.
", - "UpdateAppRequest$environmentVariables": "The environment variables for an Amplify app.
", + "UpdateAppRequest$environmentVariables": "The environment variables for an Amplify app.
", "UpdateBranchRequest$environmentVariables": "The environment variables for the branch.
" } }, @@ -758,24 +766,24 @@ "Framework": { "base": null, "refs": { - "AutoBranchCreationConfig$framework": "The framework for the autocreated branch.
", + "AutoBranchCreationConfig$framework": "The framework for the autocreated branch.
", "Branch$framework": "The framework for a branch of an Amplify app.
", "CreateBranchRequest$framework": "The framework for the branch.
", "UpdateBranchRequest$framework": "The framework for the branch.
" } }, "GenerateAccessLogsRequest": { - "base": "The request structure for the generate access logs request.
", + "base": "The request structure for the generate access logs request.
", "refs": { } }, "GenerateAccessLogsResult": { - "base": "The result structure for the generate access logs request.
", + "base": "The result structure for the generate access logs request.
", "refs": { } }, "GetAppRequest": { - "base": "The request structure for the get app request.
", + "base": "The request structure for the get app request.
", "refs": { } }, @@ -785,22 +793,22 @@ } }, "GetArtifactUrlRequest": { - "base": "Returns the request structure for the get artifact request.
", + "base": "Returns the request structure for the get artifact request.
", "refs": { } }, "GetArtifactUrlResult": { - "base": "Returns the result structure for the get artifact request.
", + "base": "Returns the result structure for the get artifact request.
", "refs": { } }, "GetBackendEnvironmentRequest": { - "base": "The request structure for the get backend environment request.
", + "base": "The request structure for the get backend environment request.
", "refs": { } }, "GetBackendEnvironmentResult": { - "base": "The result structure for the get backend environment result.
", + "base": "The result structure for the get backend environment result.
", "refs": { } }, @@ -825,7 +833,7 @@ } }, "GetJobRequest": { - "base": "The request structure for the get job request.
", + "base": "The request structure for the get job request.
", "refs": { } }, @@ -835,17 +843,17 @@ } }, "GetWebhookRequest": { - "base": "The request structure for the get webhook request.
", + "base": "The request structure for the get webhook request.
", "refs": { } }, "GetWebhookResult": { - "base": "The result structure for the get webhook request.
", + "base": "The result structure for the get webhook request.
", "refs": { } }, "InternalFailureException": { - "base": "The service failed to perform an operation due to an internal issue.
", + "base": "The service failed to perform an operation due to an internal issue.
", "refs": { } }, @@ -866,18 +874,18 @@ "refs": { "CreateDeploymentResult$jobId": "The job ID for this deployment. will supply to start deployment api.
", "DeleteJobRequest$jobId": "The unique ID for the job.
", - "GetJobRequest$jobId": "The unique ID for the job.
", + "GetJobRequest$jobId": "The unique ID for the job.
", "JobSummary$jobId": "The unique ID for the job.
", - "ListArtifactsRequest$jobId": "The unique ID for a job.
", - "StartDeploymentRequest$jobId": "The job ID for this deployment, generated by the create deployment request.
", - "StartJobRequest$jobId": " The unique ID for an existing job. This is required if the value of jobType
is RETRY
.
The unique ID for a job.
", + "StartDeploymentRequest$jobId": "The job ID for this deployment, generated by the create deployment request.
", + "StartJobRequest$jobId": "The unique ID for an existing job. This is required if the value of jobType
is RETRY
.
The unique id for the job.
" } }, "JobReason": { "base": null, "refs": { - "StartJobRequest$jobReason": "A descriptive reason for starting this job.
" + "StartJobRequest$jobReason": "A descriptive reason for starting the job.
" } }, "JobStatus": { @@ -890,7 +898,7 @@ "JobSummaries": { "base": null, "refs": { - "ListJobsResult$jobSummaries": "The result structure for the list job result request.
" + "ListJobsResult$jobSummaries": "The result structure for the list job result request.
" } }, "JobSummary": { @@ -899,7 +907,7 @@ "DeleteJobResult$jobSummary": null, "Job$summary": "Describes the summary for an execution job for an Amplify app.
", "JobSummaries$member": null, - "StartDeploymentResult$jobSummary": "The summary for the job.
", + "StartDeploymentResult$jobSummary": "The summary for the job.
", "StartJobResult$jobSummary": "The summary for the job.
", "StopJobResult$jobSummary": "The summary for the job.
" } @@ -908,52 +916,52 @@ "base": null, "refs": { "JobSummary$jobType": " The type for the job. If the value is RELEASE
, the job was manually released from its source by using the StartJob
API. If the value is RETRY
, the job was manually retried using the StartJob
API. If the value is WEB_HOOK
, the job was automatically triggered by webhooks.
Describes the type for the job. The job type RELEASE
starts a new job with the latest change from the specified branch. This value is available only for apps that are connected to a repository. The job type RETRY
retries an existing job. If the job type value is RETRY
, the jobId
is also required.
Describes the type for the job. The job type RELEASE
starts a new job with the latest change from the specified branch. This value is available only for apps that are connected to a repository.
The job type RETRY
retries an existing job. If the job type value is RETRY
, the jobId
is also required.
The last deploy time of the production branch.
" + "ProductionBranch$lastDeployTime": "The last deploy time of the production branch.
" } }, "LimitExceededException": { - "base": "A resource could not be created because service quotas were exceeded.
", + "base": "A resource could not be created because service quotas were exceeded.
", "refs": { } }, "ListAppsRequest": { - "base": "The request structure for the list apps request.
", + "base": "The request structure for the list apps request.
", "refs": { } }, "ListAppsResult": { - "base": "The result structure for an Amplify app list request.
", + "base": "The result structure for an Amplify app list request.
", "refs": { } }, "ListArtifactsRequest": { - "base": "Describes the request structure for the list artifacts request.
", + "base": "Describes the request structure for the list artifacts request.
", "refs": { } }, "ListArtifactsResult": { - "base": "The result structure for the list artifacts request.
", + "base": "The result structure for the list artifacts request.
", "refs": { } }, "ListBackendEnvironmentsRequest": { - "base": "The request structure for the list backend environments request.
", + "base": "The request structure for the list backend environments request.
", "refs": { } }, "ListBackendEnvironmentsResult": { - "base": "The result structure for the list backend environments result.
", + "base": "The result structure for the list backend environments result.
", "refs": { } }, "ListBranchesRequest": { - "base": "The request structure for the list branches request.
", + "base": "The request structure for the list branches request.
", "refs": { } }, @@ -978,34 +986,34 @@ } }, "ListJobsResult": { - "base": "The maximum number of records to list in a single response.
", + "base": "The maximum number of records to list in a single response.
", "refs": { } }, "ListTagsForResourceRequest": { - "base": "The request structure to use to list tags for a resource.
", + "base": "The request structure to use to list tags for a resource.
", "refs": { } }, "ListTagsForResourceResponse": { - "base": "The response for the list tags for resource request.
", + "base": "The response for the list tags for resource request.
", "refs": { } }, "ListWebhooksRequest": { - "base": "The request structure for the list webhooks request.
", + "base": "The request structure for the list webhooks request.
", "refs": { } }, "ListWebhooksResult": { - "base": "The result structure for the list webhooks request.
", + "base": "The result structure for the list webhooks request.
", "refs": { } }, "LogUrl": { "base": null, "refs": { - "GenerateAccessLogsResult$logUrl": "The pre-signed URL for the requested access logs.
", + "GenerateAccessLogsResult$logUrl": "The pre-signed URL for the requested access logs.
", "Step$logUrl": "The URL to the logs for the execution step.
" } }, @@ -1018,72 +1026,72 @@ "MaxResults": { "base": null, "refs": { - "ListAppsRequest$maxResults": "The maximum number of records to list in a single response.
", - "ListArtifactsRequest$maxResults": "The maximum number of records to list in a single response.
", - "ListBackendEnvironmentsRequest$maxResults": "The maximum number of records to list in a single response.
", + "ListAppsRequest$maxResults": "The maximum number of records to list in a single response.
", + "ListArtifactsRequest$maxResults": "The maximum number of records to list in a single response.
", + "ListBackendEnvironmentsRequest$maxResults": "The maximum number of records to list in a single response.
", "ListBranchesRequest$maxResults": "The maximum number of records to list in a single response.
", "ListDomainAssociationsRequest$maxResults": "The maximum number of records to list in a single response.
", - "ListJobsRequest$maxResults": "The maximum number of records to list in a single response.
", - "ListWebhooksRequest$maxResults": "The maximum number of records to list in a single response.
" + "ListJobsRequest$maxResults": "The maximum number of records to list in a single response.
", + "ListWebhooksRequest$maxResults": "The maximum number of records to list in a single response.
" } }, "Name": { "base": null, "refs": { - "App$name": "The name for the Amplify app.
", - "CreateAppRequest$name": "The name for an Amplify app.
", - "UpdateAppRequest$name": "The name for an Amplify app.
" + "App$name": "The name for the Amplify app.
", + "CreateAppRequest$name": "The name of the Amplify app.
", + "UpdateAppRequest$name": "The name for an Amplify app.
" } }, "NextToken": { "base": null, "refs": { - "ListAppsRequest$nextToken": "A pagination token. If non-null, the pagination token is returned in a result. Pass its value in another request to retrieve more entries.
", - "ListAppsResult$nextToken": "A pagination token. Set to null to start listing apps from start. If non-null, the pagination token is returned in a result. Pass its value in here to list more projects.
", - "ListArtifactsRequest$nextToken": "A pagination token. Set to null to start listing artifacts from start. If a non-null pagination token is returned in a result, pass its value in here to list more artifacts.
", - "ListArtifactsResult$nextToken": "A pagination token. If a non-null pagination token is returned in a result, pass its value in another request to retrieve more entries.
", - "ListBackendEnvironmentsRequest$nextToken": "A pagination token. Set to null to start listing backend environments from the start. If a non-null pagination token is returned in a result, pass its value in here to list more backend environments.
", - "ListBackendEnvironmentsResult$nextToken": "A pagination token. If a non-null pagination token is returned in a result, pass its value in another request to retrieve more entries.
", - "ListBranchesRequest$nextToken": "A pagination token. Set to null to start listing branches from the start. If a non-null pagination token is returned in a result, pass its value in here to list more branches.
", + "ListAppsRequest$nextToken": "A pagination token. If non-null, the pagination token is returned in a result. Pass its value in another request to retrieve more entries.
", + "ListAppsResult$nextToken": "A pagination token. Set to null to start listing apps from start. If non-null, the pagination token is returned in a result. Pass its value in here to list more projects.
", + "ListArtifactsRequest$nextToken": "A pagination token. Set to null to start listing artifacts from start. If a non-null pagination token is returned in a result, pass its value in here to list more artifacts.
", + "ListArtifactsResult$nextToken": "A pagination token. If a non-null pagination token is returned in a result, pass its value in another request to retrieve more entries.
", + "ListBackendEnvironmentsRequest$nextToken": "A pagination token. Set to null to start listing backend environments from the start. If a non-null pagination token is returned in a result, pass its value in here to list more backend environments.
", + "ListBackendEnvironmentsResult$nextToken": "A pagination token. If a non-null pagination token is returned in a result, pass its value in another request to retrieve more entries.
", + "ListBranchesRequest$nextToken": "A pagination token. Set to null to start listing branches from the start. If a non-null pagination token is returned in a result, pass its value in here to list more branches.
", "ListBranchesResult$nextToken": "A pagination token. If a non-null pagination token is returned in a result, pass its value in another request to retrieve more entries.
", "ListDomainAssociationsRequest$nextToken": "A pagination token. Set to null to start listing apps from the start. If non-null, a pagination token is returned in a result. Pass its value in here to list more projects.
", "ListDomainAssociationsResult$nextToken": "A pagination token. If non-null, a pagination token is returned in a result. Pass its value in another request to retrieve more entries.
", - "ListJobsRequest$nextToken": "A pagination token. Set to null to start listing steps from the start. If a non-null pagination token is returned in a result, pass its value in here to list more steps.
", - "ListJobsResult$nextToken": "A pagination token. If non-null the pagination token is returned in a result. Pass its value in another request to retrieve more entries.
", - "ListWebhooksRequest$nextToken": "A pagination token. Set to null to start listing webhooks from the start. If non-null,the pagination token is returned in a result. Pass its value in here to list more webhooks.
", - "ListWebhooksResult$nextToken": "A pagination token. If non-null, the pagination token is returned in a result. Pass its value in another request to retrieve more entries.
" + "ListJobsRequest$nextToken": "A pagination token. Set to null to start listing steps from the start. If a non-null pagination token is returned in a result, pass its value in here to list more steps.
", + "ListJobsResult$nextToken": "A pagination token. If non-null the pagination token is returned in a result. Pass its value in another request to retrieve more entries.
", + "ListWebhooksRequest$nextToken": "A pagination token. Set to null to start listing webhooks from the start. If non-null,the pagination token is returned in a result. Pass its value in here to list more webhooks.
", + "ListWebhooksResult$nextToken": "A pagination token. If non-null, the pagination token is returned in a result. Pass its value in another request to retrieve more entries.
" } }, "NotFoundException": { - "base": "An entity was not found during an operation.
", + "base": "An entity was not found during an operation.
", "refs": { } }, "OauthToken": { "base": null, "refs": { - "CreateAppRequest$oauthToken": "The OAuth token for a third-party source control system for an Amplify app. The OAuth token is used to create a webhook and a read-only deploy key using SSH cloning. The OAuth token is not stored.
Use oauthToken
for repository providers other than GitHub, such as Bitbucket or CodeCommit. To authorize access to GitHub as your repository provider, use accessToken
.
You must specify either oauthToken
or accessToken
when you create a new app.
Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see Migrating an existing OAuth app to the Amplify GitHub App in the Amplify User Guide .
", - "UpdateAppRequest$oauthToken": "The OAuth token for a third-party source control system for an Amplify app. The OAuth token is used to create a webhook and a read-only deploy key using SSH cloning. The OAuth token is not stored.
Use oauthToken
for repository providers other than GitHub, such as Bitbucket or CodeCommit.
To authorize access to GitHub as your repository provider, use accessToken
.
You must specify either oauthToken
or accessToken
when you update an app.
Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see Migrating an existing OAuth app to the Amplify GitHub App in the Amplify User Guide .
" + "CreateAppRequest$oauthToken": "The OAuth token for a third-party source control system for an Amplify app. The OAuth token is used to create a webhook and a read-only deploy key using SSH cloning. The OAuth token is not stored.
Use oauthToken
for repository providers other than GitHub, such as Bitbucket or CodeCommit. To authorize access to GitHub as your repository provider, use accessToken
.
You must specify either oauthToken
or accessToken
when you create a new app.
Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see Migrating an existing OAuth app to the Amplify GitHub App in the Amplify User Guide .
", + "UpdateAppRequest$oauthToken": "The OAuth token for a third-party source control system for an Amplify app. The OAuth token is used to create a webhook and a read-only deploy key using SSH cloning. The OAuth token is not stored.
Use oauthToken
for repository providers other than GitHub, such as Bitbucket or CodeCommit.
To authorize access to GitHub as your repository provider, use accessToken
.
You must specify either oauthToken
or accessToken
when you update an app.
Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see Migrating an existing OAuth app to the Amplify GitHub App in the Amplify User Guide .
" } }, "Platform": { "base": null, "refs": { - "App$platform": " The platform for the Amplify app. For a static app, set the platform type to WEB
. For a dynamic server-side rendered (SSR) app, set the platform type to WEB_COMPUTE
. For an app requiring Amplify Hosting's original SSR support only, set the platform type to WEB_DYNAMIC
.
The platform for the Amplify app. For a static app, set the platform type to WEB
. For a dynamic server-side rendered (SSR) app, set the platform type to WEB_COMPUTE
. For an app requiring Amplify Hosting's original SSR support only, set the platform type to WEB_DYNAMIC
.
The platform for the Amplify app. For a static app, set the platform type to WEB
. For a dynamic server-side rendered (SSR) app, set the platform type to WEB_COMPUTE
. For an app requiring Amplify Hosting's original SSR support only, set the platform type to WEB_DYNAMIC
.
The platform for the Amplify app. For a static app, set the platform type to WEB
. For a dynamic server-side rendered (SSR) app, set the platform type to WEB_COMPUTE
. For an app requiring Amplify Hosting's original SSR support only, set the platform type to WEB_DYNAMIC
.
The platform for the Amplify app. For a static app, set the platform type to WEB
. For a dynamic server-side rendered (SSR) app, set the platform type to WEB_COMPUTE
. For an app requiring Amplify Hosting's original SSR support only, set the platform type to WEB_DYNAMIC
.
The platform for the Amplify app. For a static app, set the platform type to WEB
. For a dynamic server-side rendered (SSR) app, set the platform type to WEB_COMPUTE
. For an app requiring Amplify Hosting's original SSR support only, set the platform type to WEB_DYNAMIC
.
Describes the information about a production branch for an Amplify app.
", + "base": "Describes the information about a production branch for an Amplify app.
", "refs": { - "App$productionBranch": "Describes the information about a production branch of the Amplify app.
" + "App$productionBranch": "Describes the information about a production branch of the Amplify app.
" } }, "PullRequestEnvironmentName": { "base": null, "refs": { - "AutoBranchCreationConfig$pullRequestEnvironmentName": "The Amplify environment name for the pull request.
", + "AutoBranchCreationConfig$pullRequestEnvironmentName": "The Amplify environment name for the pull request.
", "Branch$pullRequestEnvironmentName": "The Amplify environment name for the pull request.
", "CreateBranchRequest$pullRequestEnvironmentName": "The Amplify environment name for the pull request.
", "UpdateBranchRequest$pullRequestEnvironmentName": "The Amplify environment name for the pull request.
" @@ -1092,9 +1100,9 @@ "Repository": { "base": null, "refs": { - "App$repository": "The Git repository for the Amplify app.
", - "CreateAppRequest$repository": "The repository for an Amplify app.
", - "UpdateAppRequest$repository": "The name of the repository for an Amplify app
" + "App$repository": "The Git repository for the Amplify app.
", + "CreateAppRequest$repository": "The Git repository for the Amplify app.
", + "UpdateAppRequest$repository": "The name of the Git repository for an Amplify app.
" } }, "RepositoryCloneMethod": { @@ -1106,13 +1114,13 @@ "ResourceArn": { "base": null, "refs": { - "ListTagsForResourceRequest$resourceArn": "The Amazon Resource Name (ARN) to use to list tags.
", + "ListTagsForResourceRequest$resourceArn": "The Amazon Resource Name (ARN) to use to list tags.
", "TagResourceRequest$resourceArn": "The Amazon Resource Name (ARN) to use to tag a resource.
", - "UntagResourceRequest$resourceArn": "The Amazon Resource Name (ARN) to use to untag a resource.
" + "UntagResourceRequest$resourceArn": "The Amazon Resource Name (ARN) to use to untag a resource.
" } }, "ResourceNotFoundException": { - "base": "An operation failed due to a non-existent resource.
", + "base": "An operation failed due to a non-existent resource.
", "refs": { } }, @@ -1125,51 +1133,57 @@ "ServiceRoleArn": { "base": null, "refs": { - "App$iamServiceRoleArn": "The AWS Identity and Access Management (IAM) service role for the Amazon Resource Name (ARN) of the Amplify app.
", - "CreateAppRequest$iamServiceRoleArn": "The AWS Identity and Access Management (IAM) service role for an Amplify app.
", - "UpdateAppRequest$iamServiceRoleArn": "The AWS Identity and Access Management (IAM) service role for an Amplify app.
" + "App$iamServiceRoleArn": "The AWS Identity and Access Management (IAM) service role for the Amazon Resource Name (ARN) of the Amplify app.
", + "CreateAppRequest$iamServiceRoleArn": "The AWS Identity and Access Management (IAM) service role for an Amplify app.
", + "UpdateAppRequest$iamServiceRoleArn": "The AWS Identity and Access Management (IAM) service role for an Amplify app.
" } }, "Source": { "base": null, "refs": { - "CustomRule$source": "The source pattern for a URL rewrite or redirect rule.
" + "CustomRule$source": "The source pattern for a URL rewrite or redirect rule.
" } }, "SourceUrl": { "base": null, "refs": { - "StartDeploymentRequest$sourceUrl": "The source URL for this deployment, used when calling start deployment without create deployment. The source URL can be any HTTP GET URL that is publicly accessible and downloads a single .zip file.
" + "StartDeploymentRequest$sourceUrl": "The source URL for this deployment, used when calling start deployment without create deployment. The source URL can be any HTTP GET URL that is publicly accessible and downloads a single .zip file.
" + } + }, + "StackArn": { + "base": null, + "refs": { + "Backend$stackArn": "The Amazon Resource Name (ARN) for the CloudFormation stack.
" } }, "StackName": { "base": null, "refs": { - "BackendEnvironment$stackName": "The AWS CloudFormation stack name of a backend environment.
", - "CreateBackendEnvironmentRequest$stackName": "The AWS CloudFormation stack name of a backend environment.
" + "BackendEnvironment$stackName": "The AWS CloudFormation stack name of a backend environment.
", + "CreateBackendEnvironmentRequest$stackName": "The AWS CloudFormation stack name of a backend environment.
" } }, "Stage": { "base": null, "refs": { - "AutoBranchCreationConfig$stage": "Describes the current stage for the autocreated branch.
", + "AutoBranchCreationConfig$stage": "Describes the current stage for the autocreated branch.
", "Branch$stage": "The current stage for the branch that is part of an Amplify app.
", - "CreateBranchRequest$stage": "Describes the current stage for the branch.
", + "CreateBranchRequest$stage": "Describes the current stage for the branch.
", "UpdateBranchRequest$stage": "Describes the current stage for the branch.
" } }, "StartDeploymentRequest": { - "base": "The request structure for the start a deployment request.
", + "base": "The request structure for the start a deployment request.
", "refs": { } }, "StartDeploymentResult": { - "base": "The result structure for the start a deployment request.
", + "base": "The result structure for the start a deployment request.
", "refs": { } }, "StartJobRequest": { - "base": "The request structure for the start job request.
", + "base": "The request structure for the start job request.
", "refs": { } }, @@ -1181,7 +1195,7 @@ "StartTime": { "base": null, "refs": { - "GenerateAccessLogsRequest$startTime": "The time at which the logs should start. The time range specified is inclusive of the start time.
", + "GenerateAccessLogsRequest$startTime": "The time at which the logs should start. The time range specified is inclusive of the start time.
", "JobSummary$startTime": "The start date and time for the job.
", "Step$startTime": "The start date and time of the execution step.
" } @@ -1189,8 +1203,8 @@ "Status": { "base": null, "refs": { - "CustomRule$status": "The status code for a URL rewrite or redirect rule.
Represents a 200 rewrite rule.
Represents a 301 (moved pemanently) redirect rule. This and all future requests should be directed to the target URL.
Represents a 302 temporary redirect rule.
Represents a 404 redirect rule.
Represents a 404 rewrite rule.
The status of the production branch.
" + "CustomRule$status": "The status code for a URL rewrite or redirect rule.
Represents a 200 rewrite rule.
Represents a 301 (moved pemanently) redirect rule. This and all future requests should be directed to the target URL.
Represents a 302 temporary redirect rule.
Represents a 404 redirect rule.
Represents a 404 rewrite rule.
The status of the production branch.
" } }, "StatusReason": { @@ -1255,7 +1269,7 @@ } }, "TTL": { - "base": "The content Time to Live (TTL) for the website in seconds.
", + "base": "The content Time to Live (TTL) for the website in seconds.
", "refs": { "Branch$ttl": "The content Time to Live (TTL) for the website in seconds.
", "CreateBranchRequest$ttl": "The content Time To Live (TTL) for the website in seconds.
", @@ -1272,27 +1286,27 @@ "TagKeyList": { "base": null, "refs": { - "UntagResourceRequest$tagKeys": "The tag keys to use to untag a resource.
" + "UntagResourceRequest$tagKeys": "The tag keys to use to untag a resource.
" } }, "TagMap": { "base": null, "refs": { - "App$tags": "The tag for the Amplify app.
", + "App$tags": "The tag for the Amplify app.
", "Branch$tags": "The tag for the branch of an Amplify app.
", - "CreateAppRequest$tags": "The tag for an Amplify app.
", + "CreateAppRequest$tags": "The tag for an Amplify app.
", "CreateBranchRequest$tags": "The tag for the branch.
", - "ListTagsForResourceResponse$tags": "A list of tags for the specified The Amazon Resource Name (ARN).
", - "TagResourceRequest$tags": "The tags used to tag the resource.
" + "ListTagsForResourceResponse$tags": "A list of tags for the specified The Amazon Resource Name (ARN).
", + "TagResourceRequest$tags": "The tags used to tag the resource.
" } }, "TagResourceRequest": { - "base": "The request structure to tag a resource with a tag key and value.
", + "base": "The request structure to tag a resource with a tag key and value.
", "refs": { } }, "TagResourceResponse": { - "base": "The response for the tag resource request.
", + "base": "The response for the tag resource request.
", "refs": { } }, @@ -1305,7 +1319,7 @@ "Target": { "base": null, "refs": { - "CustomRule$target": "The target pattern for a URL rewrite or redirect rule.
" + "CustomRule$target": "The target pattern for a URL rewrite or redirect rule.
" } }, "TestArtifactsUrl": { @@ -1330,7 +1344,7 @@ "base": null, "refs": { "Branch$thumbnailUrl": "The thumbnail URL for the branch of an Amplify app.
", - "ProductionBranch$thumbnailUrl": "The thumbnail URL for the production branch.
", + "ProductionBranch$thumbnailUrl": "The thumbnail URL for the production branch.
", "Screenshots$value": null } }, @@ -1341,32 +1355,32 @@ } }, "UnauthorizedException": { - "base": "An operation failed due to a lack of access.
", + "base": "An operation failed due to a lack of access.
", "refs": { } }, "UntagResourceRequest": { - "base": "The request structure for the untag resource request.
", + "base": "The request structure for the untag resource request.
", "refs": { } }, "UntagResourceResponse": { - "base": "The response for the untag resource request.
", + "base": "The response for the untag resource request.
", "refs": { } }, "UpdateAppRequest": { - "base": "The request structure for the update app request.
", + "base": "The request structure for the update app request.
", "refs": { } }, "UpdateAppResult": { - "base": "The result structure for an Amplify app update request.
", + "base": "The result structure for an Amplify app update request.
", "refs": { } }, "UpdateBranchRequest": { - "base": "The request structure for the update branch request.
", + "base": "The request structure for the update branch request.
", "refs": { } }, @@ -1388,19 +1402,19 @@ "UpdateTime": { "base": null, "refs": { - "App$updateTime": "Updates the date and time for the Amplify app.
", - "BackendEnvironment$updateTime": "The last updated date and time for a backend environment that is part of an Amplify app.
", + "App$updateTime": "Updates the date and time for the Amplify app.
", + "BackendEnvironment$updateTime": "The last updated date and time for a backend environment that is part of an Amplify app.
", "Branch$updateTime": "The last updated date and time for a branch that is part of an Amplify app.
", - "Webhook$updateTime": "Updates the date and time for a webhook.
" + "Webhook$updateTime": "Updates the date and time for a webhook.
" } }, "UpdateWebhookRequest": { - "base": "The request structure for the update webhook request.
", + "base": "The request structure for the update webhook request.
", "refs": { } }, "UpdateWebhookResult": { - "base": "The result structure for the update webhook request.
", + "base": "The result structure for the update webhook request.
", "refs": { } }, @@ -1418,40 +1432,40 @@ } }, "Webhook": { - "base": "Describes a webhook that connects repository events to an Amplify app.
", + "base": "Describes a webhook that connects repository events to an Amplify app.
", "refs": { - "CreateWebhookResult$webhook": "Describes a webhook that connects repository events to an Amplify app.
", - "DeleteWebhookResult$webhook": "Describes a webhook that connects repository events to an Amplify app.
", - "GetWebhookResult$webhook": "Describes the structure of a webhook.
", - "UpdateWebhookResult$webhook": "Describes a webhook that connects repository events to an Amplify app.
", + "CreateWebhookResult$webhook": "Describes a webhook that connects repository events to an Amplify app.
", + "DeleteWebhookResult$webhook": "Describes a webhook that connects repository events to an Amplify app.
", + "GetWebhookResult$webhook": "Describes the structure of a webhook.
", + "UpdateWebhookResult$webhook": "Describes a webhook that connects repository events to an Amplify app.
", "Webhooks$member": null } }, "WebhookArn": { "base": null, "refs": { - "Webhook$webhookArn": "The Amazon Resource Name (ARN) for the webhook.
" + "Webhook$webhookArn": "The Amazon Resource Name (ARN) for the webhook.
" } }, "WebhookId": { "base": null, "refs": { - "DeleteWebhookRequest$webhookId": "The unique ID for a webhook.
", - "GetWebhookRequest$webhookId": "The unique ID for a webhook.
", - "UpdateWebhookRequest$webhookId": "The unique ID for a webhook.
", - "Webhook$webhookId": "The ID of the webhook.
" + "DeleteWebhookRequest$webhookId": "The unique ID for a webhook.
", + "GetWebhookRequest$webhookId": "The unique ID for a webhook.
", + "UpdateWebhookRequest$webhookId": "The unique ID for a webhook.
", + "Webhook$webhookId": "The ID of the webhook.
" } }, "WebhookUrl": { "base": null, "refs": { - "Webhook$webhookUrl": "The URL of the webhook.
" + "Webhook$webhookUrl": "The URL of the webhook.
" } }, "Webhooks": { "base": null, "refs": { - "ListWebhooksResult$webhooks": "A list of webhooks.
" + "ListWebhooksResult$webhooks": "A list of webhooks.
" } } } diff --git a/models/apis/amplify/2017-07-25/endpoint-rule-set-1.json b/models/apis/amplify/2017-07-25/endpoint-rule-set-1.json index e682b46ce07..463470aebb2 100644 --- a/models/apis/amplify/2017-07-25/endpoint-rule-set-1.json +++ b/models/apis/amplify/2017-07-25/endpoint-rule-set-1.json @@ -32,38 +32,83 @@ { "conditions": [ { - "fn": "aws.partition", + "fn": "isSet", "argv": [ { - "ref": "Region" + "ref": "Endpoint" } - ], - "assign": "PartitionResult" + ] } ], - "type": "tree", "rules": [ { "conditions": [ { - "fn": "isSet", + "fn": "booleanEquals", "argv": [ { - "ref": "Endpoint" - } + "ref": "UseFIPS" + }, + true ] + } + ], + "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + 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": [ + { + "fn": "isSet", + "argv": [ { - "fn": "parseURL", + "ref": "Region" + } + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "aws.partition", "argv": [ { - "ref": "Endpoint" + "ref": "Region" } ], - "assign": "url" + "assign": "PartitionResult" } ], - "type": "tree", "rules": [ { "conditions": [ @@ -75,158 +120,103 @@ }, true ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] } ], - "error": "Invalid Configuration: FIPS and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [], - "type": "tree", "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseDualStack" - }, - true + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + }, + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } ] } ], - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", - "type": "error" + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://amplify-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" }, { "conditions": [], - "endpoint": { - "url": { - "ref": "Endpoint" - }, - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" } - ] - } - ] - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] + ], + "type": "tree" }, - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - }, - { - "fn": "booleanEquals", - "argv": [ - true, { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } + "ref": "UseFIPS" + }, + true ] } ], - "type": "tree", "rules": [ { - "conditions": [], - "endpoint": { - "url": "https://amplify-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - }, - { - "conditions": [], - "error": "FIPS and DualStack are enabled, but this partition does not support one or both", - "type": "error" - } - ] - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, + "conditions": [ { - "fn": "getAttr", + "fn": "booleanEquals", "argv": [ { - "ref": "PartitionResult" + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] }, - "supportsFIPS" + true ] } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", + ], "rules": [ { "conditions": [], @@ -237,79 +227,88 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" + }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" } - ] + ], + "type": "tree" }, - { - "conditions": [], - "error": "FIPS is enabled but this partition does not support FIPS", - "type": "error" - } - ] - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ - true, { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } + "ref": "UseDualStack" + }, + true ] } ], - "type": "tree", "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://amplify.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + }, { "conditions": [], - "endpoint": { - "url": "https://amplify.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [], - "error": "DualStack is enabled but this partition does not support DualStack", - "type": "error" + "endpoint": { + "url": "https://amplify.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } - ] - }, - { - "conditions": [], - "endpoint": { - "url": "https://amplify.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + ], + "type": "tree" } - ] + ], + "type": "tree" + }, + { + "conditions": [], + "error": "Invalid Configuration: Missing Region", + "type": "error" } ] } \ No newline at end of file diff --git a/models/apis/amplify/2017-07-25/endpoint-tests-1.json b/models/apis/amplify/2017-07-25/endpoint-tests-1.json index 5511080471e..4e703f6268d 100644 --- a/models/apis/amplify/2017-07-25/endpoint-tests-1.json +++ b/models/apis/amplify/2017-07-25/endpoint-tests-1.json @@ -1,42 +1,42 @@ { "testCases": [ { - "documentation": "For region ap-south-1 with FIPS enabled and DualStack enabled", + "documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://amplify-fips.ap-south-1.api.aws" + "url": "https://amplify.ap-east-1.amazonaws.com" } }, "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "ap-south-1" + "Region": "ap-east-1", + "UseFIPS": false, + "UseDualStack": false } }, { - "documentation": "For region ap-south-1 with FIPS enabled and DualStack disabled", + "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://amplify-fips.ap-south-1.amazonaws.com" + "url": "https://amplify.ap-northeast-1.amazonaws.com" } }, "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "ap-south-1" + "Region": "ap-northeast-1", + "UseFIPS": false, + "UseDualStack": false } }, { - "documentation": "For region ap-south-1 with FIPS disabled and DualStack enabled", + "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://amplify.ap-south-1.api.aws" + "url": "https://amplify.ap-northeast-2.amazonaws.com" } }, "params": { - "UseDualStack": true, + "Region": "ap-northeast-2", "UseFIPS": false, - "Region": "ap-south-1" + "UseDualStack": false } }, { @@ -47,100 +47,35 @@ } }, "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "ap-south-1" - } - }, - { - "documentation": "For region eu-south-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://amplify-fips.eu-south-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "eu-south-1" - } - }, - { - "documentation": "For region eu-south-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://amplify-fips.eu-south-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "eu-south-1" - } - }, - { - "documentation": "For region eu-south-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://amplify.eu-south-1.api.aws" - } - }, - "params": { - "UseDualStack": true, + "Region": "ap-south-1", "UseFIPS": false, - "Region": "eu-south-1" + "UseDualStack": false } }, { - "documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled", + "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://amplify.eu-south-1.amazonaws.com" + "url": "https://amplify.ap-southeast-1.amazonaws.com" } }, "params": { - "UseDualStack": false, + "Region": "ap-southeast-1", "UseFIPS": false, - "Region": "eu-south-1" - } - }, - { - "documentation": "For region ca-central-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://amplify-fips.ca-central-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "ca-central-1" - } - }, - { - "documentation": "For region ca-central-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://amplify-fips.ca-central-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "ca-central-1" + "UseDualStack": false } }, { - "documentation": "For region ca-central-1 with FIPS disabled and DualStack enabled", + "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://amplify.ca-central-1.api.aws" + "url": "https://amplify.ap-southeast-2.amazonaws.com" } }, "params": { - "UseDualStack": true, + "Region": "ap-southeast-2", "UseFIPS": false, - "Region": "ca-central-1" + "UseDualStack": false } }, { @@ -151,48 +86,9 @@ } }, "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "ca-central-1" - } - }, - { - "documentation": "For region eu-central-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://amplify-fips.eu-central-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "eu-central-1" - } - }, - { - "documentation": "For region eu-central-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://amplify-fips.eu-central-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "eu-central-1" - } - }, - { - "documentation": "For region eu-central-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://amplify.eu-central-1.api.aws" - } - }, - "params": { - "UseDualStack": true, + "Region": "ca-central-1", "UseFIPS": false, - "Region": "eu-central-1" + "UseDualStack": false } }, { @@ -203,152 +99,9 @@ } }, "params": { - "UseDualStack": false, + "Region": "eu-central-1", "UseFIPS": false, - "Region": "eu-central-1" - } - }, - { - "documentation": "For region us-west-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://amplify-fips.us-west-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "us-west-1" - } - }, - { - "documentation": "For region us-west-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://amplify-fips.us-west-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "us-west-1" - } - }, - { - "documentation": "For region us-west-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://amplify.us-west-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "us-west-1" - } - }, - { - "documentation": "For region us-west-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://amplify.us-west-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "us-west-1" - } - }, - { - "documentation": "For region us-west-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://amplify-fips.us-west-2.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "us-west-2" - } - }, - { - "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://amplify-fips.us-west-2.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "us-west-2" - } - }, - { - "documentation": "For region us-west-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://amplify.us-west-2.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "us-west-2" - } - }, - { - "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://amplify.us-west-2.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "us-west-2" - } - }, - { - "documentation": "For region eu-north-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://amplify-fips.eu-north-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "eu-north-1" - } - }, - { - "documentation": "For region eu-north-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://amplify-fips.eu-north-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "eu-north-1" - } - }, - { - "documentation": "For region eu-north-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://amplify.eu-north-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "eu-north-1" + "UseDualStack": false } }, { @@ -359,100 +112,35 @@ } }, "params": { - "UseDualStack": false, + "Region": "eu-north-1", "UseFIPS": false, - "Region": "eu-north-1" + "UseDualStack": false } }, { - "documentation": "For region eu-west-3 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://amplify-fips.eu-west-3.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "eu-west-3" - } - }, - { - "documentation": "For region eu-west-3 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://amplify-fips.eu-west-3.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "eu-west-3" - } - }, - { - "documentation": "For region eu-west-3 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://amplify.eu-west-3.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "eu-west-3" - } - }, - { - "documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled", + "documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://amplify.eu-west-3.amazonaws.com" + "url": "https://amplify.eu-south-1.amazonaws.com" } }, "params": { - "UseDualStack": false, + "Region": "eu-south-1", "UseFIPS": false, - "Region": "eu-west-3" - } - }, - { - "documentation": "For region eu-west-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://amplify-fips.eu-west-2.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "eu-west-2" - } - }, - { - "documentation": "For region eu-west-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://amplify-fips.eu-west-2.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "eu-west-2" + "UseDualStack": false } }, { - "documentation": "For region eu-west-2 with FIPS disabled and DualStack enabled", + "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://amplify.eu-west-2.api.aws" + "url": "https://amplify.eu-west-1.amazonaws.com" } }, "params": { - "UseDualStack": true, + "Region": "eu-west-1", "UseFIPS": false, - "Region": "eu-west-2" + "UseDualStack": false } }, { @@ -463,542 +151,365 @@ } }, "params": { - "UseDualStack": false, - "UseFIPS": false, - "Region": "eu-west-2" - } - }, - { - "documentation": "For region eu-west-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://amplify-fips.eu-west-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "eu-west-1" - } - }, - { - "documentation": "For region eu-west-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://amplify-fips.eu-west-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "eu-west-1" - } - }, - { - "documentation": "For region eu-west-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://amplify.eu-west-1.api.aws" - } - }, - "params": { - "UseDualStack": true, + "Region": "eu-west-2", "UseFIPS": false, - "Region": "eu-west-1" + "UseDualStack": false } }, { - "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", + "documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://amplify.eu-west-1.amazonaws.com" + "url": "https://amplify.eu-west-3.amazonaws.com" } }, "params": { - "UseDualStack": false, + "Region": "eu-west-3", "UseFIPS": false, - "Region": "eu-west-1" - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://amplify-fips.ap-northeast-2.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "ap-northeast-2" - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://amplify-fips.ap-northeast-2.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "ap-northeast-2" + "UseDualStack": false } }, { - "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack enabled", + "documentation": "For region me-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://amplify.ap-northeast-2.api.aws" + "url": "https://amplify.me-south-1.amazonaws.com" } }, "params": { - "UseDualStack": true, + "Region": "me-south-1", "UseFIPS": false, - "Region": "ap-northeast-2" + "UseDualStack": false } }, { - "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", + "documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://amplify.ap-northeast-2.amazonaws.com" + "url": "https://amplify.sa-east-1.amazonaws.com" } }, "params": { - "UseDualStack": false, + "Region": "sa-east-1", "UseFIPS": false, - "Region": "ap-northeast-2" - } - }, - { - "documentation": "For region ap-northeast-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://amplify-fips.ap-northeast-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "ap-northeast-1" + "UseDualStack": false } }, { - "documentation": "For region ap-northeast-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://amplify-fips.ap-northeast-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "ap-northeast-1" - } - }, - { - "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://amplify.ap-northeast-1.api.aws" + "url": "https://amplify.us-east-1.amazonaws.com" } }, "params": { - "UseDualStack": true, + "Region": "us-east-1", "UseFIPS": false, - "Region": "ap-northeast-1" + "UseDualStack": false } }, { - "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://amplify.ap-northeast-1.amazonaws.com" + "url": "https://amplify.us-east-2.amazonaws.com" } }, "params": { - "UseDualStack": false, + "Region": "us-east-2", "UseFIPS": false, - "Region": "ap-northeast-1" - } - }, - { - "documentation": "For region me-south-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://amplify-fips.me-south-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "me-south-1" + "UseDualStack": false } }, { - "documentation": "For region me-south-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://amplify-fips.me-south-1.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "me-south-1" - } - }, - { - "documentation": "For region me-south-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://amplify.me-south-1.api.aws" + "url": "https://amplify.us-west-1.amazonaws.com" } }, "params": { - "UseDualStack": true, + "Region": "us-west-1", "UseFIPS": false, - "Region": "me-south-1" + "UseDualStack": false } }, { - "documentation": "For region me-south-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://amplify.me-south-1.amazonaws.com" + "url": "https://amplify.us-west-2.amazonaws.com" } }, "params": { - "UseDualStack": false, + "Region": "us-west-2", "UseFIPS": false, - "Region": "me-south-1" + "UseDualStack": false } }, { - "documentation": "For region sa-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://amplify-fips.sa-east-1.api.aws" + "url": "https://amplify-fips.us-east-1.api.aws" } }, "params": { - "UseDualStack": true, + "Region": "us-east-1", "UseFIPS": true, - "Region": "sa-east-1" + "UseDualStack": true } }, { - "documentation": "For region sa-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://amplify-fips.sa-east-1.amazonaws.com" + "url": "https://amplify-fips.us-east-1.amazonaws.com" } }, "params": { - "UseDualStack": false, + "Region": "us-east-1", "UseFIPS": true, - "Region": "sa-east-1" - } - }, - { - "documentation": "For region sa-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://amplify.sa-east-1.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": false, - "Region": "sa-east-1" + "UseDualStack": false } }, { - "documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://amplify.sa-east-1.amazonaws.com" + "url": "https://amplify.us-east-1.api.aws" } }, "params": { - "UseDualStack": false, + "Region": "us-east-1", "UseFIPS": false, - "Region": "sa-east-1" + "UseDualStack": true } }, { - "documentation": "For region ap-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://amplify-fips.ap-east-1.api.aws" + "url": "https://amplify-fips.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { - "UseDualStack": true, + "Region": "cn-north-1", "UseFIPS": true, - "Region": "ap-east-1" + "UseDualStack": true } }, { - "documentation": "For region ap-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://amplify-fips.ap-east-1.amazonaws.com" + "url": "https://amplify-fips.cn-north-1.amazonaws.com.cn" } }, "params": { - "UseDualStack": false, + "Region": "cn-north-1", "UseFIPS": true, - "Region": "ap-east-1" + "UseDualStack": false } }, { - "documentation": "For region ap-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://amplify.ap-east-1.api.aws" + "url": "https://amplify.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { - "UseDualStack": true, + "Region": "cn-north-1", "UseFIPS": false, - "Region": "ap-east-1" + "UseDualStack": true } }, { - "documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://amplify.ap-east-1.amazonaws.com" + "url": "https://amplify.cn-north-1.amazonaws.com.cn" } }, "params": { - "UseDualStack": false, + "Region": "cn-north-1", "UseFIPS": false, - "Region": "ap-east-1" + "UseDualStack": false } }, { - "documentation": "For region ap-southeast-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://amplify-fips.ap-southeast-1.api.aws" + "url": "https://amplify-fips.us-gov-east-1.api.aws" } }, "params": { - "UseDualStack": true, + "Region": "us-gov-east-1", "UseFIPS": true, - "Region": "ap-southeast-1" + "UseDualStack": true } }, { - "documentation": "For region ap-southeast-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://amplify-fips.ap-southeast-1.amazonaws.com" + "url": "https://amplify-fips.us-gov-east-1.amazonaws.com" } }, "params": { - "UseDualStack": false, + "Region": "us-gov-east-1", "UseFIPS": true, - "Region": "ap-southeast-1" + "UseDualStack": false } }, { - "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://amplify.ap-southeast-1.api.aws" + "url": "https://amplify.us-gov-east-1.api.aws" } }, "params": { - "UseDualStack": true, + "Region": "us-gov-east-1", "UseFIPS": false, - "Region": "ap-southeast-1" + "UseDualStack": true } }, { - "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://amplify.ap-southeast-1.amazonaws.com" + "url": "https://amplify.us-gov-east-1.amazonaws.com" } }, "params": { - "UseDualStack": false, + "Region": "us-gov-east-1", "UseFIPS": false, - "Region": "ap-southeast-1" + "UseDualStack": false } }, { - "documentation": "For region ap-southeast-2 with FIPS enabled and DualStack enabled", + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", "expect": { - "endpoint": { - "url": "https://amplify-fips.ap-southeast-2.api.aws" - } + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" }, "params": { - "UseDualStack": true, + "Region": "us-iso-east-1", "UseFIPS": true, - "Region": "ap-southeast-2" + "UseDualStack": true } }, { - "documentation": "For region ap-southeast-2 with FIPS enabled and DualStack disabled", + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://amplify-fips.ap-southeast-2.amazonaws.com" + "url": "https://amplify-fips.us-iso-east-1.c2s.ic.gov" } }, "params": { - "UseDualStack": false, + "Region": "us-iso-east-1", "UseFIPS": true, - "Region": "ap-southeast-2" + "UseDualStack": false } }, { - "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack enabled", + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", "expect": { - "endpoint": { - "url": "https://amplify.ap-southeast-2.api.aws" - } + "error": "DualStack is enabled but this partition does not support DualStack" }, "params": { - "UseDualStack": true, + "Region": "us-iso-east-1", "UseFIPS": false, - "Region": "ap-southeast-2" + "UseDualStack": true } }, { - "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://amplify.ap-southeast-2.amazonaws.com" + "url": "https://amplify.us-iso-east-1.c2s.ic.gov" } }, "params": { - "UseDualStack": false, + "Region": "us-iso-east-1", "UseFIPS": false, - "Region": "ap-southeast-2" + "UseDualStack": false } }, { - "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", "expect": { - "endpoint": { - "url": "https://amplify-fips.us-east-1.api.aws" - } + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" }, "params": { - "UseDualStack": true, + "Region": "us-isob-east-1", "UseFIPS": true, - "Region": "us-east-1" + "UseDualStack": true } }, { - "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://amplify-fips.us-east-1.amazonaws.com" + "url": "https://amplify-fips.us-isob-east-1.sc2s.sgov.gov" } }, "params": { - "UseDualStack": false, + "Region": "us-isob-east-1", "UseFIPS": true, - "Region": "us-east-1" + "UseDualStack": false } }, { - "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", "expect": { - "endpoint": { - "url": "https://amplify.us-east-1.api.aws" - } + "error": "DualStack is enabled but this partition does not support DualStack" }, "params": { - "UseDualStack": true, + "Region": "us-isob-east-1", "UseFIPS": false, - "Region": "us-east-1" + "UseDualStack": true } }, { - "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://amplify.us-east-1.amazonaws.com" + "url": "https://amplify.us-isob-east-1.sc2s.sgov.gov" } }, "params": { - "UseDualStack": false, + "Region": "us-isob-east-1", "UseFIPS": false, - "Region": "us-east-1" - } - }, - { - "documentation": "For region us-east-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://amplify-fips.us-east-2.api.aws" - } - }, - "params": { - "UseDualStack": true, - "UseFIPS": true, - "Region": "us-east-2" + "UseDualStack": false } }, { - "documentation": "For region us-east-2 with FIPS enabled and DualStack disabled", + "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", "expect": { "endpoint": { - "url": "https://amplify-fips.us-east-2.amazonaws.com" - } - }, - "params": { - "UseDualStack": false, - "UseFIPS": true, - "Region": "us-east-2" - } - }, - { - "documentation": "For region us-east-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://amplify.us-east-2.api.aws" + "url": "https://example.com" } }, "params": { - "UseDualStack": true, + "Region": "us-east-1", "UseFIPS": false, - "Region": "us-east-2" - } - }, - { - "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://amplify.us-east-2.amazonaws.com" - } - }, - "params": { "UseDualStack": false, - "UseFIPS": false, - "Region": "us-east-2" + "Endpoint": "https://example.com" } }, { - "documentation": "For custom endpoint with fips disabled and dualstack disabled", + "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", "expect": { "endpoint": { "url": "https://example.com" } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "us-east-1", + "UseDualStack": false, "Endpoint": "https://example.com" } }, @@ -1008,9 +519,9 @@ "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { - "UseDualStack": false, - "UseFIPS": true, "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": false, "Endpoint": "https://example.com" } }, @@ -1020,11 +531,17 @@ "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { - "UseDualStack": true, - "UseFIPS": false, "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": true, "Endpoint": "https://example.com" } + }, + { + "documentation": "Missing region", + "expect": { + "error": "Invalid Configuration: Missing Region" + } } ], "version": "1.0" diff --git a/models/apis/amplify/2017-07-25/paginators-1.json b/models/apis/amplify/2017-07-25/paginators-1.json index 5677bd8e4a2..7f1497dc99e 100644 --- a/models/apis/amplify/2017-07-25/paginators-1.json +++ b/models/apis/amplify/2017-07-25/paginators-1.json @@ -1,4 +1,28 @@ { "pagination": { + "ListApps": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "apps" + }, + "ListBranches": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "branches" + }, + "ListDomainAssociations": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "domainAssociations" + }, + "ListJobs": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "jobSummaries" + } } } diff --git a/models/apis/application-insights/2018-11-25/api-2.json b/models/apis/application-insights/2018-11-25/api-2.json index ad42e5f795e..7cfa11f85d0 100644 --- a/models/apis/application-insights/2018-11-25/api-2.json +++ b/models/apis/application-insights/2018-11-25/api-2.json @@ -437,7 +437,8 @@ "errors":[ {"shape":"ResourceNotFoundException"}, {"shape":"ValidationException"}, - {"shape":"InternalServerException"} + {"shape":"InternalServerException"}, + {"shape":"ResourceInUseException"} ] }, "UpdateLogPattern":{ @@ -552,13 +553,15 @@ "CWEMonitorEnabled":{"shape":"CWEMonitorEnabled"}, "Remarks":{"shape":"Remarks"}, "AutoConfigEnabled":{"shape":"AutoConfigEnabled"}, - "DiscoveryType":{"shape":"DiscoveryType"} + "DiscoveryType":{"shape":"DiscoveryType"}, + "AttachMissingPermission":{"shape":"AttachMissingPermission"} } }, "ApplicationInfoList":{ "type":"list", "member":{"shape":"ApplicationInfo"} }, + "AttachMissingPermission":{"type":"boolean"}, "AutoConfigEnabled":{"type":"boolean"}, "AutoCreate":{"type":"boolean"}, "BadRequestException":{ @@ -645,7 +648,8 @@ "Tags":{"shape":"TagList"}, "AutoConfigEnabled":{"shape":"AutoConfigEnabled"}, "AutoCreate":{"shape":"AutoCreate"}, - "GroupingType":{"shape":"GroupingType"} + "GroupingType":{"shape":"GroupingType"}, + "AttachMissingPermission":{"shape":"AttachMissingPermission"} } }, "CreateApplicationResponse":{ @@ -773,6 +777,7 @@ "ResourceGroupName":{"shape":"ResourceGroupName"}, "ComponentName":{"shape":"ComponentName"}, "Tier":{"shape":"Tier"}, + "WorkloadName":{"shape":"WorkloadName"}, "RecommendationType":{"shape":"RecommendationType"} } }, @@ -1506,7 +1511,8 @@ "CWEMonitorEnabled":{"shape":"CWEMonitorEnabled"}, "OpsItemSNSTopicArn":{"shape":"OpsItemSNSTopicArn"}, "RemoveSNSTopic":{"shape":"RemoveSNSTopic"}, - "AutoConfigEnabled":{"shape":"AutoConfigEnabled"} + "AutoConfigEnabled":{"shape":"AutoConfigEnabled"}, + "AttachMissingPermission":{"shape":"AttachMissingPermission"} } }, "UpdateApplicationResponse":{ diff --git a/models/apis/application-insights/2018-11-25/docs-2.json b/models/apis/application-insights/2018-11-25/docs-2.json index 6676b743284..5378b391c4d 100644 --- a/models/apis/application-insights/2018-11-25/docs-2.json +++ b/models/apis/application-insights/2018-11-25/docs-2.json @@ -122,6 +122,14 @@ "ListApplicationsResponse$ApplicationInfoList": "The list of applications.
" } }, + "AttachMissingPermission": { + "base": null, + "refs": { + "ApplicationInfo$AttachMissingPermission": "If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.
", + "CreateApplicationRequest$AttachMissingPermission": "If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.
", + "UpdateApplicationRequest$AttachMissingPermission": "If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.
" + } + }, "AutoConfigEnabled": { "base": null, "refs": { @@ -1276,6 +1284,7 @@ "WorkloadName": { "base": null, "refs": { + "DescribeComponentConfigurationRecommendationRequest$WorkloadName": "The name of the workload.
", "Workload$WorkloadName": "The name of the workload.
", "WorkloadConfiguration$WorkloadName": "The name of the workload.
" } diff --git a/models/apis/application-insights/2018-11-25/endpoint-rule-set-1.json b/models/apis/application-insights/2018-11-25/endpoint-rule-set-1.json index 5aa99ae02e8..bd11232ea19 100644 --- a/models/apis/application-insights/2018-11-25/endpoint-rule-set-1.json +++ b/models/apis/application-insights/2018-11-25/endpoint-rule-set-1.json @@ -40,7 +40,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -58,293 +57,258 @@ "type": "error" }, { - "conditions": [], - "type": "tree", - "rules": [ + "conditions": [ { - "conditions": [ + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [], - "endpoint": { - "url": { - "ref": "Endpoint" + "ref": "UseDualStack" }, - "properties": {}, - "headers": {} - }, - "type": "endpoint" + true + ] } - ] + ], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" + }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" } - ] + ], + "type": "tree" }, { - "conditions": [], - "type": "tree", + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Region" + } + ] + } + ], "rules": [ { "conditions": [ { - "fn": "isSet", + "fn": "aws.partition", "argv": [ { "ref": "Region" } - ] + ], + "assign": "PartitionResult" } ], - "type": "tree", "rules": [ { "conditions": [ { - "fn": "aws.partition", + "fn": "booleanEquals", "argv": [ { - "ref": "Region" - } - ], - "assign": "PartitionResult" + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] } ], - "type": "tree", "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseFIPS" - }, - true + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } ] }, { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", + "fn": "getAttr", "argv": [ - true, { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - }, - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://applicationinsights-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://applicationinsights-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://applicationinsights-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://applicationinsights-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://applicationinsights.{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://applicationinsights.{Region}.{PartitionResult#dnsSuffix}", + "url": "https://applicationinsights.{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://applicationinsights.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } - ] - }, - { - "conditions": [], - "error": "Invalid Configuration: Missing Region", - "type": "error" + ], + "type": "tree" } - ] + ], + "type": "tree" + }, + { + "conditions": [], + "error": "Invalid Configuration: Missing Region", + "type": "error" } ] } \ No newline at end of file diff --git a/models/apis/connect/2017-08-08/api-2.json b/models/apis/connect/2017-08-08/api-2.json index a5506d3d79f..585ee25ef16 100644 --- a/models/apis/connect/2017-08-08/api-2.json +++ b/models/apis/connect/2017-08-08/api-2.json @@ -212,6 +212,23 @@ ], "idempotent":true }, + "BatchGetFlowAssociation":{ + "name":"BatchGetFlowAssociation", + "http":{ + "method":"POST", + "requestUri":"/flow-associations-batch/{InstanceId}" + }, + "input":{"shape":"BatchGetFlowAssociationRequest"}, + "output":{"shape":"BatchGetFlowAssociationResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"} + ] + }, "ClaimPhoneNumber":{ "name":"ClaimPhoneNumber", "http":{ @@ -3557,7 +3574,9 @@ "Type":{"shape":"AgentStatusType"}, "DisplayOrder":{"shape":"AgentStatusOrderNumber"}, "State":{"shape":"AgentStatusState"}, - "Tags":{"shape":"TagMap"} + "Tags":{"shape":"TagMap"}, + "LastModifiedTime":{"shape":"Timestamp"}, + "LastModifiedRegion":{"shape":"RegionName"} } }, "AgentStatusDescription":{ @@ -3597,7 +3616,9 @@ "Id":{"shape":"AgentStatusId"}, "Arn":{"shape":"ARN"}, "Name":{"shape":"AgentStatusName"}, - "Type":{"shape":"AgentStatusType"} + "Type":{"shape":"AgentStatusType"}, + "LastModifiedTime":{"shape":"Timestamp"}, + "LastModifiedRegion":{"shape":"RegionName"} } }, "AgentStatusSummaryList":{ @@ -3941,6 +3962,28 @@ "min":8, "pattern":"[a-z]{2}(-[a-z]+){1,2}(-[0-9])?" }, + "BatchGetFlowAssociationRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "ResourceIds" + ], + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "ResourceIds":{"shape":"resourceArnListMaxLimit100"}, + "ResourceType":{"shape":"ListFlowAssociationResourceType"} + } + }, + "BatchGetFlowAssociationResponse":{ + "type":"structure", + "members":{ + "FlowAssociationSummaryList":{"shape":"FlowAssociationSummaryList"} + } + }, "BehaviorType":{ "type":"string", "enum":[ @@ -7000,6 +7043,18 @@ "max":5, "min":1 }, + "FlowAssociationSummary":{ + "type":"structure", + "members":{ + "ResourceId":{"shape":"ARN"}, + "FlowId":{"shape":"ARN"}, + "ResourceType":{"shape":"ListFlowAssociationResourceType"} + } + }, + "FlowAssociationSummaryList":{ + "type":"list", + "member":{"shape":"FlowAssociationSummary"} + }, "FunctionArn":{ "type":"string", "max":140, @@ -7202,7 +7257,9 @@ "GetPromptFileResponse":{ "type":"structure", "members":{ - "PromptPresignedUrl":{"shape":"PromptPresignedUrl"} + "PromptPresignedUrl":{"shape":"PromptPresignedUrl"}, + "LastModifiedTime":{"shape":"Timestamp"}, + "LastModifiedRegion":{"shape":"RegionName"} } }, "GetTaskTemplateRequest":{ @@ -7300,7 +7357,9 @@ "Name":{"shape":"HierarchyGroupName"}, "LevelId":{"shape":"HierarchyLevelId"}, "HierarchyPath":{"shape":"HierarchyPath"}, - "Tags":{"shape":"TagMap"} + "Tags":{"shape":"TagMap"}, + "LastModifiedTime":{"shape":"Timestamp"}, + "LastModifiedRegion":{"shape":"RegionName"} } }, "HierarchyGroupCondition":{ @@ -7324,7 +7383,9 @@ "members":{ "Id":{"shape":"HierarchyGroupId"}, "Arn":{"shape":"ARN"}, - "Name":{"shape":"HierarchyGroupName"} + "Name":{"shape":"HierarchyGroupName"}, + "LastModifiedTime":{"shape":"Timestamp"}, + "LastModifiedRegion":{"shape":"RegionName"} } }, "HierarchyGroupSummaryList":{ @@ -7343,7 +7404,9 @@ "members":{ "Id":{"shape":"HierarchyLevelId"}, "Arn":{"shape":"ARN"}, - "Name":{"shape":"HierarchyLevelName"} + "Name":{"shape":"HierarchyLevelName"}, + "LastModifiedTime":{"shape":"Timestamp"}, + "LastModifiedRegion":{"shape":"RegionName"} } }, "HierarchyLevelId":{"type":"string"}, @@ -7485,7 +7548,9 @@ "Description":{"shape":"HoursOfOperationDescription"}, "TimeZone":{"shape":"TimeZone"}, "Config":{"shape":"HoursOfOperationConfigList"}, - "Tags":{"shape":"TagMap"} + "Tags":{"shape":"TagMap"}, + "LastModifiedTime":{"shape":"Timestamp"}, + "LastModifiedRegion":{"shape":"RegionName"} } }, "HoursOfOperationConfig":{ @@ -7553,7 +7618,9 @@ "members":{ "Id":{"shape":"HoursOfOperationId"}, "Arn":{"shape":"ARN"}, - "Name":{"shape":"HoursOfOperationName"} + "Name":{"shape":"HoursOfOperationName"}, + "LastModifiedTime":{"shape":"Timestamp"}, + "LastModifiedRegion":{"shape":"RegionName"} } }, "HoursOfOperationSummaryList":{ @@ -8223,6 +8290,13 @@ "NextToken":{"shape":"NextToken"} } }, + "ListFlowAssociationResourceType":{ + "type":"string", + "enum":[ + "SMS_PHONE_NUMBER", + "VOICE_PHONE_NUMBER" + ] + }, "ListHoursOfOperationsRequest":{ "type":"structure", "required":["InstanceId"], @@ -8571,7 +8645,9 @@ "type":"structure", "members":{ "NextToken":{"shape":"NextToken"}, - "QuickConnectSummaryList":{"shape":"QuickConnectSummaryList"} + "QuickConnectSummaryList":{"shape":"QuickConnectSummaryList"}, + "LastModifiedTime":{"shape":"Timestamp"}, + "LastModifiedRegion":{"shape":"RegionName"} } }, "ListQueuesRequest":{ @@ -8675,7 +8751,9 @@ "type":"structure", "members":{ "NextToken":{"shape":"NextToken"}, - "RoutingProfileQueueConfigSummaryList":{"shape":"RoutingProfileQueueConfigSummaryList"} + "RoutingProfileQueueConfigSummaryList":{"shape":"RoutingProfileQueueConfigSummaryList"}, + "LastModifiedTime":{"shape":"Timestamp"}, + "LastModifiedRegion":{"shape":"RegionName"} } }, "ListRoutingProfilesRequest":{ @@ -8809,7 +8887,9 @@ "type":"structure", "members":{ "Applications":{"shape":"Applications"}, - "NextToken":{"shape":"NextToken"} + "NextToken":{"shape":"NextToken"}, + "LastModifiedTime":{"shape":"Timestamp"}, + "LastModifiedRegion":{"shape":"RegionName"} } }, "ListSecurityProfilePermissionsRequest":{ @@ -8846,7 +8926,9 @@ "type":"structure", "members":{ "Permissions":{"shape":"PermissionsList"}, - "NextToken":{"shape":"NextToken"} + "NextToken":{"shape":"NextToken"}, + "LastModifiedTime":{"shape":"Timestamp"}, + "LastModifiedRegion":{"shape":"RegionName"} } }, "ListSecurityProfilesRequest":{ @@ -9894,7 +9976,9 @@ "PromptId":{"shape":"PromptId"}, "Name":{"shape":"CommonNameLength127"}, "Description":{"shape":"PromptDescription"}, - "Tags":{"shape":"TagMap"} + "Tags":{"shape":"TagMap"}, + "LastModifiedTime":{"shape":"Timestamp"}, + "LastModifiedRegion":{"shape":"RegionName"} } }, "PromptDescription":{ @@ -9944,7 +10028,9 @@ "members":{ "Id":{"shape":"PromptId"}, "Arn":{"shape":"ARN"}, - "Name":{"shape":"PromptName"} + "Name":{"shape":"PromptName"}, + "LastModifiedTime":{"shape":"Timestamp"}, + "LastModifiedRegion":{"shape":"RegionName"} } }, "PromptSummaryList":{ @@ -10029,7 +10115,9 @@ "box":true }, "Status":{"shape":"QueueStatus"}, - "Tags":{"shape":"TagMap"} + "Tags":{"shape":"TagMap"}, + "LastModifiedTime":{"shape":"Timestamp"}, + "LastModifiedRegion":{"shape":"RegionName"} } }, "QueueDescription":{ @@ -10108,7 +10196,9 @@ "Id":{"shape":"QueueId"}, "Arn":{"shape":"ARN"}, "Name":{"shape":"QueueName"}, - "QueueType":{"shape":"QueueType"} + "QueueType":{"shape":"QueueType"}, + "LastModifiedTime":{"shape":"Timestamp"}, + "LastModifiedRegion":{"shape":"RegionName"} } }, "QueueSummaryList":{ @@ -10141,7 +10231,9 @@ "Name":{"shape":"QuickConnectName"}, "Description":{"shape":"QuickConnectDescription"}, "QuickConnectConfig":{"shape":"QuickConnectConfig"}, - "Tags":{"shape":"TagMap"} + "Tags":{"shape":"TagMap"}, + "LastModifiedTime":{"shape":"Timestamp"}, + "LastModifiedRegion":{"shape":"RegionName"} } }, "QuickConnectConfig":{ @@ -10193,7 +10285,9 @@ "Id":{"shape":"QuickConnectId"}, "Arn":{"shape":"ARN"}, "Name":{"shape":"QuickConnectName"}, - "QuickConnectType":{"shape":"QuickConnectType"} + "QuickConnectType":{"shape":"QuickConnectType"}, + "LastModifiedTime":{"shape":"Timestamp"}, + "LastModifiedRegion":{"shape":"RegionName"} } }, "QuickConnectSummaryList":{ @@ -10294,6 +10388,10 @@ "max":4096, "min":0 }, + "RegionName":{ + "type":"string", + "pattern":"[a-z]{2}(-[a-z]+){1,2}(-[0-9])?" + }, "RehydrationType":{ "type":"string", "enum":[ @@ -10453,7 +10551,10 @@ "Tags":{"shape":"TagMap"}, "NumberOfAssociatedQueues":{"shape":"Long"}, "NumberOfAssociatedUsers":{"shape":"Long"}, - "AgentAvailabilityTimer":{"shape":"AgentAvailabilityTimer"} + "AgentAvailabilityTimer":{"shape":"AgentAvailabilityTimer"}, + "LastModifiedTime":{"shape":"Timestamp"}, + "LastModifiedRegion":{"shape":"RegionName"}, + "IsDefault":{"shape":"Boolean"} } }, "RoutingProfileDescription":{ @@ -10564,7 +10665,9 @@ "members":{ "Id":{"shape":"RoutingProfileId"}, "Arn":{"shape":"ARN"}, - "Name":{"shape":"RoutingProfileName"} + "Name":{"shape":"RoutingProfileName"}, + "LastModifiedTime":{"shape":"Timestamp"}, + "LastModifiedRegion":{"shape":"RegionName"} } }, "RoutingProfileSummaryList":{ @@ -10688,9 +10791,9 @@ }, "S3Uri":{ "type":"string", - "max":512, + "max":2000, "min":1, - "pattern":"s3://\\S+/.+" + "pattern":"s3://\\S+/.+|https://\\\\S+\\\\.s3\\\\.\\\\S+\\\\.amazonaws\\\\.com/\\\\S+" }, "SearchAvailablePhoneNumbersRequest":{ "type":"structure", @@ -10941,7 +11044,9 @@ "Description":{"shape":"SecurityProfileDescription"}, "Tags":{"shape":"TagMap"}, "AllowedAccessControlTags":{"shape":"AllowedAccessControlTags"}, - "TagRestrictedResources":{"shape":"TagRestrictedResourceList"} + "TagRestrictedResources":{"shape":"TagRestrictedResourceList"}, + "LastModifiedTime":{"shape":"Timestamp"}, + "LastModifiedRegion":{"shape":"RegionName"} } }, "SecurityProfileDescription":{ @@ -10998,7 +11103,9 @@ "members":{ "Id":{"shape":"SecurityProfileId"}, "Arn":{"shape":"ARN"}, - "Name":{"shape":"SecurityProfileName"} + "Name":{"shape":"SecurityProfileName"}, + "LastModifiedTime":{"shape":"Timestamp"}, + "LastModifiedRegion":{"shape":"RegionName"} } }, "SecurityProfileSummaryList":{ @@ -12968,7 +13075,9 @@ "SecurityProfileIds":{"shape":"SecurityProfileIds"}, "RoutingProfileId":{"shape":"RoutingProfileId"}, "HierarchyGroupId":{"shape":"HierarchyGroupId"}, - "Tags":{"shape":"TagMap"} + "Tags":{"shape":"TagMap"}, + "LastModifiedTime":{"shape":"Timestamp"}, + "LastModifiedRegion":{"shape":"RegionName"} } }, "UserData":{ @@ -13106,7 +13215,9 @@ "members":{ "Id":{"shape":"UserId"}, "Arn":{"shape":"ARN"}, - "Username":{"shape":"AgentUsername"} + "Username":{"shape":"AgentUsername"}, + "LastModifiedTime":{"shape":"Timestamp"}, + "LastModifiedRegion":{"shape":"RegionName"} } }, "UserSummaryList":{ @@ -13387,6 +13498,12 @@ "SessionArn":{"shape":"ARN"} } }, + "resourceArnListMaxLimit100":{ + "type":"list", + "member":{"shape":"ARN"}, + "max":100, + "min":1 + }, "timestamp":{"type":"timestamp"} } } diff --git a/models/apis/connect/2017-08-08/docs-2.json b/models/apis/connect/2017-08-08/docs-2.json index 15a788bd250..8d200df55c2 100644 --- a/models/apis/connect/2017-08-08/docs-2.json +++ b/models/apis/connect/2017-08-08/docs-2.json @@ -14,6 +14,7 @@ "AssociateRoutingProfileQueues": "Associates a set of queues with a routing profile.
", "AssociateSecurityKey": "This API is in preview release for Amazon Connect and is subject to change.
Associates a security key to the instance.
", "AssociateTrafficDistributionGroupUser": "Associates an agent with a traffic distribution group.
", + "BatchGetFlowAssociation": "Retrieve the flow associations for the given resources.
", "ClaimPhoneNumber": "Claims an available phone number to your Amazon Connect instance or traffic distribution group. You can call this API only in the same Amazon Web Services Region where the Amazon Connect instance or traffic distribution group was created.
For more information about how to use this operation, see Claim a phone number in your country and Claim phone numbers to traffic distribution groups in the Amazon Connect Administrator Guide.
You can call the SearchAvailablePhoneNumbers API for available phone numbers that you can claim. Call the DescribePhoneNumber API to verify the status of a previous ClaimPhoneNumber operation.
If you plan to claim and release numbers frequently during a 30 day period, contact us for a service quota exception. Otherwise, it is possible you will be blocked from claiming and releasing any more numbers until 30 days past the oldest number released has expired.
By default you can claim and release up to 200% of your maximum number of active phone numbers during any 30 day period. If you claim and release phone numbers using the UI or API during a rolling 30 day cycle that exceeds 200% of your phone number service level quota, you will be blocked from claiming any more numbers until 30 days past the oldest number released has expired.
For example, if you already have 99 claimed numbers and a service level quota of 99 phone numbers, and in any 30 day period you release 99, claim 99, and then release 99, you will have exceeded the 200% limit. At that point you are blocked from claiming any more numbers until you open an Amazon Web Services support ticket.
", "CreateAgentStatus": "This API is in preview release for Amazon Connect and is subject to change.
Creates an agent status for the specified Amazon Connect instance.
", "CreateContactFlow": "Creates a flow for the specified Amazon Connect instance.
You can also create and update flows using the Amazon Connect Flow language.
", @@ -144,7 +145,7 @@ "MonitorContact": "Initiates silent monitoring of a contact. The Contact Control Panel (CCP) of the user specified by userId will be set to silent monitoring mode on the contact.
", "PutUserStatus": "Changes the current status of a user or agent in Amazon Connect. If the agent is currently handling a contact, this sets the agent's next status.
For more information, see Agent status and Set your next status in the Amazon Connect Administrator Guide.
", "ReleasePhoneNumber": "Releases a phone number previously claimed to an Amazon Connect instance or traffic distribution group. You can call this API only in the Amazon Web Services Region where the number was claimed.
To release phone numbers from a traffic distribution group, use the ReleasePhoneNumber
API, not the Amazon Connect console.
After releasing a phone number, the phone number enters into a cooldown period of 30 days. It cannot be searched for or claimed again until the period has ended. If you accidentally release a phone number, contact Amazon Web Services Support.
If you plan to claim and release numbers frequently during a 30 day period, contact us for a service quota exception. Otherwise, it is possible you will be blocked from claiming and releasing any more numbers until 30 days past the oldest number released has expired.
By default you can claim and release up to 200% of your maximum number of active phone numbers during any 30 day period. If you claim and release phone numbers using the UI or API during a rolling 30 day cycle that exceeds 200% of your phone number service level quota, you will be blocked from claiming any more numbers until 30 days past the oldest number released has expired.
For example, if you already have 99 claimed numbers and a service level quota of 99 phone numbers, and in any 30 day period you release 99, claim 99, and then release 99, you will have exceeded the 200% limit. At that point you are blocked from claiming any more numbers until you open an Amazon Web Services support ticket.
", - "ReplicateInstance": "Replicates an Amazon Connect instance in the specified Amazon Web Services Region.
For more information about replicating an Amazon Connect instance, see Create a replica of your existing Amazon Connect instance in the Amazon Connect Administrator Guide.
", + "ReplicateInstance": "Replicates an Amazon Connect instance in the specified Amazon Web Services Region and copies configuration information for Amazon Connect resources across Amazon Web Services Regions.
For more information about replicating an Amazon Connect instance, see Create a replica of your existing Amazon Connect instance in the Amazon Connect Administrator Guide.
", "ResumeContactRecording": "When a contact is being recorded, and the recording has been suspended using SuspendContactRecording, this API resumes recording whatever recording is selected in the flow configuration: call, screen, or both. If only call recording or only screen recording is enabled, then it would resume.
Voice and screen recordings are supported.
", "SearchAvailablePhoneNumbers": "Searches for available phone numbers that you can claim to your Amazon Connect instance or traffic distribution group. If the provided TargetArn
is a traffic distribution group, you can call this API in both Amazon Web Services Regions associated with the traffic distribution group.
Searches the hours of operation in an Amazon Connect instance, with optional filtering.
", @@ -266,6 +267,8 @@ "EvaluationMetadata$EvaluatorArn": "The Amazon Resource Name (ARN) of the user who last updated the evaluation.
", "EvaluationSummary$EvaluationArn": "The Amazon Resource Name (ARN) for the contact evaluation resource.
", "EvaluationSummary$EvaluatorArn": "The Amazon Resource Name (ARN) of the user who last updated the evaluation.
", + "FlowAssociationSummary$ResourceId": "The identifier of the resource.
", + "FlowAssociationSummary$FlowId": "The identifier of the flow.
", "GetFederationTokenResponse$UserArn": "The Amazon Resource Name (ARN) of the user.
", "GetMetricDataV2Request$ResourceArn": "The Amazon Resource Name (ARN) of the resource. This includes the instanceId
an Amazon Connect instance.
The Amazon Resource Name (ARN) of the hierarchy group.
", @@ -328,7 +331,8 @@ "ViewVersionSummary$Arn": "The Amazon Resource Name (ARN) of the view version.
", "Vocabulary$Arn": "The Amazon Resource Name (ARN) of the custom vocabulary.
", "VocabularySummary$Arn": "The Amazon Resource Name (ARN) of the custom vocabulary.
", - "WisdomInfo$SessionArn": "The Amazon Resource Name (ARN) of the Wisdom session.
" + "WisdomInfo$SessionArn": "The Amazon Resource Name (ARN) of the Wisdom session.
", + "resourceArnListMaxLimit100$member": null } }, "AccessDeniedException": { @@ -746,6 +750,16 @@ "SignInDistribution$Region": "The Amazon Web Services Region of the sign in distribution.
" } }, + "BatchGetFlowAssociationRequest": { + "base": null, + "refs": { + } + }, + "BatchGetFlowAssociationResponse": { + "base": null, + "refs": { + } + }, "BehaviorType": { "base": null, "refs": { @@ -764,8 +778,9 @@ "EvaluationScore$NotApplicable": "The flag to mark the item as not applicable for scoring.
", "EvaluationScore$AutomaticFail": "The flag that marks the item as automatic fail. If the item or a child item gets an automatic fail answer, this flag will be true.
", "MetricFilterV2$Negate": "The flag to use to filter on requested metric filter values or to not filter on requested metric filter values. By default the negate is false
, which indicates to filter on the requested metric filter.
Whether this a default routing profile.
", "SignInDistribution$Enabled": "Whether sign in distribution is enabled.
", - "TrafficDistributionGroup$IsDefault": "Whether this is the default traffic distribution group created during instance replication. The default traffic distribution group cannot be deleted by the DeleteTrafficDistributionGroup
API. The default traffic distribution group is deleted as part of the process for deleting a replica.
The SignInConfig
distribution is available only on the default TrafficDistributionGroup
. If you call UpdateTrafficDistribution
with a modified SignInConfig
and a non-default TrafficDistributionGroup
, an InvalidRequestException
is returned.
Whether this is the default traffic distribution group created during instance replication. The default traffic distribution group cannot be deleted by the DeleteTrafficDistributionGroup
API. The default traffic distribution group is deleted as part of the process for deleting a replica.
The SignInConfig
distribution is available only on a default TrafficDistributionGroup
(see the IsDefault
parameter in the TrafficDistributionGroup data type). If you call UpdateTrafficDistribution
with a modified SignInConfig
and a non-default TrafficDistributionGroup
, an InvalidRequestException
is returned.
Whether this is the default traffic distribution group created during instance replication. The default traffic distribution group cannot be deleted by the DeleteTrafficDistributionGroup
API. The default traffic distribution group is deleted as part of the process for deleting a replica.
A number indicating the reset order of the agent status.
" } @@ -2497,6 +2512,18 @@ "GetMetricDataV2Request$Filters": "The filters to apply to returned metrics. You can filter on the following resources:
Queues
Routing profiles
Agents
Channels
User hierarchy groups
Feature
At least one filter must be passed from queues, routing profiles, agents, or user hierarchy groups.
To filter by phone number, see Create a historical metrics report in the Amazon Connect Administrator's Guide.
Note the following limits:
Filter keys: A maximum of 5 filter keys are supported in a single request. Valid filter keys: QUEUE
| ROUTING_PROFILE
| AGENT
| CHANNEL
| AGENT_HIERARCHY_LEVEL_ONE
| AGENT_HIERARCHY_LEVEL_TWO
| AGENT_HIERARCHY_LEVEL_THREE
| AGENT_HIERARCHY_LEVEL_FOUR
| AGENT_HIERARCHY_LEVEL_FIVE
| FEATURE
Filter values: A maximum of 100 filter values are supported in a single request. VOICE, CHAT, and TASK are valid filterValue
for the CHANNEL filter key. They do not count towards limitation of 100 filter values. For example, a GetMetricDataV2 request can filter by 50 queues, 35 agents, and 15 routing profiles for a total of 100 filter values, along with 3 channel filters.
contact_lens_conversational_analytics
is a valid filterValue for the FEATURE
filter key. It is available only to contacts analyzed by Contact Lens conversational analytics.
Information about flow associations.
", + "refs": { + "FlowAssociationSummaryList$member": null + } + }, + "FlowAssociationSummaryList": { + "base": null, + "refs": { + "BatchGetFlowAssociationResponse$FlowAssociationSummaryList": "Information about flow associations.
" + } + }, "FunctionArn": { "base": null, "refs": { @@ -2972,6 +2999,7 @@ "AssociateRoutingProfileQueuesRequest$InstanceId": "The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
", "AssociateSecurityKeyRequest$InstanceId": "The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
", "AssociateTrafficDistributionGroupUserRequest$InstanceId": "The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
", + "BatchGetFlowAssociationRequest$InstanceId": "The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
", "ClaimPhoneNumberRequest$InstanceId": "The identifier of the Amazon Connect instance that phone numbers are claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of the instance. You must enter InstanceId
or TargetArn
.
The identifier of the Amazon Connect instance that phone numbers are claimed to. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
", "CreateAgentStatusRequest$InstanceId": "The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
", @@ -3502,6 +3530,13 @@ "refs": { } }, + "ListFlowAssociationResourceType": { + "base": null, + "refs": { + "BatchGetFlowAssociationRequest$ResourceType": "The type of resource association.
", + "FlowAssociationSummary$ResourceType": "The type of resource association.
" + } + }, "ListHoursOfOperationsRequest": { "base": null, "refs": { @@ -4951,6 +4986,35 @@ "UrlReference$Value": "A valid URL.
" } }, + "RegionName": { + "base": null, + "refs": { + "AgentStatus$LastModifiedRegion": "The Amazon Web Services Region where this resource was last modified.
", + "AgentStatusSummary$LastModifiedRegion": "The Amazon Web Services Region where this resource was last modified.
", + "GetPromptFileResponse$LastModifiedRegion": "The Amazon Web Services Region where this resource was last modified.
", + "HierarchyGroup$LastModifiedRegion": "The Amazon Web Services Region where this resource was last modified.
", + "HierarchyGroupSummary$LastModifiedRegion": "The Amazon Web Services Region where this resource was last modified.
", + "HierarchyLevel$LastModifiedRegion": "The Amazon Web Services Region where this resource was last modified.
", + "HoursOfOperation$LastModifiedRegion": "The Amazon Web Services Region where this resource was last modified.
", + "HoursOfOperationSummary$LastModifiedRegion": "The Amazon Web Services Region where this resource was last modified.
", + "ListQueueQuickConnectsResponse$LastModifiedRegion": "The Amazon Web Services Region where this resource was last modified.
", + "ListRoutingProfileQueuesResponse$LastModifiedRegion": "The Amazon Web Services Region where this resource was last modified.
", + "ListSecurityProfileApplicationsResponse$LastModifiedRegion": "The Amazon Web Services Region where this resource was last modified.
", + "ListSecurityProfilePermissionsResponse$LastModifiedRegion": "The Amazon Web Services Region where this resource was last modified.
", + "Prompt$LastModifiedRegion": "The Amazon Web Services Region where this resource was last modified.
", + "PromptSummary$LastModifiedRegion": "The Amazon Web Services Region where this resource was last modified.
", + "Queue$LastModifiedRegion": "The Amazon Web Services Region where this resource was last modified.
", + "QueueSummary$LastModifiedRegion": "The Amazon Web Services Region where this resource was last modified.
", + "QuickConnect$LastModifiedRegion": "The Amazon Web Services Region where this resource was last modified.
", + "QuickConnectSummary$LastModifiedRegion": "The Amazon Web Services Region where this resource was last modified.
", + "RoutingProfile$LastModifiedRegion": "The Amazon Web Services Region where this resource was last modified.
", + "RoutingProfileSummary$LastModifiedRegion": "The Amazon Web Services Region where this resource was last modified.
", + "SecurityProfile$LastModifiedRegion": "The Amazon Web Services Region where this resource was last modified.
", + "SecurityProfileSummary$LastModifiedRegion": "The Amazon Web Services Region where this resource was last modified.
", + "User$LastModifiedRegion": "The Amazon Web Services Region where this resource was last modified.
", + "UserSummary$LastModifiedRegion": "The Amazon Web Services Region where this resource was last modified.
" + } + }, "RehydrationType": { "base": null, "refs": { @@ -5300,8 +5364,8 @@ "S3Uri": { "base": null, "refs": { - "CreatePromptRequest$S3Uri": "The URI for the S3 bucket where the prompt is stored.
", - "UpdatePromptRequest$S3Uri": "The URI for the S3 bucket where the prompt is stored.
" + "CreatePromptRequest$S3Uri": "The URI for the S3 bucket where the prompt is stored. You can provide S3 pre-signed URLs returned by the GetPromptFile API instead of providing S3 URIs.
", + "UpdatePromptRequest$S3Uri": "The URI for the S3 bucket where the prompt is stored. You can provide S3 pre-signed URLs returned by the GetPromptFile API instead of providing S3 URIs.
" } }, "SearchAvailablePhoneNumbersRequest": { @@ -6169,7 +6233,9 @@ "refs": { "AgentContactReference$StateStartTimestamp": "The epoch timestamp when the contact state started.
", "AgentContactReference$ConnectedToAgentTimestamp": "The time at which the contact was connected to an agent.
", + "AgentStatus$LastModifiedTime": "The timestamp when this resource was last modified.
", "AgentStatusReference$StatusStartTimestamp": "The start timestamp of the agent's status.
", + "AgentStatusSummary$LastModifiedTime": "The timestamp when this resource was last modified.
", "Evaluation$CreatedTime": "The timestamp for when the evaluation was created.
", "Evaluation$LastModifiedTime": "The timestamp for when the evaluation was last updated.
", "EvaluationForm$CreatedTime": "The timestamp for when the evaluation form was created.
", @@ -6183,16 +6249,38 @@ "EvaluationSummary$LastModifiedTime": "The timestamp for when the evaluation was last updated.
", "GetMetricDataV2Request$StartTime": "The timestamp, in UNIX Epoch time format, at which to start the reporting interval for the retrieval of historical metrics data. The time must be before the end time timestamp. The start and end time depends on the IntervalPeriod
selected. By default the time range between start and end time is 35 days. Historical metrics are available for 3 months.
The timestamp, in UNIX Epoch time format, at which to end the reporting interval for the retrieval of historical metrics data. The time must be later than the start time timestamp. It cannot be later than the current timestamp.
", + "GetPromptFileResponse$LastModifiedTime": "The timestamp when this resource was last modified.
", + "HierarchyGroup$LastModifiedTime": "The timestamp when this resource was last modified.
", + "HierarchyGroupSummary$LastModifiedTime": "The timestamp when this resource was last modified.
", + "HierarchyLevel$LastModifiedTime": "The timestamp when this resource was last modified.
", + "HoursOfOperation$LastModifiedTime": "The timestamp when this resource was last modified.
", + "HoursOfOperationSummary$LastModifiedTime": "The timestamp when this resource was last modified.
", "Instance$CreatedTime": "When the instance was created.
", "InstanceSummary$CreatedTime": "When the instance was created.
", + "ListQueueQuickConnectsResponse$LastModifiedTime": "The timestamp when this resource was last modified.
", + "ListRoutingProfileQueuesResponse$LastModifiedTime": "The timestamp when this resource was last modified.
", + "ListSecurityProfileApplicationsResponse$LastModifiedTime": "The timestamp when this resource was last modified.
", + "ListSecurityProfilePermissionsResponse$LastModifiedTime": "The timestamp when this resource was last modified.
", "MetricInterval$StartTime": "The timestamp, in UNIX Epoch time format. Start time is based on the interval period selected.
", "MetricInterval$EndTime": "The timestamp, in UNIX Epoch time format. End time is based on the interval period selected. For example, If IntervalPeriod
is selected THIRTY_MIN
, StartTime
and EndTime
in the API request differs by 1 day, then 48 results are returned in the response. Each result is aggregated by the 30 minutes period, with each StartTime
and EndTime
differing by 30 minutes.
The timestamp when this resource was last modified.
", + "PromptSummary$LastModifiedTime": "The timestamp when this resource was last modified.
", + "Queue$LastModifiedTime": "The timestamp when this resource was last modified.
", + "QueueSummary$LastModifiedTime": "The timestamp when this resource was last modified.
", + "QuickConnect$LastModifiedTime": "The timestamp when this resource was last modified.
", + "QuickConnectSummary$LastModifiedTime": "The timestamp when this resource was last modified.
", + "RoutingProfile$LastModifiedTime": "The timestamp when this resource was last modified.
", + "RoutingProfileSummary$LastModifiedTime": "The timestamp when this resource was last modified.
", "Rule$CreatedTime": "The timestamp for when the rule was created.
", "Rule$LastUpdatedTime": "The timestamp for the when the rule was last updated.
", "RuleSummary$CreatedTime": "The timestamp for when the rule was created.
", "RuleSummary$LastUpdatedTime": "The timestamp for when the rule was last updated.
", + "SecurityProfile$LastModifiedTime": "The timestamp when this resource was last modified.
", + "SecurityProfileSummary$LastModifiedTime": "The timestamp when this resource was last modified.
", "StartTaskContactRequest$ScheduledTime": "The timestamp, in Unix Epoch seconds format, at which to start running the inbound flow. The scheduled time cannot be in the past. It must be within up to 6 days in future.
", "UpdateContactScheduleRequest$ScheduledTime": "The timestamp, in Unix Epoch seconds format, at which to start running the inbound flow. The scheduled time cannot be in the past. It must be within up to 6 days in future.
", + "User$LastModifiedTime": "The timestamp when this resource was last modified.
", + "UserSummary$LastModifiedTime": "The timestamp when this resource was last modified.
", "View$CreatedTime": "The timestamp of when the view was created.
", "View$LastModifiedTime": "Latest timestamp of the UpdateViewContent
or CreateViewVersion
operations.
Information about Amazon Connect Wisdom.
" } }, + "resourceArnListMaxLimit100": { + "base": null, + "refs": { + "BatchGetFlowAssociationRequest$ResourceIds": "A list of resource identifiers to retrieve flow associations.
" + } + }, "timestamp": { "base": null, "refs": { diff --git a/models/apis/connect/2017-08-08/paginators-1.json b/models/apis/connect/2017-08-08/paginators-1.json index 445ee0c8379..5123035101e 100644 --- a/models/apis/connect/2017-08-08/paginators-1.json +++ b/models/apis/connect/2017-08-08/paginators-1.json @@ -141,6 +141,10 @@ "ListQueueQuickConnects": { "input_token": "NextToken", "limit_key": "MaxResults", + "non_aggregate_keys": [ + "LastModifiedRegion", + "LastModifiedTime" + ], "output_token": "NextToken", "result_key": "QuickConnectSummaryList" }, @@ -159,6 +163,10 @@ "ListRoutingProfileQueues": { "input_token": "NextToken", "limit_key": "MaxResults", + "non_aggregate_keys": [ + "LastModifiedRegion", + "LastModifiedTime" + ], "output_token": "NextToken", "result_key": "RoutingProfileQueueConfigSummaryList" }, @@ -183,12 +191,20 @@ "ListSecurityProfileApplications": { "input_token": "NextToken", "limit_key": "MaxResults", + "non_aggregate_keys": [ + "LastModifiedRegion", + "LastModifiedTime" + ], "output_token": "NextToken", "result_key": "Applications" }, "ListSecurityProfilePermissions": { "input_token": "NextToken", "limit_key": "MaxResults", + "non_aggregate_keys": [ + "LastModifiedRegion", + "LastModifiedTime" + ], "output_token": "NextToken", "result_key": "Permissions" }, diff --git a/models/apis/ec2/2016-11-15/api-2.json b/models/apis/ec2/2016-11-15/api-2.json index 71600864378..724f59aee34 100755 --- a/models/apis/ec2/2016-11-15/api-2.json +++ b/models/apis/ec2/2016-11-15/api-2.json @@ -2019,6 +2019,15 @@ "input":{"shape":"DescribeByoipCidrsRequest"}, "output":{"shape":"DescribeByoipCidrsResult"} }, + "DescribeCapacityBlockOfferings":{ + "name":"DescribeCapacityBlockOfferings", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeCapacityBlockOfferingsRequest"}, + "output":{"shape":"DescribeCapacityBlockOfferingsResult"} + }, "DescribeCapacityReservationFleets":{ "name":"DescribeCapacityReservationFleets", "http":{ @@ -4819,6 +4828,15 @@ "input":{"shape":"ProvisionPublicIpv4PoolCidrRequest"}, "output":{"shape":"ProvisionPublicIpv4PoolCidrResult"} }, + "PurchaseCapacityBlock":{ + "name":"PurchaseCapacityBlock", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"PurchaseCapacityBlockRequest"}, + "output":{"shape":"PurchaseCapacityBlockResult"} + }, "PurchaseHostReservation":{ "name":"PurchaseHostReservation", "http":{ @@ -8339,6 +8357,58 @@ "locationName":"item" } }, + "CapacityBlockOffering":{ + "type":"structure", + "members":{ + "CapacityBlockOfferingId":{ + "shape":"OfferingId", + "locationName":"capacityBlockOfferingId" + }, + "InstanceType":{ + "shape":"String", + "locationName":"instanceType" + }, + "AvailabilityZone":{ + "shape":"String", + "locationName":"availabilityZone" + }, + "InstanceCount":{ + "shape":"Integer", + "locationName":"instanceCount" + }, + "StartDate":{ + "shape":"MillisecondDateTime", + "locationName":"startDate" + }, + "EndDate":{ + "shape":"MillisecondDateTime", + "locationName":"endDate" + }, + "CapacityBlockDurationHours":{ + "shape":"Integer", + "locationName":"capacityBlockDurationHours" + }, + "UpfrontFee":{ + "shape":"String", + "locationName":"upfrontFee" + }, + "CurrencyCode":{ + "shape":"String", + "locationName":"currencyCode" + }, + "Tenancy":{ + "shape":"CapacityReservationTenancy", + "locationName":"tenancy" + } + } + }, + "CapacityBlockOfferingSet":{ + "type":"list", + "member":{ + "shape":"CapacityBlockOffering", + "locationName":"item" + } + }, "CapacityReservation":{ "type":"structure", "members":{ @@ -8433,6 +8503,10 @@ "CapacityAllocations":{ "shape":"CapacityAllocations", "locationName":"capacityAllocationSet" + }, + "ReservationType":{ + "shape":"CapacityReservationType", + "locationName":"reservationType" } } }, @@ -8649,7 +8723,10 @@ "expired", "cancelled", "pending", - "failed" + "failed", + "scheduled", + "payment-pending", + "payment-failed" ] }, "CapacityReservationTarget":{ @@ -8679,6 +8756,13 @@ "dedicated" ] }, + "CapacityReservationType":{ + "type":"string", + "enum":[ + "default", + "capacity-block" + ] + }, "CarrierGateway":{ "type":"structure", "members":{ @@ -12642,7 +12726,8 @@ "type":"string", "enum":[ "spot", - "on-demand" + "on-demand", + "capacity-block" ] }, "DefaultingDhcpOptionsId":{"type":"string"}, @@ -14452,6 +14537,42 @@ } } }, + "DescribeCapacityBlockOfferingsMaxResults":{ + "type":"integer", + "max":1000, + "min":1 + }, + "DescribeCapacityBlockOfferingsRequest":{ + "type":"structure", + "required":[ + "InstanceType", + "InstanceCount", + "CapacityDurationHours" + ], + "members":{ + "DryRun":{"shape":"Boolean"}, + "InstanceType":{"shape":"String"}, + "InstanceCount":{"shape":"Integer"}, + "StartDateRange":{"shape":"MillisecondDateTime"}, + "EndDateRange":{"shape":"MillisecondDateTime"}, + "CapacityDurationHours":{"shape":"Integer"}, + "NextToken":{"shape":"String"}, + "MaxResults":{"shape":"DescribeCapacityBlockOfferingsMaxResults"} + } + }, + "DescribeCapacityBlockOfferingsResult":{ + "type":"structure", + "members":{ + "CapacityBlockOfferings":{ + "shape":"CapacityBlockOfferingSet", + "locationName":"capacityBlockOfferingSet" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, "DescribeCapacityReservationFleetsMaxResults":{ "type":"integer", "max":100, @@ -26101,7 +26222,8 @@ "type":"string", "enum":[ "spot", - "scheduled" + "scheduled", + "capacity-block" ] }, "InstanceList":{ @@ -30875,7 +30997,10 @@ }, "MarketType":{ "type":"string", - "enum":["spot"] + "enum":[ + "spot", + "capacity-block" + ] }, "MaxIpv4AddrPerInterface":{"type":"integer"}, "MaxIpv6AddrPerInterface":{"type":"integer"}, @@ -35463,6 +35588,31 @@ } } }, + "PurchaseCapacityBlockRequest":{ + "type":"structure", + "required":[ + "CapacityBlockOfferingId", + "InstancePlatform" + ], + "members":{ + "DryRun":{"shape":"Boolean"}, + "TagSpecifications":{ + "shape":"TagSpecificationList", + "locationName":"TagSpecification" + }, + "CapacityBlockOfferingId":{"shape":"OfferingId"}, + "InstancePlatform":{"shape":"CapacityReservationInstancePlatform"} + } + }, + "PurchaseCapacityBlockResult":{ + "type":"structure", + "members":{ + "CapacityReservation":{ + "shape":"CapacityReservation", + "locationName":"capacityReservation" + } + } + }, "PurchaseHostReservationRequest":{ "type":"structure", "required":[ @@ -43405,7 +43555,8 @@ "type":"string", "enum":[ "spot", - "on-demand" + "on-demand", + "capacity-block" ] }, "UsageClassTypeList":{ diff --git a/models/apis/ec2/2016-11-15/docs-2.json b/models/apis/ec2/2016-11-15/docs-2.json index 12ad9940450..67d7d08ca23 100755 --- a/models/apis/ec2/2016-11-15/docs-2.json +++ b/models/apis/ec2/2016-11-15/docs-2.json @@ -228,6 +228,7 @@ "DescribeAwsNetworkPerformanceMetricSubscriptions": "Describes the current Infrastructure Performance metric subscriptions.
", "DescribeBundleTasks": "Describes the specified bundle tasks or all of your bundle tasks.
Completed bundle tasks are listed for only a limited time. If your bundle task is no longer in the list, you can still register an AMI from it. Just use RegisterImage
with the Amazon S3 bucket name and image manifest name you provided to the bundle task.
Describes the IP address ranges that were specified in calls to ProvisionByoipCidr.
To describe the address pools that were created when you provisioned the address ranges, use DescribePublicIpv4Pools or DescribeIpv6Pools.
", + "DescribeCapacityBlockOfferings": "Describes Capacity Block offerings available for purchase. With Capacity Blocks, you purchase a specific instance type for a period of time.
", "DescribeCapacityReservationFleets": "Describes one or more Capacity Reservation Fleets.
", "DescribeCapacityReservations": "Describes one or more of your Capacity Reservations. The results describe only the Capacity Reservations in the Amazon Web Services Region that you're currently using.
", "DescribeCarrierGateways": "Describes one or more of your carrier gateways.
", @@ -541,6 +542,7 @@ "ProvisionByoipCidr": "Provisions an IPv4 or IPv6 address range for use with your Amazon Web Services resources through bring your own IP addresses (BYOIP) and creates a corresponding address pool. After the address range is provisioned, it is ready to be advertised using AdvertiseByoipCidr.
Amazon Web Services verifies that you own the address range and are authorized to advertise it. You must ensure that the address range is registered to you and that you created an RPKI ROA to authorize Amazon ASNs 16509 and 14618 to advertise the address range. For more information, see Bring your own IP addresses (BYOIP) in the Amazon Elastic Compute Cloud User Guide.
Provisioning an address range is an asynchronous operation, so the call returns immediately, but the address range is not ready to use until its status changes from pending-provision
to provisioned
. To monitor the status of an address range, use DescribeByoipCidrs. To allocate an Elastic IP address from your IPv4 address pool, use AllocateAddress with either the specific address from the address pool or the ID of the address pool.
Provision a CIDR to an IPAM pool. You can use this action to provision new CIDRs to a top-level pool or to transfer a CIDR from a top-level pool to a pool within it.
For more information, see Provision CIDRs to pools in the Amazon VPC IPAM User Guide.
", "ProvisionPublicIpv4PoolCidr": "Provision a CIDR to a public IPv4 pool.
For more information about IPAM, see What is IPAM? in the Amazon VPC IPAM User Guide.
", + "PurchaseCapacityBlock": "Purchase the Capacity Block for use with your account. With Capacity Blocks you ensure GPU capacity is available for machine learning (ML) workloads. You must specify the ID of the Capacity Block offering you are purchasing.
", "PurchaseHostReservation": "Purchase a reservation with configurations that match those of your Dedicated Host. You must have active Dedicated Hosts in your account before you purchase a reservation. This action results in the specified reservation being purchased and charged to your account.
", "PurchaseReservedInstancesOffering": "Purchases a Reserved Instance for use with your account. With Reserved Instances, you pay a lower hourly rate compared to On-Demand instance pricing.
Use DescribeReservedInstancesOfferings to get a list of Reserved Instance offerings that match your specifications. After you've purchased a Reserved Instance, you can check for your new Reserved Instance with DescribeReservedInstances.
To queue a purchase for a future date and time, specify a purchase time. If you do not specify a purchase time, the default is the current time.
For more information, see Reserved Instances and Reserved Instance Marketplace in the Amazon EC2 User Guide.
", "PurchaseScheduledInstances": "You can no longer purchase Scheduled Instances.
Purchases the Scheduled Instances with the specified schedule.
Scheduled Instances enable you to purchase Amazon EC2 compute capacity by the hour for a one-year term. Before you can purchase a Scheduled Instance, you must call DescribeScheduledInstanceAvailability to check for available schedules and obtain a purchase token. After you purchase a Scheduled Instance, you must call RunScheduledInstances during each scheduled time period.
After you purchase a Scheduled Instance, you can't cancel, modify, or resell your purchase.
", @@ -2180,6 +2182,7 @@ "DescribeAwsNetworkPerformanceMetricSubscriptionsRequest$DryRun": "Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
Reserved.
", "ProvisionIpamPoolCidrRequest$DryRun": "A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
Information about instance capacity usage.
" } }, + "CapacityBlockOffering": { + "base": "The recommended Capacity Block that fits your search requirements.
", + "refs": { + "CapacityBlockOfferingSet$member": null + } + }, + "CapacityBlockOfferingSet": { + "base": null, + "refs": { + "DescribeCapacityBlockOfferingsResult$CapacityBlockOfferings": "The recommended Capacity Block offering for the dates specified.
" + } + }, "CapacityReservation": { "base": "Describes a Capacity Reservation.
", "refs": { "CapacityReservationSet$member": null, - "CreateCapacityReservationResult$CapacityReservation": "Information about the Capacity Reservation.
" + "CreateCapacityReservationResult$CapacityReservation": "Information about the Capacity Reservation.
", + "PurchaseCapacityBlockResult$CapacityReservation": "The Capacity Reservation.
" } }, "CapacityReservationFleet": { @@ -3199,6 +3216,7 @@ "CapacityReservation$InstancePlatform": "The type of operating system for which the Capacity Reservation reserves capacity.
", "CreateCapacityReservationRequest$InstancePlatform": "The type of operating system for which to reserve capacity.
", "FleetCapacityReservation$InstancePlatform": "The type of operating system for which the Capacity Reservation reserves capacity.
", + "PurchaseCapacityBlockRequest$InstancePlatform": "The type of operating system for which to reserve capacity.
", "ReservationFleetInstanceSpecification$InstancePlatform": "The type of operating system for which the Capacity Reservation Fleet reserves capacity.
" } }, @@ -3266,10 +3284,17 @@ "CapacityReservationTenancy": { "base": null, "refs": { + "CapacityBlockOffering$Tenancy": "The tenancy of the Capacity Block.
", "CapacityReservation$Tenancy": "Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy settings:
default
- The Capacity Reservation is created on hardware that is shared with other Amazon Web Services accounts.
dedicated
- The Capacity Reservation is created on single-tenant hardware that is dedicated to a single Amazon Web Services account.
Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy settings:
default
- The Capacity Reservation is created on hardware that is shared with other Amazon Web Services accounts.
dedicated
- The Capacity Reservation is created on single-tenant hardware that is dedicated to a single Amazon Web Services account.
The type of Capacity Reservation.
" + } + }, "CarrierGateway": { "base": "Describes a carrier gateway.
", "refs": { @@ -5960,6 +5985,22 @@ "refs": { } }, + "DescribeCapacityBlockOfferingsMaxResults": { + "base": null, + "refs": { + "DescribeCapacityBlockOfferingsRequest$MaxResults": "The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned nextToken
value. This value can be between 5 and 500. If maxResults
is given a larger value than 500, you receive an error.
The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with these attributes.
You must specify VCpuCount
and MemoryMiB
. All other attributes are optional. Any unspecified optional attribute is set to its default.
When you specify multiple attributes, you get instance types that satisfy all of the specified attributes. If you specify multiple values for an attribute, you get instance types that satisfy any of the specified values.
To limit the list of instance types from which Amazon EC2 can identify matching instance types, you can use one of the following parameters, but not both in the same request:
AllowedInstanceTypes
- The instance types to include in the list. All other instance types are ignored, even if they match your specified attributes.
ExcludedInstanceTypes
- The instance types to exclude from the list, even if they match your specified attributes.
If you specify InstanceRequirements
, you can't specify InstanceType
.
Attribute-based instance type selection is only supported when using Auto Scaling groups, EC2 Fleet, and Spot Fleet to launch instances. If you plan to use the launch template in the launch instance wizard or with the RunInstances API, you can't specify InstanceRequirements
.
For more information, see Attribute-based instance type selection for EC2 Fleet, Attribute-based instance type selection for Spot Fleet, and Spot placement score in the Amazon EC2 User Guide.
", + "base": "The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with these attributes.
You must specify VCpuCount
and MemoryMiB
. All other attributes are optional. Any unspecified optional attribute is set to its default.
When you specify multiple attributes, you get instance types that satisfy all of the specified attributes. If you specify multiple values for an attribute, you get instance types that satisfy any of the specified values.
To limit the list of instance types from which Amazon EC2 can identify matching instance types, you can use one of the following parameters, but not both in the same request:
AllowedInstanceTypes
- The instance types to include in the list. All other instance types are ignored, even if they match your specified attributes.
ExcludedInstanceTypes
- The instance types to exclude from the list, even if they match your specified attributes.
If you specify InstanceRequirements
, you can't specify InstanceType
.
Attribute-based instance type selection is only supported when using Auto Scaling groups, EC2 Fleet, and Spot Fleet to launch instances. If you plan to use the launch template in the launch instance wizard or with the RunInstances API, you can't specify InstanceRequirements
.
For more information, see Create a mixed instances group using attribute-based instance type selection in the Amazon EC2 Auto Scaling User Guide, and also Attribute-based instance type selection for EC2 Fleet, Attribute-based instance type selection for Spot Fleet, and Spot placement score in the Amazon EC2 User Guide.
", "refs": { "FleetLaunchTemplateOverrides$InstanceRequirements": "The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with those attributes.
If you specify InstanceRequirements
, you can't specify InstanceType
.
The instance requirements. When you specify instance requirements, Amazon EC2 will identify instance types with the provided requirements, and then use your On-Demand and Spot allocation strategies to launch instances from these instance types, in the same way as when you specify a list of instance types.
If you specify InstanceRequirements
, you can't specify InstanceType
.
The minimum baseline bandwidth, in Mbps. To specify no minimum limit, omit this parameter.
", "BaselineEbsBandwidthMbpsRequest$Max": "The maximum baseline bandwidth, in Mbps. To specify no maximum limit, omit this parameter.
", "CapacityAllocation$Count": "The amount of instance capacity associated with the usage. For example a value of 4
indicates that instance capacity for 4 instances is currently in use.
The number of instances in the Capacity Block offering.
", + "CapacityBlockOffering$CapacityBlockDurationHours": "The amount of time of the Capacity Block reservation in hours.
", "CapacityReservation$TotalInstanceCount": "The total number of instances for which the Capacity Reservation reserves capacity.
", "CapacityReservation$AvailableInstanceCount": "The remaining capacity. Indicates the number of instances that can be launched in the Capacity Reservation.
", "CapacityReservationFleet$TotalTargetCapacity": "The total number of capacity units for which the Capacity Reservation Fleet reserves capacity. For more information, see Total target capacity in the Amazon EC2 User Guide.
", @@ -11721,6 +11764,8 @@ "CreateVolumeRequest$Size": "The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size. If you specify a snapshot, the default is the snapshot size. You can specify a volume size that is equal to or larger than the snapshot size.
The following are the supported volumes sizes for each volume type:
gp2
and gp3
: 1-16,384
io1
and io2
: 4-16,384
st1
and sc1
: 125-16,384
standard
: 1-1,024
The throughput to provision for a volume, with a maximum of 1,000 MiB/s.
This parameter is valid only for gp3
volumes.
Valid Range: Minimum value of 125. Maximum value of 1000.
", "DeleteNetworkAclEntryRequest$RuleNumber": "The rule number of the entry to delete.
", + "DescribeCapacityBlockOfferingsRequest$InstanceCount": "The number of instances for which to reserve capacity.
", + "DescribeCapacityBlockOfferingsRequest$CapacityDurationHours": "The number of hours for which to reserve Capacity Block.
", "DescribeElasticGpusResult$MaxResults": "The total number of items to return. If the total number of items available is more than the value specified in max-items then a Next-Token will be provided in the output that you can use to resume pagination.
", "DescribeFastLaunchImagesSuccessItem$MaxParallelLaunches": "The maximum number of instances that Amazon EC2 can launch at the same time to create pre-provisioned snapshots for Windows faster launching.
", "DescribeFleetHistoryRequest$MaxResults": "The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.
", @@ -13942,12 +13987,16 @@ "AddressTransfer$TransferOfferAcceptedTimestamp": "The timestamp when the Elastic IP address transfer was accepted.
", "AthenaIntegration$PartitionStartDate": "The start date for the partition.
", "AthenaIntegration$PartitionEndDate": "The end date for the partition.
", + "CapacityBlockOffering$StartDate": "The start date of the Capacity Block offering.
", + "CapacityBlockOffering$EndDate": "The end date of the Capacity Block offering.
", "CapacityReservation$StartDate": "The date and time at which the Capacity Reservation was started.
", "CapacityReservationFleet$EndDate": "The date and time at which the Capacity Reservation Fleet expires.
", "CapacityReservationFleet$CreateTime": "The date and time at which the Capacity Reservation Fleet was created.
", "CreateCapacityReservationFleetRequest$EndDate": "The date and time at which the Capacity Reservation Fleet expires. When the Capacity Reservation Fleet expires, its state changes to expired
and all of the Capacity Reservations in the Fleet expire.
The Capacity Reservation Fleet expires within an hour after the specified time. For example, if you specify 5/31/2019
, 13:30:55
, the Capacity Reservation Fleet is guaranteed to expire between 13:30:55
and 14:30:55
on 5/31/2019
.
The date and time at which the Capacity Reservation Fleet was created.
", "CreateCapacityReservationFleetResult$EndDate": "The date and time at which the Capacity Reservation Fleet expires.
", + "DescribeCapacityBlockOfferingsRequest$StartDateRange": "The earliest start date for the Capacity Block offering.
", + "DescribeCapacityBlockOfferingsRequest$EndDateRange": "The latest end date for the Capacity Block offering.
", "DescribeFastLaunchImagesSuccessItem$StateTransitionTime": "The time that faster launching for the Windows AMI changed to the current state.
", "DescribeFastSnapshotRestoreSuccessItem$EnablingTime": "The time at which fast snapshot restores entered the enabling
state.
The time at which fast snapshot restores entered the optimizing
state.
The ID of the Capacity Block offering.
", "DescribeHostReservationOfferingsRequest$OfferingId": "The ID of the reservation offering.
", "GetHostReservationPurchasePreviewRequest$OfferingId": "The offering ID of the reservation.
", "HostOffering$OfferingId": "The ID of the offering.
", "HostReservation$OfferingId": "The ID of the reservation. This remains the same regardless of which Dedicated Hosts are associated with it.
", + "PurchaseCapacityBlockRequest$CapacityBlockOfferingId": "The ID of the Capacity Block offering.
", "PurchaseHostReservationRequest$OfferingId": "The ID of the offering.
" } }, @@ -16339,6 +16390,16 @@ "PurchaseSet$member": null } }, + "PurchaseCapacityBlockRequest": { + "base": null, + "refs": { + } + }, + "PurchaseCapacityBlockResult": { + "base": null, + "refs": { + } + }, "PurchaseHostReservationRequest": { "base": null, "refs": { @@ -18618,6 +18679,10 @@ "CancelSpotFleetRequestsErrorItem$SpotFleetRequestId": "The ID of the Spot Fleet request.
", "CancelSpotFleetRequestsSuccessItem$SpotFleetRequestId": "The ID of the Spot Fleet request.
", "CancelledSpotInstanceRequest$SpotInstanceRequestId": "The ID of the Spot Instance request.
", + "CapacityBlockOffering$InstanceType": "The instance type of the Capacity Block offering.
", + "CapacityBlockOffering$AvailabilityZone": "The Availability Zone of the Capacity Block offering.
", + "CapacityBlockOffering$UpfrontFee": "The total price to be paid up front.
", + "CapacityBlockOffering$CurrencyCode": "The currency of the payment for the Capacity Block.
", "CapacityReservation$CapacityReservationId": "The ID of the Capacity Reservation.
", "CapacityReservation$OwnerId": "The ID of the Amazon Web Services account that owns the Capacity Reservation.
", "CapacityReservation$CapacityReservationArn": "The Amazon Resource Name (ARN) of the Capacity Reservation.
", @@ -18935,6 +19000,9 @@ "DescribeAwsNetworkPerformanceMetricSubscriptionsRequest$NextToken": "The token for the next page of results.
", "DescribeAwsNetworkPerformanceMetricSubscriptionsResult$NextToken": "The token to use to retrieve the next page of results. This value is null
when there are no more results to return.
The token to use to retrieve the next page of results. This value is null
when there are no more results to return.
The type of instance for which the Capacity Block offering reserves capacity.
", + "DescribeCapacityBlockOfferingsRequest$NextToken": "The token to use to retrieve the next page of results.
", + "DescribeCapacityBlockOfferingsResult$NextToken": "The token to use to retrieve the next page of results. This value is null
when there are no more results to return.
The token to use to retrieve the next page of results.
", "DescribeCapacityReservationFleetsResult$NextToken": "The token to use to retrieve the next page of results. This value is null
when there are no more results to return.
The token to use to retrieve the next page of results.
", @@ -20943,6 +21011,7 @@ "ImportKeyPairRequest$TagSpecifications": "The tags to apply to the imported key pair.
", "ImportSnapshotRequest$TagSpecifications": "The tags to apply to the import snapshot task during creation.
", "ProvisionByoipCidrRequest$PoolTagSpecifications": "The tags to apply to the address pool.
", + "PurchaseCapacityBlockRequest$TagSpecifications": "The tags to apply to the Capacity Block during launch.
", "PurchaseHostReservationRequest$TagSpecifications": "The tags to apply to the Dedicated Host Reservation during purchase.
", "RequestSpotInstancesRequest$TagSpecifications": "The key-value pair for tagging the Spot Instance request on creation. The value for ResourceType
must be spot-instances-request
, otherwise the Spot Instance request fails. To tag the Spot Instance request after it has been created, see CreateTags.
The tags to apply to the resources that are created during instance launch.
You can specify tags for the following resources only:
Instances
Volumes
Elastic graphics
Spot Instance requests
Network interfaces
To tag a resource after it has been created, see CreateTags.
", diff --git a/models/apis/ec2/2016-11-15/paginators-1.json b/models/apis/ec2/2016-11-15/paginators-1.json index 522792d6af4..ddc054563ce 100755 --- a/models/apis/ec2/2016-11-15/paginators-1.json +++ b/models/apis/ec2/2016-11-15/paginators-1.json @@ -36,6 +36,12 @@ "output_token": "NextToken", "result_key": "ByoipCidrs" }, + "DescribeCapacityBlockOfferings": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "CapacityBlockOfferings" + }, "DescribeCapacityReservationFleets": { "input_token": "NextToken", "limit_key": "MaxResults", diff --git a/models/apis/globalaccelerator/2018-08-08/api-2.json b/models/apis/globalaccelerator/2018-08-08/api-2.json index 291373a6e18..08142a2a4a7 100644 --- a/models/apis/globalaccelerator/2018-08-08/api-2.json +++ b/models/apis/globalaccelerator/2018-08-08/api-2.json @@ -91,6 +91,22 @@ {"shape":"LimitExceededException"} ] }, + "CreateCrossAccountAttachment":{ + "name":"CreateCrossAccountAttachment", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateCrossAccountAttachmentRequest"}, + "output":{"shape":"CreateCrossAccountAttachmentResponse"}, + "errors":[ + {"shape":"InternalServiceErrorException"}, + {"shape":"InvalidArgumentException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"TransactionInProgressException"} + ] + }, "CreateCustomRoutingAccelerator":{ "name":"CreateCustomRoutingAccelerator", "http":{ @@ -190,6 +206,21 @@ {"shape":"InvalidArgumentException"} ] }, + "DeleteCrossAccountAttachment":{ + "name":"DeleteCrossAccountAttachment", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteCrossAccountAttachmentRequest"}, + "errors":[ + {"shape":"AttachmentNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"InvalidArgumentException"}, + {"shape":"TransactionInProgressException"} + ] + }, "DeleteCustomRoutingAccelerator":{ "name":"DeleteCustomRoutingAccelerator", "http":{ @@ -316,6 +347,21 @@ {"shape":"InvalidArgumentException"} ] }, + "DescribeCrossAccountAttachment":{ + "name":"DescribeCrossAccountAttachment", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeCrossAccountAttachmentRequest"}, + "output":{"shape":"DescribeCrossAccountAttachmentResponse"}, + "errors":[ + {"shape":"AttachmentNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"InvalidArgumentException"} + ] + }, "DescribeCustomRoutingAccelerator":{ "name":"DescribeCustomRoutingAccelerator", "http":{ @@ -429,6 +475,50 @@ {"shape":"InvalidNextTokenException"} ] }, + "ListCrossAccountAttachments":{ + "name":"ListCrossAccountAttachments", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListCrossAccountAttachmentsRequest"}, + "output":{"shape":"ListCrossAccountAttachmentsResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InvalidArgumentException"}, + {"shape":"InvalidNextTokenException"}, + {"shape":"InternalServiceErrorException"} + ] + }, + "ListCrossAccountResourceAccounts":{ + "name":"ListCrossAccountResourceAccounts", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListCrossAccountResourceAccountsRequest"}, + "output":{"shape":"ListCrossAccountResourceAccountsResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InternalServiceErrorException"} + ] + }, + "ListCrossAccountResources":{ + "name":"ListCrossAccountResources", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListCrossAccountResourcesRequest"}, + "output":{"shape":"ListCrossAccountResourcesResponse"}, + "errors":[ + {"shape":"InternalServiceErrorException"}, + {"shape":"InvalidArgumentException"}, + {"shape":"InvalidNextTokenException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AcceleratorNotFoundException"} + ] + }, "ListCustomRoutingAccelerators":{ "name":"ListCustomRoutingAccelerators", "http":{ @@ -653,6 +743,23 @@ {"shape":"AccessDeniedException"} ] }, + "UpdateCrossAccountAttachment":{ + "name":"UpdateCrossAccountAttachment", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateCrossAccountAttachmentRequest"}, + "output":{"shape":"UpdateCrossAccountAttachmentResponse"}, + "errors":[ + {"shape":"AttachmentNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"InvalidArgumentException"}, + {"shape":"LimitExceededException"}, + {"shape":"TransactionInProgressException"} + ] + }, "UpdateCustomRoutingAccelerator":{ "name":"UpdateCustomRoutingAccelerator", "http":{ @@ -892,6 +999,43 @@ }, "exception":true }, + "Attachment":{ + "type":"structure", + "members":{ + "AttachmentArn":{"shape":"GenericString"}, + "Name":{"shape":"AttachmentName"}, + "Principals":{"shape":"Principals"}, + "Resources":{"shape":"Resources"}, + "LastModifiedTime":{"shape":"Timestamp"}, + "CreatedTime":{"shape":"Timestamp"} + } + }, + "AttachmentName":{ + "type":"string", + "max":64, + "pattern":"[\\S\\s]+" + }, + "AttachmentNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "Attachments":{ + "type":"list", + "member":{"shape":"Attachment"} + }, + "AwsAccountId":{ + "type":"string", + "max":12, + "min":12, + "pattern":"^\\d{12}$" + }, + "AwsAccountIds":{ + "type":"list", + "member":{"shape":"AwsAccountId"} + }, "ByoipCidr":{ "type":"structure", "members":{ @@ -987,6 +1131,29 @@ "Accelerator":{"shape":"Accelerator"} } }, + "CreateCrossAccountAttachmentRequest":{ + "type":"structure", + "required":[ + "Name", + "IdempotencyToken" + ], + "members":{ + "Name":{"shape":"AttachmentName"}, + "Principals":{"shape":"Principals"}, + "Resources":{"shape":"Resources"}, + "IdempotencyToken":{ + "shape":"IdempotencyToken", + "idempotencyToken":true + }, + "Tags":{"shape":"Tags"} + } + }, + "CreateCrossAccountAttachmentResponse":{ + "type":"structure", + "members":{ + "CrossAccountAttachment":{"shape":"Attachment"} + } + }, "CreateCustomRoutingAcceleratorRequest":{ "type":"structure", "required":[ @@ -1112,6 +1279,17 @@ "Listener":{"shape":"Listener"} } }, + "CrossAccountResource":{ + "type":"structure", + "members":{ + "EndpointId":{"shape":"GenericString"}, + "AttachmentArn":{"shape":"GenericString"} + } + }, + "CrossAccountResources":{ + "type":"list", + "member":{"shape":"CrossAccountResource"} + }, "CustomRoutingAccelerator":{ "type":"structure", "members":{ @@ -1186,7 +1364,8 @@ "CustomRoutingEndpointConfiguration":{ "type":"structure", "members":{ - "EndpointId":{"shape":"GenericString"} + "EndpointId":{"shape":"GenericString"}, + "AttachmentArn":{"shape":"GenericString"} } }, "CustomRoutingEndpointConfigurations":{ @@ -1249,6 +1428,13 @@ "AcceleratorArn":{"shape":"GenericString"} } }, + "DeleteCrossAccountAttachmentRequest":{ + "type":"structure", + "required":["AttachmentArn"], + "members":{ + "AttachmentArn":{"shape":"GenericString"} + } + }, "DeleteCustomRoutingAcceleratorRequest":{ "type":"structure", "required":["AcceleratorArn"], @@ -1337,6 +1523,19 @@ "Accelerator":{"shape":"Accelerator"} } }, + "DescribeCrossAccountAttachmentRequest":{ + "type":"structure", + "required":["AttachmentArn"], + "members":{ + "AttachmentArn":{"shape":"GenericString"} + } + }, + "DescribeCrossAccountAttachmentResponse":{ + "type":"structure", + "members":{ + "CrossAccountAttachment":{"shape":"Attachment"} + } + }, "DescribeCustomRoutingAcceleratorAttributesRequest":{ "type":"structure", "required":["AcceleratorArn"], @@ -1454,7 +1653,8 @@ "members":{ "EndpointId":{"shape":"GenericString"}, "Weight":{"shape":"EndpointWeight"}, - "ClientIPPreservationEnabled":{"shape":"GenericBoolean"} + "ClientIPPreservationEnabled":{"shape":"GenericBoolean"}, + "AttachmentArn":{"shape":"GenericString"} } }, "EndpointConfigurations":{ @@ -1691,6 +1891,48 @@ "NextToken":{"shape":"GenericString"} } }, + "ListCrossAccountAttachmentsRequest":{ + "type":"structure", + "members":{ + "MaxResults":{"shape":"MaxResults"}, + "NextToken":{"shape":"GenericString"} + } + }, + "ListCrossAccountAttachmentsResponse":{ + "type":"structure", + "members":{ + "CrossAccountAttachments":{"shape":"Attachments"}, + "NextToken":{"shape":"GenericString"} + } + }, + "ListCrossAccountResourceAccountsRequest":{ + "type":"structure", + "members":{ + } + }, + "ListCrossAccountResourceAccountsResponse":{ + "type":"structure", + "members":{ + "ResourceOwnerAwsAccountIds":{"shape":"AwsAccountIds"} + } + }, + "ListCrossAccountResourcesRequest":{ + "type":"structure", + "required":["ResourceOwnerAwsAccountId"], + "members":{ + "AcceleratorArn":{"shape":"GenericString"}, + "ResourceOwnerAwsAccountId":{"shape":"AwsAccountId"}, + "MaxResults":{"shape":"MaxResults"}, + "NextToken":{"shape":"GenericString"} + } + }, + "ListCrossAccountResourcesResponse":{ + "type":"structure", + "members":{ + "CrossAccountResources":{"shape":"CrossAccountResources"}, + "NextToken":{"shape":"GenericString"} + } + }, "ListCustomRoutingAcceleratorsRequest":{ "type":"structure", "members":{ @@ -1895,6 +2137,15 @@ "max":10, "min":1 }, + "Principal":{ + "type":"string", + "max":256, + "pattern":"(^\\d{12}$|arn:.*)" + }, + "Principals":{ + "type":"list", + "member":{"shape":"Principal"} + }, "Protocol":{ "type":"string", "enum":[ @@ -1945,11 +2196,23 @@ "EndpointGroupArn":{"shape":"GenericString"} } }, + "Resource":{ + "type":"structure", + "required":["EndpointId"], + "members":{ + "EndpointId":{"shape":"GenericString"}, + "Region":{"shape":"GenericString"} + } + }, "ResourceArn":{ "type":"string", "max":1011, "min":1 }, + "Resources":{ + "type":"list", + "member":{"shape":"Resource"} + }, "SocketAddress":{ "type":"structure", "members":{ @@ -2074,6 +2337,24 @@ "Accelerator":{"shape":"Accelerator"} } }, + "UpdateCrossAccountAttachmentRequest":{ + "type":"structure", + "required":["AttachmentArn"], + "members":{ + "AttachmentArn":{"shape":"GenericString"}, + "Name":{"shape":"AttachmentName"}, + "AddPrincipals":{"shape":"Principals"}, + "RemovePrincipals":{"shape":"Principals"}, + "AddResources":{"shape":"Resources"}, + "RemoveResources":{"shape":"Resources"} + } + }, + "UpdateCrossAccountAttachmentResponse":{ + "type":"structure", + "members":{ + "CrossAccountAttachment":{"shape":"Attachment"} + } + }, "UpdateCustomRoutingAcceleratorAttributesRequest":{ "type":"structure", "required":["AcceleratorArn"], diff --git a/models/apis/globalaccelerator/2018-08-08/docs-2.json b/models/apis/globalaccelerator/2018-08-08/docs-2.json index 4e6088788bb..6befec98862 100644 --- a/models/apis/globalaccelerator/2018-08-08/docs-2.json +++ b/models/apis/globalaccelerator/2018-08-08/docs-2.json @@ -1,18 +1,20 @@ { "version": "2.0", - "service": "This is the Global Accelerator API Reference. This guide is for developers who need detailed information about Global Accelerator API actions, data types, and errors. For more information about Global Accelerator features, see the Global Accelerator Developer Guide.
Global Accelerator is a service in which you create accelerators to improve the performance of your applications for local and global users. Depending on the type of accelerator you choose, you can gain additional benefits.
By using a standard accelerator, you can improve availability of your internet applications that are used by a global audience. With a standard accelerator, Global Accelerator directs traffic to optimal endpoints over the Amazon Web Services global network.
For other scenarios, you might choose a custom routing accelerator. With a custom routing accelerator, you can use application logic to directly map one or more users to a specific endpoint among many endpoints.
Global Accelerator is a global service that supports endpoints in multiple Amazon Web Services Regions but you must specify the US West (Oregon) Region to create, update, or otherwise work with accelerators. That is, for example, specify --region us-west-2
on Amazon Web Services CLI commands.
By default, Global Accelerator provides you with static IP addresses that you associate with your accelerator. The static IP addresses are anycast from the Amazon Web Services edge network. For IPv4, Global Accelerator provides two static IPv4 addresses. For dual-stack, Global Accelerator provides a total of four addresses: two static IPv4 addresses and two static IPv6 addresses. With a standard accelerator for IPv4, instead of using the addresses that Global Accelerator provides, you can configure these entry points to be IPv4 addresses from your own IP address ranges that you bring toGlobal Accelerator (BYOIP).
For a standard accelerator, they distribute incoming application traffic across multiple endpoint resources in multiple Amazon Web Services Regions , which increases the availability of your applications. Endpoints for standard accelerators can be Network Load Balancers, Application Load Balancers, Amazon EC2 instances, or Elastic IP addresses that are located in one Amazon Web Services Region or multiple Amazon Web Services Regions. For custom routing accelerators, you map traffic that arrives to the static IP addresses to specific Amazon EC2 servers in endpoints that are virtual private cloud (VPC) subnets.
The static IP addresses remain assigned to your accelerator for as long as it exists, even if you disable the accelerator and it no longer accepts or routes traffic. However, when you delete an accelerator, you lose the static IP addresses that are assigned to it, so you can no longer route traffic by using them. You can use IAM policies like tag-based permissions with Global Accelerator to limit the users who have permissions to delete an accelerator. For more information, see Tag-based policies.
For standard accelerators, Global Accelerator uses the Amazon Web Services global network to route traffic to the optimal regional endpoint based on health, client location, and policies that you configure. The service reacts instantly to changes in health or configuration to ensure that internet traffic from clients is always directed to healthy endpoints.
For more information about understanding and using Global Accelerator, see the Global Accelerator Developer Guide.
", + "service": "This is the Global Accelerator API Reference. This guide is for developers who need detailed information about Global Accelerator API actions, data types, and errors. For more information about Global Accelerator features, see the Global Accelerator Developer Guide.
Global Accelerator is a service in which you create accelerators to improve the performance of your applications for local and global users. Depending on the type of accelerator you choose, you can gain additional benefits.
By using a standard accelerator, you can improve availability of your internet applications that are used by a global audience. With a standard accelerator, Global Accelerator directs traffic to optimal endpoints over the Amazon Web Services global network.
For other scenarios, you might choose a custom routing accelerator. With a custom routing accelerator, you can use application logic to directly map one or more users to a specific endpoint among many endpoints.
Global Accelerator is a global service that supports endpoints in multiple Amazon Web Services Regions but you must specify the US West (Oregon) Region to create, update, or otherwise work with accelerators. That is, for example, specify --region us-west-2
on Amazon Web Services CLI commands.
By default, Global Accelerator provides you with static IP addresses that you associate with your accelerator. The static IP addresses are anycast from the Amazon Web Services edge network. For IPv4, Global Accelerator provides two static IPv4 addresses. For dual-stack, Global Accelerator provides a total of four addresses: two static IPv4 addresses and two static IPv6 addresses. With a standard accelerator for IPv4, instead of using the addresses that Global Accelerator provides, you can configure these entry points to be IPv4 addresses from your own IP address ranges that you bring to Global Accelerator (BYOIP).
For a standard accelerator, they distribute incoming application traffic across multiple endpoint resources in multiple Amazon Web Services Regions , which increases the availability of your applications. Endpoints for standard accelerators can be Network Load Balancers, Application Load Balancers, Amazon EC2 instances, or Elastic IP addresses that are located in one Amazon Web Services Region or multiple Amazon Web Services Regions. For custom routing accelerators, you map traffic that arrives to the static IP addresses to specific Amazon EC2 servers in endpoints that are virtual private cloud (VPC) subnets.
The static IP addresses remain assigned to your accelerator for as long as it exists, even if you disable the accelerator and it no longer accepts or routes traffic. However, when you delete an accelerator, you lose the static IP addresses that are assigned to it, so you can no longer route traffic by using them. You can use IAM policies like tag-based permissions with Global Accelerator to limit the users who have permissions to delete an accelerator. For more information, see Tag-based policies.
For standard accelerators, Global Accelerator uses the Amazon Web Services global network to route traffic to the optimal regional endpoint based on health, client location, and policies that you configure. The service reacts instantly to changes in health or configuration to ensure that internet traffic from clients is always directed to healthy endpoints.
For more information about understanding and using Global Accelerator, see the Global Accelerator Developer Guide.
", "operations": { "AddCustomRoutingEndpoints": "Associate a virtual private cloud (VPC) subnet endpoint with your custom routing accelerator.
The listener port range must be large enough to support the number of IP addresses that can be specified in your subnet. The number of ports required is: subnet size times the number of ports per destination EC2 instances. For example, a subnet defined as /24 requires a listener port range of at least 255 ports.
Note: You must have enough remaining listener ports available to map to the subnet ports, or the call will fail with a LimitExceededException.
By default, all destinations in a subnet in a custom routing accelerator cannot receive traffic. To enable all destinations to receive traffic, or to specify individual port mappings that can receive traffic, see the AllowCustomRoutingTraffic operation.
", "AddEndpoints": "Add endpoints to an endpoint group. The AddEndpoints
API operation is the recommended option for adding endpoints. The alternative options are to add endpoints when you create an endpoint group (with the CreateEndpointGroup API) or when you update an endpoint group (with the UpdateEndpointGroup API).
There are two advantages to using AddEndpoints
to add endpoints in Global Accelerator:
It's faster, because Global Accelerator only has to resolve the new endpoints that you're adding, rather than resolving new and existing endpoints.
It's more convenient, because you don't need to specify the current endpoints that are already in the endpoint group, in addition to the new endpoints that you want to add.
For information about endpoint types and requirements for endpoints that you can add to Global Accelerator, see Endpoints for standard accelerators in the Global Accelerator Developer Guide.
", "AdvertiseByoipCidr": "Advertises an IPv4 address range that is provisioned for use with your Amazon Web Services resources through bring your own IP addresses (BYOIP). It can take a few minutes before traffic to the specified addresses starts routing to Amazon Web Services because of propagation delays.
To stop advertising the BYOIP address range, use WithdrawByoipCidr.
For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide.
", "AllowCustomRoutingTraffic": "Specify the Amazon EC2 instance (destination) IP addresses and ports for a VPC subnet endpoint that can receive traffic for a custom routing accelerator. You can allow traffic to all destinations in the subnet endpoint, or allow traffic to a specified list of destination IP addresses and ports in the subnet. Note that you cannot specify IP addresses or ports outside of the range that you configured for the endpoint group.
After you make changes, you can verify that the updates are complete by checking the status of your accelerator: the status changes from IN_PROGRESS to DEPLOYED.
", "CreateAccelerator": "Create an accelerator. An accelerator includes one or more listeners that process inbound connections and direct traffic to one or more endpoint groups, each of which includes endpoints, such as Network Load Balancers.
Global Accelerator is a global service that supports endpoints in multiple Amazon Web Services Regions but you must specify the US West (Oregon) Region to create, update, or otherwise work with accelerators. That is, for example, specify --region us-west-2
on Amazon Web Services CLI commands.
Create a cross-account attachment in Global Accelerator. You create a cross-account attachment to specify the principals who have permission to add to accelerators in their own account the resources in your account that you also list in the attachment.
A principal can be an Amazon Web Services account number or the Amazon Resource Name (ARN) for an accelerator. For account numbers that are listed as principals, to add a resource listed in the attachment to an accelerator, you must sign in to an account specified as a principal. Then you can add the resources that are listed to any of your accelerators. If an accelerator ARN is listed in the cross-account attachment as a principal, anyone with permission to make updates to the accelerator can add as endpoints resources that are listed in the attachment.
", "CreateCustomRoutingAccelerator": "Create a custom routing accelerator. A custom routing accelerator directs traffic to one of possibly thousands of Amazon EC2 instance destinations running in a single or multiple virtual private clouds (VPC) subnet endpoints.
Be aware that, by default, all destination EC2 instances in a VPC subnet endpoint cannot receive traffic. To enable all destinations to receive traffic, or to specify individual port mappings that can receive traffic, see the AllowCustomRoutingTraffic operation.
Global Accelerator is a global service that supports endpoints in multiple Amazon Web Services Regions but you must specify the US West (Oregon) Region to create, update, or otherwise work with accelerators. That is, for example, specify --region us-west-2
on Amazon Web Services CLI commands.
Create an endpoint group for the specified listener for a custom routing accelerator. An endpoint group is a collection of endpoints in one Amazon Web Services Region.
", "CreateCustomRoutingListener": "Create a listener to process inbound connections from clients to a custom routing accelerator. Connections arrive to assigned static IP addresses on the port range that you specify.
", "CreateEndpointGroup": "Create an endpoint group for the specified listener. An endpoint group is a collection of endpoints in one Amazon Web Services Region. A resource must be valid and active when you add it as an endpoint.
For more information about endpoint types and requirements for endpoints that you can add to Global Accelerator, see Endpoints for standard accelerators in the Global Accelerator Developer Guide.
", "CreateListener": "Create a listener to process inbound connections from clients to an accelerator. Connections arrive to assigned static IP addresses on a port, port range, or list of port ranges that you specify.
", "DeleteAccelerator": "Delete an accelerator. Before you can delete an accelerator, you must disable it and remove all dependent resources (listeners and endpoint groups). To disable the accelerator, update the accelerator to set Enabled
to false.
When you create an accelerator, by default, Global Accelerator provides you with a set of two static IP addresses. Alternatively, you can bring your own IP address ranges to Global Accelerator and assign IP addresses from those ranges.
The IP addresses are assigned to your accelerator for as long as it exists, even if you disable the accelerator and it no longer accepts or routes traffic. However, when you delete an accelerator, you lose the static IP addresses that are assigned to the accelerator, so you can no longer route traffic by using them. As a best practice, ensure that you have permissions in place to avoid inadvertently deleting accelerators. You can use IAM policies with Global Accelerator to limit the users who have permissions to delete an accelerator. For more information, see Identity and access management in the Global Accelerator Developer Guide.
Delete a cross-account attachment. When you delete an attachment, Global Accelerator revokes the permission to use the resources in the attachment from all principals in the list of principals. Global Accelerator revokes the permission for specific resources by doing the following:
If the principal is an account ID, Global Accelerator reviews every accelerator in the account and removes cross-account endpoints from all accelerators.
If the principal is an accelerator, Global Accelerator reviews just that accelerator and removes cross-account endpoints from it.
If there are overlapping permissions provided by multiple cross-account attachments, Global Accelerator only removes endpoints if there are no current cross-account attachments that provide access permission. For example, if you delete a cross-account attachment that lists an accelerator as a principal, but another cross-account attachment includes the account ID that owns that accelerator, endpoints will not be removed from the accelerator.
", "DeleteCustomRoutingAccelerator": "Delete a custom routing accelerator. Before you can delete an accelerator, you must disable it and remove all dependent resources (listeners and endpoint groups). To disable the accelerator, update the accelerator to set Enabled
to false.
When you create a custom routing accelerator, by default, Global Accelerator provides you with a set of two static IP addresses.
The IP addresses are assigned to your accelerator for as long as it exists, even if you disable the accelerator and it no longer accepts or routes traffic. However, when you delete an accelerator, you lose the static IP addresses that are assigned to the accelerator, so you can no longer route traffic by using them. As a best practice, ensure that you have permissions in place to avoid inadvertently deleting accelerators. You can use IAM policies with Global Accelerator to limit the users who have permissions to delete an accelerator. For more information, see Identity and access management in the Global Accelerator Developer Guide.
Delete an endpoint group from a listener for a custom routing accelerator.
", "DeleteCustomRoutingListener": "Delete a listener for a custom routing accelerator.
", @@ -22,6 +24,7 @@ "DeprovisionByoipCidr": "Releases the specified address range that you provisioned to use with your Amazon Web Services resources through bring your own IP addresses (BYOIP) and deletes the corresponding address pool.
Before you can release an address range, you must stop advertising it by using WithdrawByoipCidr and you must not have any accelerators that are using static IP addresses allocated from its address range.
For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide.
", "DescribeAccelerator": "Describe an accelerator.
", "DescribeAcceleratorAttributes": "Describe the attributes of an accelerator.
", + "DescribeCrossAccountAttachment": "Gets configuration information about a cross-account attachment.
", "DescribeCustomRoutingAccelerator": "Describe a custom routing accelerator.
", "DescribeCustomRoutingAcceleratorAttributes": "Describe the attributes of a custom routing accelerator.
", "DescribeCustomRoutingEndpointGroup": "Describe an endpoint group for a custom routing accelerator.
", @@ -30,6 +33,9 @@ "DescribeListener": "Describe a listener.
", "ListAccelerators": "List the accelerators for an Amazon Web Services account.
", "ListByoipCidrs": "Lists the IP address ranges that were specified in calls to ProvisionByoipCidr, including the current state and a history of state changes.
", + "ListCrossAccountAttachments": "List the cross-account attachments that have been created in Global Accelerator.
", + "ListCrossAccountResourceAccounts": "List the accounts that have cross-account endpoints.
", + "ListCrossAccountResources": "List the cross-account endpoints available to add to an accelerator.
", "ListCustomRoutingAccelerators": "List the custom routing accelerators for an Amazon Web Services account.
", "ListCustomRoutingEndpointGroups": "List the endpoint groups that are associated with a listener for a custom routing accelerator.
", "ListCustomRoutingListeners": "List the listeners for a custom routing accelerator.
", @@ -45,6 +51,7 @@ "UntagResource": "Remove tags from a Global Accelerator resource. When you specify a tag key, the action removes both that key and its associated value. The operation succeeds even if you attempt to remove tags from an accelerator that was already removed.
For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide.
", "UpdateAccelerator": "Update an accelerator to make changes, such as the following:
Change the name of the accelerator.
Disable the accelerator so that it no longer accepts or routes traffic, or so that you can delete it.
Enable the accelerator, if it is disabled.
Change the IP address type to dual-stack if it is IPv4, or change the IP address type to IPv4 if it's dual-stack.
Be aware that static IP addresses remain assigned to your accelerator for as long as it exists, even if you disable the accelerator and it no longer accepts or routes traffic. However, when you delete the accelerator, you lose the static IP addresses that are assigned to it, so you can no longer route traffic by using them.
Global Accelerator is a global service that supports endpoints in multiple Amazon Web Services Regions but you must specify the US West (Oregon) Region to create, update, or otherwise work with accelerators. That is, for example, specify --region us-west-2
on Amazon Web Services CLI commands.
Update the attributes for an accelerator.
", + "UpdateCrossAccountAttachment": "Update a cross-account attachment to add or remove principals or resources. When you update an attachment to remove a principal (account ID or accelerator) or a resource, Global Accelerator revokes the permission for specific resources by doing the following:
If the principal is an account ID, Global Accelerator reviews every accelerator in the account and removes cross-account endpoints from all accelerators.
If the principal is an accelerator, Global Accelerator reviews just that accelerator and removes cross-account endpoints from it.
If there are overlapping permissions provided by multiple cross-account attachments, Global Accelerator only removes endpoints if there are no current cross-account attachments that provide access permission. For example, if you delete a cross-account attachment that lists an accelerator as a principal, but another cross-account attachment includes the account ID that owns that accelerator, endpoints will not be removed from the accelerator.
", "UpdateCustomRoutingAccelerator": "Update a custom routing accelerator.
", "UpdateCustomRoutingAcceleratorAttributes": "Update the attributes for a custom routing accelerator.
", "UpdateCustomRoutingListener": "Update a listener for a custom routing accelerator.
", @@ -153,6 +160,47 @@ "refs": { } }, + "Attachment": { + "base": "A cross-account attachment in Global Accelerator. A cross-account attachment specifies the principals who have permission to add to accelerators in their own account the resources in your account that you also list in the attachment.
", + "refs": { + "Attachments$member": null, + "CreateCrossAccountAttachmentResponse$CrossAccountAttachment": "Information about the cross-account attachment.
", + "DescribeCrossAccountAttachmentResponse$CrossAccountAttachment": "Information about the cross-account attachment.
", + "UpdateCrossAccountAttachmentResponse$CrossAccountAttachment": "Information about the updated cross-account attachment.
" + } + }, + "AttachmentName": { + "base": null, + "refs": { + "Attachment$Name": "The name of the cross-account attachment.
", + "CreateCrossAccountAttachmentRequest$Name": "The name of the cross-account attachment.
", + "UpdateCrossAccountAttachmentRequest$Name": "The name of the cross-account attachment.
" + } + }, + "AttachmentNotFoundException": { + "base": "No cross-account attachment was found.
", + "refs": { + } + }, + "Attachments": { + "base": null, + "refs": { + "ListCrossAccountAttachmentsResponse$CrossAccountAttachments": "Information about the cross-account attachments.
" + } + }, + "AwsAccountId": { + "base": null, + "refs": { + "AwsAccountIds$member": null, + "ListCrossAccountResourcesRequest$ResourceOwnerAwsAccountId": "The account ID of a resource owner in a cross-account attachment.
" + } + }, + "AwsAccountIds": { + "base": null, + "refs": { + "ListCrossAccountResourceAccountsResponse$ResourceOwnerAwsAccountIds": "The account IDs of principals (resource owners) in a cross-account attachment who can add endpoints (resources) listed in the same attachment.
" + } + }, "ByoipCidr": { "base": "Information about an IP address range that is provisioned for use with your Amazon Web Services resources through bring your own IP address (BYOIP).
The following describes each BYOIP State
that your IP address range can be in.
PENDING_PROVISIONING — You’ve submitted a request to provision an IP address range but it is not yet provisioned with Global Accelerator.
READY — The address range is provisioned with Global Accelerator and can be advertised.
PENDING_ADVERTISING — You’ve submitted a request for Global Accelerator to advertise an address range but it is not yet being advertised.
ADVERTISING — The address range is being advertised by Global Accelerator.
PENDING_WITHDRAWING — You’ve submitted a request to withdraw an address range from being advertised but it is still being advertised by Global Accelerator.
PENDING_DEPROVISIONING — You’ve submitted a request to deprovision an address range from Global Accelerator but it is still provisioned.
DEPROVISIONED — The address range is deprovisioned from Global Accelerator.
FAILED_PROVISION — The request to provision the address range from Global Accelerator was not successful. Please make sure that you provide all of the correct information, and try again. If the request fails a second time, contact Amazon Web Services support.
FAILED_ADVERTISING — The request for Global Accelerator to advertise the address range was not successful. Please make sure that you provide all of the correct information, and try again. If the request fails a second time, contact Amazon Web Services support.
FAILED_WITHDRAW — The request to withdraw the address range from advertising by Global Accelerator was not successful. Please make sure that you provide all of the correct information, and try again. If the request fails a second time, contact Amazon Web Services support.
FAILED_DEPROVISION — The request to deprovision the address range from Global Accelerator was not successful. Please make sure that you provide all of the correct information, and try again. If the request fails a second time, contact Amazon Web Services support.
An endpoint (Amazon Web Services resource) that is listed in a cross-account attachment and can be added to an accelerator by specified principals, that are also listed in the attachment.
", + "refs": { + "CrossAccountResources$member": null + } + }, + "CrossAccountResources": { + "base": null, + "refs": { + "ListCrossAccountResourcesResponse$CrossAccountResources": "The endpoints attached to an accelerator in a cross-account attachment.
" + } + }, "CustomRoutingAccelerator": { "base": "Attributes of a custom routing accelerator.
", "refs": { @@ -402,6 +472,11 @@ "refs": { } }, + "DeleteCrossAccountAttachmentRequest": { + "base": null, + "refs": { + } + }, "DeleteCustomRoutingAcceleratorRequest": { "base": null, "refs": { @@ -462,6 +537,16 @@ "refs": { } }, + "DescribeCrossAccountAttachmentRequest": { + "base": null, + "refs": { + } + }, + "DescribeCrossAccountAttachmentResponse": { + "base": null, + "refs": { + } + }, "DescribeCustomRoutingAcceleratorAttributesRequest": { "base": null, "refs": { @@ -643,6 +728,7 @@ "AccessDeniedException$Message": null, "AssociatedEndpointGroupFoundException$Message": null, "AssociatedListenerFoundException$Message": null, + "AttachmentNotFoundException$Message": null, "ByoipCidrNotFoundException$Message": null, "ConflictException$Message": null, "EndpointAlreadyExistsException$Message": null, @@ -670,8 +756,8 @@ "CustomRoutingAccelerator$Enabled": "Indicates whether the accelerator is enabled. The value is true or false. The default value is true.
If the value is set to true, the accelerator cannot be deleted. If set to false, accelerator can be deleted.
", "CustomRoutingAcceleratorAttributes$FlowLogsEnabled": "Indicates whether flow logs are enabled. The default value is false. If the value is true, FlowLogsS3Bucket
and FlowLogsS3Prefix
must be specified.
For more information, see Flow logs in the Global Accelerator Developer Guide.
", "DenyCustomRoutingTrafficRequest$DenyAllTrafficToEndpoint": "Indicates whether all destination IP addresses and ports for a specified VPC subnet endpoint cannot receive traffic from a custom routing accelerator. The value is TRUE or FALSE.
When set to TRUE, no destinations in the custom routing VPC subnet can receive traffic. Note that you cannot specify destination IP addresses and ports when the value is set to TRUE.
When set to FALSE (or not specified), you must specify a list of destination IP addresses that cannot receive traffic. A list of ports is optional. If you don't specify a list of ports, the ports that can accept traffic is the same as the ports configured for the endpoint group.
The default value is FALSE.
", - "EndpointConfiguration$ClientIPPreservationEnabled": "Indicates whether client IP address preservation is enabled for an endpoint. The value is true or false. The default value is true for new accelerators.
If the value is set to true, the client's IP address is preserved in the X-Forwarded-For
request header as traffic travels to applications on the endpoint fronted by the accelerator.
Client IP address preservation is supported, in specific Amazon Web Services Regions, for endpoints that are Application Load Balancers, Amazon EC2 instances, and Network Load Balancers with Security Groups. IMPORTANT: You cannot use client IP address preservation with Network Load Balancers with TLS listeners.
For more information, see Preserve client IP addresses in Global Accelerator in the Global Accelerator Developer Guide.
", - "EndpointDescription$ClientIPPreservationEnabled": "Indicates whether client IP address preservation is enabled for an endpoint. The value is true or false. The default value is true for new accelerators.
If the value is set to true, the client's IP address is preserved in the X-Forwarded-For
request header as traffic travels to applications on the endpoint fronted by the accelerator.
Client IP address preservation is supported, in specific Amazon Web Services Regions, for endpoints that are Application Load Balancers, Amazon EC2 instances, and Network Load Balancers with Security Groups. IMPORTANT: You cannot use client IP address preservation with Network Load Balancers with TLS listeners.
For more information, see Preserve client IP addresses in Global Accelerator in the Global Accelerator Developer Guide.
", + "EndpointConfiguration$ClientIPPreservationEnabled": "Indicates whether client IP address preservation is enabled for an endpoint. The value is true or false. The default value is true for Application Load Balancer endpoints.
If the value is set to true, the client's IP address is preserved in the X-Forwarded-For
request header as traffic travels to applications on the endpoint fronted by the accelerator.
Client IP address preservation is supported, in specific Amazon Web Services Regions, for endpoints that are Application Load Balancers, Amazon EC2 instances, and Network Load Balancers with security groups. IMPORTANT: You cannot use client IP address preservation with Network Load Balancers with TLS listeners.
For more information, see Preserve client IP addresses in Global Accelerator in the Global Accelerator Developer Guide.
", + "EndpointDescription$ClientIPPreservationEnabled": "Indicates whether client IP address preservation is enabled for an endpoint. The value is true or false. The default value is true for Application Load Balancers endpoints.
If the value is set to true, the client's IP address is preserved in the X-Forwarded-For
request header as traffic travels to applications on the endpoint fronted by the accelerator.
Client IP address preservation is supported, in specific Amazon Web Services Regions, for endpoints that are Application Load Balancers, Amazon EC2 instances, and Network Load Balancers with security groups. IMPORTANT: You cannot use client IP address preservation with Network Load Balancers with TLS listeners.
For more information, see Preserve client IP addresses in Global Accelerator in the Global Accelerator Developer Guide.
", "EndpointIdentifier$ClientIPPreservationEnabled": "Indicates whether client IP address preservation is enabled for an endpoint. The value is true or false.
If the value is set to true, the client's IP address is preserved in the X-Forwarded-For
request header as traffic travels to applications on the endpoint fronted by the accelerator.
Update whether flow logs are enabled. The default value is false. If the value is true, FlowLogsS3Bucket
and FlowLogsS3Prefix
must be specified.
For more information, see Flow Logs in the Global Accelerator Developer Guide.
", "UpdateAcceleratorRequest$Enabled": "Indicates whether an accelerator is enabled. The value is true or false. The default value is true.
If the value is set to true, the accelerator cannot be deleted. If set to false, the accelerator can be deleted.
", @@ -696,6 +782,7 @@ "AdvertiseByoipCidrRequest$Cidr": "The address range, in CIDR notation. This must be the exact range that you provisioned. You can't advertise only a portion of the provisioned range.
", "AllowCustomRoutingTrafficRequest$EndpointGroupArn": "The Amazon Resource Name (ARN) of the endpoint group.
", "AllowCustomRoutingTrafficRequest$EndpointId": "An ID for the endpoint. For custom routing accelerators, this is the virtual private cloud (VPC) subnet ID.
", + "Attachment$AttachmentArn": "The Amazon Resource Name (ARN) of the cross-account attachment.
", "ByoipCidr$Cidr": "The address range, in CIDR notation.
", "ByoipCidrEvent$Message": "A string that contains an Event
message describing changes that you make in the status of an IP address range that you bring to Global Accelerator through bring your own IP address (BYOIP).
The plain-text authorization message for the prefix and account.
", @@ -708,17 +795,21 @@ "CreateEndpointGroupRequest$ListenerArn": "The Amazon Resource Name (ARN) of the listener.
", "CreateEndpointGroupRequest$EndpointGroupRegion": "The Amazon Web Services Region where the endpoint group is located. A listener can have only one endpoint group in a specific Region.
", "CreateListenerRequest$AcceleratorArn": "The Amazon Resource Name (ARN) of your accelerator.
", + "CrossAccountResource$EndpointId": "The endpoint ID for the endpoint that is listed in a cross-account attachment and can be added to an accelerator by specified principals.
", + "CrossAccountResource$AttachmentArn": "The Amazon Resource Name (ARN) of the cross-account attachment that specifies the endpoints (resources) that can be added to accelerators and principals that have permission to add the endpoints to accelerators.
", "CustomRoutingAccelerator$AcceleratorArn": "The Amazon Resource Name (ARN) of the custom routing accelerator.
", "CustomRoutingAccelerator$Name": "The name of the accelerator. The name must contain only alphanumeric characters or hyphens (-), and must not begin or end with a hyphen.
", "CustomRoutingAccelerator$DnsName": "The Domain Name System (DNS) name that Global Accelerator creates that points to an accelerator's static IPv4 addresses.
The naming convention for the DNS name is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .awsglobalaccelerator.com. For example: a1234567890abcdef.awsglobalaccelerator.com.
If you have a dual-stack accelerator, you also have a second DNS name, DualStackDnsName
, that points to both the A record and the AAAA record for all four static addresses for the accelerator: two IPv4 addresses and two IPv6 addresses.
For more information about the default DNS name, see Support for DNS addressing in Global Accelerator in the Global Accelerator Developer Guide.
", "CustomRoutingAcceleratorAttributes$FlowLogsS3Bucket": "The name of the Amazon S3 bucket for the flow logs. Attribute is required if FlowLogsEnabled
is true
. The bucket must exist and have a bucket policy that grants Global Accelerator permission to write to the bucket.
The prefix for the location in the Amazon S3 bucket for the flow logs. Attribute is required if FlowLogsEnabled
is true
.
If you don’t specify a prefix, the flow logs are stored in the root of the bucket. If you specify slash (/) for the S3 bucket prefix, the log file bucket folder structure will include a double slash (//), like the following:
DOC-EXAMPLE-BUCKET//AWSLogs/aws_account_id
", "CustomRoutingEndpointConfiguration$EndpointId": "An ID for the endpoint. For custom routing accelerators, this is the virtual private cloud (VPC) subnet ID.
", + "CustomRoutingEndpointConfiguration$AttachmentArn": "The Amazon Resource Name (ARN) of the cross-account attachment that specifies the endpoints (resources) that can be added to accelerators and principals that have permission to add the endpoints to accelerators.
", "CustomRoutingEndpointDescription$EndpointId": "An ID for the endpoint. For custom routing accelerators, this is the virtual private cloud (VPC) subnet ID.
", "CustomRoutingEndpointGroup$EndpointGroupArn": "The Amazon Resource Name (ARN) of the endpoint group.
", "CustomRoutingEndpointGroup$EndpointGroupRegion": "The Amazon Web Services Region where the endpoint group is located.
", "CustomRoutingListener$ListenerArn": "The Amazon Resource Name (ARN) of the listener.
", "DeleteAcceleratorRequest$AcceleratorArn": "The Amazon Resource Name (ARN) of an accelerator.
", + "DeleteCrossAccountAttachmentRequest$AttachmentArn": "The Amazon Resource Name (ARN) for the cross-account attachment to delete.
", "DeleteCustomRoutingAcceleratorRequest$AcceleratorArn": "The Amazon Resource Name (ARN) of the custom routing accelerator to delete.
", "DeleteCustomRoutingEndpointGroupRequest$EndpointGroupArn": "The Amazon Resource Name (ARN) of the endpoint group to delete.
", "DeleteCustomRoutingListenerRequest$ListenerArn": "The Amazon Resource Name (ARN) of the listener to delete.
", @@ -729,6 +820,7 @@ "DeprovisionByoipCidrRequest$Cidr": "The address range, in CIDR notation. The prefix must be the same prefix that you specified when you provisioned the address range.
", "DescribeAcceleratorAttributesRequest$AcceleratorArn": "The Amazon Resource Name (ARN) of the accelerator with the attributes that you want to describe.
", "DescribeAcceleratorRequest$AcceleratorArn": "The Amazon Resource Name (ARN) of the accelerator to describe.
", + "DescribeCrossAccountAttachmentRequest$AttachmentArn": "The Amazon Resource Name (ARN) for the cross-account attachment to describe.
", "DescribeCustomRoutingAcceleratorAttributesRequest$AcceleratorArn": "The Amazon Resource Name (ARN) of the custom routing accelerator to describe the attributes for.
", "DescribeCustomRoutingAcceleratorRequest$AcceleratorArn": "The Amazon Resource Name (ARN) of the accelerator to describe.
", "DescribeCustomRoutingEndpointGroupRequest$EndpointGroupArn": "The Amazon Resource Name (ARN) of the endpoint group to describe.
", @@ -740,6 +832,7 @@ "DestinationPortMapping$EndpointId": "The ID for the virtual private cloud (VPC) subnet.
", "DestinationPortMapping$EndpointGroupRegion": "The Amazon Web Services Region for the endpoint group.
", "EndpointConfiguration$EndpointId": "An ID for the endpoint. If the endpoint is a Network Load Balancer or Application Load Balancer, this is the Amazon Resource Name (ARN) of the resource. If the endpoint is an Elastic IP address, this is the Elastic IP address allocation ID. For Amazon EC2 instances, this is the EC2 instance ID. A resource must be valid and active when you add it as an endpoint.
An Application Load Balancer can be either internal or internet-facing.
", + "EndpointConfiguration$AttachmentArn": "The Amazon Resource Name (ARN) of the cross-account attachment that specifies the endpoints (resources) that can be added to accelerators and principals that have permission to add the endpoints to accelerators.
", "EndpointDescription$EndpointId": "An ID for the endpoint. If the endpoint is a Network Load Balancer or Application Load Balancer, this is the Amazon Resource Name (ARN) of the resource. If the endpoint is an Elastic IP address, this is the Elastic IP address allocation ID. For Amazon EC2 instances, this is the EC2 instance ID.
An Application Load Balancer can be either internal or internet-facing.
", "EndpointDescription$HealthReason": "Returns a null result.
", "EndpointGroup$EndpointGroupArn": "The Amazon Resource Name (ARN) of the endpoint group.
", @@ -751,6 +844,11 @@ "ListAcceleratorsResponse$NextToken": "The token for the next set of results. You receive this token from a previous call.
", "ListByoipCidrsRequest$NextToken": "The token for the next page of results.
", "ListByoipCidrsResponse$NextToken": "The token for the next page of results.
", + "ListCrossAccountAttachmentsRequest$NextToken": "The token for the next set of results. You receive this token from a previous call.
", + "ListCrossAccountAttachmentsResponse$NextToken": "The token for the next set of results. You receive this token from a previous call.
", + "ListCrossAccountResourcesRequest$AcceleratorArn": "The Amazon Resource Name (ARN) of an accelerator in a cross-account attachment.
", + "ListCrossAccountResourcesRequest$NextToken": "The token for the next set of results. You receive this token from a previous call.
", + "ListCrossAccountResourcesResponse$NextToken": "The token for the next set of results. You receive this token from a previous call.
", "ListCustomRoutingAcceleratorsRequest$NextToken": "The token for the next set of results. You receive this token from a previous call.
", "ListCustomRoutingAcceleratorsResponse$NextToken": "The token for the next set of results. You receive this token from a previous call.
", "ListCustomRoutingEndpointGroupsRequest$ListenerArn": "The Amazon Resource Name (ARN) of the listener to list endpoint groups for.
", @@ -779,12 +877,15 @@ "ProvisionByoipCidrRequest$Cidr": "The public IPv4 address range, in CIDR notation. The most specific IP prefix that you can specify is /24. The address range cannot overlap with another address range that you've brought to this or another Region.
", "RemoveCustomRoutingEndpointsRequest$EndpointGroupArn": "The Amazon Resource Name (ARN) of the endpoint group to remove endpoints from.
", "RemoveEndpointsRequest$EndpointGroupArn": "The Amazon Resource Name (ARN) of the endpoint group.
", + "Resource$EndpointId": "The endpoint ID for the endpoint (Amazon Web Services resource).
", + "Resource$Region": "The Amazon Web Services Region where a resource is located.
", "SocketAddress$IpAddress": "The IP address for the socket address.
", "UpdateAcceleratorAttributesRequest$AcceleratorArn": "The Amazon Resource Name (ARN) of the accelerator that you want to update.
", "UpdateAcceleratorAttributesRequest$FlowLogsS3Bucket": "The name of the Amazon S3 bucket for the flow logs. Attribute is required if FlowLogsEnabled
is true
. The bucket must exist and have a bucket policy that grants Global Accelerator permission to write to the bucket.
Update the prefix for the location in the Amazon S3 bucket for the flow logs. Attribute is required if FlowLogsEnabled
is true
.
If you specify slash (/) for the S3 bucket prefix, the log file bucket folder structure will include a double slash (//), like the following:
s3-bucket_name//AWSLogs/aws_account_id
", "UpdateAcceleratorRequest$AcceleratorArn": "The Amazon Resource Name (ARN) of the accelerator to update.
", "UpdateAcceleratorRequest$Name": "The name of the accelerator. The name can have a maximum of 64 characters, must contain only alphanumeric characters, periods (.), or hyphens (-), and must not begin or end with a hyphen or period.
", + "UpdateCrossAccountAttachmentRequest$AttachmentArn": "The Amazon Resource Name (ARN) of the cross-account attachment to update.
", "UpdateCustomRoutingAcceleratorAttributesRequest$AcceleratorArn": "The Amazon Resource Name (ARN) of the custom routing accelerator to update attributes for.
", "UpdateCustomRoutingAcceleratorAttributesRequest$FlowLogsS3Bucket": "The name of the Amazon S3 bucket for the flow logs. Attribute is required if FlowLogsEnabled
is true
. The bucket must exist and have a bucket policy that grants Global Accelerator permission to write to the bucket.
Update the prefix for the location in the Amazon S3 bucket for the flow logs. Attribute is required if FlowLogsEnabled
is true
.
If you don’t specify a prefix, the flow logs are stored in the root of the bucket. If you specify slash (/) for the S3 bucket prefix, the log file bucket folder structure will include a double slash (//), like the following:
DOC-EXAMPLE-BUCKET//AWSLogs/aws_account_id
", @@ -838,6 +939,7 @@ "base": null, "refs": { "CreateAcceleratorRequest$IdempotencyToken": "A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of an accelerator.
", + "CreateCrossAccountAttachmentRequest$IdempotencyToken": "A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of the request.
", "CreateCustomRoutingAcceleratorRequest$IdempotencyToken": "A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of the request.
", "CreateCustomRoutingEndpointGroupRequest$IdempotencyToken": "A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of the request.
", "CreateCustomRoutingListenerRequest$IdempotencyToken": "A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of the request.
", @@ -941,6 +1043,36 @@ "refs": { } }, + "ListCrossAccountAttachmentsRequest": { + "base": null, + "refs": { + } + }, + "ListCrossAccountAttachmentsResponse": { + "base": null, + "refs": { + } + }, + "ListCrossAccountResourceAccountsRequest": { + "base": null, + "refs": { + } + }, + "ListCrossAccountResourceAccountsResponse": { + "base": null, + "refs": { + } + }, + "ListCrossAccountResourcesRequest": { + "base": null, + "refs": { + } + }, + "ListCrossAccountResourcesResponse": { + "base": null, + "refs": { + } + }, "ListCustomRoutingAcceleratorsRequest": { "base": null, "refs": { @@ -1046,6 +1178,8 @@ "refs": { "ListAcceleratorsRequest$MaxResults": "The number of Global Accelerator objects that you want to return with this call. The default value is 10.
", "ListByoipCidrsRequest$MaxResults": "The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken
value.
The number of cross-account attachment objects that you want to return with this call. The default value is 10.
", + "ListCrossAccountResourcesRequest$MaxResults": "The number of cross-account endpoints objects that you want to return with this call. The default value is 10.
", "ListCustomRoutingAcceleratorsRequest$MaxResults": "The number of custom routing Global Accelerator objects that you want to return with this call. The default value is 10.
", "ListCustomRoutingEndpointGroupsRequest$MaxResults": "The number of endpoint group objects that you want to return with this call. The default value is 10.
", "ListCustomRoutingListenersRequest$MaxResults": "The number of listener objects that you want to return with this call. The default value is 10.
", @@ -1119,6 +1253,21 @@ "UpdateListenerRequest$PortRanges": "The updated list of port ranges for the connections from clients to the accelerator.
" } }, + "Principal": { + "base": null, + "refs": { + "Principals$member": null + } + }, + "Principals": { + "base": null, + "refs": { + "Attachment$Principals": "The principals included in the cross-account attachment.
", + "CreateCrossAccountAttachmentRequest$Principals": "The principals to list in the cross-account attachment. A principal can be an Amazon Web Services account number or the Amazon Resource Name (ARN) for an accelerator.
", + "UpdateCrossAccountAttachmentRequest$AddPrincipals": "The principals to add to the cross-account attachment. A principal is an account or the Amazon Resource Name (ARN) of an accelerator that the attachment gives permission to add the resources from another account, listed in the attachment.
To add more than one principal, separate the account numbers or accelerator ARNs, or both, with commas.
", + "UpdateCrossAccountAttachmentRequest$RemovePrincipals": "The principals to remove from the cross-account attachment. A principal is an account or the Amazon Resource Name (ARN) of an accelerator that is given permission to add the resources from another account, listed in the cross-account attachment.
To remove more than one principal, separate the account numbers or accelerator ARNs, or both, with commas.
" + } + }, "Protocol": { "base": null, "refs": { @@ -1154,6 +1303,12 @@ "refs": { } }, + "Resource": { + "base": "An Amazon Web Services resource that is supported by Global Accelerator and can be added as an endpoint for an accelerator.
", + "refs": { + "Resources$member": null + } + }, "ResourceArn": { "base": null, "refs": { @@ -1162,6 +1317,15 @@ "UntagResourceRequest$ResourceArn": "The Amazon Resource Name (ARN) of the Global Accelerator resource to remove tags from. An ARN uniquely identifies a resource.
" } }, + "Resources": { + "base": null, + "refs": { + "Attachment$Resources": "The resources included in the cross-account attachment.
", + "CreateCrossAccountAttachmentRequest$Resources": "The Amazon Resource Names (ARNs) for the resources to list in the cross-account attachment. A resource can be any supported Amazon Web Services resource type for Global Accelerator.
", + "UpdateCrossAccountAttachmentRequest$AddResources": "The resources to add to the cross-account attachment. A resource listed in a cross-account attachment can be added to an accelerator by the principals that are listed in the attachment.
To add more than one resource, separate the resource ARNs with commas.
", + "UpdateCrossAccountAttachmentRequest$RemoveResources": "The resources to remove from the cross-account attachment. A resource listed in a cross-account attachment can be added to an accelerator fy principals that are listed in the cross-account attachment.
To remove more than one resource, separate the resource ARNs with commas.
" + } + }, "SocketAddress": { "base": "An IP address/port combination.
", "refs": { @@ -1215,6 +1379,7 @@ "base": null, "refs": { "CreateAcceleratorRequest$Tags": "Create tags for an accelerator.
For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide.
", + "CreateCrossAccountAttachmentRequest$Tags": "Create tags for cross-account attachment.
For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide.
", "CreateCustomRoutingAcceleratorRequest$Tags": "Create tags for an accelerator.
For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide.
", "ListTagsForResourceResponse$Tags": "Root level tag for the Tags parameters.
", "TagResourceRequest$Tags": "The tags to add to a resource. A tag consists of a key and a value that you define.
" @@ -1234,6 +1399,8 @@ "Accelerator$CreatedTime": "The date and time that the accelerator was created.
", "Accelerator$LastModifiedTime": "The date and time that the accelerator was last modified.
", "AcceleratorEvent$Timestamp": "A timestamp for when you update an accelerator in Global Accelerator from IPv4 to dual-stack, or dual-stack to IPv4.
", + "Attachment$LastModifiedTime": "The date and time that the cross-account attachment was last modified.
", + "Attachment$CreatedTime": "The date and time that the cross-account attachment was created.
", "ByoipCidrEvent$Timestamp": "A timestamp for when you make a status change for an IP address range that you bring to Global Accelerator through bring your own IP address (BYOIP).
", "CustomRoutingAccelerator$CreatedTime": "The date and time that the accelerator was created.
", "CustomRoutingAccelerator$LastModifiedTime": "The date and time that the accelerator was last modified.
" @@ -1282,6 +1449,16 @@ "refs": { } }, + "UpdateCrossAccountAttachmentRequest": { + "base": null, + "refs": { + } + }, + "UpdateCrossAccountAttachmentResponse": { + "base": null, + "refs": { + } + }, "UpdateCustomRoutingAcceleratorAttributesRequest": { "base": null, "refs": { diff --git a/models/apis/globalaccelerator/2018-08-08/endpoint-rule-set-1.json b/models/apis/globalaccelerator/2018-08-08/endpoint-rule-set-1.json index d26fc19a37e..046cde20fde 100644 --- a/models/apis/globalaccelerator/2018-08-08/endpoint-rule-set-1.json +++ b/models/apis/globalaccelerator/2018-08-08/endpoint-rule-set-1.json @@ -40,7 +40,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -83,7 +82,8 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -96,7 +96,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -110,7 +109,6 @@ "assign": "PartitionResult" } ], - "type": "tree", "rules": [ { "conditions": [ @@ -133,7 +131,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -168,7 +165,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -179,14 +175,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "FIPS and DualStack are enabled, but this partition does not support one or both", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -200,14 +198,12 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ - true, { "fn": "getAttr", "argv": [ @@ -216,11 +212,11 @@ }, "supportsFIPS" ] - } + }, + true ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -231,14 +227,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "FIPS is enabled but this partition does not support FIPS", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [ @@ -252,7 +250,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -272,7 +269,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [], @@ -283,14 +279,16 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" }, { "conditions": [], "error": "DualStack is enabled but this partition does not support DualStack", "type": "error" } - ] + ], + "type": "tree" }, { "conditions": [], @@ -301,9 +299,11 @@ }, "type": "endpoint" } - ] + ], + "type": "tree" } - ] + ], + "type": "tree" }, { "conditions": [], diff --git a/models/apis/globalaccelerator/2018-08-08/paginators-1.json b/models/apis/globalaccelerator/2018-08-08/paginators-1.json index b91aec0a3e9..cd4d6729ddd 100644 --- a/models/apis/globalaccelerator/2018-08-08/paginators-1.json +++ b/models/apis/globalaccelerator/2018-08-08/paginators-1.json @@ -12,6 +12,18 @@ "limit_key": "MaxResults", "result_key": "ByoipCidrs" }, + "ListCrossAccountAttachments": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults", + "result_key": "CrossAccountAttachments" + }, + "ListCrossAccountResources": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults", + "result_key": "CrossAccountResources" + }, "ListCustomRoutingAccelerators": { "input_token": "NextToken", "output_token": "NextToken", diff --git a/models/apis/m2/2021-04-28/api-2.json b/models/apis/m2/2021-04-28/api-2.json index 4e9f53526ae..b29a2a2d8fe 100644 --- a/models/apis/m2/2021-04-28/api-2.json +++ b/models/apis/m2/2021-04-28/api-2.json @@ -224,8 +224,11 @@ "output":{"shape":"GetDataSetDetailsResponse"}, "errors":[ {"shape":"ResourceNotFoundException"}, + {"shape":"ExecutionTimeoutException"}, + {"shape":"ServiceUnavailableException"}, {"shape":"ThrottlingException"}, {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"}, {"shape":"ValidationException"}, {"shape":"InternalServerException"} ] @@ -390,8 +393,11 @@ "output":{"shape":"ListDataSetsResponse"}, "errors":[ {"shape":"ResourceNotFoundException"}, + {"shape":"ExecutionTimeoutException"}, + {"shape":"ServiceUnavailableException"}, {"shape":"ThrottlingException"}, {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"}, {"shape":"ValidationException"}, {"shape":"InternalServerException"} ] @@ -763,6 +769,7 @@ "type":"structure", "members":{ "fileBatchJobIdentifier":{"shape":"FileBatchJobIdentifier"}, + "s3BatchJobIdentifier":{"shape":"S3BatchJobIdentifier"}, "scriptBatchJobIdentifier":{"shape":"ScriptBatchJobIdentifier"} }, "union":true @@ -784,13 +791,13 @@ }, "BatchParamKey":{ "type":"string", - "max":8, + "max":32, "min":1, "pattern":"^[A-Za-z][A-Za-z0-9]{1,7}$" }, "BatchParamValue":{ "type":"string", - "max":44, + "max":80, "min":0 }, "Boolean":{"type":"boolean"}, @@ -1024,6 +1031,7 @@ ], "members":{ "status":{"shape":"DataSetTaskLifecycle"}, + "statusReason":{"shape":"String"}, "summary":{"shape":"DataSetImportSummary"}, "taskId":{"shape":"Identifier"} } @@ -1049,7 +1057,8 @@ "enum":[ "Creating", "Running", - "Completed" + "Completed", + "Failed" ] }, "DataSetsSummaryList":{ @@ -1157,7 +1166,8 @@ "enum":[ "Deploying", "Succeeded", - "Failed" + "Failed", + "Updating Deployment" ] }, "DeploymentList":{ @@ -1279,6 +1289,17 @@ "type":"list", "member":{"shape":"EnvironmentSummary"} }, + "ExecutionTimeoutException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "error":{"httpStatusCode":504}, + "exception":true, + "fault":true, + "retryable":{"throttling":false} + }, "ExternalLocation":{ "type":"structure", "members":{ @@ -1488,6 +1509,7 @@ "creationTime":{"shape":"Timestamp"}, "dataSetName":{"shape":"String200"}, "dataSetOrg":{"shape":"DatasetDetailOrgAttributes"}, + "fileSize":{"shape":"Long"}, "lastReferencedTime":{"shape":"Timestamp"}, "lastUpdatedTime":{"shape":"Timestamp"}, "location":{"shape":"String2000"}, @@ -1659,6 +1681,14 @@ "fault":true, "retryable":{"throttling":false} }, + "JobIdentifier":{ + "type":"structure", + "members":{ + "fileName":{"shape":"String"}, + "scriptName":{"shape":"String"} + }, + "union":true + }, "ListApplicationVersionsRequest":{ "type":"structure", "required":["applicationId"], @@ -1852,6 +1882,11 @@ "location":"querystring", "locationName":"maxResults" }, + "nameFilter":{ + "shape":"String200", + "location":"querystring", + "locationName":"nameFilter" + }, "nextToken":{ "shape":"NextToken", "location":"querystring", @@ -2000,6 +2035,10 @@ "logType":{"shape":"String20"} } }, + "Long":{ + "type":"long", + "box":true + }, "MaintenanceSchedule":{ "type":"structure", "members":{ @@ -2108,6 +2147,18 @@ }, "exception":true }, + "S3BatchJobIdentifier":{ + "type":"structure", + "required":[ + "bucket", + "identifier" + ], + "members":{ + "bucket":{"shape":"String"}, + "identifier":{"shape":"JobIdentifier"}, + "keyPrefix":{"shape":"String"} + } + }, "ScriptBatchJobDefinition":{ "type":"structure", "required":["scriptName"], @@ -2138,6 +2189,17 @@ }, "exception":true }, + "ServiceUnavailableException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "error":{"httpStatusCode":503}, + "exception":true, + "fault":true, + "retryable":{"throttling":false} + }, "StartApplicationRequest":{ "type":"structure", "required":["applicationId"], @@ -2365,6 +2427,7 @@ "location":"uri", "locationName":"environmentId" }, + "forceUpdate":{"shape":"Boolean"}, "instanceType":{"shape":"String20"}, "preferredMaintenanceWindow":{"shape":"String"} } diff --git a/models/apis/m2/2021-04-28/docs-2.json b/models/apis/m2/2021-04-28/docs-2.json index 3997f313311..7392942203b 100644 --- a/models/apis/m2/2021-04-28/docs-2.json +++ b/models/apis/m2/2021-04-28/docs-2.json @@ -198,6 +198,7 @@ "GetEnvironmentResponse$publiclyAccessible": "Whether applications running in this runtime environment are publicly accessible.
", "StopApplicationRequest$forceStop": "Stopping an application process can take a long time. Setting this parameter to true lets you force stop the application so you don't need to wait until the process finishes to apply another action on the application. The default value is false.
", "UpdateEnvironmentRequest$applyDuringMaintenanceWindow": "Indicates whether to update the runtime environment during the maintenance window. The default is false. Currently, Amazon Web Services Mainframe Modernization accepts the engineVersion
parameter only if applyDuringMaintenanceWindow
is true. If any parameter other than engineVersion
is provided in UpdateEnvironmentRequest
, it will fail if applyDuringMaintenanceWindow
is set to true.
Forces the updates on the environment. This option is needed if the applications in the environment are not stopped or if there are ongoing application-related activities in the environment.
If you use this option, be aware that it could lead to data corruption in the applications, and that you might need to perform repair and recovery procedures for the applications.
This option is not needed if the attribute being updated is preferredMaintenanceWindow
.
Indicates whether indexes for this dataset are stored as compressed values. If you have a large data set (typically > 100 Mb), consider setting this flag to True.
", "VsamDetailAttributes$cacheAtStartup": "If set to True, enforces loading the data set into cache before it’s used by the application.
", "VsamDetailAttributes$compressed": "Indicates whether indexes for this dataset are stored as compressed values. If you have a large data set (typically > 100 Mb), consider setting this flag to True.
" @@ -216,7 +217,7 @@ "CapacityValue": { "base": null, "refs": { - "GetEnvironmentResponse$actualCapacity": "The number of instances included in the runtime environment. A standalone runtime environment has a maxiumum of one instance. Currently, a high availability runtime environment has a maximum of two instances.
", + "GetEnvironmentResponse$actualCapacity": "The number of instances included in the runtime environment. A standalone runtime environment has a maximum of one instance. Currently, a high availability runtime environment has a maximum of two instances.
", "HighAvailabilityConfig$desiredCapacity": "The number of instances in a high availability configuration. The minimum possible value is 1 and the maximum is 100.
", "UpdateEnvironmentRequest$desiredCapacity": "The desired capacity for the runtime environment to update. The minimum possible value is 0 and the maximum is 100.
" } @@ -494,6 +495,11 @@ "ListEnvironmentsResponse$environments": "Returns a list of summary details for all the runtime environments in your account.
" } }, + "ExecutionTimeoutException": { + "base": "Failed to connect to server, or didn’t receive response within expected time period.
", + "refs": { + } + }, "ExternalLocation": { "base": "Defines an external storage location.
", "refs": { @@ -707,6 +713,12 @@ "refs": { } }, + "JobIdentifier": { + "base": "Identifies a specific batch job.
", + "refs": { + "S3BatchJobIdentifier$identifier": "Identifies the batch job definition. This identifier can also point to any batch job definition that already exists in the application or to one of the batch job definitions within the directory that is specified in keyPrefix
.
File size of the dataset.
" + } + }, "MaintenanceSchedule": { "base": "The information about the maintenance schedule.
", "refs": { @@ -922,6 +940,12 @@ "refs": { } }, + "S3BatchJobIdentifier": { + "base": "A batch job identifier in which the batch jobs to run are identified by an Amazon S3 location.
", + "refs": { + "BatchJobIdentifier$s3BatchJobIdentifier": "Specifies an Amazon S3 location that identifies the batch jobs that you want to run. Use this identifier to run ad hoc batch jobs.
" + } + }, "ScriptBatchJobDefinition": { "base": "A batch job definition contained in a script.
", "refs": { @@ -939,6 +963,11 @@ "refs": { } }, + "ServiceUnavailableException": { + "base": "Server cannot process the request at the moment.
", + "refs": { + } + }, "StartApplicationRequest": { "base": null, "refs": { @@ -1001,10 +1030,12 @@ "DataSet$datasetName": "The logical identifier for a specific data set (in mainframe format).
", "DataSet$relativePath": "The relative location of the data set in the database or file system.
", "DataSet$storageType": "The storage type of the data set: database or file system. For Micro Focus, database corresponds to datastore and file system corresponds to EFS/FSX. For Blu Age, there is no support of file system and database corresponds to Blusam.
", + "DataSetImportTask$statusReason": "If dataset import failed, the failure reason will show here.
", "DeployedVersionSummary$statusReason": "The reason for the reported status.
", "DeploymentSummary$statusReason": "The reason for the reported status.
", "EngineVersionsSummary$engineType": "The type of target platform for the application.
", "EngineVersionsSummary$engineVersion": "The version of the engine type used by the application.
", + "ExecutionTimeoutException$message": null, "FileBatchJobDefinition$fileName": "The name of the file containing the batch job definition.
", "FileBatchJobDefinition$folderPath": "The path to the file containing the batch job definition.
", "FileBatchJobIdentifier$fileName": "The file name for the batch job identifier.
", @@ -1021,6 +1052,8 @@ "GetEnvironmentResponse$statusReason": "The reason for the reported status.
", "GetSignedBluinsightsUrlResponse$signedBiUrl": "Single sign-on AWS Blu Insights URL.
", "InternalServerException$message": null, + "JobIdentifier$fileName": "The name of the file that contains the batch job definition.
", + "JobIdentifier$scriptName": "The name of the script that contains the batch job definition.
", "ListBatchJobDefinitionsRequest$prefix": "If the batch job definition is a FileBatchJobDefinition, the prefix allows you to search on the file names of FileBatchJobDefinitions.
", "PendingMaintenance$engineVersion": "The specific runtime engine that the maintenance schedule applies to.
", "PoAttributes$encoding": "The character set encoding of the data set.
", @@ -1035,6 +1068,8 @@ "ResourceNotFoundException$message": null, "ResourceNotFoundException$resourceId": "The ID of the missing resource.
", "ResourceNotFoundException$resourceType": "The type of the missing resource.
", + "S3BatchJobIdentifier$bucket": "The Amazon S3 bucket that contains the batch job definitions.
", + "S3BatchJobIdentifier$keyPrefix": "The key prefix that specifies the path to the folder in the S3 bucket that has the batch job definitions.
", "ScriptBatchJobDefinition$scriptName": "The name of the script containing the batch job definition.
", "ScriptBatchJobIdentifier$scriptName": "The name of the script containing the batch job definition.
", "ServiceQuotaExceededException$message": null, @@ -1042,10 +1077,11 @@ "ServiceQuotaExceededException$resourceId": "The ID of the resource that is exceeding the quota limit.
", "ServiceQuotaExceededException$resourceType": "The type of resource that is exceeding the quota limit for Amazon Web Services Mainframe Modernization.
", "ServiceQuotaExceededException$serviceCode": "A code that identifies the service that the exceeded quota belongs to.
", + "ServiceUnavailableException$message": null, "ThrottlingException$message": null, - "ThrottlingException$quotaCode": "The identifier of the throttled reuqest.
", + "ThrottlingException$quotaCode": "The identifier of the throttled request.
", "ThrottlingException$serviceCode": "The identifier of the service that the throttled request was made to.
", - "UpdateEnvironmentRequest$preferredMaintenanceWindow": "Configures the maintenance window you want for the runtime environment. If you do not provide a value, a random system-generated value will be assigned.
", + "UpdateEnvironmentRequest$preferredMaintenanceWindow": "Configures the maintenance window that you want for the runtime environment. The maintenance window must have the format ddd:hh24:mi-ddd:hh24:mi
and must be less than 24 hours. The following two examples are valid maintenance windows: sun:23:45-mon:00:15
or sat:01:00-sat:03:00
.
If you do not provide a value, a random system-generated value will be assigned.
", "ValidationException$message": null, "ValidationExceptionField$message": "The message of the exception field.
", "ValidationExceptionField$name": "The name of the exception field.
", @@ -1090,6 +1126,7 @@ "FsxStorageConfiguration$mountPoint": "The mount point for the file system.
", "GetDataSetDetailsRequest$dataSetName": "The name of the data set.
", "GetDataSetDetailsResponse$dataSetName": "The name of the data set.
", + "ListDataSetsRequest$nameFilter": "Filter dataset name matching the specified pattern. Can use * and % as wild cards.
", "ListDataSetsRequest$prefix": "The prefix of the data set name, which you can use to filter the list of data sets.
" } }, @@ -1111,9 +1148,9 @@ "String50": { "base": null, "refs": { - "CreateEnvironmentRequest$preferredMaintenanceWindow": "Configures the maintenance window you want for the runtime environment. If you do not provide a value, a random system-generated value will be assigned.
", + "CreateEnvironmentRequest$preferredMaintenanceWindow": "Configures the maintenance window that you want for the runtime environment. The maintenance window must have the format ddd:hh24:mi-ddd:hh24:mi
and must be less than 24 hours. The following two examples are valid maintenance windows: sun:23:45-mon:00:15
or sat:01:00-sat:03:00
.
If you do not provide a value, a random system-generated value will be assigned.
", "GdgDetailAttributes$rollDisposition": "The disposition of the data set in the catalog.
", - "GetEnvironmentResponse$preferredMaintenanceWindow": "Configures the maintenance window you want for the runtime environment. If you do not provide a value, a random system-generated value will be assigned.
", + "GetEnvironmentResponse$preferredMaintenanceWindow": "The maintenance window for the runtime environment. If you don't provide a value for the maintenance window, the service assigns a random value.
", "GetEnvironmentResponse$vpcId": "The unique identifier for the VPC used with this runtime environment.
", "String50List$member": null } diff --git a/models/apis/m2/2021-04-28/endpoint-rule-set-1.json b/models/apis/m2/2021-04-28/endpoint-rule-set-1.json index ef314671806..7d21c70a90f 100644 --- a/models/apis/m2/2021-04-28/endpoint-rule-set-1.json +++ b/models/apis/m2/2021-04-28/endpoint-rule-set-1.json @@ -40,7 +40,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -58,293 +57,258 @@ "type": "error" }, { - "conditions": [], - "type": "tree", - "rules": [ + "conditions": [ { - "conditions": [ + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [], - "endpoint": { - "url": { - "ref": "Endpoint" + "ref": "UseDualStack" }, - "properties": {}, - "headers": {} - }, - "type": "endpoint" + true + ] } - ] + ], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" + }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" } - ] + ], + "type": "tree" }, { - "conditions": [], - "type": "tree", + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Region" + } + ] + } + ], "rules": [ { "conditions": [ { - "fn": "isSet", + "fn": "aws.partition", "argv": [ { "ref": "Region" } - ] + ], + "assign": "PartitionResult" } ], - "type": "tree", "rules": [ { "conditions": [ { - "fn": "aws.partition", + "fn": "booleanEquals", "argv": [ { - "ref": "Region" - } - ], - "assign": "PartitionResult" + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] } ], - "type": "tree", "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseFIPS" - }, - true + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } ] }, { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", + "fn": "getAttr", "argv": [ - true, { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - }, - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://m2-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://m2-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://m2-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://m2-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://m2.{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://m2.{Region}.{PartitionResult#dnsSuffix}", + "url": "https://m2.{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://m2.{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/neptunedata/2023-08-01/api-2.json b/models/apis/neptunedata/2023-08-01/api-2.json index 65eb6934c45..9e26fba2773 100644 --- a/models/apis/neptunedata/2023-08-01/api-2.json +++ b/models/apis/neptunedata/2023-08-01/api-2.json @@ -2510,9 +2510,6 @@ "requestId", "code" ], - "retryable": { - "throttling": false - }, "type": "structure" }, "Classes": { diff --git a/models/apis/neptunedata/2023-08-01/docs-2.json b/models/apis/neptunedata/2023-08-01/docs-2.json index ff596f69445..5c77997ede5 100644 --- a/models/apis/neptunedata/2023-08-01/docs-2.json +++ b/models/apis/neptunedata/2023-08-01/docs-2.json @@ -16,8 +16,8 @@ "ExecuteGremlinExplainQuery": "Executes a Gremlin Explain query.
Amazon Neptune has added a Gremlin feature named explain
that provides is a self-service tool for understanding the execution approach being taken by the Neptune engine for the query. You invoke it by adding an explain
parameter to an HTTP call that submits a Gremlin query.
The explain feature provides information about the logical structure of query execution plans. You can use this information to identify potential evaluation and execution bottlenecks and to tune your query, as explained in Tuning Gremlin queries. You can also use query hints to improve query execution plans.
When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows one of the following IAM actions in that cluster, depending on the query:
Note that the neptune-db:QueryLanguage:Gremlin IAM condition key can be used in the policy document to restrict the use of Gremlin queries (see Condition keys available in Neptune IAM data-access policy statements).
", "ExecuteGremlinProfileQuery": "Executes a Gremlin Profile query, which runs a specified traversal, collects various metrics about the run, and produces a profile report as output. See Gremlin profile API in Neptune for details.
When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:ReadDataViaQuery IAM action in that cluster.
Note that the neptune-db:QueryLanguage:Gremlin IAM condition key can be used in the policy document to restrict the use of Gremlin queries (see Condition keys available in Neptune IAM data-access policy statements).
", "ExecuteGremlinQuery": "This commands executes a Gremlin query. Amazon Neptune is compatible with Apache TinkerPop3 and Gremlin, so you can use the Gremlin traversal language to query the graph, as described under The Graph in the Apache TinkerPop3 documentation. More details can also be found in Accessing a Neptune graph with Gremlin.
When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that enables one of the following IAM actions in that cluster, depending on the query:
Note that the neptune-db:QueryLanguage:Gremlin IAM condition key can be used in the policy document to restrict the use of Gremlin queries (see Condition keys available in Neptune IAM data-access policy statements).
", - "ExecuteOpenCypherExplainQuery": "Executes an openCypher explain
request. See The openCypher explain feature for more information.
When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:ReadDataViaQuery IAM action in that cluster.
Note that the neptune-db:QueryLanguage:Opencypher IAM condition key can be used in the policy document to restrict the use of openCypher queries (see Condition keys available in Neptune IAM data-access policy statements).
", - "ExecuteOpenCypherQuery": "Executes an openCypher query. See Accessing the Neptune Graph with openCypher for more information.
Neptune supports building graph applications using openCypher, which is currently one of the most popular query languages among developers working with graph databases. Developers, business analysts, and data scientists like openCypher's declarative, SQL-inspired syntax because it provides a familiar structure in which to querying property graphs.
The openCypher language was originally developed by Neo4j, then open-sourced in 2015 and contributed to the openCypher project under an Apache 2 open-source license.
Note that when invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows one of the following IAM actions in that cluster, depending on the query:
Note also that the neptune-db:QueryLanguage:Opencypher IAM condition key can be used in the policy document to restrict the use of openCypher queries (see Condition keys available in Neptune IAM data-access policy statements).
", + "ExecuteOpenCypherExplainQuery": "Executes an openCypher explain
request. See The openCypher explain feature for more information.
When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:ReadDataViaQuery IAM action in that cluster.
Note that the neptune-db:QueryLanguage:OpenCypher IAM condition key can be used in the policy document to restrict the use of openCypher queries (see Condition keys available in Neptune IAM data-access policy statements).
", + "ExecuteOpenCypherQuery": "Executes an openCypher query. See Accessing the Neptune Graph with openCypher for more information.
Neptune supports building graph applications using openCypher, which is currently one of the most popular query languages among developers working with graph databases. Developers, business analysts, and data scientists like openCypher's declarative, SQL-inspired syntax because it provides a familiar structure in which to querying property graphs.
The openCypher language was originally developed by Neo4j, then open-sourced in 2015 and contributed to the openCypher project under an Apache 2 open-source license.
Note that when invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows one of the following IAM actions in that cluster, depending on the query:
Note also that the neptune-db:QueryLanguage:OpenCypher IAM condition key can be used in the policy document to restrict the use of openCypher queries (see Condition keys available in Neptune IAM data-access policy statements).
", "GetEngineStatus": "Retrieves the status of the graph database on the host.
When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:GetEngineStatus IAM action in that cluster.
", "GetGremlinQueryStatus": "Gets the status of a specified Gremlin query.
When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:GetQueryStatus IAM action in that cluster.
Note that the neptune-db:QueryLanguage:Gremlin IAM condition key can be used in the policy document to restrict the use of Gremlin queries (see Condition keys available in Neptune IAM data-access policy statements).
", "GetLoaderJobStatus": "Gets status information about a specified load job. Neptune keeps track of the most recent 1,024 bulk load jobs, and stores the last 10,000 error details per job.
See Neptune Loader Get-Status API for more information.
When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:GetLoaderJobStatus IAM action in that cluster..
", @@ -25,9 +25,9 @@ "GetMLEndpoint": "Retrieves details about an inference endpoint. See Managing inference endpoints using the endpoints command.
When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:GetMLEndpointStatus IAM action in that cluster.
", "GetMLModelTrainingJob": "Retrieves information about a Neptune ML model training job. See Model training using the modeltraining
command.
When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:GetMLModelTrainingJobStatus IAM action in that cluster.
", "GetMLModelTransformJob": "Gets information about a specified model transform job. See Use a trained model to generate new model artifacts.
When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:GetMLModelTransformJobStatus IAM action in that cluster.
", - "GetOpenCypherQueryStatus": "Retrieves the status of a specified openCypher query.
When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:GetQueryStatus IAM action in that cluster.
Note that the neptune-db:QueryLanguage:Opencypher IAM condition key can be used in the policy document to restrict the use of openCypher queries (see Condition keys available in Neptune IAM data-access policy statements).
", + "GetOpenCypherQueryStatus": "Retrieves the status of a specified openCypher query.
When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:GetQueryStatus IAM action in that cluster.
Note that the neptune-db:QueryLanguage:OpenCypher IAM condition key can be used in the policy document to restrict the use of openCypher queries (see Condition keys available in Neptune IAM data-access policy statements).
", "GetPropertygraphStatistics": "Gets property graph statistics (Gremlin and openCypher).
When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:GetStatisticsStatus IAM action in that cluster.
", - "GetPropertygraphStream": "Gets a stream for a property graph.
With the Neptune Streams feature, you can generate a complete sequence of change-log entries that record every change made to your graph data as it happens. GetPropertygraphStream
lets you collect these change-log entries for a property graph.
The Neptune streams feature needs to be enabled on your Neptune DBcluster. To enable streams, set the neptune_streams DB cluster parameter to 1
.
See Capturing graph changes in real time using Neptune streams.
When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:GetStreamRecords IAM action in that cluster.
When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that enables one of the following IAM actions, depending on the query:
Note that you can restrict property-graph queries using the following IAM context keys:
See Condition keys available in Neptune IAM data-access policy statements).
", + "GetPropertygraphStream": "Gets a stream for a property graph.
With the Neptune Streams feature, you can generate a complete sequence of change-log entries that record every change made to your graph data as it happens. GetPropertygraphStream
lets you collect these change-log entries for a property graph.
The Neptune streams feature needs to be enabled on your Neptune DBcluster. To enable streams, set the neptune_streams DB cluster parameter to 1
.
See Capturing graph changes in real time using Neptune streams.
When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:GetStreamRecords IAM action in that cluster.
When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that enables one of the following IAM actions, depending on the query:
Note that you can restrict property-graph queries using the following IAM context keys:
See Condition keys available in Neptune IAM data-access policy statements).
", "GetPropertygraphSummary": "Gets a graph summary for a property graph.
When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:GetGraphSummary IAM action in that cluster.
", "GetRDFGraphSummary": "Gets a graph summary for an RDF graph.
When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:GetGraphSummary IAM action in that cluster.
", "GetSparqlStatistics": "Gets RDF statistics (SPARQL).
", @@ -38,7 +38,7 @@ "ListMLEndpoints": "Lists existing inference endpoints. See Managing inference endpoints using the endpoints command.
When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:ListMLEndpoints IAM action in that cluster.
", "ListMLModelTrainingJobs": "Lists Neptune ML model-training jobs. See Model training using the modeltraining
command.
When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:neptune-db:ListMLModelTrainingJobs IAM action in that cluster.
", "ListMLModelTransformJobs": "Returns a list of model transform job IDs. See Use a trained model to generate new model artifacts.
When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:ListMLModelTransformJobs IAM action in that cluster.
", - "ListOpenCypherQueries": "Lists active openCypher queries. See Neptune openCypher status endpoint for more information.
When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:GetQueryStatus IAM action in that cluster.
Note that the neptune-db:QueryLanguage:Opencypher IAM condition key can be used in the policy document to restrict the use of openCypher queries (see Condition keys available in Neptune IAM data-access policy statements).
", + "ListOpenCypherQueries": "Lists active openCypher queries. See Neptune openCypher status endpoint for more information.
When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:GetQueryStatus IAM action in that cluster.
Note that the neptune-db:QueryLanguage:OpenCypher IAM condition key can be used in the policy document to restrict the use of openCypher queries (see Condition keys available in Neptune IAM data-access policy statements).
", "ManagePropertygraphStatistics": "Manages the generation and use of property graph statistics.
When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:ManageStatistics IAM action in that cluster.
", "ManageSparqlStatistics": "Manages the generation and use of RDF graph statistics.
When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:ManageStatistics IAM action in that cluster.
", "StartLoaderJob": "Starts a Neptune bulk loader job to load data from an Amazon S3 bucket into a Neptune DB instance. See Using the Amazon Neptune Bulk Loader to Ingest Data.
When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:StartLoaderJob IAM action in that cluster.
", @@ -92,7 +92,7 @@ "SparqlRecord$isLastOp": "Only present if this operation is the last one in its transaction. If present, it is set to true. It is useful for ensuring that an entire transaction is consumed.
", "StartLoaderJobInput$failOnError": " failOnError
– A flag to toggle a complete stop on an error.
Allowed values: \"TRUE\"
, \"FALSE\"
.
Default value: \"TRUE\"
.
When this parameter is set to \"FALSE\"
, the loader tries to load all the data in the location specified, skipping any entries with errors.
When this parameter is set to \"TRUE\"
, the loader stops as soon as it encounters an error. Data loaded up to that point persists.
updateSingleCardinalityProperties
is an optional parameter that controls how the bulk loader treats a new value for single-cardinality vertex or edge properties. This is not supported for loading openCypher data.
Allowed values: \"TRUE\"
, \"FALSE\"
.
Default value: \"FALSE\"
.
By default, or when updateSingleCardinalityProperties
is explicitly set to \"FALSE\"
, the loader treats a new value as an error, because it violates single cardinality.
When updateSingleCardinalityProperties
is set to \"TRUE\"
, on the other hand, the bulk loader replaces the existing value with the new one. If multiple edge or single-cardinality vertex property values are provided in the source file(s) being loaded, the final value at the end of the bulk load could be any one of those new values. The loader only guarantees that the existing value has been replaced by one of the new ones.
This is an optional flag parameter that indicates whether the load request can be queued up or not.
You don't have to wait for one load job to complete before issuing the next one, because Neptune can queue up as many as 64 jobs at a time, provided that their queueRequest
parameters are all set to \"TRUE\"
.
If the queueRequest
parameter is omitted or set to \"FALSE\"
, the load request will fail if another load job is already running.
Allowed values: \"TRUE\"
, \"FALSE\"
.
Default value: \"FALSE\"
.
This is an optional flag parameter that indicates whether the load request can be queued up or not.
You don't have to wait for one load job to complete before issuing the next one, because Neptune can queue up as many as 64 jobs at a time, provided that their queueRequest
parameters are all set to \"TRUE\"
. The queue order of the jobs will be first-in-first-out (FIFO).
If the queueRequest
parameter is omitted or set to \"FALSE\"
, the load request will fail if another load job is already running.
Allowed values: \"TRUE\"
, \"FALSE\"
.
Default value: \"FALSE\"
.
This parameter is required only when loading openCypher data that contains relationship IDs. It must be included and set to True
when openCypher relationship IDs are explicitly provided in the load data (recommended).
When userProvidedEdgeIds
is absent or set to True
, an :ID
column must be present in every relationship file in the load.
When userProvidedEdgeIds
is present and set to False
, relationship files in the load must not contain an :ID
column. Instead, the Neptune loader automatically generates an ID for each relationship.
It's useful to provide relationship IDs explicitly so that the loader can resume loading after error in the CSV data have been fixed, without having to reload any relationships that have already been loaded. If relationship IDs have not been explicitly assigned, the loader cannot resume a failed load if any relationship file has had to be corrected, and must instead reload all the relationships.
", "StartMLModelTrainingJobInput$enableManagedSpotTraining": "Optimizes the cost of training machine-learning models by using Amazon Elastic Compute Cloud spot instances. The default is False
.
Indicates whether or not automatic statistics generation is enabled.
", diff --git a/models/apis/rds/2014-10-31/api-2.json b/models/apis/rds/2014-10-31/api-2.json index 34fd162c58f..58eb861c81b 100644 --- a/models/apis/rds/2014-10-31/api-2.json +++ b/models/apis/rds/2014-10-31/api-2.json @@ -3053,6 +3053,7 @@ "EngineVersion":{"shape":"String"}, "BackupRetentionPeriod":{"shape":"IntegerOptional"}, "AllocatedStorage":{"shape":"IntegerOptional"}, + "RdsCustomClusterConfiguration":{"shape":"RdsCustomClusterConfiguration"}, "Iops":{"shape":"IntegerOptional"}, "StorageType":{"shape":"String"} } @@ -3285,6 +3286,7 @@ "EnableCloudwatchLogsExports":{"shape":"LogTypeList"}, "EngineMode":{"shape":"String"}, "ScalingConfiguration":{"shape":"ScalingConfiguration"}, + "RdsCustomClusterConfiguration":{"shape":"RdsCustomClusterConfiguration"}, "DeletionProtection":{"shape":"BooleanOptional"}, "GlobalClusterIdentifier":{"shape":"String"}, "EnableHttpEndpoint":{"shape":"BooleanOptional"}, @@ -3816,6 +3818,7 @@ "Capacity":{"shape":"IntegerOptional"}, "EngineMode":{"shape":"String"}, "ScalingConfigurationInfo":{"shape":"ScalingConfigurationInfo"}, + "RdsCustomClusterConfiguration":{"shape":"RdsCustomClusterConfiguration"}, "DeletionProtection":{"shape":"BooleanOptional"}, "HttpEndpointEnabled":{"shape":"BooleanOptional"}, "ActivityStreamMode":{"shape":"ActivityStreamMode"}, @@ -7912,6 +7915,13 @@ "locationName":"Range" } }, + "RdsCustomClusterConfiguration":{ + "type":"structure", + "members":{ + "InterconnectSubnetId":{"shape":"String"}, + "TransitGatewayMulticastDomainId":{"shape":"String"} + } + }, "ReadReplicaDBClusterIdentifierList":{ "type":"list", "member":{ @@ -8306,7 +8316,8 @@ "Iops":{"shape":"IntegerOptional"}, "PubliclyAccessible":{"shape":"BooleanOptional"}, "ServerlessV2ScalingConfiguration":{"shape":"ServerlessV2ScalingConfiguration"}, - "NetworkType":{"shape":"String"} + "NetworkType":{"shape":"String"}, + "RdsCustomClusterConfiguration":{"shape":"RdsCustomClusterConfiguration"} } }, "RestoreDBClusterFromSnapshotResult":{ @@ -8346,7 +8357,8 @@ "Iops":{"shape":"IntegerOptional"}, "ServerlessV2ScalingConfiguration":{"shape":"ServerlessV2ScalingConfiguration"}, "NetworkType":{"shape":"String"}, - "SourceDbClusterResourceId":{"shape":"String"} + "SourceDbClusterResourceId":{"shape":"String"}, + "RdsCustomClusterConfiguration":{"shape":"RdsCustomClusterConfiguration"} } }, "RestoreDBClusterToPointInTimeResult":{ diff --git a/models/apis/rds/2014-10-31/docs-2.json b/models/apis/rds/2014-10-31/docs-2.json index 3bd95482057..d1fb626c746 100644 --- a/models/apis/rds/2014-10-31/docs-2.json +++ b/models/apis/rds/2014-10-31/docs-2.json @@ -3691,6 +3691,16 @@ "ValidStorageOptions$ProvisionedStorageThroughput": "The valid range of provisioned storage throughput. For example, 500-4,000 mebibytes per second (MiBps).
" } }, + "RdsCustomClusterConfiguration": { + "base": "Reserved for future use.
", + "refs": { + "ClusterPendingModifiedValues$RdsCustomClusterConfiguration": "Reserved for future use.
", + "CreateDBClusterMessage$RdsCustomClusterConfiguration": "Reserved for future use.
", + "DBCluster$RdsCustomClusterConfiguration": "Reserved for future use.
", + "RestoreDBClusterFromSnapshotMessage$RdsCustomClusterConfiguration": "Reserved for future use.
", + "RestoreDBClusterToPointInTimeMessage$RdsCustomClusterConfiguration": "Reserved for future use.
" + } + }, "ReadReplicaDBClusterIdentifierList": { "base": null, "refs": { @@ -4941,6 +4951,8 @@ "PromoteReadReplicaMessage$PreferredBackupWindow": "The daily time range during which automated backups are created if automated backups are enabled, using the BackupRetentionPeriod
parameter.
The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS User Guide.
Constraints:
Must be in the format hh24:mi-hh24:mi
.
Must be in Universal Coordinated Time (UTC).
Must not conflict with the preferred maintenance window.
Must be at least 30 minutes.
The ID of the Reserved DB instance offering to purchase.
Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706
", "PurchaseReservedDBInstancesOfferingMessage$ReservedDBInstanceId": "Customer-specified identifier to track this reservation.
Example: myreservationID
", + "RdsCustomClusterConfiguration$InterconnectSubnetId": "Reserved for future use.
", + "RdsCustomClusterConfiguration$TransitGatewayMulticastDomainId": "Reserved for future use.
", "ReadReplicaDBClusterIdentifierList$member": null, "ReadReplicaDBInstanceIdentifierList$member": null, "ReadReplicaIdentifierList$member": null, diff --git a/models/apis/redshift/2012-12-01/api-2.json b/models/apis/redshift/2012-12-01/api-2.json index ec4b4fa5281..656ce552dfc 100644 --- a/models/apis/redshift/2012-12-01/api-2.json +++ b/models/apis/redshift/2012-12-01/api-2.json @@ -46,7 +46,8 @@ "errors":[ {"shape":"PartnerNotFoundFault"}, {"shape":"ClusterNotFoundFault"}, - {"shape":"UnauthorizedPartnerIntegrationFault"} + {"shape":"UnauthorizedPartnerIntegrationFault"}, + {"shape":"UnsupportedOperationFault"} ] }, "AssociateDataShareConsumer":{ @@ -200,6 +201,7 @@ "resultWrapper":"CopyClusterSnapshotResult" }, "errors":[ + {"shape":"ClusterNotFoundFault"}, {"shape":"ClusterSnapshotAlreadyExistsFault"}, {"shape":"ClusterSnapshotNotFoundFault"}, {"shape":"InvalidClusterSnapshotStateFault"}, @@ -258,7 +260,8 @@ {"shape":"InvalidClusterTrackFault"}, {"shape":"SnapshotScheduleNotFoundFault"}, {"shape":"InvalidRetentionPeriodFault"}, - {"shape":"Ipv6CidrBlockNotFoundFault"} + {"shape":"Ipv6CidrBlockNotFoundFault"}, + {"shape":"UnsupportedOperationFault"} ] }, "CreateClusterParameterGroup":{ @@ -454,12 +457,14 @@ "resultWrapper":"CreateScheduledActionResult" }, "errors":[ + {"shape":"ClusterNotFoundFault"}, {"shape":"ScheduledActionAlreadyExistsFault"}, {"shape":"ScheduledActionQuotaExceededFault"}, {"shape":"ScheduledActionTypeUnsupportedFault"}, {"shape":"InvalidScheduleFault"}, {"shape":"InvalidScheduledActionFault"}, - {"shape":"UnauthorizedOperation"} + {"shape":"UnauthorizedOperation"}, + {"shape":"UnsupportedOperationFault"} ] }, "CreateSnapshotCopyGrant":{ @@ -722,7 +727,8 @@ "errors":[ {"shape":"PartnerNotFoundFault"}, {"shape":"ClusterNotFoundFault"}, - {"shape":"UnauthorizedPartnerIntegrationFault"} + {"shape":"UnauthorizedPartnerIntegrationFault"}, + {"shape":"UnsupportedOperationFault"} ] }, "DeleteResourcePolicy":{ @@ -1173,7 +1179,8 @@ "resultWrapper":"DescribeLoggingStatusResult" }, "errors":[ - {"shape":"ClusterNotFoundFault"} + {"shape":"ClusterNotFoundFault"}, + {"shape":"UnsupportedOperationFault"} ] }, "DescribeNodeConfigurationOptions":{ @@ -1220,7 +1227,8 @@ }, "errors":[ {"shape":"ClusterNotFoundFault"}, - {"shape":"UnauthorizedPartnerIntegrationFault"} + {"shape":"UnauthorizedPartnerIntegrationFault"}, + {"shape":"UnsupportedOperationFault"} ] }, "DescribeReservedNodeExchangeStatus":{ @@ -1286,7 +1294,8 @@ }, "errors":[ {"shape":"ClusterNotFoundFault"}, - {"shape":"ResizeNotFoundFault"} + {"shape":"ResizeNotFoundFault"}, + {"shape":"UnsupportedOperationFault"} ] }, "DescribeScheduledActions":{ @@ -1405,7 +1414,8 @@ }, "errors":[ {"shape":"ClusterNotFoundFault"}, - {"shape":"InvalidClusterStateFault"} + {"shape":"InvalidClusterStateFault"}, + {"shape":"UnsupportedOperationFault"} ] }, "DisableSnapshotCopy":{ @@ -1423,7 +1433,8 @@ {"shape":"ClusterNotFoundFault"}, {"shape":"SnapshotCopyAlreadyDisabledFault"}, {"shape":"InvalidClusterStateFault"}, - {"shape":"UnauthorizedOperation"} + {"shape":"UnauthorizedOperation"}, + {"shape":"UnsupportedOperationFault"} ] }, "DisassociateDataShareConsumer":{ @@ -1459,7 +1470,8 @@ {"shape":"InsufficientS3BucketPolicyFault"}, {"shape":"InvalidS3KeyPrefixFault"}, {"shape":"InvalidS3BucketNameFault"}, - {"shape":"InvalidClusterStateFault"} + {"shape":"InvalidClusterStateFault"}, + {"shape":"UnsupportedOperationFault"} ] }, "EnableSnapshotCopy":{ @@ -1487,6 +1499,24 @@ {"shape":"InvalidRetentionPeriodFault"} ] }, + "FailoverPrimaryCompute":{ + "name":"FailoverPrimaryCompute", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"FailoverPrimaryComputeInputMessage"}, + "output":{ + "shape":"FailoverPrimaryComputeResult", + "resultWrapper":"FailoverPrimaryComputeResult" + }, + "errors":[ + {"shape":"ClusterNotFoundFault"}, + {"shape":"UnsupportedOperationFault"}, + {"shape":"UnauthorizedOperation"}, + {"shape":"InvalidClusterStateFault"} + ] + }, "GetClusterCredentials":{ "name":"GetClusterCredentials", "http":{ @@ -1662,7 +1692,8 @@ "errors":[ {"shape":"ClusterNotFoundFault"}, {"shape":"ClusterOnLatestRevisionFault"}, - {"shape":"InvalidClusterStateFault"} + {"shape":"InvalidClusterStateFault"}, + {"shape":"UnsupportedOperationFault"} ] }, "ModifyClusterIamRoles":{ @@ -1835,11 +1866,13 @@ "resultWrapper":"ModifyScheduledActionResult" }, "errors":[ + {"shape":"ClusterNotFoundFault"}, {"shape":"ScheduledActionNotFoundFault"}, {"shape":"ScheduledActionTypeUnsupportedFault"}, {"shape":"InvalidScheduleFault"}, {"shape":"InvalidScheduledActionFault"}, - {"shape":"UnauthorizedOperation"} + {"shape":"UnauthorizedOperation"}, + {"shape":"UnsupportedOperationFault"} ] }, "ModifySnapshotCopyRetentionPeriod":{ @@ -1908,7 +1941,8 @@ }, "errors":[ {"shape":"ClusterNotFoundFault"}, - {"shape":"InvalidClusterStateFault"} + {"shape":"InvalidClusterStateFault"}, + {"shape":"UnsupportedOperationFault"} ] }, "PurchaseReservedNodeOffering":{ @@ -2105,7 +2139,8 @@ "errors":[ {"shape":"ClusterNotFoundFault"}, {"shape":"InvalidClusterStateFault"}, - {"shape":"InsufficientClusterCapacityFault"} + {"shape":"InsufficientClusterCapacityFault"}, + {"shape":"UnsupportedOperationFault"} ] }, "RevokeClusterSecurityGroupIngress":{ @@ -2178,7 +2213,8 @@ "errors":[ {"shape":"ClusterNotFoundFault"}, {"shape":"InvalidClusterStateFault"}, - {"shape":"DependentServiceRequestThrottlingFault"} + {"shape":"DependentServiceRequestThrottlingFault"}, + {"shape":"UnsupportedOperationFault"} ] }, "UpdatePartnerStatus":{ @@ -2195,7 +2231,8 @@ "errors":[ {"shape":"PartnerNotFoundFault"}, {"shape":"ClusterNotFoundFault"}, - {"shape":"UnauthorizedPartnerIntegrationFault"} + {"shape":"UnauthorizedPartnerIntegrationFault"}, + {"shape":"UnsupportedOperationFault"} ] } }, @@ -2673,7 +2710,9 @@ "CustomDomainCertificateExpiryDate":{"shape":"TStamp"}, "MasterPasswordSecretArn":{"shape":"String"}, "MasterPasswordSecretKmsKeyId":{"shape":"String"}, - "IpAddressType":{"shape":"String"} + "IpAddressType":{"shape":"String"}, + "MultiAZ":{"shape":"String"}, + "MultiAZSecondary":{"shape":"SecondaryClusterInfo"} }, "wrapper":true }, @@ -3216,7 +3255,8 @@ "LoadSampleData":{"shape":"String"}, "ManageMasterPassword":{"shape":"BooleanOptional"}, "MasterPasswordSecretKmsKeyId":{"shape":"String"}, - "IpAddressType":{"shape":"String"} + "IpAddressType":{"shape":"String"}, + "MultiAZ":{"shape":"BooleanOptional"} } }, "CreateClusterParameterGroupMessage":{ @@ -4572,6 +4612,19 @@ "Events":{"shape":"EventList"} } }, + "FailoverPrimaryComputeInputMessage":{ + "type":"structure", + "required":["ClusterIdentifier"], + "members":{ + "ClusterIdentifier":{"shape":"String"} + } + }, + "FailoverPrimaryComputeResult":{ + "type":"structure", + "members":{ + "Cluster":{"shape":"Cluster"} + } + }, "GetClusterCredentialsMessage":{ "type":"structure", "required":["DbUser"], @@ -5412,7 +5465,8 @@ "Port":{"shape":"IntegerOptional"}, "ManageMasterPassword":{"shape":"BooleanOptional"}, "MasterPasswordSecretKmsKeyId":{"shape":"String"}, - "IpAddressType":{"shape":"String"} + "IpAddressType":{"shape":"String"}, + "MultiAZ":{"shape":"BooleanOptional"} } }, "ModifyClusterParameterGroupMessage":{ @@ -6238,7 +6292,8 @@ "Encrypted":{"shape":"BooleanOptional"}, "ManageMasterPassword":{"shape":"BooleanOptional"}, "MasterPasswordSecretKmsKeyId":{"shape":"String"}, - "IpAddressType":{"shape":"String"} + "IpAddressType":{"shape":"String"}, + "MultiAZ":{"shape":"BooleanOptional"} } }, "RestoreFromClusterSnapshotResult":{ @@ -6560,6 +6615,13 @@ "locationName":"SnapshotTime" } }, + "SecondaryClusterInfo":{ + "type":"structure", + "members":{ + "AvailabilityZone":{"shape":"String"}, + "ClusterNodes":{"shape":"ClusterNodesList"} + } + }, "SensitiveString":{ "type":"string", "sensitive":true diff --git a/models/apis/redshift/2012-12-01/docs-2.json b/models/apis/redshift/2012-12-01/docs-2.json index 7ff06f1d76b..29ff6007a19 100644 --- a/models/apis/redshift/2012-12-01/docs-2.json +++ b/models/apis/redshift/2012-12-01/docs-2.json @@ -92,6 +92,7 @@ "DisassociateDataShareConsumer": "From a datashare consumer account, remove association for the specified datashare.
", "EnableLogging": "Starts logging information, such as queries and connection attempts, for the specified Amazon Redshift cluster.
", "EnableSnapshotCopy": "Enables the automatic copy of snapshots from one region to another region for a specified cluster.
", + "FailoverPrimaryCompute": "Fails over the primary compute unit of the specified Multi-AZ cluster to another Availability Zone.
", "GetClusterCredentials": "Returns a database user name and temporary password with temporary authorization to log on to an Amazon Redshift database. The action returns the database user name prefixed with IAM:
if AutoCreate
is False
or IAMA:
if AutoCreate
is True
. You can optionally specify one or more database user groups that the user will join at log on. By default, the temporary credentials expire in 900 seconds. You can optionally specify a duration between 900 seconds (15 minutes) and 3600 seconds (60 minutes). For more information, see Using IAM Authentication to Generate Database User Credentials in the Amazon Redshift Cluster Management Guide.
The Identity and Access Management (IAM) user or role that runs GetClusterCredentials must have an IAM policy attached that allows access to all necessary actions and resources. For more information about permissions, see Resource Policies for GetClusterCredentials in the Amazon Redshift Cluster Management Guide.
If the DbGroups
parameter is specified, the IAM policy must allow the redshift:JoinGroup
action with access to the listed dbgroups
.
In addition, if the AutoCreate
parameter is set to True
, then the policy must include the redshift:CreateClusterUser
permission.
If the DbName
parameter is specified, the IAM policy must allow access to the resource dbname
for the specified database name.
Returns a database user name and temporary password with temporary authorization to log in to an Amazon Redshift database. The database user is mapped 1:1 to the source Identity and Access Management (IAM) identity. For more information about IAM identities, see IAM Identities (users, user groups, and roles) in the Amazon Web Services Identity and Access Management User Guide.
The Identity and Access Management (IAM) identity that runs this operation must have an IAM policy attached that allows access to all necessary actions and resources. For more information about permissions, see Using identity-based policies (IAM policies) in the Amazon Redshift Cluster Management Guide.
", "GetReservedNodeExchangeConfigurationOptions": "Gets the configuration options for the reserved-node exchange. These options include information about the source reserved node and target reserved node offering. Details include the node type, the price, the node count, and the offering type.
", @@ -429,6 +430,7 @@ "CreateClusterMessage$EnhancedVpcRouting": "An option that specifies whether to create the cluster with enhanced VPC routing enabled. To create a cluster that uses enhanced VPC routing, the cluster must be in a VPC. For more information, see Enhanced VPC Routing in the Amazon Redshift Cluster Management Guide.
If this option is true
, enhanced VPC routing is enabled.
Default: false
", "CreateClusterMessage$AvailabilityZoneRelocation": "The option to enable relocation for an Amazon Redshift cluster between Availability Zones after the cluster is created.
", "CreateClusterMessage$ManageMasterPassword": "If true
, Amazon Redshift uses Secrets Manager to manage this cluster's admin credentials. You can't use MasterUserPassword
if ManageMasterPassword
is true. If ManageMasterPassword
is false or not set, Amazon Redshift uses MasterUserPassword
for the admin user account's password.
If true, Amazon Redshift will deploy the cluster in two Availability Zones (AZ).
", "CreateEventSubscriptionMessage$Enabled": "A boolean value; set to true
to activate the subscription, and set to false
to create the subscription but not activate it.
If true, the schedule is enabled. If false, the scheduled action does not trigger. For more information about state
of the scheduled action, see ScheduledAction.
Indicates whether the cluster is encrypted. If the value is encrypted (true) and you provide a value for the KmsKeyId
parameter, we encrypt the cluster with the provided KmsKeyId
. If you don't provide a KmsKeyId
, we encrypt with the default key.
If the value is not encrypted (false), then the cluster is decrypted.
", "ModifyClusterMessage$AvailabilityZoneRelocation": "The option to enable relocation for an Amazon Redshift cluster between Availability Zones after the cluster modification is complete.
", "ModifyClusterMessage$ManageMasterPassword": "If true
, Amazon Redshift uses Secrets Manager to manage this cluster's admin credentials. You can't use MasterUserPassword
if ManageMasterPassword
is true. If ManageMasterPassword
is false or not set, Amazon Redshift uses MasterUserPassword
for the admin user account's password.
If true and the cluster is currently only deployed in a single Availability Zone, the cluster will be modified to be deployed in two Availability Zones.
", "ModifyClusterSnapshotScheduleMessage$DisassociateSchedule": "A boolean to indicate whether to remove the assoiciation between the cluster and the schedule.
", "ModifyEventSubscriptionMessage$Enabled": "A Boolean value indicating if the subscription is enabled. true
indicates the subscription is enabled
A modified enable flag of the scheduled action. If true, the scheduled action is active. If false, the scheduled action is disabled.
", @@ -456,6 +459,7 @@ "RestoreFromClusterSnapshotMessage$AvailabilityZoneRelocation": "The option to enable relocation for an Amazon Redshift cluster between Availability Zones after the cluster is restored.
", "RestoreFromClusterSnapshotMessage$Encrypted": "Enables support for restoring an unencrypted snapshot to a cluster encrypted with Key Management Service (KMS) and a customer managed key.
", "RestoreFromClusterSnapshotMessage$ManageMasterPassword": "If true
, Amazon Redshift uses Secrets Manager to manage the restored cluster's admin credentials. If ManageMasterPassword
is false or not set, Amazon Redshift uses the admin credentials the cluster had at the time the snapshot was taken.
If true, the snapshot will be restored to a cluster deployed in two Availability Zones.
", "RestoreTableFromClusterSnapshotMessage$EnableCaseSensitiveIdentifier": "Indicates whether name identifiers for database, schema, and table are case sensitive. If true
, the names are case sensitive. If false
(default), the names are not case sensitive.
The nodes in the cluster.
" + "Cluster$ClusterNodes": "The nodes in the cluster.
", + "SecondaryClusterInfo$ClusterNodes": "The nodes in the secondary compute unit.
" } }, "ClusterNotFoundFault": { @@ -1644,6 +1650,16 @@ "refs": { } }, + "FailoverPrimaryComputeInputMessage": { + "base": null, + "refs": { + } + }, + "FailoverPrimaryComputeResult": { + "base": null, + "refs": { + } + }, "GetClusterCredentialsMessage": { "base": "The request parameters to get cluster credentials.
", "refs": { @@ -2933,6 +2949,12 @@ "SnapshotSchedule$NextInvocations": "" } }, + "SecondaryClusterInfo": { + "base": "The AvailabilityZone and ClusterNodes information of the secondary compute unit.
", + "refs": { + "Cluster$MultiAZSecondary": "The secondary compute unit of a cluster, if Multi-AZ deployment is turned on.
" + } + }, "SensitiveString": { "base": null, "refs": { @@ -3163,6 +3185,7 @@ "Cluster$MasterPasswordSecretArn": "The Amazon Resource Name (ARN) for the cluster's admin user credentials secret.
", "Cluster$MasterPasswordSecretKmsKeyId": "The ID of the Key Management Service (KMS) key used to encrypt and store the cluster's admin credentials secret.
", "Cluster$IpAddressType": "The IP address type for the cluster. Possible values are ipv4
and dualstack
.
A boolean value that, if true, indicates that the cluster is deployed in two Availability Zones.
", "ClusterAssociatedToSchedule$ClusterIdentifier": "", "ClusterCredentials$DbUser": "A database user name that is authorized to log on to the database DbName
using the password DbPassword
. If the specified DbUser exists in the database, the new user name has the same database permissions as the the user named in DbUser. By default, the user is added to PUBLIC. If the DbGroups
parameter is specifed, DbUser
is added to the listed groups for any sessions created using these credentials.
The unique identifier of the cluster.
", @@ -3435,6 +3458,7 @@ "EventSubscription$Severity": "The event severity specified in the Amazon Redshift event notification subscription.
Values: ERROR, INFO
", "EventSubscriptionsMessage$Marker": "A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned marker value in the Marker
parameter and retrying the command. If the Marker
field is empty, all response records have been retrieved for the request.
A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned marker value in the Marker
parameter and retrying the command. If the Marker
field is empty, all response records have been retrieved for the request.
The unique identifier of the cluster for which the primary compute unit will be failed over to another Availability Zone.
", "GetClusterCredentialsMessage$DbUser": "The name of a database user. If a user name matching DbUser
exists in the database, the temporary user credentials have the same permissions as the existing user. If DbUser
doesn't exist in the database and Autocreate
is True
, a new user is created using the value for DbUser
with PUBLIC permissions. If a database user matching the value for DbUser
doesn't exist and Autocreate
is False
, then the command succeeds but the connection attempt will fail because the user doesn't exist in the database.
For more information, see CREATE USER in the Amazon Redshift Database Developer Guide.
Constraints:
Must be 1 to 64 alphanumeric characters or hyphens. The user name can't be PUBLIC
.
Must contain uppercase or lowercase letters, numbers, underscore, plus sign, period (dot), at symbol (@), or hyphen.
First character must be a letter.
Must not contain a colon ( : ) or slash ( / ).
Cannot be a reserved word. A list of reserved words can be found in Reserved Words in the Amazon Redshift Database Developer Guide.
The name of a database that DbUser
is authorized to log on to. If DbName
is not specified, DbUser
can log on to any existing database.
Constraints:
Must be 1 to 64 alphanumeric characters or hyphens
Must contain uppercase or lowercase letters, numbers, underscore, plus sign, period (dot), at symbol (@), or hyphen.
First character must be a letter.
Must not contain a colon ( : ) or slash ( / ).
Cannot be a reserved word. A list of reserved words can be found in Reserved Words in the Amazon Redshift Database Developer Guide.
The unique identifier of the cluster that contains the database for which you are requesting credentials. This parameter is case sensitive.
", @@ -3640,6 +3664,7 @@ "ScheduledAction$IamRole": "The IAM role to assume to run the scheduled action. This IAM role must have permission to run the Amazon Redshift API operation in the scheduled action. This IAM role must allow the Amazon Redshift scheduler (Principal scheduler.redshift.amazonaws.com) to assume permissions on your behalf. For more information about the IAM role to use with the Amazon Redshift scheduler, see Using Identity-Based Policies for Amazon Redshift in the Amazon Redshift Cluster Management Guide.
", "ScheduledAction$ScheduledActionDescription": "The description of the scheduled action.
", "ScheduledActionsMessage$Marker": "An optional parameter that specifies the starting point to return a set of response records. When the results of a DescribeScheduledActions request exceed the value specified in MaxRecords
, Amazon Web Services returns a value in the Marker
field of the response. You can retrieve the next set of response records by providing the returned marker value in the Marker
parameter and retrying the request.
The name of the Availability Zone in which the secondary compute unit of the cluster is located.
", "Snapshot$SnapshotIdentifier": "The snapshot identifier that is provided in the request.
", "Snapshot$ClusterIdentifier": "The identifier of the cluster for which the snapshot was taken.
", "Snapshot$Status": "The snapshot status. The value of the status depends on the API operation used:
CreateClusterSnapshot and CopyClusterSnapshot returns status as \"creating\".
DescribeClusterSnapshots returns status as \"creating\", \"available\", \"final snapshot\", or \"failed\".
DeleteClusterSnapshot returns status as \"deleted\".
Input object for the batch transform job.
", "ModelBiasJobInput$BatchTransformInput": "Input object for the batch transform job.
", + "ModelDashboardMonitoringSchedule$BatchTransformInput": null, "ModelExplainabilityJobInput$BatchTransformInput": "Input object for the batch transform job.
", "ModelQualityJobInput$BatchTransformInput": "Input object for the batch transform job.
", "MonitoringInput$BatchTransformInput": "Input object for the batch transform job.
" diff --git a/models/apis/translate/2017-07-01/api-2.json b/models/apis/translate/2017-07-01/api-2.json index 6aba58287c9..e1a50cc1d31 100644 --- a/models/apis/translate/2017-07-01/api-2.json +++ b/models/apis/translate/2017-07-01/api-2.json @@ -331,6 +331,10 @@ "min":1, "pattern":"[\\P{M}\\p{M}]{1,10000}" }, + "Brevity":{ + "type":"string", + "enum":["ON"] + }, "ClientTokenString":{ "type":"string", "max":64, @@ -767,10 +771,6 @@ }, "ParallelDataConfig":{ "type":"structure", - "required":[ - "S3Uri", - "Format" - ], "members":{ "S3Uri":{"shape":"S3Uri"}, "Format":{"shape":"ParallelDataFormat"} @@ -1187,7 +1187,8 @@ "type":"structure", "members":{ "Formality":{"shape":"Formality"}, - "Profanity":{"shape":"Profanity"} + "Profanity":{"shape":"Profanity"}, + "Brevity":{"shape":"Brevity"} } }, "UnboundedLengthString":{"type":"string"}, diff --git a/models/apis/translate/2017-07-01/docs-2.json b/models/apis/translate/2017-07-01/docs-2.json index d35c1271731..f9f0925c0de 100644 --- a/models/apis/translate/2017-07-01/docs-2.json +++ b/models/apis/translate/2017-07-01/docs-2.json @@ -17,7 +17,7 @@ "StartTextTranslationJob": "Starts an asynchronous batch translation job. Use batch translation jobs to translate large volumes of text across multiple documents at once. For batch translation, you can input documents with different source languages (specify auto
as the source language). You can specify one or more target languages. Batch translation translates each input document into each of the target languages. For more information, see Asynchronous batch processing.
Batch translation jobs can be described with the DescribeTextTranslationJob operation, listed with the ListTextTranslationJobs operation, and stopped with the StopTextTranslationJob operation.
", "StopTextTranslationJob": "Stops an asynchronous batch translation job that is in progress.
If the job's state is IN_PROGRESS
, the job will be marked for termination and put into the STOP_REQUESTED
state. If the job completes before it can be stopped, it is put into the COMPLETED
state. Otherwise, the job is put into the STOPPED
state.
Asynchronous batch translation jobs are started with the StartTextTranslationJob operation. You can use the DescribeTextTranslationJob or ListTextTranslationJobs operations to get a batch translation job's JobId
.
Associates a specific tag with a resource. A tag is a key-value pair that adds as a metadata to a resource. For more information, see Tagging your resources.
", - "TranslateDocument": "Translates the input document from the source language to the target language. This synchronous operation supports plain text or HTML for the input document. TranslateDocument
supports translations from English to any supported language, and from any supported language to English. Therefore, specify either the source language code or the target language code as “en” (English).
TranslateDocument
does not support language auto-detection.
If you set the Formality
parameter, the request will fail if the target language does not support formality. For a list of target languages that support formality, see Setting formality.
Translates the input document from the source language to the target language. This synchronous operation supports text, HTML, or Word documents as the input document. TranslateDocument
supports translations from English to any supported language, and from any supported language to English. Therefore, specify either the source language code or the target language code as “en” (English).
If you set the Formality
parameter, the request will fail if the target language does not support formality. For a list of target languages that support formality, see Setting formality.
Translates input text from the source language to the target language. For a list of available languages and language codes, see Supported languages.
", "UntagResource": "Removes a specific tag associated with an Amazon Translate resource. For more information, see Tagging your resources.
", "UpdateParallelData": "Updates a previously created parallel data resource by importing a new input file from Amazon S3.
" @@ -42,6 +42,12 @@ "TranslateTextRequest$Text": "The text to translate. The text string can be a maximum of 10,000 bytes long. Depending on your character set, this may be fewer than 10,000 characters.
" } }, + "Brevity": { + "base": null, + "refs": { + "TranslationSettings$Brevity": "When you turn on brevity, Amazon Translate reduces the length of the translation output for most translations (when compared with the same translation with brevity turned off). By default, brevity is turned off.
If you turn on brevity for a translation request with an unsupported language pair, the translation proceeds with the brevity setting turned off.
For the language pairs that brevity supports, see Using brevity in the Amazon Translate Developer Guide.
" + } + }, "ClientTokenString": { "base": null, "refs": { @@ -168,7 +174,7 @@ "Formality": { "base": null, "refs": { - "TranslationSettings$Formality": "You can optionally specify the desired level of formality for translations to supported target languages. The formality setting controls the level of formal language usage (also known as register) in the translation output. You can set the value to informal or formal. If you don't specify a value for formality, or if the target language doesn't support formality, the translation will ignore the formality setting.
If you specify multiple target languages for the job, translate ignores the formality setting for any unsupported target language.
For a list of target languages that support formality, see Supported languages in the Amazon Translate Developer Guide.
" + "TranslationSettings$Formality": "You can specify the desired level of formality for translations to supported target languages. The formality setting controls the level of formal language usage (also known as register) in the translation output. You can set the value to informal or formal. If you don't specify a value for formality, or if the target language doesn't support formality, the translation will ignore the formality setting.
If you specify multiple target languages for the job, translate ignores the formality setting for any unsupported target language.
For a list of target languages that support formality, see Supported languages in the Amazon Translate Developer Guide.
" } }, "GetParallelDataRequest": { @@ -296,7 +302,7 @@ "TargetLanguageCodeStringList$member": null, "TerminologyProperties$SourceLanguageCode": "The language code for the source text of the translation request for which the custom terminology is being used.
", "TextTranslationJobProperties$SourceLanguageCode": "The language code of the language of the source text. The language must be a language supported by Amazon Translate.
", - "TranslateDocumentRequest$SourceLanguageCode": "The language code for the language of the source text. Do not use auto
, because TranslateDocument
does not support language auto-detection. For a list of supported language codes, see Supported languages.
The language code for the language of the source text. For a list of supported language codes, see Supported languages.
To have Amazon Translate determine the source language of your text, you can specify auto
in the SourceLanguageCode
field. If you specify auto
, Amazon Translate will call Amazon Comprehend to determine the source language.
If you specify auto
, you must send the TranslateDocument
request in a region that supports Amazon Comprehend. Otherwise, the request returns an error indicating that autodetect is not supported.
The language code requested for the translated document. For a list of supported language codes, see Supported languages.
", "TranslateDocumentResponse$SourceLanguageCode": "The language code of the source document.
", "TranslateDocumentResponse$TargetLanguageCode": "The language code of the translated document.
", @@ -482,7 +488,7 @@ "Profanity": { "base": null, "refs": { - "TranslationSettings$Profanity": "Enable the profanity setting if you want Amazon Translate to mask profane words and phrases in your translation output.
To mask profane words and phrases, Amazon Translate replaces them with the grawlix string “?$#@$“. This 5-character sequence is used for each profane word or phrase, regardless of the length or number of words.
Amazon Translate doesn't detect profanity in all of its supported languages. For languages that don't support profanity detection, see Unsupported languages in the Amazon Translate Developer Guide.
If you specify multiple target languages for the job, all the target languages must support profanity masking. If any of the target languages don't support profanity masking, the translation job won't mask profanity for any target language.
" + "TranslationSettings$Profanity": "You can enable the profanity setting if you want to mask profane words and phrases in your translation output.
To mask profane words and phrases, Amazon Translate replaces them with the grawlix string “?$#@$“. This 5-character sequence is used for each profane word or phrase, regardless of the length or number of words.
Amazon Translate doesn't detect profanity in all of its supported languages. For languages that don't support profanity detection, see Unsupported languages in the Amazon Translate Developer Guide.
If you specify multiple target languages for the job, all the target languages must support profanity masking. If any of the target languages don't support profanity masking, the translation job won't mask profanity for any target language.
" } }, "ResourceArn": { @@ -787,13 +793,13 @@ } }, "TranslationSettings": { - "base": "Settings to configure your translation output, including the option to set the formality level of the output text and the option to mask profane words and phrases.
", + "base": "Settings to configure your translation output. You can configure the following options:
Brevity: reduces the length of the translation output for most translations. Available for TranslateText
only.
Formality: sets the formality level of the translation output.
Profanity: masks profane words and phrases in the translation output.
Settings to configure your translation output, including the option to set the formality level of the output text and the option to mask profane words and phrases.
", + "StartTextTranslationJobRequest$Settings": "Settings to configure your translation output. You can configure the following options:
Brevity: not supported.
Formality: sets the formality level of the output text.
Profanity: masks profane words and phrases in your translation output.
Settings that modify the translation output.
", - "TranslateDocumentRequest$Settings": null, + "TranslateDocumentRequest$Settings": "Settings to configure your translation output. You can configure the following options:
Brevity: not supported.
Formality: sets the formality level of the output text.
Profanity: masks profane words and phrases in your translation output.
Settings to configure your translation output, including the option to set the formality level of the output text and the option to mask profane words and phrases.
", + "TranslateTextRequest$Settings": "Settings to configure your translation output. You can configure the following options:
Brevity: reduces the length of the translated output for most translations.
Formality: sets the formality level of the output text.
Profanity: masks profane words and phrases in your translation output.
Optional settings that modify the translation output.
" } }, diff --git a/models/apis/translate/2017-07-01/endpoint-rule-set-1.json b/models/apis/translate/2017-07-01/endpoint-rule-set-1.json index 44b476b069c..cdfd2c4b36c 100644 --- a/models/apis/translate/2017-07-01/endpoint-rule-set-1.json +++ b/models/apis/translate/2017-07-01/endpoint-rule-set-1.json @@ -40,7 +40,6 @@ ] } ], - "type": "tree", "rules": [ { "conditions": [ @@ -58,293 +57,258 @@ "type": "error" }, { - "conditions": [], - "type": "tree", - "rules": [ + "conditions": [ { - "conditions": [ + "fn": "booleanEquals", + "argv": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [], - "endpoint": { - "url": { - "ref": "Endpoint" + "ref": "UseDualStack" }, - "properties": {}, - "headers": {} - }, - "type": "endpoint" + true + ] } - ] + ], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" + }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" } - ] + ], + "type": "tree" }, { - "conditions": [], - "type": "tree", + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Region" + } + ] + } + ], "rules": [ { "conditions": [ { - "fn": "isSet", + "fn": "aws.partition", "argv": [ { "ref": "Region" } - ] + ], + "assign": "PartitionResult" } ], - "type": "tree", "rules": [ { "conditions": [ { - "fn": "aws.partition", + "fn": "booleanEquals", "argv": [ { - "ref": "Region" - } - ], - "assign": "PartitionResult" + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] } ], - "type": "tree", "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseFIPS" - }, - true + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } ] }, { "fn": "booleanEquals", "argv": [ + true, { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", + "fn": "getAttr", "argv": [ - true, { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - }, - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://translate-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://translate-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://translate-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://translate-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://translate.{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://translate.{Region}.{PartitionResult#dnsSuffix}", + "url": "https://translate.{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://translate.{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/service/amplify/amplifyiface/interface.go b/service/amplify/amplifyiface/interface.go index ceadaf6aebc..06642373a87 100644 --- a/service/amplify/amplifyiface/interface.go +++ b/service/amplify/amplifyiface/interface.go @@ -144,6 +144,9 @@ type AmplifyAPI interface { ListAppsWithContext(aws.Context, *amplify.ListAppsInput, ...request.Option) (*amplify.ListAppsOutput, error) ListAppsRequest(*amplify.ListAppsInput) (*request.Request, *amplify.ListAppsOutput) + ListAppsPages(*amplify.ListAppsInput, func(*amplify.ListAppsOutput, bool) bool) error + ListAppsPagesWithContext(aws.Context, *amplify.ListAppsInput, func(*amplify.ListAppsOutput, bool) bool, ...request.Option) error + ListArtifacts(*amplify.ListArtifactsInput) (*amplify.ListArtifactsOutput, error) ListArtifactsWithContext(aws.Context, *amplify.ListArtifactsInput, ...request.Option) (*amplify.ListArtifactsOutput, error) ListArtifactsRequest(*amplify.ListArtifactsInput) (*request.Request, *amplify.ListArtifactsOutput) @@ -156,14 +159,23 @@ type AmplifyAPI interface { ListBranchesWithContext(aws.Context, *amplify.ListBranchesInput, ...request.Option) (*amplify.ListBranchesOutput, error) ListBranchesRequest(*amplify.ListBranchesInput) (*request.Request, *amplify.ListBranchesOutput) + ListBranchesPages(*amplify.ListBranchesInput, func(*amplify.ListBranchesOutput, bool) bool) error + ListBranchesPagesWithContext(aws.Context, *amplify.ListBranchesInput, func(*amplify.ListBranchesOutput, bool) bool, ...request.Option) error + ListDomainAssociations(*amplify.ListDomainAssociationsInput) (*amplify.ListDomainAssociationsOutput, error) ListDomainAssociationsWithContext(aws.Context, *amplify.ListDomainAssociationsInput, ...request.Option) (*amplify.ListDomainAssociationsOutput, error) ListDomainAssociationsRequest(*amplify.ListDomainAssociationsInput) (*request.Request, *amplify.ListDomainAssociationsOutput) + ListDomainAssociationsPages(*amplify.ListDomainAssociationsInput, func(*amplify.ListDomainAssociationsOutput, bool) bool) error + ListDomainAssociationsPagesWithContext(aws.Context, *amplify.ListDomainAssociationsInput, func(*amplify.ListDomainAssociationsOutput, bool) bool, ...request.Option) error + ListJobs(*amplify.ListJobsInput) (*amplify.ListJobsOutput, error) ListJobsWithContext(aws.Context, *amplify.ListJobsInput, ...request.Option) (*amplify.ListJobsOutput, error) ListJobsRequest(*amplify.ListJobsInput) (*request.Request, *amplify.ListJobsOutput) + ListJobsPages(*amplify.ListJobsInput, func(*amplify.ListJobsOutput, bool) bool) error + ListJobsPagesWithContext(aws.Context, *amplify.ListJobsInput, func(*amplify.ListJobsOutput, bool) bool, ...request.Option) error + ListTagsForResource(*amplify.ListTagsForResourceInput) (*amplify.ListTagsForResourceOutput, error) ListTagsForResourceWithContext(aws.Context, *amplify.ListTagsForResourceInput, ...request.Option) (*amplify.ListTagsForResourceOutput, error) ListTagsForResourceRequest(*amplify.ListTagsForResourceInput) (*request.Request, *amplify.ListTagsForResourceOutput) diff --git a/service/amplify/api.go b/service/amplify/api.go index 90766e87d1d..f2469ac00f4 100644 --- a/service/amplify/api.go +++ b/service/amplify/api.go @@ -335,6 +335,10 @@ func (c *Amplify) CreateDeploymentRequest(input *CreateDeploymentInput) (req *re // Creates a deployment for a manually deployed Amplify app. Manually deployed // apps are not connected to a repository. // +// The maximum duration between the CreateDeployment call and the StartDeployment +// call cannot exceed 8 hours. If the duration exceeds 8 hours, the StartDeployment +// call and the associated Job will fail. +// // 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. @@ -1245,7 +1249,7 @@ func (c *Amplify) GetAppRequest(input *GetAppInput) (req *request.Request, outpu // GetApp API operation for AWS Amplify. // -// Returns an existing Amplify app by appID. +// Returns an existing Amplify app specified by an app ID. // // 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 @@ -1857,6 +1861,12 @@ func (c *Amplify) ListAppsRequest(input *ListAppsInput) (req *request.Request, o Name: opListApps, HTTPMethod: "GET", HTTPPath: "/apps", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, } if input == nil { @@ -1912,6 +1922,57 @@ func (c *Amplify) ListAppsWithContext(ctx aws.Context, input *ListAppsInput, opt return out, req.Send() } +// ListAppsPages iterates over the pages of a ListApps operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListApps method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListApps operation. +// pageNum := 0 +// err := client.ListAppsPages(params, +// func(page *amplify.ListAppsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *Amplify) ListAppsPages(input *ListAppsInput, fn func(*ListAppsOutput, bool) bool) error { + return c.ListAppsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListAppsPagesWithContext same as ListAppsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Amplify) ListAppsPagesWithContext(ctx aws.Context, input *ListAppsInput, fn func(*ListAppsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListAppsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListAppsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListAppsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opListArtifacts = "ListArtifacts" // ListArtifactsRequest generates a "aws/request.Request" representing the @@ -2115,6 +2176,12 @@ func (c *Amplify) ListBranchesRequest(input *ListBranchesInput) (req *request.Re Name: opListBranches, HTTPMethod: "GET", HTTPPath: "/apps/{appId}/branches", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, } if input == nil { @@ -2170,6 +2237,57 @@ func (c *Amplify) ListBranchesWithContext(ctx aws.Context, input *ListBranchesIn return out, req.Send() } +// ListBranchesPages iterates over the pages of a ListBranches operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListBranches method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListBranches operation. +// pageNum := 0 +// err := client.ListBranchesPages(params, +// func(page *amplify.ListBranchesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *Amplify) ListBranchesPages(input *ListBranchesInput, fn func(*ListBranchesOutput, bool) bool) error { + return c.ListBranchesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListBranchesPagesWithContext same as ListBranchesPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Amplify) ListBranchesPagesWithContext(ctx aws.Context, input *ListBranchesInput, fn func(*ListBranchesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListBranchesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListBranchesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListBranchesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opListDomainAssociations = "ListDomainAssociations" // ListDomainAssociationsRequest generates a "aws/request.Request" representing the @@ -2200,6 +2318,12 @@ func (c *Amplify) ListDomainAssociationsRequest(input *ListDomainAssociationsInp Name: opListDomainAssociations, HTTPMethod: "GET", HTTPPath: "/apps/{appId}/domains", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, } if input == nil { @@ -2255,6 +2379,57 @@ func (c *Amplify) ListDomainAssociationsWithContext(ctx aws.Context, input *List return out, req.Send() } +// ListDomainAssociationsPages iterates over the pages of a ListDomainAssociations operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListDomainAssociations method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListDomainAssociations operation. +// pageNum := 0 +// err := client.ListDomainAssociationsPages(params, +// func(page *amplify.ListDomainAssociationsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *Amplify) ListDomainAssociationsPages(input *ListDomainAssociationsInput, fn func(*ListDomainAssociationsOutput, bool) bool) error { + return c.ListDomainAssociationsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListDomainAssociationsPagesWithContext same as ListDomainAssociationsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Amplify) ListDomainAssociationsPagesWithContext(ctx aws.Context, input *ListDomainAssociationsInput, fn func(*ListDomainAssociationsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListDomainAssociationsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListDomainAssociationsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListDomainAssociationsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opListJobs = "ListJobs" // ListJobsRequest generates a "aws/request.Request" representing the @@ -2285,6 +2460,12 @@ func (c *Amplify) ListJobsRequest(input *ListJobsInput) (req *request.Request, o Name: opListJobs, HTTPMethod: "GET", HTTPPath: "/apps/{appId}/branches/{branchName}/jobs", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, } if input == nil { @@ -2343,6 +2524,57 @@ func (c *Amplify) ListJobsWithContext(ctx aws.Context, input *ListJobsInput, opt return out, req.Send() } +// ListJobsPages iterates over the pages of a ListJobs operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListJobs method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListJobs operation. +// pageNum := 0 +// err := client.ListJobsPages(params, +// func(page *amplify.ListJobsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *Amplify) ListJobsPages(input *ListJobsInput, fn func(*ListJobsOutput, bool) bool) error { + return c.ListJobsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListJobsPagesWithContext same as ListJobsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Amplify) ListJobsPagesWithContext(ctx aws.Context, input *ListJobsInput, fn func(*ListJobsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListJobsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListJobsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListJobsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opListTagsForResource = "ListTagsForResource" // ListTagsForResourceRequest generates a "aws/request.Request" representing the @@ -2562,6 +2794,10 @@ func (c *Amplify) StartDeploymentRequest(input *StartDeploymentInput) (req *requ // Starts a deployment for a manually deployed app. Manually deployed apps are // not connected to a repository. // +// The maximum duration between the CreateDeployment call and the StartDeployment +// call cannot exceed 8 hours. If the duration exceeds 8 hours, the StartDeployment +// call and the associated Job will fail. +// // 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. @@ -3395,12 +3631,16 @@ type App struct { // EnableBranchAutoBuild is a required field EnableBranchAutoBuild *bool `locationName:"enableBranchAutoBuild" type:"boolean" required:"true"` - // Automatically disconnect a branch in the Amplify Console when you delete + // Automatically disconnect a branch in the Amplify console when you delete // a branch from your Git repository. EnableBranchAutoDeletion *bool `locationName:"enableBranchAutoDeletion" type:"boolean"` // The environment variables for the Amplify app. // + // For a list of the environment variables that are accessible to Amplify by + // default, see Amplify Environment variables (https://docs.aws.amazon.com/amplify/latest/userguide/amplify-console-environment-variables.html) + // in the Amplify Hosting User Guide. + // // EnvironmentVariables is a required field EnvironmentVariables map[string]*string `locationName:"environmentVariables" type:"map" required:"true"` @@ -3794,6 +4034,51 @@ func (s *AutoBranchCreationConfig) SetStage(v string) *AutoBranchCreationConfig return s } +// Describes the backend properties associated with an Amplify Branch. +type Backend struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) for the CloudFormation stack. + StackArn *string `locationName:"stackArn" min:"20" 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 Backend) 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 Backend) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Backend) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Backend"} + if s.StackArn != nil && len(*s.StackArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("StackArn", 20)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetStackArn sets the StackArn field's value. +func (s *Backend) SetStackArn(v string) *Backend { + s.StackArn = &v + return s +} + // Describes the backend environment for an Amplify app. type BackendEnvironment struct { _ struct{} `type:"structure"` @@ -3958,6 +4243,9 @@ type Branch struct { // A list of custom resources that are linked to this branch. AssociatedResources []*string `locationName:"associatedResources" type:"list"` + // Describes the backend properties associated with an Amplify Branch. + Backend *Backend `locationName:"backend" type:"structure"` + // The Amazon Resource Name (ARN) for a backend environment that is part of // an Amplify app. BackendEnvironmentArn *string `locationName:"backendEnvironmentArn" type:"string"` @@ -4112,6 +4400,12 @@ func (s *Branch) SetAssociatedResources(v []*string) *Branch { return s } +// SetBackend sets the Backend field's value. +func (s *Branch) SetBackend(v *Backend) *Branch { + s.Backend = v + return s +} + // SetBackendEnvironmentArn sets the BackendEnvironmentArn field's value. func (s *Branch) SetBackendEnvironmentArn(v string) *Branch { s.BackendEnvironmentArn = &v @@ -4278,7 +4572,7 @@ type CreateAppInput struct { // Existing Amplify apps deployed from a GitHub repository using OAuth continue // to work with CI/CD. However, we strongly recommend that you migrate these // apps to use the GitHub App. For more information, see Migrating an existing - // OAuth app to the Amplify GitHub App (https://docs.aws.amazon.com/amplify/latest/UserGuide/setting-up-GitHub-access.html#migrating-to-github-app-auth) + // OAuth app to the Amplify GitHub App (https://docs.aws.amazon.com/amplify/latest/userguide/setting-up-GitHub-access.html#migrating-to-github-app-auth) // in the Amplify User Guide . // // AccessToken is a sensitive parameter and its value will be @@ -4313,7 +4607,7 @@ type CreateAppInput struct { // The custom rewrite and redirect rules for an Amplify app. CustomRules []*CustomRule `locationName:"customRules" type:"list"` - // The description for an Amplify app. + // The description of the Amplify app. Description *string `locationName:"description" type:"string"` // Enables automated branch creation for an Amplify app. @@ -4326,18 +4620,22 @@ type CreateAppInput struct { // Enables the auto building of branches for an Amplify app. EnableBranchAutoBuild *bool `locationName:"enableBranchAutoBuild" type:"boolean"` - // Automatically disconnects a branch in the Amplify Console when you delete + // Automatically disconnects a branch in the Amplify console when you delete // a branch from your Git repository. EnableBranchAutoDeletion *bool `locationName:"enableBranchAutoDeletion" type:"boolean"` // The environment variables map for an Amplify app. + // + // For a list of the environment variables that are accessible to Amplify by + // default, see Amplify Environment variables (https://docs.aws.amazon.com/amplify/latest/userguide/amplify-console-environment-variables.html) + // in the Amplify Hosting User Guide. EnvironmentVariables map[string]*string `locationName:"environmentVariables" type:"map"` // The AWS Identity and Access Management (IAM) service role for an Amplify // app. IamServiceRoleArn *string `locationName:"iamServiceRoleArn" type:"string"` - // The name for an Amplify app. + // The name of the Amplify app. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` @@ -4355,7 +4653,7 @@ type CreateAppInput struct { // Existing Amplify apps deployed from a GitHub repository using OAuth continue // to work with CI/CD. However, we strongly recommend that you migrate these // apps to use the GitHub App. For more information, see Migrating an existing - // OAuth app to the Amplify GitHub App (https://docs.aws.amazon.com/amplify/latest/UserGuide/setting-up-GitHub-access.html#migrating-to-github-app-auth) + // OAuth app to the Amplify GitHub App (https://docs.aws.amazon.com/amplify/latest/userguide/setting-up-GitHub-access.html#migrating-to-github-app-auth) // in the Amplify User Guide . // // OauthToken is a sensitive parameter and its value will be @@ -4369,7 +4667,7 @@ type CreateAppInput struct { // only, set the platform type to WEB_DYNAMIC. Platform *string `locationName:"platform" type:"string" enum:"Platform"` - // The repository for an Amplify app. + // The Git repository for the Amplify app. Repository *string `locationName:"repository" type:"string"` // The tag for an Amplify app. @@ -4713,6 +5011,10 @@ type CreateBranchInput struct { // AppId is a required field AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"` + // The backend for a Branch of an Amplify app. Use for a backend created from + // an CloudFormation stack. + Backend *Backend `locationName:"backend" type:"structure"` + // The Amazon Resource Name (ARN) for a backend environment that is part of // an Amplify app. BackendEnvironmentArn *string `locationName:"backendEnvironmentArn" type:"string"` @@ -4817,6 +5119,11 @@ func (s *CreateBranchInput) Validate() error { if s.BuildSpec != nil && len(*s.BuildSpec) < 1 { invalidParams.Add(request.NewErrParamMinLen("BuildSpec", 1)) } + if s.Backend != nil { + if err := s.Backend.Validate(); err != nil { + invalidParams.AddNested("Backend", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -4830,6 +5137,12 @@ func (s *CreateBranchInput) SetAppId(v string) *CreateBranchInput { return s } +// SetBackend sets the Backend field's value. +func (s *CreateBranchInput) SetBackend(v *Backend) *CreateBranchInput { + s.Backend = v + return s +} + // SetBackendEnvironmentArn sets the BackendEnvironmentArn field's value. func (s *CreateBranchInput) SetBackendEnvironmentArn(v string) *CreateBranchInput { s.BackendEnvironmentArn = &v @@ -4976,7 +5289,7 @@ type CreateDeploymentInput struct { // AppId is a required field AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"` - // The name for the branch, for the job. + // The name of the branch to use for the job. // // BranchName is a required field BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"` @@ -5667,7 +5980,7 @@ type DeleteBranchInput struct { // AppId is a required field AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"` - // The name for the branch. + // The name of the branch. // // BranchName is a required field BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"` @@ -5869,7 +6182,7 @@ type DeleteJobInput struct { // AppId is a required field AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"` - // The name for the branch, for the job. + // The name of the branch to use for the job. // // BranchName is a required field BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"` @@ -6649,7 +6962,7 @@ type GetBranchInput struct { // AppId is a required field AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"` - // The name for the branch. + // The name of the branch. // // BranchName is a required field BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"` @@ -6851,7 +7164,7 @@ type GetJobInput struct { // AppId is a required field AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"` - // The branch name for the job. + // The name of the branch to use for the job. // // BranchName is a required field BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"` @@ -7937,7 +8250,7 @@ type ListJobsInput struct { // AppId is a required field AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"` - // The name for a branch. + // The name of the branch to use for the request. // // BranchName is a required field BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"` @@ -8453,7 +8766,7 @@ type StartDeploymentInput struct { // AppId is a required field AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"` - // The name for the branch, for the job. + // The name of the branch to use for the job. // // BranchName is a required field BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"` @@ -8574,7 +8887,7 @@ type StartJobInput struct { // AppId is a required field AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"` - // The branch name for the job. + // The name of the branch to use for the job. // // BranchName is a required field BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"` @@ -8592,13 +8905,15 @@ type StartJobInput struct { // is RETRY. JobId *string `locationName:"jobId" type:"string"` - // A descriptive reason for starting this job. + // A descriptive reason for starting the job. JobReason *string `locationName:"jobReason" type:"string"` // Describes the type for the job. The job type RELEASE starts a new job with // the latest change from the specified branch. This value is available only - // for apps that are connected to a repository. The job type RETRY retries an - // existing job. If the job type value is RETRY, the jobId is also required. + // for apps that are connected to a repository. + // + // The job type RETRY retries an existing job. If the job type value is RETRY, + // the jobId is also required. // // JobType is a required field JobType *string `locationName:"jobType" type:"string" required:"true" enum:"JobType"` @@ -8868,7 +9183,7 @@ type StopJobInput struct { // AppId is a required field AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"` - // The name for the branch, for the job. + // The name of the branch to use for the stop job request. // // BranchName is a required field BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"` @@ -9354,7 +9669,7 @@ type UpdateAppInput struct { // Existing Amplify apps deployed from a GitHub repository using OAuth continue // to work with CI/CD. However, we strongly recommend that you migrate these // apps to use the GitHub App. For more information, see Migrating an existing - // OAuth app to the Amplify GitHub App (https://docs.aws.amazon.com/amplify/latest/UserGuide/setting-up-GitHub-access.html#migrating-to-github-app-auth) + // OAuth app to the Amplify GitHub App (https://docs.aws.amazon.com/amplify/latest/userguide/setting-up-GitHub-access.html#migrating-to-github-app-auth) // in the Amplify User Guide . // // AccessToken is a sensitive parameter and its value will be @@ -9406,7 +9721,7 @@ type UpdateAppInput struct { // Enables branch auto-building for an Amplify app. EnableBranchAutoBuild *bool `locationName:"enableBranchAutoBuild" type:"boolean"` - // Automatically disconnects a branch in the Amplify Console when you delete + // Automatically disconnects a branch in the Amplify console when you delete // a branch from your Git repository. EnableBranchAutoDeletion *bool `locationName:"enableBranchAutoDeletion" type:"boolean"` @@ -9434,7 +9749,7 @@ type UpdateAppInput struct { // Existing Amplify apps deployed from a GitHub repository using OAuth continue // to work with CI/CD. However, we strongly recommend that you migrate these // apps to use the GitHub App. For more information, see Migrating an existing - // OAuth app to the Amplify GitHub App (https://docs.aws.amazon.com/amplify/latest/UserGuide/setting-up-GitHub-access.html#migrating-to-github-app-auth) + // OAuth app to the Amplify GitHub App (https://docs.aws.amazon.com/amplify/latest/userguide/setting-up-GitHub-access.html#migrating-to-github-app-auth) // in the Amplify User Guide . // // OauthToken is a sensitive parameter and its value will be @@ -9448,7 +9763,7 @@ type UpdateAppInput struct { // only, set the platform type to WEB_DYNAMIC. Platform *string `locationName:"platform" type:"string" enum:"Platform"` - // The name of the repository for an Amplify app + // The name of the Git repository for an Amplify app. Repository *string `locationName:"repository" type:"string"` } @@ -9667,6 +9982,10 @@ type UpdateBranchInput struct { // AppId is a required field AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"` + // The backend for a Branch of an Amplify app. Use for a backend created from + // an CloudFormation stack. + Backend *Backend `locationName:"backend" type:"structure"` + // The Amazon Resource Name (ARN) for a backend environment that is part of // an Amplify app. BackendEnvironmentArn *string `locationName:"backendEnvironmentArn" type:"string"` @@ -9679,7 +9998,7 @@ type UpdateBranchInput struct { // String and GoString methods. BasicAuthCredentials *string `locationName:"basicAuthCredentials" type:"string" sensitive:"true"` - // The name for the branch. + // The name of the branch. // // BranchName is a required field BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"` @@ -9768,6 +10087,11 @@ func (s *UpdateBranchInput) Validate() error { if s.BuildSpec != nil && len(*s.BuildSpec) < 1 { invalidParams.Add(request.NewErrParamMinLen("BuildSpec", 1)) } + if s.Backend != nil { + if err := s.Backend.Validate(); err != nil { + invalidParams.AddNested("Backend", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -9781,6 +10105,12 @@ func (s *UpdateBranchInput) SetAppId(v string) *UpdateBranchInput { return s } +// SetBackend sets the Backend field's value. +func (s *UpdateBranchInput) SetBackend(v *Backend) *UpdateBranchInput { + s.Backend = v + return s +} + // SetBackendEnvironmentArn sets the BackendEnvironmentArn field's value. func (s *UpdateBranchInput) SetBackendEnvironmentArn(v string) *UpdateBranchInput { s.BackendEnvironmentArn = &v diff --git a/service/amplify/doc.go b/service/amplify/doc.go index c80f7e45755..23963e04202 100644 --- a/service/amplify/doc.go +++ b/service/amplify/doc.go @@ -4,9 +4,9 @@ // requests to AWS Amplify. // // Amplify enables developers to develop and deploy cloud-powered mobile and -// web apps. The Amplify Console provides a continuous delivery and hosting -// service for web applications. For more information, see the Amplify Console -// User Guide (https://docs.aws.amazon.com/amplify/latest/userguide/welcome.html). +// web apps. Amplify Hosting provides a continuous delivery and hosting service +// for web applications. For more information, see the Amplify Hosting User +// Guide (https://docs.aws.amazon.com/amplify/latest/userguide/welcome.html). // The Amplify Framework is a comprehensive set of SDKs, libraries, tools, and // documentation for client app development. For more information, see the Amplify // Framework. (https://docs.amplify.aws/) diff --git a/service/applicationinsights/api.go b/service/applicationinsights/api.go index 2711d3cc926..a3810d150cc 100644 --- a/service/applicationinsights/api.go +++ b/service/applicationinsights/api.go @@ -2995,6 +2995,9 @@ func (c *ApplicationInsights) UpdateComponentConfigurationRequest(input *UpdateC // - InternalServerException // The server encountered an internal error and is unable to complete the request. // +// - ResourceInUseException +// The resource is already created or in use. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateComponentConfiguration func (c *ApplicationInsights) UpdateComponentConfiguration(input *UpdateComponentConfigurationInput) (*UpdateComponentConfigurationOutput, error) { req, out := c.UpdateComponentConfigurationRequest(input) @@ -3563,6 +3566,10 @@ type ApplicationInfo struct { // The AWS account ID for the owner of the application. AccountId *string `min:"12" type:"string"` + // If set to true, the managed policies for SSM and CW will be attached to the + // instance roles if they are missing. + AttachMissingPermission *bool `type:"boolean"` + // Indicates whether auto-configuration is turned on for this application. AutoConfigEnabled *bool `type:"boolean"` @@ -3621,6 +3628,12 @@ func (s *ApplicationInfo) SetAccountId(v string) *ApplicationInfo { return s } +// SetAttachMissingPermission sets the AttachMissingPermission field's value. +func (s *ApplicationInfo) SetAttachMissingPermission(v bool) *ApplicationInfo { + s.AttachMissingPermission = &v + return s +} + // SetAutoConfigEnabled sets the AutoConfigEnabled field's value. func (s *ApplicationInfo) SetAutoConfigEnabled(v bool) *ApplicationInfo { s.AutoConfigEnabled = &v @@ -3835,6 +3848,10 @@ func (s *ConfigurationEvent) SetResourceGroupName(v string) *ConfigurationEvent type CreateApplicationInput struct { _ struct{} `type:"structure"` + // If set to true, the managed policies for SSM and CW will be attached to the + // instance roles if they are missing. + AttachMissingPermission *bool `type:"boolean"` + // Indicates whether Application Insights automatically configures unmonitored // resources in the resource group. AutoConfigEnabled *bool `type:"boolean"` @@ -3913,6 +3930,12 @@ func (s *CreateApplicationInput) Validate() error { return nil } +// SetAttachMissingPermission sets the AttachMissingPermission field's value. +func (s *CreateApplicationInput) SetAttachMissingPermission(v bool) *CreateApplicationInput { + s.AttachMissingPermission = &v + return s +} + // SetAutoConfigEnabled sets the AutoConfigEnabled field's value. func (s *CreateApplicationInput) SetAutoConfigEnabled(v bool) *CreateApplicationInput { s.AutoConfigEnabled = &v @@ -4761,6 +4784,9 @@ type DescribeComponentConfigurationRecommendationInput struct { // // Tier is a required field Tier *string `min:"1" type:"string" required:"true" enum:"Tier"` + + // The name of the workload. + WorkloadName *string `min:"1" type:"string"` } // String returns the string representation. @@ -4802,6 +4828,9 @@ func (s *DescribeComponentConfigurationRecommendationInput) Validate() error { if s.Tier != nil && len(*s.Tier) < 1 { invalidParams.Add(request.NewErrParamMinLen("Tier", 1)) } + if s.WorkloadName != nil && len(*s.WorkloadName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkloadName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4833,6 +4862,12 @@ func (s *DescribeComponentConfigurationRecommendationInput) SetTier(v string) *D return s } +// SetWorkloadName sets the WorkloadName field's value. +func (s *DescribeComponentConfigurationRecommendationInput) SetWorkloadName(v string) *DescribeComponentConfigurationRecommendationInput { + s.WorkloadName = &v + return s +} + type DescribeComponentConfigurationRecommendationOutput struct { _ struct{} `type:"structure"` @@ -8064,6 +8099,10 @@ func (s UntagResourceOutput) GoString() string { type UpdateApplicationInput struct { _ struct{} `type:"structure"` + // If set to true, the managed policies for SSM and CW will be attached to the + // instance roles if they are missing. + AttachMissingPermission *bool `type:"boolean"` + // Turns auto-configuration on or off. AutoConfigEnabled *bool `type:"boolean"` @@ -8125,6 +8164,12 @@ func (s *UpdateApplicationInput) Validate() error { return nil } +// SetAttachMissingPermission sets the AttachMissingPermission field's value. +func (s *UpdateApplicationInput) SetAttachMissingPermission(v bool) *UpdateApplicationInput { + s.AttachMissingPermission = &v + return s +} + // SetAutoConfigEnabled sets the AutoConfigEnabled field's value. func (s *UpdateApplicationInput) SetAutoConfigEnabled(v bool) *UpdateApplicationInput { s.AutoConfigEnabled = &v diff --git a/service/connect/api.go b/service/connect/api.go index 412aa8c7d1a..f904571b845 100644 --- a/service/connect/api.go +++ b/service/connect/api.go @@ -1190,6 +1190,100 @@ func (c *Connect) AssociateTrafficDistributionGroupUserWithContext(ctx aws.Conte return out, req.Send() } +const opBatchGetFlowAssociation = "BatchGetFlowAssociation" + +// BatchGetFlowAssociationRequest generates a "aws/request.Request" representing the +// client's request for the BatchGetFlowAssociation 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 BatchGetFlowAssociation for more information on using the BatchGetFlowAssociation +// 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 BatchGetFlowAssociationRequest method. +// req, resp := client.BatchGetFlowAssociationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/BatchGetFlowAssociation +func (c *Connect) BatchGetFlowAssociationRequest(input *BatchGetFlowAssociationInput) (req *request.Request, output *BatchGetFlowAssociationOutput) { + op := &request.Operation{ + Name: opBatchGetFlowAssociation, + HTTPMethod: "POST", + HTTPPath: "/flow-associations-batch/{InstanceId}", + } + + if input == nil { + input = &BatchGetFlowAssociationInput{} + } + + output = &BatchGetFlowAssociationOutput{} + req = c.newRequest(op, input, output) + return +} + +// BatchGetFlowAssociation API operation for Amazon Connect Service. +// +// Retrieve the flow associations for the given resources. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Connect Service's +// API operation BatchGetFlowAssociation for usage and error information. +// +// Returned Error Types: +// +// - AccessDeniedException +// You do not have sufficient permissions to perform this action. +// +// - ResourceNotFoundException +// The specified resource was not found. +// +// - InternalServiceException +// Request processing failed because of an error or failure with the service. +// +// - InvalidRequestException +// The request is not valid. +// +// - InvalidParameterException +// One or more of the specified parameters are not valid. +// +// - ThrottlingException +// The throttling limit has been exceeded. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/BatchGetFlowAssociation +func (c *Connect) BatchGetFlowAssociation(input *BatchGetFlowAssociationInput) (*BatchGetFlowAssociationOutput, error) { + req, out := c.BatchGetFlowAssociationRequest(input) + return out, req.Send() +} + +// BatchGetFlowAssociationWithContext is the same as BatchGetFlowAssociation with the addition of +// the ability to pass a context and additional request options. +// +// See BatchGetFlowAssociation 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 *Connect) BatchGetFlowAssociationWithContext(ctx aws.Context, input *BatchGetFlowAssociationInput, opts ...request.Option) (*BatchGetFlowAssociationOutput, error) { + req, out := c.BatchGetFlowAssociationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opClaimPhoneNumber = "ClaimPhoneNumber" // ClaimPhoneNumberRequest generates a "aws/request.Request" representing the @@ -16042,7 +16136,8 @@ func (c *Connect) ReplicateInstanceRequest(input *ReplicateInstanceInput) (req * // ReplicateInstance API operation for Amazon Connect Service. // // Replicates an Amazon Connect instance in the specified Amazon Web Services -// Region. +// Region and copies configuration information for Amazon Connect resources +// across Amazon Web Services Regions. // // For more information about replicating an Amazon Connect instance, see Create // a replica of your existing Amazon Connect instance (https://docs.aws.amazon.com/connect/latest/adminguide/create-replica-connect-instance.html) @@ -23737,6 +23832,12 @@ type AgentStatus struct { // The display order of the agent status. DisplayOrder *int64 `min:"1" type:"integer"` + // The Amazon Web Services Region where this resource was last modified. + LastModifiedRegion *string `type:"string"` + + // The timestamp when this resource was last modified. + LastModifiedTime *time.Time `type:"timestamp"` + // The name of the agent status. Name *string `min:"1" type:"string"` @@ -23793,6 +23894,18 @@ func (s *AgentStatus) SetDisplayOrder(v int64) *AgentStatus { return s } +// SetLastModifiedRegion sets the LastModifiedRegion field's value. +func (s *AgentStatus) SetLastModifiedRegion(v string) *AgentStatus { + s.LastModifiedRegion = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *AgentStatus) SetLastModifiedTime(v time.Time) *AgentStatus { + s.LastModifiedTime = &v + return s +} + // SetName sets the Name field's value. func (s *AgentStatus) SetName(v string) *AgentStatus { s.Name = &v @@ -23877,6 +23990,12 @@ type AgentStatusSummary struct { // The identifier for an agent status. Id *string `type:"string"` + // The Amazon Web Services Region where this resource was last modified. + LastModifiedRegion *string `type:"string"` + + // The timestamp when this resource was last modified. + LastModifiedTime *time.Time `type:"timestamp"` + // The name of the agent status. Name *string `min:"1" type:"string"` @@ -23914,6 +24033,18 @@ func (s *AgentStatusSummary) SetId(v string) *AgentStatusSummary { return s } +// SetLastModifiedRegion sets the LastModifiedRegion field's value. +func (s *AgentStatusSummary) SetLastModifiedRegion(v string) *AgentStatusSummary { + s.LastModifiedRegion = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *AgentStatusSummary) SetLastModifiedTime(v time.Time) *AgentStatusSummary { + s.LastModifiedTime = &v + return s +} + // SetName sets the Name field's value. func (s *AgentStatusSummary) SetName(v string) *AgentStatusSummary { s.Name = &v @@ -25325,6 +25456,114 @@ func (s *AvailableNumberSummary) SetPhoneNumberType(v string) *AvailableNumberSu return s } +type BatchGetFlowAssociationInput struct { + _ struct{} `type:"structure"` + + // The identifier of the Amazon Connect instance. You can find the instance + // ID (https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html) + // in the Amazon Resource Name (ARN) of the instance. + // + // InstanceId is a required field + InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` + + // A list of resource identifiers to retrieve flow associations. + // + // ResourceIds is a required field + ResourceIds []*string `min:"1" type:"list" required:"true"` + + // The type of resource association. + ResourceType *string `type:"string" enum:"ListFlowAssociationResourceType"` +} + +// 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 BatchGetFlowAssociationInput) 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 BatchGetFlowAssociationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchGetFlowAssociationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchGetFlowAssociationInput"} + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + if s.InstanceId != nil && len(*s.InstanceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) + } + if s.ResourceIds == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceIds")) + } + if s.ResourceIds != nil && len(s.ResourceIds) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceIds", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceId sets the InstanceId field's value. +func (s *BatchGetFlowAssociationInput) SetInstanceId(v string) *BatchGetFlowAssociationInput { + s.InstanceId = &v + return s +} + +// SetResourceIds sets the ResourceIds field's value. +func (s *BatchGetFlowAssociationInput) SetResourceIds(v []*string) *BatchGetFlowAssociationInput { + s.ResourceIds = v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *BatchGetFlowAssociationInput) SetResourceType(v string) *BatchGetFlowAssociationInput { + s.ResourceType = &v + return s +} + +type BatchGetFlowAssociationOutput struct { + _ struct{} `type:"structure"` + + // Information about flow associations. + FlowAssociationSummaryList []*FlowAssociationSummary `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchGetFlowAssociationOutput) 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 BatchGetFlowAssociationOutput) GoString() string { + return s.String() +} + +// SetFlowAssociationSummaryList sets the FlowAssociationSummaryList field's value. +func (s *BatchGetFlowAssociationOutput) SetFlowAssociationSummaryList(v []*FlowAssociationSummary) *BatchGetFlowAssociationOutput { + s.FlowAssociationSummaryList = v + return s +} + // A chat message. type ChatMessage struct { _ struct{} `type:"structure"` @@ -27844,7 +28083,9 @@ type CreatePromptInput struct { // Name is a required field Name *string `min:"1" type:"string" required:"true"` - // The URI for the S3 bucket where the prompt is stored. + // The URI for the S3 bucket where the prompt is stored. You can provide S3 + // pre-signed URLs returned by the GetPromptFile (https://docs.aws.amazon.com/connect/latest/APIReference/API_GetPromptFile.html) + // API instead of providing S3 URIs. // // S3Uri is a required field S3Uri *string `min:"1" type:"string" required:"true"` @@ -38577,6 +38818,56 @@ func (s *Filters) SetRoutingProfiles(v []*string) *Filters { return s } +// Information about flow associations. +type FlowAssociationSummary struct { + _ struct{} `type:"structure"` + + // The identifier of the flow. + FlowId *string `type:"string"` + + // The identifier of the resource. + ResourceId *string `type:"string"` + + // The type of resource association. + ResourceType *string `type:"string" enum:"ListFlowAssociationResourceType"` +} + +// 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 FlowAssociationSummary) 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 FlowAssociationSummary) GoString() string { + return s.String() +} + +// SetFlowId sets the FlowId field's value. +func (s *FlowAssociationSummary) SetFlowId(v string) *FlowAssociationSummary { + s.FlowId = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *FlowAssociationSummary) SetResourceId(v string) *FlowAssociationSummary { + s.ResourceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *FlowAssociationSummary) SetResourceType(v string) *FlowAssociationSummary { + s.ResourceType = &v + return s +} + type GetContactAttributesInput struct { _ struct{} `type:"structure" nopayload:"true"` @@ -40338,6 +40629,12 @@ func (s *GetPromptFileInput) SetPromptId(v string) *GetPromptFileInput { type GetPromptFileOutput struct { _ struct{} `type:"structure"` + // The Amazon Web Services Region where this resource was last modified. + LastModifiedRegion *string `type:"string"` + + // The timestamp when this resource was last modified. + LastModifiedTime *time.Time `type:"timestamp"` + // A generated URL to the prompt that can be given to an unauthorized user so // they can access the prompt in S3. PromptPresignedUrl *string `min:"1" type:"string"` @@ -40361,6 +40658,18 @@ func (s GetPromptFileOutput) GoString() string { return s.String() } +// SetLastModifiedRegion sets the LastModifiedRegion field's value. +func (s *GetPromptFileOutput) SetLastModifiedRegion(v string) *GetPromptFileOutput { + s.LastModifiedRegion = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *GetPromptFileOutput) SetLastModifiedTime(v time.Time) *GetPromptFileOutput { + s.LastModifiedTime = &v + return s +} + // SetPromptPresignedUrl sets the PromptPresignedUrl field's value. func (s *GetPromptFileOutput) SetPromptPresignedUrl(v string) *GetPromptFileOutput { s.PromptPresignedUrl = &v @@ -40730,6 +41039,12 @@ type HierarchyGroup struct { // The identifier of the hierarchy group. Id *string `type:"string"` + // The Amazon Web Services Region where this resource was last modified. + LastModifiedRegion *string `type:"string"` + + // The timestamp when this resource was last modified. + LastModifiedTime *time.Time `type:"timestamp"` + // The identifier of the level in the hierarchy group. LevelId *string `type:"string"` @@ -40777,6 +41092,18 @@ func (s *HierarchyGroup) SetId(v string) *HierarchyGroup { return s } +// SetLastModifiedRegion sets the LastModifiedRegion field's value. +func (s *HierarchyGroup) SetLastModifiedRegion(v string) *HierarchyGroup { + s.LastModifiedRegion = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *HierarchyGroup) SetLastModifiedTime(v time.Time) *HierarchyGroup { + s.LastModifiedTime = &v + return s +} + // SetLevelId sets the LevelId field's value. func (s *HierarchyGroup) SetLevelId(v string) *HierarchyGroup { s.LevelId = &v @@ -40846,6 +41173,12 @@ type HierarchyGroupSummary struct { // The identifier of the hierarchy group. Id *string `type:"string"` + // The Amazon Web Services Region where this resource was last modified. + LastModifiedRegion *string `type:"string"` + + // The timestamp when this resource was last modified. + LastModifiedTime *time.Time `type:"timestamp"` + // The name of the hierarchy group. Name *string `type:"string"` } @@ -40880,6 +41213,18 @@ func (s *HierarchyGroupSummary) SetId(v string) *HierarchyGroupSummary { return s } +// SetLastModifiedRegion sets the LastModifiedRegion field's value. +func (s *HierarchyGroupSummary) SetLastModifiedRegion(v string) *HierarchyGroupSummary { + s.LastModifiedRegion = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *HierarchyGroupSummary) SetLastModifiedTime(v time.Time) *HierarchyGroupSummary { + s.LastModifiedTime = &v + return s +} + // SetName sets the Name field's value. func (s *HierarchyGroupSummary) SetName(v string) *HierarchyGroupSummary { s.Name = &v @@ -40937,6 +41282,12 @@ type HierarchyLevel struct { // The identifier of the hierarchy level. Id *string `type:"string"` + // The Amazon Web Services Region where this resource was last modified. + LastModifiedRegion *string `type:"string"` + + // The timestamp when this resource was last modified. + LastModifiedTime *time.Time `type:"timestamp"` + // The name of the hierarchy level. Name *string `type:"string"` } @@ -40971,6 +41322,18 @@ func (s *HierarchyLevel) SetId(v string) *HierarchyLevel { return s } +// SetLastModifiedRegion sets the LastModifiedRegion field's value. +func (s *HierarchyLevel) SetLastModifiedRegion(v string) *HierarchyLevel { + s.LastModifiedRegion = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *HierarchyLevel) SetLastModifiedTime(v time.Time) *HierarchyLevel { + s.LastModifiedTime = &v + return s +} + // SetName sets the Name field's value. func (s *HierarchyLevel) SetName(v string) *HierarchyLevel { s.Name = &v @@ -41490,6 +41853,12 @@ type HoursOfOperation struct { // The identifier for the hours of operation. HoursOfOperationId *string `type:"string"` + // The Amazon Web Services Region where this resource was last modified. + LastModifiedRegion *string `type:"string"` + + // The timestamp when this resource was last modified. + LastModifiedTime *time.Time `type:"timestamp"` + // The name for the hours of operation. Name *string `min:"1" type:"string"` @@ -41543,6 +41912,18 @@ func (s *HoursOfOperation) SetHoursOfOperationId(v string) *HoursOfOperation { return s } +// SetLastModifiedRegion sets the LastModifiedRegion field's value. +func (s *HoursOfOperation) SetLastModifiedRegion(v string) *HoursOfOperation { + s.LastModifiedRegion = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *HoursOfOperation) SetLastModifiedTime(v time.Time) *HoursOfOperation { + s.LastModifiedTime = &v + return s +} + // SetName sets the Name field's value. func (s *HoursOfOperation) SetName(v string) *HoursOfOperation { s.Name = &v @@ -41747,6 +42128,12 @@ type HoursOfOperationSummary struct { // The identifier of the hours of operation. Id *string `type:"string"` + // The Amazon Web Services Region where this resource was last modified. + LastModifiedRegion *string `type:"string"` + + // The timestamp when this resource was last modified. + LastModifiedTime *time.Time `type:"timestamp"` + // The name of the hours of operation. Name *string `type:"string"` } @@ -41781,6 +42168,18 @@ func (s *HoursOfOperationSummary) SetId(v string) *HoursOfOperationSummary { return s } +// SetLastModifiedRegion sets the LastModifiedRegion field's value. +func (s *HoursOfOperationSummary) SetLastModifiedRegion(v string) *HoursOfOperationSummary { + s.LastModifiedRegion = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *HoursOfOperationSummary) SetLastModifiedTime(v time.Time) *HoursOfOperationSummary { + s.LastModifiedTime = &v + return s +} + // SetName sets the Name field's value. func (s *HoursOfOperationSummary) SetName(v string) *HoursOfOperationSummary { s.Name = &v @@ -45871,6 +46270,12 @@ func (s *ListQueueQuickConnectsInput) SetQueueId(v string) *ListQueueQuickConnec type ListQueueQuickConnectsOutput struct { _ struct{} `type:"structure"` + // The Amazon Web Services Region where this resource was last modified. + LastModifiedRegion *string `type:"string"` + + // The timestamp when this resource was last modified. + LastModifiedTime *time.Time `type:"timestamp"` + // If there are additional results, this is the token for the next set of results. NextToken *string `type:"string"` @@ -45896,6 +46301,18 @@ func (s ListQueueQuickConnectsOutput) GoString() string { return s.String() } +// SetLastModifiedRegion sets the LastModifiedRegion field's value. +func (s *ListQueueQuickConnectsOutput) SetLastModifiedRegion(v string) *ListQueueQuickConnectsOutput { + s.LastModifiedRegion = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *ListQueueQuickConnectsOutput) SetLastModifiedTime(v time.Time) *ListQueueQuickConnectsOutput { + s.LastModifiedTime = &v + return s +} + // SetNextToken sets the NextToken field's value. func (s *ListQueueQuickConnectsOutput) SetNextToken(v string) *ListQueueQuickConnectsOutput { s.NextToken = &v @@ -46250,6 +46667,12 @@ func (s *ListRoutingProfileQueuesInput) SetRoutingProfileId(v string) *ListRouti type ListRoutingProfileQueuesOutput struct { _ struct{} `type:"structure"` + // The Amazon Web Services Region where this resource was last modified. + LastModifiedRegion *string `type:"string"` + + // The timestamp when this resource was last modified. + LastModifiedTime *time.Time `type:"timestamp"` + // If there are additional results, this is the token for the next set of results. NextToken *string `type:"string"` @@ -46275,6 +46698,18 @@ func (s ListRoutingProfileQueuesOutput) GoString() string { return s.String() } +// SetLastModifiedRegion sets the LastModifiedRegion field's value. +func (s *ListRoutingProfileQueuesOutput) SetLastModifiedRegion(v string) *ListRoutingProfileQueuesOutput { + s.LastModifiedRegion = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *ListRoutingProfileQueuesOutput) SetLastModifiedTime(v time.Time) *ListRoutingProfileQueuesOutput { + s.LastModifiedTime = &v + return s +} + // SetNextToken sets the NextToken field's value. func (s *ListRoutingProfileQueuesOutput) SetNextToken(v string) *ListRoutingProfileQueuesOutput { s.NextToken = &v @@ -46745,6 +47180,12 @@ type ListSecurityProfileApplicationsOutput struct { // A list of the third-party application's metadata. Applications []*Application `type:"list"` + // The Amazon Web Services Region where this resource was last modified. + LastModifiedRegion *string `type:"string"` + + // The timestamp when this resource was last modified. + LastModifiedTime *time.Time `type:"timestamp"` + // If there are additional results, this is the token for the next set of results. NextToken *string `type:"string"` } @@ -46773,6 +47214,18 @@ func (s *ListSecurityProfileApplicationsOutput) SetApplications(v []*Application return s } +// SetLastModifiedRegion sets the LastModifiedRegion field's value. +func (s *ListSecurityProfileApplicationsOutput) SetLastModifiedRegion(v string) *ListSecurityProfileApplicationsOutput { + s.LastModifiedRegion = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *ListSecurityProfileApplicationsOutput) SetLastModifiedTime(v time.Time) *ListSecurityProfileApplicationsOutput { + s.LastModifiedTime = &v + return s +} + // SetNextToken sets the NextToken field's value. func (s *ListSecurityProfileApplicationsOutput) SetNextToken(v string) *ListSecurityProfileApplicationsOutput { s.NextToken = &v @@ -46872,6 +47325,12 @@ func (s *ListSecurityProfilePermissionsInput) SetSecurityProfileId(v string) *Li type ListSecurityProfilePermissionsOutput struct { _ struct{} `type:"structure"` + // The Amazon Web Services Region where this resource was last modified. + LastModifiedRegion *string `type:"string"` + + // The timestamp when this resource was last modified. + LastModifiedTime *time.Time `type:"timestamp"` + // If there are additional results, this is the token for the next set of results. NextToken *string `type:"string"` @@ -46898,6 +47357,18 @@ func (s ListSecurityProfilePermissionsOutput) GoString() string { return s.String() } +// SetLastModifiedRegion sets the LastModifiedRegion field's value. +func (s *ListSecurityProfilePermissionsOutput) SetLastModifiedRegion(v string) *ListSecurityProfilePermissionsOutput { + s.LastModifiedRegion = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *ListSecurityProfilePermissionsOutput) SetLastModifiedTime(v time.Time) *ListSecurityProfilePermissionsOutput { + s.LastModifiedTime = &v + return s +} + // SetNextToken sets the NextToken field's value. func (s *ListSecurityProfilePermissionsOutput) SetNextToken(v string) *ListSecurityProfilePermissionsOutput { s.NextToken = &v @@ -49550,6 +50021,12 @@ type Prompt struct { // The description of the prompt. Description *string `min:"1" type:"string"` + // The Amazon Web Services Region where this resource was last modified. + LastModifiedRegion *string `type:"string"` + + // The timestamp when this resource was last modified. + LastModifiedTime *time.Time `type:"timestamp"` + // The name of the prompt. Name *string `min:"1" type:"string"` @@ -49588,6 +50065,18 @@ func (s *Prompt) SetDescription(v string) *Prompt { return s } +// SetLastModifiedRegion sets the LastModifiedRegion field's value. +func (s *Prompt) SetLastModifiedRegion(v string) *Prompt { + s.LastModifiedRegion = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *Prompt) SetLastModifiedTime(v time.Time) *Prompt { + s.LastModifiedTime = &v + return s +} + // SetName sets the Name field's value. func (s *Prompt) SetName(v string) *Prompt { s.Name = &v @@ -49712,6 +50201,12 @@ type PromptSummary struct { // The identifier of the prompt. Id *string `min:"1" type:"string"` + // The Amazon Web Services Region where this resource was last modified. + LastModifiedRegion *string `type:"string"` + + // The timestamp when this resource was last modified. + LastModifiedTime *time.Time `type:"timestamp"` + // The name of the prompt. Name *string `min:"1" type:"string"` } @@ -49746,6 +50241,18 @@ func (s *PromptSummary) SetId(v string) *PromptSummary { return s } +// SetLastModifiedRegion sets the LastModifiedRegion field's value. +func (s *PromptSummary) SetLastModifiedRegion(v string) *PromptSummary { + s.LastModifiedRegion = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *PromptSummary) SetLastModifiedTime(v time.Time) *PromptSummary { + s.LastModifiedTime = &v + return s +} + // SetName sets the Name field's value. func (s *PromptSummary) SetName(v string) *PromptSummary { s.Name = &v @@ -49988,6 +50495,12 @@ type Queue struct { // The identifier for the hours of operation. HoursOfOperationId *string `type:"string"` + // The Amazon Web Services Region where this resource was last modified. + LastModifiedRegion *string `type:"string"` + + // The timestamp when this resource was last modified. + LastModifiedTime *time.Time `type:"timestamp"` + // The maximum number of contacts that can be in the queue before it is considered // full. MaxContacts *int64 `type:"integer"` @@ -50042,6 +50555,18 @@ func (s *Queue) SetHoursOfOperationId(v string) *Queue { return s } +// SetLastModifiedRegion sets the LastModifiedRegion field's value. +func (s *Queue) SetLastModifiedRegion(v string) *Queue { + s.LastModifiedRegion = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *Queue) SetLastModifiedTime(v time.Time) *Queue { + s.LastModifiedTime = &v + return s +} + // SetMaxContacts sets the MaxContacts field's value. func (s *Queue) SetMaxContacts(v int64) *Queue { s.MaxContacts = &v @@ -50341,6 +50866,12 @@ type QueueSummary struct { // The identifier of the queue. Id *string `type:"string"` + // The Amazon Web Services Region where this resource was last modified. + LastModifiedRegion *string `type:"string"` + + // The timestamp when this resource was last modified. + LastModifiedTime *time.Time `type:"timestamp"` + // The name of the queue. Name *string `min:"1" type:"string"` @@ -50378,6 +50909,18 @@ func (s *QueueSummary) SetId(v string) *QueueSummary { return s } +// SetLastModifiedRegion sets the LastModifiedRegion field's value. +func (s *QueueSummary) SetLastModifiedRegion(v string) *QueueSummary { + s.LastModifiedRegion = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *QueueSummary) SetLastModifiedTime(v time.Time) *QueueSummary { + s.LastModifiedTime = &v + return s +} + // SetName sets the Name field's value. func (s *QueueSummary) SetName(v string) *QueueSummary { s.Name = &v @@ -50397,6 +50940,12 @@ type QuickConnect struct { // The description. Description *string `min:"1" type:"string"` + // The Amazon Web Services Region where this resource was last modified. + LastModifiedRegion *string `type:"string"` + + // The timestamp when this resource was last modified. + LastModifiedTime *time.Time `type:"timestamp"` + // The name of the quick connect. Name *string `min:"1" type:"string"` @@ -50438,6 +50987,18 @@ func (s *QuickConnect) SetDescription(v string) *QuickConnect { return s } +// SetLastModifiedRegion sets the LastModifiedRegion field's value. +func (s *QuickConnect) SetLastModifiedRegion(v string) *QuickConnect { + s.LastModifiedRegion = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *QuickConnect) SetLastModifiedTime(v time.Time) *QuickConnect { + s.LastModifiedTime = &v + return s +} + // SetName sets the Name field's value. func (s *QuickConnect) SetName(v string) *QuickConnect { s.Name = &v @@ -50659,6 +51220,12 @@ type QuickConnectSummary struct { // The identifier for the quick connect. Id *string `type:"string"` + // The Amazon Web Services Region where this resource was last modified. + LastModifiedRegion *string `type:"string"` + + // The timestamp when this resource was last modified. + LastModifiedTime *time.Time `type:"timestamp"` + // The name of the quick connect. Name *string `min:"1" type:"string"` @@ -50698,6 +51265,18 @@ func (s *QuickConnectSummary) SetId(v string) *QuickConnectSummary { return s } +// SetLastModifiedRegion sets the LastModifiedRegion field's value. +func (s *QuickConnectSummary) SetLastModifiedRegion(v string) *QuickConnectSummary { + s.LastModifiedRegion = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *QuickConnectSummary) SetLastModifiedTime(v time.Time) *QuickConnectSummary { + s.LastModifiedTime = &v + return s +} + // SetName sets the Name field's value. func (s *QuickConnectSummary) SetName(v string) *QuickConnectSummary { s.Name = &v @@ -51601,6 +52180,15 @@ type RoutingProfile struct { // in the Amazon Resource Name (ARN) of the instance. InstanceId *string `min:"1" type:"string"` + // Whether this a default routing profile. + IsDefault *bool `type:"boolean"` + + // The Amazon Web Services Region where this resource was last modified. + LastModifiedRegion *string `type:"string"` + + // The timestamp when this resource was last modified. + LastModifiedTime *time.Time `type:"timestamp"` + // The channels agents can handle in the Contact Control Panel (CCP) for this // routing profile. MediaConcurrencies []*MediaConcurrency `type:"list"` @@ -51667,6 +52255,24 @@ func (s *RoutingProfile) SetInstanceId(v string) *RoutingProfile { return s } +// SetIsDefault sets the IsDefault field's value. +func (s *RoutingProfile) SetIsDefault(v bool) *RoutingProfile { + s.IsDefault = &v + return s +} + +// SetLastModifiedRegion sets the LastModifiedRegion field's value. +func (s *RoutingProfile) SetLastModifiedRegion(v string) *RoutingProfile { + s.LastModifiedRegion = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *RoutingProfile) SetLastModifiedTime(v time.Time) *RoutingProfile { + s.LastModifiedTime = &v + return s +} + // SetMediaConcurrencies sets the MediaConcurrencies field's value. func (s *RoutingProfile) SetMediaConcurrencies(v []*MediaConcurrency) *RoutingProfile { s.MediaConcurrencies = v @@ -52097,6 +52703,12 @@ type RoutingProfileSummary struct { // The identifier of the routing profile. Id *string `type:"string"` + // The Amazon Web Services Region where this resource was last modified. + LastModifiedRegion *string `type:"string"` + + // The timestamp when this resource was last modified. + LastModifiedTime *time.Time `type:"timestamp"` + // The name of the routing profile. Name *string `min:"1" type:"string"` } @@ -52131,6 +52743,18 @@ func (s *RoutingProfileSummary) SetId(v string) *RoutingProfileSummary { return s } +// SetLastModifiedRegion sets the LastModifiedRegion field's value. +func (s *RoutingProfileSummary) SetLastModifiedRegion(v string) *RoutingProfileSummary { + s.LastModifiedRegion = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *RoutingProfileSummary) SetLastModifiedTime(v time.Time) *RoutingProfileSummary { + s.LastModifiedTime = &v + return s +} + // SetName sets the Name field's value. func (s *RoutingProfileSummary) SetName(v string) *RoutingProfileSummary { s.Name = &v @@ -54173,6 +54797,12 @@ type SecurityProfile struct { // The identifier for the security profile. Id *string `type:"string"` + // The Amazon Web Services Region where this resource was last modified. + LastModifiedRegion *string `type:"string"` + + // The timestamp when this resource was last modified. + LastModifiedTime *time.Time `type:"timestamp"` + // The organization resource identifier for the security profile. OrganizationResourceId *string `min:"1" type:"string"` @@ -54230,6 +54860,18 @@ func (s *SecurityProfile) SetId(v string) *SecurityProfile { return s } +// SetLastModifiedRegion sets the LastModifiedRegion field's value. +func (s *SecurityProfile) SetLastModifiedRegion(v string) *SecurityProfile { + s.LastModifiedRegion = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *SecurityProfile) SetLastModifiedTime(v time.Time) *SecurityProfile { + s.LastModifiedTime = &v + return s +} + // SetOrganizationResourceId sets the OrganizationResourceId field's value. func (s *SecurityProfile) SetOrganizationResourceId(v string) *SecurityProfile { s.OrganizationResourceId = &v @@ -54396,6 +55038,12 @@ type SecurityProfileSummary struct { // The identifier of the security profile. Id *string `type:"string"` + // The Amazon Web Services Region where this resource was last modified. + LastModifiedRegion *string `type:"string"` + + // The timestamp when this resource was last modified. + LastModifiedTime *time.Time `type:"timestamp"` + // The name of the security profile. Name *string `type:"string"` } @@ -54430,6 +55078,18 @@ func (s *SecurityProfileSummary) SetId(v string) *SecurityProfileSummary { return s } +// SetLastModifiedRegion sets the LastModifiedRegion field's value. +func (s *SecurityProfileSummary) SetLastModifiedRegion(v string) *SecurityProfileSummary { + s.LastModifiedRegion = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *SecurityProfileSummary) SetLastModifiedTime(v time.Time) *SecurityProfileSummary { + s.LastModifiedTime = &v + return s +} + // SetName sets the Name field's value. func (s *SecurityProfileSummary) SetName(v string) *SecurityProfileSummary { s.Name = &v @@ -57627,9 +58287,11 @@ type TrafficDistributionGroup struct { // the DeleteTrafficDistributionGroup API. The default traffic distribution // group is deleted as part of the process for deleting a replica. // - // The SignInConfig distribution is available only on the default TrafficDistributionGroup. - // If you call UpdateTrafficDistribution with a modified SignInConfig and a - // non-default TrafficDistributionGroup, an InvalidRequestException is returned. + // The SignInConfig distribution is available only on a default TrafficDistributionGroup + // (see the IsDefault parameter in the TrafficDistributionGroup (https://docs.aws.amazon.com/connect/latest/APIReference/API_TrafficDistributionGroup.html) + // data type). If you call UpdateTrafficDistribution with a modified SignInConfig + // and a non-default TrafficDistributionGroup, an InvalidRequestException is + // returned. IsDefault *bool `type:"boolean"` // The name of the traffic distribution group. @@ -60283,7 +60945,9 @@ type UpdatePromptInput struct { // PromptId is a required field PromptId *string `location:"uri" locationName:"PromptId" min:"1" type:"string" required:"true"` - // The URI for the S3 bucket where the prompt is stored. + // The URI for the S3 bucket where the prompt is stored. You can provide S3 + // pre-signed URLs returned by the GetPromptFile (https://docs.aws.amazon.com/connect/latest/APIReference/API_GetPromptFile.html) + // API instead of providing S3 URIs. S3Uri *string `min:"1" type:"string"` } @@ -63521,6 +64185,12 @@ type User struct { // Information about the user identity. IdentityInfo *UserIdentityInfo `type:"structure"` + // The Amazon Web Services Region where this resource was last modified. + LastModifiedRegion *string `type:"string"` + + // The timestamp when this resource was last modified. + LastModifiedTime *time.Time `type:"timestamp"` + // Information about the phone configuration for the user. PhoneConfig *UserPhoneConfig `type:"structure"` @@ -63585,6 +64255,18 @@ func (s *User) SetIdentityInfo(v *UserIdentityInfo) *User { return s } +// SetLastModifiedRegion sets the LastModifiedRegion field's value. +func (s *User) SetLastModifiedRegion(v string) *User { + s.LastModifiedRegion = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *User) SetLastModifiedTime(v time.Time) *User { + s.LastModifiedTime = &v + return s +} + // SetPhoneConfig sets the PhoneConfig field's value. func (s *User) SetPhoneConfig(v *UserPhoneConfig) *User { s.PhoneConfig = v @@ -64421,6 +65103,12 @@ type UserSummary struct { // The identifier of the user account. Id *string `type:"string"` + // The Amazon Web Services Region where this resource was last modified. + LastModifiedRegion *string `type:"string"` + + // The timestamp when this resource was last modified. + LastModifiedTime *time.Time `type:"timestamp"` + // The Amazon Connect user name of the user account. Username *string `min:"1" type:"string"` } @@ -64455,6 +65143,18 @@ func (s *UserSummary) SetId(v string) *UserSummary { return s } +// SetLastModifiedRegion sets the LastModifiedRegion field's value. +func (s *UserSummary) SetLastModifiedRegion(v string) *UserSummary { + s.LastModifiedRegion = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *UserSummary) SetLastModifiedTime(v time.Time) *UserSummary { + s.LastModifiedTime = &v + return s +} + // SetUsername sets the Username field's value. func (s *UserSummary) SetUsername(v string) *UserSummary { s.Username = &v @@ -66082,6 +66782,22 @@ func LexVersion_Values() []string { } } +const ( + // ListFlowAssociationResourceTypeSmsPhoneNumber is a ListFlowAssociationResourceType enum value + ListFlowAssociationResourceTypeSmsPhoneNumber = "SMS_PHONE_NUMBER" + + // ListFlowAssociationResourceTypeVoicePhoneNumber is a ListFlowAssociationResourceType enum value + ListFlowAssociationResourceTypeVoicePhoneNumber = "VOICE_PHONE_NUMBER" +) + +// ListFlowAssociationResourceType_Values returns all elements of the ListFlowAssociationResourceType enum +func ListFlowAssociationResourceType_Values() []string { + return []string{ + ListFlowAssociationResourceTypeSmsPhoneNumber, + ListFlowAssociationResourceTypeVoicePhoneNumber, + } +} + const ( // MonitorCapabilitySilentMonitor is a MonitorCapability enum value MonitorCapabilitySilentMonitor = "SILENT_MONITOR" diff --git a/service/connect/connectiface/interface.go b/service/connect/connectiface/interface.go index 59f9497437d..eff76ddc07a 100644 --- a/service/connect/connectiface/interface.go +++ b/service/connect/connectiface/interface.go @@ -108,6 +108,10 @@ type ConnectAPI interface { AssociateTrafficDistributionGroupUserWithContext(aws.Context, *connect.AssociateTrafficDistributionGroupUserInput, ...request.Option) (*connect.AssociateTrafficDistributionGroupUserOutput, error) AssociateTrafficDistributionGroupUserRequest(*connect.AssociateTrafficDistributionGroupUserInput) (*request.Request, *connect.AssociateTrafficDistributionGroupUserOutput) + BatchGetFlowAssociation(*connect.BatchGetFlowAssociationInput) (*connect.BatchGetFlowAssociationOutput, error) + BatchGetFlowAssociationWithContext(aws.Context, *connect.BatchGetFlowAssociationInput, ...request.Option) (*connect.BatchGetFlowAssociationOutput, error) + BatchGetFlowAssociationRequest(*connect.BatchGetFlowAssociationInput) (*request.Request, *connect.BatchGetFlowAssociationOutput) + ClaimPhoneNumber(*connect.ClaimPhoneNumberInput) (*connect.ClaimPhoneNumberOutput, error) ClaimPhoneNumberWithContext(aws.Context, *connect.ClaimPhoneNumberInput, ...request.Option) (*connect.ClaimPhoneNumberOutput, error) ClaimPhoneNumberRequest(*connect.ClaimPhoneNumberInput) (*request.Request, *connect.ClaimPhoneNumberOutput) diff --git a/service/ec2/api.go b/service/ec2/api.go index 74c8f8572bf..be14ddc590b 100644 --- a/service/ec2/api.go +++ b/service/ec2/api.go @@ -18138,6 +18138,137 @@ func (c *EC2) DescribeByoipCidrsPagesWithContext(ctx aws.Context, input *Describ return p.Err() } +const opDescribeCapacityBlockOfferings = "DescribeCapacityBlockOfferings" + +// DescribeCapacityBlockOfferingsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeCapacityBlockOfferings 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 DescribeCapacityBlockOfferings for more information on using the DescribeCapacityBlockOfferings +// 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 DescribeCapacityBlockOfferingsRequest method. +// req, resp := client.DescribeCapacityBlockOfferingsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCapacityBlockOfferings +func (c *EC2) DescribeCapacityBlockOfferingsRequest(input *DescribeCapacityBlockOfferingsInput) (req *request.Request, output *DescribeCapacityBlockOfferingsOutput) { + op := &request.Operation{ + Name: opDescribeCapacityBlockOfferings, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &DescribeCapacityBlockOfferingsInput{} + } + + output = &DescribeCapacityBlockOfferingsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeCapacityBlockOfferings API operation for Amazon Elastic Compute Cloud. +// +// Describes Capacity Block offerings available for purchase. With Capacity +// Blocks, you purchase a specific instance type for a period of time. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeCapacityBlockOfferings for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCapacityBlockOfferings +func (c *EC2) DescribeCapacityBlockOfferings(input *DescribeCapacityBlockOfferingsInput) (*DescribeCapacityBlockOfferingsOutput, error) { + req, out := c.DescribeCapacityBlockOfferingsRequest(input) + return out, req.Send() +} + +// DescribeCapacityBlockOfferingsWithContext is the same as DescribeCapacityBlockOfferings with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeCapacityBlockOfferings for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) DescribeCapacityBlockOfferingsWithContext(ctx aws.Context, input *DescribeCapacityBlockOfferingsInput, opts ...request.Option) (*DescribeCapacityBlockOfferingsOutput, error) { + req, out := c.DescribeCapacityBlockOfferingsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// DescribeCapacityBlockOfferingsPages iterates over the pages of a DescribeCapacityBlockOfferings operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeCapacityBlockOfferings method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a DescribeCapacityBlockOfferings operation. +// pageNum := 0 +// err := client.DescribeCapacityBlockOfferingsPages(params, +// func(page *ec2.DescribeCapacityBlockOfferingsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *EC2) DescribeCapacityBlockOfferingsPages(input *DescribeCapacityBlockOfferingsInput, fn func(*DescribeCapacityBlockOfferingsOutput, bool) bool) error { + return c.DescribeCapacityBlockOfferingsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// DescribeCapacityBlockOfferingsPagesWithContext same as DescribeCapacityBlockOfferingsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) DescribeCapacityBlockOfferingsPagesWithContext(ctx aws.Context, input *DescribeCapacityBlockOfferingsInput, fn func(*DescribeCapacityBlockOfferingsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeCapacityBlockOfferingsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeCapacityBlockOfferingsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*DescribeCapacityBlockOfferingsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opDescribeCapacityReservationFleets = "DescribeCapacityReservationFleets" // DescribeCapacityReservationFleetsRequest generates a "aws/request.Request" representing the @@ -49921,6 +50052,81 @@ func (c *EC2) ProvisionPublicIpv4PoolCidrWithContext(ctx aws.Context, input *Pro return out, req.Send() } +const opPurchaseCapacityBlock = "PurchaseCapacityBlock" + +// PurchaseCapacityBlockRequest generates a "aws/request.Request" representing the +// client's request for the PurchaseCapacityBlock 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 PurchaseCapacityBlock for more information on using the PurchaseCapacityBlock +// 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 PurchaseCapacityBlockRequest method. +// req, resp := client.PurchaseCapacityBlockRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseCapacityBlock +func (c *EC2) PurchaseCapacityBlockRequest(input *PurchaseCapacityBlockInput) (req *request.Request, output *PurchaseCapacityBlockOutput) { + op := &request.Operation{ + Name: opPurchaseCapacityBlock, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &PurchaseCapacityBlockInput{} + } + + output = &PurchaseCapacityBlockOutput{} + req = c.newRequest(op, input, output) + return +} + +// PurchaseCapacityBlock API operation for Amazon Elastic Compute Cloud. +// +// Purchase the Capacity Block for use with your account. With Capacity Blocks +// you ensure GPU capacity is available for machine learning (ML) workloads. +// You must specify the ID of the Capacity Block offering you are purchasing. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation PurchaseCapacityBlock for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PurchaseCapacityBlock +func (c *EC2) PurchaseCapacityBlock(input *PurchaseCapacityBlockInput) (*PurchaseCapacityBlockOutput, error) { + req, out := c.PurchaseCapacityBlockRequest(input) + return out, req.Send() +} + +// PurchaseCapacityBlockWithContext is the same as PurchaseCapacityBlock with the addition of +// the ability to pass a context and additional request options. +// +// See PurchaseCapacityBlock for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) PurchaseCapacityBlockWithContext(ctx aws.Context, input *PurchaseCapacityBlockInput, opts ...request.Option) (*PurchaseCapacityBlockOutput, error) { + req, out := c.PurchaseCapacityBlockRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opPurchaseHostReservation = "PurchaseHostReservation" // PurchaseHostReservationRequest generates a "aws/request.Request" representing the @@ -63912,6 +64118,119 @@ func (s *CapacityAllocation) SetCount(v int64) *CapacityAllocation { return s } +// The recommended Capacity Block that fits your search requirements. +type CapacityBlockOffering struct { + _ struct{} `type:"structure"` + + // The Availability Zone of the Capacity Block offering. + AvailabilityZone *string `locationName:"availabilityZone" type:"string"` + + // The amount of time of the Capacity Block reservation in hours. + CapacityBlockDurationHours *int64 `locationName:"capacityBlockDurationHours" type:"integer"` + + // The ID of the Capacity Block offering. + CapacityBlockOfferingId *string `locationName:"capacityBlockOfferingId" type:"string"` + + // The currency of the payment for the Capacity Block. + CurrencyCode *string `locationName:"currencyCode" type:"string"` + + // The end date of the Capacity Block offering. + EndDate *time.Time `locationName:"endDate" type:"timestamp"` + + // The number of instances in the Capacity Block offering. + InstanceCount *int64 `locationName:"instanceCount" type:"integer"` + + // The instance type of the Capacity Block offering. + InstanceType *string `locationName:"instanceType" type:"string"` + + // The start date of the Capacity Block offering. + StartDate *time.Time `locationName:"startDate" type:"timestamp"` + + // The tenancy of the Capacity Block. + Tenancy *string `locationName:"tenancy" type:"string" enum:"CapacityReservationTenancy"` + + // The total price to be paid up front. + UpfrontFee *string `locationName:"upfrontFee" 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 CapacityBlockOffering) 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 CapacityBlockOffering) GoString() string { + return s.String() +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *CapacityBlockOffering) SetAvailabilityZone(v string) *CapacityBlockOffering { + s.AvailabilityZone = &v + return s +} + +// SetCapacityBlockDurationHours sets the CapacityBlockDurationHours field's value. +func (s *CapacityBlockOffering) SetCapacityBlockDurationHours(v int64) *CapacityBlockOffering { + s.CapacityBlockDurationHours = &v + return s +} + +// SetCapacityBlockOfferingId sets the CapacityBlockOfferingId field's value. +func (s *CapacityBlockOffering) SetCapacityBlockOfferingId(v string) *CapacityBlockOffering { + s.CapacityBlockOfferingId = &v + return s +} + +// SetCurrencyCode sets the CurrencyCode field's value. +func (s *CapacityBlockOffering) SetCurrencyCode(v string) *CapacityBlockOffering { + s.CurrencyCode = &v + return s +} + +// SetEndDate sets the EndDate field's value. +func (s *CapacityBlockOffering) SetEndDate(v time.Time) *CapacityBlockOffering { + s.EndDate = &v + return s +} + +// SetInstanceCount sets the InstanceCount field's value. +func (s *CapacityBlockOffering) SetInstanceCount(v int64) *CapacityBlockOffering { + s.InstanceCount = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *CapacityBlockOffering) SetInstanceType(v string) *CapacityBlockOffering { + s.InstanceType = &v + return s +} + +// SetStartDate sets the StartDate field's value. +func (s *CapacityBlockOffering) SetStartDate(v time.Time) *CapacityBlockOffering { + s.StartDate = &v + return s +} + +// SetTenancy sets the Tenancy field's value. +func (s *CapacityBlockOffering) SetTenancy(v string) *CapacityBlockOffering { + s.Tenancy = &v + return s +} + +// SetUpfrontFee sets the UpfrontFee field's value. +func (s *CapacityBlockOffering) SetUpfrontFee(v string) *CapacityBlockOffering { + s.UpfrontFee = &v + return s +} + // Describes a Capacity Reservation. type CapacityReservation struct { _ struct{} `type:"structure"` @@ -64003,6 +64322,9 @@ type CapacityReservation struct { // in the Amazon EC2 User Guide. PlacementGroupArn *string `locationName:"placementGroupArn" type:"string"` + // The type of Capacity Reservation. + ReservationType *string `locationName:"reservationType" type:"string" enum:"CapacityReservationType"` + // The date and time at which the Capacity Reservation was started. StartDate *time.Time `locationName:"startDate" type:"timestamp"` @@ -64171,6 +64493,12 @@ func (s *CapacityReservation) SetPlacementGroupArn(v string) *CapacityReservatio return s } +// SetReservationType sets the ReservationType field's value. +func (s *CapacityReservation) SetReservationType(v string) *CapacityReservation { + s.ReservationType = &v + return s +} + // SetStartDate sets the StartDate field's value. func (s *CapacityReservation) SetStartDate(v time.Time) *CapacityReservation { s.StartDate = &v @@ -89502,6 +89830,175 @@ func (s *DescribeByoipCidrsOutput) SetNextToken(v string) *DescribeByoipCidrsOut return s } +type DescribeCapacityBlockOfferingsInput struct { + _ struct{} `type:"structure"` + + // The number of hours for which to reserve Capacity Block. + // + // CapacityDurationHours is a required field + CapacityDurationHours *int64 `type:"integer" required:"true"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` + + // The latest end date for the Capacity Block offering. + EndDateRange *time.Time `type:"timestamp"` + + // The number of instances for which to reserve capacity. + // + // InstanceCount is a required field + InstanceCount *int64 `type:"integer" required:"true"` + + // The type of instance for which the Capacity Block offering reserves capacity. + // + // InstanceType is a required field + InstanceType *string `type:"string" required:"true"` + + // The maximum number of results to return for the request in a single page. + // The remaining results can be seen by sending another request with the returned + // nextToken value. This value can be between 5 and 500. If maxResults is given + // a larger value than 500, you receive an error. + MaxResults *int64 `min:"1" type:"integer"` + + // The token to use to retrieve the next page of results. + NextToken *string `type:"string"` + + // The earliest start date for the Capacity Block offering. + StartDateRange *time.Time `type:"timestamp"` +} + +// 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 DescribeCapacityBlockOfferingsInput) 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 DescribeCapacityBlockOfferingsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeCapacityBlockOfferingsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeCapacityBlockOfferingsInput"} + if s.CapacityDurationHours == nil { + invalidParams.Add(request.NewErrParamRequired("CapacityDurationHours")) + } + if s.InstanceCount == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceCount")) + } + if s.InstanceType == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceType")) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCapacityDurationHours sets the CapacityDurationHours field's value. +func (s *DescribeCapacityBlockOfferingsInput) SetCapacityDurationHours(v int64) *DescribeCapacityBlockOfferingsInput { + s.CapacityDurationHours = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeCapacityBlockOfferingsInput) SetDryRun(v bool) *DescribeCapacityBlockOfferingsInput { + s.DryRun = &v + return s +} + +// SetEndDateRange sets the EndDateRange field's value. +func (s *DescribeCapacityBlockOfferingsInput) SetEndDateRange(v time.Time) *DescribeCapacityBlockOfferingsInput { + s.EndDateRange = &v + return s +} + +// SetInstanceCount sets the InstanceCount field's value. +func (s *DescribeCapacityBlockOfferingsInput) SetInstanceCount(v int64) *DescribeCapacityBlockOfferingsInput { + s.InstanceCount = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *DescribeCapacityBlockOfferingsInput) SetInstanceType(v string) *DescribeCapacityBlockOfferingsInput { + s.InstanceType = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeCapacityBlockOfferingsInput) SetMaxResults(v int64) *DescribeCapacityBlockOfferingsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeCapacityBlockOfferingsInput) SetNextToken(v string) *DescribeCapacityBlockOfferingsInput { + s.NextToken = &v + return s +} + +// SetStartDateRange sets the StartDateRange field's value. +func (s *DescribeCapacityBlockOfferingsInput) SetStartDateRange(v time.Time) *DescribeCapacityBlockOfferingsInput { + s.StartDateRange = &v + return s +} + +type DescribeCapacityBlockOfferingsOutput struct { + _ struct{} `type:"structure"` + + // The recommended Capacity Block offering for the dates specified. + CapacityBlockOfferings []*CapacityBlockOffering `locationName:"capacityBlockOfferingSet" locationNameList:"item" type:"list"` + + // The token to use to retrieve the next page of results. This value is null + // when there are no more results to return. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// 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 DescribeCapacityBlockOfferingsOutput) 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 DescribeCapacityBlockOfferingsOutput) GoString() string { + return s.String() +} + +// SetCapacityBlockOfferings sets the CapacityBlockOfferings field's value. +func (s *DescribeCapacityBlockOfferingsOutput) SetCapacityBlockOfferings(v []*CapacityBlockOffering) *DescribeCapacityBlockOfferingsOutput { + s.CapacityBlockOfferings = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeCapacityBlockOfferingsOutput) SetNextToken(v string) *DescribeCapacityBlockOfferingsOutput { + s.NextToken = &v + return s +} + type DescribeCapacityReservationFleetsInput struct { _ struct{} `type:"structure"` @@ -132589,8 +133086,10 @@ func (s *InstancePrivateIpAddress) SetPrivateIpAddress(v string) *InstancePrivat // or with the RunInstances API (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html), // you can't specify InstanceRequirements. // -// For more information, see Attribute-based instance type selection for EC2 -// Fleet (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html), +// For more information, see Create a mixed instances group using attribute-based +// instance type selection (https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-mixed-instances-group-attribute-based-instance-type-selection.html) +// in the Amazon EC2 Auto Scaling User Guide, and also Attribute-based instance +// type selection for EC2 Fleet (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html), // Attribute-based instance type selection for Spot Fleet (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-attribute-based-instance-type-selection.html), // and Spot placement score (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-placement-score.html) // in the Amazon EC2 User Guide. @@ -157207,6 +157706,118 @@ func (s *Purchase) SetUpfrontPrice(v string) *Purchase { return s } +type PurchaseCapacityBlockInput struct { + _ struct{} `type:"structure"` + + // The ID of the Capacity Block offering. + // + // CapacityBlockOfferingId is a required field + CapacityBlockOfferingId *string `type:"string" required:"true"` + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. + DryRun *bool `type:"boolean"` + + // The type of operating system for which to reserve capacity. + // + // InstancePlatform is a required field + InstancePlatform *string `type:"string" required:"true" enum:"CapacityReservationInstancePlatform"` + + // The tags to apply to the Capacity Block during launch. + TagSpecifications []*TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PurchaseCapacityBlockInput) 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 PurchaseCapacityBlockInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PurchaseCapacityBlockInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PurchaseCapacityBlockInput"} + if s.CapacityBlockOfferingId == nil { + invalidParams.Add(request.NewErrParamRequired("CapacityBlockOfferingId")) + } + if s.InstancePlatform == nil { + invalidParams.Add(request.NewErrParamRequired("InstancePlatform")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCapacityBlockOfferingId sets the CapacityBlockOfferingId field's value. +func (s *PurchaseCapacityBlockInput) SetCapacityBlockOfferingId(v string) *PurchaseCapacityBlockInput { + s.CapacityBlockOfferingId = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *PurchaseCapacityBlockInput) SetDryRun(v bool) *PurchaseCapacityBlockInput { + s.DryRun = &v + return s +} + +// SetInstancePlatform sets the InstancePlatform field's value. +func (s *PurchaseCapacityBlockInput) SetInstancePlatform(v string) *PurchaseCapacityBlockInput { + s.InstancePlatform = &v + return s +} + +// SetTagSpecifications sets the TagSpecifications field's value. +func (s *PurchaseCapacityBlockInput) SetTagSpecifications(v []*TagSpecification) *PurchaseCapacityBlockInput { + s.TagSpecifications = v + return s +} + +type PurchaseCapacityBlockOutput struct { + _ struct{} `type:"structure"` + + // The Capacity Reservation. + CapacityReservation *CapacityReservation `locationName:"capacityReservation" 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 PurchaseCapacityBlockOutput) 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 PurchaseCapacityBlockOutput) GoString() string { + return s.String() +} + +// SetCapacityReservation sets the CapacityReservation field's value. +func (s *PurchaseCapacityBlockOutput) SetCapacityReservation(v *CapacityReservation) *PurchaseCapacityBlockOutput { + s.CapacityReservation = v + return s +} + type PurchaseHostReservationInput struct { _ struct{} `type:"structure"` @@ -184908,6 +185519,15 @@ const ( // CapacityReservationStateFailed is a CapacityReservationState enum value CapacityReservationStateFailed = "failed" + + // CapacityReservationStateScheduled is a CapacityReservationState enum value + CapacityReservationStateScheduled = "scheduled" + + // CapacityReservationStatePaymentPending is a CapacityReservationState enum value + CapacityReservationStatePaymentPending = "payment-pending" + + // CapacityReservationStatePaymentFailed is a CapacityReservationState enum value + CapacityReservationStatePaymentFailed = "payment-failed" ) // CapacityReservationState_Values returns all elements of the CapacityReservationState enum @@ -184918,6 +185538,9 @@ func CapacityReservationState_Values() []string { CapacityReservationStateCancelled, CapacityReservationStatePending, CapacityReservationStateFailed, + CapacityReservationStateScheduled, + CapacityReservationStatePaymentPending, + CapacityReservationStatePaymentFailed, } } @@ -184937,6 +185560,22 @@ func CapacityReservationTenancy_Values() []string { } } +const ( + // CapacityReservationTypeDefault is a CapacityReservationType enum value + CapacityReservationTypeDefault = "default" + + // CapacityReservationTypeCapacityBlock is a CapacityReservationType enum value + CapacityReservationTypeCapacityBlock = "capacity-block" +) + +// CapacityReservationType_Values returns all elements of the CapacityReservationType enum +func CapacityReservationType_Values() []string { + return []string{ + CapacityReservationTypeDefault, + CapacityReservationTypeCapacityBlock, + } +} + const ( // CarrierGatewayStatePending is a CarrierGatewayState enum value CarrierGatewayStatePending = "pending" @@ -185287,6 +185926,9 @@ const ( // DefaultTargetCapacityTypeOnDemand is a DefaultTargetCapacityType enum value DefaultTargetCapacityTypeOnDemand = "on-demand" + + // DefaultTargetCapacityTypeCapacityBlock is a DefaultTargetCapacityType enum value + DefaultTargetCapacityTypeCapacityBlock = "capacity-block" ) // DefaultTargetCapacityType_Values returns all elements of the DefaultTargetCapacityType enum @@ -185294,6 +185936,7 @@ func DefaultTargetCapacityType_Values() []string { return []string{ DefaultTargetCapacityTypeSpot, DefaultTargetCapacityTypeOnDemand, + DefaultTargetCapacityTypeCapacityBlock, } } @@ -186679,6 +187322,9 @@ const ( // InstanceLifecycleTypeScheduled is a InstanceLifecycleType enum value InstanceLifecycleTypeScheduled = "scheduled" + + // InstanceLifecycleTypeCapacityBlock is a InstanceLifecycleType enum value + InstanceLifecycleTypeCapacityBlock = "capacity-block" ) // InstanceLifecycleType_Values returns all elements of the InstanceLifecycleType enum @@ -186686,6 +187332,7 @@ func InstanceLifecycleType_Values() []string { return []string{ InstanceLifecycleTypeSpot, InstanceLifecycleTypeScheduled, + InstanceLifecycleTypeCapacityBlock, } } @@ -190892,12 +191539,16 @@ func LogDestinationType_Values() []string { const ( // MarketTypeSpot is a MarketType enum value MarketTypeSpot = "spot" + + // MarketTypeCapacityBlock is a MarketType enum value + MarketTypeCapacityBlock = "capacity-block" ) // MarketType_Values returns all elements of the MarketType enum func MarketType_Values() []string { return []string{ MarketTypeSpot, + MarketTypeCapacityBlock, } } @@ -193627,6 +194278,9 @@ const ( // UsageClassTypeOnDemand is a UsageClassType enum value UsageClassTypeOnDemand = "on-demand" + + // UsageClassTypeCapacityBlock is a UsageClassType enum value + UsageClassTypeCapacityBlock = "capacity-block" ) // UsageClassType_Values returns all elements of the UsageClassType enum @@ -193634,6 +194288,7 @@ func UsageClassType_Values() []string { return []string{ UsageClassTypeSpot, UsageClassTypeOnDemand, + UsageClassTypeCapacityBlock, } } diff --git a/service/ec2/ec2iface/interface.go b/service/ec2/ec2iface/interface.go index 43834c1dfdf..c119b4cec24 100644 --- a/service/ec2/ec2iface/interface.go +++ b/service/ec2/ec2iface/interface.go @@ -976,6 +976,13 @@ type EC2API interface { DescribeByoipCidrsPages(*ec2.DescribeByoipCidrsInput, func(*ec2.DescribeByoipCidrsOutput, bool) bool) error DescribeByoipCidrsPagesWithContext(aws.Context, *ec2.DescribeByoipCidrsInput, func(*ec2.DescribeByoipCidrsOutput, bool) bool, ...request.Option) error + DescribeCapacityBlockOfferings(*ec2.DescribeCapacityBlockOfferingsInput) (*ec2.DescribeCapacityBlockOfferingsOutput, error) + DescribeCapacityBlockOfferingsWithContext(aws.Context, *ec2.DescribeCapacityBlockOfferingsInput, ...request.Option) (*ec2.DescribeCapacityBlockOfferingsOutput, error) + DescribeCapacityBlockOfferingsRequest(*ec2.DescribeCapacityBlockOfferingsInput) (*request.Request, *ec2.DescribeCapacityBlockOfferingsOutput) + + DescribeCapacityBlockOfferingsPages(*ec2.DescribeCapacityBlockOfferingsInput, func(*ec2.DescribeCapacityBlockOfferingsOutput, bool) bool) error + DescribeCapacityBlockOfferingsPagesWithContext(aws.Context, *ec2.DescribeCapacityBlockOfferingsInput, func(*ec2.DescribeCapacityBlockOfferingsOutput, bool) bool, ...request.Option) error + DescribeCapacityReservationFleets(*ec2.DescribeCapacityReservationFleetsInput) (*ec2.DescribeCapacityReservationFleetsOutput, error) DescribeCapacityReservationFleetsWithContext(aws.Context, *ec2.DescribeCapacityReservationFleetsInput, ...request.Option) (*ec2.DescribeCapacityReservationFleetsOutput, error) DescribeCapacityReservationFleetsRequest(*ec2.DescribeCapacityReservationFleetsInput) (*request.Request, *ec2.DescribeCapacityReservationFleetsOutput) @@ -2621,6 +2628,10 @@ type EC2API interface { ProvisionPublicIpv4PoolCidrWithContext(aws.Context, *ec2.ProvisionPublicIpv4PoolCidrInput, ...request.Option) (*ec2.ProvisionPublicIpv4PoolCidrOutput, error) ProvisionPublicIpv4PoolCidrRequest(*ec2.ProvisionPublicIpv4PoolCidrInput) (*request.Request, *ec2.ProvisionPublicIpv4PoolCidrOutput) + PurchaseCapacityBlock(*ec2.PurchaseCapacityBlockInput) (*ec2.PurchaseCapacityBlockOutput, error) + PurchaseCapacityBlockWithContext(aws.Context, *ec2.PurchaseCapacityBlockInput, ...request.Option) (*ec2.PurchaseCapacityBlockOutput, error) + PurchaseCapacityBlockRequest(*ec2.PurchaseCapacityBlockInput) (*request.Request, *ec2.PurchaseCapacityBlockOutput) + PurchaseHostReservation(*ec2.PurchaseHostReservationInput) (*ec2.PurchaseHostReservationOutput, error) PurchaseHostReservationWithContext(aws.Context, *ec2.PurchaseHostReservationInput, ...request.Option) (*ec2.PurchaseHostReservationOutput, error) PurchaseHostReservationRequest(*ec2.PurchaseHostReservationInput) (*request.Request, *ec2.PurchaseHostReservationOutput) diff --git a/service/globalaccelerator/api.go b/service/globalaccelerator/api.go index 1e69cbec16a..0ece144cdf6 100644 --- a/service/globalaccelerator/api.go +++ b/service/globalaccelerator/api.go @@ -526,6 +526,109 @@ func (c *GlobalAccelerator) CreateAcceleratorWithContext(ctx aws.Context, input return out, req.Send() } +const opCreateCrossAccountAttachment = "CreateCrossAccountAttachment" + +// CreateCrossAccountAttachmentRequest generates a "aws/request.Request" representing the +// client's request for the CreateCrossAccountAttachment 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 CreateCrossAccountAttachment for more information on using the CreateCrossAccountAttachment +// 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 CreateCrossAccountAttachmentRequest method. +// req, resp := client.CreateCrossAccountAttachmentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/CreateCrossAccountAttachment +func (c *GlobalAccelerator) CreateCrossAccountAttachmentRequest(input *CreateCrossAccountAttachmentInput) (req *request.Request, output *CreateCrossAccountAttachmentOutput) { + op := &request.Operation{ + Name: opCreateCrossAccountAttachment, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateCrossAccountAttachmentInput{} + } + + output = &CreateCrossAccountAttachmentOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateCrossAccountAttachment API operation for AWS Global Accelerator. +// +// Create a cross-account attachment in Global Accelerator. You create a cross-account +// attachment to specify the principals who have permission to add to accelerators +// in their own account the resources in your account that you also list in +// the attachment. +// +// A principal can be an Amazon Web Services account number or the Amazon Resource +// Name (ARN) for an accelerator. For account numbers that are listed as principals, +// to add a resource listed in the attachment to an accelerator, you must sign +// in to an account specified as a principal. Then you can add the resources +// that are listed to any of your accelerators. If an accelerator ARN is listed +// in the cross-account attachment as a principal, anyone with permission to +// make updates to the accelerator can add as endpoints resources that are listed +// in the attachment. +// +// 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 Global Accelerator's +// API operation CreateCrossAccountAttachment for usage and error information. +// +// Returned Error Types: +// +// - InternalServiceErrorException +// There was an internal error for Global Accelerator. +// +// - InvalidArgumentException +// An argument that you specified is invalid. +// +// - LimitExceededException +// Processing your request would cause you to exceed an Global Accelerator limit. +// +// - AccessDeniedException +// You don't have access permission. +// +// - TransactionInProgressException +// There's already a transaction in progress. Another transaction can't be processed. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/CreateCrossAccountAttachment +func (c *GlobalAccelerator) CreateCrossAccountAttachment(input *CreateCrossAccountAttachmentInput) (*CreateCrossAccountAttachmentOutput, error) { + req, out := c.CreateCrossAccountAttachmentRequest(input) + return out, req.Send() +} + +// CreateCrossAccountAttachmentWithContext is the same as CreateCrossAccountAttachment with the addition of +// the ability to pass a context and additional request options. +// +// See CreateCrossAccountAttachment 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 *GlobalAccelerator) CreateCrossAccountAttachmentWithContext(ctx aws.Context, input *CreateCrossAccountAttachmentInput, opts ...request.Option) (*CreateCrossAccountAttachmentOutput, error) { + req, out := c.CreateCrossAccountAttachmentRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateCustomRoutingAccelerator = "CreateCustomRoutingAccelerator" // CreateCustomRoutingAcceleratorRequest generates a "aws/request.Request" representing the @@ -1133,6 +1236,115 @@ func (c *GlobalAccelerator) DeleteAcceleratorWithContext(ctx aws.Context, input return out, req.Send() } +const opDeleteCrossAccountAttachment = "DeleteCrossAccountAttachment" + +// DeleteCrossAccountAttachmentRequest generates a "aws/request.Request" representing the +// client's request for the DeleteCrossAccountAttachment 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 DeleteCrossAccountAttachment for more information on using the DeleteCrossAccountAttachment +// 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 DeleteCrossAccountAttachmentRequest method. +// req, resp := client.DeleteCrossAccountAttachmentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/DeleteCrossAccountAttachment +func (c *GlobalAccelerator) DeleteCrossAccountAttachmentRequest(input *DeleteCrossAccountAttachmentInput) (req *request.Request, output *DeleteCrossAccountAttachmentOutput) { + op := &request.Operation{ + Name: opDeleteCrossAccountAttachment, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteCrossAccountAttachmentInput{} + } + + output = &DeleteCrossAccountAttachmentOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteCrossAccountAttachment API operation for AWS Global Accelerator. +// +// Delete a cross-account attachment. When you delete an attachment, Global +// Accelerator revokes the permission to use the resources in the attachment +// from all principals in the list of principals. Global Accelerator revokes +// the permission for specific resources by doing the following: +// +// - If the principal is an account ID, Global Accelerator reviews every +// accelerator in the account and removes cross-account endpoints from all +// accelerators. +// +// - If the principal is an accelerator, Global Accelerator reviews just +// that accelerator and removes cross-account endpoints from it. +// +// If there are overlapping permissions provided by multiple cross-account attachments, +// Global Accelerator only removes endpoints if there are no current cross-account +// attachments that provide access permission. For example, if you delete a +// cross-account attachment that lists an accelerator as a principal, but another +// cross-account attachment includes the account ID that owns that accelerator, +// endpoints will not be removed from the accelerator. +// +// 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 Global Accelerator's +// API operation DeleteCrossAccountAttachment for usage and error information. +// +// Returned Error Types: +// +// - AttachmentNotFoundException +// No cross-account attachment was found. +// +// - AccessDeniedException +// You don't have access permission. +// +// - InternalServiceErrorException +// There was an internal error for Global Accelerator. +// +// - InvalidArgumentException +// An argument that you specified is invalid. +// +// - TransactionInProgressException +// There's already a transaction in progress. Another transaction can't be processed. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/DeleteCrossAccountAttachment +func (c *GlobalAccelerator) DeleteCrossAccountAttachment(input *DeleteCrossAccountAttachmentInput) (*DeleteCrossAccountAttachmentOutput, error) { + req, out := c.DeleteCrossAccountAttachmentRequest(input) + return out, req.Send() +} + +// DeleteCrossAccountAttachmentWithContext is the same as DeleteCrossAccountAttachment with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteCrossAccountAttachment 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 *GlobalAccelerator) DeleteCrossAccountAttachmentWithContext(ctx aws.Context, input *DeleteCrossAccountAttachmentInput, opts ...request.Option) (*DeleteCrossAccountAttachmentOutput, error) { + req, out := c.DeleteCrossAccountAttachmentRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteCustomRoutingAccelerator = "DeleteCustomRoutingAccelerator" // DeleteCustomRoutingAcceleratorRequest generates a "aws/request.Request" representing the @@ -1963,6 +2175,94 @@ func (c *GlobalAccelerator) DescribeAcceleratorAttributesWithContext(ctx aws.Con return out, req.Send() } +const opDescribeCrossAccountAttachment = "DescribeCrossAccountAttachment" + +// DescribeCrossAccountAttachmentRequest generates a "aws/request.Request" representing the +// client's request for the DescribeCrossAccountAttachment 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 DescribeCrossAccountAttachment for more information on using the DescribeCrossAccountAttachment +// 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 DescribeCrossAccountAttachmentRequest method. +// req, resp := client.DescribeCrossAccountAttachmentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/DescribeCrossAccountAttachment +func (c *GlobalAccelerator) DescribeCrossAccountAttachmentRequest(input *DescribeCrossAccountAttachmentInput) (req *request.Request, output *DescribeCrossAccountAttachmentOutput) { + op := &request.Operation{ + Name: opDescribeCrossAccountAttachment, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeCrossAccountAttachmentInput{} + } + + output = &DescribeCrossAccountAttachmentOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeCrossAccountAttachment API operation for AWS Global Accelerator. +// +// Gets configuration information about a cross-account attachment. +// +// 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 Global Accelerator's +// API operation DescribeCrossAccountAttachment for usage and error information. +// +// Returned Error Types: +// +// - AttachmentNotFoundException +// No cross-account attachment was found. +// +// - AccessDeniedException +// You don't have access permission. +// +// - InternalServiceErrorException +// There was an internal error for Global Accelerator. +// +// - InvalidArgumentException +// An argument that you specified is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/DescribeCrossAccountAttachment +func (c *GlobalAccelerator) DescribeCrossAccountAttachment(input *DescribeCrossAccountAttachmentInput) (*DescribeCrossAccountAttachmentOutput, error) { + req, out := c.DescribeCrossAccountAttachmentRequest(input) + return out, req.Send() +} + +// DescribeCrossAccountAttachmentWithContext is the same as DescribeCrossAccountAttachment with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeCrossAccountAttachment 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 *GlobalAccelerator) DescribeCrossAccountAttachmentWithContext(ctx aws.Context, input *DescribeCrossAccountAttachmentInput, opts ...request.Option) (*DescribeCrossAccountAttachmentOutput, error) { + req, out := c.DescribeCrossAccountAttachmentRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeCustomRoutingAccelerator = "DescribeCustomRoutingAccelerator" // DescribeCustomRoutingAcceleratorRequest generates a "aws/request.Request" representing the @@ -2762,34 +3062,34 @@ func (c *GlobalAccelerator) ListByoipCidrsPagesWithContext(ctx aws.Context, inpu return p.Err() } -const opListCustomRoutingAccelerators = "ListCustomRoutingAccelerators" +const opListCrossAccountAttachments = "ListCrossAccountAttachments" -// ListCustomRoutingAcceleratorsRequest generates a "aws/request.Request" representing the -// client's request for the ListCustomRoutingAccelerators operation. The "output" return +// ListCrossAccountAttachmentsRequest generates a "aws/request.Request" representing the +// client's request for the ListCrossAccountAttachments 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 ListCustomRoutingAccelerators for more information on using the ListCustomRoutingAccelerators +// See ListCrossAccountAttachments for more information on using the ListCrossAccountAttachments // 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 ListCustomRoutingAcceleratorsRequest method. -// req, resp := client.ListCustomRoutingAcceleratorsRequest(params) +// // Example sending a request using the ListCrossAccountAttachmentsRequest method. +// req, resp := client.ListCrossAccountAttachmentsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/ListCustomRoutingAccelerators -func (c *GlobalAccelerator) ListCustomRoutingAcceleratorsRequest(input *ListCustomRoutingAcceleratorsInput) (req *request.Request, output *ListCustomRoutingAcceleratorsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/ListCrossAccountAttachments +func (c *GlobalAccelerator) ListCrossAccountAttachmentsRequest(input *ListCrossAccountAttachmentsInput) (req *request.Request, output *ListCrossAccountAttachmentsOutput) { op := &request.Operation{ - Name: opListCustomRoutingAccelerators, + Name: opListCrossAccountAttachments, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ @@ -2801,27 +3101,30 @@ func (c *GlobalAccelerator) ListCustomRoutingAcceleratorsRequest(input *ListCust } if input == nil { - input = &ListCustomRoutingAcceleratorsInput{} + input = &ListCrossAccountAttachmentsInput{} } - output = &ListCustomRoutingAcceleratorsOutput{} + output = &ListCrossAccountAttachmentsOutput{} req = c.newRequest(op, input, output) return } -// ListCustomRoutingAccelerators API operation for AWS Global Accelerator. +// ListCrossAccountAttachments API operation for AWS Global Accelerator. // -// List the custom routing accelerators for an Amazon Web Services account. +// List the cross-account attachments that have been created in Global Accelerator. // // 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 Global Accelerator's -// API operation ListCustomRoutingAccelerators for usage and error information. +// API operation ListCrossAccountAttachments for usage and error information. // // Returned Error Types: // +// - AccessDeniedException +// You don't have access permission. +// // - InvalidArgumentException // An argument that you specified is invalid. // @@ -2831,64 +3134,64 @@ func (c *GlobalAccelerator) ListCustomRoutingAcceleratorsRequest(input *ListCust // - InternalServiceErrorException // There was an internal error for Global Accelerator. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/ListCustomRoutingAccelerators -func (c *GlobalAccelerator) ListCustomRoutingAccelerators(input *ListCustomRoutingAcceleratorsInput) (*ListCustomRoutingAcceleratorsOutput, error) { - req, out := c.ListCustomRoutingAcceleratorsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/ListCrossAccountAttachments +func (c *GlobalAccelerator) ListCrossAccountAttachments(input *ListCrossAccountAttachmentsInput) (*ListCrossAccountAttachmentsOutput, error) { + req, out := c.ListCrossAccountAttachmentsRequest(input) return out, req.Send() } -// ListCustomRoutingAcceleratorsWithContext is the same as ListCustomRoutingAccelerators with the addition of +// ListCrossAccountAttachmentsWithContext is the same as ListCrossAccountAttachments with the addition of // the ability to pass a context and additional request options. // -// See ListCustomRoutingAccelerators for details on how to use this API operation. +// See ListCrossAccountAttachments 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 *GlobalAccelerator) ListCustomRoutingAcceleratorsWithContext(ctx aws.Context, input *ListCustomRoutingAcceleratorsInput, opts ...request.Option) (*ListCustomRoutingAcceleratorsOutput, error) { - req, out := c.ListCustomRoutingAcceleratorsRequest(input) +func (c *GlobalAccelerator) ListCrossAccountAttachmentsWithContext(ctx aws.Context, input *ListCrossAccountAttachmentsInput, opts ...request.Option) (*ListCrossAccountAttachmentsOutput, error) { + req, out := c.ListCrossAccountAttachmentsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListCustomRoutingAcceleratorsPages iterates over the pages of a ListCustomRoutingAccelerators operation, +// ListCrossAccountAttachmentsPages iterates over the pages of a ListCrossAccountAttachments operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListCustomRoutingAccelerators method for more information on how to use this operation. +// See ListCrossAccountAttachments method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // -// // Example iterating over at most 3 pages of a ListCustomRoutingAccelerators operation. +// // Example iterating over at most 3 pages of a ListCrossAccountAttachments operation. // pageNum := 0 -// err := client.ListCustomRoutingAcceleratorsPages(params, -// func(page *globalaccelerator.ListCustomRoutingAcceleratorsOutput, lastPage bool) bool { +// err := client.ListCrossAccountAttachmentsPages(params, +// func(page *globalaccelerator.ListCrossAccountAttachmentsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) -func (c *GlobalAccelerator) ListCustomRoutingAcceleratorsPages(input *ListCustomRoutingAcceleratorsInput, fn func(*ListCustomRoutingAcceleratorsOutput, bool) bool) error { - return c.ListCustomRoutingAcceleratorsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *GlobalAccelerator) ListCrossAccountAttachmentsPages(input *ListCrossAccountAttachmentsInput, fn func(*ListCrossAccountAttachmentsOutput, bool) bool) error { + return c.ListCrossAccountAttachmentsPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListCustomRoutingAcceleratorsPagesWithContext same as ListCustomRoutingAcceleratorsPages except +// ListCrossAccountAttachmentsPagesWithContext same as ListCrossAccountAttachmentsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *GlobalAccelerator) ListCustomRoutingAcceleratorsPagesWithContext(ctx aws.Context, input *ListCustomRoutingAcceleratorsInput, fn func(*ListCustomRoutingAcceleratorsOutput, bool) bool, opts ...request.Option) error { +func (c *GlobalAccelerator) ListCrossAccountAttachmentsPagesWithContext(ctx aws.Context, input *ListCrossAccountAttachmentsInput, fn func(*ListCrossAccountAttachmentsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListCustomRoutingAcceleratorsInput + var inCpy *ListCrossAccountAttachmentsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListCustomRoutingAcceleratorsRequest(inCpy) + req, _ := c.ListCrossAccountAttachmentsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -2896,7 +3199,7 @@ func (c *GlobalAccelerator) ListCustomRoutingAcceleratorsPagesWithContext(ctx aw } for p.Next() { - if !fn(p.Page().(*ListCustomRoutingAcceleratorsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListCrossAccountAttachmentsOutput), !p.HasNextPage()) { break } } @@ -2904,39 +3207,411 @@ func (c *GlobalAccelerator) ListCustomRoutingAcceleratorsPagesWithContext(ctx aw return p.Err() } -const opListCustomRoutingEndpointGroups = "ListCustomRoutingEndpointGroups" +const opListCrossAccountResourceAccounts = "ListCrossAccountResourceAccounts" -// ListCustomRoutingEndpointGroupsRequest generates a "aws/request.Request" representing the -// client's request for the ListCustomRoutingEndpointGroups operation. The "output" return +// ListCrossAccountResourceAccountsRequest generates a "aws/request.Request" representing the +// client's request for the ListCrossAccountResourceAccounts 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 ListCustomRoutingEndpointGroups for more information on using the ListCustomRoutingEndpointGroups +// See ListCrossAccountResourceAccounts for more information on using the ListCrossAccountResourceAccounts // 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 ListCustomRoutingEndpointGroupsRequest method. -// req, resp := client.ListCustomRoutingEndpointGroupsRequest(params) +// // Example sending a request using the ListCrossAccountResourceAccountsRequest method. +// req, resp := client.ListCrossAccountResourceAccountsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/ListCustomRoutingEndpointGroups -func (c *GlobalAccelerator) ListCustomRoutingEndpointGroupsRequest(input *ListCustomRoutingEndpointGroupsInput) (req *request.Request, output *ListCustomRoutingEndpointGroupsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/ListCrossAccountResourceAccounts +func (c *GlobalAccelerator) ListCrossAccountResourceAccountsRequest(input *ListCrossAccountResourceAccountsInput) (req *request.Request, output *ListCrossAccountResourceAccountsOutput) { op := &request.Operation{ - Name: opListCustomRoutingEndpointGroups, + Name: opListCrossAccountResourceAccounts, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, + } + + if input == nil { + input = &ListCrossAccountResourceAccountsInput{} + } + + output = &ListCrossAccountResourceAccountsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListCrossAccountResourceAccounts API operation for AWS Global Accelerator. +// +// List the accounts that have cross-account endpoints. +// +// 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 Global Accelerator's +// API operation ListCrossAccountResourceAccounts for usage and error information. +// +// Returned Error Types: +// +// - AccessDeniedException +// You don't have access permission. +// +// - InternalServiceErrorException +// There was an internal error for Global Accelerator. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/ListCrossAccountResourceAccounts +func (c *GlobalAccelerator) ListCrossAccountResourceAccounts(input *ListCrossAccountResourceAccountsInput) (*ListCrossAccountResourceAccountsOutput, error) { + req, out := c.ListCrossAccountResourceAccountsRequest(input) + return out, req.Send() +} + +// ListCrossAccountResourceAccountsWithContext is the same as ListCrossAccountResourceAccounts with the addition of +// the ability to pass a context and additional request options. +// +// See ListCrossAccountResourceAccounts 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 *GlobalAccelerator) ListCrossAccountResourceAccountsWithContext(ctx aws.Context, input *ListCrossAccountResourceAccountsInput, opts ...request.Option) (*ListCrossAccountResourceAccountsOutput, error) { + req, out := c.ListCrossAccountResourceAccountsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListCrossAccountResources = "ListCrossAccountResources" + +// ListCrossAccountResourcesRequest generates a "aws/request.Request" representing the +// client's request for the ListCrossAccountResources 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 ListCrossAccountResources for more information on using the ListCrossAccountResources +// 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 ListCrossAccountResourcesRequest method. +// req, resp := client.ListCrossAccountResourcesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/ListCrossAccountResources +func (c *GlobalAccelerator) ListCrossAccountResourcesRequest(input *ListCrossAccountResourcesInput) (req *request.Request, output *ListCrossAccountResourcesOutput) { + op := &request.Operation{ + Name: opListCrossAccountResources, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListCrossAccountResourcesInput{} + } + + output = &ListCrossAccountResourcesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListCrossAccountResources API operation for AWS Global Accelerator. +// +// List the cross-account endpoints available to add to an accelerator. +// +// 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 Global Accelerator's +// API operation ListCrossAccountResources for usage and error information. +// +// Returned Error Types: +// +// - InternalServiceErrorException +// There was an internal error for Global Accelerator. +// +// - InvalidArgumentException +// An argument that you specified is invalid. +// +// - InvalidNextTokenException +// There isn't another item to return. +// +// - AccessDeniedException +// You don't have access permission. +// +// - AcceleratorNotFoundException +// The accelerator that you specified doesn't exist. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/ListCrossAccountResources +func (c *GlobalAccelerator) ListCrossAccountResources(input *ListCrossAccountResourcesInput) (*ListCrossAccountResourcesOutput, error) { + req, out := c.ListCrossAccountResourcesRequest(input) + return out, req.Send() +} + +// ListCrossAccountResourcesWithContext is the same as ListCrossAccountResources with the addition of +// the ability to pass a context and additional request options. +// +// See ListCrossAccountResources 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 *GlobalAccelerator) ListCrossAccountResourcesWithContext(ctx aws.Context, input *ListCrossAccountResourcesInput, opts ...request.Option) (*ListCrossAccountResourcesOutput, error) { + req, out := c.ListCrossAccountResourcesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListCrossAccountResourcesPages iterates over the pages of a ListCrossAccountResources operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListCrossAccountResources method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListCrossAccountResources operation. +// pageNum := 0 +// err := client.ListCrossAccountResourcesPages(params, +// func(page *globalaccelerator.ListCrossAccountResourcesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *GlobalAccelerator) ListCrossAccountResourcesPages(input *ListCrossAccountResourcesInput, fn func(*ListCrossAccountResourcesOutput, bool) bool) error { + return c.ListCrossAccountResourcesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListCrossAccountResourcesPagesWithContext same as ListCrossAccountResourcesPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *GlobalAccelerator) ListCrossAccountResourcesPagesWithContext(ctx aws.Context, input *ListCrossAccountResourcesInput, fn func(*ListCrossAccountResourcesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListCrossAccountResourcesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListCrossAccountResourcesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListCrossAccountResourcesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListCustomRoutingAccelerators = "ListCustomRoutingAccelerators" + +// ListCustomRoutingAcceleratorsRequest generates a "aws/request.Request" representing the +// client's request for the ListCustomRoutingAccelerators 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 ListCustomRoutingAccelerators for more information on using the ListCustomRoutingAccelerators +// 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 ListCustomRoutingAcceleratorsRequest method. +// req, resp := client.ListCustomRoutingAcceleratorsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/ListCustomRoutingAccelerators +func (c *GlobalAccelerator) ListCustomRoutingAcceleratorsRequest(input *ListCustomRoutingAcceleratorsInput) (req *request.Request, output *ListCustomRoutingAcceleratorsOutput) { + op := &request.Operation{ + Name: opListCustomRoutingAccelerators, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListCustomRoutingAcceleratorsInput{} + } + + output = &ListCustomRoutingAcceleratorsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListCustomRoutingAccelerators API operation for AWS Global Accelerator. +// +// List the custom routing accelerators for an Amazon Web Services account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Global Accelerator's +// API operation ListCustomRoutingAccelerators for usage and error information. +// +// Returned Error Types: +// +// - InvalidArgumentException +// An argument that you specified is invalid. +// +// - InvalidNextTokenException +// There isn't another item to return. +// +// - InternalServiceErrorException +// There was an internal error for Global Accelerator. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/ListCustomRoutingAccelerators +func (c *GlobalAccelerator) ListCustomRoutingAccelerators(input *ListCustomRoutingAcceleratorsInput) (*ListCustomRoutingAcceleratorsOutput, error) { + req, out := c.ListCustomRoutingAcceleratorsRequest(input) + return out, req.Send() +} + +// ListCustomRoutingAcceleratorsWithContext is the same as ListCustomRoutingAccelerators with the addition of +// the ability to pass a context and additional request options. +// +// See ListCustomRoutingAccelerators 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 *GlobalAccelerator) ListCustomRoutingAcceleratorsWithContext(ctx aws.Context, input *ListCustomRoutingAcceleratorsInput, opts ...request.Option) (*ListCustomRoutingAcceleratorsOutput, error) { + req, out := c.ListCustomRoutingAcceleratorsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListCustomRoutingAcceleratorsPages iterates over the pages of a ListCustomRoutingAccelerators operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListCustomRoutingAccelerators method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListCustomRoutingAccelerators operation. +// pageNum := 0 +// err := client.ListCustomRoutingAcceleratorsPages(params, +// func(page *globalaccelerator.ListCustomRoutingAcceleratorsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *GlobalAccelerator) ListCustomRoutingAcceleratorsPages(input *ListCustomRoutingAcceleratorsInput, fn func(*ListCustomRoutingAcceleratorsOutput, bool) bool) error { + return c.ListCustomRoutingAcceleratorsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListCustomRoutingAcceleratorsPagesWithContext same as ListCustomRoutingAcceleratorsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *GlobalAccelerator) ListCustomRoutingAcceleratorsPagesWithContext(ctx aws.Context, input *ListCustomRoutingAcceleratorsInput, fn func(*ListCustomRoutingAcceleratorsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListCustomRoutingAcceleratorsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListCustomRoutingAcceleratorsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListCustomRoutingAcceleratorsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListCustomRoutingEndpointGroups = "ListCustomRoutingEndpointGroups" + +// ListCustomRoutingEndpointGroupsRequest generates a "aws/request.Request" representing the +// client's request for the ListCustomRoutingEndpointGroups 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 ListCustomRoutingEndpointGroups for more information on using the ListCustomRoutingEndpointGroups +// 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 ListCustomRoutingEndpointGroupsRequest method. +// req, resp := client.ListCustomRoutingEndpointGroupsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/ListCustomRoutingEndpointGroups +func (c *GlobalAccelerator) ListCustomRoutingEndpointGroupsRequest(input *ListCustomRoutingEndpointGroupsInput) (req *request.Request, output *ListCustomRoutingEndpointGroupsOutput) { + op := &request.Operation{ + Name: opListCustomRoutingEndpointGroups, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, LimitToken: "MaxResults", TruncationToken: "", }, @@ -4562,6 +5237,117 @@ func (c *GlobalAccelerator) UpdateAcceleratorAttributesWithContext(ctx aws.Conte return out, req.Send() } +const opUpdateCrossAccountAttachment = "UpdateCrossAccountAttachment" + +// UpdateCrossAccountAttachmentRequest generates a "aws/request.Request" representing the +// client's request for the UpdateCrossAccountAttachment 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 UpdateCrossAccountAttachment for more information on using the UpdateCrossAccountAttachment +// 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 UpdateCrossAccountAttachmentRequest method. +// req, resp := client.UpdateCrossAccountAttachmentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/UpdateCrossAccountAttachment +func (c *GlobalAccelerator) UpdateCrossAccountAttachmentRequest(input *UpdateCrossAccountAttachmentInput) (req *request.Request, output *UpdateCrossAccountAttachmentOutput) { + op := &request.Operation{ + Name: opUpdateCrossAccountAttachment, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateCrossAccountAttachmentInput{} + } + + output = &UpdateCrossAccountAttachmentOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateCrossAccountAttachment API operation for AWS Global Accelerator. +// +// Update a cross-account attachment to add or remove principals or resources. +// When you update an attachment to remove a principal (account ID or accelerator) +// or a resource, Global Accelerator revokes the permission for specific resources +// by doing the following: +// +// - If the principal is an account ID, Global Accelerator reviews every +// accelerator in the account and removes cross-account endpoints from all +// accelerators. +// +// - If the principal is an accelerator, Global Accelerator reviews just +// that accelerator and removes cross-account endpoints from it. +// +// If there are overlapping permissions provided by multiple cross-account attachments, +// Global Accelerator only removes endpoints if there are no current cross-account +// attachments that provide access permission. For example, if you delete a +// cross-account attachment that lists an accelerator as a principal, but another +// cross-account attachment includes the account ID that owns that accelerator, +// endpoints will not be removed from the accelerator. +// +// 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 Global Accelerator's +// API operation UpdateCrossAccountAttachment for usage and error information. +// +// Returned Error Types: +// +// - AttachmentNotFoundException +// No cross-account attachment was found. +// +// - AccessDeniedException +// You don't have access permission. +// +// - InternalServiceErrorException +// There was an internal error for Global Accelerator. +// +// - InvalidArgumentException +// An argument that you specified is invalid. +// +// - LimitExceededException +// Processing your request would cause you to exceed an Global Accelerator limit. +// +// - TransactionInProgressException +// There's already a transaction in progress. Another transaction can't be processed. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/UpdateCrossAccountAttachment +func (c *GlobalAccelerator) UpdateCrossAccountAttachment(input *UpdateCrossAccountAttachmentInput) (*UpdateCrossAccountAttachmentOutput, error) { + req, out := c.UpdateCrossAccountAttachmentRequest(input) + return out, req.Send() +} + +// UpdateCrossAccountAttachmentWithContext is the same as UpdateCrossAccountAttachment with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateCrossAccountAttachment 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 *GlobalAccelerator) UpdateCrossAccountAttachmentWithContext(ctx aws.Context, input *UpdateCrossAccountAttachmentInput, opts ...request.Option) (*UpdateCrossAccountAttachmentOutput, error) { + req, out := c.UpdateCrossAccountAttachmentRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opUpdateCustomRoutingAccelerator = "UpdateCustomRoutingAccelerator" // UpdateCustomRoutingAcceleratorRequest generates a "aws/request.Request" representing the @@ -6015,42 +6801,185 @@ func newErrorAssociatedEndpointGroupFoundException(v protocol.ResponseMetadata) } } -// Code returns the exception type name. -func (s *AssociatedEndpointGroupFoundException) Code() string { - return "AssociatedEndpointGroupFoundException" +// Code returns the exception type name. +func (s *AssociatedEndpointGroupFoundException) Code() string { + return "AssociatedEndpointGroupFoundException" +} + +// Message returns the exception's message. +func (s *AssociatedEndpointGroupFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *AssociatedEndpointGroupFoundException) OrigErr() error { + return nil +} + +func (s *AssociatedEndpointGroupFoundException) 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 *AssociatedEndpointGroupFoundException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *AssociatedEndpointGroupFoundException) RequestID() string { + return s.RespMetadata.RequestID +} + +// The accelerator that you specified has a listener associated with it. You +// must remove all dependent resources from an accelerator before you can delete +// it. +type AssociatedListenerFoundException 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 AssociatedListenerFoundException) 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 AssociatedListenerFoundException) GoString() string { + return s.String() +} + +func newErrorAssociatedListenerFoundException(v protocol.ResponseMetadata) error { + return &AssociatedListenerFoundException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *AssociatedListenerFoundException) Code() string { + return "AssociatedListenerFoundException" +} + +// Message returns the exception's message. +func (s *AssociatedListenerFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *AssociatedListenerFoundException) OrigErr() error { + return nil +} + +func (s *AssociatedListenerFoundException) 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 *AssociatedListenerFoundException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *AssociatedListenerFoundException) RequestID() string { + return s.RespMetadata.RequestID +} + +// A cross-account attachment in Global Accelerator. A cross-account attachment +// specifies the principals who have permission to add to accelerators in their +// own account the resources in your account that you also list in the attachment. +type Attachment struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the cross-account attachment. + AttachmentArn *string `type:"string"` + + // The date and time that the cross-account attachment was created. + CreatedTime *time.Time `type:"timestamp"` + + // The date and time that the cross-account attachment was last modified. + LastModifiedTime *time.Time `type:"timestamp"` + + // The name of the cross-account attachment. + Name *string `type:"string"` + + // The principals included in the cross-account attachment. + Principals []*string `type:"list"` + + // The resources included in the cross-account attachment. + Resources []*Resource `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Attachment) 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 Attachment) GoString() string { + return s.String() +} + +// SetAttachmentArn sets the AttachmentArn field's value. +func (s *Attachment) SetAttachmentArn(v string) *Attachment { + s.AttachmentArn = &v + return s } -// Message returns the exception's message. -func (s *AssociatedEndpointGroupFoundException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" +// SetCreatedTime sets the CreatedTime field's value. +func (s *Attachment) SetCreatedTime(v time.Time) *Attachment { + s.CreatedTime = &v + return s } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *AssociatedEndpointGroupFoundException) OrigErr() error { - return nil +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *Attachment) SetLastModifiedTime(v time.Time) *Attachment { + s.LastModifiedTime = &v + return s } -func (s *AssociatedEndpointGroupFoundException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +// SetName sets the Name field's value. +func (s *Attachment) SetName(v string) *Attachment { + s.Name = &v + return s } -// Status code returns the HTTP status code for the request's response error. -func (s *AssociatedEndpointGroupFoundException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetPrincipals sets the Principals field's value. +func (s *Attachment) SetPrincipals(v []*string) *Attachment { + s.Principals = v + return s } -// RequestID returns the service's response RequestID for request. -func (s *AssociatedEndpointGroupFoundException) RequestID() string { - return s.RespMetadata.RequestID +// SetResources sets the Resources field's value. +func (s *Attachment) SetResources(v []*Resource) *Attachment { + s.Resources = v + return s } -// The accelerator that you specified has a listener associated with it. You -// must remove all dependent resources from an accelerator before you can delete -// it. -type AssociatedListenerFoundException struct { +// No cross-account attachment was found. +type AttachmentNotFoundException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -6062,7 +6991,7 @@ type AssociatedListenerFoundException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AssociatedListenerFoundException) String() string { +func (s AttachmentNotFoundException) String() string { return awsutil.Prettify(s) } @@ -6071,23 +7000,23 @@ func (s AssociatedListenerFoundException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AssociatedListenerFoundException) GoString() string { +func (s AttachmentNotFoundException) GoString() string { return s.String() } -func newErrorAssociatedListenerFoundException(v protocol.ResponseMetadata) error { - return &AssociatedListenerFoundException{ +func newErrorAttachmentNotFoundException(v protocol.ResponseMetadata) error { + return &AttachmentNotFoundException{ RespMetadata: v, } } // Code returns the exception type name. -func (s *AssociatedListenerFoundException) Code() string { - return "AssociatedListenerFoundException" +func (s *AttachmentNotFoundException) Code() string { + return "AttachmentNotFoundException" } // Message returns the exception's message. -func (s *AssociatedListenerFoundException) Message() string { +func (s *AttachmentNotFoundException) Message() string { if s.Message_ != nil { return *s.Message_ } @@ -6095,21 +7024,21 @@ func (s *AssociatedListenerFoundException) Message() string { } // OrigErr always returns nil, satisfies awserr.Error interface. -func (s *AssociatedListenerFoundException) OrigErr() error { +func (s *AttachmentNotFoundException) OrigErr() error { return nil } -func (s *AssociatedListenerFoundException) Error() string { +func (s *AttachmentNotFoundException) 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 *AssociatedListenerFoundException) StatusCode() int { +func (s *AttachmentNotFoundException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. -func (s *AssociatedListenerFoundException) RequestID() string { +func (s *AttachmentNotFoundException) RequestID() string { return s.RespMetadata.RequestID } @@ -6611,6 +7540,147 @@ func (s *CreateAcceleratorOutput) SetAccelerator(v *Accelerator) *CreateAccelera return s } +type CreateCrossAccountAttachmentInput struct { + _ struct{} `type:"structure"` + + // A unique, case-sensitive identifier that you provide to ensure the idempotency—that + // is, the uniqueness—of the request. + IdempotencyToken *string `type:"string" idempotencyToken:"true"` + + // The name of the cross-account attachment. + // + // Name is a required field + Name *string `type:"string" required:"true"` + + // The principals to list in the cross-account attachment. A principal can be + // an Amazon Web Services account number or the Amazon Resource Name (ARN) for + // an accelerator. + Principals []*string `type:"list"` + + // The Amazon Resource Names (ARNs) for the resources to list in the cross-account + // attachment. A resource can be any supported Amazon Web Services resource + // type for Global Accelerator. + Resources []*Resource `type:"list"` + + // Create tags for cross-account attachment. + // + // For more information, see Tagging in Global Accelerator (https://docs.aws.amazon.com/global-accelerator/latest/dg/tagging-in-global-accelerator.html) + // in the Global Accelerator Developer Guide. + Tags []*Tag `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateCrossAccountAttachmentInput) 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 CreateCrossAccountAttachmentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateCrossAccountAttachmentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateCrossAccountAttachmentInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Resources != nil { + for i, v := range s.Resources { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Resources", i), err.(request.ErrInvalidParams)) + } + } + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIdempotencyToken sets the IdempotencyToken field's value. +func (s *CreateCrossAccountAttachmentInput) SetIdempotencyToken(v string) *CreateCrossAccountAttachmentInput { + s.IdempotencyToken = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateCrossAccountAttachmentInput) SetName(v string) *CreateCrossAccountAttachmentInput { + s.Name = &v + return s +} + +// SetPrincipals sets the Principals field's value. +func (s *CreateCrossAccountAttachmentInput) SetPrincipals(v []*string) *CreateCrossAccountAttachmentInput { + s.Principals = v + return s +} + +// SetResources sets the Resources field's value. +func (s *CreateCrossAccountAttachmentInput) SetResources(v []*Resource) *CreateCrossAccountAttachmentInput { + s.Resources = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateCrossAccountAttachmentInput) SetTags(v []*Tag) *CreateCrossAccountAttachmentInput { + s.Tags = v + return s +} + +type CreateCrossAccountAttachmentOutput struct { + _ struct{} `type:"structure"` + + // Information about the cross-account attachment. + CrossAccountAttachment *Attachment `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 CreateCrossAccountAttachmentOutput) 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 CreateCrossAccountAttachmentOutput) GoString() string { + return s.String() +} + +// SetCrossAccountAttachment sets the CrossAccountAttachment field's value. +func (s *CreateCrossAccountAttachmentOutput) SetCrossAccountAttachment(v *Attachment) *CreateCrossAccountAttachmentOutput { + s.CrossAccountAttachment = v + return s +} + type CreateCustomRoutingAcceleratorInput struct { _ struct{} `type:"structure"` @@ -7390,6 +8460,52 @@ func (s *CreateListenerOutput) SetListener(v *Listener) *CreateListenerOutput { return s } +// An endpoint (Amazon Web Services resource) that is listed in a cross-account +// attachment and can be added to an accelerator by specified principals, that +// are also listed in the attachment. +type CrossAccountResource struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the cross-account attachment that specifies + // the endpoints (resources) that can be added to accelerators and principals + // that have permission to add the endpoints to accelerators. + AttachmentArn *string `type:"string"` + + // The endpoint ID for the endpoint that is listed in a cross-account attachment + // and can be added to an accelerator by specified principals. + EndpointId *string `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 CrossAccountResource) 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 CrossAccountResource) GoString() string { + return s.String() +} + +// SetAttachmentArn sets the AttachmentArn field's value. +func (s *CrossAccountResource) SetAttachmentArn(v string) *CrossAccountResource { + s.AttachmentArn = &v + return s +} + +// SetEndpointId sets the EndpointId field's value. +func (s *CrossAccountResource) SetEndpointId(v string) *CrossAccountResource { + s.EndpointId = &v + return s +} + // Attributes of a custom routing accelerator. type CustomRoutingAccelerator struct { _ struct{} `type:"structure"` @@ -7725,6 +8841,11 @@ func (s *CustomRoutingDestinationDescription) SetToPort(v int64) *CustomRoutingD type CustomRoutingEndpointConfiguration struct { _ struct{} `type:"structure"` + // The Amazon Resource Name (ARN) of the cross-account attachment that specifies + // the endpoints (resources) that can be added to accelerators and principals + // that have permission to add the endpoints to accelerators. + AttachmentArn *string `type:"string"` + // An ID for the endpoint. For custom routing accelerators, this is the virtual // private cloud (VPC) subnet ID. EndpointId *string `type:"string"` @@ -7748,6 +8869,12 @@ func (s CustomRoutingEndpointConfiguration) GoString() string { return s.String() } +// SetAttachmentArn sets the AttachmentArn field's value. +func (s *CustomRoutingEndpointConfiguration) SetAttachmentArn(v string) *CustomRoutingEndpointConfiguration { + s.AttachmentArn = &v + return s +} + // SetEndpointId sets the EndpointId field's value. func (s *CustomRoutingEndpointConfiguration) SetEndpointId(v string) *CustomRoutingEndpointConfiguration { s.EndpointId = &v @@ -7911,7 +9038,75 @@ type DeleteAcceleratorInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteAcceleratorInput) String() string { +func (s DeleteAcceleratorInput) 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 DeleteAcceleratorInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteAcceleratorInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteAcceleratorInput"} + if s.AcceleratorArn == nil { + invalidParams.Add(request.NewErrParamRequired("AcceleratorArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceleratorArn sets the AcceleratorArn field's value. +func (s *DeleteAcceleratorInput) SetAcceleratorArn(v string) *DeleteAcceleratorInput { + s.AcceleratorArn = &v + return s +} + +type DeleteAcceleratorOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteAcceleratorOutput) 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 DeleteAcceleratorOutput) GoString() string { + return s.String() +} + +type DeleteCrossAccountAttachmentInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) for the cross-account attachment to delete. + // + // AttachmentArn is a required field + AttachmentArn *string `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 DeleteCrossAccountAttachmentInput) String() string { return awsutil.Prettify(s) } @@ -7920,15 +9115,15 @@ func (s DeleteAcceleratorInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteAcceleratorInput) GoString() string { +func (s DeleteCrossAccountAttachmentInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteAcceleratorInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteAcceleratorInput"} - if s.AcceleratorArn == nil { - invalidParams.Add(request.NewErrParamRequired("AcceleratorArn")) +func (s *DeleteCrossAccountAttachmentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteCrossAccountAttachmentInput"} + if s.AttachmentArn == nil { + invalidParams.Add(request.NewErrParamRequired("AttachmentArn")) } if invalidParams.Len() > 0 { @@ -7937,13 +9132,13 @@ func (s *DeleteAcceleratorInput) Validate() error { return nil } -// SetAcceleratorArn sets the AcceleratorArn field's value. -func (s *DeleteAcceleratorInput) SetAcceleratorArn(v string) *DeleteAcceleratorInput { - s.AcceleratorArn = &v +// SetAttachmentArn sets the AttachmentArn field's value. +func (s *DeleteCrossAccountAttachmentInput) SetAttachmentArn(v string) *DeleteCrossAccountAttachmentInput { + s.AttachmentArn = &v return s } -type DeleteAcceleratorOutput struct { +type DeleteCrossAccountAttachmentOutput struct { _ struct{} `type:"structure"` } @@ -7952,7 +9147,7 @@ type DeleteAcceleratorOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteAcceleratorOutput) String() string { +func (s DeleteCrossAccountAttachmentOutput) String() string { return awsutil.Prettify(s) } @@ -7961,7 +9156,7 @@ func (s DeleteAcceleratorOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteAcceleratorOutput) GoString() string { +func (s DeleteCrossAccountAttachmentOutput) GoString() string { return s.String() } @@ -8665,6 +9860,83 @@ func (s *DescribeAcceleratorOutput) SetAccelerator(v *Accelerator) *DescribeAcce return s } +type DescribeCrossAccountAttachmentInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) for the cross-account attachment to describe. + // + // AttachmentArn is a required field + AttachmentArn *string `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 DescribeCrossAccountAttachmentInput) 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 DescribeCrossAccountAttachmentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeCrossAccountAttachmentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeCrossAccountAttachmentInput"} + if s.AttachmentArn == nil { + invalidParams.Add(request.NewErrParamRequired("AttachmentArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAttachmentArn sets the AttachmentArn field's value. +func (s *DescribeCrossAccountAttachmentInput) SetAttachmentArn(v string) *DescribeCrossAccountAttachmentInput { + s.AttachmentArn = &v + return s +} + +type DescribeCrossAccountAttachmentOutput struct { + _ struct{} `type:"structure"` + + // Information about the cross-account attachment. + CrossAccountAttachment *Attachment `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 DescribeCrossAccountAttachmentOutput) 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 DescribeCrossAccountAttachmentOutput) GoString() string { + return s.String() +} + +// SetCrossAccountAttachment sets the CrossAccountAttachment field's value. +func (s *DescribeCrossAccountAttachmentOutput) SetCrossAccountAttachment(v *Attachment) *DescribeCrossAccountAttachmentOutput { + s.CrossAccountAttachment = v + return s +} + type DescribeCustomRoutingAcceleratorAttributesInput struct { _ struct{} `type:"structure"` @@ -9298,8 +10570,14 @@ func (s *EndpointAlreadyExistsException) RequestID() string { type EndpointConfiguration struct { _ struct{} `type:"structure"` + // The Amazon Resource Name (ARN) of the cross-account attachment that specifies + // the endpoints (resources) that can be added to accelerators and principals + // that have permission to add the endpoints to accelerators. + AttachmentArn *string `type:"string"` + // Indicates whether client IP address preservation is enabled for an endpoint. - // The value is true or false. The default value is true for new accelerators. + // The value is true or false. The default value is true for Application Load + // Balancer endpoints. // // If the value is set to true, the client's IP address is preserved in the // X-Forwarded-For request header as traffic travels to applications on the @@ -9307,7 +10585,7 @@ type EndpointConfiguration struct { // // Client IP address preservation is supported, in specific Amazon Web Services // Regions, for endpoints that are Application Load Balancers, Amazon EC2 instances, - // and Network Load Balancers with Security Groups. IMPORTANT: You cannot use + // and Network Load Balancers with security groups. IMPORTANT: You cannot use // client IP address preservation with Network Load Balancers with TLS listeners. // // For more information, see Preserve client IP addresses in Global Accelerator @@ -9353,6 +10631,12 @@ func (s EndpointConfiguration) GoString() string { return s.String() } +// SetAttachmentArn sets the AttachmentArn field's value. +func (s *EndpointConfiguration) SetAttachmentArn(v string) *EndpointConfiguration { + s.AttachmentArn = &v + return s +} + // SetClientIPPreservationEnabled sets the ClientIPPreservationEnabled field's value. func (s *EndpointConfiguration) SetClientIPPreservationEnabled(v bool) *EndpointConfiguration { s.ClientIPPreservationEnabled = &v @@ -9377,7 +10661,8 @@ type EndpointDescription struct { _ struct{} `type:"structure"` // Indicates whether client IP address preservation is enabled for an endpoint. - // The value is true or false. The default value is true for new accelerators. + // The value is true or false. The default value is true for Application Load + // Balancers endpoints. // // If the value is set to true, the client's IP address is preserved in the // X-Forwarded-For request header as traffic travels to applications on the @@ -9385,7 +10670,7 @@ type EndpointDescription struct { // // Client IP address preservation is supported, in specific Amazon Web Services // Regions, for endpoints that are Application Load Balancers, Amazon EC2 instances, - // and Network Load Balancers with Security Groups. IMPORTANT: You cannot use + // and Network Load Balancers with security groups. IMPORTANT: You cannot use // client IP address preservation with Network Load Balancers with TLS listeners. // // For more information, see Preserve client IP addresses in Global Accelerator @@ -10289,21 +11574,211 @@ func (s *LimitExceededException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// Status code returns the HTTP status code for the request's response error. -func (s *LimitExceededException) StatusCode() int { - return s.RespMetadata.StatusCode +// Status code returns the HTTP status code for the request's response error. +func (s *LimitExceededException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *LimitExceededException) RequestID() string { + return s.RespMetadata.RequestID +} + +type ListAcceleratorsInput struct { + _ struct{} `type:"structure"` + + // The number of Global Accelerator objects that you want to return with this + // call. The default value is 10. + MaxResults *int64 `min:"1" type:"integer"` + + // The token for the next set of results. You receive this token from a previous + // call. + NextToken *string `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 ListAcceleratorsInput) 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 ListAcceleratorsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListAcceleratorsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListAcceleratorsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListAcceleratorsInput) SetMaxResults(v int64) *ListAcceleratorsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAcceleratorsInput) SetNextToken(v string) *ListAcceleratorsInput { + s.NextToken = &v + return s +} + +type ListAcceleratorsOutput struct { + _ struct{} `type:"structure"` + + // The list of accelerators for a customer account. + Accelerators []*Accelerator `type:"list"` + + // The token for the next set of results. You receive this token from a previous + // call. + NextToken *string `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 ListAcceleratorsOutput) 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 ListAcceleratorsOutput) GoString() string { + return s.String() +} + +// SetAccelerators sets the Accelerators field's value. +func (s *ListAcceleratorsOutput) SetAccelerators(v []*Accelerator) *ListAcceleratorsOutput { + s.Accelerators = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAcceleratorsOutput) SetNextToken(v string) *ListAcceleratorsOutput { + s.NextToken = &v + return s +} + +type ListByoipCidrsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to return with a single call. To retrieve the + // remaining results, make another call with the returned nextToken value. + MaxResults *int64 `min:"1" type:"integer"` + + // The token for the next page of results. + NextToken *string `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 ListByoipCidrsInput) 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 ListByoipCidrsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListByoipCidrsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListByoipCidrsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListByoipCidrsInput) SetMaxResults(v int64) *ListByoipCidrsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListByoipCidrsInput) SetNextToken(v string) *ListByoipCidrsInput { + s.NextToken = &v + return s +} + +type ListByoipCidrsOutput struct { + _ struct{} `type:"structure"` + + // Information about your address ranges. + ByoipCidrs []*ByoipCidr `type:"list"` + + // The token for the next page of results. + NextToken *string `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 ListByoipCidrsOutput) 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 ListByoipCidrsOutput) GoString() string { + return s.String() +} + +// SetByoipCidrs sets the ByoipCidrs field's value. +func (s *ListByoipCidrsOutput) SetByoipCidrs(v []*ByoipCidr) *ListByoipCidrsOutput { + s.ByoipCidrs = v + return s } -// RequestID returns the service's response RequestID for request. -func (s *LimitExceededException) RequestID() string { - return s.RespMetadata.RequestID +// SetNextToken sets the NextToken field's value. +func (s *ListByoipCidrsOutput) SetNextToken(v string) *ListByoipCidrsOutput { + s.NextToken = &v + return s } -type ListAcceleratorsInput struct { +type ListCrossAccountAttachmentsInput struct { _ struct{} `type:"structure"` - // The number of Global Accelerator objects that you want to return with this - // call. The default value is 10. + // The number of cross-account attachment objects that you want to return with + // this call. The default value is 10. MaxResults *int64 `min:"1" type:"integer"` // The token for the next set of results. You receive this token from a previous @@ -10316,7 +11791,7 @@ type ListAcceleratorsInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListAcceleratorsInput) String() string { +func (s ListCrossAccountAttachmentsInput) String() string { return awsutil.Prettify(s) } @@ -10325,13 +11800,13 @@ func (s ListAcceleratorsInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListAcceleratorsInput) GoString() string { +func (s ListCrossAccountAttachmentsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListAcceleratorsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListAcceleratorsInput"} +func (s *ListCrossAccountAttachmentsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListCrossAccountAttachmentsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } @@ -10343,22 +11818,22 @@ func (s *ListAcceleratorsInput) Validate() error { } // SetMaxResults sets the MaxResults field's value. -func (s *ListAcceleratorsInput) SetMaxResults(v int64) *ListAcceleratorsInput { +func (s *ListCrossAccountAttachmentsInput) SetMaxResults(v int64) *ListCrossAccountAttachmentsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. -func (s *ListAcceleratorsInput) SetNextToken(v string) *ListAcceleratorsInput { +func (s *ListCrossAccountAttachmentsInput) SetNextToken(v string) *ListCrossAccountAttachmentsInput { s.NextToken = &v return s } -type ListAcceleratorsOutput struct { +type ListCrossAccountAttachmentsOutput struct { _ struct{} `type:"structure"` - // The list of accelerators for a customer account. - Accelerators []*Accelerator `type:"list"` + // Information about the cross-account attachments. + CrossAccountAttachments []*Attachment `type:"list"` // The token for the next set of results. You receive this token from a previous // call. @@ -10370,7 +11845,7 @@ type ListAcceleratorsOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListAcceleratorsOutput) String() string { +func (s ListCrossAccountAttachmentsOutput) String() string { return awsutil.Prettify(s) } @@ -10379,31 +11854,94 @@ func (s ListAcceleratorsOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListAcceleratorsOutput) GoString() string { +func (s ListCrossAccountAttachmentsOutput) GoString() string { return s.String() } -// SetAccelerators sets the Accelerators field's value. -func (s *ListAcceleratorsOutput) SetAccelerators(v []*Accelerator) *ListAcceleratorsOutput { - s.Accelerators = v +// SetCrossAccountAttachments sets the CrossAccountAttachments field's value. +func (s *ListCrossAccountAttachmentsOutput) SetCrossAccountAttachments(v []*Attachment) *ListCrossAccountAttachmentsOutput { + s.CrossAccountAttachments = v return s } // SetNextToken sets the NextToken field's value. -func (s *ListAcceleratorsOutput) SetNextToken(v string) *ListAcceleratorsOutput { +func (s *ListCrossAccountAttachmentsOutput) SetNextToken(v string) *ListCrossAccountAttachmentsOutput { s.NextToken = &v return s } -type ListByoipCidrsInput struct { +type ListCrossAccountResourceAccountsInput struct { _ struct{} `type:"structure"` +} - // The maximum number of results to return with a single call. To retrieve the - // remaining results, make another call with the returned nextToken value. +// 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 ListCrossAccountResourceAccountsInput) 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 ListCrossAccountResourceAccountsInput) GoString() string { + return s.String() +} + +type ListCrossAccountResourceAccountsOutput struct { + _ struct{} `type:"structure"` + + // The account IDs of principals (resource owners) in a cross-account attachment + // who can add endpoints (resources) listed in the same attachment. + ResourceOwnerAwsAccountIds []*string `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListCrossAccountResourceAccountsOutput) 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 ListCrossAccountResourceAccountsOutput) GoString() string { + return s.String() +} + +// SetResourceOwnerAwsAccountIds sets the ResourceOwnerAwsAccountIds field's value. +func (s *ListCrossAccountResourceAccountsOutput) SetResourceOwnerAwsAccountIds(v []*string) *ListCrossAccountResourceAccountsOutput { + s.ResourceOwnerAwsAccountIds = v + return s +} + +type ListCrossAccountResourcesInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of an accelerator in a cross-account attachment. + AcceleratorArn *string `type:"string"` + + // The number of cross-account endpoints objects that you want to return with + // this call. The default value is 10. MaxResults *int64 `min:"1" type:"integer"` - // The token for the next page of results. + // The token for the next set of results. You receive this token from a previous + // call. NextToken *string `type:"string"` + + // The account ID of a resource owner in a cross-account attachment. + // + // ResourceOwnerAwsAccountId is a required field + ResourceOwnerAwsAccountId *string `min:"12" type:"string" required:"true"` } // String returns the string representation. @@ -10411,7 +11949,7 @@ type ListByoipCidrsInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListByoipCidrsInput) String() string { +func (s ListCrossAccountResourcesInput) String() string { return awsutil.Prettify(s) } @@ -10420,16 +11958,22 @@ func (s ListByoipCidrsInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListByoipCidrsInput) GoString() string { +func (s ListCrossAccountResourcesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListByoipCidrsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListByoipCidrsInput"} +func (s *ListCrossAccountResourcesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListCrossAccountResourcesInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } + if s.ResourceOwnerAwsAccountId == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceOwnerAwsAccountId")) + } + if s.ResourceOwnerAwsAccountId != nil && len(*s.ResourceOwnerAwsAccountId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("ResourceOwnerAwsAccountId", 12)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10437,25 +11981,38 @@ func (s *ListByoipCidrsInput) Validate() error { return nil } +// SetAcceleratorArn sets the AcceleratorArn field's value. +func (s *ListCrossAccountResourcesInput) SetAcceleratorArn(v string) *ListCrossAccountResourcesInput { + s.AcceleratorArn = &v + return s +} + // SetMaxResults sets the MaxResults field's value. -func (s *ListByoipCidrsInput) SetMaxResults(v int64) *ListByoipCidrsInput { +func (s *ListCrossAccountResourcesInput) SetMaxResults(v int64) *ListCrossAccountResourcesInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. -func (s *ListByoipCidrsInput) SetNextToken(v string) *ListByoipCidrsInput { +func (s *ListCrossAccountResourcesInput) SetNextToken(v string) *ListCrossAccountResourcesInput { s.NextToken = &v return s } -type ListByoipCidrsOutput struct { +// SetResourceOwnerAwsAccountId sets the ResourceOwnerAwsAccountId field's value. +func (s *ListCrossAccountResourcesInput) SetResourceOwnerAwsAccountId(v string) *ListCrossAccountResourcesInput { + s.ResourceOwnerAwsAccountId = &v + return s +} + +type ListCrossAccountResourcesOutput struct { _ struct{} `type:"structure"` - // Information about your address ranges. - ByoipCidrs []*ByoipCidr `type:"list"` + // The endpoints attached to an accelerator in a cross-account attachment. + CrossAccountResources []*CrossAccountResource `type:"list"` - // The token for the next page of results. + // The token for the next set of results. You receive this token from a previous + // call. NextToken *string `type:"string"` } @@ -10464,7 +12021,7 @@ type ListByoipCidrsOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListByoipCidrsOutput) String() string { +func (s ListCrossAccountResourcesOutput) String() string { return awsutil.Prettify(s) } @@ -10473,18 +12030,18 @@ func (s ListByoipCidrsOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListByoipCidrsOutput) GoString() string { +func (s ListCrossAccountResourcesOutput) GoString() string { return s.String() } -// SetByoipCidrs sets the ByoipCidrs field's value. -func (s *ListByoipCidrsOutput) SetByoipCidrs(v []*ByoipCidr) *ListByoipCidrsOutput { - s.ByoipCidrs = v +// SetCrossAccountResources sets the CrossAccountResources field's value. +func (s *ListCrossAccountResourcesOutput) SetCrossAccountResources(v []*CrossAccountResource) *ListCrossAccountResourcesOutput { + s.CrossAccountResources = v return s } // SetNextToken sets the NextToken field's value. -func (s *ListByoipCidrsOutput) SetNextToken(v string) *ListByoipCidrsOutput { +func (s *ListCrossAccountResourcesOutput) SetNextToken(v string) *ListCrossAccountResourcesOutput { s.NextToken = &v return s } @@ -11981,6 +13538,63 @@ func (s RemoveEndpointsOutput) GoString() string { return s.String() } +// An Amazon Web Services resource that is supported by Global Accelerator and +// can be added as an endpoint for an accelerator. +type Resource struct { + _ struct{} `type:"structure"` + + // The endpoint ID for the endpoint (Amazon Web Services resource). + // + // EndpointId is a required field + EndpointId *string `type:"string" required:"true"` + + // The Amazon Web Services Region where a resource is located. + Region *string `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 Resource) 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 Resource) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Resource) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Resource"} + if s.EndpointId == nil { + invalidParams.Add(request.NewErrParamRequired("EndpointId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEndpointId sets the EndpointId field's value. +func (s *Resource) SetEndpointId(v string) *Resource { + s.EndpointId = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *Resource) SetRegion(v string) *Resource { + s.Region = &v + return s +} + // An IP address/port combination. type SocketAddress struct { _ struct{} `type:"structure"` @@ -12560,6 +14174,168 @@ func (s *UpdateAcceleratorOutput) SetAccelerator(v *Accelerator) *UpdateAccelera return s } +type UpdateCrossAccountAttachmentInput struct { + _ struct{} `type:"structure"` + + // The principals to add to the cross-account attachment. A principal is an + // account or the Amazon Resource Name (ARN) of an accelerator that the attachment + // gives permission to add the resources from another account, listed in the + // attachment. + // + // To add more than one principal, separate the account numbers or accelerator + // ARNs, or both, with commas. + AddPrincipals []*string `type:"list"` + + // The resources to add to the cross-account attachment. A resource listed in + // a cross-account attachment can be added to an accelerator by the principals + // that are listed in the attachment. + // + // To add more than one resource, separate the resource ARNs with commas. + AddResources []*Resource `type:"list"` + + // The Amazon Resource Name (ARN) of the cross-account attachment to update. + // + // AttachmentArn is a required field + AttachmentArn *string `type:"string" required:"true"` + + // The name of the cross-account attachment. + Name *string `type:"string"` + + // The principals to remove from the cross-account attachment. A principal is + // an account or the Amazon Resource Name (ARN) of an accelerator that is given + // permission to add the resources from another account, listed in the cross-account + // attachment. + // + // To remove more than one principal, separate the account numbers or accelerator + // ARNs, or both, with commas. + RemovePrincipals []*string `type:"list"` + + // The resources to remove from the cross-account attachment. A resource listed + // in a cross-account attachment can be added to an accelerator fy principals + // that are listed in the cross-account attachment. + // + // To remove more than one resource, separate the resource ARNs with commas. + RemoveResources []*Resource `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateCrossAccountAttachmentInput) 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 UpdateCrossAccountAttachmentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateCrossAccountAttachmentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateCrossAccountAttachmentInput"} + if s.AttachmentArn == nil { + invalidParams.Add(request.NewErrParamRequired("AttachmentArn")) + } + if s.AddResources != nil { + for i, v := range s.AddResources { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AddResources", i), err.(request.ErrInvalidParams)) + } + } + } + if s.RemoveResources != nil { + for i, v := range s.RemoveResources { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RemoveResources", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAddPrincipals sets the AddPrincipals field's value. +func (s *UpdateCrossAccountAttachmentInput) SetAddPrincipals(v []*string) *UpdateCrossAccountAttachmentInput { + s.AddPrincipals = v + return s +} + +// SetAddResources sets the AddResources field's value. +func (s *UpdateCrossAccountAttachmentInput) SetAddResources(v []*Resource) *UpdateCrossAccountAttachmentInput { + s.AddResources = v + return s +} + +// SetAttachmentArn sets the AttachmentArn field's value. +func (s *UpdateCrossAccountAttachmentInput) SetAttachmentArn(v string) *UpdateCrossAccountAttachmentInput { + s.AttachmentArn = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateCrossAccountAttachmentInput) SetName(v string) *UpdateCrossAccountAttachmentInput { + s.Name = &v + return s +} + +// SetRemovePrincipals sets the RemovePrincipals field's value. +func (s *UpdateCrossAccountAttachmentInput) SetRemovePrincipals(v []*string) *UpdateCrossAccountAttachmentInput { + s.RemovePrincipals = v + return s +} + +// SetRemoveResources sets the RemoveResources field's value. +func (s *UpdateCrossAccountAttachmentInput) SetRemoveResources(v []*Resource) *UpdateCrossAccountAttachmentInput { + s.RemoveResources = v + return s +} + +type UpdateCrossAccountAttachmentOutput struct { + _ struct{} `type:"structure"` + + // Information about the updated cross-account attachment. + CrossAccountAttachment *Attachment `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 UpdateCrossAccountAttachmentOutput) 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 UpdateCrossAccountAttachmentOutput) GoString() string { + return s.String() +} + +// SetCrossAccountAttachment sets the CrossAccountAttachment field's value. +func (s *UpdateCrossAccountAttachmentOutput) SetCrossAccountAttachment(v *Attachment) *UpdateCrossAccountAttachmentOutput { + s.CrossAccountAttachment = v + return s +} + type UpdateCustomRoutingAcceleratorAttributesInput struct { _ struct{} `type:"structure"` diff --git a/service/globalaccelerator/doc.go b/service/globalaccelerator/doc.go index f710b278f7f..71d90cd0639 100644 --- a/service/globalaccelerator/doc.go +++ b/service/globalaccelerator/doc.go @@ -33,7 +33,7 @@ // total of four addresses: two static IPv4 addresses and two static IPv6 addresses. // With a standard accelerator for IPv4, instead of using the addresses that // Global Accelerator provides, you can configure these entry points to be IPv4 -// addresses from your own IP address ranges that you bring toGlobal Accelerator +// addresses from your own IP address ranges that you bring to Global Accelerator // (BYOIP). // // For a standard accelerator, they distribute incoming application traffic diff --git a/service/globalaccelerator/errors.go b/service/globalaccelerator/errors.go index 0406c64c5d2..710a8d5e88c 100644 --- a/service/globalaccelerator/errors.go +++ b/service/globalaccelerator/errors.go @@ -42,6 +42,12 @@ const ( // it. ErrCodeAssociatedListenerFoundException = "AssociatedListenerFoundException" + // ErrCodeAttachmentNotFoundException for service response error code + // "AttachmentNotFoundException". + // + // No cross-account attachment was found. + ErrCodeAttachmentNotFoundException = "AttachmentNotFoundException" + // ErrCodeByoipCidrNotFoundException for service response error code // "ByoipCidrNotFoundException". // @@ -135,6 +141,7 @@ var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "AccessDeniedException": newErrorAccessDeniedException, "AssociatedEndpointGroupFoundException": newErrorAssociatedEndpointGroupFoundException, "AssociatedListenerFoundException": newErrorAssociatedListenerFoundException, + "AttachmentNotFoundException": newErrorAttachmentNotFoundException, "ByoipCidrNotFoundException": newErrorByoipCidrNotFoundException, "ConflictException": newErrorConflictException, "EndpointAlreadyExistsException": newErrorEndpointAlreadyExistsException, diff --git a/service/globalaccelerator/globalacceleratoriface/interface.go b/service/globalaccelerator/globalacceleratoriface/interface.go index 727a6d577be..4d70b555884 100644 --- a/service/globalaccelerator/globalacceleratoriface/interface.go +++ b/service/globalaccelerator/globalacceleratoriface/interface.go @@ -80,6 +80,10 @@ type GlobalAcceleratorAPI interface { CreateAcceleratorWithContext(aws.Context, *globalaccelerator.CreateAcceleratorInput, ...request.Option) (*globalaccelerator.CreateAcceleratorOutput, error) CreateAcceleratorRequest(*globalaccelerator.CreateAcceleratorInput) (*request.Request, *globalaccelerator.CreateAcceleratorOutput) + CreateCrossAccountAttachment(*globalaccelerator.CreateCrossAccountAttachmentInput) (*globalaccelerator.CreateCrossAccountAttachmentOutput, error) + CreateCrossAccountAttachmentWithContext(aws.Context, *globalaccelerator.CreateCrossAccountAttachmentInput, ...request.Option) (*globalaccelerator.CreateCrossAccountAttachmentOutput, error) + CreateCrossAccountAttachmentRequest(*globalaccelerator.CreateCrossAccountAttachmentInput) (*request.Request, *globalaccelerator.CreateCrossAccountAttachmentOutput) + CreateCustomRoutingAccelerator(*globalaccelerator.CreateCustomRoutingAcceleratorInput) (*globalaccelerator.CreateCustomRoutingAcceleratorOutput, error) CreateCustomRoutingAcceleratorWithContext(aws.Context, *globalaccelerator.CreateCustomRoutingAcceleratorInput, ...request.Option) (*globalaccelerator.CreateCustomRoutingAcceleratorOutput, error) CreateCustomRoutingAcceleratorRequest(*globalaccelerator.CreateCustomRoutingAcceleratorInput) (*request.Request, *globalaccelerator.CreateCustomRoutingAcceleratorOutput) @@ -104,6 +108,10 @@ type GlobalAcceleratorAPI interface { DeleteAcceleratorWithContext(aws.Context, *globalaccelerator.DeleteAcceleratorInput, ...request.Option) (*globalaccelerator.DeleteAcceleratorOutput, error) DeleteAcceleratorRequest(*globalaccelerator.DeleteAcceleratorInput) (*request.Request, *globalaccelerator.DeleteAcceleratorOutput) + DeleteCrossAccountAttachment(*globalaccelerator.DeleteCrossAccountAttachmentInput) (*globalaccelerator.DeleteCrossAccountAttachmentOutput, error) + DeleteCrossAccountAttachmentWithContext(aws.Context, *globalaccelerator.DeleteCrossAccountAttachmentInput, ...request.Option) (*globalaccelerator.DeleteCrossAccountAttachmentOutput, error) + DeleteCrossAccountAttachmentRequest(*globalaccelerator.DeleteCrossAccountAttachmentInput) (*request.Request, *globalaccelerator.DeleteCrossAccountAttachmentOutput) + DeleteCustomRoutingAccelerator(*globalaccelerator.DeleteCustomRoutingAcceleratorInput) (*globalaccelerator.DeleteCustomRoutingAcceleratorOutput, error) DeleteCustomRoutingAcceleratorWithContext(aws.Context, *globalaccelerator.DeleteCustomRoutingAcceleratorInput, ...request.Option) (*globalaccelerator.DeleteCustomRoutingAcceleratorOutput, error) DeleteCustomRoutingAcceleratorRequest(*globalaccelerator.DeleteCustomRoutingAcceleratorInput) (*request.Request, *globalaccelerator.DeleteCustomRoutingAcceleratorOutput) @@ -140,6 +148,10 @@ type GlobalAcceleratorAPI interface { DescribeAcceleratorAttributesWithContext(aws.Context, *globalaccelerator.DescribeAcceleratorAttributesInput, ...request.Option) (*globalaccelerator.DescribeAcceleratorAttributesOutput, error) DescribeAcceleratorAttributesRequest(*globalaccelerator.DescribeAcceleratorAttributesInput) (*request.Request, *globalaccelerator.DescribeAcceleratorAttributesOutput) + DescribeCrossAccountAttachment(*globalaccelerator.DescribeCrossAccountAttachmentInput) (*globalaccelerator.DescribeCrossAccountAttachmentOutput, error) + DescribeCrossAccountAttachmentWithContext(aws.Context, *globalaccelerator.DescribeCrossAccountAttachmentInput, ...request.Option) (*globalaccelerator.DescribeCrossAccountAttachmentOutput, error) + DescribeCrossAccountAttachmentRequest(*globalaccelerator.DescribeCrossAccountAttachmentInput) (*request.Request, *globalaccelerator.DescribeCrossAccountAttachmentOutput) + DescribeCustomRoutingAccelerator(*globalaccelerator.DescribeCustomRoutingAcceleratorInput) (*globalaccelerator.DescribeCustomRoutingAcceleratorOutput, error) DescribeCustomRoutingAcceleratorWithContext(aws.Context, *globalaccelerator.DescribeCustomRoutingAcceleratorInput, ...request.Option) (*globalaccelerator.DescribeCustomRoutingAcceleratorOutput, error) DescribeCustomRoutingAcceleratorRequest(*globalaccelerator.DescribeCustomRoutingAcceleratorInput) (*request.Request, *globalaccelerator.DescribeCustomRoutingAcceleratorOutput) @@ -178,6 +190,24 @@ type GlobalAcceleratorAPI interface { ListByoipCidrsPages(*globalaccelerator.ListByoipCidrsInput, func(*globalaccelerator.ListByoipCidrsOutput, bool) bool) error ListByoipCidrsPagesWithContext(aws.Context, *globalaccelerator.ListByoipCidrsInput, func(*globalaccelerator.ListByoipCidrsOutput, bool) bool, ...request.Option) error + ListCrossAccountAttachments(*globalaccelerator.ListCrossAccountAttachmentsInput) (*globalaccelerator.ListCrossAccountAttachmentsOutput, error) + ListCrossAccountAttachmentsWithContext(aws.Context, *globalaccelerator.ListCrossAccountAttachmentsInput, ...request.Option) (*globalaccelerator.ListCrossAccountAttachmentsOutput, error) + ListCrossAccountAttachmentsRequest(*globalaccelerator.ListCrossAccountAttachmentsInput) (*request.Request, *globalaccelerator.ListCrossAccountAttachmentsOutput) + + ListCrossAccountAttachmentsPages(*globalaccelerator.ListCrossAccountAttachmentsInput, func(*globalaccelerator.ListCrossAccountAttachmentsOutput, bool) bool) error + ListCrossAccountAttachmentsPagesWithContext(aws.Context, *globalaccelerator.ListCrossAccountAttachmentsInput, func(*globalaccelerator.ListCrossAccountAttachmentsOutput, bool) bool, ...request.Option) error + + ListCrossAccountResourceAccounts(*globalaccelerator.ListCrossAccountResourceAccountsInput) (*globalaccelerator.ListCrossAccountResourceAccountsOutput, error) + ListCrossAccountResourceAccountsWithContext(aws.Context, *globalaccelerator.ListCrossAccountResourceAccountsInput, ...request.Option) (*globalaccelerator.ListCrossAccountResourceAccountsOutput, error) + ListCrossAccountResourceAccountsRequest(*globalaccelerator.ListCrossAccountResourceAccountsInput) (*request.Request, *globalaccelerator.ListCrossAccountResourceAccountsOutput) + + ListCrossAccountResources(*globalaccelerator.ListCrossAccountResourcesInput) (*globalaccelerator.ListCrossAccountResourcesOutput, error) + ListCrossAccountResourcesWithContext(aws.Context, *globalaccelerator.ListCrossAccountResourcesInput, ...request.Option) (*globalaccelerator.ListCrossAccountResourcesOutput, error) + ListCrossAccountResourcesRequest(*globalaccelerator.ListCrossAccountResourcesInput) (*request.Request, *globalaccelerator.ListCrossAccountResourcesOutput) + + ListCrossAccountResourcesPages(*globalaccelerator.ListCrossAccountResourcesInput, func(*globalaccelerator.ListCrossAccountResourcesOutput, bool) bool) error + ListCrossAccountResourcesPagesWithContext(aws.Context, *globalaccelerator.ListCrossAccountResourcesInput, func(*globalaccelerator.ListCrossAccountResourcesOutput, bool) bool, ...request.Option) error + ListCustomRoutingAccelerators(*globalaccelerator.ListCustomRoutingAcceleratorsInput) (*globalaccelerator.ListCustomRoutingAcceleratorsOutput, error) ListCustomRoutingAcceleratorsWithContext(aws.Context, *globalaccelerator.ListCustomRoutingAcceleratorsInput, ...request.Option) (*globalaccelerator.ListCustomRoutingAcceleratorsOutput, error) ListCustomRoutingAcceleratorsRequest(*globalaccelerator.ListCustomRoutingAcceleratorsInput) (*request.Request, *globalaccelerator.ListCustomRoutingAcceleratorsOutput) @@ -259,6 +289,10 @@ type GlobalAcceleratorAPI interface { UpdateAcceleratorAttributesWithContext(aws.Context, *globalaccelerator.UpdateAcceleratorAttributesInput, ...request.Option) (*globalaccelerator.UpdateAcceleratorAttributesOutput, error) UpdateAcceleratorAttributesRequest(*globalaccelerator.UpdateAcceleratorAttributesInput) (*request.Request, *globalaccelerator.UpdateAcceleratorAttributesOutput) + UpdateCrossAccountAttachment(*globalaccelerator.UpdateCrossAccountAttachmentInput) (*globalaccelerator.UpdateCrossAccountAttachmentOutput, error) + UpdateCrossAccountAttachmentWithContext(aws.Context, *globalaccelerator.UpdateCrossAccountAttachmentInput, ...request.Option) (*globalaccelerator.UpdateCrossAccountAttachmentOutput, error) + UpdateCrossAccountAttachmentRequest(*globalaccelerator.UpdateCrossAccountAttachmentInput) (*request.Request, *globalaccelerator.UpdateCrossAccountAttachmentOutput) + UpdateCustomRoutingAccelerator(*globalaccelerator.UpdateCustomRoutingAcceleratorInput) (*globalaccelerator.UpdateCustomRoutingAcceleratorOutput, error) UpdateCustomRoutingAcceleratorWithContext(aws.Context, *globalaccelerator.UpdateCustomRoutingAcceleratorInput, ...request.Option) (*globalaccelerator.UpdateCustomRoutingAcceleratorOutput, error) UpdateCustomRoutingAcceleratorRequest(*globalaccelerator.UpdateCustomRoutingAcceleratorInput) (*request.Request, *globalaccelerator.UpdateCustomRoutingAcceleratorOutput) diff --git a/service/m2/api.go b/service/m2/api.go index a82e71e87ae..fe3bc518780 100644 --- a/service/m2/api.go +++ b/service/m2/api.go @@ -1110,12 +1110,22 @@ func (c *M2) GetDataSetDetailsRequest(input *GetDataSetDetailsInput) (req *reque // - ResourceNotFoundException // The specified resource was not found. // +// - ExecutionTimeoutException +// Failed to connect to server, or didn’t receive response within expected +// time period. +// +// - ServiceUnavailableException +// Server cannot process the request at the moment. +// // - ThrottlingException // The number of requests made exceeds the limit. // // - AccessDeniedException // The account or role doesn't have the right permissions to make the request. // +// - ConflictException +// The parameters provided in the request conflict with existing resources. +// // - ValidationException // One or more parameters provided in the request is not valid. // @@ -2312,12 +2322,22 @@ func (c *M2) ListDataSetsRequest(input *ListDataSetsInput) (req *request.Request // - ResourceNotFoundException // The specified resource was not found. // +// - ExecutionTimeoutException +// Failed to connect to server, or didn’t receive response within expected +// time period. +// +// - ServiceUnavailableException +// Server cannot process the request at the moment. +// // - ThrottlingException // The number of requests made exceeds the limit. // // - AccessDeniedException // The account or role doesn't have the right permissions to make the request. // +// - ConflictException +// The parameters provided in the request conflict with existing resources. +// // - ValidationException // One or more parameters provided in the request is not valid. // @@ -4135,6 +4155,10 @@ type BatchJobIdentifier struct { // Specifies a file associated with a specific batch job. FileBatchJobIdentifier *FileBatchJobIdentifier `locationName:"fileBatchJobIdentifier" type:"structure"` + // Specifies an Amazon S3 location that identifies the batch jobs that you want + // to run. Use this identifier to run ad hoc batch jobs. + S3BatchJobIdentifier *S3BatchJobIdentifier `locationName:"s3BatchJobIdentifier" type:"structure"` + // A batch job identifier in which the batch job to run is identified by the // script name. ScriptBatchJobIdentifier *ScriptBatchJobIdentifier `locationName:"scriptBatchJobIdentifier" type:"structure"` @@ -4166,6 +4190,11 @@ func (s *BatchJobIdentifier) Validate() error { invalidParams.AddNested("FileBatchJobIdentifier", err.(request.ErrInvalidParams)) } } + if s.S3BatchJobIdentifier != nil { + if err := s.S3BatchJobIdentifier.Validate(); err != nil { + invalidParams.AddNested("S3BatchJobIdentifier", err.(request.ErrInvalidParams)) + } + } if s.ScriptBatchJobIdentifier != nil { if err := s.ScriptBatchJobIdentifier.Validate(); err != nil { invalidParams.AddNested("ScriptBatchJobIdentifier", err.(request.ErrInvalidParams)) @@ -4184,6 +4213,12 @@ func (s *BatchJobIdentifier) SetFileBatchJobIdentifier(v *FileBatchJobIdentifier return s } +// SetS3BatchJobIdentifier sets the S3BatchJobIdentifier field's value. +func (s *BatchJobIdentifier) SetS3BatchJobIdentifier(v *S3BatchJobIdentifier) *BatchJobIdentifier { + s.S3BatchJobIdentifier = v + return s +} + // SetScriptBatchJobIdentifier sets the ScriptBatchJobIdentifier field's value. func (s *BatchJobIdentifier) SetScriptBatchJobIdentifier(v *ScriptBatchJobIdentifier) *BatchJobIdentifier { s.ScriptBatchJobIdentifier = v @@ -4817,8 +4852,12 @@ type CreateEnvironmentInput struct { // Name is a required field Name *string `locationName:"name" type:"string" required:"true"` - // Configures the maintenance window you want for the runtime environment. If - // you do not provide a value, a random system-generated value will be assigned. + // Configures the maintenance window that you want for the runtime environment. + // The maintenance window must have the format ddd:hh24:mi-ddd:hh24:mi and must + // be less than 24 hours. The following two examples are valid maintenance windows: + // sun:23:45-mon:00:15 or sat:01:00-sat:03:00. + // + // If you do not provide a value, a random system-generated value will be assigned. PreferredMaintenanceWindow *string `locationName:"preferredMaintenanceWindow" type:"string"` // Specifies whether the runtime environment is publicly accessible. @@ -5330,6 +5369,9 @@ type DataSetImportTask struct { // Status is a required field Status *string `locationName:"status" type:"string" required:"true" enum:"DataSetTaskLifecycle"` + // If dataset import failed, the failure reason will show here. + StatusReason *string `locationName:"statusReason" type:"string"` + // A summary of the data set import task. // // Summary is a required field @@ -5365,6 +5407,12 @@ func (s *DataSetImportTask) SetStatus(v string) *DataSetImportTask { return s } +// SetStatusReason sets the StatusReason field's value. +func (s *DataSetImportTask) SetStatusReason(v string) *DataSetImportTask { + s.StatusReason = &v + return s +} + // SetSummary sets the Summary field's value. func (s *DataSetImportTask) SetSummary(v *DataSetImportSummary) *DataSetImportTask { s.Summary = v @@ -6259,6 +6307,71 @@ func (s *EnvironmentSummary) SetStatus(v string) *EnvironmentSummary { return s } +// Failed to connect to server, or didn’t receive response within expected +// time period. +type ExecutionTimeoutException 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 ExecutionTimeoutException) 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 ExecutionTimeoutException) GoString() string { + return s.String() +} + +func newErrorExecutionTimeoutException(v protocol.ResponseMetadata) error { + return &ExecutionTimeoutException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ExecutionTimeoutException) Code() string { + return "ExecutionTimeoutException" +} + +// Message returns the exception's message. +func (s *ExecutionTimeoutException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ExecutionTimeoutException) OrigErr() error { + return nil +} + +func (s *ExecutionTimeoutException) 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 *ExecutionTimeoutException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ExecutionTimeoutException) RequestID() string { + return s.RespMetadata.RequestID +} + // Defines an external storage location. type ExternalLocation struct { _ struct{} `type:"structure"` @@ -7268,6 +7381,9 @@ type GetDataSetDetailsOutput struct { // The type of data set. The only supported value is VSAM. DataSetOrg *DatasetDetailOrgAttributes `locationName:"dataSetOrg" type:"structure"` + // File size of the dataset. + FileSize *int64 `locationName:"fileSize" type:"long"` + // The last time the data set was referenced. LastReferencedTime *time.Time `locationName:"lastReferencedTime" type:"timestamp"` @@ -7323,6 +7439,12 @@ func (s *GetDataSetDetailsOutput) SetDataSetOrg(v *DatasetDetailOrgAttributes) * return s } +// SetFileSize sets the FileSize field's value. +func (s *GetDataSetDetailsOutput) SetFileSize(v int64) *GetDataSetDetailsOutput { + s.FileSize = &v + return s +} + // SetLastReferencedTime sets the LastReferencedTime field's value. func (s *GetDataSetDetailsOutput) SetLastReferencedTime(v time.Time) *GetDataSetDetailsOutput { s.LastReferencedTime = &v @@ -7682,7 +7804,7 @@ type GetEnvironmentOutput struct { _ struct{} `type:"structure"` // The number of instances included in the runtime environment. A standalone - // runtime environment has a maxiumum of one instance. Currently, a high availability + // runtime environment has a maximum of one instance. Currently, a high availability // runtime environment has a maximum of two instances. ActualCapacity *int64 `locationName:"actualCapacity" type:"integer"` @@ -7738,8 +7860,8 @@ type GetEnvironmentOutput struct { // Indicates the pending maintenance scheduled on this environment. PendingMaintenance *PendingMaintenance `locationName:"pendingMaintenance" type:"structure"` - // Configures the maintenance window you want for the runtime environment. If - // you do not provide a value, a random system-generated value will be assigned. + // The maintenance window for the runtime environment. If you don't provide + // a value for the maintenance window, the service assigns a random value. PreferredMaintenanceWindow *string `locationName:"preferredMaintenanceWindow" type:"string"` // Whether applications running in this runtime environment are publicly accessible. @@ -8095,6 +8217,47 @@ func (s *InternalServerException) RequestID() string { return s.RespMetadata.RequestID } +// Identifies a specific batch job. +type JobIdentifier struct { + _ struct{} `type:"structure"` + + // The name of the file that contains the batch job definition. + FileName *string `locationName:"fileName" type:"string"` + + // The name of the script that contains the batch job definition. + ScriptName *string `locationName:"scriptName" 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 JobIdentifier) 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 JobIdentifier) GoString() string { + return s.String() +} + +// SetFileName sets the FileName field's value. +func (s *JobIdentifier) SetFileName(v string) *JobIdentifier { + s.FileName = &v + return s +} + +// SetScriptName sets the ScriptName field's value. +func (s *JobIdentifier) SetScriptName(v string) *JobIdentifier { + s.ScriptName = &v + return s +} + type ListApplicationVersionsInput struct { _ struct{} `type:"structure" nopayload:"true"` @@ -8743,6 +8906,10 @@ type ListDataSetsInput struct { // The maximum number of objects to return. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + // Filter dataset name matching the specified pattern. Can use * and % as wild + // cards. + NameFilter *string `location:"querystring" locationName:"nameFilter" type:"string"` + // A pagination token returned from a previous call to this operation. This // specifies the next item to return. To return to the beginning of the list, // exclude this parameter. @@ -8802,6 +8969,12 @@ func (s *ListDataSetsInput) SetMaxResults(v int64) *ListDataSetsInput { return s } +// SetNameFilter sets the NameFilter field's value. +func (s *ListDataSetsInput) SetNameFilter(v string) *ListDataSetsInput { + s.NameFilter = &v + return s +} + // SetNextToken sets the NextToken field's value. func (s *ListDataSetsInput) SetNextToken(v string) *ListDataSetsInput { s.NextToken = &v @@ -9835,6 +10008,80 @@ func (s *ResourceNotFoundException) RequestID() string { return s.RespMetadata.RequestID } +// A batch job identifier in which the batch jobs to run are identified by an +// Amazon S3 location. +type S3BatchJobIdentifier struct { + _ struct{} `type:"structure"` + + // The Amazon S3 bucket that contains the batch job definitions. + // + // Bucket is a required field + Bucket *string `locationName:"bucket" type:"string" required:"true"` + + // Identifies the batch job definition. This identifier can also point to any + // batch job definition that already exists in the application or to one of + // the batch job definitions within the directory that is specified in keyPrefix. + // + // Identifier is a required field + Identifier *JobIdentifier `locationName:"identifier" type:"structure" required:"true"` + + // The key prefix that specifies the path to the folder in the S3 bucket that + // has the batch job definitions. + KeyPrefix *string `locationName:"keyPrefix" 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 S3BatchJobIdentifier) 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 S3BatchJobIdentifier) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *S3BatchJobIdentifier) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "S3BatchJobIdentifier"} + if s.Bucket == nil { + invalidParams.Add(request.NewErrParamRequired("Bucket")) + } + if s.Identifier == nil { + invalidParams.Add(request.NewErrParamRequired("Identifier")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBucket sets the Bucket field's value. +func (s *S3BatchJobIdentifier) SetBucket(v string) *S3BatchJobIdentifier { + s.Bucket = &v + return s +} + +// SetIdentifier sets the Identifier field's value. +func (s *S3BatchJobIdentifier) SetIdentifier(v *JobIdentifier) *S3BatchJobIdentifier { + s.Identifier = v + return s +} + +// SetKeyPrefix sets the KeyPrefix field's value. +func (s *S3BatchJobIdentifier) SetKeyPrefix(v string) *S3BatchJobIdentifier { + s.KeyPrefix = &v + return s +} + // A batch job definition contained in a script. type ScriptBatchJobDefinition struct { _ struct{} `type:"structure"` @@ -9995,6 +10242,70 @@ func (s *ServiceQuotaExceededException) RequestID() string { return s.RespMetadata.RequestID } +// Server cannot process the request at the moment. +type ServiceUnavailableException 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 ServiceUnavailableException) 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 ServiceUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s *ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ServiceUnavailableException) OrigErr() error { + return nil +} + +func (s *ServiceUnavailableException) 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 *ServiceUnavailableException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ServiceUnavailableException) RequestID() string { + return s.RespMetadata.RequestID +} + type StartApplicationInput struct { _ struct{} `type:"structure" nopayload:"true"` @@ -10413,7 +10724,7 @@ type ThrottlingException struct { Message_ *string `locationName:"message" type:"string"` - // The identifier of the throttled reuqest. + // The identifier of the throttled request. QuotaCode *string `locationName:"quotaCode" type:"string"` // The number of seconds to wait before retrying the request. @@ -10709,11 +11020,26 @@ type UpdateEnvironmentInput struct { // EnvironmentId is a required field EnvironmentId *string `location:"uri" locationName:"environmentId" type:"string" required:"true"` + // Forces the updates on the environment. This option is needed if the applications + // in the environment are not stopped or if there are ongoing application-related + // activities in the environment. + // + // If you use this option, be aware that it could lead to data corruption in + // the applications, and that you might need to perform repair and recovery + // procedures for the applications. + // + // This option is not needed if the attribute being updated is preferredMaintenanceWindow. + ForceUpdate *bool `locationName:"forceUpdate" type:"boolean"` + // The instance type for the runtime environment to update. InstanceType *string `locationName:"instanceType" type:"string"` - // Configures the maintenance window you want for the runtime environment. If - // you do not provide a value, a random system-generated value will be assigned. + // Configures the maintenance window that you want for the runtime environment. + // The maintenance window must have the format ddd:hh24:mi-ddd:hh24:mi and must + // be less than 24 hours. The following two examples are valid maintenance windows: + // sun:23:45-mon:00:15 or sat:01:00-sat:03:00. + // + // If you do not provide a value, a random system-generated value will be assigned. PreferredMaintenanceWindow *string `locationName:"preferredMaintenanceWindow" type:"string"` } @@ -10775,6 +11101,12 @@ func (s *UpdateEnvironmentInput) SetEnvironmentId(v string) *UpdateEnvironmentIn return s } +// SetForceUpdate sets the ForceUpdate field's value. +func (s *UpdateEnvironmentInput) SetForceUpdate(v bool) *UpdateEnvironmentInput { + s.ForceUpdate = &v + return s +} + // SetInstanceType sets the InstanceType field's value. func (s *UpdateEnvironmentInput) SetInstanceType(v string) *UpdateEnvironmentInput { s.InstanceType = &v @@ -11280,6 +11612,9 @@ const ( // DataSetTaskLifecycleCompleted is a DataSetTaskLifecycle enum value DataSetTaskLifecycleCompleted = "Completed" + + // DataSetTaskLifecycleFailed is a DataSetTaskLifecycle enum value + DataSetTaskLifecycleFailed = "Failed" ) // DataSetTaskLifecycle_Values returns all elements of the DataSetTaskLifecycle enum @@ -11288,6 +11623,7 @@ func DataSetTaskLifecycle_Values() []string { DataSetTaskLifecycleCreating, DataSetTaskLifecycleRunning, DataSetTaskLifecycleCompleted, + DataSetTaskLifecycleFailed, } } @@ -11300,6 +11636,9 @@ const ( // DeploymentLifecycleFailed is a DeploymentLifecycle enum value DeploymentLifecycleFailed = "Failed" + + // DeploymentLifecycleUpdatingDeployment is a DeploymentLifecycle enum value + DeploymentLifecycleUpdatingDeployment = "Updating Deployment" ) // DeploymentLifecycle_Values returns all elements of the DeploymentLifecycle enum @@ -11308,6 +11647,7 @@ func DeploymentLifecycle_Values() []string { DeploymentLifecycleDeploying, DeploymentLifecycleSucceeded, DeploymentLifecycleFailed, + DeploymentLifecycleUpdatingDeployment, } } diff --git a/service/m2/errors.go b/service/m2/errors.go index e1e45b999a3..c5b6726372e 100644 --- a/service/m2/errors.go +++ b/service/m2/errors.go @@ -20,6 +20,13 @@ const ( // The parameters provided in the request conflict with existing resources. ErrCodeConflictException = "ConflictException" + // ErrCodeExecutionTimeoutException for service response error code + // "ExecutionTimeoutException". + // + // Failed to connect to server, or didn’t receive response within expected + // time period. + ErrCodeExecutionTimeoutException = "ExecutionTimeoutException" + // ErrCodeInternalServerException for service response error code // "InternalServerException". // @@ -39,6 +46,12 @@ const ( // the limit. ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" + // ErrCodeServiceUnavailableException for service response error code + // "ServiceUnavailableException". + // + // Server cannot process the request at the moment. + ErrCodeServiceUnavailableException = "ServiceUnavailableException" + // ErrCodeThrottlingException for service response error code // "ThrottlingException". // @@ -55,9 +68,11 @@ const ( var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "AccessDeniedException": newErrorAccessDeniedException, "ConflictException": newErrorConflictException, + "ExecutionTimeoutException": newErrorExecutionTimeoutException, "InternalServerException": newErrorInternalServerException, "ResourceNotFoundException": newErrorResourceNotFoundException, "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, + "ServiceUnavailableException": newErrorServiceUnavailableException, "ThrottlingException": newErrorThrottlingException, "ValidationException": newErrorValidationException, } diff --git a/service/neptunedata/api.go b/service/neptunedata/api.go index 2e53d898b10..3c4c365e1f9 100644 --- a/service/neptunedata/api.go +++ b/service/neptunedata/api.go @@ -1863,7 +1863,7 @@ func (c *Neptunedata) ExecuteOpenCypherExplainQueryRequest(input *ExecuteOpenCyp // that allows the neptune-db:ReadDataViaQuery (https://docs.aws.amazon.com/neptune/latest/userguide/iam-dp-actions.html#readdataviaquery) // IAM action in that cluster. // -// Note that the neptune-db:QueryLanguage:Opencypher (https://docs.aws.amazon.com/neptune/latest/userguide/iam-data-condition-keys.html#iam-neptune-condition-keys) +// Note that the neptune-db:QueryLanguage:OpenCypher (https://docs.aws.amazon.com/neptune/latest/userguide/iam-data-condition-keys.html#iam-neptune-condition-keys) // IAM condition key can be used in the policy document to restrict the use // of openCypher queries (see Condition keys available in Neptune IAM data-access // policy statements (https://docs.aws.amazon.com/neptune/latest/userguide/iam-data-condition-keys.html)). @@ -2716,7 +2716,7 @@ func (c *Neptunedata) GetOpenCypherQueryStatusRequest(input *GetOpenCypherQueryS // that allows the neptune-db:GetQueryStatus (https://docs.aws.amazon.com/neptune/latest/userguide/iam-dp-actions.html#getquerystatus) // IAM action in that cluster. // -// Note that the neptune-db:QueryLanguage:Opencypher (https://docs.aws.amazon.com/neptune/latest/userguide/iam-data-condition-keys.html#iam-neptune-condition-keys) +// Note that the neptune-db:QueryLanguage:OpenCypher (https://docs.aws.amazon.com/neptune/latest/userguide/iam-data-condition-keys.html#iam-neptune-condition-keys) // IAM condition key can be used in the policy document to restrict the use // of openCypher queries (see Condition keys available in Neptune IAM data-access // policy statements (https://docs.aws.amazon.com/neptune/latest/userguide/iam-data-condition-keys.html)). @@ -4178,7 +4178,7 @@ func (c *Neptunedata) ListOpenCypherQueriesRequest(input *ListOpenCypherQueriesI // that allows the neptune-db:GetQueryStatus (https://docs.aws.amazon.com/neptune/latest/userguide/iam-dp-actions.html#getquerystatus) // IAM action in that cluster. // -// Note that the neptune-db:QueryLanguage:Opencypher (https://docs.aws.amazon.com/neptune/latest/userguide/iam-data-condition-keys.html#iam-neptune-condition-keys) +// Note that the neptune-db:QueryLanguage:OpenCypher (https://docs.aws.amazon.com/neptune/latest/userguide/iam-data-condition-keys.html#iam-neptune-condition-keys) // IAM condition key can be used in the policy document to restrict the use // of openCypher queries (see Condition keys available in Neptune IAM data-access // policy statements (https://docs.aws.amazon.com/neptune/latest/userguide/iam-data-condition-keys.html)). @@ -11976,7 +11976,8 @@ type StartLoaderJobInput struct { // // You don't have to wait for one load job to complete before issuing the next // one, because Neptune can queue up as many as 64 jobs at a time, provided - // that their queueRequest parameters are all set to "TRUE". + // that their queueRequest parameters are all set to "TRUE". The queue order + // of the jobs will be first-in-first-out (FIFO). // // If the queueRequest parameter is omitted or set to "FALSE", the load request // will fail if another load job is already running. diff --git a/service/rds/api.go b/service/rds/api.go index 951fcf05345..3a3de14e7ab 100644 --- a/service/rds/api.go +++ b/service/rds/api.go @@ -18108,6 +18108,9 @@ type ClusterPendingModifiedValues struct { // these log types are in the process of being activated or deactivated. PendingCloudwatchLogsExports *PendingCloudwatchLogsExports `type:"structure"` + // Reserved for future use. + RdsCustomClusterConfiguration *RdsCustomClusterConfiguration `type:"structure"` + // The storage type for the DB cluster. StorageType *string `type:"string"` } @@ -18178,6 +18181,12 @@ func (s *ClusterPendingModifiedValues) SetPendingCloudwatchLogsExports(v *Pendin return s } +// SetRdsCustomClusterConfiguration sets the RdsCustomClusterConfiguration field's value. +func (s *ClusterPendingModifiedValues) SetRdsCustomClusterConfiguration(v *RdsCustomClusterConfiguration) *ClusterPendingModifiedValues { + s.RdsCustomClusterConfiguration = v + return s +} + // SetStorageType sets the StorageType field's value. func (s *ClusterPendingModifiedValues) SetStorageType(v string) *ClusterPendingModifiedValues { s.StorageType = &v @@ -20972,6 +20981,9 @@ type CreateDBClusterInput struct { // to it, the DB cluster is public. PubliclyAccessible *bool `type:"boolean"` + // Reserved for future use. + RdsCustomClusterConfiguration *RdsCustomClusterConfiguration `type:"structure"` + // The Amazon Resource Name (ARN) of the source DB instance or DB cluster if // this DB cluster is created as a read replica. // @@ -21340,6 +21352,12 @@ func (s *CreateDBClusterInput) SetPubliclyAccessible(v bool) *CreateDBClusterInp return s } +// SetRdsCustomClusterConfiguration sets the RdsCustomClusterConfiguration field's value. +func (s *CreateDBClusterInput) SetRdsCustomClusterConfiguration(v *RdsCustomClusterConfiguration) *CreateDBClusterInput { + s.RdsCustomClusterConfiguration = v + return s +} + // SetReplicationSourceIdentifier sets the ReplicationSourceIdentifier field's value. func (s *CreateDBClusterInput) SetReplicationSourceIdentifier(v string) *CreateDBClusterInput { s.ReplicationSourceIdentifier = &v @@ -26083,6 +26101,9 @@ type DBCluster struct { // This setting is only for non-Aurora Multi-AZ DB clusters. PubliclyAccessible *bool `type:"boolean"` + // Reserved for future use. + RdsCustomClusterConfiguration *RdsCustomClusterConfiguration `type:"structure"` + // Contains one or more identifiers of the read replicas associated with this // DB cluster. ReadReplicaIdentifiers []*string `locationNameList:"ReadReplicaIdentifier" type:"list"` @@ -26535,6 +26556,12 @@ func (s *DBCluster) SetPubliclyAccessible(v bool) *DBCluster { return s } +// SetRdsCustomClusterConfiguration sets the RdsCustomClusterConfiguration field's value. +func (s *DBCluster) SetRdsCustomClusterConfiguration(v *RdsCustomClusterConfiguration) *DBCluster { + s.RdsCustomClusterConfiguration = v + return s +} + // SetReadReplicaIdentifiers sets the ReadReplicaIdentifiers field's value. func (s *DBCluster) SetReadReplicaIdentifiers(v []*string) *DBCluster { s.ReadReplicaIdentifiers = v @@ -48316,6 +48343,47 @@ func (s *Range) SetTo(v int64) *Range { return s } +// Reserved for future use. +type RdsCustomClusterConfiguration struct { + _ struct{} `type:"structure"` + + // Reserved for future use. + InterconnectSubnetId *string `type:"string"` + + // Reserved for future use. + TransitGatewayMulticastDomainId *string `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 RdsCustomClusterConfiguration) 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 RdsCustomClusterConfiguration) GoString() string { + return s.String() +} + +// SetInterconnectSubnetId sets the InterconnectSubnetId field's value. +func (s *RdsCustomClusterConfiguration) SetInterconnectSubnetId(v string) *RdsCustomClusterConfiguration { + s.InterconnectSubnetId = &v + return s +} + +// SetTransitGatewayMulticastDomainId sets the TransitGatewayMulticastDomainId field's value. +func (s *RdsCustomClusterConfiguration) SetTransitGatewayMulticastDomainId(v string) *RdsCustomClusterConfiguration { + s.TransitGatewayMulticastDomainId = &v + return s +} + type RebootDBClusterInput struct { _ struct{} `type:"structure"` @@ -50550,6 +50618,9 @@ type RestoreDBClusterFromSnapshotInput struct { // Valid for: Aurora DB clusters and Multi-AZ DB clusters PubliclyAccessible *bool `type:"boolean"` + // Reserved for future use. + RdsCustomClusterConfiguration *RdsCustomClusterConfiguration `type:"structure"` + // For DB clusters in serverless DB engine mode, the scaling properties of the // DB cluster. // @@ -50770,6 +50841,12 @@ func (s *RestoreDBClusterFromSnapshotInput) SetPubliclyAccessible(v bool) *Resto return s } +// SetRdsCustomClusterConfiguration sets the RdsCustomClusterConfiguration field's value. +func (s *RestoreDBClusterFromSnapshotInput) SetRdsCustomClusterConfiguration(v *RdsCustomClusterConfiguration) *RestoreDBClusterFromSnapshotInput { + s.RdsCustomClusterConfiguration = v + return s +} + // SetScalingConfiguration sets the ScalingConfiguration field's value. func (s *RestoreDBClusterFromSnapshotInput) SetScalingConfiguration(v *ScalingConfiguration) *RestoreDBClusterFromSnapshotInput { s.ScalingConfiguration = v @@ -51113,6 +51190,9 @@ type RestoreDBClusterToPointInTimeInput struct { // Valid for: Multi-AZ DB clusters only PubliclyAccessible *bool `type:"boolean"` + // Reserved for future use. + RdsCustomClusterConfiguration *RdsCustomClusterConfiguration `type:"structure"` + // The date and time to restore the DB cluster to. // // Valid Values: Value must be a time in Universal Coordinated Time (UTC) format @@ -51342,6 +51422,12 @@ func (s *RestoreDBClusterToPointInTimeInput) SetPubliclyAccessible(v bool) *Rest return s } +// SetRdsCustomClusterConfiguration sets the RdsCustomClusterConfiguration field's value. +func (s *RestoreDBClusterToPointInTimeInput) SetRdsCustomClusterConfiguration(v *RdsCustomClusterConfiguration) *RestoreDBClusterToPointInTimeInput { + s.RdsCustomClusterConfiguration = v + return s +} + // SetRestoreToTime sets the RestoreToTime field's value. func (s *RestoreDBClusterToPointInTimeInput) SetRestoreToTime(v time.Time) *RestoreDBClusterToPointInTimeInput { s.RestoreToTime = &v diff --git a/service/redshift/api.go b/service/redshift/api.go index f8869413c51..f28918386e0 100644 --- a/service/redshift/api.go +++ b/service/redshift/api.go @@ -178,6 +178,9 @@ func (c *Redshift) AddPartnerRequest(input *AddPartnerInput) (req *request.Reque // - ErrCodeUnauthorizedPartnerIntegrationFault "UnauthorizedPartnerIntegration" // The partner integration is not authorized. // +// - ErrCodeUnsupportedOperationFault "UnsupportedOperation" +// The requested operation isn't supported. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/AddPartner func (c *Redshift) AddPartner(input *AddPartnerInput) (*AddPartnerOutput, error) { req, out := c.AddPartnerRequest(input) @@ -991,6 +994,9 @@ func (c *Redshift) CopyClusterSnapshotRequest(input *CopyClusterSnapshotInput) ( // // Returned Error Codes: // +// - ErrCodeClusterNotFoundFault "ClusterNotFound" +// The ClusterIdentifier parameter does not refer to an existing cluster. +// // - ErrCodeClusterSnapshotAlreadyExistsFault "ClusterSnapshotAlreadyExists" // The value specified as a snapshot identifier is already used by an existing // snapshot. @@ -1264,6 +1270,9 @@ func (c *Redshift) CreateClusterRequest(input *CreateClusterInput) (req *request // There are no subnets in your VPC with associated IPv6 CIDR blocks. To use // dual-stack mode, associate an IPv6 CIDR block with each subnet in your VPC. // +// - ErrCodeUnsupportedOperationFault "UnsupportedOperation" +// The requested operation isn't supported. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateCluster func (c *Redshift) CreateCluster(input *CreateClusterInput) (*CreateClusterOutput, error) { req, out := c.CreateClusterRequest(input) @@ -2295,6 +2304,9 @@ func (c *Redshift) CreateScheduledActionRequest(input *CreateScheduledActionInpu // // Returned Error Codes: // +// - ErrCodeClusterNotFoundFault "ClusterNotFound" +// The ClusterIdentifier parameter does not refer to an existing cluster. +// // - ErrCodeScheduledActionAlreadyExistsFault "ScheduledActionAlreadyExists" // The scheduled action already exists. // @@ -2313,6 +2325,9 @@ func (c *Redshift) CreateScheduledActionRequest(input *CreateScheduledActionInpu // - ErrCodeUnauthorizedOperation "UnauthorizedOperation" // Your account is not authorized to perform the requested operation. // +// - ErrCodeUnsupportedOperationFault "UnsupportedOperation" +// The requested operation isn't supported. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateScheduledAction func (c *Redshift) CreateScheduledAction(input *CreateScheduledActionInput) (*CreateScheduledActionOutput, error) { req, out := c.CreateScheduledActionRequest(input) @@ -3850,6 +3865,9 @@ func (c *Redshift) DeletePartnerRequest(input *DeletePartnerInput) (req *request // - ErrCodeUnauthorizedPartnerIntegrationFault "UnauthorizedPartnerIntegration" // The partner integration is not authorized. // +// - ErrCodeUnsupportedOperationFault "UnsupportedOperation" +// The requested operation isn't supported. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeletePartner func (c *Redshift) DeletePartner(input *DeletePartnerInput) (*DeletePartnerOutput, error) { req, out := c.DeletePartnerRequest(input) @@ -7688,9 +7706,13 @@ func (c *Redshift) DescribeLoggingStatusRequest(input *DescribeLoggingStatusInpu // API operation DescribeLoggingStatus for usage and error information. // // Returned Error Codes: +// // - ErrCodeClusterNotFoundFault "ClusterNotFound" // The ClusterIdentifier parameter does not refer to an existing cluster. // +// - ErrCodeUnsupportedOperationFault "UnsupportedOperation" +// The requested operation isn't supported. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeLoggingStatus func (c *Redshift) DescribeLoggingStatus(input *DescribeLoggingStatusInput) (*LoggingStatus, error) { req, out := c.DescribeLoggingStatusRequest(input) @@ -8062,6 +8084,9 @@ func (c *Redshift) DescribePartnersRequest(input *DescribePartnersInput) (req *r // - ErrCodeUnauthorizedPartnerIntegrationFault "UnauthorizedPartnerIntegration" // The partner integration is not authorized. // +// - ErrCodeUnsupportedOperationFault "UnsupportedOperation" +// The requested operation isn't supported. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribePartners func (c *Redshift) DescribePartners(input *DescribePartnersInput) (*DescribePartnersOutput, error) { req, out := c.DescribePartnersRequest(input) @@ -8585,6 +8610,9 @@ func (c *Redshift) DescribeResizeRequest(input *DescribeResizeInput) (req *reque // - ErrCodeResizeNotFoundFault "ResizeNotFound" // A resize operation for the specified cluster is not found. // +// - ErrCodeUnsupportedOperationFault "UnsupportedOperation" +// The requested operation isn't supported. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeResize func (c *Redshift) DescribeResize(input *DescribeResizeInput) (*DescribeResizeOutput, error) { req, out := c.DescribeResizeRequest(input) @@ -9612,6 +9640,9 @@ func (c *Redshift) DisableLoggingRequest(input *DisableLoggingInput) (req *reque // - ErrCodeInvalidClusterStateFault "InvalidClusterState" // The specified cluster is not in the available state. // +// - ErrCodeUnsupportedOperationFault "UnsupportedOperation" +// The requested operation isn't supported. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DisableLogging func (c *Redshift) DisableLogging(input *DisableLoggingInput) (*LoggingStatus, error) { req, out := c.DisableLoggingRequest(input) @@ -9706,6 +9737,9 @@ func (c *Redshift) DisableSnapshotCopyRequest(input *DisableSnapshotCopyInput) ( // - ErrCodeUnauthorizedOperation "UnauthorizedOperation" // Your account is not authorized to perform the requested operation. // +// - ErrCodeUnsupportedOperationFault "UnsupportedOperation" +// The requested operation isn't supported. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DisableSnapshotCopy func (c *Redshift) DisableSnapshotCopy(input *DisableSnapshotCopyInput) (*DisableSnapshotCopyOutput, error) { req, out := c.DisableSnapshotCopyRequest(input) @@ -9888,6 +9922,9 @@ func (c *Redshift) EnableLoggingRequest(input *EnableLoggingInput) (req *request // - ErrCodeInvalidClusterStateFault "InvalidClusterState" // The specified cluster is not in the available state. // +// - ErrCodeUnsupportedOperationFault "UnsupportedOperation" +// The requested operation isn't supported. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/EnableLogging func (c *Redshift) EnableLogging(input *EnableLoggingInput) (*LoggingStatus, error) { req, out := c.EnableLoggingRequest(input) @@ -10024,6 +10061,95 @@ func (c *Redshift) EnableSnapshotCopyWithContext(ctx aws.Context, input *EnableS return out, req.Send() } +const opFailoverPrimaryCompute = "FailoverPrimaryCompute" + +// FailoverPrimaryComputeRequest generates a "aws/request.Request" representing the +// client's request for the FailoverPrimaryCompute 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 FailoverPrimaryCompute for more information on using the FailoverPrimaryCompute +// 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 FailoverPrimaryComputeRequest method. +// req, resp := client.FailoverPrimaryComputeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/FailoverPrimaryCompute +func (c *Redshift) FailoverPrimaryComputeRequest(input *FailoverPrimaryComputeInput) (req *request.Request, output *FailoverPrimaryComputeOutput) { + op := &request.Operation{ + Name: opFailoverPrimaryCompute, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &FailoverPrimaryComputeInput{} + } + + output = &FailoverPrimaryComputeOutput{} + req = c.newRequest(op, input, output) + return +} + +// FailoverPrimaryCompute API operation for Amazon Redshift. +// +// Fails over the primary compute unit of the specified Multi-AZ cluster to +// another Availability Zone. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation FailoverPrimaryCompute for usage and error information. +// +// Returned Error Codes: +// +// - ErrCodeClusterNotFoundFault "ClusterNotFound" +// The ClusterIdentifier parameter does not refer to an existing cluster. +// +// - ErrCodeUnsupportedOperationFault "UnsupportedOperation" +// The requested operation isn't supported. +// +// - ErrCodeUnauthorizedOperation "UnauthorizedOperation" +// Your account is not authorized to perform the requested operation. +// +// - ErrCodeInvalidClusterStateFault "InvalidClusterState" +// The specified cluster is not in the available state. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/FailoverPrimaryCompute +func (c *Redshift) FailoverPrimaryCompute(input *FailoverPrimaryComputeInput) (*FailoverPrimaryComputeOutput, error) { + req, out := c.FailoverPrimaryComputeRequest(input) + return out, req.Send() +} + +// FailoverPrimaryComputeWithContext is the same as FailoverPrimaryCompute with the addition of +// the ability to pass a context and additional request options. +// +// See FailoverPrimaryCompute 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 *Redshift) FailoverPrimaryComputeWithContext(ctx aws.Context, input *FailoverPrimaryComputeInput, opts ...request.Option) (*FailoverPrimaryComputeOutput, error) { + req, out := c.FailoverPrimaryComputeRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGetClusterCredentials = "GetClusterCredentials" // GetClusterCredentialsRequest generates a "aws/request.Request" representing the @@ -11023,6 +11149,9 @@ func (c *Redshift) ModifyClusterDbRevisionRequest(input *ModifyClusterDbRevision // - ErrCodeInvalidClusterStateFault "InvalidClusterState" // The specified cluster is not in the available state. // +// - ErrCodeUnsupportedOperationFault "UnsupportedOperation" +// The requested operation isn't supported. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterDbRevision func (c *Redshift) ModifyClusterDbRevision(input *ModifyClusterDbRevisionInput) (*ModifyClusterDbRevisionOutput, error) { req, out := c.ModifyClusterDbRevisionRequest(input) @@ -11926,6 +12055,9 @@ func (c *Redshift) ModifyScheduledActionRequest(input *ModifyScheduledActionInpu // // Returned Error Codes: // +// - ErrCodeClusterNotFoundFault "ClusterNotFound" +// The ClusterIdentifier parameter does not refer to an existing cluster. +// // - ErrCodeScheduledActionNotFoundFault "ScheduledActionNotFound" // The scheduled action cannot be found. // @@ -11941,6 +12073,9 @@ func (c *Redshift) ModifyScheduledActionRequest(input *ModifyScheduledActionInpu // - ErrCodeUnauthorizedOperation "UnauthorizedOperation" // Your account is not authorized to perform the requested operation. // +// - ErrCodeUnsupportedOperationFault "UnsupportedOperation" +// The requested operation isn't supported. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyScheduledAction func (c *Redshift) ModifyScheduledAction(input *ModifyScheduledActionInput) (*ModifyScheduledActionOutput, error) { req, out := c.ModifyScheduledActionRequest(input) @@ -12295,6 +12430,9 @@ func (c *Redshift) PauseClusterRequest(input *PauseClusterInput) (req *request.R // - ErrCodeInvalidClusterStateFault "InvalidClusterState" // The specified cluster is not in the available state. // +// - ErrCodeUnsupportedOperationFault "UnsupportedOperation" +// The requested operation isn't supported. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/PauseCluster func (c *Redshift) PauseCluster(input *PauseClusterInput) (*PauseClusterOutput, error) { req, out := c.PauseClusterRequest(input) @@ -13273,6 +13411,9 @@ func (c *Redshift) ResumeClusterRequest(input *ResumeClusterInput) (req *request // - ErrCodeInsufficientClusterCapacityFault "InsufficientClusterCapacity" // The number of nodes specified exceeds the allotted capacity of the cluster. // +// - ErrCodeUnsupportedOperationFault "UnsupportedOperation" +// The requested operation isn't supported. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ResumeCluster func (c *Redshift) ResumeCluster(input *ResumeClusterInput) (*ResumeClusterOutput, error) { req, out := c.ResumeClusterRequest(input) @@ -13643,6 +13784,9 @@ func (c *Redshift) RotateEncryptionKeyRequest(input *RotateEncryptionKeyInput) ( // The request cannot be completed because a dependent service is throttling // requests made by Amazon Redshift on your behalf. Wait and retry the request. // +// - ErrCodeUnsupportedOperationFault "UnsupportedOperation" +// The requested operation isn't supported. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RotateEncryptionKey func (c *Redshift) RotateEncryptionKey(input *RotateEncryptionKeyInput) (*RotateEncryptionKeyOutput, error) { req, out := c.RotateEncryptionKeyRequest(input) @@ -13728,6 +13872,9 @@ func (c *Redshift) UpdatePartnerStatusRequest(input *UpdatePartnerStatusInput) ( // - ErrCodeUnauthorizedPartnerIntegrationFault "UnauthorizedPartnerIntegration" // The partner integration is not authorized. // +// - ErrCodeUnsupportedOperationFault "UnsupportedOperation" +// The requested operation isn't supported. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/UpdatePartnerStatus func (c *Redshift) UpdatePartnerStatus(input *UpdatePartnerStatusInput) (*UpdatePartnerStatusOutput, error) { req, out := c.UpdatePartnerStatusRequest(input) @@ -15656,6 +15803,14 @@ type Cluster struct { // The status of a modify operation, if any, initiated for the cluster. ModifyStatus *string `type:"string"` + // A boolean value that, if true, indicates that the cluster is deployed in + // two Availability Zones. + MultiAZ *string `type:"string"` + + // The secondary compute unit of a cluster, if Multi-AZ deployment is turned + // on. + MultiAZSecondary *SecondaryClusterInfo `type:"structure"` + // The date and time in UTC when system maintenance can begin. NextMaintenanceWindowStartTime *time.Time `type:"timestamp"` @@ -15987,6 +16142,18 @@ func (s *Cluster) SetModifyStatus(v string) *Cluster { return s } +// SetMultiAZ sets the MultiAZ field's value. +func (s *Cluster) SetMultiAZ(v string) *Cluster { + s.MultiAZ = &v + return s +} + +// SetMultiAZSecondary sets the MultiAZSecondary field's value. +func (s *Cluster) SetMultiAZSecondary(v *SecondaryClusterInfo) *Cluster { + s.MultiAZSecondary = v + return s +} + // SetNextMaintenanceWindowStartTime sets the NextMaintenanceWindowStartTime field's value. func (s *Cluster) SetNextMaintenanceWindowStartTime(v time.Time) *Cluster { s.NextMaintenanceWindowStartTime = &v @@ -17332,6 +17499,10 @@ type CreateClusterInput struct { // MasterUsername is a required field MasterUsername *string `type:"string" required:"true"` + // If true, Amazon Redshift will deploy the cluster in two Availability Zones + // (AZ). + MultiAZ *bool `type:"boolean"` + // The node type to be provisioned for the cluster. For information about node // types, go to Working with Clusters (https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html#how-many-nodes) // in the Amazon Redshift Cluster Management Guide. @@ -17611,6 +17782,12 @@ func (s *CreateClusterInput) SetMasterUsername(v string) *CreateClusterInput { return s } +// SetMultiAZ sets the MultiAZ field's value. +func (s *CreateClusterInput) SetMultiAZ(v bool) *CreateClusterInput { + s.MultiAZ = &v + return s +} + // SetNodeType sets the NodeType field's value. func (s *CreateClusterInput) SetNodeType(v string) *CreateClusterInput { s.NodeType = &v @@ -27962,6 +28139,84 @@ func (s *EventSubscription) SetTags(v []*Tag) *EventSubscription { return s } +type FailoverPrimaryComputeInput struct { + _ struct{} `type:"structure"` + + // The unique identifier of the cluster for which the primary compute unit will + // be failed over to another Availability Zone. + // + // ClusterIdentifier is a required field + ClusterIdentifier *string `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 FailoverPrimaryComputeInput) 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 FailoverPrimaryComputeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *FailoverPrimaryComputeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "FailoverPrimaryComputeInput"} + if s.ClusterIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *FailoverPrimaryComputeInput) SetClusterIdentifier(v string) *FailoverPrimaryComputeInput { + s.ClusterIdentifier = &v + return s +} + +type FailoverPrimaryComputeOutput struct { + _ struct{} `type:"structure"` + + // Describes a cluster. + Cluster *Cluster `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 FailoverPrimaryComputeOutput) 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 FailoverPrimaryComputeOutput) GoString() string { + return s.String() +} + +// SetCluster sets the Cluster field's value. +func (s *FailoverPrimaryComputeOutput) SetCluster(v *Cluster) *FailoverPrimaryComputeOutput { + s.Cluster = v + return s +} + // The request parameters to get cluster credentials. type GetClusterCredentialsInput struct { _ struct{} `type:"structure"` @@ -29717,6 +29972,10 @@ type ModifyClusterInput struct { // String and GoString methods. MasterUserPassword *string `type:"string" sensitive:"true"` + // If true and the cluster is currently only deployed in a single Availability + // Zone, the cluster will be modified to be deployed in two Availability Zones. + MultiAZ *bool `type:"boolean"` + // The new identifier for the cluster. // // Constraints: @@ -29942,6 +30201,12 @@ func (s *ModifyClusterInput) SetMasterUserPassword(v string) *ModifyClusterInput return s } +// SetMultiAZ sets the MultiAZ field's value. +func (s *ModifyClusterInput) SetMultiAZ(v bool) *ModifyClusterInput { + s.MultiAZ = &v + return s +} + // SetNewClusterIdentifier sets the NewClusterIdentifier field's value. func (s *ModifyClusterInput) SetNewClusterIdentifier(v string) *ModifyClusterInput { s.NewClusterIdentifier = &v @@ -33741,6 +34006,10 @@ type RestoreFromClusterSnapshotInput struct { // ManageMasterPassword is true. MasterPasswordSecretKmsKeyId *string `type:"string"` + // If true, the snapshot will be restored to a cluster deployed in two Availability + // Zones. + MultiAZ *bool `type:"boolean"` + // The node type that the restored cluster will be provisioned with. // // Default: The node type of the cluster from which the snapshot was taken. @@ -33992,6 +34261,12 @@ func (s *RestoreFromClusterSnapshotInput) SetMasterPasswordSecretKmsKeyId(v stri return s } +// SetMultiAZ sets the MultiAZ field's value. +func (s *RestoreFromClusterSnapshotInput) SetMultiAZ(v bool) *RestoreFromClusterSnapshotInput { + s.MultiAZ = &v + return s +} + // SetNodeType sets the NodeType field's value. func (s *RestoreFromClusterSnapshotInput) SetNodeType(v string) *RestoreFromClusterSnapshotInput { s.NodeType = &v @@ -35269,6 +35544,49 @@ func (s *ScheduledActionType) SetResumeCluster(v *ResumeClusterMessage) *Schedul return s } +// The AvailabilityZone and ClusterNodes information of the secondary compute +// unit. +type SecondaryClusterInfo struct { + _ struct{} `type:"structure"` + + // The name of the Availability Zone in which the secondary compute unit of + // the cluster is located. + AvailabilityZone *string `type:"string"` + + // The nodes in the secondary compute unit. + ClusterNodes []*ClusterNode `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SecondaryClusterInfo) 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 SecondaryClusterInfo) GoString() string { + return s.String() +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *SecondaryClusterInfo) SetAvailabilityZone(v string) *SecondaryClusterInfo { + s.AvailabilityZone = &v + return s +} + +// SetClusterNodes sets the ClusterNodes field's value. +func (s *SecondaryClusterInfo) SetClusterNodes(v []*ClusterNode) *SecondaryClusterInfo { + s.ClusterNodes = v + return s +} + // Describes a snapshot. type Snapshot struct { _ struct{} `type:"structure"` diff --git a/service/redshift/redshiftiface/interface.go b/service/redshift/redshiftiface/interface.go index 5538287433f..e887b180ea8 100644 --- a/service/redshift/redshiftiface/interface.go +++ b/service/redshift/redshiftiface/interface.go @@ -516,6 +516,10 @@ type RedshiftAPI interface { EnableSnapshotCopyWithContext(aws.Context, *redshift.EnableSnapshotCopyInput, ...request.Option) (*redshift.EnableSnapshotCopyOutput, error) EnableSnapshotCopyRequest(*redshift.EnableSnapshotCopyInput) (*request.Request, *redshift.EnableSnapshotCopyOutput) + FailoverPrimaryCompute(*redshift.FailoverPrimaryComputeInput) (*redshift.FailoverPrimaryComputeOutput, error) + FailoverPrimaryComputeWithContext(aws.Context, *redshift.FailoverPrimaryComputeInput, ...request.Option) (*redshift.FailoverPrimaryComputeOutput, error) + FailoverPrimaryComputeRequest(*redshift.FailoverPrimaryComputeInput) (*request.Request, *redshift.FailoverPrimaryComputeOutput) + GetClusterCredentials(*redshift.GetClusterCredentialsInput) (*redshift.GetClusterCredentialsOutput, error) GetClusterCredentialsWithContext(aws.Context, *redshift.GetClusterCredentialsInput, ...request.Option) (*redshift.GetClusterCredentialsOutput, error) GetClusterCredentialsRequest(*redshift.GetClusterCredentialsInput) (*request.Request, *redshift.GetClusterCredentialsOutput) diff --git a/service/s3/s3crypto/aes_cbc_content_cipher.go b/service/s3/s3crypto/aes_cbc_content_cipher.go index ea7ce555131..2e020f590bc 100644 --- a/service/s3/s3crypto/aes_cbc_content_cipher.go +++ b/service/s3/s3crypto/aes_cbc_content_cipher.go @@ -17,7 +17,7 @@ type cbcContentCipherBuilder struct { // AESCBCContentCipherBuilder returns a new encryption only AES/CBC mode structure using the provided padder. The provided cipher data generator // will be used to provide keys for content encryption. // -// deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. +// Deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. func AESCBCContentCipherBuilder(generator CipherDataGenerator, padder Padder) ContentCipherBuilder { return cbcContentCipherBuilder{generator: generator, padder: padder} } @@ -31,7 +31,7 @@ func AESCBCContentCipherBuilder(generator CipherDataGenerator, padder Padder) Co // panic(err) // handle error // } // -// deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. +// Deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. func RegisterAESCBCContentCipher(registry *CryptoRegistry, padder Padder) error { if registry == nil { return errNilCryptoRegistry diff --git a/service/s3/s3crypto/aes_gcm_content_cipher.go b/service/s3/s3crypto/aes_gcm_content_cipher.go index 17697b61a71..8779e8f343c 100644 --- a/service/s3/s3crypto/aes_gcm_content_cipher.go +++ b/service/s3/s3crypto/aes_gcm_content_cipher.go @@ -19,7 +19,7 @@ const ( // will be fully loaded into memory before encryption or decryption can occur. Caution must be taken to avoid memory // allocation failures. // -// deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. +// Deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. func AESGCMContentCipherBuilder(generator CipherDataGenerator) ContentCipherBuilder { return gcmContentCipherBuilder{generator} } diff --git a/service/s3/s3crypto/decryption_client.go b/service/s3/s3crypto/decryption_client.go index b01fb9beb41..38b1495b16e 100644 --- a/service/s3/s3crypto/decryption_client.go +++ b/service/s3/s3crypto/decryption_client.go @@ -25,7 +25,7 @@ type CEKEntry func(CipherData) (ContentCipher, error) // - AES/GCM // - AES/CBC // -// deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. +// Deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. type DecryptionClient struct { S3Client s3iface.S3API // LoadStrategy is used to load the metadata either from the metadata of the object @@ -48,7 +48,7 @@ type DecryptionClient struct { // // Custom client options here // })) // -// deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. +// Deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. func NewDecryptionClient(prov client.ConfigProvider, options ...func(*DecryptionClient)) *DecryptionClient { s3client := s3.New(prov) @@ -95,14 +95,14 @@ func NewDecryptionClient(prov client.ConfigProvider, options ...func(*Decryption // }) // err := req.Send() // -// deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. +// Deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. func (c *DecryptionClient) GetObjectRequest(input *s3.GetObjectInput) (*request.Request, *s3.GetObjectOutput) { return getObjectRequest(c.getClientOptions(), input) } // GetObject is a wrapper for GetObjectRequest // -// deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. +// Deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. func (c *DecryptionClient) GetObject(input *s3.GetObjectInput) (*s3.GetObjectOutput, error) { return getObject(c.getClientOptions(), input) } @@ -115,7 +115,7 @@ func (c *DecryptionClient) GetObject(input *s3.GetObjectInput) (*s3.GetObjectOut // cause a panic. Use the Context to add deadlining, timeouts, etc. In the future // this may create sub-contexts for individual underlying requests. // -// deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. +// Deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. func (c *DecryptionClient) GetObjectWithContext(ctx aws.Context, input *s3.GetObjectInput, opts ...request.Option) (*s3.GetObjectOutput, error) { return getObjectWithContext(c.getClientOptions(), ctx, input, opts...) } diff --git a/service/s3/s3crypto/encryption_client.go b/service/s3/s3crypto/encryption_client.go index eaded3b4e65..bb964461b2d 100644 --- a/service/s3/s3crypto/encryption_client.go +++ b/service/s3/s3crypto/encryption_client.go @@ -18,7 +18,7 @@ const DefaultMinFileSize = 1024 * 512 * 5 // AES GCM will load all data into memory. However, the rest of the content algorithms // do not load the entire contents into memory. // -// deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. +// Deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. type EncryptionClient struct { S3Client s3iface.S3API ContentCipherBuilder ContentCipherBuilder @@ -56,7 +56,7 @@ func validateV1EncryptionClientConstruction(c *EncryptionClient) error { // handler := s3crypto.NewKMSKeyGenerator(kms.New(sess), cmkID) // svc := s3crypto.NewEncryptionClient(sess, s3crypto.AESGCMContentCipherBuilder(handler)) // -// deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. +// Deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. func NewEncryptionClient(prov client.ConfigProvider, builder ContentCipherBuilder, options ...func(*EncryptionClient)) *EncryptionClient { s3client := s3.New(prov) @@ -91,7 +91,7 @@ func NewEncryptionClient(prov client.ConfigProvider, builder ContentCipherBuilde // }) // err := req.Send() // -// deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. +// Deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. func (c *EncryptionClient) PutObjectRequest(input *s3.PutObjectInput) (*request.Request, *s3.PutObjectOutput) { req, out := putObjectRequest(c.getClientOptions(), input) if err := validateV1EncryptionClientConstruction(c); err != nil { @@ -114,7 +114,7 @@ func setReqError(err error) func(*request.Request) { // PutObject is a wrapper for PutObjectRequest // -// deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. +// Deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. func (c *EncryptionClient) PutObject(input *s3.PutObjectInput) (*s3.PutObjectOutput, error) { if err := validateV1EncryptionClientConstruction(c); err != nil { return nil, err @@ -131,7 +131,7 @@ func (c *EncryptionClient) PutObject(input *s3.PutObjectInput) (*s3.PutObjectOut // this may create sub-contexts for individual underlying requests. // PutObject is a wrapper for PutObjectRequest // -// deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. +// Deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. func (c *EncryptionClient) PutObjectWithContext(ctx aws.Context, input *s3.PutObjectInput, opts ...request.Option) (*s3.PutObjectOutput, error) { if err := validateV1EncryptionClientConstruction(c); err != nil { return nil, err diff --git a/service/s3/s3crypto/envelope.go b/service/s3/s3crypto/envelope.go index 12c67ceca0e..707fe809474 100644 --- a/service/s3/s3crypto/envelope.go +++ b/service/s3/s3crypto/envelope.go @@ -39,7 +39,7 @@ type Envelope struct { CEKAlg string `json:"x-amz-cek-alg"` TagLen string `json:"x-amz-tag-len"` - // deprecated: This MD5 hash is no longer populated + // Deprecated: This MD5 hash is no longer populated UnencryptedMD5 string `json:"-"` UnencryptedContentLen string `json:"x-amz-unencrypted-content-length"` diff --git a/service/s3/s3crypto/kms_key_handler.go b/service/s3/s3crypto/kms_key_handler.go index 9c6b7ba3f58..41b872da1ea 100644 --- a/service/s3/s3crypto/kms_key_handler.go +++ b/service/s3/s3crypto/kms_key_handler.go @@ -33,7 +33,7 @@ type kmsKeyHandler struct { // matdesc := s3crypto.MaterialDescription{} // handler := s3crypto.NewKMSKeyGenerator(kms.New(sess), cmkID) // -// deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. +// Deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. func NewKMSKeyGenerator(kmsClient kmsiface.KMSAPI, cmkID string) CipherDataGenerator { return NewKMSKeyGeneratorWithMatDesc(kmsClient, cmkID, MaterialDescription{}) } @@ -67,7 +67,7 @@ func newKMSKeyHandler(client kmsiface.KMSAPI, cmkID string, matdesc MaterialDesc // matdesc := s3crypto.MaterialDescription{} // handler := s3crypto.NewKMSKeyGeneratorWithMatDesc(kms.New(sess), cmkID, matdesc) // -// deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. +// Deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. func NewKMSKeyGeneratorWithMatDesc(kmsClient kmsiface.KMSAPI, cmkID string, matdesc MaterialDescription) CipherDataGenerator { return newKMSKeyHandler(kmsClient, cmkID, matdesc) } @@ -84,7 +84,7 @@ func NewKMSKeyGeneratorWithMatDesc(kmsClient kmsiface.KMSAPI, cmkID string, matd // svc.WrapRegistry[s3crypto.KMSWrap] = decryptHandler // })) // -// deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. +// Deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. func NewKMSWrapEntry(kmsClient kmsiface.KMSAPI) WrapEntry { kp := newKMSWrapEntry(kmsClient) return kp.decryptHandler @@ -101,7 +101,7 @@ func NewKMSWrapEntry(kmsClient kmsiface.KMSAPI) WrapEntry { // panic(err) // handle error // } // -// deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. +// Deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. func RegisterKMSWrapWithCMK(registry *CryptoRegistry, client kmsiface.KMSAPI, cmkID string) error { if registry == nil { return errNilCryptoRegistry @@ -120,7 +120,7 @@ func RegisterKMSWrapWithCMK(registry *CryptoRegistry, client kmsiface.KMSAPI, cm // panic(err) // handle error // } // -// deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. +// Deprecated: This feature is in maintenance mode, no new updates will be released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html for more information. func RegisterKMSWrapWithAnyCMK(registry *CryptoRegistry, client kmsiface.KMSAPI) error { if registry == nil { return errNilCryptoRegistry diff --git a/service/sagemaker/api.go b/service/sagemaker/api.go index 81f44265636..7c4c02d6486 100644 --- a/service/sagemaker/api.go +++ b/service/sagemaker/api.go @@ -70142,7 +70142,7 @@ type GitConfig struct { // The URL where the Git repository is located. // // RepositoryUrl is a required field - RepositoryUrl *string `type:"string" required:"true"` + RepositoryUrl *string `min:"11" type:"string" required:"true"` // The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager // secret that contains the credentials used to access the git repository. The @@ -70180,6 +70180,9 @@ func (s *GitConfig) Validate() error { if s.RepositoryUrl == nil { invalidParams.Add(request.NewErrParamRequired("RepositoryUrl")) } + if s.RepositoryUrl != nil && len(*s.RepositoryUrl) < 11 { + invalidParams.Add(request.NewErrParamMinLen("RepositoryUrl", 11)) + } if s.SecretArn != nil && len(*s.SecretArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("SecretArn", 1)) } @@ -90335,6 +90338,9 @@ func (s *ModelDashboardModelCard) SetTags(v []*Tag) *ModelDashboardModelCard { type ModelDashboardMonitoringSchedule struct { _ struct{} `type:"structure"` + // Input object for the batch transform job. + BatchTransformInput *BatchTransformInput_ `type:"structure"` + // A timestamp that indicates when the monitoring schedule was created. CreationTime *time.Time `type:"timestamp"` @@ -90387,6 +90393,12 @@ func (s ModelDashboardMonitoringSchedule) GoString() string { return s.String() } +// SetBatchTransformInput sets the BatchTransformInput field's value. +func (s *ModelDashboardMonitoringSchedule) SetBatchTransformInput(v *BatchTransformInput_) *ModelDashboardMonitoringSchedule { + s.BatchTransformInput = v + return s +} + // SetCreationTime sets the CreationTime field's value. func (s *ModelDashboardMonitoringSchedule) SetCreationTime(v time.Time) *ModelDashboardMonitoringSchedule { s.CreationTime = &v diff --git a/service/translate/api.go b/service/translate/api.go index 4494ea12e9f..0c95131c2a8 100644 --- a/service/translate/api.go +++ b/service/translate/api.go @@ -1823,12 +1823,11 @@ func (c *Translate) TranslateDocumentRequest(input *TranslateDocumentInput) (req // TranslateDocument API operation for Amazon Translate. // // Translates the input document from the source language to the target language. -// This synchronous operation supports plain text or HTML for the input document. -// TranslateDocument supports translations from English to any supported language, -// and from any supported language to English. Therefore, specify either the -// source language code or the target language code as “en” (English). -// -// TranslateDocument does not support language auto-detection. +// This synchronous operation supports text, HTML, or Word documents as the +// input document. TranslateDocument supports translations from English to any +// supported language, and from any supported language to English. Therefore, +// specify either the source language code or the target language code as “en” +// (English). // // If you set the Formality parameter, the request will fail if the target language // does not support formality. For a list of target languages that support formality, @@ -2341,11 +2340,6 @@ func (s *CreateParallelDataInput) Validate() error { invalidParams.AddNested("EncryptionKey", err.(request.ErrInvalidParams)) } } - if s.ParallelDataConfig != nil { - if err := s.ParallelDataConfig.Validate(); err != nil { - invalidParams.AddNested("ParallelDataConfig", err.(request.ErrInvalidParams)) - } - } if s.Tags != nil { for i, v := range s.Tags { if v == nil { @@ -4400,15 +4394,11 @@ type ParallelDataConfig struct { _ struct{} `type:"structure"` // The format of the parallel data input file. - // - // Format is a required field - Format *string `type:"string" required:"true" enum:"ParallelDataFormat"` + Format *string `type:"string" enum:"ParallelDataFormat"` // The URI of the Amazon S3 folder that contains the parallel data input file. // The folder must be in the same Region as the API endpoint you are calling. - // - // S3Uri is a required field - S3Uri *string `type:"string" required:"true"` + S3Uri *string `type:"string"` } // String returns the string representation. @@ -4429,22 +4419,6 @@ func (s ParallelDataConfig) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ParallelDataConfig) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ParallelDataConfig"} - if s.Format == nil { - invalidParams.Add(request.NewErrParamRequired("Format")) - } - if s.S3Uri == nil { - invalidParams.Add(request.NewErrParamRequired("S3Uri")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - // SetFormat sets the Format field's value. func (s *ParallelDataConfig) SetFormat(v string) *ParallelDataConfig { s.Format = &v @@ -4881,9 +4855,14 @@ type StartTextTranslationJobInput struct { // (https://docs.aws.amazon.com/translate/latest/dg/customizing-translations-parallel-data.html). ParallelDataNames []*string `type:"list"` - // Settings to configure your translation output, including the option to set - // the formality level of the output text and the option to mask profane words - // and phrases. + // Settings to configure your translation output. You can configure the following + // options: + // + // * Brevity: not supported. + // + // * Formality: sets the formality level of the output text. + // + // * Profanity: masks profane words and phrases in your translation output. Settings *TranslationSettings `type:"structure"` // The language code of the input language. Specify the language if all input @@ -5723,9 +5702,14 @@ func (s *TerminologyProperties) SetTermCount(v int64) *TerminologyProperties { type TextInput struct { _ struct{} `type:"structure"` - // Settings to configure your translation output, including the option to set - // the formality level of the output text and the option to mask profane words - // and phrases. + // Settings to configure your translation output. You can configure the following + // options: + // + // * Brevity: reduces the length of the translated output for most translations. + // + // * Formality: sets the formality level of the output text. + // + // * Profanity: masks profane words and phrases in your translation output. Settings *TranslationSettings `type:"structure"` // The language code for the language of the source text. For a list of language @@ -6366,14 +6350,27 @@ type TranslateDocumentInput struct { // Document is a required field Document *Document `type:"structure" required:"true"` - // Settings to configure your translation output, including the option to set - // the formality level of the output text and the option to mask profane words - // and phrases. + // Settings to configure your translation output. You can configure the following + // options: + // + // * Brevity: not supported. + // + // * Formality: sets the formality level of the output text. + // + // * Profanity: masks profane words and phrases in your translation output. Settings *TranslationSettings `type:"structure"` - // The language code for the language of the source text. Do not use auto, because - // TranslateDocument does not support language auto-detection. For a list of - // supported language codes, see Supported languages (https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html). + // The language code for the language of the source text. For a list of supported + // language codes, see Supported languages (https://docs.aws.amazon.com/translate/latest/dg/what-is-languages.html). + // + // To have Amazon Translate determine the source language of your text, you + // can specify auto in the SourceLanguageCode field. If you specify auto, Amazon + // Translate will call Amazon Comprehend (https://docs.aws.amazon.com/comprehend/latest/dg/comprehend-general.html) + // to determine the source language. + // + // If you specify auto, you must send the TranslateDocument request in a region + // that supports Amazon Comprehend. Otherwise, the request returns an error + // indicating that autodetect is not supported. // // SourceLanguageCode is a required field SourceLanguageCode *string `min:"2" type:"string" required:"true"` @@ -6477,9 +6474,15 @@ func (s *TranslateDocumentInput) SetTerminologyNames(v []*string) *TranslateDocu type TranslateDocumentOutput struct { _ struct{} `type:"structure"` - // Settings to configure your translation output, including the option to set - // the formality level of the output text and the option to mask profane words - // and phrases. + // Settings to configure your translation output. You can configure the following + // options: + // + // * Brevity: reduces the length of the translation output for most translations. + // Available for TranslateText only. + // + // * Formality: sets the formality level of the translation output. + // + // * Profanity: masks profane words and phrases in the translation output. AppliedSettings *TranslationSettings `type:"structure"` // The names of the custom terminologies applied to the input text by Amazon @@ -6591,15 +6594,32 @@ func (s *TranslatedDocument) SetContent(v []byte) *TranslatedDocument { return s } -// Settings to configure your translation output, including the option to set -// the formality level of the output text and the option to mask profane words -// and phrases. +// Settings to configure your translation output. You can configure the following +// options: +// +// - Brevity: reduces the length of the translation output for most translations. +// Available for TranslateText only. +// +// - Formality: sets the formality level of the translation output. +// +// - Profanity: masks profane words and phrases in the translation output. type TranslationSettings struct { _ struct{} `type:"structure"` - // You can optionally specify the desired level of formality for translations - // to supported target languages. The formality setting controls the level of - // formal language usage (also known as register (https://en.wikipedia.org/wiki/Register_(sociolinguistics))) + // When you turn on brevity, Amazon Translate reduces the length of the translation + // output for most translations (when compared with the same translation with + // brevity turned off). By default, brevity is turned off. + // + // If you turn on brevity for a translation request with an unsupported language + // pair, the translation proceeds with the brevity setting turned off. + // + // For the language pairs that brevity supports, see Using brevity (https://docs.aws.amazon.com/translate/latest/dg/customizing-translations-brevity) + // in the Amazon Translate Developer Guide. + Brevity *string `type:"string" enum:"Brevity"` + + // You can specify the desired level of formality for translations to supported + // target languages. The formality setting controls the level of formal language + // usage (also known as register (https://en.wikipedia.org/wiki/Register_(sociolinguistics))) // in the translation output. You can set the value to informal or formal. If // you don't specify a value for formality, or if the target language doesn't // support formality, the translation will ignore the formality setting. @@ -6612,8 +6632,8 @@ type TranslationSettings struct { // in the Amazon Translate Developer Guide. Formality *string `type:"string" enum:"Formality"` - // Enable the profanity setting if you want Amazon Translate to mask profane - // words and phrases in your translation output. + // You can enable the profanity setting if you want to mask profane words and + // phrases in your translation output. // // To mask profane words and phrases, Amazon Translate replaces them with the // grawlix string “?$#@$“. This 5-character sequence is used for each profane @@ -6649,6 +6669,12 @@ func (s TranslationSettings) GoString() string { return s.String() } +// SetBrevity sets the Brevity field's value. +func (s *TranslationSettings) SetBrevity(v string) *TranslationSettings { + s.Brevity = &v + return s +} + // SetFormality sets the Formality field's value. func (s *TranslationSettings) SetFormality(v string) *TranslationSettings { s.Formality = &v @@ -6942,11 +6968,6 @@ func (s *UpdateParallelDataInput) Validate() error { if s.ParallelDataConfig == nil { invalidParams.Add(request.NewErrParamRequired("ParallelDataConfig")) } - if s.ParallelDataConfig != nil { - if err := s.ParallelDataConfig.Validate(); err != nil { - invalidParams.AddNested("ParallelDataConfig", err.(request.ErrInvalidParams)) - } - } if invalidParams.Len() > 0 { return invalidParams @@ -7038,6 +7059,18 @@ func (s *UpdateParallelDataOutput) SetStatus(v string) *UpdateParallelDataOutput return s } +const ( + // BrevityOn is a Brevity enum value + BrevityOn = "ON" +) + +// Brevity_Values returns all elements of the Brevity enum +func Brevity_Values() []string { + return []string{ + BrevityOn, + } +} + const ( // DirectionalityUni is a Directionality enum value DirectionalityUni = "UNI"