diff --git a/.changelog/7ebb81903b724db8ba097b92ed5d5006.json b/.changelog/7ebb81903b724db8ba097b92ed5d5006.json new file mode 100644 index 00000000000..0cf7aa676ec --- /dev/null +++ b/.changelog/7ebb81903b724db8ba097b92ed5d5006.json @@ -0,0 +1,8 @@ +{ + "id": "7ebb8190-3b72-4db8-ba09-7b92ed5d5006", + "type": "feature", + "description": "Adding inferred token name for dynamic tokens in Anomalies.", + "modules": [ + "service/cloudwatchlogs" + ] +} \ No newline at end of file diff --git a/.changelog/d3294fd418624660881b97ced3532c49.json b/.changelog/d3294fd418624660881b97ced3532c49.json new file mode 100644 index 00000000000..42505dba6b3 --- /dev/null +++ b/.changelog/d3294fd418624660881b97ced3532c49.json @@ -0,0 +1,8 @@ +{ + "id": "d3294fd4-1862-4660-881b-97ced3532c49", + "type": "feature", + "description": "Add support of new model types for Bedrock Agents, Adding inference profile support for Flows and Prompt Management, Adding new field to configure additional inference configurations for Flows and Prompt Management", + "modules": [ + "service/bedrockagent" + ] +} \ No newline at end of file diff --git a/.changelog/dc2a927cd9994c76b2a38a90f1511fb3.json b/.changelog/dc2a927cd9994c76b2a38a90f1511fb3.json new file mode 100644 index 00000000000..977aaf22aa4 --- /dev/null +++ b/.changelog/dc2a927cd9994c76b2a38a90f1511fb3.json @@ -0,0 +1,8 @@ +{ + "id": "dc2a927c-d999-4c76-b2a3-8a90f1511fb3", + "type": "feature", + "description": "AWS CodeBuild now supports automatically retrying failed builds", + "modules": [ + "service/codebuild" + ] +} \ No newline at end of file diff --git a/.changelog/e071abd094cc43e99f3941b4c6dc9ba8.json b/.changelog/e071abd094cc43e99f3941b4c6dc9ba8.json new file mode 100644 index 00000000000..80f3aa7fe6e --- /dev/null +++ b/.changelog/e071abd094cc43e99f3941b4c6dc9ba8.json @@ -0,0 +1,8 @@ +{ + "id": "e071abd0-94cc-43e9-9f39-41b4c6dc9ba8", + "type": "feature", + "description": "Add TagsError field in Lambda GetFunctionResponse. The TagsError field contains details related to errors retrieving tags.", + "modules": [ + "service/lambda" + ] +} \ No newline at end of file diff --git a/.changelog/f2ad1ab93532422ab86817d8be4ec645.json b/.changelog/f2ad1ab93532422ab86817d8be4ec645.json new file mode 100644 index 00000000000..0143a1c8fb5 --- /dev/null +++ b/.changelog/f2ad1ab93532422ab86817d8be4ec645.json @@ -0,0 +1,8 @@ +{ + "id": "f2ad1ab9-3532-422a-b868-17d8be4ec645", + "type": "feature", + "description": "API doc updates, and also support showing error message on a failed instance", + "modules": [ + "service/supplychain" + ] +} \ No newline at end of file diff --git a/feature/dynamodbstreams/attributevalue/go_module_metadata.go b/feature/dynamodbstreams/attributevalue/go_module_metadata.go index fdc11f385dc..7a98a199477 100644 --- a/feature/dynamodbstreams/attributevalue/go_module_metadata.go +++ b/feature/dynamodbstreams/attributevalue/go_module_metadata.go @@ -3,4 +3,4 @@ package attributevalue // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.14.42" +const goModuleVersion = "1.15.12" diff --git a/service/bedrockagent/api_op_CreateAgent.go b/service/bedrockagent/api_op_CreateAgent.go index c17fa06bc9e..1737806d4a6 100644 --- a/service/bedrockagent/api_op_CreateAgent.go +++ b/service/bedrockagent/api_op_CreateAgent.go @@ -82,8 +82,35 @@ type CreateAgentInput struct { // A description of the agent. Description *string - // The Amazon Resource Name (ARN) of the foundation model to be used for - // orchestration by the agent you create. + // The identifier for the model that you want to be used for orchestration by the + // agent you create. + // + // The modelId to provide depends on the type of model or throughput that you use: + // + // - If you use a base model, specify the model ID or its ARN. For a list of + // model IDs for base models, see [Amazon Bedrock base model IDs (on-demand throughput)]in the Amazon Bedrock User Guide. + // + // - If you use an inference profile, specify the inference profile ID or its + // ARN. For a list of inference profile IDs, see [Supported Regions and models for cross-region inference]in the Amazon Bedrock User + // Guide. + // + // - If you use a provisioned model, specify the ARN of the Provisioned + // Throughput. For more information, see [Run inference using a Provisioned Throughput]in the Amazon Bedrock User Guide. + // + // - If you use a custom model, first purchase Provisioned Throughput for it. + // Then specify the ARN of the resulting provisioned model. For more information, + // see [Use a custom model in Amazon Bedrock]in the Amazon Bedrock User Guide. + // + // - If you use an [imported model], specify the ARN of the imported model. You can get the + // model ARN from a successful call to [CreateModelImportJob]or from the Imported models page in the + // Amazon Bedrock console. + // + // [Run inference using a Provisioned Throughput]: https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html + // [Use a custom model in Amazon Bedrock]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html + // [imported model]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html + // [CreateModelImportJob]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateModelImportJob.html + // [Supported Regions and models for cross-region inference]: https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference-support.html + // [Amazon Bedrock base model IDs (on-demand throughput)]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns FoundationModel *string // The unique Guardrail configuration assigned to the agent when it is created. diff --git a/service/bedrockagent/api_op_UpdateAgent.go b/service/bedrockagent/api_op_UpdateAgent.go index d07d0ebc7ba..4c4e4ca7447 100644 --- a/service/bedrockagent/api_op_UpdateAgent.go +++ b/service/bedrockagent/api_op_UpdateAgent.go @@ -45,7 +45,35 @@ type UpdateAgentInput struct { // This member is required. AgentResourceRoleArn *string - // Specifies a new foundation model to be used for orchestration by the agent. + // The identifier for the model that you want to be used for orchestration by the + // agent you create. + // + // The modelId to provide depends on the type of model or throughput that you use: + // + // - If you use a base model, specify the model ID or its ARN. For a list of + // model IDs for base models, see [Amazon Bedrock base model IDs (on-demand throughput)]in the Amazon Bedrock User Guide. + // + // - If you use an inference profile, specify the inference profile ID or its + // ARN. For a list of inference profile IDs, see [Supported Regions and models for cross-region inference]in the Amazon Bedrock User + // Guide. + // + // - If you use a provisioned model, specify the ARN of the Provisioned + // Throughput. For more information, see [Run inference using a Provisioned Throughput]in the Amazon Bedrock User Guide. + // + // - If you use a custom model, first purchase Provisioned Throughput for it. + // Then specify the ARN of the resulting provisioned model. For more information, + // see [Use a custom model in Amazon Bedrock]in the Amazon Bedrock User Guide. + // + // - If you use an [imported model], specify the ARN of the imported model. You can get the + // model ARN from a successful call to [CreateModelImportJob]or from the Imported models page in the + // Amazon Bedrock console. + // + // [Run inference using a Provisioned Throughput]: https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html + // [Use a custom model in Amazon Bedrock]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html + // [imported model]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html + // [CreateModelImportJob]: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateModelImportJob.html + // [Supported Regions and models for cross-region inference]: https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference-support.html + // [Amazon Bedrock base model IDs (on-demand throughput)]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns // // This member is required. FoundationModel *string diff --git a/service/bedrockagent/deserializers.go b/service/bedrockagent/deserializers.go index 00e6d51b16e..85b19dbfe17 100644 --- a/service/bedrockagent/deserializers.go +++ b/service/bedrockagent/deserializers.go @@ -8,6 +8,8 @@ import ( "encoding/json" "fmt" "github.com/aws/aws-sdk-go-v2/aws/protocol/restjson" + "github.com/aws/aws-sdk-go-v2/service/bedrockagent/document" + internaldocument "github.com/aws/aws-sdk-go-v2/service/bedrockagent/internal/document" "github.com/aws/aws-sdk-go-v2/service/bedrockagent/types" smithy "github.com/aws/smithy-go" smithyio "github.com/aws/smithy-go/io" @@ -18066,6 +18068,11 @@ func awsRestjson1_deserializeDocumentPromptFlowNodeInlineConfiguration(v **types for key, value := range shape { switch key { + case "additionalModelRequestFields": + if err := awsRestjson1_deserializeDocumentDocument(&sv.AdditionalModelRequestFields, value); err != nil { + return err + } + case "inferenceConfiguration": if err := awsRestjson1_deserializeDocumentPromptInferenceConfiguration(&sv.InferenceConfiguration, value); err != nil { return err @@ -18750,6 +18757,11 @@ func awsRestjson1_deserializeDocumentPromptVariant(v **types.PromptVariant, valu for key, value := range shape { switch key { + case "additionalModelRequestFields": + if err := awsRestjson1_deserializeDocumentDocument(&sv.AdditionalModelRequestFields, value); err != nil { + return err + } + case "inferenceConfiguration": if err := awsRestjson1_deserializeDocumentPromptInferenceConfiguration(&sv.InferenceConfiguration, value); err != nil { return err @@ -20942,3 +20954,11 @@ func awsRestjson1_deserializeDocumentWebSourceConfiguration(v **types.WebSourceC *v = sv return nil } + +func awsRestjson1_deserializeDocumentDocument(v *document.Interface, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + *v = internaldocument.NewDocumentUnmarshaler(value) + return nil +} diff --git a/service/bedrockagent/document/doc.go b/service/bedrockagent/document/doc.go new file mode 100644 index 00000000000..2b06b14f3cd --- /dev/null +++ b/service/bedrockagent/document/doc.go @@ -0,0 +1,66 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +// Package document implements encoding and decoding of open-content that has a JSON-like data model. +// This data-model allows for UTF-8 strings, arbitrary precision numbers, booleans, nulls, a list of these values, and a +// map of UTF-8 strings to these values. +// +// Interface defines the semantics for how a document type is marshalled and unmarshalled for requests and responses +// for the service. To send a document as input to the service you use NewLazyDocument and pass it the Go type to be +// sent to the service. NewLazyDocument returns a document Interface type that encodes the provided Go type during +// the request serialization step after you have invoked an API client operation that uses the document type. +// +// The following examples show how you can create document types using basic Go types. +// +// NewLazyDocument(map[string]interface{}{ +// "favoriteNumber": 42, +// "fruits": []string{"apple", "orange"}, +// "capitals": map[string]interface{}{ +// "Washington": "Olympia", +// "Oregon": "Salem", +// }, +// "skyIsBlue": true, +// }) +// +// NewLazyDocument(3.14159) +// +// NewLazyDocument([]interface{"One", 2, 3, 3.5, "four"}) +// +// NewLazyDocument(true) +// +// Services can send document types as part of their API responses. To retrieve the content of a response document +// you use the UnmarshalSmithyDocument method on the response document. When calling UnmarshalSmithyDocument you pass +// a reference to the Go type that you want to unmarshal and map the response to. +// +// For example, if you expect to receive key/value map from the service response: +// +// var kv map[string]interface{} +// if err := outputDocument.UnmarshalSmithyDocument(&kv); err != nil { +// // handle error +// } +// +// If a service can return one or more data-types in the response, you can use an empty interface and type switch to +// dynamically handle the response type. +// +// var v interface{} +// if err := outputDocument.UnmarshalSmithyDocument(&v); err != nil { +// // handle error +// } +// +// switch vv := v.(type) { +// case map[string]interface{}: +// // handle key/value map +// case []interface{}: +// // handle array of values +// case bool: +// // handle boolean +// case document.Number: +// // handle an arbitrary precision number +// case string: +// // handle string +// default: +// // handle unknown case +// } +// +// The mapping of Go types to document types is covered in more depth in https://pkg.go.dev/github.com/aws/smithy-go/document +// including more in depth examples that cover user-defined structure types. +package document diff --git a/service/bedrockagent/document/document.go b/service/bedrockagent/document/document.go new file mode 100644 index 00000000000..b5a4b45f6a6 --- /dev/null +++ b/service/bedrockagent/document/document.go @@ -0,0 +1,34 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package document + +import ( + internaldocument "github.com/aws/aws-sdk-go-v2/service/bedrockagent/internal/document" +) + +// Interface defines a document which is a protocol-agnostic type which supports a +// JSON-like data-model. You can use this type to send UTF-8 strings, arbitrary +// precision numbers, booleans, nulls, a list of these values, and a map of UTF-8 +// strings to these values. +// +// You create a document type using the NewLazyDocument function and passing it +// the Go type to marshal. When receiving a document in an API response, you use +// the document's UnmarshalSmithyDocument function to decode the response to your +// desired Go type. Unless documented specifically generated structure types in +// client packages or client types packages are not supported at this time. Such +// types embed a noSmithyDocumentSerde and will cause an error to be returned when +// attempting to send an API request. +// +// For more information see the accompanying package documentation and linked +// references. +type Interface = internaldocument.Interface + +// You create document type using the NewLazyDocument function and passing it the +// Go type to be marshaled and sent to the service. The document marshaler supports +// semantics similar to the encoding/json Go standard library. +// +// For more information see the accompanying package documentation and linked +// references. +func NewLazyDocument(v interface{}) Interface { + return internaldocument.NewDocumentMarshaler(v) +} diff --git a/service/bedrockagent/generated.json b/service/bedrockagent/generated.json index e64e6c90664..0961c7f2681 100644 --- a/service/bedrockagent/generated.json +++ b/service/bedrockagent/generated.json @@ -73,10 +73,14 @@ "auth.go", "deserializers.go", "doc.go", + "document/doc.go", + "document/document.go", "endpoints.go", "endpoints_config_test.go", "endpoints_test.go", "generated.json", + "internal/document/document.go", + "internal/document/document_test.go", "internal/endpoints/endpoints.go", "internal/endpoints/endpoints_test.go", "options.go", diff --git a/service/bedrockagent/internal/document/document.go b/service/bedrockagent/internal/document/document.go new file mode 100644 index 00000000000..ee1f579db77 --- /dev/null +++ b/service/bedrockagent/internal/document/document.go @@ -0,0 +1,99 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package document + +import ( + "bytes" + "encoding/json" + smithydocument "github.com/aws/smithy-go/document" + smithydocumentjson "github.com/aws/smithy-go/document/json" +) + +// github.com/aws/aws-sdk-go-v2/service/bedrockagent/internal/document.smithyDocument +// is an interface which is used to bind a document type to its service client. +type smithyDocument interface { + isSmithyDocument() +} + +// github.com/aws/aws-sdk-go-v2/service/bedrockagent/internal/document.Interface +// is a JSON-like data model type that is protocol agnostic and is usedto send +// open-content to a service. +type Interface interface { + smithyDocument + smithydocument.Marshaler + smithydocument.Unmarshaler +} + +type documentMarshaler struct { + value interface{} +} + +func (m *documentMarshaler) UnmarshalSmithyDocument(v interface{}) error { + mBytes, err := m.MarshalSmithyDocument() + if err != nil { + return err + } + + jDecoder := json.NewDecoder(bytes.NewReader(mBytes)) + jDecoder.UseNumber() + + var jv interface{} + if err := jDecoder.Decode(&v); err != nil { + return err + } + + return NewDocumentUnmarshaler(v).UnmarshalSmithyDocument(&jv) +} + +func (m *documentMarshaler) MarshalSmithyDocument() ([]byte, error) { + return smithydocumentjson.NewEncoder().Encode(m.value) +} + +func (m *documentMarshaler) isSmithyDocument() {} + +var _ Interface = (*documentMarshaler)(nil) + +type documentUnmarshaler struct { + value interface{} +} + +func (m *documentUnmarshaler) UnmarshalSmithyDocument(v interface{}) error { + decoder := smithydocumentjson.NewDecoder() + return decoder.DecodeJSONInterface(m.value, v) +} + +func (m *documentUnmarshaler) MarshalSmithyDocument() ([]byte, error) { + return json.Marshal(m.value) +} + +func (m *documentUnmarshaler) isSmithyDocument() {} + +var _ Interface = (*documentUnmarshaler)(nil) + +// NewDocumentMarshaler creates a new document marshaler for the given input type +func NewDocumentMarshaler(v interface{}) Interface { + return &documentMarshaler{ + value: v, + } +} + +// NewDocumentUnmarshaler creates a new document unmarshaler for the given service +// response +func NewDocumentUnmarshaler(v interface{}) Interface { + return &documentUnmarshaler{ + value: v, + } +} + +// github.com/aws/aws-sdk-go-v2/service/bedrockagent/internal/document.IsInterface +// returns whether the given Interface implementation is a valid client +// implementation +func IsInterface(v Interface) (ok bool) { + defer func() { + if err := recover(); err != nil { + ok = false + } + }() + v.isSmithyDocument() + return true +} diff --git a/service/bedrockagent/internal/document/document_test.go b/service/bedrockagent/internal/document/document_test.go new file mode 100644 index 00000000000..775645dcd6e --- /dev/null +++ b/service/bedrockagent/internal/document/document_test.go @@ -0,0 +1,11 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package document + +import ( + smithydocument "github.com/aws/smithy-go/document" +) + +var _ smithyDocument = (Interface)(nil) +var _ smithydocument.Marshaler = (Interface)(nil) +var _ smithydocument.Unmarshaler = (Interface)(nil) diff --git a/service/bedrockagent/serializers.go b/service/bedrockagent/serializers.go index dd26a8cea29..cf8a0f44947 100644 --- a/service/bedrockagent/serializers.go +++ b/service/bedrockagent/serializers.go @@ -6,6 +6,8 @@ import ( "bytes" "context" "fmt" + "github.com/aws/aws-sdk-go-v2/service/bedrockagent/document" + internaldocument "github.com/aws/aws-sdk-go-v2/service/bedrockagent/internal/document" "github.com/aws/aws-sdk-go-v2/service/bedrockagent/types" smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/encoding/httpbinding" @@ -7452,6 +7454,13 @@ func awsRestjson1_serializeDocumentPromptFlowNodeInlineConfiguration(v *types.Pr object := value.Object() defer object.Close() + if v.AdditionalModelRequestFields != nil { + ok := object.Key("additionalModelRequestFields") + if err := awsRestjson1_serializeDocumentDocument(v.AdditionalModelRequestFields, ok); err != nil { + return err + } + } + if v.InferenceConfiguration != nil { ok := object.Key("inferenceConfiguration") if err := awsRestjson1_serializeDocumentPromptInferenceConfiguration(v.InferenceConfiguration, ok); err != nil { @@ -7684,6 +7693,13 @@ func awsRestjson1_serializeDocumentPromptVariant(v *types.PromptVariant, value s object := value.Object() defer object.Close() + if v.AdditionalModelRequestFields != nil { + ok := object.Key("additionalModelRequestFields") + if err := awsRestjson1_serializeDocumentDocument(v.AdditionalModelRequestFields, ok); err != nil { + return err + } + } + if v.InferenceConfiguration != nil { ok := object.Key("inferenceConfiguration") if err := awsRestjson1_serializeDocumentPromptInferenceConfiguration(v.InferenceConfiguration, ok); err != nil { @@ -8487,3 +8503,18 @@ func awsRestjson1_serializeDocumentWebSourceConfiguration(v *types.WebSourceConf return nil } + +func awsRestjson1_serializeDocumentDocument(v document.Interface, value smithyjson.Value) error { + if v == nil { + return nil + } + if !internaldocument.IsInterface(v) { + return fmt.Errorf("%T is not a compatible document type", v) + } + db, err := v.MarshalSmithyDocument() + if err != nil { + return err + } + value.Write(db) + return nil +} diff --git a/service/bedrockagent/types/types.go b/service/bedrockagent/types/types.go index cb542ddf433..aca4b9980b3 100644 --- a/service/bedrockagent/types/types.go +++ b/service/bedrockagent/types/types.go @@ -3,6 +3,7 @@ package types import ( + "github.com/aws/aws-sdk-go-v2/service/bedrockagent/document" smithydocument "github.com/aws/smithy-go/document" "time" ) @@ -2510,6 +2511,12 @@ type PromptFlowNodeInlineConfiguration struct { // This member is required. TemplateType PromptTemplateType + // Contains model-specific inference configurations that aren't in the + // inferenceConfiguration field. To see model-specific inference parameters, see [Inference request parameters and response fields for foundation models]. + // + // [Inference request parameters and response fields for foundation models]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html + AdditionalModelRequestFields document.Interface + // Contains inference configurations for the prompt. InferenceConfiguration PromptInferenceConfiguration @@ -2735,6 +2742,12 @@ type PromptVariant struct { // This member is required. TemplateType PromptTemplateType + // Contains model-specific inference configurations that aren't in the + // inferenceConfiguration field. To see model-specific inference parameters, see [Inference request parameters and response fields for foundation models]. + // + // [Inference request parameters and response fields for foundation models]: https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html + AdditionalModelRequestFields document.Interface + // Contains inference configurations for the prompt variant. InferenceConfiguration PromptInferenceConfiguration diff --git a/service/cloudwatchlogs/api_op_CreateDelivery.go b/service/cloudwatchlogs/api_op_CreateDelivery.go index 6bced5835a4..ed913712a19 100644 --- a/service/cloudwatchlogs/api_op_CreateDelivery.go +++ b/service/cloudwatchlogs/api_op_CreateDelivery.go @@ -42,13 +42,13 @@ import ( // deliveries to configure multiple delivery sources to send logs to the same // delivery destination. // -// You can't update an existing delivery. You can only create and delete -// deliveries. +// To update an existing delivery configuration, use [UpdateDeliveryConfiguration]. // // [PutDeliveryDestination]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestination.html // [PutDeliverySource]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliverySource.html // [Enabling logging from Amazon Web Services services.]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html // [PutDeliveryDestinationPolicy]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliveryDestinationPolicy.html +// [UpdateDeliveryConfiguration]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UpdateDeliveryConfiguration.html func (c *Client) CreateDelivery(ctx context.Context, params *CreateDeliveryInput, optFns ...func(*Options)) (*CreateDeliveryOutput, error) { if params == nil { params = &CreateDeliveryInput{} @@ -81,10 +81,10 @@ type CreateDeliveryInput struct { FieldDelimiter *string // The list of record fields to be delivered to the destination, in order. If the - // delivery’s log source has mandatory fields, they must be included in this list. + // delivery's log source has mandatory fields, they must be included in this list. RecordFields []string - // This structure contains parameters that are valid only when the delivery’s + // This structure contains parameters that are valid only when the delivery's // delivery destination is an S3 bucket. S3DeliveryConfiguration *types.S3DeliveryConfiguration diff --git a/service/cloudwatchlogs/api_op_CreateExportTask.go b/service/cloudwatchlogs/api_op_CreateExportTask.go index 797a6683a11..eb5e12a8440 100644 --- a/service/cloudwatchlogs/api_op_CreateExportTask.go +++ b/service/cloudwatchlogs/api_op_CreateExportTask.go @@ -83,6 +83,10 @@ type CreateExportTaskInput struct { // The prefix used as the start of the key for every object exported. If you don't // specify a value, the default is exportedlogs . + // + // The length of this parameter must comply with the S3 object key name length + // limits. The object key name is a sequence of Unicode characters with UTF-8 + // encoding, and can be up to 1,024 bytes. DestinationPrefix *string // Export only log streams that match the provided prefix. If you don't specify a diff --git a/service/cloudwatchlogs/api_op_DescribeLogGroups.go b/service/cloudwatchlogs/api_op_DescribeLogGroups.go index 1ef85820377..6b1706e354b 100644 --- a/service/cloudwatchlogs/api_op_DescribeLogGroups.go +++ b/service/cloudwatchlogs/api_op_DescribeLogGroups.go @@ -14,7 +14,7 @@ import ( // Lists the specified log groups. You can list all your log groups or filter the // results by prefix. The results are ASCII-sorted by log group name. // -// CloudWatch Logs doesn’t support IAM policies that control access to the +// CloudWatch Logs doesn't support IAM policies that control access to the // DescribeLogGroups action by using the aws:ResourceTag/key-name condition key. // Other CloudWatch Logs actions do support the use of the // aws:ResourceTag/key-name condition key to control access. For more information diff --git a/service/cloudwatchlogs/api_op_PutRetentionPolicy.go b/service/cloudwatchlogs/api_op_PutRetentionPolicy.go index 819828c6c3f..45e77adaad7 100644 --- a/service/cloudwatchlogs/api_op_PutRetentionPolicy.go +++ b/service/cloudwatchlogs/api_op_PutRetentionPolicy.go @@ -14,13 +14,13 @@ import ( // configure the number of days for which to retain log events in the specified log // group. // -// CloudWatch Logs doesn’t immediately delete log events when they reach their +// CloudWatch Logs doesn't immediately delete log events when they reach their // retention setting. It typically takes up to 72 hours after that before log // events are deleted, but in rare situations might take longer. // // To illustrate, imagine that you change a log group to have a longer retention // setting when it contains log events that are past the expiration date, but -// haven’t been deleted. Those log events will take up to 72 hours to be deleted +// haven't been deleted. Those log events will take up to 72 hours to be deleted // after the new retention date is reached. To make sure that log data is deleted // permanently, keep a log group at its lower retention setting until 72 hours // after the previous retention period ends. Alternatively, wait to change the diff --git a/service/cloudwatchlogs/api_op_StartQuery.go b/service/cloudwatchlogs/api_op_StartQuery.go index fd400b1d099..5ef1e826829 100644 --- a/service/cloudwatchlogs/api_op_StartQuery.go +++ b/service/cloudwatchlogs/api_op_StartQuery.go @@ -80,7 +80,7 @@ type StartQueryInput struct { // The maximum number of log events to return in the query. If the query string // uses the fields command, only the specified fields and their values are - // returned. The default is 1000. + // returned. The default is 10,000. Limit *int32 // The list of log groups to query. You can include up to 50 log groups. diff --git a/service/cloudwatchlogs/api_op_TagLogGroup.go b/service/cloudwatchlogs/api_op_TagLogGroup.go index e49d9bfe857..0b79f51dc8a 100644 --- a/service/cloudwatchlogs/api_op_TagLogGroup.go +++ b/service/cloudwatchlogs/api_op_TagLogGroup.go @@ -19,7 +19,7 @@ import ( // // For more information about tags, see [Tag Log Groups in Amazon CloudWatch Logs] in the Amazon CloudWatch Logs User Guide. // -// CloudWatch Logs doesn’t support IAM policies that prevent users from assigning +// CloudWatch Logs doesn't support IAM policies that prevent users from assigning // specified tags to log groups using the aws:Resource/key-name or aws:TagKeys // condition keys. For more information about using tags to control access, see [Controlling access to Amazon Web Services resources using tags]. // diff --git a/service/cloudwatchlogs/api_op_UntagLogGroup.go b/service/cloudwatchlogs/api_op_UntagLogGroup.go index 9ef501f13e4..fcc797e4f69 100644 --- a/service/cloudwatchlogs/api_op_UntagLogGroup.go +++ b/service/cloudwatchlogs/api_op_UntagLogGroup.go @@ -17,7 +17,7 @@ import ( // // To list the tags for a log group, use [ListTagsForResource]. To add tags, use [TagResource]. // -// CloudWatch Logs doesn’t support IAM policies that prevent users from assigning +// CloudWatch Logs doesn't support IAM policies that prevent users from assigning // specified tags to log groups using the aws:Resource/key-name or aws:TagKeys // condition keys. // diff --git a/service/cloudwatchlogs/api_op_UpdateAnomaly.go b/service/cloudwatchlogs/api_op_UpdateAnomaly.go index 27396bae7a6..32674926935 100644 --- a/service/cloudwatchlogs/api_op_UpdateAnomaly.go +++ b/service/cloudwatchlogs/api_op_UpdateAnomaly.go @@ -12,9 +12,9 @@ import ( ) // Use this operation to suppress anomaly detection for a specified anomaly or -// pattern. If you suppress an anomaly, CloudWatch Logs won’t report new +// pattern. If you suppress an anomaly, CloudWatch Logs won't report new // occurrences of that anomaly and won't update that anomaly with new data. If you -// suppress a pattern, CloudWatch Logs won’t report any anomalies related to that +// suppress a pattern, CloudWatch Logs won't report any anomalies related to that // pattern. // // You must specify either anomalyId or patternId , but you can't specify both diff --git a/service/cloudwatchlogs/api_op_UpdateDeliveryConfiguration.go b/service/cloudwatchlogs/api_op_UpdateDeliveryConfiguration.go index 9b9aa7724d2..802fb9c4391 100644 --- a/service/cloudwatchlogs/api_op_UpdateDeliveryConfiguration.go +++ b/service/cloudwatchlogs/api_op_UpdateDeliveryConfiguration.go @@ -43,10 +43,10 @@ type UpdateDeliveryConfigurationInput struct { FieldDelimiter *string // The list of record fields to be delivered to the destination, in order. If the - // delivery’s log source has mandatory fields, they must be included in this list. + // delivery's log source has mandatory fields, they must be included in this list. RecordFields []string - // This structure contains parameters that are valid only when the delivery’s + // This structure contains parameters that are valid only when the delivery's // delivery destination is an S3 bucket. S3DeliveryConfiguration *types.S3DeliveryConfiguration diff --git a/service/cloudwatchlogs/deserializers.go b/service/cloudwatchlogs/deserializers.go index a826c0ae07e..0905c23b190 100644 --- a/service/cloudwatchlogs/deserializers.go +++ b/service/cloudwatchlogs/deserializers.go @@ -13162,6 +13162,15 @@ func awsAwsjson11_deserializeDocumentPatternToken(v **types.PatternToken, value return err } + case "inferredTokenName": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected InferredTokenName to be of type string, got %T instead", value) + } + sv.InferredTokenName = ptr.String(jtv) + } + case "isDynamic": if value != nil { jtv, ok := value.(bool) diff --git a/service/cloudwatchlogs/types/types.go b/service/cloudwatchlogs/types/types.go index 11e0655049d..5623a4d7198 100644 --- a/service/cloudwatchlogs/types/types.go +++ b/service/cloudwatchlogs/types/types.go @@ -233,7 +233,7 @@ type ConfigurationTemplate struct { // that delivers to an S3 bucket. AllowedSuffixPathFields []string - // A mapping that displays the default value of each property within a delivery’s + // A mapping that displays the default value of each property within a delivery's // configuration, if it is not specified in the request. DefaultDeliveryConfigValues *ConfigurationTemplateDeliveryConfigValues @@ -290,10 +290,10 @@ type ConfigurationTemplateDeliveryConfigValues struct { // // For more information, see [CreateDelivery]. // -// You can't update an existing delivery. You can only create and delete -// deliveries. +// To update an existing delivery configuration, use [UpdateDeliveryConfiguration]. // // [CreateDelivery]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html +// [UpdateDeliveryConfiguration]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_UpdateDeliveryConfiguration.html type Delivery struct { // The Amazon Resource Name (ARN) that uniquely identifies this delivery. @@ -980,6 +980,18 @@ type PatternToken struct { // value was found. Enumerations map[string]int64 + // A name that CloudWatch Logs assigned to this dynamic token to make the pattern + // more readable. The string part of the inferredTokenName gives you a clearer + // idea of the content of this token. The number part of the inferredTokenName + // shows where in the pattern this token appears, compared to other dynamic tokens. + // CloudWatch Logs assigns the string part of the name based on analyzing the + // content of the log events that contain it. + // + // For example, an inferred token name of IPAddress-3 means that the token + // represents an IP address, and this token is the third dynamic token in the + // pattern. + InferredTokenName *string + // Specifies whether this is a dynamic token. IsDynamic *bool diff --git a/service/codebuild/api_op_CreateProject.go b/service/codebuild/api_op_CreateProject.go index 00d266d8715..cb3fd5d6fa8 100644 --- a/service/codebuild/api_op_CreateProject.go +++ b/service/codebuild/api_op_CreateProject.go @@ -55,6 +55,11 @@ type CreateProjectInput struct { // This member is required. Source *types.ProjectSource + // The maximum number of additional automatic retries after a failed build. For + // example, if the auto-retry limit is set to 2, CodeBuild will call the RetryBuild + // API to automatically retry your build for up to 2 additional times. + AutoRetryLimit *int32 + // Set this to true to generate a publicly accessible URL for your project's build // badge. BadgeEnabled *bool diff --git a/service/codebuild/api_op_StartBuild.go b/service/codebuild/api_op_StartBuild.go index 28045a146b5..8e449901061 100644 --- a/service/codebuild/api_op_StartBuild.go +++ b/service/codebuild/api_op_StartBuild.go @@ -45,6 +45,11 @@ type StartBuildInput struct { // ones already defined in the build project. ArtifactsOverride *types.ProjectArtifacts + // The maximum number of additional automatic retries after a failed build. For + // example, if the auto-retry limit is set to 2, CodeBuild will call the RetryBuild + // API to automatically retry your build for up to 2 additional times. + AutoRetryLimitOverride *int32 + // Contains information that defines how the build project reports the build // status to the source provider. This option is only used when the source provider // is GITHUB , GITHUB_ENTERPRISE , or BITBUCKET . diff --git a/service/codebuild/api_op_UpdateProject.go b/service/codebuild/api_op_UpdateProject.go index 5b98439db09..e524f2f2dbf 100644 --- a/service/codebuild/api_op_UpdateProject.go +++ b/service/codebuild/api_op_UpdateProject.go @@ -40,6 +40,11 @@ type UpdateProjectInput struct { // project. Artifacts *types.ProjectArtifacts + // The maximum number of additional automatic retries after a failed build. For + // example, if the auto-retry limit is set to 2, CodeBuild will call the RetryBuild + // API to automatically retry your build for up to 2 additional times. + AutoRetryLimit *int32 + // Set this to true to generate a publicly accessible URL for your project's build // badge. BadgeEnabled *bool diff --git a/service/codebuild/deserializers.go b/service/codebuild/deserializers.go index 5d70745cde2..03fdd0f1f2e 100644 --- a/service/codebuild/deserializers.go +++ b/service/codebuild/deserializers.go @@ -5903,6 +5903,81 @@ func awsAwsjson11_deserializeDocumentAccountLimitExceededException(v **types.Acc return nil } +func awsAwsjson11_deserializeDocumentAutoRetryConfig(v **types.AutoRetryConfig, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.AutoRetryConfig + if *v == nil { + sv = &types.AutoRetryConfig{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "autoRetryLimit": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected WrapperInt to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.AutoRetryLimit = ptr.Int32(int32(i64)) + } + + case "autoRetryNumber": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected WrapperInt to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.AutoRetryNumber = ptr.Int32(int32(i64)) + } + + case "nextAutoRetry": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.NextAutoRetry = ptr.String(jtv) + } + + case "previousAutoRetry": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.PreviousAutoRetry = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsAwsjson11_deserializeDocumentBatchRestrictions(v **types.BatchRestrictions, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -5988,6 +6063,11 @@ func awsAwsjson11_deserializeDocumentBuild(v **types.Build, value interface{}) e return err } + case "autoRetryConfig": + if err := awsAwsjson11_deserializeDocumentAutoRetryConfig(&sv.AutoRetryConfig, value); err != nil { + return err + } + case "buildBatchArn": if value != nil { jtv, ok := value.(string) @@ -9387,6 +9467,19 @@ func awsAwsjson11_deserializeDocumentProject(v **types.Project, value interface{ return err } + case "autoRetryLimit": + if value != nil { + jtv, ok := value.(json.Number) + if !ok { + return fmt.Errorf("expected WrapperInt to be json.Number, got %T instead", value) + } + i64, err := jtv.Int64() + if err != nil { + return err + } + sv.AutoRetryLimit = ptr.Int32(int32(i64)) + } + case "badge": if err := awsAwsjson11_deserializeDocumentProjectBadge(&sv.Badge, value); err != nil { return err diff --git a/service/codebuild/serializers.go b/service/codebuild/serializers.go index a0dfd9e852a..2e37b4f43fa 100644 --- a/service/codebuild/serializers.go +++ b/service/codebuild/serializers.go @@ -4251,6 +4251,11 @@ func awsAwsjson11_serializeOpDocumentCreateProjectInput(v *CreateProjectInput, v } } + if v.AutoRetryLimit != nil { + ok := object.Key("autoRetryLimit") + ok.Integer(*v.AutoRetryLimit) + } + if v.BadgeEnabled != nil { ok := object.Key("badgeEnabled") ok.Boolean(*v.BadgeEnabled) @@ -5284,6 +5289,11 @@ func awsAwsjson11_serializeOpDocumentStartBuildInput(v *StartBuildInput, value s } } + if v.AutoRetryLimitOverride != nil { + ok := object.Key("autoRetryLimitOverride") + ok.Integer(*v.AutoRetryLimitOverride) + } + if v.BuildspecOverride != nil { ok := object.Key("buildspecOverride") ok.String(*v.BuildspecOverride) @@ -5569,6 +5579,11 @@ func awsAwsjson11_serializeOpDocumentUpdateProjectInput(v *UpdateProjectInput, v } } + if v.AutoRetryLimit != nil { + ok := object.Key("autoRetryLimit") + ok.Integer(*v.AutoRetryLimit) + } + if v.BadgeEnabled != nil { ok := object.Key("badgeEnabled") ok.Boolean(*v.BadgeEnabled) diff --git a/service/codebuild/types/types.go b/service/codebuild/types/types.go index 89ce645e494..385e49bf822 100644 --- a/service/codebuild/types/types.go +++ b/service/codebuild/types/types.go @@ -7,6 +7,29 @@ import ( "time" ) +// Information about the auto-retry configuration for the build. +type AutoRetryConfig struct { + + // The maximum number of additional automatic retries after a failed build. For + // example, if the auto-retry limit is set to 2, CodeBuild will call the RetryBuild + // API to automatically retry your build for up to 2 additional times. + AutoRetryLimit *int32 + + // The number of times that the build has been retried. The initial build will + // have an auto-retry number of 0. + AutoRetryNumber *int32 + + // The build ARN of the auto-retried build triggered by the current build. The + // next auto-retry will be null for builds that don't trigger an auto-retry. + NextAutoRetry *string + + // The build ARN of the build that triggered the current auto-retry build. The + // previous auto-retry will be null for the initial build. + PreviousAutoRetry *string + + noSmithyDocumentSerde +} + // Specifies restrictions for the batch build. type BatchRestrictions struct { @@ -31,6 +54,9 @@ type Build struct { // Information about the output artifacts for the build. Artifacts *BuildArtifacts + // Information about the auto-retry configuration for the build. + AutoRetryConfig *AutoRetryConfig + // The ARN of the batch build that this build is a member of, if applicable. BuildBatchArn *string @@ -1180,6 +1206,11 @@ type Project struct { // Information about the build output artifacts for the build project. Artifacts *ProjectArtifacts + // The maximum number of additional automatic retries after a failed build. For + // example, if the auto-retry limit is set to 2, CodeBuild will call the RetryBuild + // API to automatically retry your build for up to 2 additional times. + AutoRetryLimit *int32 + // Information about the build badge for the build project. Badge *ProjectBadge diff --git a/service/lambda/api_op_GetFunction.go b/service/lambda/api_op_GetFunction.go index bf0745de0c6..9671a2737ec 100644 --- a/service/lambda/api_op_GetFunction.go +++ b/service/lambda/api_op_GetFunction.go @@ -73,11 +73,16 @@ type GetFunctionOutput struct { // The configuration of the function or version. Configuration *types.FunctionConfiguration - // The function's [tags]. + // The function's [tags]. Lambda returns tag data only if you have explicit allow + // permissions for [lambda:ListTags]. // + // [lambda:ListTags]: https://docs.aws.amazon.com/https:/docs.aws.amazon.com/lambda/latest/api/API_ListTags.html // [tags]: https://docs.aws.amazon.com/lambda/latest/dg/tagging.html Tags map[string]string + // An object that contains details about an error related to retrieving tags. + TagsError *types.TagsError + // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/lambda/deserializers.go b/service/lambda/deserializers.go index ded498a1b22..8df4b43d147 100644 --- a/service/lambda/deserializers.go +++ b/service/lambda/deserializers.go @@ -4303,6 +4303,11 @@ func awsRestjson1_deserializeOpDocumentGetFunctionOutput(v **GetFunctionOutput, return err } + case "TagsError": + if err := awsRestjson1_deserializeDocumentTagsError(&sv.TagsError, value); err != nil { + return err + } + default: _, _ = key, value @@ -21205,6 +21210,55 @@ func awsRestjson1_deserializeDocumentTags(v *map[string]string, value interface{ return nil } +func awsRestjson1_deserializeDocumentTagsError(v **types.TagsError, value interface{}) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + if value == nil { + return nil + } + + shape, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected JSON type %v", value) + } + + var sv *types.TagsError + if *v == nil { + sv = &types.TagsError{} + } else { + sv = *v + } + + for key, value := range shape { + switch key { + case "ErrorCode": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TagsErrorCode to be of type string, got %T instead", value) + } + sv.ErrorCode = ptr.String(jtv) + } + + case "Message": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected TagsErrorMessage to be of type string, got %T instead", value) + } + sv.Message = ptr.String(jtv) + } + + default: + _, _ = key, value + + } + } + *v = sv + return nil +} + func awsRestjson1_deserializeDocumentTooManyRequestsException(v **types.TooManyRequestsException, value interface{}) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/service/lambda/types/types.go b/service/lambda/types/types.go index 49e0b085d54..e1a9fedfc49 100644 --- a/service/lambda/types/types.go +++ b/service/lambda/types/types.go @@ -1268,6 +1268,22 @@ type SourceAccessConfiguration struct { noSmithyDocumentSerde } +// An object that contains details about an error related to retrieving tags. +type TagsError struct { + + // The error code. + // + // This member is required. + ErrorCode *string + + // The error message. + // + // This member is required. + Message *string + + noSmithyDocumentSerde +} + // The function's [X-Ray] tracing configuration. To sample and record incoming requests, // set Mode to Active . // diff --git a/service/mediapackagevod/internal/endpoints/endpoints.go b/service/mediapackagevod/internal/endpoints/endpoints.go index 72b2ef64ac2..11d9cdb5cd4 100644 --- a/service/mediapackagevod/internal/endpoints/endpoints.go +++ b/service/mediapackagevod/internal/endpoints/endpoints.go @@ -151,6 +151,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-south-1", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-south-2", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ap-southeast-1", }: endpoints.Endpoint{}, @@ -178,6 +181,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "eu-west-3", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "me-central-1", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "sa-east-1", }: endpoints.Endpoint{}, diff --git a/service/redshiftserverless/internal/endpoints/endpoints.go b/service/redshiftserverless/internal/endpoints/endpoints.go index 4aef808f5b3..fb7b86678a5 100644 --- a/service/redshiftserverless/internal/endpoints/endpoints.go +++ b/service/redshiftserverless/internal/endpoints/endpoints.go @@ -443,5 +443,43 @@ var defaultPartitions = endpoints.Partitions{ }, RegionRegex: partitionRegexp.AwsUsGov, IsRegionalized: true, + Endpoints: endpoints.Endpoints{ + endpoints.EndpointKey{ + Region: "fips-us-gov-east-1", + }: endpoints.Endpoint{ + Hostname: "redshift-serverless-fips.us-gov-east-1.amazonaws.com", + CredentialScope: endpoints.CredentialScope{ + Region: "us-gov-east-1", + }, + Deprecated: aws.TrueTernary, + }, + endpoints.EndpointKey{ + Region: "fips-us-gov-west-1", + }: endpoints.Endpoint{ + Hostname: "redshift-serverless-fips.us-gov-west-1.amazonaws.com", + CredentialScope: endpoints.CredentialScope{ + Region: "us-gov-west-1", + }, + Deprecated: aws.TrueTernary, + }, + endpoints.EndpointKey{ + Region: "us-gov-east-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "us-gov-east-1", + Variant: endpoints.FIPSVariant, + }: { + Hostname: "redshift-serverless-fips.us-gov-east-1.amazonaws.com", + }, + endpoints.EndpointKey{ + Region: "us-gov-west-1", + }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "us-gov-west-1", + Variant: endpoints.FIPSVariant, + }: { + Hostname: "redshift-serverless-fips.us-gov-west-1.amazonaws.com", + }, + }, }, } diff --git a/service/supplychain/api_op_CreateDataIntegrationFlow.go b/service/supplychain/api_op_CreateDataIntegrationFlow.go index 2ea233d9cc0..866335a1b18 100644 --- a/service/supplychain/api_op_CreateDataIntegrationFlow.go +++ b/service/supplychain/api_op_CreateDataIntegrationFlow.go @@ -11,8 +11,10 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Create DataIntegrationFlow to map one or more different sources to one target -// using the SQL transformation query. +// Enables you to programmatically create a data pipeline to ingest data from +// source systems such as Amazon S3 buckets, to a predefined Amazon Web Services +// Supply Chain dataset (product, inbound_order) or a temporary dataset along with +// the data transformation query provided with the API. func (c *Client) CreateDataIntegrationFlow(ctx context.Context, params *CreateDataIntegrationFlowInput, optFns ...func(*Options)) (*CreateDataIntegrationFlowOutput, error) { if params == nil { params = &CreateDataIntegrationFlowInput{} diff --git a/service/supplychain/api_op_CreateDataLakeDataset.go b/service/supplychain/api_op_CreateDataLakeDataset.go index 2a6f2316b9f..7821b88457f 100644 --- a/service/supplychain/api_op_CreateDataLakeDataset.go +++ b/service/supplychain/api_op_CreateDataLakeDataset.go @@ -11,7 +11,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Create a data lake dataset. +// Enables you to programmatically create an Amazon Web Services Supply Chain data +// lake dataset. Developers can create the datasets using their pre-defined or +// custom schema for a given instance ID, namespace, and dataset name. func (c *Client) CreateDataLakeDataset(ctx context.Context, params *CreateDataLakeDatasetInput, optFns ...func(*Options)) (*CreateDataLakeDatasetOutput, error) { if params == nil { params = &CreateDataLakeDatasetInput{} diff --git a/service/supplychain/api_op_CreateInstance.go b/service/supplychain/api_op_CreateInstance.go index 51c75baba72..39dc7358f9e 100644 --- a/service/supplychain/api_op_CreateInstance.go +++ b/service/supplychain/api_op_CreateInstance.go @@ -11,11 +11,17 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Create a new instance for AWS Supply Chain. This is an asynchronous operation. -// Upon receiving a CreateInstance request, AWS Supply Chain immediately returns -// the instance resource, with instance ID, and the initializing state while -// simultaneously creating all required Amazon Web Services resources for an -// instance creation. You can use GetInstance to check the status of the instance. +// Enables you to programmatically create an Amazon Web Services Supply Chain +// instance by applying KMS keys and relevant information associated with the API +// without using the Amazon Web Services console. +// +// This is an asynchronous operation. Upon receiving a CreateInstance request, +// Amazon Web Services Supply Chain immediately returns the instance resource, +// instance ID, and the initializing state while simultaneously creating all +// required Amazon Web Services resources for an instance creation. You can use +// GetInstance to check the status of the instance. If the instance results in an +// unhealthy state, you need to check the error message, delete the current +// instance, and recreate a new one based on the mitigation from the error message. func (c *Client) CreateInstance(ctx context.Context, params *CreateInstanceInput, optFns ...func(*Options)) (*CreateInstanceOutput, error) { if params == nil { params = &CreateInstanceInput{} diff --git a/service/supplychain/api_op_DeleteDataIntegrationFlow.go b/service/supplychain/api_op_DeleteDataIntegrationFlow.go index a9eac433a37..2fba34d55c4 100644 --- a/service/supplychain/api_op_DeleteDataIntegrationFlow.go +++ b/service/supplychain/api_op_DeleteDataIntegrationFlow.go @@ -10,7 +10,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Delete the DataIntegrationFlow. +// Enable you to programmatically delete an existing data pipeline for the +// provided Amazon Web Services Supply Chain instance and DataIntegrationFlow name. func (c *Client) DeleteDataIntegrationFlow(ctx context.Context, params *DeleteDataIntegrationFlowInput, optFns ...func(*Options)) (*DeleteDataIntegrationFlowOutput, error) { if params == nil { params = &DeleteDataIntegrationFlowInput{} diff --git a/service/supplychain/api_op_DeleteDataLakeDataset.go b/service/supplychain/api_op_DeleteDataLakeDataset.go index 0fe37b1d3d3..81ac469c5ce 100644 --- a/service/supplychain/api_op_DeleteDataLakeDataset.go +++ b/service/supplychain/api_op_DeleteDataLakeDataset.go @@ -10,7 +10,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Delete a data lake dataset. +// Enables you to programmatically delete an Amazon Web Services Supply Chain data +// lake dataset. Developers can delete the existing datasets for a given instance +// ID, namespace, and instance name. func (c *Client) DeleteDataLakeDataset(ctx context.Context, params *DeleteDataLakeDatasetInput, optFns ...func(*Options)) (*DeleteDataLakeDatasetOutput, error) { if params == nil { params = &DeleteDataLakeDatasetInput{} diff --git a/service/supplychain/api_op_DeleteInstance.go b/service/supplychain/api_op_DeleteInstance.go index 4df3aebac1d..b334d95e2e0 100644 --- a/service/supplychain/api_op_DeleteInstance.go +++ b/service/supplychain/api_op_DeleteInstance.go @@ -11,8 +11,12 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Delete the instance. This is an asynchronous operation. Upon receiving a -// DeleteInstance request, AWS Supply Chain immediately returns a response with the +// Enables you to programmatically delete an Amazon Web Services Supply Chain +// instance by deleting the KMS keys and relevant information associated with the +// API without using the Amazon Web Services console. +// +// This is an asynchronous operation. Upon receiving a DeleteInstance request, +// Amazon Web Services Supply Chain immediately returns a response with the // instance resource, delete state while cleaning up all Amazon Web Services // resources created during the instance creation process. You can use the // GetInstance action to check the instance status. diff --git a/service/supplychain/api_op_GetDataIntegrationFlow.go b/service/supplychain/api_op_GetDataIntegrationFlow.go index f0c733c9cb6..95193092c74 100644 --- a/service/supplychain/api_op_GetDataIntegrationFlow.go +++ b/service/supplychain/api_op_GetDataIntegrationFlow.go @@ -11,7 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// View the DataIntegrationFlow details. +// Enables you to programmatically view a specific data pipeline for the provided +// Amazon Web Services Supply Chain instance and DataIntegrationFlow name. func (c *Client) GetDataIntegrationFlow(ctx context.Context, params *GetDataIntegrationFlowInput, optFns ...func(*Options)) (*GetDataIntegrationFlowOutput, error) { if params == nil { params = &GetDataIntegrationFlowInput{} diff --git a/service/supplychain/api_op_GetDataLakeDataset.go b/service/supplychain/api_op_GetDataLakeDataset.go index cf912563d4e..7bbbc1caa5c 100644 --- a/service/supplychain/api_op_GetDataLakeDataset.go +++ b/service/supplychain/api_op_GetDataLakeDataset.go @@ -11,7 +11,10 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Get a data lake dataset. +// Enables you to programmatically view an Amazon Web Services Supply Chain data +// lake dataset. Developers can view the data lake dataset information such as +// namespace, schema, and so on for a given instance ID, namespace, and dataset +// name. func (c *Client) GetDataLakeDataset(ctx context.Context, params *GetDataLakeDatasetInput, optFns ...func(*Options)) (*GetDataLakeDatasetOutput, error) { if params == nil { params = &GetDataLakeDatasetInput{} diff --git a/service/supplychain/api_op_GetInstance.go b/service/supplychain/api_op_GetInstance.go index 92ece85f4aa..4cd3d2edce7 100644 --- a/service/supplychain/api_op_GetInstance.go +++ b/service/supplychain/api_op_GetInstance.go @@ -11,7 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Get the AWS Supply Chain instance details. +// Enables you to programmatically retrieve the information related to an Amazon +// Web Services Supply Chain instance ID. func (c *Client) GetInstance(ctx context.Context, params *GetInstanceInput, optFns ...func(*Options)) (*GetInstanceOutput, error) { if params == nil { params = &GetInstanceInput{} diff --git a/service/supplychain/api_op_ListDataIntegrationFlows.go b/service/supplychain/api_op_ListDataIntegrationFlows.go index 2c142ed3fab..95f0fe870eb 100644 --- a/service/supplychain/api_op_ListDataIntegrationFlows.go +++ b/service/supplychain/api_op_ListDataIntegrationFlows.go @@ -11,7 +11,8 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists all the DataIntegrationFlows in a paginated way. +// Enables you to programmatically list all data pipelines for the provided Amazon +// Web Services Supply Chain instance. func (c *Client) ListDataIntegrationFlows(ctx context.Context, params *ListDataIntegrationFlowsInput, optFns ...func(*Options)) (*ListDataIntegrationFlowsOutput, error) { if params == nil { params = &ListDataIntegrationFlowsInput{} diff --git a/service/supplychain/api_op_ListDataLakeDatasets.go b/service/supplychain/api_op_ListDataLakeDatasets.go index d6f70510140..05f8adfe9a5 100644 --- a/service/supplychain/api_op_ListDataLakeDatasets.go +++ b/service/supplychain/api_op_ListDataLakeDatasets.go @@ -11,7 +11,10 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// List the data lake datasets for a specific instance and name space. +// Enables you to programmatically view the list of Amazon Web Services Supply +// Chain data lake datasets. Developers can view the datasets and the corresponding +// information such as namespace, schema, and so on for a given instance ID and +// namespace. func (c *Client) ListDataLakeDatasets(ctx context.Context, params *ListDataLakeDatasetsInput, optFns ...func(*Options)) (*ListDataLakeDatasetsOutput, error) { if params == nil { params = &ListDataLakeDatasetsInput{} diff --git a/service/supplychain/api_op_ListInstances.go b/service/supplychain/api_op_ListInstances.go index 3aa220b6c91..2bef55fee4e 100644 --- a/service/supplychain/api_op_ListInstances.go +++ b/service/supplychain/api_op_ListInstances.go @@ -11,7 +11,10 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// List all the AWS Supply Chain instances in a paginated way. +// List all Amazon Web Services Supply Chain instances for a specific account. +// Enables you to programmatically list all Amazon Web Services Supply Chain +// instances based on their account ID, instance name, and state of the instance +// (active or delete). func (c *Client) ListInstances(ctx context.Context, params *ListInstancesInput, optFns ...func(*Options)) (*ListInstancesOutput, error) { if params == nil { params = &ListInstancesInput{} diff --git a/service/supplychain/api_op_ListTagsForResource.go b/service/supplychain/api_op_ListTagsForResource.go index dff252f6e81..13c357d6ae4 100644 --- a/service/supplychain/api_op_ListTagsForResource.go +++ b/service/supplychain/api_op_ListTagsForResource.go @@ -10,7 +10,10 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// List all the tags for an Amazon Web ServicesSupply Chain resource. +// List all the tags for an Amazon Web ServicesSupply Chain resource. You can list +// all the tags added to a resource. By listing the tags, developers can view the +// tag level information on a resource and perform actions such as, deleting a +// resource associated with a particular tag. func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error) { if params == nil { params = &ListTagsForResourceInput{} diff --git a/service/supplychain/api_op_TagResource.go b/service/supplychain/api_op_TagResource.go index 607d4a2cf9a..ecf890a732e 100644 --- a/service/supplychain/api_op_TagResource.go +++ b/service/supplychain/api_op_TagResource.go @@ -10,7 +10,11 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Create tags for an Amazon Web Services Supply chain resource. +// You can create tags during or after creating a resource such as instance, data +// flow, or dataset in AWS Supply chain. During the data ingestion process, you can +// add tags such as dev, test, or prod to data flows created during the data +// ingestion process in the AWS Supply Chain datasets. You can use these tags to +// identify a group of resources or a single resource used by the developer. func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error) { if params == nil { params = &TagResourceInput{} diff --git a/service/supplychain/api_op_UntagResource.go b/service/supplychain/api_op_UntagResource.go index 87d04f35bb1..55edbd94d77 100644 --- a/service/supplychain/api_op_UntagResource.go +++ b/service/supplychain/api_op_UntagResource.go @@ -10,7 +10,10 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Delete tags for an Amazon Web Services Supply chain resource. +// You can delete tags for an Amazon Web Services Supply chain resource such as +// instance, data flow, or dataset in AWS Supply Chain. During the data ingestion +// process, you can delete tags such as dev, test, or prod to data flows created +// during the data ingestion process in the AWS Supply Chain datasets. func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error) { if params == nil { params = &UntagResourceInput{} diff --git a/service/supplychain/api_op_UpdateDataIntegrationFlow.go b/service/supplychain/api_op_UpdateDataIntegrationFlow.go index 9e646e88daf..32f9830f803 100644 --- a/service/supplychain/api_op_UpdateDataIntegrationFlow.go +++ b/service/supplychain/api_op_UpdateDataIntegrationFlow.go @@ -11,7 +11,10 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Update the DataIntegrationFlow. +// Enables you to programmatically update an existing data pipeline to ingest data +// from the source systems such as, Amazon S3 buckets, to a predefined Amazon Web +// Services Supply Chain dataset (product, inbound_order) or a temporary dataset +// along with the data transformation query provided with the API. func (c *Client) UpdateDataIntegrationFlow(ctx context.Context, params *UpdateDataIntegrationFlowInput, optFns ...func(*Options)) (*UpdateDataIntegrationFlowOutput, error) { if params == nil { params = &UpdateDataIntegrationFlowInput{} diff --git a/service/supplychain/api_op_UpdateDataLakeDataset.go b/service/supplychain/api_op_UpdateDataLakeDataset.go index ecf3ec53a59..55ba40dcd1f 100644 --- a/service/supplychain/api_op_UpdateDataLakeDataset.go +++ b/service/supplychain/api_op_UpdateDataLakeDataset.go @@ -11,7 +11,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Update a data lake dataset. +// Enables you to programmatically update an Amazon Web Services Supply Chain data +// lake dataset. Developers can update the description of a data lake dataset for a +// given instance ID, namespace, and dataset name. func (c *Client) UpdateDataLakeDataset(ctx context.Context, params *UpdateDataLakeDatasetInput, optFns ...func(*Options)) (*UpdateDataLakeDatasetOutput, error) { if params == nil { params = &UpdateDataLakeDatasetInput{} diff --git a/service/supplychain/api_op_UpdateInstance.go b/service/supplychain/api_op_UpdateInstance.go index d6901a98790..3e707f4c0d2 100644 --- a/service/supplychain/api_op_UpdateInstance.go +++ b/service/supplychain/api_op_UpdateInstance.go @@ -11,7 +11,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Update the instance. +// Enables you to programmatically update an Amazon Web Services Supply Chain +// instance description by providing all the relevant information such as account +// ID, instance ID and so on without using the AWS console. func (c *Client) UpdateInstance(ctx context.Context, params *UpdateInstanceInput, optFns ...func(*Options)) (*UpdateInstanceOutput, error) { if params == nil { params = &UpdateInstanceInput{} diff --git a/service/supplychain/deserializers.go b/service/supplychain/deserializers.go index 6864daa78bb..c54d0200ffa 100644 --- a/service/supplychain/deserializers.go +++ b/service/supplychain/deserializers.go @@ -4939,6 +4939,15 @@ func awsRestjson1_deserializeDocumentInstance(v **types.Instance, value interfac } } + case "errorMessage": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected String to be of type string, got %T instead", value) + } + sv.ErrorMessage = ptr.String(jtv) + } + case "instanceDescription": if value != nil { jtv, ok := value.(string) diff --git a/service/supplychain/types/types.go b/service/supplychain/types/types.go index f1f852000b3..c09b0555794 100644 --- a/service/supplychain/types/types.go +++ b/service/supplychain/types/types.go @@ -342,6 +342,12 @@ type Instance struct { // The instance creation timestamp. CreatedTime *time.Time + // The Amazon Web Services Supply Chain instance error message. If the instance + // results in an unhealthy state, customers need to check the error message, delete + // the current instance, and recreate a new one based on the mitigation from the + // error message. + ErrorMessage *string + // The Amazon Web Services Supply Chain instance description. InstanceDescription *string