diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b1c9ffb565..5cf4d1f157e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +Release v1.51.8 (2024-03-26) +=== + +### Service Client Updates +* `service/bedrock-agent-runtime`: Updates service API and documentation +* `service/ce`: Updates service API, documentation, and paginators +* `service/ec2`: Updates service API and documentation + * Documentation updates for Elastic Compute Cloud (EC2). +* `service/ecs`: Updates service documentation + * This is a documentation update for Amazon ECS. +* `service/finspace`: Updates service API and documentation + Release v1.51.7 (2024-03-25) === diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go index b6d122c154a..0ff089babe4 100644 --- a/aws/endpoints/defaults.go +++ b/aws/endpoints/defaults.go @@ -19980,12 +19980,30 @@ var awsPartition = partition{ }, "media-pipelines-chime": service{ Endpoints: serviceEndpoints{ + endpointKey{ + Region: "ap-northeast-1", + }: endpoint{}, + endpointKey{ + Region: "ap-northeast-2", + }: endpoint{}, + endpointKey{ + Region: "ap-south-1", + }: endpoint{}, endpointKey{ Region: "ap-southeast-1", }: endpoint{}, + endpointKey{ + Region: "ap-southeast-2", + }: endpoint{}, + endpointKey{ + Region: "ca-central-1", + }: endpoint{}, endpointKey{ Region: "eu-central-1", }: endpoint{}, + endpointKey{ + Region: "eu-west-2", + }: endpoint{}, endpointKey{ Region: "us-east-1", }: endpoint{}, diff --git a/aws/version.go b/aws/version.go index 46674253615..f31edbbc909 100644 --- a/aws/version.go +++ b/aws/version.go @@ -5,4 +5,4 @@ package aws const SDKName = "aws-sdk-go" // SDKVersion is the version of this SDK -const SDKVersion = "1.51.7" +const SDKVersion = "1.51.8" diff --git a/models/apis/bedrock-agent-runtime/2023-07-26/api-2.json b/models/apis/bedrock-agent-runtime/2023-07-26/api-2.json index 83b6ee2cc86..14f6990d199 100644 --- a/models/apis/bedrock-agent-runtime/2023-07-26/api-2.json +++ b/models/apis/bedrock-agent-runtime/2023-07-26/api-2.json @@ -232,6 +232,12 @@ "textResponsePart":{"shape":"TextResponsePart"} } }, + "GenerationConfiguration":{ + "type":"structure", + "members":{ + "promptTemplate":{"shape":"PromptTemplate"} + } + }, "InferenceConfiguration":{ "type":"structure", "members":{ @@ -397,6 +403,7 @@ "modelArn" ], "members":{ + "generationConfiguration":{"shape":"GenerationConfiguration"}, "knowledgeBaseId":{"shape":"KnowledgeBaseId"}, "modelArn":{"shape":"BedrockModelArn"}, "retrievalConfiguration":{"shape":"KnowledgeBaseRetrievalConfiguration"} @@ -415,7 +422,7 @@ "KnowledgeBaseVectorSearchConfigurationNumberOfResultsInteger":{ "type":"integer", "box":true, - "max":25, + "max":100, "min":1 }, "LambdaArn":{"type":"string"}, @@ -557,6 +564,12 @@ "key":{"shape":"String"}, "value":{"shape":"String"} }, + "PromptTemplate":{ + "type":"structure", + "members":{ + "textPromptTemplate":{"shape":"TextPromptTemplate"} + } + }, "PromptText":{ "type":"string", "sensitive":true @@ -824,6 +837,12 @@ "max":1, "min":0 }, + "TextPromptTemplate":{ + "type":"string", + "max":4000, + "min":1, + "sensitive":true + }, "TextResponsePart":{ "type":"structure", "members":{ diff --git a/models/apis/bedrock-agent-runtime/2023-07-26/docs-2.json b/models/apis/bedrock-agent-runtime/2023-07-26/docs-2.json index 5a89eb186ca..47db6d4dacd 100644 --- a/models/apis/bedrock-agent-runtime/2023-07-26/docs-2.json +++ b/models/apis/bedrock-agent-runtime/2023-07-26/docs-2.json @@ -4,7 +4,7 @@ "operations": { "InvokeAgent": "

Sends a prompt for the agent to process and respond to.

The CLI doesn't support InvokeAgent.

The response is returned in the bytes field of the chunk object.

", "Retrieve": "

Queries a knowledge base and retrieves information from it.

", - "RetrieveAndGenerate": "

Queries a knowledge base and generates responses based on the retrieved results. The response cites up to five sources but only selects the ones that are relevant to the query.

The numberOfResults field is currently unsupported for RetrieveAndGenerate. Don't include it in the vectorSearchConfiguration object.

" + "RetrieveAndGenerate": "

Queries a knowledge base and generates responses based on the retrieved results. The response cites up to five sources but only selects the ones that are relevant to the query.

" }, "shapes": { "AccessDeniedException": { @@ -84,7 +84,7 @@ } }, "Citation": { - "base": "

An object containing a segment of the generated response that is based on a source in the knowledge base, alongside information about the source.

", + "base": "

An object containing a segment of the generated response that is based on a source in the knowledge base, alongside information about the source.

This data type is used in the following API operations:

", "refs": { "Citations$member": null } @@ -152,11 +152,17 @@ } }, "GeneratedResponsePart": { - "base": "

Contains metadata about a part of the generated response that is accompanied by a citation.

", + "base": "

Contains metadata about a part of the generated response that is accompanied by a citation.

This data type is used in the following API operations:

", "refs": { "Citation$generatedResponsePart": "

Contains the generated response and metadata

" } }, + "GenerationConfiguration": { + "base": "

Contains configurations for response generation based on the knowledge base query results.

This data type is used in the following API operations:

", + "refs": { + "KnowledgeBaseRetrieveAndGenerateConfiguration$generationConfiguration": "

Contains configurations for response generation based on the knowwledge base query results.

" + } + }, "InferenceConfiguration": { "base": "

Specifications about the inference parameters that were provided alongside the prompt. These are specified in the PromptOverrideConfiguration object that was set when the agent was created or updated. For more information, see Inference parameters for foundation models.

", "refs": { @@ -229,9 +235,9 @@ } }, "KnowledgeBaseQuery": { - "base": "

Contains the query made to the knowledge base.

", + "base": "

Contains the query made to the knowledge base.

This data type is used in the following API operations:

", "refs": { - "RetrieveRequest$retrievalQuery": "

The query to send the knowledge base.

" + "RetrieveRequest$retrievalQuery": "

Contains the query to send the knowledge base.

" } }, "KnowledgeBaseQueryTextString": { @@ -241,14 +247,14 @@ } }, "KnowledgeBaseRetrievalConfiguration": { - "base": "

Contains details about how the results should be returned.

This data type is used in the following API operations:

", + "base": "

Contains configurations for the knowledge base query and retrieval process. For more information, see Query configurations.

This data type is used in the following API operations:

", "refs": { "KnowledgeBaseRetrieveAndGenerateConfiguration$retrievalConfiguration": "

Contains configurations for how to retrieve and return the knowledge base query.

", - "RetrieveRequest$retrievalConfiguration": "

Contains details about how the results should be returned.

" + "RetrieveRequest$retrievalConfiguration": "

Contains configurations for the knowledge base query and retrieval process. For more information, see Query configurations.

" } }, "KnowledgeBaseRetrievalResult": { - "base": "

Details about a result from querying the knowledge base.

", + "base": "

Details about a result from querying the knowledge base.

This data type is used in the following API operations:

", "refs": { "KnowledgeBaseRetrievalResults$member": null } @@ -260,21 +266,21 @@ } }, "KnowledgeBaseRetrieveAndGenerateConfiguration": { - "base": "

Contains details about the resource being queried.

", + "base": "

Contains details about the resource being queried.

This data type is used in the following API operations:

", "refs": { "RetrieveAndGenerateConfiguration$knowledgeBaseConfiguration": "

Contains details about the resource being queried.

" } }, "KnowledgeBaseVectorSearchConfiguration": { - "base": "

Configurations for how to carry out the search.

", + "base": "

Configurations for how to perform the search query and return results. For more information, see Query configurations.

This data type is used in the following API operations:

", "refs": { - "KnowledgeBaseRetrievalConfiguration$vectorSearchConfiguration": "

Contains details about how the results from the vector search should be returned.

" + "KnowledgeBaseRetrievalConfiguration$vectorSearchConfiguration": "

Contains details about how the results from the vector search should be returned. For more information, see Query configurations.

" } }, "KnowledgeBaseVectorSearchConfigurationNumberOfResultsInteger": { "base": null, "refs": { - "KnowledgeBaseVectorSearchConfiguration$numberOfResults": "

The number of results to return.

The numberOfResults field is currently unsupported for RetrieveAndGenerate. Don't include it in this field if you are sending a RetrieveAndGenerate request.

" + "KnowledgeBaseVectorSearchConfiguration$numberOfResults": "

The number of source chunks to retrieve.

" } }, "LambdaArn": { @@ -411,6 +417,12 @@ "SessionState$promptSessionAttributes": "

Contains attributes that persist across a prompt and the values of those attributes. These attributes replace the $prompt_session_attributes$ placeholder variable in the orchestration prompt template. For more information, see Prompt template placeholder variables.

" } }, + "PromptTemplate": { + "base": "

Contains the template for the prompt that's sent to the model for response generation. For more information, see Knowledge base prompt templates.

This data type is used in the following API operations:

", + "refs": { + "GenerationConfiguration$promptTemplate": "

Contains the template for the prompt that's sent to the model for response generation.

" + } + }, "PromptText": { "base": null, "refs": { @@ -461,14 +473,14 @@ } }, "RetrievalResultContent": { - "base": "

Contains the cited text from the data source.

", + "base": "

Contains the cited text from the data source.

This data type is used in the following API operations:

", "refs": { "KnowledgeBaseRetrievalResult$content": "

Contains a chunk of text from a data source in the knowledge base.

", "RetrievedReference$content": "

Contains the cited text from the data source.

" } }, "RetrievalResultLocation": { - "base": "

Contains information about the location of the data source.

", + "base": "

Contains information about the location of the data source.

This data type is used in the following API operations:

", "refs": { "KnowledgeBaseRetrievalResult$location": "

Contains information about the location of the data source.

", "RetrievedReference$location": "

Contains information about the location of the data source.

" @@ -481,21 +493,21 @@ } }, "RetrievalResultS3Location": { - "base": "

Contains the S3 location of the data source.

", + "base": "

Contains the S3 location of the data source.

This data type is used in the following API operations:

", "refs": { "RetrievalResultLocation$s3Location": "

Contains the S3 location of the data source.

" } }, "RetrieveAndGenerateConfiguration": { - "base": "

Contains details about the resource being queried.

", + "base": "

Contains details about the resource being queried.

This data type is used in the following API operations:

", "refs": { - "RetrieveAndGenerateRequest$retrieveAndGenerateConfiguration": "

Contains details about the resource being queried and the foundation model used for generation.

" + "RetrieveAndGenerateRequest$retrieveAndGenerateConfiguration": "

Contains configurations for the knowledge base query and retrieval process. For more information, see Query configurations.

" } }, "RetrieveAndGenerateInput": { - "base": "

Contains the query made to the knowledge base.

", + "base": "

Contains the query made to the knowledge base.

This data type is used in the following API operations:

", "refs": { - "RetrieveAndGenerateRequest$input": "

Contains the query made to the knowledge base.

" + "RetrieveAndGenerateRequest$input": "

Contains the query to be made to the knowledge base.

" } }, "RetrieveAndGenerateInputTextString": { @@ -505,7 +517,7 @@ } }, "RetrieveAndGenerateOutput": { - "base": "

Contains the response generated from querying the knowledge base.

", + "base": "

Contains the response generated from querying the knowledge base.

This data type is used in the following API operations:

", "refs": { "RetrieveAndGenerateResponse$output": "

Contains the response generated from querying the knowledge base.

" } @@ -521,7 +533,7 @@ } }, "RetrieveAndGenerateSessionConfiguration": { - "base": "

Contains configuration about the session with the knowledge base.

", + "base": "

Contains configuration about the session with the knowledge base.

This data type is used in the following API operations:

", "refs": { "RetrieveAndGenerateRequest$sessionConfiguration": "

Contains details about the session with the knowledge base.

" } @@ -543,7 +555,7 @@ } }, "RetrievedReference": { - "base": "

Contains metadata about a sources cited for the generated response.

", + "base": "

Contains metadata about a source cited for the generated response.

This data type is used in the following API operations:

", "refs": { "RetrievedReferences$member": null } @@ -584,9 +596,9 @@ } }, "SessionState": { - "base": "

Contains parameters that specify various attributes that persist across a session or prompt. You can define session state attributes as key-value pairs when writing a Lambda function for an action group or pass them when making an InvokeAgent request. Use session state attributes to control and provide conversational context for your agent and to help customize your agent's behavior. For more information, see Session context.

", + "base": "

Contains parameters that specify various attributes that persist across a session or prompt. You can define session state attributes as key-value pairs when writing a Lambda function for an action group or pass them when making an InvokeAgent request. Use session state attributes to control and provide conversational context for your agent and to help customize your agent's behavior. For more information, see Control session context.

", "refs": { - "InvokeAgentRequest$sessionState": "

Contains parameters that specify various attributes of the session.

" + "InvokeAgentRequest$sessionState": "

Contains parameters that specify various attributes of the session. For more information, see Control session context.

" } }, "Source": { @@ -596,7 +608,7 @@ } }, "Span": { - "base": "

Contains information about where the text with a citation begins and ends in the generated output.

", + "base": "

Contains information about where the text with a citation begins and ends in the generated output.

This data type is used in the following API operations:

", "refs": { "TextResponsePart$span": "

Contains information about where the text with a citation begins and ends in the generated output.

" } @@ -644,8 +656,14 @@ "InferenceConfiguration$temperature": "

The likelihood of the model selecting higher-probability options while generating a response. A lower value makes the model more likely to choose higher-probability options, while a higher value makes the model more likely to choose lower-probability options.

" } }, + "TextPromptTemplate": { + "base": null, + "refs": { + "PromptTemplate$textPromptTemplate": "

The template for the prompt that's sent to the model for response generation. You can include prompt placeholders, which become replaced before the prompt is sent to the model to provide instructions and context to the model. In addition, you can include XML tags to delineate meaningful sections of the prompt template.

For more information, see the following resources:

" + } + }, "TextResponsePart": { - "base": "

Contains the part of the generated text that contains a citation, alongside where it begins and ends.

", + "base": "

Contains the part of the generated text that contains a citation, alongside where it begins and ends.

This data type is used in the following API operations:

", "refs": { "GeneratedResponsePart$textResponsePart": "

Contains metadata about a textual part of the generated response that is accompanied by a citation.

" } diff --git a/models/apis/ce/2017-10-25/api-2.json b/models/apis/ce/2017-10-25/api-2.json index 357104d8abe..efdaf3944e6 100644 --- a/models/apis/ce/2017-10-25/api-2.json +++ b/models/apis/ce/2017-10-25/api-2.json @@ -387,6 +387,19 @@ {"shape":"UnresolvableUsageUnitException"} ] }, + "ListCostAllocationTagBackfillHistory":{ + "name":"ListCostAllocationTagBackfillHistory", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListCostAllocationTagBackfillHistoryRequest"}, + "output":{"shape":"ListCostAllocationTagBackfillHistoryResponse"}, + "errors":[ + {"shape":"LimitExceededException"}, + {"shape":"InvalidNextTokenException"} + ] + }, "ListCostAllocationTags":{ "name":"ListCostAllocationTags", "http":{ @@ -451,6 +464,19 @@ {"shape":"LimitExceededException"} ] }, + "StartCostAllocationTagBackfill":{ + "name":"StartCostAllocationTagBackfill", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartCostAllocationTagBackfillRequest"}, + "output":{"shape":"StartCostAllocationTagBackfillResponse"}, + "errors":[ + {"shape":"LimitExceededException"}, + {"shape":"BackfillLimitExceededException"} + ] + }, "StartSavingsPlansPurchaseRecommendationGeneration":{ "name":"StartSavingsPlansPurchaseRecommendationGeneration", "http":{ @@ -690,6 +716,13 @@ "key":{"shape":"AttributeType"}, "value":{"shape":"AttributeValue"} }, + "BackfillLimitExceededException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, "BillExpirationException":{ "type":"structure", "members":{ @@ -720,6 +753,30 @@ "LastUsedDate":{"shape":"ZonedDateTime"} } }, + "CostAllocationTagBackfillRequest":{ + "type":"structure", + "members":{ + "BackfillFrom":{"shape":"ZonedDateTime"}, + "RequestedAt":{"shape":"ZonedDateTime"}, + "CompletedAt":{"shape":"ZonedDateTime"}, + "BackfillStatus":{"shape":"CostAllocationTagBackfillStatus"}, + "LastUpdatedAt":{"shape":"ZonedDateTime"} + } + }, + "CostAllocationTagBackfillRequestList":{ + "type":"list", + "member":{"shape":"CostAllocationTagBackfillRequest"}, + "max":1000, + "min":0 + }, + "CostAllocationTagBackfillStatus":{ + "type":"string", + "enum":[ + "SUCCEEDED", + "PROCESSING", + "FAILED" + ] + }, "CostAllocationTagKeyList":{ "type":"list", "member":{"shape":"TagKey"}, @@ -1927,6 +1984,23 @@ }, "exception":true }, + "ListCostAllocationTagBackfillHistoryRequest":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"NextPageToken"}, + "MaxResults":{ + "shape":"CostAllocationTagsMaxResults", + "box":true + } + } + }, + "ListCostAllocationTagBackfillHistoryResponse":{ + "type":"structure", + "members":{ + "BackfillRequests":{"shape":"CostAllocationTagBackfillRequestList"}, + "NextToken":{"shape":"NextPageToken"} + } + }, "ListCostAllocationTagsRequest":{ "type":"structure", "members":{ @@ -2750,6 +2824,19 @@ "DESCENDING" ] }, + "StartCostAllocationTagBackfillRequest":{ + "type":"structure", + "required":["BackfillFrom"], + "members":{ + "BackfillFrom":{"shape":"ZonedDateTime"} + } + }, + "StartCostAllocationTagBackfillResponse":{ + "type":"structure", + "members":{ + "BackfillRequest":{"shape":"CostAllocationTagBackfillRequest"} + } + }, "StartSavingsPlansPurchaseRecommendationGenerationRequest":{ "type":"structure", "members":{ diff --git a/models/apis/ce/2017-10-25/docs-2.json b/models/apis/ce/2017-10-25/docs-2.json index 78855d4e627..74970522c56 100644 --- a/models/apis/ce/2017-10-25/docs-2.json +++ b/models/apis/ce/2017-10-25/docs-2.json @@ -29,11 +29,13 @@ "GetSavingsPlansUtilizationDetails": "

Retrieves attribute data along with aggregate utilization and savings data for a given time period. This doesn't support granular or grouped data (daily/monthly) in response. You can't retrieve data by dates in a single response similar to GetSavingsPlanUtilization, but you have the option to make multiple calls to GetSavingsPlanUtilizationDetails by providing individual dates. You can use GetDimensionValues in SAVINGS_PLANS to determine the possible dimension values.

GetSavingsPlanUtilizationDetails internally groups data by SavingsPlansArn.

", "GetTags": "

Queries for available tag keys and tag values for a specified period. You can search the tag values for an arbitrary string.

", "GetUsageForecast": "

Retrieves a forecast for how much Amazon Web Services predicts that you will use over the forecast time period that you select, based on your past usage.

", + "ListCostAllocationTagBackfillHistory": "

Retrieves a list of your historical cost allocation tag backfill requests.

", "ListCostAllocationTags": "

Get a list of cost allocation tags. All inputs in the API are optional and serve as filters. By default, all cost allocation tags are returned.

", "ListCostCategoryDefinitions": "

Returns the name, Amazon Resource Name (ARN), NumberOfRules and effective dates of all Cost Categories defined in the account. You have the option to use EffectiveOn to return a list of Cost Categories that were active on a specific date. If there is no EffectiveOn specified, you’ll see Cost Categories that are effective on the current date. If Cost Category is still effective, EffectiveEnd is omitted in the response. ListCostCategoryDefinitions supports pagination. The request can have a MaxResults range up to 100.

", "ListSavingsPlansPurchaseRecommendationGeneration": "

Retrieves a list of your historical recommendation generations within the past 30 days.

", "ListTagsForResource": "

Returns a list of resource tags associated with the resource specified by the Amazon Resource Name (ARN).

", "ProvideAnomalyFeedback": "

Modifies the feedback property of a given cost anomaly.

", + "StartCostAllocationTagBackfill": "

Request a cost allocation tag backfill. This will backfill the activation status (either active or inactive) for all tag keys from para:BackfillFrom up to the when this request is made.

You can request a backfill once every 24 hours.

", "StartSavingsPlansPurchaseRecommendationGeneration": "

Requests a Savings Plans recommendation generation. This enables you to calculate a fresh set of Savings Plans recommendations that takes your latest usage data and current Savings Plans inventory into account. You can refresh Savings Plans recommendations up to three times daily for a consolidated billing family.

StartSavingsPlansPurchaseRecommendationGeneration has no request syntax because no input parameters are needed to support this operation.

", "TagResource": "

An API operation for adding one or more tags (key-value pairs) to a resource.

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

Although the maximum number of array members is 200, user-tag maximum is 50. The remaining are reserved for Amazon Web Services use.

", "UntagResource": "

Removes one or more tags from a resource. Specify only tag keys in your request. Don't specify the value.

", @@ -183,6 +185,11 @@ "SavingsPlansUtilizationDetail$Attributes": "

The attribute that applies to a specific Dimension.

" } }, + "BackfillLimitExceededException": { + "base": "

A request to backfill is already in progress. Once the previous request is complete, you can create another request.

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

The requested report expired. Update the date interval and try again.

", "refs": { @@ -200,6 +207,25 @@ "CostAllocationTagList$member": null } }, + "CostAllocationTagBackfillRequest": { + "base": "

The cost allocation tag backfill request structure that contains metadata and details of a certain backfill.

", + "refs": { + "CostAllocationTagBackfillRequestList$member": null, + "StartCostAllocationTagBackfillResponse$BackfillRequest": "

An object containing detailed metadata of your new backfill request.

" + } + }, + "CostAllocationTagBackfillRequestList": { + "base": null, + "refs": { + "ListCostAllocationTagBackfillHistoryResponse$BackfillRequests": "

The list of historical cost allocation tag backfill requests.

" + } + }, + "CostAllocationTagBackfillStatus": { + "base": null, + "refs": { + "CostAllocationTagBackfillRequest$BackfillStatus": "

The status of the cost allocation tag backfill request.

" + } + }, "CostAllocationTagKeyList": { "base": null, "refs": { @@ -242,6 +268,7 @@ "CostAllocationTagsMaxResults": { "base": null, "refs": { + "ListCostAllocationTagBackfillHistoryRequest$MaxResults": "

The maximum number of objects that are returned for this request.

", "ListCostAllocationTagsRequest$MaxResults": "

The maximum number of objects that are returned for this request. By default, the request returns 100 results.

" } }, @@ -665,6 +692,7 @@ "ErrorMessage": { "base": null, "refs": { + "BackfillLimitExceededException$Message": null, "BillExpirationException$Message": null, "DataUnavailableException$Message": null, "GenerationExistsException$Message": null, @@ -1297,6 +1325,16 @@ "refs": { } }, + "ListCostAllocationTagBackfillHistoryRequest": { + "base": null, + "refs": { + } + }, + "ListCostAllocationTagBackfillHistoryResponse": { + "base": null, + "refs": { + } + }, "ListCostAllocationTagsRequest": { "base": null, "refs": { @@ -1506,6 +1544,8 @@ "GetSavingsPlansUtilizationDetailsResponse$NextToken": "

The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

", "GetTagsRequest$NextPageToken": "

The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

", "GetTagsResponse$NextPageToken": "

The token for the next set of retrievable results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

", + "ListCostAllocationTagBackfillHistoryRequest$NextToken": "

The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

", + "ListCostAllocationTagBackfillHistoryResponse$NextToken": "

The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

", "ListCostAllocationTagsRequest$NextToken": "

The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

", "ListCostAllocationTagsResponse$NextToken": "

The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

", "ListCostCategoryDefinitionsRequest$NextToken": "

The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

", @@ -2098,6 +2138,16 @@ "SortDefinition$SortOrder": "

The order that's used to sort the data.

" } }, + "StartCostAllocationTagBackfillRequest": { + "base": null, + "refs": { + } + }, + "StartCostAllocationTagBackfillResponse": { + "base": null, + "refs": { + } + }, "StartSavingsPlansPurchaseRecommendationGenerationRequest": { "base": null, "refs": { @@ -2423,6 +2473,10 @@ "refs": { "CostAllocationTag$LastUpdatedDate": "

The last date that the tag was either activated or deactivated.

", "CostAllocationTag$LastUsedDate": "

The last month that the tag was used on an Amazon Web Services resource.

", + "CostAllocationTagBackfillRequest$BackfillFrom": "

The date the backfill starts from.

", + "CostAllocationTagBackfillRequest$RequestedAt": "

The time when the backfill was requested.

", + "CostAllocationTagBackfillRequest$CompletedAt": "

The backfill completion time.

", + "CostAllocationTagBackfillRequest$LastUpdatedAt": "

The time when the backfill status was last updated.

", "CostCategory$EffectiveStart": "

The effective start date of your Cost Category.

", "CostCategory$EffectiveEnd": "

The effective end date of your Cost Category.

", "CostCategoryReference$EffectiveStart": "

The Cost Category's effective start date.

", @@ -2438,6 +2492,7 @@ "RecommendationDetailData$GenerationTimestamp": null, "RecommendationDetailData$LatestUsageTimestamp": null, "RecommendationDetailHourlyMetrics$StartTime": null, + "StartCostAllocationTagBackfillRequest$BackfillFrom": "

The date you want the backfill to start from. The date can only be a first day of the month (a billing start date). Dates can't precede the previous twelve months, or in the future.

", "StartSavingsPlansPurchaseRecommendationGenerationResponse$GenerationStartedTime": "

The start time of the recommendation generation.

", "StartSavingsPlansPurchaseRecommendationGenerationResponse$EstimatedCompletionTime": "

The estimated time for when the recommendation generation will complete.

", "UpdateCostCategoryDefinitionRequest$EffectiveStart": "

The Cost Category's effective start date. It can only be a billing start date (first day of the month). If the date isn't provided, it's the first day of the current month. Dates can't be before the previous twelve months, or in the future.

", diff --git a/models/apis/ce/2017-10-25/paginators-1.json b/models/apis/ce/2017-10-25/paginators-1.json index 1b58ad8f0e2..b3d1c4d1ea2 100644 --- a/models/apis/ce/2017-10-25/paginators-1.json +++ b/models/apis/ce/2017-10-25/paginators-1.json @@ -10,6 +10,11 @@ "output_token": "NextToken", "limit_key": "MaxResults" }, + "ListCostAllocationTagBackfillHistory": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, "ListCostAllocationTags": { "input_token": "NextToken", "output_token": "NextToken", diff --git a/models/apis/ec2/2016-11-15/api-2.json b/models/apis/ec2/2016-11-15/api-2.json index c112443c4a3..ee73b8b16e9 100755 --- a/models/apis/ec2/2016-11-15/api-2.json +++ b/models/apis/ec2/2016-11-15/api-2.json @@ -35401,10 +35401,7 @@ "NewDhcpConfiguration":{ "type":"structure", "members":{ - "Key":{ - "shape":"String", - "locationName":"key" - }, + "Key":{"shape":"String"}, "Values":{ "shape":"ValueStringList", "locationName":"Value" diff --git a/models/apis/ec2/2016-11-15/docs-2.json b/models/apis/ec2/2016-11-15/docs-2.json index 3f188e0db51..f357aba64d2 100755 --- a/models/apis/ec2/2016-11-15/docs-2.json +++ b/models/apis/ec2/2016-11-15/docs-2.json @@ -15973,7 +15973,7 @@ } }, "NewDhcpConfiguration": { - "base": null, + "base": "

Describes a DHCP configuration option.

", "refs": { "NewDhcpConfigurationList$member": null } @@ -20701,7 +20701,7 @@ "NetworkInterfacePrivateIpAddress$PrivateDnsName": "

The private DNS name.

", "NetworkInterfacePrivateIpAddress$PrivateIpAddress": "

The private IPv4 address.

", "NetworkNodesList$member": null, - "NewDhcpConfiguration$Key": null, + "NewDhcpConfiguration$Key": "

The name of a DHCP option.

", "OidcOptions$Issuer": "

The OIDC issuer.

", "OidcOptions$AuthorizationEndpoint": "

The OIDC authorization endpoint.

", "OidcOptions$TokenEndpoint": "

The OIDC token endpoint.

", @@ -22533,7 +22533,7 @@ "GetTransitGatewayRouteTableAssociationsRequest$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.

", "GetTransitGatewayRouteTablePropagationsRequest$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.

", "SearchTransitGatewayMulticastGroupsRequest$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.

", - "SearchTransitGatewayRoutesRequest$MaxResults": "

The maximum number of routes to return. If a value is not provided, the default is 1000.

" + "SearchTransitGatewayRoutesRequest$MaxResults": "

The maximum number of routes to return.

" } }, "TransitGatewayMulitcastDomainAssociationState": { @@ -23364,7 +23364,7 @@ "ModifyVpcEndpointServicePermissionsRequest$RemoveAllowedPrincipals": "

The Amazon Resource Names (ARN) of the principals. Permissions are revoked for principals in this list.

", "NetworkInsightsAnalysis$AdditionalAccounts": "

The member accounts that contain resources that the path can traverse.

", "NetworkInsightsAnalysis$SuggestedAccounts": "

Potential intermediate accounts.

", - "NewDhcpConfiguration$Values": null, + "NewDhcpConfiguration$Values": "

The values for the DHCP option.

", "PacketHeaderStatement$SourceAddresses": "

The source addresses.

", "PacketHeaderStatement$DestinationAddresses": "

The destination addresses.

", "PacketHeaderStatement$SourcePorts": "

The source ports.

", diff --git a/models/apis/ecs/2014-11-13/docs-2.json b/models/apis/ecs/2014-11-13/docs-2.json index 5c152775d06..ccde249fab1 100644 --- a/models/apis/ecs/2014-11-13/docs-2.json +++ b/models/apis/ecs/2014-11-13/docs-2.json @@ -4,8 +4,8 @@ "operations": { "CreateCapacityProvider": "

Creates a new capacity provider. Capacity providers are associated with an Amazon ECS cluster and are used in capacity provider strategies to facilitate cluster auto scaling.

Only capacity providers that use an Auto Scaling group can be created. Amazon ECS tasks on Fargate use the FARGATE and FARGATE_SPOT capacity providers. These providers are available to all accounts in the Amazon Web Services Regions that Fargate supports.

", "CreateCluster": "

Creates a new Amazon ECS cluster. By default, your account receives a default cluster when you launch your first container instance. However, you can create your own cluster with a unique name with the CreateCluster action.

When you call the CreateCluster API operation, Amazon ECS attempts to create the Amazon ECS service-linked role for your account. This is so that it can manage required resources in other Amazon Web Services services on your behalf. However, if the user that makes the call doesn't have permissions to create the service-linked role, it isn't created. For more information, see Using service-linked roles for Amazon ECS in the Amazon Elastic Container Service Developer Guide.

", - "CreateService": "

Runs and maintains your desired number of tasks from a specified task definition. If the number of tasks running in a service drops below the desiredCount, Amazon ECS runs another copy of the task in the specified cluster. To update an existing service, see the UpdateService action.

The following change began on March 21, 2024. When the task definition revision is not specified, Amazon ECS resolves the task definition revision before it authorizes the task definition.

In addition to maintaining the desired count of tasks in your service, you can optionally run your service behind one or more load balancers. The load balancers distribute traffic across the tasks that are associated with the service. For more information, see Service load balancing in the Amazon Elastic Container Service Developer Guide.

You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when creating or updating a service. volumeConfigurations is only supported for REPLICA service and not DAEMON service. For more infomation, see Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide.

Tasks for services that don't use a load balancer are considered healthy if they're in the RUNNING state. Tasks for services that use a load balancer are considered healthy if they're in the RUNNING state and are reported as healthy by the load balancer.

There are two service scheduler strategies available:

You can optionally specify a deployment configuration for your service. The deployment is initiated by changing properties. For example, the deployment might be initiated by the task definition or by your desired count of a service. This is done with an UpdateService operation. The default value for a replica service for minimumHealthyPercent is 100%. The default value for a daemon service for minimumHealthyPercent is 0%.

If a service uses the ECS deployment controller, the minimum healthy percent represents a lower limit on the number of tasks in a service that must remain in the RUNNING state during a deployment. Specifically, it represents it as a percentage of your desired number of tasks (rounded up to the nearest integer). This happens when any of your container instances are in the DRAINING state if the service contains tasks using the EC2 launch type. Using this parameter, you can deploy without using additional cluster capacity. For example, if you set your service to have desired number of four tasks and a minimum healthy percent of 50%, the scheduler might stop two existing tasks to free up cluster capacity before starting two new tasks. If they're in the RUNNING state, tasks for services that don't use a load balancer are considered healthy . If they're in the RUNNING state and reported as healthy by the load balancer, tasks for services that do use a load balancer are considered healthy . The default value for minimum healthy percent is 100%.

If a service uses the ECS deployment controller, the maximum percent parameter represents an upper limit on the number of tasks in a service that are allowed in the RUNNING or PENDING state during a deployment. Specifically, it represents it as a percentage of the desired number of tasks (rounded down to the nearest integer). This happens when any of your container instances are in the DRAINING state if the service contains tasks using the EC2 launch type. Using this parameter, you can define the deployment batch size. For example, if your service has a desired number of four tasks and a maximum percent value of 200%, the scheduler may start four new tasks before stopping the four older tasks (provided that the cluster resources required to do this are available). The default value for maximum percent is 200%.

If a service uses either the CODE_DEPLOY or EXTERNAL deployment controller types and tasks that use the EC2 launch type, the minimum healthy percent and maximum percent values are used only to define the lower and upper limit on the number of the tasks in the service that remain in the RUNNING state. This is while the container instances are in the DRAINING state. If the tasks in the service use the Fargate launch type, the minimum healthy percent and maximum percent values aren't used. This is the case even if they're currently visible when describing your service.

When creating a service that uses the EXTERNAL deployment controller, you can specify only parameters that aren't controlled at the task set level. The only required parameter is the service name. You control your services using the CreateTaskSet operation. For more information, see Amazon ECS deployment types in the Amazon Elastic Container Service Developer Guide.

When the service scheduler launches new tasks, it determines task placement. For information about task placement and task placement strategies, see Amazon ECS task placement in the Amazon Elastic Container Service Developer Guide

Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.

", - "CreateTaskSet": "

Create a task set in the specified cluster and service. This is used when a service uses the EXTERNAL deployment controller type. For more information, see Amazon ECS deployment types in the Amazon Elastic Container Service Developer Guide.

The following change began on March 21, 2024. When the task definition revision is not specified, Amazon ECS resolves the task definition revision before it authorizes the task definition.

For information about the maximum number of task sets and otther quotas, see Amazon ECS service quotas in the Amazon Elastic Container Service Developer Guide.

", + "CreateService": "

Runs and maintains your desired number of tasks from a specified task definition. If the number of tasks running in a service drops below the desiredCount, Amazon ECS runs another copy of the task in the specified cluster. To update an existing service, see the UpdateService action.

On March 21, 2024, a change was made to resolve the task definition revision before authorization. When a task definition revision is not specified, authorization will occur using the latest revision of a task definition.

In addition to maintaining the desired count of tasks in your service, you can optionally run your service behind one or more load balancers. The load balancers distribute traffic across the tasks that are associated with the service. For more information, see Service load balancing in the Amazon Elastic Container Service Developer Guide.

You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when creating or updating a service. volumeConfigurations is only supported for REPLICA service and not DAEMON service. For more infomation, see Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide.

Tasks for services that don't use a load balancer are considered healthy if they're in the RUNNING state. Tasks for services that use a load balancer are considered healthy if they're in the RUNNING state and are reported as healthy by the load balancer.

There are two service scheduler strategies available:

You can optionally specify a deployment configuration for your service. The deployment is initiated by changing properties. For example, the deployment might be initiated by the task definition or by your desired count of a service. This is done with an UpdateService operation. The default value for a replica service for minimumHealthyPercent is 100%. The default value for a daemon service for minimumHealthyPercent is 0%.

If a service uses the ECS deployment controller, the minimum healthy percent represents a lower limit on the number of tasks in a service that must remain in the RUNNING state during a deployment. Specifically, it represents it as a percentage of your desired number of tasks (rounded up to the nearest integer). This happens when any of your container instances are in the DRAINING state if the service contains tasks using the EC2 launch type. Using this parameter, you can deploy without using additional cluster capacity. For example, if you set your service to have desired number of four tasks and a minimum healthy percent of 50%, the scheduler might stop two existing tasks to free up cluster capacity before starting two new tasks. If they're in the RUNNING state, tasks for services that don't use a load balancer are considered healthy . If they're in the RUNNING state and reported as healthy by the load balancer, tasks for services that do use a load balancer are considered healthy . The default value for minimum healthy percent is 100%.

If a service uses the ECS deployment controller, the maximum percent parameter represents an upper limit on the number of tasks in a service that are allowed in the RUNNING or PENDING state during a deployment. Specifically, it represents it as a percentage of the desired number of tasks (rounded down to the nearest integer). This happens when any of your container instances are in the DRAINING state if the service contains tasks using the EC2 launch type. Using this parameter, you can define the deployment batch size. For example, if your service has a desired number of four tasks and a maximum percent value of 200%, the scheduler may start four new tasks before stopping the four older tasks (provided that the cluster resources required to do this are available). The default value for maximum percent is 200%.

If a service uses either the CODE_DEPLOY or EXTERNAL deployment controller types and tasks that use the EC2 launch type, the minimum healthy percent and maximum percent values are used only to define the lower and upper limit on the number of the tasks in the service that remain in the RUNNING state. This is while the container instances are in the DRAINING state. If the tasks in the service use the Fargate launch type, the minimum healthy percent and maximum percent values aren't used. This is the case even if they're currently visible when describing your service.

When creating a service that uses the EXTERNAL deployment controller, you can specify only parameters that aren't controlled at the task set level. The only required parameter is the service name. You control your services using the CreateTaskSet operation. For more information, see Amazon ECS deployment types in the Amazon Elastic Container Service Developer Guide.

When the service scheduler launches new tasks, it determines task placement. For information about task placement and task placement strategies, see Amazon ECS task placement in the Amazon Elastic Container Service Developer Guide

Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.

", + "CreateTaskSet": "

Create a task set in the specified cluster and service. This is used when a service uses the EXTERNAL deployment controller type. For more information, see Amazon ECS deployment types in the Amazon Elastic Container Service Developer Guide.

On March 21, 2024, a change was made to resolve the task definition revision before authorization. When a task definition revision is not specified, authorization will occur using the latest revision of a task definition.

For information about the maximum number of task sets and otther quotas, see Amazon ECS service quotas in the Amazon Elastic Container Service Developer Guide.

", "DeleteAccountSetting": "

Disables an account setting for a specified user, role, or the root user for an account.

", "DeleteAttributes": "

Deletes one or more custom attributes from an Amazon ECS resource.

", "DeleteCapacityProvider": "

Deletes the specified capacity provider.

The FARGATE and FARGATE_SPOT capacity providers are reserved and can't be deleted. You can disassociate them from a cluster using either the PutClusterCapacityProviders API or by deleting the cluster.

Prior to a capacity provider being deleted, the capacity provider must be removed from the capacity provider strategy from all services. The UpdateService API can be used to remove a capacity provider from a service's capacity provider strategy. When updating a service, the forceNewDeployment option can be used to ensure that any tasks using the Amazon EC2 instance capacity provided by the capacity provider are transitioned to use the capacity from the remaining capacity providers. Only capacity providers that aren't associated with a cluster can be deleted. To remove a capacity provider from a cluster, you can either use PutClusterCapacityProviders or delete the cluster.

", @@ -41,8 +41,8 @@ "PutClusterCapacityProviders": "

Modifies the available capacity providers and the default capacity provider strategy for a cluster.

You must specify both the available capacity providers and a default capacity provider strategy for the cluster. If the specified cluster has existing capacity providers associated with it, you must specify all existing capacity providers in addition to any new ones you want to add. Any existing capacity providers that are associated with a cluster that are omitted from a PutClusterCapacityProviders API call will be disassociated with the cluster. You can only disassociate an existing capacity provider from a cluster if it's not being used by any existing tasks.

When creating a service or running a task on a cluster, if no capacity provider or launch type is specified, then the cluster's default capacity provider strategy is used. We recommend that you define a default capacity provider strategy for your cluster. However, you must specify an empty array ([]) to bypass defining a default strategy.

", "RegisterContainerInstance": "

This action is only used by the Amazon ECS agent, and it is not intended for use outside of the agent.

Registers an EC2 instance into the specified cluster. This instance becomes available to place containers on.

", "RegisterTaskDefinition": "

Registers a new task definition from the supplied family and containerDefinitions. Optionally, you can add data volumes to your containers with the volumes parameter. For more information about task definition parameters and defaults, see Amazon ECS Task Definitions in the Amazon Elastic Container Service Developer Guide.

You can specify a role for your task with the taskRoleArn parameter. When you specify a role for a task, its containers can then use the latest versions of the CLI or SDKs to make API requests to the Amazon Web Services services that are specified in the policy that's associated with the role. For more information, see IAM Roles for Tasks in the Amazon Elastic Container Service Developer Guide.

You can specify a Docker networking mode for the containers in your task definition with the networkMode parameter. The available network modes correspond to those described in Network settings in the Docker run reference. If you specify the awsvpc network mode, the task is allocated an elastic network interface, and you must specify a NetworkConfiguration when you create a service or run a task with the task definition. For more information, see Task Networking in the Amazon Elastic Container Service Developer Guide.

", - "RunTask": "

Starts a new task using the specified task definition.

The following change began on March 21, 2024. When the task definition revision is not specified, Amazon ECS resolves the task definition revision before it authorizes the task definition.

You can allow Amazon ECS to place tasks for you, or you can customize how Amazon ECS places tasks using placement constraints and placement strategies. For more information, see Scheduling Tasks in the Amazon Elastic Container Service Developer Guide.

Alternatively, you can use StartTask to use your own scheduler or place tasks manually on specific container instances.

Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.

You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when creating or updating a service. For more infomation, see Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide.

The Amazon ECS API follows an eventual consistency model. This is because of the distributed nature of the system supporting the API. This means that the result of an API command you run that affects your Amazon ECS resources might not be immediately visible to all subsequent commands you run. Keep this in mind when you carry out an API command that immediately follows a previous API command.

To manage eventual consistency, you can do the following:

", - "StartTask": "

Starts a new task from the specified task definition on the specified container instance or instances.

The following change began on March 21, 2024. When the task definition revision is not specified, Amazon ECS resolves the task definition revision before it authorizes the task definition.

Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.

Alternatively, you can use RunTask to place tasks for you. For more information, see Scheduling Tasks in the Amazon Elastic Container Service Developer Guide.

You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when creating or updating a service. For more infomation, see Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide.

", + "RunTask": "

Starts a new task using the specified task definition.

On March 21, 2024, a change was made to resolve the task definition revision before authorization. When a task definition revision is not specified, authorization will occur using the latest revision of a task definition.

You can allow Amazon ECS to place tasks for you, or you can customize how Amazon ECS places tasks using placement constraints and placement strategies. For more information, see Scheduling Tasks in the Amazon Elastic Container Service Developer Guide.

Alternatively, you can use StartTask to use your own scheduler or place tasks manually on specific container instances.

Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.

You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when creating or updating a service. For more infomation, see Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide.

The Amazon ECS API follows an eventual consistency model. This is because of the distributed nature of the system supporting the API. This means that the result of an API command you run that affects your Amazon ECS resources might not be immediately visible to all subsequent commands you run. Keep this in mind when you carry out an API command that immediately follows a previous API command.

To manage eventual consistency, you can do the following:

", + "StartTask": "

Starts a new task from the specified task definition on the specified container instance or instances.

On March 21, 2024, a change was made to resolve the task definition revision before authorization. When a task definition revision is not specified, authorization will occur using the latest revision of a task definition.

Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service.

Alternatively, you can use RunTask to place tasks for you. For more information, see Scheduling Tasks in the Amazon Elastic Container Service Developer Guide.

You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when creating or updating a service. For more infomation, see Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide.

", "StopTask": "

Stops a running task. Any tags associated with the task will be deleted.

When StopTask is called on a task, the equivalent of docker stop is issued to the containers running in the task. This results in a SIGTERM value and a default 30-second timeout, after which the SIGKILL value is sent and the containers are forcibly stopped. If the container handles the SIGTERM value gracefully and exits within 30 seconds from receiving it, no SIGKILL value is sent.

The default 30-second timeout can be configured on the Amazon ECS container agent with the ECS_CONTAINER_STOP_TIMEOUT variable. For more information, see Amazon ECS Container Agent Configuration in the Amazon Elastic Container Service Developer Guide.

", "SubmitAttachmentStateChanges": "

This action is only used by the Amazon ECS agent, and it is not intended for use outside of the agent.

Sent to acknowledge that an attachment changed states.

", "SubmitContainerStateChange": "

This action is only used by the Amazon ECS agent, and it is not intended for use outside of the agent.

Sent to acknowledge that a container changed states.

", @@ -54,7 +54,7 @@ "UpdateClusterSettings": "

Modifies the settings to use for a cluster.

", "UpdateContainerAgent": "

Updates the Amazon ECS container agent on a specified container instance. Updating the Amazon ECS container agent doesn't interrupt running tasks or services on the container instance. The process for updating the agent differs depending on whether your container instance was launched with the Amazon ECS-optimized AMI or another operating system.

The UpdateContainerAgent API isn't supported for container instances using the Amazon ECS-optimized Amazon Linux 2 (arm64) AMI. To update the container agent, you can update the ecs-init package. This updates the agent. For more information, see Updating the Amazon ECS container agent in the Amazon Elastic Container Service Developer Guide.

Agent updates with the UpdateContainerAgent API operation do not apply to Windows container instances. We recommend that you launch new container instances to update the agent version in your Windows clusters.

The UpdateContainerAgent API requires an Amazon ECS-optimized AMI or Amazon Linux AMI with the ecs-init service installed and running. For help updating the Amazon ECS container agent on other operating systems, see Manually updating the Amazon ECS container agent in the Amazon Elastic Container Service Developer Guide.

", "UpdateContainerInstancesState": "

Modifies the status of an Amazon ECS container instance.

Once a container instance has reached an ACTIVE state, you can change the status of a container instance to DRAINING to manually remove an instance from a cluster, for example to perform system updates, update the Docker daemon, or scale down the cluster size.

A container instance can't be changed to DRAINING until it has reached an ACTIVE status. If the instance is in any other status, an error will be received.

When you set a container instance to DRAINING, Amazon ECS prevents new tasks from being scheduled for placement on the container instance and replacement service tasks are started on other container instances in the cluster if the resources are available. Service tasks on the container instance that are in the PENDING state are stopped immediately.

Service tasks on the container instance that are in the RUNNING state are stopped and replaced according to the service's deployment configuration parameters, minimumHealthyPercent and maximumPercent. You can change the deployment configuration of your service using UpdateService.

Any PENDING or RUNNING tasks that do not belong to a service aren't affected. You must wait for them to finish or stop them manually.

A container instance has completed draining when it has no more RUNNING tasks. You can verify this using ListTasks.

When a container instance has been drained, you can set a container instance to ACTIVE status and once it has reached that status the Amazon ECS scheduler can begin scheduling tasks on the instance again.

", - "UpdateService": "

Modifies the parameters of a service.

The following change began on March 21, 2024. When the task definition revision is not specified, Amazon ECS resolves the task definition revision before it authorizes the task definition.

For services using the rolling update (ECS) you can update the desired count, deployment configuration, network configuration, load balancers, service registries, enable ECS managed tags option, propagate tags option, task placement constraints and strategies, and task definition. When you update any of these parameters, Amazon ECS starts new tasks with the new configuration.

You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when starting or running a task, or when creating or updating a service. For more infomation, see Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide. You can update your volume configurations and trigger a new deployment. volumeConfigurations is only supported for REPLICA service and not DAEMON service. If you leave volumeConfigurations null, it doesn't trigger a new deployment. For more infomation on volumes, see Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide.

For services using the blue/green (CODE_DEPLOY) deployment controller, only the desired count, deployment configuration, health check grace period, task placement constraints and strategies, enable ECS managed tags option, and propagate tags can be updated using this API. If the network configuration, platform version, task definition, or load balancer need to be updated, create a new CodeDeploy deployment. For more information, see CreateDeployment in the CodeDeploy API Reference.

For services using an external deployment controller, you can update only the desired count, task placement constraints and strategies, health check grace period, enable ECS managed tags option, and propagate tags option, using this API. If the launch type, load balancer, network configuration, platform version, or task definition need to be updated, create a new task set For more information, see CreateTaskSet.

You can add to or subtract from the number of instantiations of a task definition in a service by specifying the cluster that the service is running in and a new desiredCount parameter.

You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when starting or running a task, or when creating or updating a service. For more infomation, see Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide.

If you have updated the container image of your application, you can create a new task definition with that image and deploy it to your service. The service scheduler uses the minimum healthy percent and maximum percent parameters (in the service's deployment configuration) to determine the deployment strategy.

If your updated Docker image uses the same tag as what is in the existing task definition for your service (for example, my_image:latest), you don't need to create a new revision of your task definition. You can update the service using the forceNewDeployment option. The new tasks launched by the deployment pull the current image/tag combination from your repository when they start.

You can also update the deployment configuration of a service. When a deployment is triggered by updating the task definition of a service, the service scheduler uses the deployment configuration parameters, minimumHealthyPercent and maximumPercent, to determine the deployment strategy.

When UpdateService stops a task during a deployment, the equivalent of docker stop is issued to the containers running in the task. This results in a SIGTERM and a 30-second timeout. After this, SIGKILL is sent and the containers are forcibly stopped. If the container handles the SIGTERM gracefully and exits within 30 seconds from receiving it, no SIGKILL is sent.

When the service scheduler launches new tasks, it determines task placement in your cluster with the following logic.

When the service scheduler stops running tasks, it attempts to maintain balance across the Availability Zones in your cluster using the following logic:

You must have a service-linked role when you update any of the following service properties:

For more information about the role see the CreateService request parameter role .

", + "UpdateService": "

Modifies the parameters of a service.

On March 21, 2024, a change was made to resolve the task definition revision before authorization. When a task definition revision is not specified, authorization will occur using the latest revision of a task definition.

For services using the rolling update (ECS) you can update the desired count, deployment configuration, network configuration, load balancers, service registries, enable ECS managed tags option, propagate tags option, task placement constraints and strategies, and task definition. When you update any of these parameters, Amazon ECS starts new tasks with the new configuration.

You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when starting or running a task, or when creating or updating a service. For more infomation, see Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide. You can update your volume configurations and trigger a new deployment. volumeConfigurations is only supported for REPLICA service and not DAEMON service. If you leave volumeConfigurations null, it doesn't trigger a new deployment. For more infomation on volumes, see Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide.

For services using the blue/green (CODE_DEPLOY) deployment controller, only the desired count, deployment configuration, health check grace period, task placement constraints and strategies, enable ECS managed tags option, and propagate tags can be updated using this API. If the network configuration, platform version, task definition, or load balancer need to be updated, create a new CodeDeploy deployment. For more information, see CreateDeployment in the CodeDeploy API Reference.

For services using an external deployment controller, you can update only the desired count, task placement constraints and strategies, health check grace period, enable ECS managed tags option, and propagate tags option, using this API. If the launch type, load balancer, network configuration, platform version, or task definition need to be updated, create a new task set For more information, see CreateTaskSet.

You can add to or subtract from the number of instantiations of a task definition in a service by specifying the cluster that the service is running in and a new desiredCount parameter.

You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when starting or running a task, or when creating or updating a service. For more infomation, see Amazon EBS volumes in the Amazon Elastic Container Service Developer Guide.

If you have updated the container image of your application, you can create a new task definition with that image and deploy it to your service. The service scheduler uses the minimum healthy percent and maximum percent parameters (in the service's deployment configuration) to determine the deployment strategy.

If your updated Docker image uses the same tag as what is in the existing task definition for your service (for example, my_image:latest), you don't need to create a new revision of your task definition. You can update the service using the forceNewDeployment option. The new tasks launched by the deployment pull the current image/tag combination from your repository when they start.

You can also update the deployment configuration of a service. When a deployment is triggered by updating the task definition of a service, the service scheduler uses the deployment configuration parameters, minimumHealthyPercent and maximumPercent, to determine the deployment strategy.

When UpdateService stops a task during a deployment, the equivalent of docker stop is issued to the containers running in the task. This results in a SIGTERM and a 30-second timeout. After this, SIGKILL is sent and the containers are forcibly stopped. If the container handles the SIGTERM gracefully and exits within 30 seconds from receiving it, no SIGKILL is sent.

When the service scheduler launches new tasks, it determines task placement in your cluster with the following logic.

When the service scheduler stops running tasks, it attempts to maintain balance across the Availability Zones in your cluster using the following logic:

You must have a service-linked role when you update any of the following service properties:

For more information about the role see the CreateService request parameter role .

", "UpdateServicePrimaryTaskSet": "

Modifies which task set in a service is the primary task set. Any parameters that are updated on the primary task set in a service will transition to the service. This is used when a service uses the EXTERNAL deployment controller type. For more information, see Amazon ECS Deployment Types in the Amazon Elastic Container Service Developer Guide.

", "UpdateTaskProtection": "

Updates the protection status of a task. You can set protectionEnabled to true to protect your task from termination during scale-in events from Service Autoscaling or deployments.

Task-protection, by default, expires after 2 hours at which point Amazon ECS clears the protectionEnabled property making the task eligible for termination by a subsequent scale-in event.

You can specify a custom expiration period for task protection from 1 minute to up to 2,880 minutes (48 hours). To specify the custom expiration period, set the expiresInMinutes property. The expiresInMinutes property is always reset when you invoke this operation for a task that already has protectionEnabled set to true. You can keep extending the protection expiration period of a task by invoking this operation repeatedly.

To learn more about Amazon ECS task protection, see Task scale-in protection in the Amazon Elastic Container Service Developer Guide .

This operation is only supported for tasks belonging to an Amazon ECS service. Invoking this operation for a standalone task will result in an TASK_NOT_VALID failure. For more information, see API failure reasons.

If you prefer to set task protection from within the container, we recommend using the Task scale-in protection endpoint.

", "UpdateTaskSet": "

Modifies a task set. This is used when a service uses the EXTERNAL deployment controller type. For more information, see Amazon ECS Deployment Types in the Amazon Elastic Container Service Developer Guide.

" diff --git a/models/apis/finspace/2021-03-12/api-2.json b/models/apis/finspace/2021-03-12/api-2.json index 9592cea24a1..b244b6f9fbc 100644 --- a/models/apis/finspace/2021-03-12/api-2.json +++ b/models/apis/finspace/2021-03-12/api-2.json @@ -219,6 +219,22 @@ {"shape":"ResourceNotFoundException"} ] }, + "DeleteKxClusterNode":{ + "name":"DeleteKxClusterNode", + "http":{ + "method":"DELETE", + "requestUri":"/kx/environments/{environmentId}/clusters/{clusterName}/nodes/{nodeId}" + }, + "input":{"shape":"DeleteKxClusterNodeRequest"}, + "output":{"shape":"DeleteKxClusterNodeResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ] + }, "DeleteKxDatabase":{ "name":"DeleteKxDatabase", "http":{ @@ -1414,6 +1430,36 @@ "members":{ } }, + "DeleteKxClusterNodeRequest":{ + "type":"structure", + "required":[ + "clusterName", + "nodeId", + "environmentId" + ], + "members":{ + "environmentId":{ + "shape":"KxEnvironmentId", + "location":"uri", + "locationName":"environmentId" + }, + "clusterName":{ + "shape":"KxClusterName", + "location":"uri", + "locationName":"clusterName" + }, + "nodeId":{ + "shape":"KxClusterNodeIdString", + "location":"uri", + "locationName":"nodeId" + } + } + }, + "DeleteKxClusterNodeResponse":{ + "type":"structure", + "members":{ + } + }, "DeleteKxClusterRequest":{ "type":"structure", "required":[ @@ -2548,9 +2594,17 @@ "members":{ "nodeId":{"shape":"KxClusterNodeIdString"}, "availabilityZoneId":{"shape":"AvailabilityZoneId"}, - "launchTime":{"shape":"Timestamp"} + "launchTime":{"shape":"Timestamp"}, + "status":{"shape":"KxNodeStatus"} } }, + "KxNodeStatus":{ + "type":"string", + "enum":[ + "RUNNING", + "PROVISIONING" + ] + }, "KxNodeSummaries":{ "type":"list", "member":{"shape":"KxNode"} diff --git a/models/apis/finspace/2021-03-12/docs-2.json b/models/apis/finspace/2021-03-12/docs-2.json index 744976afd14..69ad267ff0b 100644 --- a/models/apis/finspace/2021-03-12/docs-2.json +++ b/models/apis/finspace/2021-03-12/docs-2.json @@ -13,6 +13,7 @@ "CreateKxVolume": "

Creates a new volume with a specific amount of throughput and storage capacity.

", "DeleteEnvironment": "

Delete an FinSpace environment.

", "DeleteKxCluster": "

Deletes a kdb cluster.

", + "DeleteKxClusterNode": "

Deletes the specified nodes from a cluster.

", "DeleteKxDatabase": "

Deletes the specified database and all of its associated data. This action is irreversible. You must copy any data out of the database before deleting it if the data is to be retained.

", "DeleteKxDataview": "

Deletes the specified dataview. Before deleting a dataview, make sure that it is not in use by any cluster.

", "DeleteKxEnvironment": "

Deletes the kdb environment. This action is irreversible. Deleting a kdb environment will remove all the associated data and any services running in it.

", @@ -147,7 +148,7 @@ "ChangeRequests": { "base": null, "refs": { - "CreateKxChangesetRequest$changeRequests": "

A list of change request objects that are run in order. A change request object consists of changeType , s3Path, and dbPath. A changeType can has the following values:

All the change requests require a mandatory dbPath attribute that defines the path within the database directory. All database paths must start with a leading / and end with a trailing /. The s3Path attribute defines the s3 source file path and is required for a PUT change type. The s3path must end with a trailing / if it is a directory and must end without a trailing / if it is a file.

Here are few examples of how you can use the change request object:

  1. This request adds a single sym file at database root location.

    { \"changeType\": \"PUT\", \"s3Path\":\"s3://bucket/db/sym\", \"dbPath\":\"/\"}

  2. This request adds files in the given s3Path under the 2020.01.02 partition of the database.

    { \"changeType\": \"PUT\", \"s3Path\":\"s3://bucket/db/2020.01.02/\", \"dbPath\":\"/2020.01.02/\"}

  3. This request adds files in the given s3Path under the taq table partition of the database.

    [ { \"changeType\": \"PUT\", \"s3Path\":\"s3://bucket/db/2020.01.02/taq/\", \"dbPath\":\"/2020.01.02/taq/\"}]

  4. This request deletes the 2020.01.02 partition of the database.

    [{ \"changeType\": \"DELETE\", \"dbPath\": \"/2020.01.02/\"} ]

  5. The DELETE request allows you to delete the existing files under the 2020.01.02 partition of the database, and the PUT request adds a new taq table under it.

    [ {\"changeType\": \"DELETE\", \"dbPath\":\"/2020.01.02/\"}, {\"changeType\": \"PUT\", \"s3Path\":\"s3://bucket/db/2020.01.02/taq/\", \"dbPath\":\"/2020.01.02/taq/\"}]

", + "CreateKxChangesetRequest$changeRequests": "

A list of change request objects that are run in order. A change request object consists of changeType , s3Path, and dbPath. A changeType can have the following values:

All the change requests require a mandatory dbPath attribute that defines the path within the database directory. All database paths must start with a leading / and end with a trailing /. The s3Path attribute defines the s3 source file path and is required for a PUT change type. The s3path must end with a trailing / if it is a directory and must end without a trailing / if it is a file.

Here are few examples of how you can use the change request object:

  1. This request adds a single sym file at database root location.

    { \"changeType\": \"PUT\", \"s3Path\":\"s3://bucket/db/sym\", \"dbPath\":\"/\"}

  2. This request adds files in the given s3Path under the 2020.01.02 partition of the database.

    { \"changeType\": \"PUT\", \"s3Path\":\"s3://bucket/db/2020.01.02/\", \"dbPath\":\"/2020.01.02/\"}

  3. This request adds files in the given s3Path under the taq table partition of the database.

    [ { \"changeType\": \"PUT\", \"s3Path\":\"s3://bucket/db/2020.01.02/taq/\", \"dbPath\":\"/2020.01.02/taq/\"}]

  4. This request deletes the 2020.01.02 partition of the database.

    [{ \"changeType\": \"DELETE\", \"dbPath\": \"/2020.01.02/\"} ]

  5. The DELETE request allows you to delete the existing files under the 2020.01.02 partition of the database, and the PUT request adds a new taq table under it.

    [ {\"changeType\": \"DELETE\", \"dbPath\":\"/2020.01.02/\"}, {\"changeType\": \"PUT\", \"s3Path\":\"s3://bucket/db/2020.01.02/taq/\", \"dbPath\":\"/2020.01.02/taq/\"}]

", "CreateKxChangesetResponse$changeRequests": "

A list of change requests.

", "GetKxChangesetResponse$changeRequests": "

A list of change request objects that are run in order.

" } @@ -428,6 +429,16 @@ "refs": { } }, + "DeleteKxClusterNodeRequest": { + "base": null, + "refs": { + } + }, + "DeleteKxClusterNodeResponse": { + "base": null, + "refs": { + } + }, "DeleteKxClusterRequest": { "base": null, "refs": { @@ -987,6 +998,7 @@ "AttachedClusterList$member": null, "CreateKxClusterRequest$clusterName": "

A unique name for the cluster that you want to create.

", "CreateKxClusterResponse$clusterName": "

A unique name for the cluster.

", + "DeleteKxClusterNodeRequest$clusterName": "

The name of the cluster, for which you want to delete the nodes.

", "DeleteKxClusterRequest$clusterName": "

The name of the cluster that you want to delete.

", "GetKxClusterRequest$clusterName": "

The name of the cluster that you want to retrieve.

", "GetKxClusterResponse$clusterName": "

A unique name for the cluster.

", @@ -1009,6 +1021,7 @@ "KxClusterNodeIdString": { "base": null, "refs": { + "DeleteKxClusterNodeRequest$nodeId": "

A unique identifier for the node that you want to delete.

", "KxNode$nodeId": "

A unique identifier for the node.

" } }, @@ -1224,6 +1237,7 @@ "CreateKxScalingGroupResponse$environmentId": "

A unique identifier for the kdb environment, where you create the scaling group.

", "CreateKxVolumeRequest$environmentId": "

A unique identifier for the kdb environment, whose clusters can attach to the volume.

", "CreateKxVolumeResponse$environmentId": "

A unique identifier for the kdb environment, whose clusters can attach to the volume.

", + "DeleteKxClusterNodeRequest$environmentId": "

A unique identifier for the kdb environment.

", "DeleteKxClusterRequest$environmentId": "

A unique identifier for the kdb environment.

", "DeleteKxScalingGroupRequest$environmentId": "

A unique identifier for the kdb environment, from where you want to delete the dataview.

", "DeleteKxVolumeRequest$environmentId": "

A unique identifier for the kdb environment, whose clusters can attach to the volume.

", @@ -1281,7 +1295,7 @@ "KxNAS1Size": { "base": null, "refs": { - "KxNAS1Configuration$size": "

The size of the network attached storage.

" + "KxNAS1Configuration$size": "

The size of the network attached storage. For storage type SSD_1000 and SSD_250 you can select the minimum size as 1200 GB or increments of 2400 GB. For storage type HDD_12 you can select the minimum size as 6000 GB or increments of 6000 GB.

" } }, "KxNAS1Type": { @@ -1296,6 +1310,12 @@ "KxNodeSummaries$member": null } }, + "KxNodeStatus": { + "base": null, + "refs": { + "KxNode$status": "

Specifies the status of the cluster nodes.

" + } + }, "KxNodeSummaries": { "base": null, "refs": { diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json index 84797a956e6..c111a2b648c 100644 --- a/models/endpoints/endpoints.json +++ b/models/endpoints/endpoints.json @@ -11696,8 +11696,14 @@ }, "media-pipelines-chime" : { "endpoints" : { + "ap-northeast-1" : { }, + "ap-northeast-2" : { }, + "ap-south-1" : { }, "ap-southeast-1" : { }, + "ap-southeast-2" : { }, + "ca-central-1" : { }, "eu-central-1" : { }, + "eu-west-2" : { }, "us-east-1" : { "variants" : [ { "hostname" : "media-pipelines-chime-fips.us-east-1.amazonaws.com", diff --git a/service/bedrockagentruntime/api.go b/service/bedrockagentruntime/api.go index f0c7f783132..77440a62b57 100644 --- a/service/bedrockagentruntime/api.go +++ b/service/bedrockagentruntime/api.go @@ -519,10 +519,6 @@ func (c *BedrockAgentRuntime) RetrieveAndGenerateRequest(input *RetrieveAndGener // The response cites up to five sources but only selects the ones that are // relevant to the query. // -// The numberOfResults field is currently unsupported for RetrieveAndGenerate. -// Don't include it in the vectorSearchConfiguration (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_KnowledgeBaseVectorSearchConfiguration.html) -// object. -// // 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. @@ -927,6 +923,14 @@ func (s *BadGatewayException) RequestID() string { // An object containing a segment of the generated response that is based on // a source in the knowledge base, alongside information about the source. +// +// This data type is used in the following API operations: +// +// - Retrieve response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Retrieve.html#API_agent-runtime_Retrieve_ResponseSyntax) +// – in the citations field +// +// - RetrieveAndGenerate response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_ResponseSyntax) +// – in the citations field type Citation struct { _ struct{} `type:"structure"` @@ -1242,6 +1246,14 @@ func (s *FinalResponse) SetText(v string) *FinalResponse { // Contains metadata about a part of the generated response that is accompanied // by a citation. +// +// This data type is used in the following API operations: +// +// - Retrieve response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Retrieve.html#API_agent-runtime_Retrieve_ResponseSyntax) +// – in the generatedResponsePart field +// +// - RetrieveAndGenerate response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_ResponseSyntax) +// – in the generatedResponsePart field type GeneratedResponsePart struct { _ struct{} `type:"structure"` @@ -1278,6 +1290,59 @@ func (s *GeneratedResponsePart) SetTextResponsePart(v *TextResponsePart) *Genera return s } +// Contains configurations for response generation based on the knowledge base +// query results. +// +// This data type is used in the following API operations: +// +// - RetrieveAndGenerate request (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_RequestSyntax) +type GenerationConfiguration struct { + _ struct{} `type:"structure"` + + // Contains the template for the prompt that's sent to the model for response + // generation. + PromptTemplate *PromptTemplate `locationName:"promptTemplate" 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 GenerationConfiguration) 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 GenerationConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GenerationConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GenerationConfiguration"} + if s.PromptTemplate != nil { + if err := s.PromptTemplate.Validate(); err != nil { + invalidParams.AddNested("PromptTemplate", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPromptTemplate sets the PromptTemplate field's value. +func (s *GenerationConfiguration) SetPromptTemplate(v *PromptTemplate) *GenerationConfiguration { + s.PromptTemplate = v + return s +} + // Specifications about the inference parameters that were provided alongside // the prompt. These are specified in the PromptOverrideConfiguration (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptOverrideConfiguration.html) // object that was set when the agent was created or updated. For more information, @@ -1551,7 +1616,8 @@ type InvokeAgentInput struct { // SessionId is a required field SessionId *string `location:"uri" locationName:"sessionId" min:"2" type:"string" required:"true"` - // Contains parameters that specify various attributes of the session. + // Contains parameters that specify various attributes of the session. For more + // information, see Control session context (https://docs.aws.amazon.com/bedrock/latest/userguide/agents-session-state.html). SessionState *SessionState `locationName:"sessionState" type:"structure"` } @@ -1780,6 +1846,11 @@ func (s *KnowledgeBaseLookupOutput_) SetRetrievedReferences(v []*RetrievedRefere } // Contains the query made to the knowledge base. +// +// This data type is used in the following API operations: +// +// - Retrieve request (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Retrieve.html#API_agent-runtime_Retrieve_RequestSyntax) +// – in the retrievalQuery field type KnowledgeBaseQuery struct { _ struct{} `type:"structure" sensitive:"true"` @@ -1826,17 +1897,21 @@ func (s *KnowledgeBaseQuery) SetText(v string) *KnowledgeBaseQuery { return s } -// Contains details about how the results should be returned. +// Contains configurations for the knowledge base query and retrieval process. +// For more information, see Query configurations (https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html). // // This data type is used in the following API operations: // -// - Retrieve request body (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Retrieve.html#API_agent-runtime_Retrieve_RequestSyntax) +// - Retrieve request (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Retrieve.html#API_agent-runtime_Retrieve_RequestSyntax) +// – in the retrievalConfiguration field // -// - RetrieveAndGenerate request body (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_RequestSyntax) +// - RetrieveAndGenerate request (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_RequestSyntax) +// – in the retrievalConfiguration field type KnowledgeBaseRetrievalConfiguration struct { _ struct{} `type:"structure"` // Contains details about how the results from the vector search should be returned. + // For more information, see Query configurations (https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html). // // VectorSearchConfiguration is a required field VectorSearchConfiguration *KnowledgeBaseVectorSearchConfiguration `locationName:"vectorSearchConfiguration" type:"structure" required:"true"` @@ -1885,6 +1960,11 @@ func (s *KnowledgeBaseRetrievalConfiguration) SetVectorSearchConfiguration(v *Kn } // Details about a result from querying the knowledge base. +// +// This data type is used in the following API operations: +// +// - Retrieve response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Retrieve.html#API_agent-runtime_Retrieve_ResponseSyntax) +// – in the retrievalResults field type KnowledgeBaseRetrievalResult struct { _ struct{} `type:"structure"` @@ -1945,9 +2025,21 @@ func (s *KnowledgeBaseRetrievalResult) SetScore(v float64) *KnowledgeBaseRetriev } // Contains details about the resource being queried. +// +// This data type is used in the following API operations: +// +// - Retrieve request (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Retrieve.html#API_agent-runtime_Retrieve_RequestSyntax) +// – in the knowledgeBaseConfiguration field +// +// - RetrieveAndGenerate request (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_RequestSyntax) +// – in the knowledgeBaseConfiguration field type KnowledgeBaseRetrieveAndGenerateConfiguration struct { _ struct{} `type:"structure"` + // Contains configurations for response generation based on the knowwledge base + // query results. + GenerationConfiguration *GenerationConfiguration `locationName:"generationConfiguration" type:"structure"` + // The unique identifier of the knowledge base that is queried and the foundation // model used for generation. // @@ -1994,6 +2086,11 @@ func (s *KnowledgeBaseRetrieveAndGenerateConfiguration) Validate() error { if s.ModelArn != nil && len(*s.ModelArn) < 20 { invalidParams.Add(request.NewErrParamMinLen("ModelArn", 20)) } + if s.GenerationConfiguration != nil { + if err := s.GenerationConfiguration.Validate(); err != nil { + invalidParams.AddNested("GenerationConfiguration", err.(request.ErrInvalidParams)) + } + } if s.RetrievalConfiguration != nil { if err := s.RetrievalConfiguration.Validate(); err != nil { invalidParams.AddNested("RetrievalConfiguration", err.(request.ErrInvalidParams)) @@ -2006,6 +2103,12 @@ func (s *KnowledgeBaseRetrieveAndGenerateConfiguration) Validate() error { return nil } +// SetGenerationConfiguration sets the GenerationConfiguration field's value. +func (s *KnowledgeBaseRetrieveAndGenerateConfiguration) SetGenerationConfiguration(v *GenerationConfiguration) *KnowledgeBaseRetrieveAndGenerateConfiguration { + s.GenerationConfiguration = v + return s +} + // SetKnowledgeBaseId sets the KnowledgeBaseId field's value. func (s *KnowledgeBaseRetrieveAndGenerateConfiguration) SetKnowledgeBaseId(v string) *KnowledgeBaseRetrieveAndGenerateConfiguration { s.KnowledgeBaseId = &v @@ -2024,14 +2127,20 @@ func (s *KnowledgeBaseRetrieveAndGenerateConfiguration) SetRetrievalConfiguratio return s } -// Configurations for how to carry out the search. +// Configurations for how to perform the search query and return results. For +// more information, see Query configurations (https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html). +// +// This data type is used in the following API operations: +// +// - Retrieve request (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Retrieve.html#API_agent-runtime_Retrieve_RequestSyntax) +// – in the vectorSearchConfiguration field +// +// - RetrieveAndGenerate request (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_RequestSyntax) +// – in the vectorSearchConfiguration field type KnowledgeBaseVectorSearchConfiguration struct { _ struct{} `type:"structure"` - // The number of results to return. - // - // The numberOfResults field is currently unsupported for RetrieveAndGenerate. - // Don't include it in this field if you are sending a RetrieveAndGenerate request. + // The number of source chunks to retrieve. NumberOfResults *int64 `locationName:"numberOfResults" min:"1" type:"integer"` // By default, Amazon Bedrock decides a search strategy for you. If you're using @@ -2792,6 +2901,70 @@ func (s *PreProcessingTrace) SetModelInvocationOutput(v *PreProcessingModelInvoc return s } +// Contains the template for the prompt that's sent to the model for response +// generation. For more information, see Knowledge base prompt templates (https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html#kb-test-config-sysprompt). +// +// This data type is used in the following API operations: +// +// - RetrieveAndGenerate request (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_RequestSyntax) +type PromptTemplate struct { + _ struct{} `type:"structure"` + + // The template for the prompt that's sent to the model for response generation. + // You can include prompt placeholders, which become replaced before the prompt + // is sent to the model to provide instructions and context to the model. In + // addition, you can include XML tags to delineate meaningful sections of the + // prompt template. + // + // For more information, see the following resources: + // + // * Knowledge base prompt templates (https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html#kb-test-config-sysprompt) + // + // * Use XML tags with Anthropic Claude models (https://docs.anthropic.com/claude/docs/use-xml-tags) + // + // TextPromptTemplate is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by PromptTemplate's + // String and GoString methods. + TextPromptTemplate *string `locationName:"textPromptTemplate" min:"1" type:"string" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PromptTemplate) 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 PromptTemplate) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PromptTemplate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PromptTemplate"} + if s.TextPromptTemplate != nil && len(*s.TextPromptTemplate) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TextPromptTemplate", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetTextPromptTemplate sets the TextPromptTemplate field's value. +func (s *PromptTemplate) SetTextPromptTemplate(v string) *PromptTemplate { + s.TextPromptTemplate = &v + return s +} + // Contains the reasoning, based on the input, that the agent uses to justify // carrying out an action group or getting information from a knowledge base. type Rationale struct { @@ -3184,6 +3357,17 @@ func (e *ResponseStreamUnknownEvent) UnmarshalEvent( } // Contains the cited text from the data source. +// +// This data type is used in the following API operations: +// +// - Retrieve response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Retrieve.html#API_agent-runtime_Retrieve_ResponseSyntax) +// – in the content field +// +// - RetrieveAndGenerate response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_ResponseSyntax) +// – in the content field +// +// - Retrieve response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Retrieve.html#API_agent-runtime_Retrieve_ResponseSyntax) +// – in the content field type RetrievalResultContent struct { _ struct{} `type:"structure" sensitive:"true"` @@ -3218,6 +3402,17 @@ func (s *RetrievalResultContent) SetText(v string) *RetrievalResultContent { } // Contains information about the location of the data source. +// +// This data type is used in the following API operations: +// +// - Retrieve response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Retrieve.html#API_agent-runtime_Retrieve_ResponseSyntax) +// – in the location field +// +// - RetrieveAndGenerate response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_ResponseSyntax) +// – in the location field +// +// - Retrieve response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Retrieve.html#API_agent-runtime_Retrieve_ResponseSyntax) +// – in the locatino field type RetrievalResultLocation struct { _ struct{} `type:"structure" sensitive:"true"` @@ -3261,6 +3456,17 @@ func (s *RetrievalResultLocation) SetType(v string) *RetrievalResultLocation { } // Contains the S3 location of the data source. +// +// This data type is used in the following API operations: +// +// - Retrieve response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Retrieve.html#API_agent-runtime_Retrieve_ResponseSyntax) +// – in the s3Location field +// +// - RetrieveAndGenerate response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_ResponseSyntax) +// – in the s3Location field +// +// - Retrieve response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Retrieve.html#API_agent-runtime_Retrieve_ResponseSyntax) +// – in the s3Location field type RetrievalResultS3Location struct { _ struct{} `type:"structure"` @@ -3293,6 +3499,11 @@ func (s *RetrievalResultS3Location) SetUri(v string) *RetrievalResultS3Location } // Contains details about the resource being queried. +// +// This data type is used in the following API operations: +// +// - RetrieveAndGenerate request (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_RequestSyntax) +// – in the retrieveAndGenerateConfiguration field type RetrieveAndGenerateConfiguration struct { _ struct{} `type:"structure"` @@ -3356,7 +3567,7 @@ func (s *RetrieveAndGenerateConfiguration) SetType(v string) *RetrieveAndGenerat type RetrieveAndGenerateInput struct { _ struct{} `type:"structure"` - // Contains the query made to the knowledge base. + // Contains the query to be made to the knowledge base. // // Input is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by RetrieveAndGenerateInput's @@ -3365,8 +3576,8 @@ type RetrieveAndGenerateInput struct { // Input is a required field Input *RetrieveAndGenerateInput_ `locationName:"input" type:"structure" required:"true" sensitive:"true"` - // Contains details about the resource being queried and the foundation model - // used for generation. + // Contains configurations for the knowledge base query and retrieval process. + // For more information, see Query configurations (https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html). RetrieveAndGenerateConfiguration *RetrieveAndGenerateConfiguration `locationName:"retrieveAndGenerateConfiguration" type:"structure"` // Contains details about the session with the knowledge base. @@ -3451,6 +3662,11 @@ func (s *RetrieveAndGenerateInput) SetSessionId(v string) *RetrieveAndGenerateIn } // Contains the query made to the knowledge base. +// +// This data type is used in the following API operations: +// +// - RetrieveAndGenerate request (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_RequestSyntax) +// – in the input field type RetrieveAndGenerateInput_ struct { _ struct{} `type:"structure" sensitive:"true"` @@ -3557,6 +3773,11 @@ func (s *RetrieveAndGenerateOutput) SetSessionId(v string) *RetrieveAndGenerateO } // Contains the response generated from querying the knowledge base. +// +// This data type is used in the following API operations: +// +// - RetrieveAndGenerate response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_ResponseSyntax) +// – in the output field type RetrieveAndGenerateOutput_ struct { _ struct{} `type:"structure" sensitive:"true"` @@ -3591,6 +3812,11 @@ func (s *RetrieveAndGenerateOutput_) SetText(v string) *RetrieveAndGenerateOutpu } // Contains configuration about the session with the knowledge base. +// +// This data type is used in the following API operations: +// +// - RetrieveAndGenerate request (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_RequestSyntax) +// – in the sessionConfiguration field type RetrieveAndGenerateSessionConfiguration struct { _ struct{} `type:"structure"` @@ -3653,10 +3879,11 @@ type RetrieveInput struct { // retrieve the next batch of results. NextToken *string `locationName:"nextToken" min:"1" type:"string"` - // Contains details about how the results should be returned. + // Contains configurations for the knowledge base query and retrieval process. + // For more information, see Query configurations (https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html). RetrievalConfiguration *KnowledgeBaseRetrievalConfiguration `locationName:"retrievalConfiguration" type:"structure"` - // The query to send the knowledge base. + // Contains the query to send the knowledge base. // // RetrievalQuery is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by RetrieveInput's @@ -3788,7 +4015,15 @@ func (s *RetrieveOutput) SetRetrievalResults(v []*KnowledgeBaseRetrievalResult) return s } -// Contains metadata about a sources cited for the generated response. +// Contains metadata about a source cited for the generated response. +// +// This data type is used in the following API operations: +// +// - RetrieveAndGenerate response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_ResponseSyntax) +// – in the retrievedReferences field +// +// - Retrieve response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Retrieve.html#API_agent-runtime_Retrieve_ResponseSyntax) +// – in the retrievedReferences field type RetrievedReference struct { _ struct{} `type:"structure"` @@ -3936,7 +4171,7 @@ func (s *ServiceQuotaExceededException) RequestID() string { // for an action group or pass them when making an InvokeAgent (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html) // request. Use session state attributes to control and provide conversational // context for your agent and to help customize your agent's behavior. For more -// information, see Session context (https://docs.aws.amazon.com/bedrock/latest/userguide/sessionstate.html). +// information, see Control session context (https://docs.aws.amazon.com/bedrock/latest/userguide/agents-session-state.html). type SessionState struct { _ struct{} `type:"structure"` @@ -3983,6 +4218,14 @@ func (s *SessionState) SetSessionAttributes(v map[string]*string) *SessionState // Contains information about where the text with a citation begins and ends // in the generated output. +// +// This data type is used in the following API operations: +// +// - RetrieveAndGenerate response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_ResponseSyntax) +// – in the span field +// +// - Retrieve response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Retrieve.html#API_agent-runtime_Retrieve_ResponseSyntax) +// – in the span field type Span struct { _ struct{} `type:"structure"` @@ -4025,6 +4268,14 @@ func (s *Span) SetStart(v int64) *Span { // Contains the part of the generated text that contains a citation, alongside // where it begins and ends. +// +// This data type is used in the following API operations: +// +// - RetrieveAndGenerate response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_ResponseSyntax) +// – in the textResponsePart field +// +// - Retrieve response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Retrieve.html#API_agent-runtime_Retrieve_ResponseSyntax) +// – in the textResponsePart field type TextResponsePart struct { _ struct{} `type:"structure" sensitive:"true"` diff --git a/service/costexplorer/api.go b/service/costexplorer/api.go index ab3ad5da6b8..473faee9da5 100644 --- a/service/costexplorer/api.go +++ b/service/costexplorer/api.go @@ -2552,6 +2552,145 @@ func (c *CostExplorer) GetUsageForecastWithContext(ctx aws.Context, input *GetUs return out, req.Send() } +const opListCostAllocationTagBackfillHistory = "ListCostAllocationTagBackfillHistory" + +// ListCostAllocationTagBackfillHistoryRequest generates a "aws/request.Request" representing the +// client's request for the ListCostAllocationTagBackfillHistory 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 ListCostAllocationTagBackfillHistory for more information on using the ListCostAllocationTagBackfillHistory +// 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 ListCostAllocationTagBackfillHistoryRequest method. +// req, resp := client.ListCostAllocationTagBackfillHistoryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/ListCostAllocationTagBackfillHistory +func (c *CostExplorer) ListCostAllocationTagBackfillHistoryRequest(input *ListCostAllocationTagBackfillHistoryInput) (req *request.Request, output *ListCostAllocationTagBackfillHistoryOutput) { + op := &request.Operation{ + Name: opListCostAllocationTagBackfillHistory, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListCostAllocationTagBackfillHistoryInput{} + } + + output = &ListCostAllocationTagBackfillHistoryOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListCostAllocationTagBackfillHistory API operation for AWS Cost Explorer Service. +// +// Retrieves a list of your historical cost allocation tag backfill requests. +// +// 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 Cost Explorer Service's +// API operation ListCostAllocationTagBackfillHistory for usage and error information. +// +// Returned Error Types: +// +// - LimitExceededException +// You made too many calls in a short period of time. Try again later. +// +// - InvalidNextTokenException +// The pagination token is invalid. Try again without a pagination token. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/ListCostAllocationTagBackfillHistory +func (c *CostExplorer) ListCostAllocationTagBackfillHistory(input *ListCostAllocationTagBackfillHistoryInput) (*ListCostAllocationTagBackfillHistoryOutput, error) { + req, out := c.ListCostAllocationTagBackfillHistoryRequest(input) + return out, req.Send() +} + +// ListCostAllocationTagBackfillHistoryWithContext is the same as ListCostAllocationTagBackfillHistory with the addition of +// the ability to pass a context and additional request options. +// +// See ListCostAllocationTagBackfillHistory 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 *CostExplorer) ListCostAllocationTagBackfillHistoryWithContext(ctx aws.Context, input *ListCostAllocationTagBackfillHistoryInput, opts ...request.Option) (*ListCostAllocationTagBackfillHistoryOutput, error) { + req, out := c.ListCostAllocationTagBackfillHistoryRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListCostAllocationTagBackfillHistoryPages iterates over the pages of a ListCostAllocationTagBackfillHistory operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListCostAllocationTagBackfillHistory 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 ListCostAllocationTagBackfillHistory operation. +// pageNum := 0 +// err := client.ListCostAllocationTagBackfillHistoryPages(params, +// func(page *costexplorer.ListCostAllocationTagBackfillHistoryOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *CostExplorer) ListCostAllocationTagBackfillHistoryPages(input *ListCostAllocationTagBackfillHistoryInput, fn func(*ListCostAllocationTagBackfillHistoryOutput, bool) bool) error { + return c.ListCostAllocationTagBackfillHistoryPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListCostAllocationTagBackfillHistoryPagesWithContext same as ListCostAllocationTagBackfillHistoryPages 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 *CostExplorer) ListCostAllocationTagBackfillHistoryPagesWithContext(ctx aws.Context, input *ListCostAllocationTagBackfillHistoryInput, fn func(*ListCostAllocationTagBackfillHistoryOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListCostAllocationTagBackfillHistoryInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListCostAllocationTagBackfillHistoryRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListCostAllocationTagBackfillHistoryOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opListCostAllocationTags = "ListCostAllocationTags" // ListCostAllocationTagsRequest generates a "aws/request.Request" representing the @@ -3080,6 +3219,93 @@ func (c *CostExplorer) ProvideAnomalyFeedbackWithContext(ctx aws.Context, input return out, req.Send() } +const opStartCostAllocationTagBackfill = "StartCostAllocationTagBackfill" + +// StartCostAllocationTagBackfillRequest generates a "aws/request.Request" representing the +// client's request for the StartCostAllocationTagBackfill 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 StartCostAllocationTagBackfill for more information on using the StartCostAllocationTagBackfill +// 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 StartCostAllocationTagBackfillRequest method. +// req, resp := client.StartCostAllocationTagBackfillRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/StartCostAllocationTagBackfill +func (c *CostExplorer) StartCostAllocationTagBackfillRequest(input *StartCostAllocationTagBackfillInput) (req *request.Request, output *StartCostAllocationTagBackfillOutput) { + op := &request.Operation{ + Name: opStartCostAllocationTagBackfill, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartCostAllocationTagBackfillInput{} + } + + output = &StartCostAllocationTagBackfillOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartCostAllocationTagBackfill API operation for AWS Cost Explorer Service. +// +// Request a cost allocation tag backfill. This will backfill the activation +// status (either active or inactive) for all tag keys from para:BackfillFrom +// up to the when this request is made. +// +// You can request a backfill once every 24 hours. +// +// 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 Cost Explorer Service's +// API operation StartCostAllocationTagBackfill for usage and error information. +// +// Returned Error Types: +// +// - LimitExceededException +// You made too many calls in a short period of time. Try again later. +// +// - BackfillLimitExceededException +// A request to backfill is already in progress. Once the previous request is +// complete, you can create another request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/StartCostAllocationTagBackfill +func (c *CostExplorer) StartCostAllocationTagBackfill(input *StartCostAllocationTagBackfillInput) (*StartCostAllocationTagBackfillOutput, error) { + req, out := c.StartCostAllocationTagBackfillRequest(input) + return out, req.Send() +} + +// StartCostAllocationTagBackfillWithContext is the same as StartCostAllocationTagBackfill with the addition of +// the ability to pass a context and additional request options. +// +// See StartCostAllocationTagBackfill 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 *CostExplorer) StartCostAllocationTagBackfillWithContext(ctx aws.Context, input *StartCostAllocationTagBackfillInput, opts ...request.Option) (*StartCostAllocationTagBackfillOutput, error) { + req, out := c.StartCostAllocationTagBackfillRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opStartSavingsPlansPurchaseRecommendationGeneration = "StartSavingsPlansPurchaseRecommendationGeneration" // StartSavingsPlansPurchaseRecommendationGenerationRequest generates a "aws/request.Request" representing the @@ -4291,6 +4517,71 @@ func (s *AnomalySubscription) SetThresholdExpression(v *Expression) *AnomalySubs return s } +// A request to backfill is already in progress. Once the previous request is +// complete, you can create another request. +type BackfillLimitExceededException 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 BackfillLimitExceededException) 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 BackfillLimitExceededException) GoString() string { + return s.String() +} + +func newErrorBackfillLimitExceededException(v protocol.ResponseMetadata) error { + return &BackfillLimitExceededException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *BackfillLimitExceededException) Code() string { + return "BackfillLimitExceededException" +} + +// Message returns the exception's message. +func (s *BackfillLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *BackfillLimitExceededException) OrigErr() error { + return nil +} + +func (s *BackfillLimitExceededException) 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 *BackfillLimitExceededException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *BackfillLimitExceededException) RequestID() string { + return s.RespMetadata.RequestID +} + // The requested report expired. Update the date interval and try again. type BillExpirationException struct { _ struct{} `type:"structure"` @@ -4434,6 +4725,75 @@ func (s *CostAllocationTag) SetType(v string) *CostAllocationTag { return s } +// The cost allocation tag backfill request structure that contains metadata +// and details of a certain backfill. +type CostAllocationTagBackfillRequest struct { + _ struct{} `type:"structure"` + + // The date the backfill starts from. + BackfillFrom *string `min:"20" type:"string"` + + // The status of the cost allocation tag backfill request. + BackfillStatus *string `type:"string" enum:"CostAllocationTagBackfillStatus"` + + // The backfill completion time. + CompletedAt *string `min:"20" type:"string"` + + // The time when the backfill status was last updated. + LastUpdatedAt *string `min:"20" type:"string"` + + // The time when the backfill was requested. + RequestedAt *string `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 CostAllocationTagBackfillRequest) 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 CostAllocationTagBackfillRequest) GoString() string { + return s.String() +} + +// SetBackfillFrom sets the BackfillFrom field's value. +func (s *CostAllocationTagBackfillRequest) SetBackfillFrom(v string) *CostAllocationTagBackfillRequest { + s.BackfillFrom = &v + return s +} + +// SetBackfillStatus sets the BackfillStatus field's value. +func (s *CostAllocationTagBackfillRequest) SetBackfillStatus(v string) *CostAllocationTagBackfillRequest { + s.BackfillStatus = &v + return s +} + +// SetCompletedAt sets the CompletedAt field's value. +func (s *CostAllocationTagBackfillRequest) SetCompletedAt(v string) *CostAllocationTagBackfillRequest { + s.CompletedAt = &v + return s +} + +// SetLastUpdatedAt sets the LastUpdatedAt field's value. +func (s *CostAllocationTagBackfillRequest) SetLastUpdatedAt(v string) *CostAllocationTagBackfillRequest { + s.LastUpdatedAt = &v + return s +} + +// SetRequestedAt sets the RequestedAt field's value. +func (s *CostAllocationTagBackfillRequest) SetRequestedAt(v string) *CostAllocationTagBackfillRequest { + s.RequestedAt = &v + return s +} + // The cost allocation tag status. The status of a key can either be active // or inactive. type CostAllocationTagStatusEntry struct { @@ -12127,6 +12487,103 @@ func (s *LimitExceededException) RequestID() string { return s.RespMetadata.RequestID } +type ListCostAllocationTagBackfillHistoryInput struct { + _ struct{} `type:"structure"` + + // The maximum number of objects that are returned for this request. + MaxResults *int64 `min:"1" type:"integer"` + + // The token to retrieve the next set of results. Amazon Web Services provides + // the token when the response from a previous call has more results than the + // maximum page size. + 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 ListCostAllocationTagBackfillHistoryInput) 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 ListCostAllocationTagBackfillHistoryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListCostAllocationTagBackfillHistoryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListCostAllocationTagBackfillHistoryInput"} + 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 *ListCostAllocationTagBackfillHistoryInput) SetMaxResults(v int64) *ListCostAllocationTagBackfillHistoryInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListCostAllocationTagBackfillHistoryInput) SetNextToken(v string) *ListCostAllocationTagBackfillHistoryInput { + s.NextToken = &v + return s +} + +type ListCostAllocationTagBackfillHistoryOutput struct { + _ struct{} `type:"structure"` + + // The list of historical cost allocation tag backfill requests. + BackfillRequests []*CostAllocationTagBackfillRequest `type:"list"` + + // The token to retrieve the next set of results. Amazon Web Services provides + // the token when the response from a previous call has more results than the + // maximum page size. + 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 ListCostAllocationTagBackfillHistoryOutput) 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 ListCostAllocationTagBackfillHistoryOutput) GoString() string { + return s.String() +} + +// SetBackfillRequests sets the BackfillRequests field's value. +func (s *ListCostAllocationTagBackfillHistoryOutput) SetBackfillRequests(v []*CostAllocationTagBackfillRequest) *ListCostAllocationTagBackfillHistoryOutput { + s.BackfillRequests = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListCostAllocationTagBackfillHistoryOutput) SetNextToken(v string) *ListCostAllocationTagBackfillHistoryOutput { + s.NextToken = &v + return s +} + type ListCostAllocationTagsInput struct { _ struct{} `type:"structure"` @@ -15885,6 +16342,88 @@ func (s *SortDefinition) SetSortOrder(v string) *SortDefinition { return s } +type StartCostAllocationTagBackfillInput struct { + _ struct{} `type:"structure"` + + // The date you want the backfill to start from. The date can only be a first + // day of the month (a billing start date). Dates can't precede the previous + // twelve months, or in the future. + // + // BackfillFrom is a required field + BackfillFrom *string `min:"20" 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 StartCostAllocationTagBackfillInput) 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 StartCostAllocationTagBackfillInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartCostAllocationTagBackfillInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartCostAllocationTagBackfillInput"} + if s.BackfillFrom == nil { + invalidParams.Add(request.NewErrParamRequired("BackfillFrom")) + } + if s.BackfillFrom != nil && len(*s.BackfillFrom) < 20 { + invalidParams.Add(request.NewErrParamMinLen("BackfillFrom", 20)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBackfillFrom sets the BackfillFrom field's value. +func (s *StartCostAllocationTagBackfillInput) SetBackfillFrom(v string) *StartCostAllocationTagBackfillInput { + s.BackfillFrom = &v + return s +} + +type StartCostAllocationTagBackfillOutput struct { + _ struct{} `type:"structure"` + + // An object containing detailed metadata of your new backfill request. + BackfillRequest *CostAllocationTagBackfillRequest `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 StartCostAllocationTagBackfillOutput) 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 StartCostAllocationTagBackfillOutput) GoString() string { + return s.String() +} + +// SetBackfillRequest sets the BackfillRequest field's value. +func (s *StartCostAllocationTagBackfillOutput) SetBackfillRequest(v *CostAllocationTagBackfillRequest) *StartCostAllocationTagBackfillOutput { + s.BackfillRequest = v + return s +} + type StartSavingsPlansPurchaseRecommendationGenerationInput struct { _ struct{} `type:"structure"` } @@ -17488,6 +18027,26 @@ func Context_Values() []string { } } +const ( + // CostAllocationTagBackfillStatusSucceeded is a CostAllocationTagBackfillStatus enum value + CostAllocationTagBackfillStatusSucceeded = "SUCCEEDED" + + // CostAllocationTagBackfillStatusProcessing is a CostAllocationTagBackfillStatus enum value + CostAllocationTagBackfillStatusProcessing = "PROCESSING" + + // CostAllocationTagBackfillStatusFailed is a CostAllocationTagBackfillStatus enum value + CostAllocationTagBackfillStatusFailed = "FAILED" +) + +// CostAllocationTagBackfillStatus_Values returns all elements of the CostAllocationTagBackfillStatus enum +func CostAllocationTagBackfillStatus_Values() []string { + return []string{ + CostAllocationTagBackfillStatusSucceeded, + CostAllocationTagBackfillStatusProcessing, + CostAllocationTagBackfillStatusFailed, + } +} + const ( // CostAllocationTagStatusActive is a CostAllocationTagStatus enum value CostAllocationTagStatusActive = "Active" diff --git a/service/costexplorer/costexploreriface/interface.go b/service/costexplorer/costexploreriface/interface.go index 9a773f1ec40..ca9e236433e 100644 --- a/service/costexplorer/costexploreriface/interface.go +++ b/service/costexplorer/costexploreriface/interface.go @@ -174,6 +174,13 @@ type CostExplorerAPI interface { GetUsageForecastWithContext(aws.Context, *costexplorer.GetUsageForecastInput, ...request.Option) (*costexplorer.GetUsageForecastOutput, error) GetUsageForecastRequest(*costexplorer.GetUsageForecastInput) (*request.Request, *costexplorer.GetUsageForecastOutput) + ListCostAllocationTagBackfillHistory(*costexplorer.ListCostAllocationTagBackfillHistoryInput) (*costexplorer.ListCostAllocationTagBackfillHistoryOutput, error) + ListCostAllocationTagBackfillHistoryWithContext(aws.Context, *costexplorer.ListCostAllocationTagBackfillHistoryInput, ...request.Option) (*costexplorer.ListCostAllocationTagBackfillHistoryOutput, error) + ListCostAllocationTagBackfillHistoryRequest(*costexplorer.ListCostAllocationTagBackfillHistoryInput) (*request.Request, *costexplorer.ListCostAllocationTagBackfillHistoryOutput) + + ListCostAllocationTagBackfillHistoryPages(*costexplorer.ListCostAllocationTagBackfillHistoryInput, func(*costexplorer.ListCostAllocationTagBackfillHistoryOutput, bool) bool) error + ListCostAllocationTagBackfillHistoryPagesWithContext(aws.Context, *costexplorer.ListCostAllocationTagBackfillHistoryInput, func(*costexplorer.ListCostAllocationTagBackfillHistoryOutput, bool) bool, ...request.Option) error + ListCostAllocationTags(*costexplorer.ListCostAllocationTagsInput) (*costexplorer.ListCostAllocationTagsOutput, error) ListCostAllocationTagsWithContext(aws.Context, *costexplorer.ListCostAllocationTagsInput, ...request.Option) (*costexplorer.ListCostAllocationTagsOutput, error) ListCostAllocationTagsRequest(*costexplorer.ListCostAllocationTagsInput) (*request.Request, *costexplorer.ListCostAllocationTagsOutput) @@ -200,6 +207,10 @@ type CostExplorerAPI interface { ProvideAnomalyFeedbackWithContext(aws.Context, *costexplorer.ProvideAnomalyFeedbackInput, ...request.Option) (*costexplorer.ProvideAnomalyFeedbackOutput, error) ProvideAnomalyFeedbackRequest(*costexplorer.ProvideAnomalyFeedbackInput) (*request.Request, *costexplorer.ProvideAnomalyFeedbackOutput) + StartCostAllocationTagBackfill(*costexplorer.StartCostAllocationTagBackfillInput) (*costexplorer.StartCostAllocationTagBackfillOutput, error) + StartCostAllocationTagBackfillWithContext(aws.Context, *costexplorer.StartCostAllocationTagBackfillInput, ...request.Option) (*costexplorer.StartCostAllocationTagBackfillOutput, error) + StartCostAllocationTagBackfillRequest(*costexplorer.StartCostAllocationTagBackfillInput) (*request.Request, *costexplorer.StartCostAllocationTagBackfillOutput) + StartSavingsPlansPurchaseRecommendationGeneration(*costexplorer.StartSavingsPlansPurchaseRecommendationGenerationInput) (*costexplorer.StartSavingsPlansPurchaseRecommendationGenerationOutput, error) StartSavingsPlansPurchaseRecommendationGenerationWithContext(aws.Context, *costexplorer.StartSavingsPlansPurchaseRecommendationGenerationInput, ...request.Option) (*costexplorer.StartSavingsPlansPurchaseRecommendationGenerationOutput, error) StartSavingsPlansPurchaseRecommendationGenerationRequest(*costexplorer.StartSavingsPlansPurchaseRecommendationGenerationInput) (*request.Request, *costexplorer.StartSavingsPlansPurchaseRecommendationGenerationOutput) diff --git a/service/costexplorer/errors.go b/service/costexplorer/errors.go index e97a5f0fcd6..01d1e68bb37 100644 --- a/service/costexplorer/errors.go +++ b/service/costexplorer/errors.go @@ -8,6 +8,13 @@ import ( const ( + // ErrCodeBackfillLimitExceededException for service response error code + // "BackfillLimitExceededException". + // + // A request to backfill is already in progress. Once the previous request is + // complete, you can create another request. + ErrCodeBackfillLimitExceededException = "BackfillLimitExceededException" + // ErrCodeBillExpirationException for service response error code // "BillExpirationException". // @@ -86,6 +93,7 @@ const ( ) var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "BackfillLimitExceededException": newErrorBackfillLimitExceededException, "BillExpirationException": newErrorBillExpirationException, "DataUnavailableException": newErrorDataUnavailableException, "GenerationExistsException": newErrorGenerationExistsException, diff --git a/service/ec2/api.go b/service/ec2/api.go index e571e38a6c8..5cf95524083 100644 --- a/service/ec2/api.go +++ b/service/ec2/api.go @@ -159717,11 +159717,14 @@ func (s *NeuronInfo) SetTotalNeuronDeviceMemoryInMiB(v int64) *NeuronInfo { return s } +// Describes a DHCP configuration option. type NewDhcpConfiguration struct { _ struct{} `type:"structure"` - Key *string `locationName:"key" type:"string"` + // The name of a DHCP option. + Key *string `type:"string"` + // The values for the DHCP option. Values []*string `locationName:"Value" locationNameList:"item" type:"list"` } @@ -174216,8 +174219,7 @@ type SearchTransitGatewayRoutesInput struct { // Filters is a required field Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list" required:"true"` - // The maximum number of routes to return. If a value is not provided, the default - // is 1000. + // The maximum number of routes to return. MaxResults *int64 `min:"5" type:"integer"` // The ID of the transit gateway route table. diff --git a/service/ecs/api.go b/service/ecs/api.go index 6b25fe40543..aeeb5279682 100644 --- a/service/ecs/api.go +++ b/service/ecs/api.go @@ -269,9 +269,9 @@ func (c *ECS) CreateServiceRequest(input *CreateServiceInput) (req *request.Requ // Amazon ECS runs another copy of the task in the specified cluster. To update // an existing service, see the UpdateService action. // -// The following change began on March 21, 2024. When the task definition revision -// is not specified, Amazon ECS resolves the task definition revision before -// it authorizes the task definition. +// On March 21, 2024, a change was made to resolve the task definition revision +// before authorization. When a task definition revision is not specified, authorization +// will occur using the latest revision of a task definition. // // In addition to maintaining the desired count of tasks in your service, you // can optionally run your service behind one or more load balancers. The load @@ -484,9 +484,9 @@ func (c *ECS) CreateTaskSetRequest(input *CreateTaskSetInput) (req *request.Requ // see Amazon ECS deployment types (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-types.html) // in the Amazon Elastic Container Service Developer Guide. // -// The following change began on March 21, 2024. When the task definition revision -// is not specified, Amazon ECS resolves the task definition revision before -// it authorizes the task definition. +// On March 21, 2024, a change was made to resolve the task definition revision +// before authorization. When a task definition revision is not specified, authorization +// will occur using the latest revision of a task definition. // // For information about the maximum number of task sets and otther quotas, // see Amazon ECS service quotas (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-quotas.html) @@ -4602,9 +4602,9 @@ func (c *ECS) RunTaskRequest(input *RunTaskInput) (req *request.Request, output // // Starts a new task using the specified task definition. // -// The following change began on March 21, 2024. When the task definition revision -// is not specified, Amazon ECS resolves the task definition revision before -// it authorizes the task definition. +// On March 21, 2024, a change was made to resolve the task definition revision +// before authorization. When a task definition revision is not specified, authorization +// will occur using the latest revision of a task definition. // // You can allow Amazon ECS to place tasks for you, or you can customize how // Amazon ECS places tasks using placement constraints and placement strategies. @@ -4770,9 +4770,9 @@ func (c *ECS) StartTaskRequest(input *StartTaskInput) (req *request.Request, out // Starts a new task from the specified task definition on the specified container // instance or instances. // -// The following change began on March 21, 2024. When the task definition revision -// is not specified, Amazon ECS resolves the task definition revision before -// it authorizes the task definition. +// On March 21, 2024, a change was made to resolve the task definition revision +// before authorization. When a task definition revision is not specified, authorization +// will occur using the latest revision of a task definition. // // Starting April 15, 2023, Amazon Web Services will not onboard new customers // to Amazon Elastic Inference (EI), and will help current customers migrate @@ -6019,9 +6019,9 @@ func (c *ECS) UpdateServiceRequest(input *UpdateServiceInput) (req *request.Requ // // Modifies the parameters of a service. // -// The following change began on March 21, 2024. When the task definition revision -// is not specified, Amazon ECS resolves the task definition revision before -// it authorizes the task definition. +// On March 21, 2024, a change was made to resolve the task definition revision +// before authorization. When a task definition revision is not specified, authorization +// will occur using the latest revision of a task definition. // // For services using the rolling update (ECS) you can update the desired count, // deployment configuration, network configuration, load balancers, service diff --git a/service/finspace/api.go b/service/finspace/api.go index 140751ad9c4..60fc5ee5acc 100644 --- a/service/finspace/api.go +++ b/service/finspace/api.go @@ -1131,6 +1131,99 @@ func (c *Finspace) DeleteKxClusterWithContext(ctx aws.Context, input *DeleteKxCl return out, req.Send() } +const opDeleteKxClusterNode = "DeleteKxClusterNode" + +// DeleteKxClusterNodeRequest generates a "aws/request.Request" representing the +// client's request for the DeleteKxClusterNode 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 DeleteKxClusterNode for more information on using the DeleteKxClusterNode +// 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 DeleteKxClusterNodeRequest method. +// req, resp := client.DeleteKxClusterNodeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2021-03-12/DeleteKxClusterNode +func (c *Finspace) DeleteKxClusterNodeRequest(input *DeleteKxClusterNodeInput) (req *request.Request, output *DeleteKxClusterNodeOutput) { + op := &request.Operation{ + Name: opDeleteKxClusterNode, + HTTPMethod: "DELETE", + HTTPPath: "/kx/environments/{environmentId}/clusters/{clusterName}/nodes/{nodeId}", + } + + if input == nil { + input = &DeleteKxClusterNodeInput{} + } + + output = &DeleteKxClusterNodeOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteKxClusterNode API operation for FinSpace User Environment Management service. +// +// Deletes the specified nodes from a cluster. +// +// 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 FinSpace User Environment Management service's +// API operation DeleteKxClusterNode for usage and error information. +// +// Returned Error Types: +// +// - InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure. +// +// - ThrottlingException +// The request was denied due to request throttling. +// +// - AccessDeniedException +// You do not have sufficient access to perform this action. +// +// - ValidationException +// The input fails to satisfy the constraints specified by an AWS service. +// +// - ResourceNotFoundException +// One or more resources can't be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2021-03-12/DeleteKxClusterNode +func (c *Finspace) DeleteKxClusterNode(input *DeleteKxClusterNodeInput) (*DeleteKxClusterNodeOutput, error) { + req, out := c.DeleteKxClusterNodeRequest(input) + return out, req.Send() +} + +// DeleteKxClusterNodeWithContext is the same as DeleteKxClusterNode with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteKxClusterNode 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 *Finspace) DeleteKxClusterNodeWithContext(ctx aws.Context, input *DeleteKxClusterNodeInput, opts ...request.Option) (*DeleteKxClusterNodeOutput, error) { + req, out := c.DeleteKxClusterNodeRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteKxDatabase = "DeleteKxDatabase" // DeleteKxDatabaseRequest generates a "aws/request.Request" representing the @@ -5774,7 +5867,7 @@ type CreateKxChangesetInput struct { _ struct{} `type:"structure"` // A list of change request objects that are run in order. A change request - // object consists of changeType , s3Path, and dbPath. A changeType can has + // object consists of changeType , s3Path, and dbPath. A changeType can have // the following values: // // * PUT – Adds or updates files in a database. @@ -8415,6 +8508,111 @@ func (s *DeleteKxClusterInput) SetEnvironmentId(v string) *DeleteKxClusterInput return s } +type DeleteKxClusterNodeInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The name of the cluster, for which you want to delete the nodes. + // + // ClusterName is a required field + ClusterName *string `location:"uri" locationName:"clusterName" min:"3" type:"string" required:"true"` + + // A unique identifier for the kdb environment. + // + // EnvironmentId is a required field + EnvironmentId *string `location:"uri" locationName:"environmentId" min:"1" type:"string" required:"true"` + + // A unique identifier for the node that you want to delete. + // + // NodeId is a required field + NodeId *string `location:"uri" locationName:"nodeId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteKxClusterNodeInput) 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 DeleteKxClusterNodeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteKxClusterNodeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteKxClusterNodeInput"} + if s.ClusterName == nil { + invalidParams.Add(request.NewErrParamRequired("ClusterName")) + } + if s.ClusterName != nil && len(*s.ClusterName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("ClusterName", 3)) + } + if s.EnvironmentId == nil { + invalidParams.Add(request.NewErrParamRequired("EnvironmentId")) + } + if s.EnvironmentId != nil && len(*s.EnvironmentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EnvironmentId", 1)) + } + if s.NodeId == nil { + invalidParams.Add(request.NewErrParamRequired("NodeId")) + } + if s.NodeId != nil && len(*s.NodeId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NodeId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClusterName sets the ClusterName field's value. +func (s *DeleteKxClusterNodeInput) SetClusterName(v string) *DeleteKxClusterNodeInput { + s.ClusterName = &v + return s +} + +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *DeleteKxClusterNodeInput) SetEnvironmentId(v string) *DeleteKxClusterNodeInput { + s.EnvironmentId = &v + return s +} + +// SetNodeId sets the NodeId field's value. +func (s *DeleteKxClusterNodeInput) SetNodeId(v string) *DeleteKxClusterNodeInput { + s.NodeId = &v + return s +} + +type DeleteKxClusterNodeOutput 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 DeleteKxClusterNodeOutput) 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 DeleteKxClusterNodeOutput) GoString() string { + return s.String() +} + type DeleteKxClusterOutput struct { _ struct{} `type:"structure"` } @@ -12983,7 +13181,10 @@ func (s *KxEnvironment) SetUpdateTimestamp(v time.Time) *KxEnvironment { type KxNAS1Configuration struct { _ struct{} `type:"structure"` - // The size of the network attached storage. + // The size of the network attached storage. For storage type SSD_1000 and SSD_250 + // you can select the minimum size as 1200 GB or increments of 2400 GB. For + // storage type HDD_12 you can select the minimum size as 6000 GB or increments + // of 6000 GB. Size *int64 `locationName:"size" min:"1200" type:"integer"` // The type of the network attached storage. @@ -13048,6 +13249,13 @@ type KxNode struct { // A unique identifier for the node. NodeId *string `locationName:"nodeId" min:"1" type:"string"` + + // Specifies the status of the cluster nodes. + // + // * RUNNING – The node is actively serving. + // + // * PROVISIONING – The node is being prepared. + Status *string `locationName:"status" type:"string" enum:"KxNodeStatus"` } // String returns the string representation. @@ -13086,6 +13294,12 @@ func (s *KxNode) SetNodeId(v string) *KxNode { return s } +// SetStatus sets the Status field's value. +func (s *KxNode) SetStatus(v string) *KxNode { + s.Status = &v + return s +} + // The size and type of temporary storage that is used to hold data during the // savedown process. All the data written to this storage space is lost when // the cluster node is restarted. @@ -18160,6 +18374,22 @@ func KxNAS1Type_Values() []string { } } +const ( + // KxNodeStatusRunning is a KxNodeStatus enum value + KxNodeStatusRunning = "RUNNING" + + // KxNodeStatusProvisioning is a KxNodeStatus enum value + KxNodeStatusProvisioning = "PROVISIONING" +) + +// KxNodeStatus_Values returns all elements of the KxNodeStatus enum +func KxNodeStatus_Values() []string { + return []string{ + KxNodeStatusRunning, + KxNodeStatusProvisioning, + } +} + const ( // KxSavedownStorageTypeSds01 is a KxSavedownStorageType enum value KxSavedownStorageTypeSds01 = "SDS01" diff --git a/service/finspace/finspaceiface/interface.go b/service/finspace/finspaceiface/interface.go index 2c43e9e7c87..6f996b6d20c 100644 --- a/service/finspace/finspaceiface/interface.go +++ b/service/finspace/finspaceiface/interface.go @@ -104,6 +104,10 @@ type FinspaceAPI interface { DeleteKxClusterWithContext(aws.Context, *finspace.DeleteKxClusterInput, ...request.Option) (*finspace.DeleteKxClusterOutput, error) DeleteKxClusterRequest(*finspace.DeleteKxClusterInput) (*request.Request, *finspace.DeleteKxClusterOutput) + DeleteKxClusterNode(*finspace.DeleteKxClusterNodeInput) (*finspace.DeleteKxClusterNodeOutput, error) + DeleteKxClusterNodeWithContext(aws.Context, *finspace.DeleteKxClusterNodeInput, ...request.Option) (*finspace.DeleteKxClusterNodeOutput, error) + DeleteKxClusterNodeRequest(*finspace.DeleteKxClusterNodeInput) (*request.Request, *finspace.DeleteKxClusterNodeOutput) + DeleteKxDatabase(*finspace.DeleteKxDatabaseInput) (*finspace.DeleteKxDatabaseOutput, error) DeleteKxDatabaseWithContext(aws.Context, *finspace.DeleteKxDatabaseInput, ...request.Option) (*finspace.DeleteKxDatabaseOutput, error) DeleteKxDatabaseRequest(*finspace.DeleteKxDatabaseInput) (*request.Request, *finspace.DeleteKxDatabaseOutput)