From 2fa828ed93ccc746b97509ba21309c4035f22009 Mon Sep 17 00:00:00 2001 From: awssdkgo Date: Tue, 7 Jan 2020 19:26:20 +0000 Subject: [PATCH] Release v1.27.2 (2020-01-07) === ### Service Client Updates * `service/AWSMigrationHub`: Updates service API, documentation, and paginators * `service/codebuild`: Updates service API and documentation * Add encryption key override to StartBuild API in AWS CodeBuild. * `service/xray`: Updates service documentation * Documentation updates for xray ### SDK Enhancements * `aws`: Add configuration option enable the SDK to unmarshal API response header maps to normalized lower case map keys. ([#3033](https://github.com/aws/aws-sdk-go/pull/3033)) * Setting `aws.Config.LowerCaseHeaderMaps` to `true` will result in S3's X-Amz-Meta prefixed header to be unmarshaled to lower case Metadata member's map keys. ### SDK Bugs * `aws/ec2metadata` : Reduces request timeout for EC2Metadata client along with maximum number of retries ([#3066](https://github.com/aws/aws-sdk-go/pull/3066)) * Reduces latency while fetching response from EC2Metadata client running in a container to around 3 seconds * Fixes [#2972](https://github.com/aws/aws-sdk-go/issues/2972) --- CHANGELOG.md | 19 ++ CHANGELOG_PENDING.md | 5 - aws/version.go | 2 +- .../AWSMigrationHub/2017-05-31/api-2.json | 51 +++ .../AWSMigrationHub/2017-05-31/docs-2.json | 36 +++ .../2017-05-31/paginators-1.json | 6 + models/apis/codebuild/2016-10-06/api-2.json | 1 + models/apis/codebuild/2016-10-06/docs-2.json | 5 +- models/apis/xray/2016-04-12/docs-2.json | 42 +-- service/codebuild/api.go | 23 +- service/codebuild/doc.go | 4 + service/migrationhub/api.go | 292 ++++++++++++++++++ .../migrationhubiface/interface.go | 7 + service/xray/api.go | 51 +-- 14 files changed, 490 insertions(+), 54 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 23d4010917a..1e537170a56 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,22 @@ +Release v1.27.2 (2020-01-07) +=== + +### Service Client Updates +* `service/AWSMigrationHub`: Updates service API, documentation, and paginators +* `service/codebuild`: Updates service API and documentation + * Add encryption key override to StartBuild API in AWS CodeBuild. +* `service/xray`: Updates service documentation + * Documentation updates for xray + +### SDK Enhancements +* `aws`: Add configuration option enable the SDK to unmarshal API response header maps to normalized lower case map keys. ([#3033](https://github.com/aws/aws-sdk-go/pull/3033)) + * Setting `aws.Config.LowerCaseHeaderMaps` to `true` will result in S3's X-Amz-Meta prefixed header to be unmarshaled to lower case Metadata member's map keys. + +### SDK Bugs +* `aws/ec2metadata` : Reduces request timeout for EC2Metadata client along with maximum number of retries ([#3066](https://github.com/aws/aws-sdk-go/pull/3066)) + * Reduces latency while fetching response from EC2Metadata client running in a container to around 3 seconds + * Fixes [#2972](https://github.com/aws/aws-sdk-go/issues/2972) + Release v1.27.1 (2020-01-06) === diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index 050c2a10d65..8a1927a39ca 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -1,10 +1,5 @@ ### SDK Features ### SDK Enhancements -* `aws`: Add configuration option enable the SDK to unmarshal API response header maps to normalized lower case map keys. ([#3033](https://github.com/aws/aws-sdk-go/pull/3033)) - * Setting `aws.Config.LowerCaseHeaderMaps` to `true` will result in S3's X-Amz-Meta prefixed header to be unmarshaled to lower case Metadata member's map keys. ### SDK Bugs -* `aws/ec2metadata` : Reduces request timeout for EC2Metadata client along with maximum number of retries ([#3066](https://github.com/aws/aws-sdk-go/pull/3066)) - * Reduces latency while fetching response from EC2Metadata client running in a container to around 3 seconds - * Fixes [#2972](https://github.com/aws/aws-sdk-go/issues/2972) diff --git a/aws/version.go b/aws/version.go index ebb47005780..616f9de01fa 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.27.1" +const SDKVersion = "1.27.2" diff --git a/models/apis/AWSMigrationHub/2017-05-31/api-2.json b/models/apis/AWSMigrationHub/2017-05-31/api-2.json index 3eb3a228df7..4c7f29c5f19 100644 --- a/models/apis/AWSMigrationHub/2017-05-31/api-2.json +++ b/models/apis/AWSMigrationHub/2017-05-31/api-2.json @@ -180,6 +180,22 @@ {"shape":"HomeRegionNotSetException"} ] }, + "ListApplicationStates":{ + "name":"ListApplicationStates", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListApplicationStatesRequest"}, + "output":{"shape":"ListApplicationStatesResult"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerError"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"InvalidInputException"}, + {"shape":"HomeRegionNotSetException"} + ] + }, "ListCreatedArtifacts":{ "name":"ListCreatedArtifacts", "http":{ @@ -320,6 +336,26 @@ "max":1600, "min":1 }, + "ApplicationIds":{ + "type":"list", + "member":{"shape":"ApplicationId"}, + "max":100, + "min":1 + }, + "ApplicationState":{ + "type":"structure", + "members":{ + "ApplicationId":{"shape":"ApplicationId"}, + "ApplicationStatus":{"shape":"ApplicationStatus"}, + "LastUpdatedTime":{"shape":"UpdateDateTime"} + } + }, + "ApplicationStateList":{ + "type":"list", + "member":{"shape":"ApplicationState"}, + "max":1000, + "min":0 + }, "ApplicationStatus":{ "type":"string", "enum":[ @@ -559,6 +595,21 @@ "max":100, "min":0 }, + "ListApplicationStatesRequest":{ + "type":"structure", + "members":{ + "ApplicationIds":{"shape":"ApplicationIds"}, + "NextToken":{"shape":"Token"}, + "MaxResults":{"shape":"MaxResults"} + } + }, + "ListApplicationStatesResult":{ + "type":"structure", + "members":{ + "ApplicationStateList":{"shape":"ApplicationStateList"}, + "NextToken":{"shape":"Token"} + } + }, "ListCreatedArtifactsRequest":{ "type":"structure", "required":[ diff --git a/models/apis/AWSMigrationHub/2017-05-31/docs-2.json b/models/apis/AWSMigrationHub/2017-05-31/docs-2.json index a085c8ea343..88d8b4a4860 100644 --- a/models/apis/AWSMigrationHub/2017-05-31/docs-2.json +++ b/models/apis/AWSMigrationHub/2017-05-31/docs-2.json @@ -11,6 +11,7 @@ "DisassociateCreatedArtifact": "

Disassociates a created artifact of an AWS resource with a migration task performed by a migration tool that was previously associated. This API has the following traits:

", "DisassociateDiscoveredResource": "

Disassociate an Application Discovery Service discovered resource from a migration task.

", "ImportMigrationTask": "

Registers a new migration task which represents a server, database, etc., being migrated to AWS by a migration tool.

This API is a prerequisite to calling the NotifyMigrationTaskState API as the migration tool must first register the migration task with Migration Hub.

", + "ListApplicationStates": "

Lists all the migration statuses for your applications. If you use the optional ApplicationIds parameter, only the migration statuses for those applications will be returned.

", "ListCreatedArtifacts": "

Lists the created artifacts attached to a given migration task in an update stream. This API has the following traits:

", "ListDiscoveredResources": "

Lists discovered resources associated with the given MigrationTask.

", "ListMigrationTasks": "

Lists all, or filtered by resource name, migration tasks associated with the user account making this call. This API has the following traits:

", @@ -28,13 +29,34 @@ "ApplicationId": { "base": null, "refs": { + "ApplicationIds$member": null, + "ApplicationState$ApplicationId": "

The configurationId from the Application Discovery Service that uniquely identifies an application.

", "DescribeApplicationStateRequest$ApplicationId": "

The configurationId in Application Discovery Service that uniquely identifies the grouped application.

", "NotifyApplicationStateRequest$ApplicationId": "

The configurationId in Application Discovery Service that uniquely identifies the grouped application.

" } }, + "ApplicationIds": { + "base": null, + "refs": { + "ListApplicationStatesRequest$ApplicationIds": "

The configurationIds from the Application Discovery Service that uniquely identifies your applications.

" + } + }, + "ApplicationState": { + "base": "

The state of an application discovered through Migration Hub import, the AWS Agentless Discovery Connector, or the AWS Application Discovery Agent.

", + "refs": { + "ApplicationStateList$member": null + } + }, + "ApplicationStateList": { + "base": null, + "refs": { + "ListApplicationStatesResult$ApplicationStateList": "

A list of Applications that exist in Application Discovery Service.

" + } + }, "ApplicationStatus": { "base": null, "refs": { + "ApplicationState$ApplicationStatus": "

The current status of an application.

", "DescribeApplicationStateResult$ApplicationStatus": "

Status of the application - Not Started, In-Progress, Complete.

", "NotifyApplicationStateRequest$Status": "

Status of the application - Not Started, In-Progress, Complete.

" } @@ -236,6 +258,16 @@ "MigrationTask$ResourceAttributeList": "

Information about the resource that is being migrated. This data will be used to map the task to a resource in the Application Discovery Service repository.

" } }, + "ListApplicationStatesRequest": { + "base": null, + "refs": { + } + }, + "ListApplicationStatesResult": { + "base": null, + "refs": { + } + }, "ListCreatedArtifactsRequest": { "base": null, "refs": { @@ -279,6 +311,7 @@ "MaxResults": { "base": null, "refs": { + "ListApplicationStatesRequest$MaxResults": "

Maximum number of results to be returned per page.

", "ListMigrationTasksRequest$MaxResults": "

Value to specify how many results are returned per page.

", "ListProgressUpdateStreamsRequest$MaxResults": "

Filter to limit the maximum number of results to list per page.

" } @@ -475,6 +508,8 @@ "Token": { "base": null, "refs": { + "ListApplicationStatesRequest$NextToken": "

If a NextToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in NextToken.

", + "ListApplicationStatesResult$NextToken": "

If a NextToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in NextToken.

", "ListCreatedArtifactsRequest$NextToken": "

If a NextToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in NextToken.

", "ListCreatedArtifactsResult$NextToken": "

If there are more created artifacts than the max result, return the next token to be passed to the next call as a bookmark of where to start from.

", "ListDiscoveredResourcesRequest$NextToken": "

If a NextToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in NextToken.

", @@ -493,6 +528,7 @@ "UpdateDateTime": { "base": null, "refs": { + "ApplicationState$LastUpdatedTime": "

The timestamp when the application status was last updated.

", "DescribeApplicationStateResult$LastUpdatedTime": "

The timestamp when the application status was last updated.

", "MigrationTask$UpdateDateTime": "

The timestamp when the task was gathered.

", "MigrationTaskSummary$UpdateDateTime": "

The timestamp when the task was gathered.

", diff --git a/models/apis/AWSMigrationHub/2017-05-31/paginators-1.json b/models/apis/AWSMigrationHub/2017-05-31/paginators-1.json index 2d785c8af28..3f2d290acf4 100644 --- a/models/apis/AWSMigrationHub/2017-05-31/paginators-1.json +++ b/models/apis/AWSMigrationHub/2017-05-31/paginators-1.json @@ -1,5 +1,11 @@ { "pagination": { + "ListApplicationStates": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "ApplicationStateList" + }, "ListCreatedArtifacts": { "input_token": "NextToken", "limit_key": "MaxResults", diff --git a/models/apis/codebuild/2016-10-06/api-2.json b/models/apis/codebuild/2016-10-06/api-2.json index e9806f33138..e0a3c5d304e 100644 --- a/models/apis/codebuild/2016-10-06/api-2.json +++ b/models/apis/codebuild/2016-10-06/api-2.json @@ -1676,6 +1676,7 @@ "privilegedModeOverride":{"shape":"WrapperBoolean"}, "timeoutInMinutesOverride":{"shape":"TimeOut"}, "queuedTimeoutInMinutesOverride":{"shape":"TimeOut"}, + "encryptionKeyOverride":{"shape":"NonEmptyString"}, "idempotencyToken":{"shape":"String"}, "logsConfigOverride":{"shape":"LogsConfig"}, "registryCredentialOverride":{"shape":"RegistryCredential"}, diff --git a/models/apis/codebuild/2016-10-06/docs-2.json b/models/apis/codebuild/2016-10-06/docs-2.json index e7359ea19e0..b8d8b752646 100644 --- a/models/apis/codebuild/2016-10-06/docs-2.json +++ b/models/apis/codebuild/2016-10-06/docs-2.json @@ -1,6 +1,6 @@ { "version": "2.0", - "service": "AWS CodeBuild

AWS CodeBuild is a fully managed build service in the cloud. AWS CodeBuild compiles your source code, runs unit tests, and produces artifacts that are ready to deploy. AWS CodeBuild eliminates the need to provision, manage, and scale your own build servers. It provides prepackaged build environments for the most popular programming languages and build tools, such as Apache Maven, Gradle, and more. You can also fully customize build environments in AWS CodeBuild to use your own build tools. AWS CodeBuild scales automatically to meet peak build requests. You pay only for the build time you consume. For more information about AWS CodeBuild, see the AWS CodeBuild User Guide.

AWS CodeBuild supports these operations:

", + "service": "AWS CodeBuild

AWS CodeBuild is a fully managed build service in the cloud. AWS CodeBuild compiles your source code, runs unit tests, and produces artifacts that are ready to deploy. AWS CodeBuild eliminates the need to provision, manage, and scale your own build servers. It provides prepackaged build environments for the most popular programming languages and build tools, such as Apache Maven, Gradle, and more. You can also fully customize build environments in AWS CodeBuild to use your own build tools. AWS CodeBuild scales automatically to meet peak build requests. You pay only for the build time you consume. For more information about AWS CodeBuild, see the AWS CodeBuild User Guide.

AWS CodeBuild supports these operations:

", "operations": { "BatchDeleteBuilds": "

Deletes one or more builds.

", "BatchGetBuilds": "

Gets information about one or more builds.

", @@ -384,7 +384,7 @@ "EnvironmentVariableType": { "base": null, "refs": { - "EnvironmentVariable$type": "

The type of environment variable. Valid values include:

" + "EnvironmentVariable$type": "

The type of environment variable. Valid values include:

" } }, "EnvironmentVariables": { @@ -675,6 +675,7 @@ "StartBuildInput$projectName": "

The name of the AWS CodeBuild build project to start running a build.

", "StartBuildInput$imageOverride": "

The name of an image for this build that overrides the one specified in the build project.

", "StartBuildInput$serviceRoleOverride": "

The name of a service role for this build that overrides the one specified in the build project.

", + "StartBuildInput$encryptionKeyOverride": "

The AWS Key Management Service (AWS KMS) customer master key (CMK) that overrides the one specified in the build project. The CMK key encrypts the build output artifacts.

You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.

You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format alias/alias-name ).

", "StopBuildInput$id": "

The ID of the build.

", "Subnets$member": null, "TestCase$reportArn": "

The ARN of the report to which the test case belongs.

", diff --git a/models/apis/xray/2016-04-12/docs-2.json b/models/apis/xray/2016-04-12/docs-2.json index 72f0b73111f..6b134701cbf 100644 --- a/models/apis/xray/2016-04-12/docs-2.json +++ b/models/apis/xray/2016-04-12/docs-2.json @@ -13,13 +13,13 @@ "GetSamplingRules": "

Retrieves all sampling rules.

", "GetSamplingStatisticSummaries": "

Retrieves information about recent sampling results for all sampling rules.

", "GetSamplingTargets": "

Requests a sampling quota for rules that the service is using to sample requests.

", - "GetServiceGraph": "

Retrieves a document that describes services that process incoming requests, and downstream services that they call as a result. Root services process incoming requests and make calls to downstream services. Root services are applications that use the AWS X-Ray SDK. Downstream services can be other applications, AWS resources, HTTP web APIs, or SQL databases.

", + "GetServiceGraph": "

Retrieves a document that describes services that process incoming requests, and downstream services that they call as a result. Root services process incoming requests and make calls to downstream services. Root services are applications that use the AWS X-Ray SDK. Downstream services can be other applications, AWS resources, HTTP web APIs, or SQL databases.

", "GetTimeSeriesServiceStatistics": "

Get an aggregation of service statistics defined by a specific time range.

", "GetTraceGraph": "

Retrieves a service graph for one or more specific trace IDs.

", - "GetTraceSummaries": "

Retrieves IDs and metadata for traces available for a specified time frame using an optional filter. To get the full traces, pass the trace IDs to BatchGetTraces.

A filter expression can target traced requests that hit specific service nodes or edges, have errors, or come from a known user. For example, the following filter expression targets traces that pass through api.example.com:

service(\"api.example.com\")

This filter expression finds traces that have an annotation named account with the value 12345:

annotation.account = \"12345\"

For a full list of indexed fields and keywords that you can use in filter expressions, see Using Filter Expressions in the AWS X-Ray Developer Guide.

", + "GetTraceSummaries": "

Retrieves IDs and annotations for traces available for a specified time frame using an optional filter. To get the full traces, pass the trace IDs to BatchGetTraces.

A filter expression can target traced requests that hit specific service nodes or edges, have errors, or come from a known user. For example, the following filter expression targets traces that pass through api.example.com:

service(\"api.example.com\")

This filter expression finds traces that have an annotation named account with the value 12345:

annotation.account = \"12345\"

For a full list of indexed fields and keywords that you can use in filter expressions, see Using Filter Expressions in the AWS X-Ray Developer Guide.

", "PutEncryptionConfig": "

Updates the encryption configuration for X-Ray data.

", "PutTelemetryRecords": "

Used by the AWS X-Ray daemon to upload telemetry.

", - "PutTraceSegments": "

Uploads segment documents to AWS X-Ray. The X-Ray SDK generates segment documents and sends them to the X-Ray daemon, which uploads them in batches. A segment document can be a completed segment, an in-progress segment, or an array of subsegments.

Segments must include the following fields. For the full segment document schema, see AWS X-Ray Segment Documents in the AWS X-Ray Developer Guide.

Required Segment Document Fields

A trace_id consists of three numbers separated by hyphens. For example, 1-58406520-a006649127e371903a2de979. This includes:

Trace ID Format

", + "PutTraceSegments": "

Uploads segment documents to AWS X-Ray. The X-Ray SDK generates segment documents and sends them to the X-Ray daemon, which uploads them in batches. A segment document can be a completed segment, an in-progress segment, or an array of subsegments.

Segments must include the following fields. For the full segment document schema, see AWS X-Ray Segment Documents in the AWS X-Ray Developer Guide.

Required Segment Document Fields

A trace_id consists of three numbers separated by hyphens. For example, 1-58406520-a006649127e371903a2de979. This includes:

Trace ID Format

", "UpdateGroup": "

Updates a group resource.

", "UpdateSamplingRule": "

Modifies a sampling rule's configuration.

" }, @@ -202,7 +202,7 @@ "EncryptionKeyId": { "base": null, "refs": { - "PutEncryptionConfigRequest$KeyId": "

An AWS KMS customer master key (CMK) in one of the following formats:

Omit this key if you set Type to NONE.

" + "PutEncryptionConfigRequest$KeyId": "

An AWS KMS customer master key (CMK) in one of the following formats:

Omit this key if you set Type to NONE.

" } }, "EncryptionStatus": { @@ -355,7 +355,7 @@ "GetGroupsNextToken": { "base": null, "refs": { - "GetGroupsRequest$NextToken": "

Pagination token. Not used.

" + "GetGroupsRequest$NextToken": "

Pagination token.

" } }, "GetGroupsRequest": { @@ -553,8 +553,8 @@ "ResponseTimeRootCauseEntity$Remote": "

A flag that denotes a remote subsegment.

", "ResponseTimeRootCauseService$Inferred": "

A Boolean value indicating if the service is inferred from the trace.

", "Service$Root": "

Indicates that the service was the first service to process a request.

", - "TraceSummary$HasFault": "

One or more of the segment documents has a 500 series error.

", - "TraceSummary$HasError": "

One or more of the segment documents has a 400 series error.

", + "TraceSummary$HasFault": "

The root segment document has a 500 series error.

", + "TraceSummary$HasError": "

The root segment document has a 400 series error.

", "TraceSummary$HasThrottle": "

One or more of the segment documents has a 429 throttling error.

", "TraceSummary$IsPartial": "

One or more of the segment documents is in progress.

" } @@ -908,8 +908,8 @@ "AliasNames$member": null, "AnnotationValue$StringValue": "

Value for a String annotation.

", "AvailabilityZoneDetail$Name": "

The name of a corresponding availability zone.

", - "BatchGetTracesRequest$NextToken": "

Pagination token. Not used.

", - "BatchGetTracesResult$NextToken": "

Pagination token. Not used.

", + "BatchGetTracesRequest$NextToken": "

Pagination token.

", + "BatchGetTracesResult$NextToken": "

Pagination token.

", "DeleteSamplingRuleRequest$RuleName": "

The name of the sampling rule. Specify a rule by either name or ARN, but not both.

", "DeleteSamplingRuleRequest$RuleARN": "

The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.

", "EncryptionConfig$KeyId": "

The ID of the customer master key (CMK) used for encryption, if applicable.

", @@ -921,17 +921,17 @@ "FaultRootCauseService$Name": "

The service name.

", "FaultRootCauseService$Type": "

The type associated to the service.

", "FaultRootCauseService$AccountId": "

The account ID associated to the service.

", - "GetGroupsResult$NextToken": "

Pagination token. Not used.

", - "GetSamplingRulesRequest$NextToken": "

Pagination token. Not used.

", - "GetSamplingRulesResult$NextToken": "

Pagination token. Not used.

", - "GetSamplingStatisticSummariesRequest$NextToken": "

Pagination token. Not used.

", - "GetSamplingStatisticSummariesResult$NextToken": "

Pagination token. Not used.

", - "GetServiceGraphRequest$NextToken": "

Pagination token. Not used.

", - "GetServiceGraphResult$NextToken": "

Pagination token. Not used.

", - "GetTimeSeriesServiceStatisticsRequest$NextToken": "

Pagination token. Not used.

", - "GetTimeSeriesServiceStatisticsResult$NextToken": "

Pagination token. Not used.

", - "GetTraceGraphRequest$NextToken": "

Pagination token. Not used.

", - "GetTraceGraphResult$NextToken": "

Pagination token. Not used.

", + "GetGroupsResult$NextToken": "

Pagination token.

", + "GetSamplingRulesRequest$NextToken": "

Pagination token.

", + "GetSamplingRulesResult$NextToken": "

Pagination token.

", + "GetSamplingStatisticSummariesRequest$NextToken": "

Pagination token.

", + "GetSamplingStatisticSummariesResult$NextToken": "

Pagination token.

", + "GetServiceGraphRequest$NextToken": "

Pagination token.

", + "GetServiceGraphResult$NextToken": "

Pagination token.

", + "GetTimeSeriesServiceStatisticsRequest$NextToken": "

Pagination token.

", + "GetTimeSeriesServiceStatisticsResult$NextToken": "

Pagination token.

", + "GetTraceGraphRequest$NextToken": "

Pagination token.

", + "GetTraceGraphResult$NextToken": "

Pagination token.

", "GetTraceSummariesRequest$NextToken": "

Specify the pagination token returned by a previous request to retrieve the next page of results.

", "GetTraceSummariesResult$NextToken": "

If the requested time frame contained more than one page of results, you can use this token to retrieve the next page. The first page contains the most most recent results, closest to the end of the time frame.

", "Group$GroupName": "

The unique case-sensitive name of the group.

", @@ -1102,7 +1102,7 @@ "TraceSummaryList": { "base": null, "refs": { - "GetTraceSummariesResult$TraceSummaries": "

Trace IDs and metadata for traces that were found in the specified time frame.

" + "GetTraceSummariesResult$TraceSummaries": "

Trace IDs and annotations for traces that were found in the specified time frame.

" } }, "TraceUser": { diff --git a/service/codebuild/api.go b/service/codebuild/api.go index 6ba13fb8ad1..7bb6e2e4b84 100644 --- a/service/codebuild/api.go +++ b/service/codebuild/api.go @@ -4927,7 +4927,8 @@ type EnvironmentVariable struct { // * PARAMETER_STORE: An environment variable stored in Amazon EC2 Systems // Manager Parameter Store. // - // * PLAINTEXT: An environment variable in plain text format. + // * PLAINTEXT: An environment variable in plain text format. This is the + // default value. // // * SECRETS_MANAGER: An environment variable stored in AWS Secrets Manager. Type *string `locationName:"type" type:"string" enum:"EnvironmentVariableType"` @@ -8247,6 +8248,17 @@ type StartBuildInput struct { // in the build project. ComputeTypeOverride *string `locationName:"computeTypeOverride" type:"string" enum:"ComputeType"` + // The AWS Key Management Service (AWS KMS) customer master key (CMK) that overrides + // the one specified in the build project. The CMK key encrypts the build output + // artifacts. + // + // You can use a cross-account KMS key to encrypt the build output artifacts + // if your service role has permission to that key. + // + // You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, + // the CMK's alias (using the format alias/alias-name ). + EncryptionKeyOverride *string `locationName:"encryptionKeyOverride" min:"1" type:"string"` + // A container type for this build that overrides the one specified in the build // project. EnvironmentTypeOverride *string `locationName:"environmentTypeOverride" type:"string" enum:"EnvironmentType"` @@ -8393,6 +8405,9 @@ func (s StartBuildInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *StartBuildInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StartBuildInput"} + if s.EncryptionKeyOverride != nil && len(*s.EncryptionKeyOverride) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EncryptionKeyOverride", 1)) + } if s.ImageOverride != nil && len(*s.ImageOverride) < 1 { invalidParams.Add(request.NewErrParamMinLen("ImageOverride", 1)) } @@ -8518,6 +8533,12 @@ func (s *StartBuildInput) SetComputeTypeOverride(v string) *StartBuildInput { return s } +// SetEncryptionKeyOverride sets the EncryptionKeyOverride field's value. +func (s *StartBuildInput) SetEncryptionKeyOverride(v string) *StartBuildInput { + s.EncryptionKeyOverride = &v + return s +} + // SetEnvironmentTypeOverride sets the EnvironmentTypeOverride field's value. func (s *StartBuildInput) SetEnvironmentTypeOverride(v string) *StartBuildInput { s.EnvironmentTypeOverride = &v diff --git a/service/codebuild/doc.go b/service/codebuild/doc.go index 2528f5f3534..d1b33a4fe72 100644 --- a/service/codebuild/doc.go +++ b/service/codebuild/doc.go @@ -28,6 +28,10 @@ // language runtime, and tools that AWS CodeBuild uses to run a build. You // can add tags to build projects to help manage your resources and costs. // +// * BatchGetReportGroups: Returns an array of report groups. +// +// * BatchGetReports: Returns an array of reports. +// // * CreateProject: Creates a build project. // // * CreateReportGroup: Creates a report group. A report group contains a diff --git a/service/migrationhub/api.go b/service/migrationhub/api.go index 7860b3c3039..589dac0cc14 100644 --- a/service/migrationhub/api.go +++ b/service/migrationhub/api.go @@ -1037,6 +1037,160 @@ func (c *MigrationHub) ImportMigrationTaskWithContext(ctx aws.Context, input *Im return out, req.Send() } +const opListApplicationStates = "ListApplicationStates" + +// ListApplicationStatesRequest generates a "aws/request.Request" representing the +// client's request for the ListApplicationStates 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 ListApplicationStates for more information on using the ListApplicationStates +// 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 ListApplicationStatesRequest method. +// req, resp := client.ListApplicationStatesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/ListApplicationStates +func (c *MigrationHub) ListApplicationStatesRequest(input *ListApplicationStatesInput) (req *request.Request, output *ListApplicationStatesOutput) { + op := &request.Operation{ + Name: opListApplicationStates, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListApplicationStatesInput{} + } + + output = &ListApplicationStatesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListApplicationStates API operation for AWS Migration Hub. +// +// Lists all the migration statuses for your applications. If you use the optional +// ApplicationIds parameter, only the migration statuses for those applications +// will be returned. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Migration Hub's +// API operation ListApplicationStates for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You do not have sufficient access to perform this action. +// +// * ErrCodeInternalServerError "InternalServerError" +// Exception raised when an internal, configuration, or dependency error is +// encountered. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Exception raised when there is an internal, configuration, or dependency +// error encountered. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// Exception raised when the provided input violates a policy constraint or +// is entered in the wrong format or data type. +// +// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// The home region is not set. Set the home region to continue. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/ListApplicationStates +func (c *MigrationHub) ListApplicationStates(input *ListApplicationStatesInput) (*ListApplicationStatesOutput, error) { + req, out := c.ListApplicationStatesRequest(input) + return out, req.Send() +} + +// ListApplicationStatesWithContext is the same as ListApplicationStates with the addition of +// the ability to pass a context and additional request options. +// +// See ListApplicationStates 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 *MigrationHub) ListApplicationStatesWithContext(ctx aws.Context, input *ListApplicationStatesInput, opts ...request.Option) (*ListApplicationStatesOutput, error) { + req, out := c.ListApplicationStatesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListApplicationStatesPages iterates over the pages of a ListApplicationStates operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListApplicationStates 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 ListApplicationStates operation. +// pageNum := 0 +// err := client.ListApplicationStatesPages(params, +// func(page *migrationhub.ListApplicationStatesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *MigrationHub) ListApplicationStatesPages(input *ListApplicationStatesInput, fn func(*ListApplicationStatesOutput, bool) bool) error { + return c.ListApplicationStatesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListApplicationStatesPagesWithContext same as ListApplicationStatesPages 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 *MigrationHub) ListApplicationStatesPagesWithContext(ctx aws.Context, input *ListApplicationStatesInput, fn func(*ListApplicationStatesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListApplicationStatesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListApplicationStatesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListApplicationStatesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opListCreatedArtifacts = "ListCreatedArtifacts" // ListCreatedArtifactsRequest generates a "aws/request.Request" representing the @@ -2044,6 +2198,50 @@ func (c *MigrationHub) PutResourceAttributesWithContext(ctx aws.Context, input * return out, req.Send() } +// The state of an application discovered through Migration Hub import, the +// AWS Agentless Discovery Connector, or the AWS Application Discovery Agent. +type ApplicationState struct { + _ struct{} `type:"structure"` + + // The configurationId from the Application Discovery Service that uniquely + // identifies an application. + ApplicationId *string `min:"1" type:"string"` + + // The current status of an application. + ApplicationStatus *string `type:"string" enum:"ApplicationStatus"` + + // The timestamp when the application status was last updated. + LastUpdatedTime *time.Time `type:"timestamp"` +} + +// String returns the string representation +func (s ApplicationState) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApplicationState) GoString() string { + return s.String() +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *ApplicationState) SetApplicationId(v string) *ApplicationState { + s.ApplicationId = &v + return s +} + +// SetApplicationStatus sets the ApplicationStatus field's value. +func (s *ApplicationState) SetApplicationStatus(v string) *ApplicationState { + s.ApplicationStatus = &v + return s +} + +// SetLastUpdatedTime sets the LastUpdatedTime field's value. +func (s *ApplicationState) SetLastUpdatedTime(v time.Time) *ApplicationState { + s.LastUpdatedTime = &v + return s +} + type AssociateCreatedArtifactInput struct { _ struct{} `type:"structure"` @@ -2927,6 +3125,100 @@ func (s ImportMigrationTaskOutput) GoString() string { return s.String() } +type ListApplicationStatesInput struct { + _ struct{} `type:"structure"` + + // The configurationIds from the Application Discovery Service that uniquely + // identifies your applications. + ApplicationIds []*string `min:"1" type:"list"` + + // Maximum number of results to be returned per page. + MaxResults *int64 `min:"1" type:"integer"` + + // If a NextToken was returned by a previous call, there are more results available. + // To retrieve the next page of results, make the call again using the returned + // token in NextToken. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListApplicationStatesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListApplicationStatesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListApplicationStatesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListApplicationStatesInput"} + if s.ApplicationIds != nil && len(s.ApplicationIds) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationIds", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationIds sets the ApplicationIds field's value. +func (s *ListApplicationStatesInput) SetApplicationIds(v []*string) *ListApplicationStatesInput { + s.ApplicationIds = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListApplicationStatesInput) SetMaxResults(v int64) *ListApplicationStatesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListApplicationStatesInput) SetNextToken(v string) *ListApplicationStatesInput { + s.NextToken = &v + return s +} + +type ListApplicationStatesOutput struct { + _ struct{} `type:"structure"` + + // A list of Applications that exist in Application Discovery Service. + ApplicationStateList []*ApplicationState `type:"list"` + + // If a NextToken was returned by a previous call, there are more results available. + // To retrieve the next page of results, make the call again using the returned + // token in NextToken. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListApplicationStatesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListApplicationStatesOutput) GoString() string { + return s.String() +} + +// SetApplicationStateList sets the ApplicationStateList field's value. +func (s *ListApplicationStatesOutput) SetApplicationStateList(v []*ApplicationState) *ListApplicationStatesOutput { + s.ApplicationStateList = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListApplicationStatesOutput) SetNextToken(v string) *ListApplicationStatesOutput { + s.NextToken = &v + return s +} + type ListCreatedArtifactsInput struct { _ struct{} `type:"structure"` diff --git a/service/migrationhub/migrationhubiface/interface.go b/service/migrationhub/migrationhubiface/interface.go index bc9f24e612c..be1bf931413 100644 --- a/service/migrationhub/migrationhubiface/interface.go +++ b/service/migrationhub/migrationhubiface/interface.go @@ -96,6 +96,13 @@ type MigrationHubAPI interface { ImportMigrationTaskWithContext(aws.Context, *migrationhub.ImportMigrationTaskInput, ...request.Option) (*migrationhub.ImportMigrationTaskOutput, error) ImportMigrationTaskRequest(*migrationhub.ImportMigrationTaskInput) (*request.Request, *migrationhub.ImportMigrationTaskOutput) + ListApplicationStates(*migrationhub.ListApplicationStatesInput) (*migrationhub.ListApplicationStatesOutput, error) + ListApplicationStatesWithContext(aws.Context, *migrationhub.ListApplicationStatesInput, ...request.Option) (*migrationhub.ListApplicationStatesOutput, error) + ListApplicationStatesRequest(*migrationhub.ListApplicationStatesInput) (*request.Request, *migrationhub.ListApplicationStatesOutput) + + ListApplicationStatesPages(*migrationhub.ListApplicationStatesInput, func(*migrationhub.ListApplicationStatesOutput, bool) bool) error + ListApplicationStatesPagesWithContext(aws.Context, *migrationhub.ListApplicationStatesInput, func(*migrationhub.ListApplicationStatesOutput, bool) bool, ...request.Option) error + ListCreatedArtifacts(*migrationhub.ListCreatedArtifactsInput) (*migrationhub.ListCreatedArtifactsOutput, error) ListCreatedArtifactsWithContext(aws.Context, *migrationhub.ListCreatedArtifactsInput, ...request.Option) (*migrationhub.ListCreatedArtifactsOutput, error) ListCreatedArtifactsRequest(*migrationhub.ListCreatedArtifactsInput) (*request.Request, *migrationhub.ListCreatedArtifactsOutput) diff --git a/service/xray/api.go b/service/xray/api.go index a8aa010a6c6..0c935e786fe 100644 --- a/service/xray/api.go +++ b/service/xray/api.go @@ -1212,8 +1212,9 @@ func (c *XRay) GetServiceGraphRequest(input *GetServiceGraphInput) (req *request // Retrieves a document that describes services that process incoming requests, // and downstream services that they call as a result. Root services process // incoming requests and make calls to downstream services. Root services are -// applications that use the AWS X-Ray SDK. Downstream services can be other -// applications, AWS resources, HTTP web APIs, or SQL databases. +// applications that use the AWS X-Ray SDK (https://docs.aws.amazon.com/xray/index.html). +// Downstream services can be other applications, AWS resources, HTTP web APIs, +// or SQL databases. // // 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 @@ -1633,7 +1634,7 @@ func (c *XRay) GetTraceSummariesRequest(input *GetTraceSummariesInput) (req *req // GetTraceSummaries API operation for AWS X-Ray. // -// Retrieves IDs and metadata for traces available for a specified time frame +// Retrieves IDs and annotations for traces available for a specified time frame // using an optional filter. To get the full traces, pass the trace IDs to BatchGetTraces. // // A filter expression can target traced requests that hit specific service @@ -1948,10 +1949,10 @@ func (c *XRay) PutTraceSegmentsRequest(input *PutTraceSegmentsInput) (req *reque // PutTraceSegments API operation for AWS X-Ray. // -// Uploads segment documents to AWS X-Ray. The X-Ray SDK generates segment documents -// and sends them to the X-Ray daemon, which uploads them in batches. A segment -// document can be a completed segment, an in-progress segment, or an array -// of subsegments. +// Uploads segment documents to AWS X-Ray. The X-Ray SDK (https://docs.aws.amazon.com/xray/index.html) +// generates segment documents and sends them to the X-Ray daemon, which uploads +// them in batches. A segment document can be a completed segment, an in-progress +// segment, or an array of subsegments. // // Segments must include the following fields. For the full segment document // schema, see AWS X-Ray Segment Documents (https://docs.aws.amazon.com/xray/latest/devguide/xray-api-segmentdocuments.html) @@ -2369,7 +2370,7 @@ func (s *BackendConnectionErrors) SetUnknownHostCount(v int64) *BackendConnectio type BatchGetTracesInput struct { _ struct{} `type:"structure"` - // Pagination token. Not used. + // Pagination token. NextToken *string `type:"string"` // Specify the trace IDs of requests for which to retrieve segments. @@ -2416,7 +2417,7 @@ func (s *BatchGetTracesInput) SetTraceIds(v []*string) *BatchGetTracesInput { type BatchGetTracesOutput struct { _ struct{} `type:"structure"` - // Pagination token. Not used. + // Pagination token. NextToken *string `type:"string"` // Full traces for the specified requests. @@ -3351,7 +3352,7 @@ func (s *GetGroupOutput) SetGroup(v *Group) *GetGroupOutput { type GetGroupsInput struct { _ struct{} `type:"structure"` - // Pagination token. Not used. + // Pagination token. NextToken *string `min:"1" type:"string"` } @@ -3390,7 +3391,7 @@ type GetGroupsOutput struct { // The collection of all active groups. Groups []*GroupSummary `type:"list"` - // Pagination token. Not used. + // Pagination token. NextToken *string `type:"string"` } @@ -3419,7 +3420,7 @@ func (s *GetGroupsOutput) SetNextToken(v string) *GetGroupsOutput { type GetSamplingRulesInput struct { _ struct{} `type:"structure"` - // Pagination token. Not used. + // Pagination token. NextToken *string `type:"string"` } @@ -3442,7 +3443,7 @@ func (s *GetSamplingRulesInput) SetNextToken(v string) *GetSamplingRulesInput { type GetSamplingRulesOutput struct { _ struct{} `type:"structure"` - // Pagination token. Not used. + // Pagination token. NextToken *string `type:"string"` // Rule definitions and metadata. @@ -3474,7 +3475,7 @@ func (s *GetSamplingRulesOutput) SetSamplingRuleRecords(v []*SamplingRuleRecord) type GetSamplingStatisticSummariesInput struct { _ struct{} `type:"structure"` - // Pagination token. Not used. + // Pagination token. NextToken *string `type:"string"` } @@ -3497,7 +3498,7 @@ func (s *GetSamplingStatisticSummariesInput) SetNextToken(v string) *GetSampling type GetSamplingStatisticSummariesOutput struct { _ struct{} `type:"structure"` - // Pagination token. Not used. + // Pagination token. NextToken *string `type:"string"` // Information about the number of requests instrumented for each sampling rule. @@ -3631,7 +3632,7 @@ type GetServiceGraphInput struct { // The name of a group to generate a graph based on. GroupName *string `min:"1" type:"string"` - // Pagination token. Not used. + // Pagination token. NextToken *string `type:"string"` // The start of the time frame for which to generate a graph. @@ -3713,7 +3714,7 @@ type GetServiceGraphOutput struct { // The end of the time frame for which the graph was generated. EndTime *time.Time `type:"timestamp"` - // Pagination token. Not used. + // Pagination token. NextToken *string `type:"string"` // The services that have processed a traced request during the specified time @@ -3783,7 +3784,7 @@ type GetTimeSeriesServiceStatisticsInput struct { // The case-sensitive name of the group for which to pull statistics from. GroupName *string `min:"1" type:"string"` - // Pagination token. Not used. + // Pagination token. NextToken *string `type:"string"` // Aggregation period in seconds. @@ -3880,7 +3881,7 @@ type GetTimeSeriesServiceStatisticsOutput struct { // the group's filter expression. ContainsOldGroupVersions *bool `type:"boolean"` - // Pagination token. Not used. + // Pagination token. NextToken *string `type:"string"` // The collection of statistics. @@ -3918,7 +3919,7 @@ func (s *GetTimeSeriesServiceStatisticsOutput) SetTimeSeriesServiceStatistics(v type GetTraceGraphInput struct { _ struct{} `type:"structure"` - // Pagination token. Not used. + // Pagination token. NextToken *string `type:"string"` // Trace IDs of requests for which to generate a service graph. @@ -3965,7 +3966,7 @@ func (s *GetTraceGraphInput) SetTraceIds(v []*string) *GetTraceGraphInput { type GetTraceGraphOutput struct { _ struct{} `type:"structure"` - // Pagination token. Not used. + // Pagination token. NextToken *string `type:"string"` // The services that have processed one of the specified requests. @@ -4106,7 +4107,8 @@ type GetTraceSummariesOutput struct { // most most recent results, closest to the end of the time frame. NextToken *string `type:"string"` - // Trace IDs and metadata for traces that were found in the specified time frame. + // Trace IDs and annotations for traces that were found in the specified time + // frame. TraceSummaries []*TraceSummary `type:"list"` // The total number of traces processed, including traces that did not match @@ -4358,6 +4360,7 @@ type PutEncryptionConfigInput struct { // * Alias - The name of the key. For example, alias/MyKey. // // * Key ID - The KMS key ID of the key. For example, ae4aa6d49-a4d8-9df9-a475-4ff6d7898456. + // AWS X-Ray does not support asymmetric CMKs. // // * ARN - The full Amazon Resource Name of the key ID or alias. For example, // arn:aws:kms:us-east-2:123456789012:key/ae4aa6d49-a4d8-9df9-a475-4ff6d7898456. @@ -5920,10 +5923,10 @@ type TraceSummary struct { // segments. FaultRootCauses []*FaultRootCause `type:"list"` - // One or more of the segment documents has a 400 series error. + // The root segment document has a 400 series error. HasError *bool `type:"boolean"` - // One or more of the segment documents has a 500 series error. + // The root segment document has a 500 series error. HasFault *bool `type:"boolean"` // One or more of the segment documents has a 429 throttling error.