From 741825301b735d0550a2a56f24ab66008d44cb11 Mon Sep 17 00:00:00 2001 From: AWS SDK for Go v2 automation user Date: Thu, 26 Jan 2023 19:12:27 +0000 Subject: [PATCH] Regenerated Clients --- .../367c65e2d60b499db9d7f7c4a14868e0.json | 8 ++ .../3ef9d0fb1e304af68d461c226edfb5ac.json | 8 ++ .../ed89f6367f424a6082009fc190818a67.json | 8 ++ .../internal/endpoints/endpoints.go | 18 +++ service/dlm/internal/endpoints/endpoints.go | 5 + .../eventbridge/api_op_CreateConnection.go | 3 +- service/eventbridge/api_op_CreateEndpoint.go | 4 +- service/eventbridge/api_op_CreateEventBus.go | 11 +- service/eventbridge/api_op_PutEvents.go | 8 +- service/eventbridge/api_op_PutRule.go | 4 +- service/eventbridge/api_op_PutTargets.go | 46 +++---- service/eventbridge/api_op_UpdateEndpoint.go | 2 +- service/eventbridge/types/types.go | 123 +++++++++--------- .../internal/endpoints/endpoints.go | 6 + 14 files changed, 161 insertions(+), 93 deletions(-) create mode 100644 .changelog/367c65e2d60b499db9d7f7c4a14868e0.json create mode 100644 .changelog/3ef9d0fb1e304af68d461c226edfb5ac.json create mode 100644 .changelog/ed89f6367f424a6082009fc190818a67.json diff --git a/.changelog/367c65e2d60b499db9d7f7c4a14868e0.json b/.changelog/367c65e2d60b499db9d7f7c4a14868e0.json new file mode 100644 index 00000000000..cfcc679fc0c --- /dev/null +++ b/.changelog/367c65e2d60b499db9d7f7c4a14868e0.json @@ -0,0 +1,8 @@ +{ + "id": "367c65e2-d60b-499d-b9d7-f7c4a14868e0", + "type": "feature", + "description": "Minor comments for Redshift Serverless workgroup target support.", + "modules": [ + "service/eventbridge" + ] +} \ No newline at end of file diff --git a/.changelog/3ef9d0fb1e304af68d461c226edfb5ac.json b/.changelog/3ef9d0fb1e304af68d461c226edfb5ac.json new file mode 100644 index 00000000000..922f1e03cf0 --- /dev/null +++ b/.changelog/3ef9d0fb1e304af68d461c226edfb5ac.json @@ -0,0 +1,8 @@ +{ + "id": "3ef9d0fb-1e30-4af6-8d46-1c226edfb5ac", + "type": "feature", + "description": "Add model validation to BatchCreateVehicle and BatchUpdateVehicle operations that invalidate requests with an empty vehicles list.", + "modules": [ + "service/iotfleetwise" + ] +} \ No newline at end of file diff --git a/.changelog/ed89f6367f424a6082009fc190818a67.json b/.changelog/ed89f6367f424a6082009fc190818a67.json new file mode 100644 index 00000000000..6c8ba012bc9 --- /dev/null +++ b/.changelog/ed89f6367f424a6082009fc190818a67.json @@ -0,0 +1,8 @@ +{ + "id": "ed89f636-7f42-4a60-8200-9fc190818a67", + "type": "feature", + "description": "Allow FIPS to be used with path-style URLs.", + "modules": [ + "service/s3" + ] +} \ No newline at end of file diff --git a/service/connectcases/internal/endpoints/endpoints.go b/service/connectcases/internal/endpoints/endpoints.go index 059297ff0ca..e90451ee66b 100644 --- a/service/connectcases/internal/endpoints/endpoints.go +++ b/service/connectcases/internal/endpoints/endpoints.go @@ -135,12 +135,30 @@ var defaultPartitions = endpoints.Partitions{ RegionRegex: partitionRegexp.Aws, IsRegionalized: true, Endpoints: endpoints.Endpoints{ + endpoints.EndpointKey{ + Region: "fips-us-east-1", + }: endpoints.Endpoint{ + Deprecated: aws.TrueTernary, + }, + endpoints.EndpointKey{ + Region: "fips-us-west-2", + }: endpoints.Endpoint{ + Deprecated: aws.TrueTernary, + }, endpoints.EndpointKey{ Region: "us-east-1", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "us-east-1", + Variant: endpoints.FIPSVariant, + }: {}, endpoints.EndpointKey{ Region: "us-west-2", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "us-west-2", + Variant: endpoints.FIPSVariant, + }: {}, }, }, { diff --git a/service/dlm/internal/endpoints/endpoints.go b/service/dlm/internal/endpoints/endpoints.go index 0112bb61da8..43dec68ab06 100644 --- a/service/dlm/internal/endpoints/endpoints.go +++ b/service/dlm/internal/endpoints/endpoints.go @@ -293,6 +293,11 @@ var defaultPartitions = endpoints.Partitions{ }, RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, + Endpoints: endpoints.Endpoints{ + endpoints.EndpointKey{ + Region: "us-isob-east-1", + }: endpoints.Endpoint{}, + }, }, { ID: "aws-us-gov", diff --git a/service/eventbridge/api_op_CreateConnection.go b/service/eventbridge/api_op_CreateConnection.go index 5ffab6c705f..846267d8631 100644 --- a/service/eventbridge/api_op_CreateConnection.go +++ b/service/eventbridge/api_op_CreateConnection.go @@ -37,7 +37,8 @@ type CreateConnectionInput struct { // This member is required. AuthParameters *types.CreateConnectionAuthRequestParameters - // The type of authorization to use for the connection. + // The type of authorization to use for the connection. OAUTH tokens are refreshed + // when a 401 or 407 response is returned. // // This member is required. AuthorizationType types.ConnectionAuthorizationType diff --git a/service/eventbridge/api_op_CreateEndpoint.go b/service/eventbridge/api_op_CreateEndpoint.go index d3d45553e4f..de12f3f399e 100644 --- a/service/eventbridge/api_op_CreateEndpoint.go +++ b/service/eventbridge/api_op_CreateEndpoint.go @@ -55,7 +55,9 @@ type CreateEndpointInput struct { // A description of the global endpoint. Description *string - // Enable or disable event replication. + // Enable or disable event replication. The default state is ENABLED which means + // you must supply a RoleArn. If you don't have a RoleArn or you don't want event + // replication enabled, set the state to DISABLED. ReplicationConfig *types.ReplicationConfig // The ARN of the role used for replication. diff --git a/service/eventbridge/api_op_CreateEventBus.go b/service/eventbridge/api_op_CreateEventBus.go index d8884ecef06..97d0785f9a0 100644 --- a/service/eventbridge/api_op_CreateEventBus.go +++ b/service/eventbridge/api_op_CreateEventBus.go @@ -31,11 +31,12 @@ func (c *Client) CreateEventBus(ctx context.Context, params *CreateEventBusInput type CreateEventBusInput struct { - // The name of the new event bus. Event bus names cannot contain the / character. - // You can't use the name default for a custom event bus, as this name is already - // used for your account's default event bus. If this is a partner event bus, the - // name must exactly match the name of the partner event source that this event bus - // is matched to. + // The name of the new event bus. Custom event bus names can't contain the / + // character, but you can use the / character in partner event bus names. In + // addition, for partner event buses, the name must exactly match the name of the + // partner event source that this event bus is matched to. You can't use the name + // default for a custom event bus, as this name is already used for your account's + // default event bus. // // This member is required. Name *string diff --git a/service/eventbridge/api_op_PutEvents.go b/service/eventbridge/api_op_PutEvents.go index 0a0f0e39f68..9cc75d1f1bb 100644 --- a/service/eventbridge/api_op_PutEvents.go +++ b/service/eventbridge/api_op_PutEvents.go @@ -39,8 +39,8 @@ type PutEventsInput struct { Entries []types.PutEventsRequestEntry // The URL subdomain of the endpoint. For example, if the URL for Endpoint is - // abcde.veo.endpoints.event.amazonaws.com, then the EndpointId is abcde.veo. When - // using Java, you must include auth-crt on the class path. + // https://abcde.veo.endpoints.event.amazonaws.com, then the EndpointId is + // abcde.veo. When using Java, you must include auth-crt on the class path. EndpointId *string noSmithyDocumentSerde @@ -50,7 +50,9 @@ type PutEventsOutput struct { // The successfully and unsuccessfully ingested events results. If the ingestion // was successful, the entry has the event ID in it. Otherwise, you can use the - // error code and error message to identify the problem with the entry. + // error code and error message to identify the problem with the entry. For each + // record, the index of the response element is the same as the index in the + // request array. Entries []types.PutEventsResultEntry // The number of failed entries. diff --git a/service/eventbridge/api_op_PutRule.go b/service/eventbridge/api_op_PutRule.go index ac8097c06c4..296b1342c69 100644 --- a/service/eventbridge/api_op_PutRule.go +++ b/service/eventbridge/api_op_PutRule.go @@ -86,8 +86,8 @@ type PutRuleInput struct { // the default event bus is used. EventBusName *string - // The event pattern. For more information, see EventBridge event patterns - // (https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns.html.html) + // The event pattern. For more information, see Amazon EventBridge event patterns + // (https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns.html) // in the Amazon EventBridge User Guide. EventPattern *string diff --git a/service/eventbridge/api_op_PutTargets.go b/service/eventbridge/api_op_PutTargets.go index 4dbe25434a7..052662e3658 100644 --- a/service/eventbridge/api_op_PutTargets.go +++ b/service/eventbridge/api_op_PutTargets.go @@ -73,36 +73,38 @@ import ( // * Redshift // cluster // +// * Redshift Serverless workgroup +// // * SageMaker Pipeline // // * SNS topic // -// * SQS queue +// * +// SQS queue // -// * Step Functions state -// machine +// * Step Functions state machine // // * Systems Manager Automation // -// * Systems Manager OpsItem -// -// * Systems -// Manager Run Command -// -// Creating rules with built-in targets is supported only in -// the Amazon Web Services Management Console. The built-in targets are EC2 -// CreateSnapshot API call, EC2 RebootInstances API call, EC2 StopInstances API -// call, and EC2 TerminateInstances API call. For some target types, PutTargets -// provides target-specific parameters. If the target is a Kinesis data stream, you -// can optionally specify which shard the event goes to by using the -// KinesisParameters argument. To invoke a command on multiple EC2 instances with -// one rule, you can use the RunCommandParameters field. To be able to make API -// calls against the resources that you own, Amazon EventBridge needs the -// appropriate permissions. For Lambda and Amazon SNS resources, EventBridge relies -// on resource-based policies. For EC2 instances, Kinesis Data Streams, Step -// Functions state machines and API Gateway REST APIs, EventBridge relies on IAM -// roles that you specify in the RoleARN argument in PutTargets. For more -// information, see Authentication and Access Control +// * +// Systems Manager OpsItem +// +// * Systems Manager Run Command +// +// Creating rules with +// built-in targets is supported only in the Amazon Web Services Management +// Console. The built-in targets are EC2 CreateSnapshot API call, EC2 +// RebootInstances API call, EC2 StopInstances API call, and EC2 TerminateInstances +// API call. For some target types, PutTargets provides target-specific parameters. +// If the target is a Kinesis data stream, you can optionally specify which shard +// the event goes to by using the KinesisParameters argument. To invoke a command +// on multiple EC2 instances with one rule, you can use the RunCommandParameters +// field. To be able to make API calls against the resources that you own, Amazon +// EventBridge needs the appropriate permissions. For Lambda and Amazon SNS +// resources, EventBridge relies on resource-based policies. For EC2 instances, +// Kinesis Data Streams, Step Functions state machines and API Gateway APIs, +// EventBridge relies on IAM roles that you specify in the RoleARN argument in +// PutTargets. For more information, see Authentication and Access Control // (https://docs.aws.amazon.com/eventbridge/latest/userguide/auth-and-access-control-eventbridge.html) // in the Amazon EventBridge User Guide. If another Amazon Web Services account is // in the same region and has granted you permission (using PutPermission), you can diff --git a/service/eventbridge/api_op_UpdateEndpoint.go b/service/eventbridge/api_op_UpdateEndpoint.go index 30cc014f30a..c53c81eb8f9 100644 --- a/service/eventbridge/api_op_UpdateEndpoint.go +++ b/service/eventbridge/api_op_UpdateEndpoint.go @@ -50,7 +50,7 @@ type UpdateEndpointInput struct { // The ARN of the role used by event replication for this request. RoleArn *string - // Configure the routing policy, including the health check and secondary Region.. + // Configure the routing policy, including the health check and secondary Region. RoutingConfig *types.RoutingConfig noSmithyDocumentSerde diff --git a/service/eventbridge/types/types.go b/service/eventbridge/types/types.go index b8750470eb8..7a4adeb4b6b 100644 --- a/service/eventbridge/types/types.go +++ b/service/eventbridge/types/types.go @@ -208,7 +208,8 @@ type Condition struct { // Contains information about a connection. type Connection struct { - // The authorization type specified for the connection. + // The authorization type specified for the connection. OAUTH tokens are refreshed + // when a 401 or 407 response is returned. AuthorizationType ConnectionAuthorizationType // The ARN of the connection. @@ -561,11 +562,11 @@ type EcsParameters struct { noSmithyDocumentSerde } -// An global endpoint used to improve your application's availability by making it +// A global endpoint used to improve your application's availability by making it // regional-fault tolerant. For more information about global endpoints, see Making // applications Regional-fault tolerant with global endpoints and event replication // (https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-global-endpoints.html) -// in the Amazon EventBridge User Guide.. +// in the Amazon EventBridge User Guide. type Endpoint struct { // The ARN of the endpoint. @@ -578,7 +579,8 @@ type Endpoint struct { Description *string // The URL subdomain of the endpoint. For example, if the URL for Endpoint is - // abcde.veo.endpoints.event.amazonaws.com, then the EndpointId is abcde.veo. + // https://abcde.veo.endpoints.event.amazonaws.com, then the EndpointId is + // abcde.veo. EndpointId *string // The URL of the endpoint. @@ -593,7 +595,9 @@ type Endpoint struct { // The name of the endpoint. Name *string - // Whether event replication was enabled or disabled for this endpoint. + // Whether event replication was enabled or disabled for this endpoint. The default + // state is ENABLED which means you must supply a RoleArn. If you don't have a + // RoleArn or you don't want event replication enabled, set the state to DISABLED. ReplicationConfig *ReplicationConfig // The ARN of the role used by event replication for the endpoint. @@ -622,12 +626,13 @@ type EndpointEventBus struct { noSmithyDocumentSerde } -// An event bus receives events from a source and routes them to rules associated -// with that event bus. Your account's default event bus receives events from -// Amazon Web Services services. A custom event bus can receive events from your -// custom applications and services. A partner event bus receives events from an -// event source created by an SaaS partner. These events come from the partners -// services or applications. +// An event bus receives events from a source, uses rules to evaluate them, applies +// any configured input transformation, and routes them to the appropriate +// target(s). Your account's default event bus receives events from Amazon Web +// Services services. A custom event bus can receive events from your custom +// applications and services. A partner event bus receives events from an event +// source created by an SaaS partner. These events come from the partners services +// or applications. type EventBus struct { // The ARN of the event bus. @@ -692,22 +697,22 @@ type FailoverConfig struct { noSmithyDocumentSerde } -// These are custom parameter to be used when the target is an API Gateway REST -// APIs or EventBridge ApiDestinations. In the latter case, these are merged with -// any InvocationParameters specified on the Connection, with any values from the +// These are custom parameter to be used when the target is an API Gateway APIs or +// EventBridge ApiDestinations. In the latter case, these are merged with any +// InvocationParameters specified on the Connection, with any values from the // Connection taking precedence. type HttpParameters struct { - // The headers that need to be sent as part of request invoking the API Gateway - // REST API or EventBridge ApiDestination. + // The headers that need to be sent as part of request invoking the API Gateway API + // or EventBridge ApiDestination. HeaderParameters map[string]string - // The path parameter values to be used to populate API Gateway REST API or - // EventBridge ApiDestination path wildcards ("*"). + // The path parameter values to be used to populate API Gateway API or EventBridge + // ApiDestination path wildcards ("*"). PathParameterValues []string // The query string keys/values that need to be sent as part of request invoking - // the API Gateway REST API or EventBridge ApiDestination. + // the API Gateway API or EventBridge ApiDestination. QueryStringParameters map[string]string noSmithyDocumentSerde @@ -719,44 +724,43 @@ type InputTransformer struct { // Input template where you specify placeholders that will be filled with the // values of the keys from InputPathsMap to customize the data sent to the target. - // Enclose each InputPathsMaps value in brackets: The InputTemplate must be - // valid JSON. If InputTemplate is a JSON object (surrounded by curly braces), the - // following restrictions apply: - // - // * The placeholder cannot be used as an object - // key. + // Enclose each InputPathsMaps value in brackets: If InputTemplate is a + // JSON object (surrounded by curly braces), the following restrictions apply: // - // The following example shows the syntax for using InputPathsMap and - // InputTemplate. "InputTransformer": - // { + // * + // The placeholder cannot be used as an object key. // - // "InputPathsMap": {"instance": - // "$.detail.instance","status": "$.detail.status"}, + // The following example shows + // the syntax for using InputPathsMap and InputTemplate. "InputTransformer": // - // "InputTemplate": " is in - // state " + // { // - // } To have the InputTemplate include quote marks within a JSON string, - // escape each quote marks with a slash, as in the following example: - // "InputTransformer": - // { - // - // "InputPathsMap": {"instance": - // "$.detail.instance","status": "$.detail.status"}, + // "InputPathsMap": {"instance": "$.detail.instance","status": + // "$.detail.status"}, // - // "InputTemplate": " is in - // state """ + // "InputTemplate": " is in state " // - // } The InputTemplate can also be valid JSON with varibles in quotes or - // out, as in the following example: "InputTransformer": + // } To have the + // InputTemplate include quote marks within a JSON string, escape each quote marks + // with a slash, as in the following example: "InputTransformer": // { // // // "InputPathsMap": {"instance": "$.detail.instance","status": // "$.detail.status"}, // - // "InputTemplate": '{"myInstance": ,"myStatus": " is in - // state """}' + // "InputTemplate": " is in state \"\"" + // + // } The + // InputTemplate can also be valid JSON with varibles in quotes or out, as in the + // following example: "InputTransformer": + // { + // + // "InputPathsMap": {"instance": + // "$.detail.instance","status": "$.detail.status"}, + // + // "InputTemplate": + // '{"myInstance": ,"myStatus": " is in state \"\""}' // // } // @@ -905,7 +909,8 @@ type PutEventsRequestEntry struct { // contain fields and nested subobjects. Detail *string - // Free-form string used to decide what fields to expect in the event detail. + // Free-form string, with a maximum of 128 characters, used to decide what fields + // to expect in the event detail. DetailType *string // The name or ARN of the event bus to receive the event. Only the rules that are @@ -964,7 +969,8 @@ type PutPartnerEventsRequestEntry struct { // contain fields and nested subobjects. Detail *string - // A free-form string used to decide what fields to expect in the event detail. + // A free-form string, with a maximum of 128 characters, used to decide what fields + // to expect in the event detail. DetailType *string // Amazon Web Services resources, identified by Amazon Resource Name (ARN), which @@ -1012,8 +1018,8 @@ type PutTargetsResultEntry struct { } // These are custom parameters to be used when the target is a Amazon Redshift -// cluster to invoke the Amazon Redshift Data API ExecuteStatement based on -// EventBridge events. +// cluster or Redshift Serverless workgroup to invoke the Amazon Redshift Data API +// ExecuteStatement based on EventBridge events. type RedshiftDataParameters struct { // The name of the database. Required when authenticating using temporary @@ -1028,7 +1034,8 @@ type RedshiftDataParameters struct { Sql *string // The database user name. Required when authenticating using temporary - // credentials. + // credentials. Do not provide this parameter when connecting to a Redshift + // Serverless workgroup. DbUser *string // The name or ARN of the secret that enables access to the database. Required when @@ -1334,13 +1341,13 @@ type Target struct { // in the Amazon EC2 Container Service Developer Guide. EcsParameters *EcsParameters - // Contains the HTTP parameters to use when the target is a API Gateway REST - // endpoint or EventBridge ApiDestination. If you specify an API Gateway REST API - // or EventBridge ApiDestination as a target, you can use this parameter to specify - // headers, path parameters, and query string keys/values as part of your target - // invoking request. If you're using ApiDestinations, the corresponding Connection - // can also have these values configured. In case of any conflicting keys, values - // from the Connection take precedence. + // Contains the HTTP parameters to use when the target is a API Gateway endpoint or + // EventBridge ApiDestination. If you specify an API Gateway API or EventBridge + // ApiDestination as a target, you can use this parameter to specify headers, path + // parameters, and query string keys/values as part of your target invoking + // request. If you're using ApiDestinations, the corresponding Connection can also + // have these values configured. In case of any conflicting keys, values from the + // Connection take precedence. HttpParameters *HttpParameters // Valid JSON text passed to the target. In this case, nothing from the event @@ -1350,7 +1357,7 @@ type Target struct { Input *string // The value of the JSONPath that is used for extracting part of the matched event - // when passing it to the target. You must use JSON dot notation, not bracket + // when passing it to the target. You may use JSON dot notation or bracket // notation. For more information about JSON paths, see JSONPath // (http://goessner.net/articles/JsonPath/). InputPath *string diff --git a/service/storagegateway/internal/endpoints/endpoints.go b/service/storagegateway/internal/endpoints/endpoints.go index 6d6fce7170d..95c13281d51 100644 --- a/service/storagegateway/internal/endpoints/endpoints.go +++ b/service/storagegateway/internal/endpoints/endpoints.go @@ -183,12 +183,18 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "eu-central-1", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "eu-central-2", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "eu-north-1", }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "eu-south-1", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "eu-south-2", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "eu-west-1", }: endpoints.Endpoint{},