diff --git a/apis/artifact/2018-05-10/endpoint-rule-set-1.json b/apis/artifact/2018-05-10/endpoint-rule-set-1.json index 49efffd7577..5da6f43cf50 100644 --- a/apis/artifact/2018-05-10/endpoint-rule-set-1.json +++ b/apis/artifact/2018-05-10/endpoint-rule-set-1.json @@ -1,12 +1,6 @@ { "version": "1.0", "parameters": { - "Region": { - "builtIn": "AWS::Region", - "required": false, - "documentation": "The AWS region used to dispatch the request.", - "type": "String" - }, "UseDualStack": { "builtIn": "AWS::UseDualStack", "required": true, @@ -26,6 +20,12 @@ "required": false, "documentation": "Override the endpoint used to send this request", "type": "String" + }, + "Region": { + "builtIn": "AWS::Region", + "required": false, + "documentation": "The AWS region used to dispatch the request.", + "type": "String" } }, "rules": [ @@ -177,18 +177,19 @@ "rules": [ { "conditions": [], - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://artifact-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ], - "type": "tree" + "endpoint": { + "url": "https://artifact-fips.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingRegion": "{PartitionResult#implicitGlobalRegion}" + } + ] + }, + "headers": {} + }, + "type": "endpoint" } ], "type": "tree" @@ -211,6 +212,15 @@ }, true ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + false + ] } ], "rules": [ @@ -235,18 +245,19 @@ "rules": [ { "conditions": [], - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://artifact-fips.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ], - "type": "tree" + "endpoint": { + "url": "https://artifact-fips.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dnsSuffix}", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingRegion": "{PartitionResult#implicitGlobalRegion}" + } + ] + }, + "headers": {} + }, + "type": "endpoint" } ], "type": "tree" @@ -261,6 +272,15 @@ }, { "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + false + ] + }, { "fn": "booleanEquals", "argv": [ @@ -293,18 +313,19 @@ "rules": [ { "conditions": [], - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://artifact.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ], - "type": "tree" + "endpoint": { + "url": "https://artifact.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingRegion": "{PartitionResult#implicitGlobalRegion}" + } + ] + }, + "headers": {} + }, + "type": "endpoint" } ], "type": "tree" @@ -319,18 +340,19 @@ }, { "conditions": [], - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://artifact.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ], - "type": "tree" + "endpoint": { + "url": "https://artifact.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dnsSuffix}", + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingRegion": "{PartitionResult#implicitGlobalRegion}" + } + ] + }, + "headers": {} + }, + "type": "endpoint" } ], "type": "tree" diff --git a/apis/artifact/2018-05-10/endpoint-tests-1.json b/apis/artifact/2018-05-10/endpoint-tests-1.json index d78df5725d4..2f1b1dbb31e 100644 --- a/apis/artifact/2018-05-10/endpoint-tests-1.json +++ b/apis/artifact/2018-05-10/endpoint-tests-1.json @@ -1,9 +1,50 @@ { "testCases": [ + { + "documentation": "For custom endpoint with region not set and fips disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "Endpoint": "https://example.com", + "UseFIPS": false + } + }, + { + "documentation": "For custom endpoint with fips enabled", + "expect": { + "error": "Invalid Configuration: FIPS and custom endpoint are not supported" + }, + "params": { + "Endpoint": "https://example.com", + "UseFIPS": true + } + }, + { + "documentation": "For custom endpoint with fips disabled and dualstack enabled", + "expect": { + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" + }, + "params": { + "Endpoint": "https://example.com", + "UseFIPS": false, + "UseDualStack": true + } + }, { "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingRegion": "us-east-1" + } + ] + }, "url": "https://artifact-fips.us-east-1.api.aws" } }, @@ -17,6 +58,14 @@ "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingRegion": "us-east-1" + } + ] + }, "url": "https://artifact-fips.us-east-1.amazonaws.com" } }, @@ -30,6 +79,14 @@ "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingRegion": "us-east-1" + } + ] + }, "url": "https://artifact.us-east-1.api.aws" } }, @@ -43,6 +100,14 @@ "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingRegion": "us-east-1" + } + ] + }, "url": "https://artifact.us-east-1.amazonaws.com" } }, @@ -53,105 +118,169 @@ } }, { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", + "documentation": "For region cn-northwest-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://artifact-fips.cn-north-1.api.amazonwebservices.com.cn" + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingRegion": "cn-northwest-1" + } + ] + }, + "url": "https://artifact-fips.cn-northwest-1.api.amazonwebservices.com.cn" } }, "params": { - "Region": "cn-north-1", + "Region": "cn-northwest-1", "UseFIPS": true, "UseDualStack": true } }, { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", + "documentation": "For region cn-northwest-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://artifact-fips.cn-north-1.amazonaws.com.cn" + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingRegion": "cn-northwest-1" + } + ] + }, + "url": "https://artifact-fips.cn-northwest-1.amazonaws.com.cn" } }, "params": { - "Region": "cn-north-1", + "Region": "cn-northwest-1", "UseFIPS": true, "UseDualStack": false } }, { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", + "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://artifact.cn-north-1.api.amazonwebservices.com.cn" + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingRegion": "cn-northwest-1" + } + ] + }, + "url": "https://artifact.cn-northwest-1.api.amazonwebservices.com.cn" } }, "params": { - "Region": "cn-north-1", + "Region": "cn-northwest-1", "UseFIPS": false, "UseDualStack": true } }, { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", + "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://artifact.cn-north-1.amazonaws.com.cn" + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingRegion": "cn-northwest-1" + } + ] + }, + "url": "https://artifact.cn-northwest-1.amazonaws.com.cn" } }, "params": { - "Region": "cn-north-1", + "Region": "cn-northwest-1", "UseFIPS": false, "UseDualStack": false } }, { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://artifact-fips.us-gov-east-1.api.aws" + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingRegion": "us-gov-west-1" + } + ] + }, + "url": "https://artifact-fips.us-gov-west-1.api.aws" } }, "params": { - "Region": "us-gov-east-1", + "Region": "us-gov-west-1", "UseFIPS": true, "UseDualStack": true } }, { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://artifact-fips.us-gov-east-1.amazonaws.com" + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingRegion": "us-gov-west-1" + } + ] + }, + "url": "https://artifact-fips.us-gov-west-1.amazonaws.com" } }, "params": { - "Region": "us-gov-east-1", + "Region": "us-gov-west-1", "UseFIPS": true, "UseDualStack": false } }, { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://artifact.us-gov-east-1.api.aws" + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingRegion": "us-gov-west-1" + } + ] + }, + "url": "https://artifact.us-gov-west-1.api.aws" } }, "params": { - "Region": "us-gov-east-1", + "Region": "us-gov-west-1", "UseFIPS": false, "UseDualStack": true } }, { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://artifact.us-gov-east-1.amazonaws.com" + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingRegion": "us-gov-west-1" + } + ] + }, + "url": "https://artifact.us-gov-west-1.amazonaws.com" } }, "params": { - "Region": "us-gov-east-1", + "Region": "us-gov-west-1", "UseFIPS": false, "UseDualStack": false } @@ -171,6 +300,14 @@ "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingRegion": "us-iso-east-1" + } + ] + }, "url": "https://artifact-fips.us-iso-east-1.c2s.ic.gov" } }, @@ -195,6 +332,14 @@ "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingRegion": "us-iso-east-1" + } + ] + }, "url": "https://artifact.us-iso-east-1.c2s.ic.gov" } }, @@ -219,6 +364,14 @@ "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingRegion": "us-isob-east-1" + } + ] + }, "url": "https://artifact-fips.us-isob-east-1.sc2s.sgov.gov" } }, @@ -243,6 +396,14 @@ "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingRegion": "us-isob-east-1" + } + ] + }, "url": "https://artifact.us-isob-east-1.sc2s.sgov.gov" } }, @@ -253,54 +414,131 @@ } }, { - "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", + "documentation": "For region eu-isoe-west-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "Region": "eu-isoe-west-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region eu-isoe-west-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://example.com" + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingRegion": "eu-isoe-west-1" + } + ] + }, + "url": "https://artifact-fips.eu-isoe-west-1.cloud.adc-e.uk" } }, "params": { - "Region": "us-east-1", + "Region": "eu-isoe-west-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region eu-isoe-west-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "Region": "eu-isoe-west-1", "UseFIPS": false, - "UseDualStack": false, - "Endpoint": "https://example.com" + "UseDualStack": true } }, { - "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", + "documentation": "For region eu-isoe-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://example.com" + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingRegion": "eu-isoe-west-1" + } + ] + }, + "url": "https://artifact.eu-isoe-west-1.cloud.adc-e.uk" } }, "params": { + "Region": "eu-isoe-west-1", "UseFIPS": false, - "UseDualStack": false, - "Endpoint": "https://example.com" + "UseDualStack": false } }, { - "documentation": "For custom endpoint with fips enabled and dualstack disabled", + "documentation": "For region us-isof-south-1 with FIPS enabled and DualStack enabled", "expect": { - "error": "Invalid Configuration: FIPS and custom endpoint are not supported" + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" }, "params": { - "Region": "us-east-1", + "Region": "us-isof-south-1", "UseFIPS": true, - "UseDualStack": false, - "Endpoint": "https://example.com" + "UseDualStack": true } }, { - "documentation": "For custom endpoint with fips disabled and dualstack enabled", + "documentation": "For region us-isof-south-1 with FIPS enabled and DualStack disabled", "expect": { - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" + "endpoint": { + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingRegion": "us-isof-south-1" + } + ] + }, + "url": "https://artifact-fips.us-isof-south-1.csp.hci.ic.gov" + } }, "params": { - "Region": "us-east-1", + "Region": "us-isof-south-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-isof-south-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "Region": "us-isof-south-1", "UseFIPS": false, - "UseDualStack": true, - "Endpoint": "https://example.com" + "UseDualStack": true + } + }, + { + "documentation": "For region us-isof-south-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingRegion": "us-isof-south-1" + } + ] + }, + "url": "https://artifact.us-isof-south-1.csp.hci.ic.gov" + } + }, + "params": { + "Region": "us-isof-south-1", + "UseFIPS": false, + "UseDualStack": false } }, { diff --git a/apis/bedrock/2023-04-20/api-2.json b/apis/bedrock/2023-04-20/api-2.json index 75400c01f27..bd3e3b6b1d9 100644 --- a/apis/bedrock/2023-04-20/api-2.json +++ b/apis/bedrock/2023-04-20/api-2.json @@ -1734,7 +1734,8 @@ "required":["modelIdentifier"], "members":{ "modelIdentifier":{"shape":"EvaluationModelIdentifier"}, - "inferenceParams":{"shape":"EvaluationModelInferenceParams"} + "inferenceParams":{"shape":"EvaluationModelInferenceParams"}, + "performanceConfig":{"shape":"PerformanceConfiguration"} } }, "EvaluationConfig":{ @@ -4507,6 +4508,19 @@ "min":1, "pattern":"\\S*" }, + "PerformanceConfigLatency":{ + "type":"string", + "enum":[ + "standard", + "optimized" + ] + }, + "PerformanceConfiguration":{ + "type":"structure", + "members":{ + "latency":{"shape":"PerformanceConfigLatency"} + } + }, "PositiveInteger":{ "type":"integer", "box":true, diff --git a/apis/bedrock/2023-04-20/docs-2.json b/apis/bedrock/2023-04-20/docs-2.json index 9322aeac109..2a8b445cbe3 100644 --- a/apis/bedrock/2023-04-20/docs-2.json +++ b/apis/bedrock/2023-04-20/docs-2.json @@ -2422,6 +2422,18 @@ "ListProvisionedModelThroughputsResponse$nextToken": "

If there are more results than the number you specified in the maxResults field, this value is returned. To see the next batch of results, include this value in the nextToken field in another list request.

" } }, + "PerformanceConfigLatency": { + "base": null, + "refs": { + "PerformanceConfiguration$latency": "

Specifies whether to use the latency-optimized or standard version of a model or inference profile.

" + } + }, + "PerformanceConfiguration": { + "base": "

Contains performance settings for a model.

", + "refs": { + "EvaluationBedrockModel$performanceConfig": "

Specifies performance settings for the model or inference profile.

" + } + }, "PositiveInteger": { "base": null, "refs": { diff --git a/apis/ec2/2016-11-15/api-2.json b/apis/ec2/2016-11-15/api-2.json index 40a91d05e4d..5b1bcca4de3 100644 --- a/apis/ec2/2016-11-15/api-2.json +++ b/apis/ec2/2016-11-15/api-2.json @@ -10340,6 +10340,10 @@ "ClientLoginBannerOptions":{ "shape":"ClientLoginBannerResponseOptions", "locationName":"clientLoginBannerOptions" + }, + "DisconnectOnSessionTimeout":{ + "shape":"Boolean", + "locationName":"disconnectOnSessionTimeout" } } }, @@ -11227,7 +11231,8 @@ "SelfServicePortal":{"shape":"SelfServicePortal"}, "ClientConnectOptions":{"shape":"ClientConnectOptions"}, "SessionTimeoutHours":{"shape":"Integer"}, - "ClientLoginBannerOptions":{"shape":"ClientLoginBannerOptions"} + "ClientLoginBannerOptions":{"shape":"ClientLoginBannerOptions"}, + "DisconnectOnSessionTimeout":{"shape":"Boolean"} } }, "CreateClientVpnEndpointResult":{ @@ -34806,7 +34811,8 @@ "SelfServicePortal":{"shape":"SelfServicePortal"}, "ClientConnectOptions":{"shape":"ClientConnectOptions"}, "SessionTimeoutHours":{"shape":"Integer"}, - "ClientLoginBannerOptions":{"shape":"ClientLoginBannerOptions"} + "ClientLoginBannerOptions":{"shape":"ClientLoginBannerOptions"}, + "DisconnectOnSessionTimeout":{"shape":"Boolean"} } }, "ModifyClientVpnEndpointResult":{ diff --git a/apis/ec2/2016-11-15/docs-2.json b/apis/ec2/2016-11-15/docs-2.json index 7028cb19979..bcdc8a6410a 100644 --- a/apis/ec2/2016-11-15/docs-2.json +++ b/apis/ec2/2016-11-15/docs-2.json @@ -47,7 +47,7 @@ "AuthorizeSecurityGroupIngress": "

Adds the specified inbound (ingress) rules to a security group.

An inbound rule permits instances to receive traffic from the specified IPv4 or IPv6 address range, the IP address ranges that are specified by a prefix list, or the instances that are associated with a destination security group. For more information, see Security group rules.

You must specify exactly one of the following sources: an IPv4 or IPv6 address range, a prefix list, or a security group. You must specify a protocol for each rule (for example, TCP). If the protocol is TCP or UDP, you must also specify a port or port range. If the protocol is ICMP or ICMPv6, you must also specify the ICMP/ICMPv6 type and code.

Rule changes are propagated to instances associated with the security group as quickly as possible. However, a small delay might occur.

For examples of rules that you can add to security groups for specific access scenarios, see Security group rules for different use cases in the Amazon EC2 User Guide.

For more information about security group quotas, see Amazon VPC quotas in the Amazon VPC User Guide.

", "BundleInstance": "

Bundles an Amazon instance store-backed Windows instance.

During bundling, only the root device volume (C:\\) is bundled. Data on other instance store volumes is not preserved.

This action is not applicable for Linux/Unix instances or Windows instances that are backed by Amazon EBS.

", "CancelBundleTask": "

Cancels a bundling operation for an instance store-backed Windows instance.

", - "CancelCapacityReservation": "

Cancels the specified Capacity Reservation, releases the reserved capacity, and changes the Capacity Reservation's state to cancelled.

You can cancel a Capacity Reservation that is in the following states:

If a future-dated Capacity Reservation enters the delayed state, the commitment duration is waived, and you can cancel it as soon as it enters the active state.

Instances running in the reserved capacity continue running until you stop them. Stopped instances that target the Capacity Reservation can no longer launch. Modify these instances to either target a different Capacity Reservation, launch On-Demand Instance capacity, or run in any open Capacity Reservation that has matching attributes and sufficient capacity.

", + "CancelCapacityReservation": "

Cancels the specified Capacity Reservation, releases the reserved capacity, and changes the Capacity Reservation's state to cancelled.

You can cancel a Capacity Reservation that is in the following states:

You can't modify or cancel a Capacity Block. For more information, see Capacity Blocks for ML.

If a future-dated Capacity Reservation enters the delayed state, the commitment duration is waived, and you can cancel it as soon as it enters the active state.

Instances running in the reserved capacity continue running until you stop them. Stopped instances that target the Capacity Reservation can no longer launch. Modify these instances to either target a different Capacity Reservation, launch On-Demand Instance capacity, or run in any open Capacity Reservation that has matching attributes and sufficient capacity.

", "CancelCapacityReservationFleets": "

Cancels one or more Capacity Reservation Fleets. When you cancel a Capacity Reservation Fleet, the following happens:

", "CancelConversionTask": "

Cancels an active conversion task. The task can be the import of an instance or volume. The action removes all artifacts of the conversion, including a partially uploaded volume or instance. If the conversion is complete or is in the process of transferring the final disk image, the command fails and returns an exception.

", "CancelDeclarativePoliciesReport": "

Cancels the generation of an account status report.

You can only cancel a report while it has the running status. Reports with other statuses (complete, cancelled, or error) can't be canceled.

For more information, see Generating the account status report for declarative policies in the Amazon Web Services Organizations User Guide.

", @@ -60,7 +60,7 @@ "ConfirmProductInstance": "

Determines whether a product code is associated with an instance. This action can only be used by the owner of the product code. It is useful when a product code owner must verify whether another user's instance is eligible for support.

", "CopyFpgaImage": "

Copies the specified Amazon FPGA Image (AFI) to the current Region.

", "CopyImage": "

Initiates an AMI copy operation. You can copy an AMI from one Region to another, or from a Region to an Outpost. You can't copy an AMI from an Outpost to a Region, from one Outpost to another, or within the same Outpost. To copy an AMI to another partition, see CreateStoreImageTask.

When you copy an AMI from one Region to another, the destination Region is the current Region.

When you copy an AMI from a Region to an Outpost, specify the ARN of the Outpost as the destination. Backing snapshots copied to an Outpost are encrypted by default using the default encryption key for the Region or the key that you specify. Outposts do not support unencrypted snapshots.

For information about the prerequisites when copying an AMI, see Copy an AMI in the Amazon EC2 User Guide.

", - "CopySnapshot": "

Copies a point-in-time snapshot of an EBS volume and stores it in Amazon S3. You can copy a snapshot within the same Region, from one Region to another, or from a Region to an Outpost. You can't copy a snapshot from an Outpost to a Region, from one Outpost to another, or within the same Outpost.

You can use the snapshot to create EBS volumes or Amazon Machine Images (AMIs).

When copying snapshots to a Region, copies of encrypted EBS snapshots remain encrypted. Copies of unencrypted snapshots remain unencrypted, unless you enable encryption for the snapshot copy operation. By default, encrypted snapshot copies use the default KMS key; however, you can specify a different KMS key. To copy an encrypted snapshot that has been shared from another account, you must have permissions for the KMS key used to encrypt the snapshot.

Snapshots copied to an Outpost are encrypted by default using the default encryption key for the Region, or a different key that you specify in the request using KmsKeyId. Outposts do not support unencrypted snapshots. For more information, Amazon EBS local snapshots on Outposts in the Amazon EBS User Guide.

Snapshots created by copying another snapshot have an arbitrary volume ID that should not be used for any purpose.

For more information, see Copy an Amazon EBS snapshot in the Amazon EBS User Guide.

", + "CopySnapshot": "

Copies a point-in-time snapshot of an EBS volume and stores it in Amazon S3. You can copy a snapshot within the same Region, from one Region to another, or from a Region to an Outpost. You can't copy a snapshot from an Outpost to a Region, from one Outpost to another, or within the same Outpost.

You can use the snapshot to create EBS volumes or Amazon Machine Images (AMIs).

When copying snapshots to a Region, copies of encrypted EBS snapshots remain encrypted. Copies of unencrypted snapshots remain unencrypted, unless you enable encryption for the snapshot copy operation. By default, encrypted snapshot copies use the default KMS key; however, you can specify a different KMS key. To copy an encrypted snapshot that has been shared from another account, you must have permissions for the KMS key used to encrypt the snapshot.

Snapshots copied to an Outpost are encrypted by default using the default encryption key for the Region, or a different key that you specify in the request using KmsKeyId. Outposts do not support unencrypted snapshots. For more information, see Amazon EBS local snapshots on Outposts in the Amazon EBS User Guide.

Snapshots created by copying another snapshot have an arbitrary volume ID that should not be used for any purpose.

For more information, see Copy an Amazon EBS snapshot in the Amazon EBS User Guide.

", "CreateCapacityReservation": "

Creates a new Capacity Reservation with the specified attributes. Capacity Reservations enable you to reserve capacity for your Amazon EC2 instances in a specific Availability Zone for any duration.

You can create a Capacity Reservation at any time, and you can choose when it starts. You can create a Capacity Reservation for immediate use or you can request a Capacity Reservation for a future date.

For more information, see Reserve compute capacity with On-Demand Capacity Reservations in the Amazon EC2 User Guide.

Your request to create a Capacity Reservation could fail if:

", "CreateCapacityReservationBySplitting": "

Create a new Capacity Reservation by splitting the capacity of the source Capacity Reservation. The new Capacity Reservation will have the same attributes as the source Capacity Reservation except for tags. The source Capacity Reservation must be active and owned by your Amazon Web Services account.

", "CreateCapacityReservationFleet": "

Creates a Capacity Reservation Fleet. For more information, see Create a Capacity Reservation Fleet in the Amazon EC2 User Guide.

", @@ -110,8 +110,8 @@ "CreateRoute": "

Creates a route in a route table within a VPC.

You must specify either a destination CIDR block or a prefix list ID. You must also specify exactly one of the resources from the parameter list.

When determining how to route traffic, we use the route with the most specific match. For example, traffic is destined for the IPv4 address 192.0.2.3, and the route table includes the following two IPv4 routes:

Both routes apply to the traffic destined for 192.0.2.3. However, the second route in the list covers a smaller number of IP addresses and is therefore more specific, so we use that route to determine where to target the traffic.

For more information about route tables, see Route tables in the Amazon VPC User Guide.

", "CreateRouteTable": "

Creates a route table for the specified VPC. After you create a route table, you can add routes and associate the table with a subnet.

For more information, see Route tables in the Amazon VPC User Guide.

", "CreateSecurityGroup": "

Creates a security group.

A security group acts as a virtual firewall for your instance to control inbound and outbound traffic. For more information, see Amazon EC2 security groups in the Amazon EC2 User Guide and Security groups for your VPC in the Amazon VPC User Guide.

When you create a security group, you specify a friendly name of your choice. You can't have two security groups for the same VPC with the same name.

You have a default security group for use in your VPC. If you don't specify a security group when you launch an instance, the instance is launched into the appropriate default security group. A default security group includes a default rule that grants instances unrestricted network access to each other.

You can add or remove rules from your security groups using AuthorizeSecurityGroupIngress, AuthorizeSecurityGroupEgress, RevokeSecurityGroupIngress, and RevokeSecurityGroupEgress.

For more information about VPC security group limits, see Amazon VPC Limits.

", - "CreateSnapshot": "

Creates a snapshot of an EBS volume and stores it in Amazon S3. You can use snapshots for backups, to make copies of EBS volumes, and to save data before shutting down an instance.

The location of the source EBS volume determines where you can create the snapshot.

When a snapshot is created, any Amazon Web Services Marketplace product codes that are associated with the source volume are propagated to the snapshot.

You can take a snapshot of an attached volume that is in use. However, snapshots only capture data that has been written to your Amazon EBS volume at the time the snapshot command is issued; this might exclude any data that has been cached by any applications or the operating system. If you can pause any file systems on the volume long enough to take a snapshot, your snapshot should be complete. However, if you cannot pause all file writes to the volume, you should unmount the volume from within the instance, issue the snapshot command, and then remount the volume to ensure a consistent and complete snapshot. You may remount and use your volume while the snapshot status is pending.

When you create a snapshot for an EBS volume that serves as a root device, we recommend that you stop the instance before taking the snapshot.

Snapshots that are taken from encrypted volumes are automatically encrypted. Volumes that are created from encrypted snapshots are also automatically encrypted. Your encrypted volumes and any associated snapshots always remain protected. For more information, Amazon EBS encryption in the Amazon EBS User Guide.

", - "CreateSnapshots": "

Creates crash-consistent snapshots of multiple EBS volumes attached to an Amazon EC2 instance. Volumes are chosen by specifying an instance. Each volume attached to the specified instance will produce one snapshot that is crash-consistent across the instance. You can include all of the volumes currently attached to the instance, or you can exclude the root volume or specific data (non-root) volumes from the multi-volume snapshot set.

The location of the source instance determines where you can create the snapshots.

", + "CreateSnapshot": "

Creates a snapshot of an EBS volume and stores it in Amazon S3. You can use snapshots for backups, to make copies of EBS volumes, and to save data before shutting down an instance.

The location of the source EBS volume determines where you can create the snapshot.

When a snapshot is created, any Amazon Web Services Marketplace product codes that are associated with the source volume are propagated to the snapshot.

You can take a snapshot of an attached volume that is in use. However, snapshots only capture data that has been written to your Amazon EBS volume at the time the snapshot command is issued; this might exclude any data that has been cached by any applications or the operating system. If you can pause any file systems on the volume long enough to take a snapshot, your snapshot should be complete. However, if you cannot pause all file writes to the volume, you should unmount the volume from within the instance, issue the snapshot command, and then remount the volume to ensure a consistent and complete snapshot. You may remount and use your volume while the snapshot status is pending.

When you create a snapshot for an EBS volume that serves as a root device, we recommend that you stop the instance before taking the snapshot.

Snapshots that are taken from encrypted volumes are automatically encrypted. Volumes that are created from encrypted snapshots are also automatically encrypted. Your encrypted volumes and any associated snapshots always remain protected. For more information, see Amazon EBS encryption in the Amazon EBS User Guide.

", + "CreateSnapshots": "

Creates crash-consistent snapshots of multiple EBS volumes attached to an Amazon EC2 instance. Volumes are chosen by specifying an instance. Each volume attached to the specified instance will produce one snapshot that is crash-consistent across the instance. You can include all of the volumes currently attached to the instance, or you can exclude the root volume or specific data (non-root) volumes from the multi-volume snapshot set.

The location of the source instance determines where you can create the snapshots.

", "CreateSpotDatafeedSubscription": "

Creates a data feed for Spot Instances, enabling you to view Spot Instance usage logs. You can create one data feed per Amazon Web Services account. For more information, see Spot Instance data feed in the Amazon EC2 User Guide.

", "CreateStoreImageTask": "

Stores an AMI as a single object in an Amazon S3 bucket.

To use this API, you must have the required permissions. For more information, see Permissions for storing and restoring AMIs using Amazon S3 in the Amazon EC2 User Guide.

For more information, see Store and restore an AMI using Amazon S3 in the Amazon EC2 User Guide.

", "CreateSubnet": "

Creates a subnet in the specified VPC. For an IPv4 only subnet, specify an IPv4 CIDR block. If the VPC has an IPv6 CIDR block, you can create an IPv6 only subnet or a dual stack subnet instead. For an IPv6 only subnet, specify an IPv6 CIDR block. For a dual stack subnet, specify both an IPv4 CIDR block and an IPv6 CIDR block.

A subnet CIDR block must not overlap the CIDR block of an existing subnet in the VPC. After you create a subnet, you can't change its CIDR block.

The allowed size for an IPv4 subnet is between a /28 netmask (16 IP addresses) and a /16 netmask (65,536 IP addresses). Amazon Web Services reserves both the first four and the last IPv4 address in each subnet's CIDR block. They're not available for your use.

If you've associated an IPv6 CIDR block with your VPC, you can associate an IPv6 CIDR block with a subnet when you create it.

If you add more than one subnet to a VPC, they're set up in a star topology with a logical router in the middle.

When you stop an instance in a subnet, it retains its private IPv4 address. It's therefore possible to have a subnet with no running instances (they're all stopped), but no remaining IP addresses available.

For more information, see Subnets in the Amazon VPC User Guide.

", @@ -188,7 +188,7 @@ "DeleteRoute": "

Deletes the specified route from the specified route table.

", "DeleteRouteTable": "

Deletes the specified route table. You must disassociate the route table from any subnets before you can delete it. You can't delete the main route table.

", "DeleteSecurityGroup": "

Deletes a security group.

If you attempt to delete a security group that is associated with an instance or network interface, is referenced by another security group in the same VPC, or has a VPC association, the operation fails with DependencyViolation.

", - "DeleteSnapshot": "

Deletes the specified snapshot.

When you make periodic snapshots of a volume, the snapshots are incremental, and only the blocks on the device that have changed since your last snapshot are saved in the new snapshot. When you delete a snapshot, only the data not needed for any other snapshot is removed. So regardless of which prior snapshots have been deleted, all active snapshots will have access to all the information needed to restore the volume.

You cannot delete a snapshot of the root device of an EBS volume used by a registered AMI. You must first de-register the AMI before you can delete the snapshot.

For more information, see Delete an Amazon EBS snapshot in the Amazon EBS User Guide.

", + "DeleteSnapshot": "

Deletes the specified snapshot.

When you make periodic snapshots of a volume, the snapshots are incremental, and only the blocks on the device that have changed since your last snapshot are saved in the new snapshot. When you delete a snapshot, only the data not needed for any other snapshot is removed. So regardless of which prior snapshots have been deleted, all active snapshots will have access to all the information needed to restore the volume.

You cannot delete a snapshot of the root device of an EBS volume used by a registered AMI. You must first deregister the AMI before you can delete the snapshot.

For more information, see Delete an Amazon EBS snapshot in the Amazon EBS User Guide.

", "DeleteSpotDatafeedSubscription": "

Deletes the data feed for Spot Instances.

", "DeleteSubnet": "

Deletes the specified subnet. You must terminate all running instances in the subnet before you can delete the subnet.

", "DeleteSubnetCidrReservation": "

Deletes a subnet CIDR reservation.

", @@ -241,7 +241,7 @@ "DescribeByoipCidrs": "

Describes the IP address ranges that were specified in calls to ProvisionByoipCidr.

To describe the address pools that were created when you provisioned the address ranges, use DescribePublicIpv4Pools or DescribeIpv6Pools.

", "DescribeCapacityBlockExtensionHistory": "

Describes the events for the specified Capacity Block extension during the specified time.

", "DescribeCapacityBlockExtensionOfferings": "

Describes Capacity Block extension offerings available for purchase in the Amazon Web Services Region that you're currently using.

", - "DescribeCapacityBlockOfferings": "

Describes Capacity Block offerings available for purchase in the Amazon Web Services Region that you're currently using. With Capacity Blocks, you purchase a specific instance type for a period of time.

", + "DescribeCapacityBlockOfferings": "

Describes Capacity Block offerings available for purchase in the Amazon Web Services Region that you're currently using. With Capacity Blocks, you purchase a specific instance type for a period of time.

To search for an available Capacity Block offering, you specify a reservation duration and instance count. You must select one of the following options.

", "DescribeCapacityReservationBillingRequests": "

Describes a request to assign the billing of the unused capacity of a Capacity Reservation. For more information, see Billing assignment for shared Amazon EC2 Capacity Reservations.

", "DescribeCapacityReservationFleets": "

Describes one or more Capacity Reservation Fleets.

", "DescribeCapacityReservations": "

Describes one or more of your Capacity Reservations. The results describe only the Capacity Reservations in the Amazon Web Services Region that you're currently using.

", @@ -286,7 +286,7 @@ "DescribeInstanceEventWindows": "

Describes the specified event windows or all event windows.

If you specify event window IDs, the output includes information for only the specified event windows. If you specify filters, the output includes information for only those event windows that meet the filter criteria. If you do not specify event windows IDs or filters, the output includes information for all event windows, which can affect performance. We recommend that you use pagination to ensure that the operation returns quickly and successfully.

For more information, see Define event windows for scheduled events in the Amazon EC2 User Guide.

", "DescribeInstanceImageMetadata": "

Describes the AMI that was used to launch an instance, even if the AMI is deprecated, deregistered, made private (no longer public or shared with your account), or not allowed.

If you specify instance IDs, the output includes information for only the specified instances. If you specify filters, the output includes information for only those instances that meet the filter criteria. If you do not specify instance IDs or filters, the output includes information for all instances, which can affect performance.

If you specify an instance ID that is not valid, an instance that doesn't exist, or an instance that you do not own, an error (InvalidInstanceID.NotFound) is returned.

Recently terminated instances might appear in the returned results. This interval is usually less than one hour.

In the rare case where an Availability Zone is experiencing a service disruption and you specify instance IDs that are in the affected Availability Zone, or do not specify any instance IDs at all, the call fails. If you specify only instance IDs that are in an unaffected Availability Zone, the call works normally.

The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

", "DescribeInstanceStatus": "

Describes the status of the specified instances or all of your instances. By default, only running instances are described, unless you specifically indicate to return the status of all instances.

Instance status includes the following components:

The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

", - "DescribeInstanceTopology": "

Describes a tree-based hierarchy that represents the physical host placement of your EC2 instances within an Availability Zone or Local Zone. You can use this information to determine the relative proximity of your EC2 instances within the Amazon Web Services network to support your tightly coupled workloads.

Limitations

For more information, see Amazon EC2 instance topology in the Amazon EC2 User Guide.

", + "DescribeInstanceTopology": "

Describes a tree-based hierarchy that represents the physical host placement of your EC2 instances within an Availability Zone or Local Zone. You can use this information to determine the relative proximity of your EC2 instances within the Amazon Web Services network to support your tightly coupled workloads.

Limitations

For more information, see Amazon EC2 instance topology in the Amazon EC2 User Guide.

", "DescribeInstanceTypeOfferings": "

Lists the instance types that are offered for the specified location. If no location is specified, the default is to list the instance types that are offered in the current Region.

", "DescribeInstanceTypes": "

Describes the specified instance types. By default, all instance types for the current Region are described. Alternatively, you can filter the results.

", "DescribeInstances": "

Describes the specified instances or all instances.

If you specify instance IDs, the output includes information for only the specified instances. If you specify filters, the output includes information for only those instances that meet the filter criteria. If you do not specify instance IDs or filters, the output includes information for all instances, which can affect performance. We recommend that you use pagination to ensure that the operation returns quickly and successfully.

If you specify an instance ID that is not valid, an error is returned. If you specify an instance that you do not own, it is not included in the output.

Recently terminated instances might appear in the returned results. This interval is usually less than one hour.

If you describe instances in the rare case where an Availability Zone is experiencing a service disruption and you specify instance IDs that are in the affected zone, or do not specify any instance IDs at all, the call fails. If you describe instances and specify only instance IDs that are in an unaffected zone, the call works normally.

We strongly recommend using only paginated requests. Unpaginated requests are susceptible to throttling and timeouts.

The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

", @@ -2189,6 +2189,7 @@ "ClientLoginBannerOptions$Enabled": "

Enable or disable a customizable text banner that will be displayed on Amazon Web Services provided clients when a VPN session is established.

Valid values: true | false

Default value: false

", "ClientLoginBannerResponseOptions$Enabled": "

Current state of text banner feature.

Valid values: true | false

", "ClientVpnEndpoint$SplitTunnel": "

Indicates whether split-tunnel is enabled in the Client VPN endpoint.

For information about split-tunnel VPN endpoints, see Split-Tunnel Client VPN endpoint in the Client VPN Administrator Guide.

", + "ClientVpnEndpoint$DisconnectOnSessionTimeout": "

Indicates whether the client VPN session is disconnected after the maximum sessionTimeoutHours is reached. If true, users are prompted to reconnect client VPN. If false, client VPN attempts to reconnect automatically. The default value is false.

", "CloudWatchLogOptions$LogEnabled": "

Status of VPN tunnel logging feature. Default value is False.

Valid values: True | False

", "CloudWatchLogOptionsSpecification$LogEnabled": "

Enable or disable VPN tunnel logging feature. Default value is False.

Valid values: True | False

", "ConfirmProductInstanceRequest$DryRun": "

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", @@ -2209,6 +2210,7 @@ "CreateCarrierGatewayRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "CreateClientVpnEndpointRequest$SplitTunnel": "

Indicates whether split-tunnel is enabled on the Client VPN endpoint.

By default, split-tunnel on a VPN endpoint is disabled.

For information about split-tunnel VPN endpoints, see Split-tunnel Client VPN endpoint in the Client VPN Administrator Guide.

", "CreateClientVpnEndpointRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "CreateClientVpnEndpointRequest$DisconnectOnSessionTimeout": "

Indicates whether the client VPN session is disconnected after the maximum timeout specified in SessionTimeoutHours is reached. If true, users are prompted to reconnect client VPN. If false, client VPN attempts to reconnect automatically. The default value is false.

", "CreateClientVpnRouteRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "CreateCoipCidrRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "CreateCoipPoolRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", @@ -2813,6 +2815,7 @@ "ModifyCapacityReservationResult$Return": "

Returns true if the request succeeds; otherwise, it returns an error.

", "ModifyClientVpnEndpointRequest$SplitTunnel": "

Indicates whether the VPN is split-tunnel.

For information about split-tunnel VPN endpoints, see Split-tunnel Client VPN endpoint in the Client VPN Administrator Guide.

", "ModifyClientVpnEndpointRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", + "ModifyClientVpnEndpointRequest$DisconnectOnSessionTimeout": "

Indicates whether the client VPN session is disconnected after the maximum timeout specified in sessionTimeoutHours is reached. If true, users are prompted to reconnect client VPN. If false, client VPN attempts to reconnect automatically. The default value is false.

", "ModifyClientVpnEndpointResult$Return": "

Returns true if the request succeeds; otherwise, it returns an error.

", "ModifyDefaultCreditSpecificationRequest$DryRun": "

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "ModifyEbsDefaultKmsKeyIdRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", @@ -10214,7 +10217,7 @@ "DescribeNetworkInsightsAnalysesRequest$Filters": "

The filters. The following are the possible values:

", "DescribeNetworkInsightsPathsRequest$Filters": "

The filters. The following are the possible values:

", "DescribeNetworkInterfacePermissionsRequest$Filters": "

One or more filters.

", - "DescribeNetworkInterfacesRequest$Filters": "

One or more filters.

", + "DescribeNetworkInterfacesRequest$Filters": "

One or more filters.

", "DescribePlacementGroupsRequest$Filters": "

The filters.

", "DescribePrefixListsRequest$Filters": "

One or more filters.

", "DescribePublicIpv4PoolsRequest$Filters": "

One or more filters.

", @@ -13102,7 +13105,7 @@ "InstanceNetworkInterfaceAttachment$NetworkCardIndex": "

The index of the network card.

", "InstanceNetworkInterfaceSpecification$DeviceIndex": "

The position of the network interface in the attachment order. A primary network interface has a device index of 0.

If you specify a network interface when launching an instance, you must specify the device index.

", "InstanceNetworkInterfaceSpecification$Ipv6AddressCount": "

A number of IPv6 addresses to assign to the network interface. Amazon EC2 chooses the IPv6 addresses from the range of the subnet. You cannot specify this option and the option to assign specific IPv6 addresses in the same request. You can specify this option if you've specified a minimum number of instances to launch.

", - "InstanceNetworkInterfaceSpecification$SecondaryPrivateIpAddressCount": "

The number of secondary private IPv4 addresses. You can't specify this option and specify more than one private IP address using the private IP addresses option. You cannot specify this option if you're launching more than one instance in a RunInstances request.

", + "InstanceNetworkInterfaceSpecification$SecondaryPrivateIpAddressCount": "

The number of secondary private IPv4 addresses. You can’t specify this parameter and also specify a secondary private IP address using the PrivateIpAddress parameter.

", "InstanceNetworkInterfaceSpecification$NetworkCardIndex": "

The index of the network card. Some instance types support multiple network cards. The primary network interface must be assigned to network card index 0. The default is network card index 0.

If you are using RequestSpotInstances to create Spot Instances, omit this parameter because you can’t specify the network card index when using this API. To specify the network card index, use RunInstances.

", "InstanceNetworkInterfaceSpecification$Ipv4PrefixCount": "

The number of IPv4 delegated prefixes to be automatically assigned to the network interface. You cannot use this option if you use the Ipv4Prefix option.

", "InstanceNetworkInterfaceSpecification$Ipv6PrefixCount": "

The number of IPv6 delegated prefixes to be automatically assigned to the network interface. You cannot use this option if you use the Ipv6Prefix option.

", @@ -21751,7 +21754,7 @@ "InstanceBlockDeviceMapping$DeviceName": "

The device name (for example, /dev/sdh or xvdh).

", "InstanceBlockDeviceMappingSpecification$DeviceName": "

The device name (for example, /dev/sdh or xvdh).

", "InstanceBlockDeviceMappingSpecification$VirtualName": "

The virtual device name.

", - "InstanceBlockDeviceMappingSpecification$NoDevice": "

suppress the specified device included in the block device mapping.

", + "InstanceBlockDeviceMappingSpecification$NoDevice": "

Suppresses the specified device included in the block device mapping.

", "InstanceCapacity$InstanceType": "

The instance type supported by the Dedicated Host.

", "InstanceCreditSpecification$InstanceId": "

The ID of the instance.

", "InstanceCreditSpecification$CpuCredits": "

The credit option for CPU usage of the instance.

Valid values: standard | unlimited

", diff --git a/apis/kafkaconnect/2021-09-14/api-2.json b/apis/kafkaconnect/2021-09-14/api-2.json index 62234e4f0c4..762ece991de 100644 --- a/apis/kafkaconnect/2021-09-14/api-2.json +++ b/apis/kafkaconnect/2021-09-14/api-2.json @@ -2,9 +2,10 @@ "version":"2.0", "metadata":{ "apiVersion":"2021-09-14", + "auth":["aws.auth#sigv4"], "endpointPrefix":"kafkaconnect", - "jsonVersion":"1.1", "protocol":"rest-json", + "protocols":["rest-json"], "serviceAbbreviation":"Kafka Connect", "serviceFullName":"Managed Streaming for Kafka Connect", "serviceId":"KafkaConnect", @@ -152,6 +153,25 @@ {"shape":"InternalServerErrorException"} ] }, + "DescribeConnectorOperation":{ + "name":"DescribeConnectorOperation", + "http":{ + "method":"GET", + "requestUri":"/v1/connectorOperations/{connectorOperationArn}", + "responseCode":200 + }, + "input":{"shape":"DescribeConnectorOperationRequest"}, + "output":{"shape":"DescribeConnectorOperationResponse"}, + "errors":[ + {"shape":"NotFoundException"}, + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"UnauthorizedException"}, + {"shape":"InternalServerErrorException"} + ] + }, "DescribeCustomPlugin":{ "name":"DescribeCustomPlugin", "http":{ @@ -190,6 +210,25 @@ {"shape":"InternalServerErrorException"} ] }, + "ListConnectorOperations":{ + "name":"ListConnectorOperations", + "http":{ + "method":"GET", + "requestUri":"/v1/connectors/{connectorArn}/operations", + "responseCode":200 + }, + "input":{"shape":"ListConnectorOperationsRequest"}, + "output":{"shape":"ListConnectorOperationsResponse"}, + "errors":[ + {"shape":"NotFoundException"}, + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"UnauthorizedException"}, + {"shape":"InternalServerErrorException"} + ] + }, "ListConnectors":{ "name":"ListConnectors", "http":{ @@ -355,9 +394,9 @@ "minWorkerCount" ], "members":{ - "maxWorkerCount":{"shape":"__integerMin1Max10"}, + "maxWorkerCount":{"shape":"__integer"}, "mcuCount":{"shape":"__integerMin1Max8"}, - "minWorkerCount":{"shape":"__integerMin1Max10"}, + "minWorkerCount":{"shape":"__integer"}, "scaleInPolicy":{"shape":"ScaleInPolicy"}, "scaleOutPolicy":{"shape":"ScaleOutPolicy"} } @@ -382,9 +421,9 @@ "scaleOutPolicy" ], "members":{ - "maxWorkerCount":{"shape":"__integerMin1Max10"}, + "maxWorkerCount":{"shape":"__integer"}, "mcuCount":{"shape":"__integerMin1Max8"}, - "minWorkerCount":{"shape":"__integerMin1Max10"}, + "minWorkerCount":{"shape":"__integer"}, "scaleInPolicy":{"shape":"ScaleInPolicyUpdate"}, "scaleOutPolicy":{"shape":"ScaleOutPolicyUpdate"} } @@ -447,6 +486,76 @@ }, "exception":true }, + "ConnectorConfiguration":{ + "type":"map", + "key":{"shape":"__string"}, + "value":{"shape":"__string"}, + "sensitive":true + }, + "ConnectorConfigurationUpdate":{ + "type":"map", + "key":{"shape":"__string"}, + "value":{"shape":"__string"}, + "sensitive":true + }, + "ConnectorOperationState":{ + "type":"string", + "enum":[ + "PENDING", + "UPDATE_IN_PROGRESS", + "UPDATE_COMPLETE", + "UPDATE_FAILED", + "ROLLBACK_IN_PROGRESS", + "ROLLBACK_FAILED", + "ROLLBACK_COMPLETE" + ] + }, + "ConnectorOperationStep":{ + "type":"structure", + "members":{ + "stepType":{"shape":"ConnectorOperationStepType"}, + "stepState":{"shape":"ConnectorOperationStepState"} + } + }, + "ConnectorOperationStepState":{ + "type":"string", + "enum":[ + "PENDING", + "IN_PROGRESS", + "COMPLETED", + "FAILED", + "CANCELLED" + ] + }, + "ConnectorOperationStepType":{ + "type":"string", + "enum":[ + "INITIALIZE_UPDATE", + "FINALIZE_UPDATE", + "UPDATE_WORKER_SETTING", + "UPDATE_CONNECTOR_CONFIGURATION", + "VALIDATE_UPDATE" + ] + }, + "ConnectorOperationSummary":{ + "type":"structure", + "members":{ + "connectorOperationArn":{"shape":"__string"}, + "connectorOperationType":{"shape":"ConnectorOperationType"}, + "connectorOperationState":{"shape":"ConnectorOperationState"}, + "creationTime":{"shape":"__timestampIso8601"}, + "endTime":{"shape":"__timestampIso8601"} + } + }, + "ConnectorOperationType":{ + "type":"string", + "enum":[ + "UPDATE_WORKER_SETTING", + "UPDATE_CONNECTOR_CONFIGURATION", + "ISOLATE_CONNECTOR", + "RESTORE_CONNECTOR" + ] + }, "ConnectorState":{ "type":"string", "enum":[ @@ -492,7 +601,7 @@ ], "members":{ "capacity":{"shape":"Capacity"}, - "connectorConfiguration":{"shape":"__sensitive__mapOf__string"}, + "connectorConfiguration":{"shape":"ConnectorConfiguration"}, "connectorDescription":{"shape":"__stringMax1024"}, "connectorName":{"shape":"__stringMin1Max128"}, "kafkaCluster":{"shape":"KafkaCluster"}, @@ -502,8 +611,8 @@ "logDelivery":{"shape":"LogDelivery"}, "plugins":{"shape":"__listOfPlugin"}, "serviceExecutionRoleArn":{"shape":"__string"}, - "tags":{"shape":"Tags"}, - "workerConfiguration":{"shape":"WorkerConfiguration"} + "workerConfiguration":{"shape":"WorkerConfiguration"}, + "tags":{"shape":"Tags"} } }, "CreateConnectorResponse":{ @@ -698,6 +807,34 @@ "workerConfigurationState":{"shape":"WorkerConfigurationState"} } }, + "DescribeConnectorOperationRequest":{ + "type":"structure", + "required":["connectorOperationArn"], + "members":{ + "connectorOperationArn":{ + "shape":"__string", + "location":"uri", + "locationName":"connectorOperationArn" + } + } + }, + "DescribeConnectorOperationResponse":{ + "type":"structure", + "members":{ + "connectorArn":{"shape":"__string"}, + "connectorOperationArn":{"shape":"__string"}, + "connectorOperationState":{"shape":"ConnectorOperationState"}, + "connectorOperationType":{"shape":"ConnectorOperationType"}, + "operationSteps":{"shape":"__listOfConnectorOperationStep"}, + "originWorkerSetting":{"shape":"WorkerSetting"}, + "originConnectorConfiguration":{"shape":"ConnectorConfiguration"}, + "targetWorkerSetting":{"shape":"WorkerSetting"}, + "targetConnectorConfiguration":{"shape":"ConnectorConfiguration"}, + "errorInfo":{"shape":"StateDescription"}, + "creationTime":{"shape":"__timestampIso8601"}, + "endTime":{"shape":"__timestampIso8601"} + } + }, "DescribeConnectorRequest":{ "type":"structure", "required":["connectorArn"], @@ -714,7 +851,7 @@ "members":{ "capacity":{"shape":"CapacityDescription"}, "connectorArn":{"shape":"__string"}, - "connectorConfiguration":{"shape":"__sensitive__mapOf__string"}, + "connectorConfiguration":{"shape":"ConnectorConfiguration"}, "connectorDescription":{"shape":"__string"}, "connectorName":{"shape":"__string"}, "connectorState":{"shape":"ConnectorState"}, @@ -727,8 +864,8 @@ "logDelivery":{"shape":"LogDeliveryDescription"}, "plugins":{"shape":"__listOfPluginDescription"}, "serviceExecutionRoleArn":{"shape":"__string"}, - "stateDescription":{"shape":"StateDescription"}, - "workerConfiguration":{"shape":"WorkerConfigurationDescription"} + "workerConfiguration":{"shape":"WorkerConfigurationDescription"}, + "stateDescription":{"shape":"StateDescription"} } }, "DescribeCustomPluginRequest":{ @@ -864,6 +1001,34 @@ "TLS" ] }, + "ListConnectorOperationsRequest":{ + "type":"structure", + "required":["connectorArn"], + "members":{ + "connectorArn":{ + "shape":"__string", + "location":"uri", + "locationName":"connectorArn" + }, + "maxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"maxResults" + }, + "nextToken":{ + "shape":"__string", + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "ListConnectorOperationsResponse":{ + "type":"structure", + "members":{ + "connectorOperations":{"shape":"__listOfConnectorOperationSummary"}, + "nextToken":{"shape":"__string"} + } + }, "ListConnectorsRequest":{ "type":"structure", "members":{ @@ -899,15 +1064,15 @@ "location":"querystring", "locationName":"maxResults" }, - "namePrefix":{ + "nextToken":{ "shape":"__string", "location":"querystring", - "locationName":"namePrefix" + "locationName":"nextToken" }, - "nextToken":{ + "namePrefix":{ "shape":"__string", "location":"querystring", - "locationName":"nextToken" + "locationName":"namePrefix" } } }, @@ -943,15 +1108,15 @@ "location":"querystring", "locationName":"maxResults" }, - "namePrefix":{ + "nextToken":{ "shape":"__string", "location":"querystring", - "locationName":"namePrefix" + "locationName":"nextToken" }, - "nextToken":{ + "namePrefix":{ "shape":"__string", "location":"querystring", - "locationName":"nextToken" + "locationName":"namePrefix" } } }, @@ -977,6 +1142,7 @@ }, "MaxResults":{ "type":"integer", + "box":true, "max":100, "min":1 }, @@ -1012,7 +1178,7 @@ ], "members":{ "mcuCount":{"shape":"__integerMin1Max8"}, - "workerCount":{"shape":"__integerMin1Max10"} + "workerCount":{"shape":"__integer"} } }, "ProvisionedCapacityDescription":{ @@ -1030,7 +1196,7 @@ ], "members":{ "mcuCount":{"shape":"__integerMin1Max8"}, - "workerCount":{"shape":"__integerMin1Max10"} + "workerCount":{"shape":"__integer"} } }, "S3Location":{ @@ -1218,12 +1384,12 @@ "UpdateConnectorRequest":{ "type":"structure", "required":[ - "capacity", "connectorArn", "currentVersion" ], "members":{ "capacity":{"shape":"CapacityUpdate"}, + "connectorConfiguration":{"shape":"ConnectorConfigurationUpdate"}, "connectorArn":{ "shape":"__string", "location":"uri", @@ -1240,7 +1406,8 @@ "type":"structure", "members":{ "connectorArn":{"shape":"__string"}, - "connectorState":{"shape":"ConnectorState"} + "connectorState":{"shape":"ConnectorState"}, + "connectorOperationArn":{"shape":"__string"} } }, "Vpc":{ @@ -1327,13 +1494,14 @@ "s3":{"shape":"S3LogDeliveryDescription"} } }, + "WorkerSetting":{ + "type":"structure", + "members":{ + "capacity":{"shape":"CapacityDescription"} + } + }, "__boolean":{"type":"boolean"}, "__integer":{"type":"integer"}, - "__integerMin1Max10":{ - "type":"integer", - "max":10, - "min":1 - }, "__integerMin1Max100":{ "type":"integer", "max":100, @@ -1344,6 +1512,14 @@ "max":8, "min":1 }, + "__listOfConnectorOperationStep":{ + "type":"list", + "member":{"shape":"ConnectorOperationStep"} + }, + "__listOfConnectorOperationSummary":{ + "type":"list", + "member":{"shape":"ConnectorOperationSummary"} + }, "__listOfConnectorSummary":{ "type":"list", "member":{"shape":"ConnectorSummary"} @@ -1378,12 +1554,6 @@ "type":"string", "sensitive":true }, - "__sensitive__mapOf__string":{ - "type":"map", - "key":{"shape":"__string"}, - "value":{"shape":"__string"}, - "sensitive":true - }, "__string":{"type":"string"}, "__stringMax1024":{ "type":"string", diff --git a/apis/kafkaconnect/2021-09-14/docs-2.json b/apis/kafkaconnect/2021-09-14/docs-2.json index 65668e761f1..a58ac295fed 100644 --- a/apis/kafkaconnect/2021-09-14/docs-2.json +++ b/apis/kafkaconnect/2021-09-14/docs-2.json @@ -9,8 +9,10 @@ "DeleteCustomPlugin": "

Deletes a custom plugin.

", "DeleteWorkerConfiguration": "

Deletes the specified worker configuration.

", "DescribeConnector": "

Returns summary information about the connector.

", + "DescribeConnectorOperation": "

Returns information about the specified connector's operations.

", "DescribeCustomPlugin": "

A summary description of the custom plugin.

", "DescribeWorkerConfiguration": "

Returns information about a worker configuration.

", + "ListConnectorOperations": "

Lists information about a connector's operation(s).

", "ListConnectors": "

Returns a list of all the connectors in this account and Region. The list is limited to connectors whose name starts with the specified prefix. The response also includes a description of each of the listed connectors.

", "ListCustomPlugins": "

Returns a list of all of the custom plugins in this account and Region.

", "ListTagsForResource": "

Lists all the tags attached to the specified resource.

", @@ -65,7 +67,8 @@ "base": "

A description of the connector's capacity.

", "refs": { "ConnectorSummary$capacity": "

The connector's compute capacity settings.

", - "DescribeConnectorResponse$capacity": "

Information about the capacity of the connector, whether it is auto scaled or provisioned.

" + "DescribeConnectorResponse$capacity": "

Information about the capacity of the connector, whether it is auto scaled or provisioned.

", + "WorkerSetting$capacity": null } }, "CapacityUpdate": { @@ -91,6 +94,59 @@ "refs": { } }, + "ConnectorConfiguration": { + "base": null, + "refs": { + "CreateConnectorRequest$connectorConfiguration": "

A map of keys to values that represent the configuration for the connector.

", + "DescribeConnectorOperationResponse$originConnectorConfiguration": "

The origin connector configuration.

", + "DescribeConnectorOperationResponse$targetConnectorConfiguration": "

The target connector configuration.

", + "DescribeConnectorResponse$connectorConfiguration": "

A map of keys to values that represent the configuration for the connector.

" + } + }, + "ConnectorConfigurationUpdate": { + "base": null, + "refs": { + "UpdateConnectorRequest$connectorConfiguration": "

A map of keys to values that represent the configuration for the connector.

" + } + }, + "ConnectorOperationState": { + "base": null, + "refs": { + "ConnectorOperationSummary$connectorOperationState": "

The state of the connector operation.

", + "DescribeConnectorOperationResponse$connectorOperationState": "

The state of the connector operation.

" + } + }, + "ConnectorOperationStep": { + "base": "

Details of a step that is involved in a connector's operation.

", + "refs": { + "__listOfConnectorOperationStep$member": null + } + }, + "ConnectorOperationStepState": { + "base": null, + "refs": { + "ConnectorOperationStep$stepState": "

The step state of the operation.

" + } + }, + "ConnectorOperationStepType": { + "base": null, + "refs": { + "ConnectorOperationStep$stepType": "

The step type of the operation.

" + } + }, + "ConnectorOperationSummary": { + "base": "

Summary of a connector operation.

", + "refs": { + "__listOfConnectorOperationSummary$member": null + } + }, + "ConnectorOperationType": { + "base": null, + "refs": { + "ConnectorOperationSummary$connectorOperationType": "

The type of connector operation performed.

", + "DescribeConnectorOperationResponse$connectorOperationType": "

The type of connector operation performed.

" + } + }, "ConnectorState": { "base": null, "refs": { @@ -226,6 +282,16 @@ "refs": { } }, + "DescribeConnectorOperationRequest": { + "base": null, + "refs": { + } + }, + "DescribeConnectorOperationResponse": { + "base": null, + "refs": { + } + }, "DescribeConnectorRequest": { "base": null, "refs": { @@ -331,6 +397,16 @@ "KafkaClusterEncryptionInTransitDescription$encryptionType": "

The type of encryption in transit to the Apache Kafka cluster.

" } }, + "ListConnectorOperationsRequest": { + "base": null, + "refs": { + } + }, + "ListConnectorOperationsResponse": { + "base": null, + "refs": { + } + }, "ListConnectorsRequest": { "base": null, "refs": { @@ -387,6 +463,7 @@ "MaxResults": { "base": null, "refs": { + "ListConnectorOperationsRequest$maxResults": "

Maximum number of connector operations to fetch in one get request.

", "ListConnectorsRequest$maxResults": "

The maximum number of connectors to list in one response.

", "ListCustomPluginsRequest$maxResults": "

The maximum number of custom plugins to list in one response.

", "ListWorkerConfigurationsRequest$maxResults": "

The maximum number of worker configurations to list in one response.

" @@ -495,6 +572,7 @@ "StateDescription": { "base": "

Details about the state of a resource.

", "refs": { + "DescribeConnectorOperationResponse$errorInfo": null, "DescribeConnectorResponse$stateDescription": "

Details about the state of a connector.

", "DescribeCustomPluginResponse$stateDescription": "

Details about the state of a custom plugin.

" } @@ -633,6 +711,13 @@ "LogDeliveryDescription$workerLogDelivery": "

The workers can send worker logs to different destination types. This configuration specifies the details of these destinations.

" } }, + "WorkerSetting": { + "base": "

Details about worker setting of a connector

", + "refs": { + "DescribeConnectorOperationResponse$originWorkerSetting": "

The origin worker setting.

", + "DescribeConnectorOperationResponse$targetWorkerSetting": "

The target worker setting.

" + } + }, "__boolean": { "base": null, "refs": { @@ -647,26 +732,21 @@ "__integer": { "base": null, "refs": { + "AutoScaling$maxWorkerCount": "

The maximum number of workers allocated to the connector.

", + "AutoScaling$minWorkerCount": "

The minimum number of workers allocated to the connector.

", "AutoScalingDescription$maxWorkerCount": "

The maximum number of workers allocated to the connector.

", "AutoScalingDescription$mcuCount": "

The number of microcontroller units (MCUs) allocated to each connector worker. The valid values are 1,2,4,8.

", "AutoScalingDescription$minWorkerCount": "

The minimum number of workers allocated to the connector.

", + "AutoScalingUpdate$maxWorkerCount": "

The target maximum number of workers allocated to the connector.

", + "AutoScalingUpdate$minWorkerCount": "

The target minimum number of workers allocated to the connector.

", + "ProvisionedCapacity$workerCount": "

The number of workers that are allocated to the connector.

", "ProvisionedCapacityDescription$mcuCount": "

The number of microcontroller units (MCUs) allocated to each connector worker. The valid values are 1,2,4,8.

", "ProvisionedCapacityDescription$workerCount": "

The number of workers that are allocated to the connector.

", + "ProvisionedCapacityUpdate$workerCount": "

The number of workers that are allocated to the connector.

", "ScaleInPolicyDescription$cpuUtilizationPercentage": "

Specifies the CPU utilization percentage threshold at which you want connector scale in to be triggered.

", "ScaleOutPolicyDescription$cpuUtilizationPercentage": "

The CPU utilization percentage threshold at which you want connector scale out to be triggered.

" } }, - "__integerMin1Max10": { - "base": null, - "refs": { - "AutoScaling$maxWorkerCount": "

The maximum number of workers allocated to the connector.

", - "AutoScaling$minWorkerCount": "

The minimum number of workers allocated to the connector.

", - "AutoScalingUpdate$maxWorkerCount": "

The target maximum number of workers allocated to the connector.

", - "AutoScalingUpdate$minWorkerCount": "

The target minimum number of workers allocated to the connector.

", - "ProvisionedCapacity$workerCount": "

The number of workers that are allocated to the connector.

", - "ProvisionedCapacityUpdate$workerCount": "

The number of workers that are allocated to the connector.

" - } - }, "__integerMin1Max100": { "base": null, "refs": { @@ -685,6 +765,18 @@ "ProvisionedCapacityUpdate$mcuCount": "

The number of microcontroller units (MCUs) allocated to each connector worker. The valid values are 1,2,4,8.

" } }, + "__listOfConnectorOperationStep": { + "base": null, + "refs": { + "DescribeConnectorOperationResponse$operationSteps": "

The array of operation steps taken.

" + } + }, + "__listOfConnectorOperationSummary": { + "base": null, + "refs": { + "ListConnectorOperationsResponse$connectorOperations": "

An array of connector operation descriptions.

" + } + }, "__listOfConnectorSummary": { "base": null, "refs": { @@ -751,13 +843,6 @@ "WorkerConfigurationRevisionDescription$propertiesFileContent": "

Base64 encoded contents of the connect-distributed.properties file.

" } }, - "__sensitive__mapOf__string": { - "base": null, - "refs": { - "CreateConnectorRequest$connectorConfiguration": "

A map of keys to values that represent the configuration for the connector.

", - "DescribeConnectorResponse$connectorConfiguration": "

A map of keys to values that represent the configuration for the connector.

" - } - }, "__string": { "base": null, "refs": { @@ -767,6 +852,11 @@ "CloudWatchLogsLogDelivery$logGroup": "

The name of the CloudWatch log group that is the destination for log delivery.

", "CloudWatchLogsLogDeliveryDescription$logGroup": "

The name of the CloudWatch log group that is the destination for log delivery.

", "ConflictException$message": null, + "ConnectorConfiguration$key": null, + "ConnectorConfiguration$value": null, + "ConnectorConfigurationUpdate$key": null, + "ConnectorConfigurationUpdate$value": null, + "ConnectorOperationSummary$connectorOperationArn": "

The Amazon Resource Name (ARN) of the connector operation.

", "ConnectorSummary$connectorArn": "

The Amazon Resource Name (ARN) of the connector.

", "ConnectorSummary$connectorDescription": "

The description of the connector.

", "ConnectorSummary$connectorName": "

The name of the connector.

", @@ -795,6 +885,9 @@ "DeleteCustomPluginResponse$customPluginArn": "

The Amazon Resource Name (ARN) of the custom plugin that you requested to delete.

", "DeleteWorkerConfigurationRequest$workerConfigurationArn": "

The Amazon Resource Name (ARN) of the worker configuration that you want to delete.

", "DeleteWorkerConfigurationResponse$workerConfigurationArn": "

The Amazon Resource Name (ARN) of the worker configuration that you requested to delete.

", + "DescribeConnectorOperationRequest$connectorOperationArn": "

ARN of the connector operation to be described.

", + "DescribeConnectorOperationResponse$connectorArn": "

The Amazon Resource Name (ARN) of the connector.

", + "DescribeConnectorOperationResponse$connectorOperationArn": "

The Amazon Resource Name (ARN) of the connector operation.

", "DescribeConnectorRequest$connectorArn": "

The Amazon Resource Name (ARN) of the connector that you want to describe.

", "DescribeConnectorResponse$connectorArn": "

The Amazon Resource Name (ARN) of the connector.

", "DescribeConnectorResponse$connectorDescription": "

A summary description of the connector.

", @@ -814,15 +907,18 @@ "FirehoseLogDeliveryDescription$deliveryStream": "

The name of the Kinesis Data Firehose delivery stream that is the destination for log delivery.

", "ForbiddenException$message": null, "InternalServerErrorException$message": null, + "ListConnectorOperationsRequest$connectorArn": "

The Amazon Resource Name (ARN) of the connector for which to list operations.

", + "ListConnectorOperationsRequest$nextToken": "

If the response is truncated, it includes a NextToken. Send this NextToken in a subsequent request to continue listing from where it left off.

", + "ListConnectorOperationsResponse$nextToken": "

If the response is truncated, it includes a NextToken. Send this NextToken in a subsequent request to continue listing from where it left off.

", "ListConnectorsRequest$connectorNamePrefix": "

The name prefix that you want to use to search for and list connectors.

", "ListConnectorsRequest$nextToken": "

If the response of a ListConnectors operation is truncated, it will include a NextToken. Send this NextToken in a subsequent request to continue listing from where the previous operation left off.

", "ListConnectorsResponse$nextToken": "

If the response of a ListConnectors operation is truncated, it will include a NextToken. Send this NextToken in a subsequent request to continue listing from where it left off.

", - "ListCustomPluginsRequest$namePrefix": "

Lists custom plugin names that start with the specified text string.

", "ListCustomPluginsRequest$nextToken": "

If the response of a ListCustomPlugins operation is truncated, it will include a NextToken. Send this NextToken in a subsequent request to continue listing from where the previous operation left off.

", + "ListCustomPluginsRequest$namePrefix": "

Lists custom plugin names that start with the specified text string.

", "ListCustomPluginsResponse$nextToken": "

If the response of a ListCustomPlugins operation is truncated, it will include a NextToken. Send this NextToken in a subsequent request to continue listing from where the previous operation left off.

", "ListTagsForResourceRequest$resourceArn": "

The Amazon Resource Name (ARN) of the resource for which you want to list all attached tags.

", - "ListWorkerConfigurationsRequest$namePrefix": "

Lists worker configuration names that start with the specified text string.

", "ListWorkerConfigurationsRequest$nextToken": "

If the response of a ListWorkerConfigurations operation is truncated, it will include a NextToken. Send this NextToken in a subsequent request to continue listing from where the previous operation left off.

", + "ListWorkerConfigurationsRequest$namePrefix": "

Lists worker configuration names that start with the specified text string.

", "ListWorkerConfigurationsResponse$nextToken": "

If the response of a ListWorkerConfigurations operation is truncated, it will include a NextToken. Send this NextToken in a subsequent request to continue listing from where the previous operation left off.

", "NotFoundException$message": null, "S3Location$bucketArn": "

The Amazon Resource Name (ARN) of an S3 bucket.

", @@ -845,6 +941,7 @@ "UpdateConnectorRequest$connectorArn": "

The Amazon Resource Name (ARN) of the connector that you want to update.

", "UpdateConnectorRequest$currentVersion": "

The current version of the connector that you want to update.

", "UpdateConnectorResponse$connectorArn": "

The Amazon Resource Name (ARN) of the connector.

", + "UpdateConnectorResponse$connectorOperationArn": "

The Amazon Resource Name (ARN) of the connector operation.

", "WorkerConfiguration$workerConfigurationArn": "

The Amazon Resource Name (ARN) of the worker configuration.

", "WorkerConfigurationDescription$workerConfigurationArn": "

The Amazon Resource Name (ARN) of the worker configuration.

", "WorkerConfigurationRevisionDescription$description": "

The description of the worker configuration revision.

", @@ -852,9 +949,7 @@ "WorkerConfigurationSummary$description": "

The description of a worker configuration.

", "WorkerConfigurationSummary$name": "

The name of the worker configuration.

", "WorkerConfigurationSummary$workerConfigurationArn": "

The Amazon Resource Name (ARN) of the worker configuration.

", - "__listOf__string$member": null, - "__sensitive__mapOf__string$key": null, - "__sensitive__mapOf__string$value": null + "__listOf__string$member": null } }, "__stringMax1024": { @@ -876,10 +971,14 @@ "__timestampIso8601": { "base": null, "refs": { + "ConnectorOperationSummary$creationTime": "

The time when operation was created.

", + "ConnectorOperationSummary$endTime": "

The time when operation ended.

", "ConnectorSummary$creationTime": "

The time that the connector was created.

", "CreateWorkerConfigurationResponse$creationTime": "

The time that the worker configuration was created.

", "CustomPluginRevisionSummary$creationTime": "

The time that the custom plugin was created.

", "CustomPluginSummary$creationTime": "

The time that the custom plugin was created.

", + "DescribeConnectorOperationResponse$creationTime": "

The time when the operation was created.

", + "DescribeConnectorOperationResponse$endTime": "

The time when the operation ended.

", "DescribeConnectorResponse$creationTime": "

The time the connector was created.

", "DescribeCustomPluginResponse$creationTime": "

The time that the custom plugin was created.

", "DescribeWorkerConfigurationResponse$creationTime": "

The time that the worker configuration was created.

", diff --git a/apis/kafkaconnect/2021-09-14/paginators-1.json b/apis/kafkaconnect/2021-09-14/paginators-1.json index 489a00d61f3..5ed44f4a6cf 100644 --- a/apis/kafkaconnect/2021-09-14/paginators-1.json +++ b/apis/kafkaconnect/2021-09-14/paginators-1.json @@ -1,5 +1,11 @@ { "pagination": { + "ListConnectorOperations": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "connectorOperations" + }, "ListConnectors": { "input_token": "nextToken", "output_token": "nextToken", diff --git a/apis/kafkaconnect/2021-09-14/waiters-2.json b/apis/kafkaconnect/2021-09-14/waiters-2.json new file mode 100644 index 00000000000..13f60ee66be --- /dev/null +++ b/apis/kafkaconnect/2021-09-14/waiters-2.json @@ -0,0 +1,5 @@ +{ + "version": 2, + "waiters": { + } +} diff --git a/apis/transcribe/2017-10-26/api-2.json b/apis/transcribe/2017-10-26/api-2.json index c507fed6092..01a86d99078 100644 --- a/apis/transcribe/2017-10-26/api-2.json +++ b/apis/transcribe/2017-10-26/api-2.json @@ -704,7 +704,8 @@ "DataAccessRoleArn":{"shape":"DataAccessRoleArn"}, "IdentifiedLanguageScore":{"shape":"IdentifiedLanguageScore"}, "Settings":{"shape":"CallAnalyticsJobSettings"}, - "ChannelDefinitions":{"shape":"ChannelDefinitions"} + "ChannelDefinitions":{"shape":"ChannelDefinitions"}, + "Tags":{"shape":"TagList"} } }, "CallAnalyticsJobDetails":{ @@ -790,6 +791,7 @@ "Rules":{"shape":"RuleList"}, "CreateTime":{"shape":"DateTime"}, "LastUpdateTime":{"shape":"DateTime"}, + "Tags":{"shape":"TagList"}, "InputType":{"shape":"InputType"} } }, @@ -843,6 +845,7 @@ "members":{ "CategoryName":{"shape":"CategoryName"}, "Rules":{"shape":"RuleList"}, + "Tags":{"shape":"TagList"}, "InputType":{"shape":"InputType"} } }, @@ -1952,6 +1955,7 @@ "OutputEncryptionKMSKeyId":{"shape":"KMSKeyId"}, "DataAccessRoleArn":{"shape":"DataAccessRoleArn"}, "Settings":{"shape":"CallAnalyticsJobSettings"}, + "Tags":{"shape":"TagList"}, "ChannelDefinitions":{"shape":"ChannelDefinitions"} } }, diff --git a/apis/transcribe/2017-10-26/docs-2.json b/apis/transcribe/2017-10-26/docs-2.json index 106783579f1..d97efea5de6 100644 --- a/apis/transcribe/2017-10-26/docs-2.json +++ b/apis/transcribe/2017-10-26/docs-2.json @@ -1268,6 +1268,9 @@ "TagList": { "base": null, "refs": { + "CallAnalyticsJob$Tags": "

The tags, each in the form of a key:value pair, assigned to the specified call analytics job.

", + "CategoryProperties$Tags": "

The tags, each in the form of a key:value pair, assigned to the specified call analytics category.

", + "CreateCallAnalyticsCategoryRequest$Tags": "

Adds one or more custom tags, each in the form of a key:value pair, to a new call analytics category at the time you start this new job.

To learn more about using tags with Amazon Transcribe, refer to Tagging resources.

", "CreateLanguageModelRequest$Tags": "

Adds one or more custom tags, each in the form of a key:value pair, to a new custom language model at the time you create this new model.

To learn more about using tags with Amazon Transcribe, refer to Tagging resources.

", "CreateMedicalVocabularyRequest$Tags": "

Adds one or more custom tags, each in the form of a key:value pair, to a new custom medical vocabulary at the time you create this new custom vocabulary.

To learn more about using tags with Amazon Transcribe, refer to Tagging resources.

", "CreateVocabularyFilterRequest$Tags": "

Adds one or more custom tags, each in the form of a key:value pair, to a new custom vocabulary filter at the time you create this new vocabulary filter.

To learn more about using tags with Amazon Transcribe, refer to Tagging resources.

", @@ -1275,6 +1278,7 @@ "ListTagsForResourceResponse$Tags": "

Lists all tags associated with the given transcription job, vocabulary, model, or resource.

", "MedicalScribeJob$Tags": "

Adds one or more custom tags, each in the form of a key:value pair, to the Medica Scribe job.

To learn more about using tags with Amazon Transcribe, refer to Tagging resources.

", "MedicalTranscriptionJob$Tags": "

The tags, each in the form of a key:value pair, assigned to the specified medical transcription job.

", + "StartCallAnalyticsJobRequest$Tags": "

Adds one or more custom tags, each in the form of a key:value pair, to a new call analytics job at the time you start this new job.

To learn more about using tags with Amazon Transcribe, refer to Tagging resources.

", "StartMedicalScribeJobRequest$Tags": "

Adds one or more custom tags, each in the form of a key:value pair, to the Medica Scribe job.

To learn more about using tags with Amazon Transcribe, refer to Tagging resources.

", "StartMedicalTranscriptionJobRequest$Tags": "

Adds one or more custom tags, each in the form of a key:value pair, to a new medical transcription job at the time you start this new job.

To learn more about using tags with Amazon Transcribe, refer to Tagging resources.

", "StartTranscriptionJobRequest$Tags": "

Adds one or more custom tags, each in the form of a key:value pair, to a new transcription job at the time you start this new job.

To learn more about using tags with Amazon Transcribe, refer to Tagging resources.

", diff --git a/gems/aws-partitions/CHANGELOG.md b/gems/aws-partitions/CHANGELOG.md index 25a54f128e7..c6cf0b856d1 100644 --- a/gems/aws-partitions/CHANGELOG.md +++ b/gems/aws-partitions/CHANGELOG.md @@ -1,6 +1,11 @@ Unreleased Changes ------------------ +1.1036.0 (2025-01-13) +------------------ + +* Feature - Updated the partitions source data the determines the AWS service regions and endpoints. + 1.1035.0 (2025-01-10) ------------------ diff --git a/gems/aws-partitions/VERSION b/gems/aws-partitions/VERSION index fd18f6ff598..6be29c4224a 100644 --- a/gems/aws-partitions/VERSION +++ b/gems/aws-partitions/VERSION @@ -1 +1 @@ -1.1035.0 +1.1036.0 diff --git a/gems/aws-partitions/partitions.json b/gems/aws-partitions/partitions.json index 878216a86da..e34bdc9f808 100644 --- a/gems/aws-partitions/partitions.json +++ b/gems/aws-partitions/partitions.json @@ -11245,6 +11245,7 @@ "ap-southeast-2" : { }, "ap-southeast-3" : { }, "ap-southeast-4" : { }, + "ap-southeast-5" : { }, "ca-central-1" : { }, "ca-west-1" : { }, "eu-central-1" : { }, @@ -21622,96 +21623,192 @@ "variants" : [ { "hostname" : "snowball-fips.af-south-1.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "snowball-fips.af-south-1.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "snowball.af-south-1.api.aws", + "tags" : [ "dualstack" ] } ] }, "ap-east-1" : { "variants" : [ { "hostname" : "snowball-fips.ap-east-1.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "snowball-fips.ap-east-1.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "snowball.ap-east-1.api.aws", + "tags" : [ "dualstack" ] } ] }, "ap-northeast-1" : { "variants" : [ { "hostname" : "snowball-fips.ap-northeast-1.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "snowball-fips.ap-northeast-1.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "snowball.ap-northeast-1.api.aws", + "tags" : [ "dualstack" ] } ] }, "ap-northeast-2" : { "variants" : [ { "hostname" : "snowball-fips.ap-northeast-2.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "snowball-fips.ap-northeast-2.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "snowball.ap-northeast-2.api.aws", + "tags" : [ "dualstack" ] } ] }, "ap-northeast-3" : { "variants" : [ { "hostname" : "snowball-fips.ap-northeast-3.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "snowball-fips.ap-northeast-3.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "snowball.ap-northeast-3.api.aws", + "tags" : [ "dualstack" ] } ] }, "ap-south-1" : { "variants" : [ { "hostname" : "snowball-fips.ap-south-1.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "snowball-fips.ap-south-1.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "snowball.ap-south-1.api.aws", + "tags" : [ "dualstack" ] } ] }, "ap-southeast-1" : { "variants" : [ { "hostname" : "snowball-fips.ap-southeast-1.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "snowball-fips.ap-southeast-1.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "snowball.ap-southeast-1.api.aws", + "tags" : [ "dualstack" ] } ] }, "ap-southeast-2" : { "variants" : [ { "hostname" : "snowball-fips.ap-southeast-2.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "snowball-fips.ap-southeast-2.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "snowball.ap-southeast-2.api.aws", + "tags" : [ "dualstack" ] } ] }, "ap-southeast-3" : { "variants" : [ { "hostname" : "snowball-fips.ap-southeast-3.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "snowball-fips.ap-southeast-3.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "snowball.ap-southeast-3.api.aws", + "tags" : [ "dualstack" ] } ] }, "ca-central-1" : { "variants" : [ { "hostname" : "snowball-fips.ca-central-1.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "snowball-fips.ca-central-1.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "snowball.ca-central-1.api.aws", + "tags" : [ "dualstack" ] } ] }, "eu-central-1" : { "variants" : [ { "hostname" : "snowball-fips.eu-central-1.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "snowball-fips.eu-central-1.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "snowball.eu-central-1.api.aws", + "tags" : [ "dualstack" ] } ] }, "eu-north-1" : { "variants" : [ { "hostname" : "snowball-fips.eu-north-1.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "snowball-fips.eu-north-1.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "snowball.eu-north-1.api.aws", + "tags" : [ "dualstack" ] } ] }, "eu-south-1" : { "variants" : [ { "hostname" : "snowball-fips.eu-south-1.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "snowball-fips.eu-south-1.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "snowball.eu-south-1.api.aws", + "tags" : [ "dualstack" ] } ] }, "eu-west-1" : { "variants" : [ { "hostname" : "snowball-fips.eu-west-1.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "snowball-fips.eu-west-1.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "snowball.eu-west-1.api.aws", + "tags" : [ "dualstack" ] } ] }, "eu-west-2" : { "variants" : [ { "hostname" : "snowball-fips.eu-west-2.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "snowball-fips.eu-west-2.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "snowball.eu-west-2.api.aws", + "tags" : [ "dualstack" ] } ] }, "eu-west-3" : { "variants" : [ { "hostname" : "snowball-fips.eu-west-3.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "snowball-fips.eu-west-3.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "snowball.eu-west-3.api.aws", + "tags" : [ "dualstack" ] } ] }, "fips-af-south-1" : { @@ -21879,42 +21976,84 @@ "variants" : [ { "hostname" : "snowball-fips.il-central-1.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "snowball-fips.il-central-1.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "snowball.il-central-1.api.aws", + "tags" : [ "dualstack" ] } ] }, "me-central-1" : { "variants" : [ { "hostname" : "snowball-fips.me-central-1.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "snowball-fips.me-central-1.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "snowball.me-central-1.api.aws", + "tags" : [ "dualstack" ] } ] }, "sa-east-1" : { "variants" : [ { "hostname" : "snowball-fips.sa-east-1.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "snowball-fips.sa-east-1.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "snowball.sa-east-1.api.aws", + "tags" : [ "dualstack" ] } ] }, "us-east-1" : { "variants" : [ { "hostname" : "snowball-fips.us-east-1.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "snowball-fips.us-east-1.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "snowball.us-east-1.api.aws", + "tags" : [ "dualstack" ] } ] }, "us-east-2" : { "variants" : [ { "hostname" : "snowball-fips.us-east-2.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "snowball-fips.us-east-2.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "snowball.us-east-2.api.aws", + "tags" : [ "dualstack" ] } ] }, "us-west-1" : { "variants" : [ { "hostname" : "snowball-fips.us-west-1.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "snowball-fips.us-west-1.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "snowball.us-west-1.api.aws", + "tags" : [ "dualstack" ] } ] }, "us-west-2" : { "variants" : [ { "hostname" : "snowball-fips.us-west-2.amazonaws.com", "tags" : [ "fips" ] + }, { + "hostname" : "snowball-fips.us-west-2.api.aws", + "tags" : [ "dualstack", "fips" ] + }, { + "hostname" : "snowball.us-west-2.api.aws", + "tags" : [ "dualstack" ] } ] } } diff --git a/gems/aws-sdk-artifact/CHANGELOG.md b/gems/aws-sdk-artifact/CHANGELOG.md index 385184c7cb6..477b4ef0625 100644 --- a/gems/aws-sdk-artifact/CHANGELOG.md +++ b/gems/aws-sdk-artifact/CHANGELOG.md @@ -1,6 +1,11 @@ Unreleased Changes ------------------ +1.16.0 (2025-01-13) +------------------ + +* Feature - Support resolving regional API calls to partition's leader region endpoint. + 1.15.0 (2024-12-11) ------------------ diff --git a/gems/aws-sdk-artifact/VERSION b/gems/aws-sdk-artifact/VERSION index 141f2e805be..15b989e398f 100644 --- a/gems/aws-sdk-artifact/VERSION +++ b/gems/aws-sdk-artifact/VERSION @@ -1 +1 @@ -1.15.0 +1.16.0 diff --git a/gems/aws-sdk-artifact/lib/aws-sdk-artifact.rb b/gems/aws-sdk-artifact/lib/aws-sdk-artifact.rb index 57777b836ad..76366bdc4b9 100644 --- a/gems/aws-sdk-artifact/lib/aws-sdk-artifact.rb +++ b/gems/aws-sdk-artifact/lib/aws-sdk-artifact.rb @@ -55,7 +55,7 @@ module Plugins autoload :EndpointProvider, 'aws-sdk-artifact/endpoint_provider' autoload :Endpoints, 'aws-sdk-artifact/endpoints' - GEM_VERSION = '1.15.0' + GEM_VERSION = '1.16.0' end diff --git a/gems/aws-sdk-artifact/lib/aws-sdk-artifact/client.rb b/gems/aws-sdk-artifact/lib/aws-sdk-artifact/client.rb index 2fd3de04c3c..896c258db0c 100644 --- a/gems/aws-sdk-artifact/lib/aws-sdk-artifact/client.rb +++ b/gems/aws-sdk-artifact/lib/aws-sdk-artifact/client.rb @@ -892,7 +892,7 @@ def build_request(operation_name, params = {}) tracer: tracer ) context[:gem_name] = 'aws-sdk-artifact' - context[:gem_version] = '1.15.0' + context[:gem_version] = '1.16.0' Seahorse::Client::Request.new(handlers, context) end diff --git a/gems/aws-sdk-artifact/lib/aws-sdk-artifact/endpoint_parameters.rb b/gems/aws-sdk-artifact/lib/aws-sdk-artifact/endpoint_parameters.rb index cef686708d3..003be9116bb 100644 --- a/gems/aws-sdk-artifact/lib/aws-sdk-artifact/endpoint_parameters.rb +++ b/gems/aws-sdk-artifact/lib/aws-sdk-artifact/endpoint_parameters.rb @@ -10,11 +10,6 @@ module Aws::Artifact # Endpoint parameters used to influence endpoints per request. # - # @!attribute region - # The AWS region used to dispatch the request. - # - # @return [String] - # # @!attribute use_dual_stack # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error. # @@ -30,39 +25,44 @@ module Aws::Artifact # # @return [String] # + # @!attribute region + # The AWS region used to dispatch the request. + # + # @return [String] + # EndpointParameters = Struct.new( - :region, :use_dual_stack, :use_fips, :endpoint, + :region, ) do include Aws::Structure # @api private class << self PARAM_MAP = { - 'Region' => :region, 'UseDualStack' => :use_dual_stack, 'UseFIPS' => :use_fips, 'Endpoint' => :endpoint, + 'Region' => :region, }.freeze end def initialize(options = {}) - self[:region] = options[:region] self[:use_dual_stack] = options[:use_dual_stack] self[:use_dual_stack] = false if self[:use_dual_stack].nil? self[:use_fips] = options[:use_fips] self[:use_fips] = false if self[:use_fips].nil? self[:endpoint] = options[:endpoint] + self[:region] = options[:region] end def self.create(config, options={}) new({ - region: config.region, use_dual_stack: config.use_dualstack_endpoint, use_fips: config.use_fips_endpoint, endpoint: (config.endpoint.to_s unless config.regional_endpoint), + region: config.region, }.merge(options)) end end diff --git a/gems/aws-sdk-artifact/lib/aws-sdk-artifact/endpoint_provider.rb b/gems/aws-sdk-artifact/lib/aws-sdk-artifact/endpoint_provider.rb index 6e2c5070748..42dfda3023f 100644 --- a/gems/aws-sdk-artifact/lib/aws-sdk-artifact/endpoint_provider.rb +++ b/gems/aws-sdk-artifact/lib/aws-sdk-artifact/endpoint_provider.rb @@ -10,10 +10,10 @@ module Aws::Artifact class EndpointProvider def resolve_endpoint(parameters) - region = parameters.region use_dual_stack = parameters.use_dual_stack use_fips = parameters.use_fips endpoint = parameters.endpoint + region = parameters.region if Aws::Endpoints::Matchers.set?(endpoint) if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported" @@ -27,23 +27,23 @@ def resolve_endpoint(parameters) if (partition_result = Aws::Endpoints::Matchers.aws_partition(region)) if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true) if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack")) - return Aws::Endpoints::Endpoint.new(url: "https://artifact-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}) + return Aws::Endpoints::Endpoint.new(url: "https://artifact-fips.#{partition_result['implicitGlobalRegion']}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"#{partition_result['implicitGlobalRegion']}"}]}) end raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both" end - if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) + if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, false) if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true) - return Aws::Endpoints::Endpoint.new(url: "https://artifact-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}) + return Aws::Endpoints::Endpoint.new(url: "https://artifact-fips.#{partition_result['implicitGlobalRegion']}.#{partition_result['dnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"#{partition_result['implicitGlobalRegion']}"}]}) end raise ArgumentError, "FIPS is enabled but this partition does not support FIPS" end - if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true) + if Aws::Endpoints::Matchers.boolean_equals?(use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true) if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack")) - return Aws::Endpoints::Endpoint.new(url: "https://artifact.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}) + return Aws::Endpoints::Endpoint.new(url: "https://artifact.#{partition_result['implicitGlobalRegion']}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"#{partition_result['implicitGlobalRegion']}"}]}) end raise ArgumentError, "DualStack is enabled but this partition does not support DualStack" end - return Aws::Endpoints::Endpoint.new(url: "https://artifact.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}) + return Aws::Endpoints::Endpoint.new(url: "https://artifact.#{partition_result['implicitGlobalRegion']}.#{partition_result['dnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"#{partition_result['implicitGlobalRegion']}"}]}) end end raise ArgumentError, "Invalid Configuration: Missing Region" diff --git a/gems/aws-sdk-artifact/spec/endpoint_provider_spec.rb b/gems/aws-sdk-artifact/spec/endpoint_provider_spec.rb index c597c5b7466..b67f2fb4148 100644 --- a/gems/aws-sdk-artifact/spec/endpoint_provider_spec.rb +++ b/gems/aws-sdk-artifact/spec/endpoint_provider_spec.rb @@ -14,9 +14,49 @@ module Aws::Artifact describe EndpointProvider do subject { Aws::Artifact::EndpointProvider.new } + context "For custom endpoint with region not set and fips disabled" do + let(:expected) do + {"endpoint"=>{"url"=>"https://example.com"}} + end + + it 'produces the expected output from the EndpointProvider' do + params = EndpointParameters.new(**{:endpoint=>"https://example.com", :use_fips=>false}) + endpoint = subject.resolve_endpoint(params) + expect(endpoint.url).to eq(expected['endpoint']['url']) + expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) + expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) + end + end + + context "For custom endpoint with fips enabled" do + let(:expected) do + {"error"=>"Invalid Configuration: FIPS and custom endpoint are not supported"} + end + + it 'produces the expected output from the EndpointProvider' do + params = EndpointParameters.new(**{:endpoint=>"https://example.com", :use_fips=>true}) + expect do + subject.resolve_endpoint(params) + end.to raise_error(ArgumentError, expected['error']) + end + end + + context "For custom endpoint with fips disabled and dualstack enabled" do + let(:expected) do + {"error"=>"Invalid Configuration: Dualstack and custom endpoint are not supported"} + end + + it 'produces the expected output from the EndpointProvider' do + params = EndpointParameters.new(**{:endpoint=>"https://example.com", :use_fips=>false, :use_dual_stack=>true}) + expect do + subject.resolve_endpoint(params) + end.to raise_error(ArgumentError, expected['error']) + end + end + context "For region us-east-1 with FIPS enabled and DualStack enabled" do let(:expected) do - {"endpoint"=>{"url"=>"https://artifact-fips.us-east-1.api.aws"}} + {"endpoint"=>{"properties"=>{"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"us-east-1"}]}, "url"=>"https://artifact-fips.us-east-1.api.aws"}} end it 'produces the expected output from the EndpointProvider' do @@ -30,7 +70,7 @@ module Aws::Artifact context "For region us-east-1 with FIPS enabled and DualStack disabled" do let(:expected) do - {"endpoint"=>{"url"=>"https://artifact-fips.us-east-1.amazonaws.com"}} + {"endpoint"=>{"properties"=>{"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"us-east-1"}]}, "url"=>"https://artifact-fips.us-east-1.amazonaws.com"}} end it 'produces the expected output from the EndpointProvider' do @@ -44,7 +84,7 @@ module Aws::Artifact context "For region us-east-1 with FIPS disabled and DualStack enabled" do let(:expected) do - {"endpoint"=>{"url"=>"https://artifact.us-east-1.api.aws"}} + {"endpoint"=>{"properties"=>{"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"us-east-1"}]}, "url"=>"https://artifact.us-east-1.api.aws"}} end it 'produces the expected output from the EndpointProvider' do @@ -58,7 +98,7 @@ module Aws::Artifact context "For region us-east-1 with FIPS disabled and DualStack disabled" do let(:expected) do - {"endpoint"=>{"url"=>"https://artifact.us-east-1.amazonaws.com"}} + {"endpoint"=>{"properties"=>{"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"us-east-1"}]}, "url"=>"https://artifact.us-east-1.amazonaws.com"}} end it 'produces the expected output from the EndpointProvider' do @@ -70,13 +110,13 @@ module Aws::Artifact end end - context "For region cn-north-1 with FIPS enabled and DualStack enabled" do + context "For region cn-northwest-1 with FIPS enabled and DualStack enabled" do let(:expected) do - {"endpoint"=>{"url"=>"https://artifact-fips.cn-north-1.api.amazonwebservices.com.cn"}} + {"endpoint"=>{"properties"=>{"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"cn-northwest-1"}]}, "url"=>"https://artifact-fips.cn-northwest-1.api.amazonwebservices.com.cn"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"cn-north-1", :use_fips=>true, :use_dual_stack=>true}) + params = EndpointParameters.new(**{:region=>"cn-northwest-1", :use_fips=>true, :use_dual_stack=>true}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) @@ -84,13 +124,13 @@ module Aws::Artifact end end - context "For region cn-north-1 with FIPS enabled and DualStack disabled" do + context "For region cn-northwest-1 with FIPS enabled and DualStack disabled" do let(:expected) do - {"endpoint"=>{"url"=>"https://artifact-fips.cn-north-1.amazonaws.com.cn"}} + {"endpoint"=>{"properties"=>{"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"cn-northwest-1"}]}, "url"=>"https://artifact-fips.cn-northwest-1.amazonaws.com.cn"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"cn-north-1", :use_fips=>true, :use_dual_stack=>false}) + params = EndpointParameters.new(**{:region=>"cn-northwest-1", :use_fips=>true, :use_dual_stack=>false}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) @@ -98,13 +138,13 @@ module Aws::Artifact end end - context "For region cn-north-1 with FIPS disabled and DualStack enabled" do + context "For region cn-northwest-1 with FIPS disabled and DualStack enabled" do let(:expected) do - {"endpoint"=>{"url"=>"https://artifact.cn-north-1.api.amazonwebservices.com.cn"}} + {"endpoint"=>{"properties"=>{"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"cn-northwest-1"}]}, "url"=>"https://artifact.cn-northwest-1.api.amazonwebservices.com.cn"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"cn-north-1", :use_fips=>false, :use_dual_stack=>true}) + params = EndpointParameters.new(**{:region=>"cn-northwest-1", :use_fips=>false, :use_dual_stack=>true}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) @@ -112,13 +152,13 @@ module Aws::Artifact end end - context "For region cn-north-1 with FIPS disabled and DualStack disabled" do + context "For region cn-northwest-1 with FIPS disabled and DualStack disabled" do let(:expected) do - {"endpoint"=>{"url"=>"https://artifact.cn-north-1.amazonaws.com.cn"}} + {"endpoint"=>{"properties"=>{"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"cn-northwest-1"}]}, "url"=>"https://artifact.cn-northwest-1.amazonaws.com.cn"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"cn-north-1", :use_fips=>false, :use_dual_stack=>false}) + params = EndpointParameters.new(**{:region=>"cn-northwest-1", :use_fips=>false, :use_dual_stack=>false}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) @@ -126,13 +166,13 @@ module Aws::Artifact end end - context "For region us-gov-east-1 with FIPS enabled and DualStack enabled" do + context "For region us-gov-west-1 with FIPS enabled and DualStack enabled" do let(:expected) do - {"endpoint"=>{"url"=>"https://artifact-fips.us-gov-east-1.api.aws"}} + {"endpoint"=>{"properties"=>{"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"us-gov-west-1"}]}, "url"=>"https://artifact-fips.us-gov-west-1.api.aws"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-gov-east-1", :use_fips=>true, :use_dual_stack=>true}) + params = EndpointParameters.new(**{:region=>"us-gov-west-1", :use_fips=>true, :use_dual_stack=>true}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) @@ -140,13 +180,13 @@ module Aws::Artifact end end - context "For region us-gov-east-1 with FIPS enabled and DualStack disabled" do + context "For region us-gov-west-1 with FIPS enabled and DualStack disabled" do let(:expected) do - {"endpoint"=>{"url"=>"https://artifact-fips.us-gov-east-1.amazonaws.com"}} + {"endpoint"=>{"properties"=>{"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"us-gov-west-1"}]}, "url"=>"https://artifact-fips.us-gov-west-1.amazonaws.com"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-gov-east-1", :use_fips=>true, :use_dual_stack=>false}) + params = EndpointParameters.new(**{:region=>"us-gov-west-1", :use_fips=>true, :use_dual_stack=>false}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) @@ -154,13 +194,13 @@ module Aws::Artifact end end - context "For region us-gov-east-1 with FIPS disabled and DualStack enabled" do + context "For region us-gov-west-1 with FIPS disabled and DualStack enabled" do let(:expected) do - {"endpoint"=>{"url"=>"https://artifact.us-gov-east-1.api.aws"}} + {"endpoint"=>{"properties"=>{"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"us-gov-west-1"}]}, "url"=>"https://artifact.us-gov-west-1.api.aws"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-gov-east-1", :use_fips=>false, :use_dual_stack=>true}) + params = EndpointParameters.new(**{:region=>"us-gov-west-1", :use_fips=>false, :use_dual_stack=>true}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) @@ -168,13 +208,13 @@ module Aws::Artifact end end - context "For region us-gov-east-1 with FIPS disabled and DualStack disabled" do + context "For region us-gov-west-1 with FIPS disabled and DualStack disabled" do let(:expected) do - {"endpoint"=>{"url"=>"https://artifact.us-gov-east-1.amazonaws.com"}} + {"endpoint"=>{"properties"=>{"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"us-gov-west-1"}]}, "url"=>"https://artifact.us-gov-west-1.amazonaws.com"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-gov-east-1", :use_fips=>false, :use_dual_stack=>false}) + params = EndpointParameters.new(**{:region=>"us-gov-west-1", :use_fips=>false, :use_dual_stack=>false}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) @@ -197,7 +237,7 @@ module Aws::Artifact context "For region us-iso-east-1 with FIPS enabled and DualStack disabled" do let(:expected) do - {"endpoint"=>{"url"=>"https://artifact-fips.us-iso-east-1.c2s.ic.gov"}} + {"endpoint"=>{"properties"=>{"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"us-iso-east-1"}]}, "url"=>"https://artifact-fips.us-iso-east-1.c2s.ic.gov"}} end it 'produces the expected output from the EndpointProvider' do @@ -224,7 +264,7 @@ module Aws::Artifact context "For region us-iso-east-1 with FIPS disabled and DualStack disabled" do let(:expected) do - {"endpoint"=>{"url"=>"https://artifact.us-iso-east-1.c2s.ic.gov"}} + {"endpoint"=>{"properties"=>{"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"us-iso-east-1"}]}, "url"=>"https://artifact.us-iso-east-1.c2s.ic.gov"}} end it 'produces the expected output from the EndpointProvider' do @@ -251,7 +291,7 @@ module Aws::Artifact context "For region us-isob-east-1 with FIPS enabled and DualStack disabled" do let(:expected) do - {"endpoint"=>{"url"=>"https://artifact-fips.us-isob-east-1.sc2s.sgov.gov"}} + {"endpoint"=>{"properties"=>{"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"us-isob-east-1"}]}, "url"=>"https://artifact-fips.us-isob-east-1.sc2s.sgov.gov"}} end it 'produces the expected output from the EndpointProvider' do @@ -278,7 +318,7 @@ module Aws::Artifact context "For region us-isob-east-1 with FIPS disabled and DualStack disabled" do let(:expected) do - {"endpoint"=>{"url"=>"https://artifact.us-isob-east-1.sc2s.sgov.gov"}} + {"endpoint"=>{"properties"=>{"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"us-isob-east-1"}]}, "url"=>"https://artifact.us-isob-east-1.sc2s.sgov.gov"}} end it 'produces the expected output from the EndpointProvider' do @@ -290,13 +330,26 @@ module Aws::Artifact end end - context "For custom endpoint with region set and fips disabled and dualstack disabled" do + context "For region eu-isoe-west-1 with FIPS enabled and DualStack enabled" do let(:expected) do - {"endpoint"=>{"url"=>"https://example.com"}} + {"error"=>"FIPS and DualStack are enabled, but this partition does not support one or both"} + end + + it 'produces the expected output from the EndpointProvider' do + params = EndpointParameters.new(**{:region=>"eu-isoe-west-1", :use_fips=>true, :use_dual_stack=>true}) + expect do + subject.resolve_endpoint(params) + end.to raise_error(ArgumentError, expected['error']) + end + end + + context "For region eu-isoe-west-1 with FIPS enabled and DualStack disabled" do + let(:expected) do + {"endpoint"=>{"properties"=>{"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"eu-isoe-west-1"}]}, "url"=>"https://artifact-fips.eu-isoe-west-1.cloud.adc-e.uk"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>false, :use_dual_stack=>false, :endpoint=>"https://example.com"}) + params = EndpointParameters.new(**{:region=>"eu-isoe-west-1", :use_fips=>true, :use_dual_stack=>false}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) @@ -304,13 +357,26 @@ module Aws::Artifact end end - context "For custom endpoint with region not set and fips disabled and dualstack disabled" do + context "For region eu-isoe-west-1 with FIPS disabled and DualStack enabled" do let(:expected) do - {"endpoint"=>{"url"=>"https://example.com"}} + {"error"=>"DualStack is enabled but this partition does not support DualStack"} + end + + it 'produces the expected output from the EndpointProvider' do + params = EndpointParameters.new(**{:region=>"eu-isoe-west-1", :use_fips=>false, :use_dual_stack=>true}) + expect do + subject.resolve_endpoint(params) + end.to raise_error(ArgumentError, expected['error']) + end + end + + context "For region eu-isoe-west-1 with FIPS disabled and DualStack disabled" do + let(:expected) do + {"endpoint"=>{"properties"=>{"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"eu-isoe-west-1"}]}, "url"=>"https://artifact.eu-isoe-west-1.cloud.adc-e.uk"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:use_fips=>false, :use_dual_stack=>false, :endpoint=>"https://example.com"}) + params = EndpointParameters.new(**{:region=>"eu-isoe-west-1", :use_fips=>false, :use_dual_stack=>false}) endpoint = subject.resolve_endpoint(params) expect(endpoint.url).to eq(expected['endpoint']['url']) expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) @@ -318,32 +384,60 @@ module Aws::Artifact end end - context "For custom endpoint with fips enabled and dualstack disabled" do + context "For region us-isof-south-1 with FIPS enabled and DualStack enabled" do let(:expected) do - {"error"=>"Invalid Configuration: FIPS and custom endpoint are not supported"} + {"error"=>"FIPS and DualStack are enabled, but this partition does not support one or both"} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>true, :use_dual_stack=>false, :endpoint=>"https://example.com"}) + params = EndpointParameters.new(**{:region=>"us-isof-south-1", :use_fips=>true, :use_dual_stack=>true}) expect do subject.resolve_endpoint(params) end.to raise_error(ArgumentError, expected['error']) end end - context "For custom endpoint with fips disabled and dualstack enabled" do + context "For region us-isof-south-1 with FIPS enabled and DualStack disabled" do let(:expected) do - {"error"=>"Invalid Configuration: Dualstack and custom endpoint are not supported"} + {"endpoint"=>{"properties"=>{"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"us-isof-south-1"}]}, "url"=>"https://artifact-fips.us-isof-south-1.csp.hci.ic.gov"}} end it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>false, :use_dual_stack=>true, :endpoint=>"https://example.com"}) + params = EndpointParameters.new(**{:region=>"us-isof-south-1", :use_fips=>true, :use_dual_stack=>false}) + endpoint = subject.resolve_endpoint(params) + expect(endpoint.url).to eq(expected['endpoint']['url']) + expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) + expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) + end + end + + context "For region us-isof-south-1 with FIPS disabled and DualStack enabled" do + let(:expected) do + {"error"=>"DualStack is enabled but this partition does not support DualStack"} + end + + it 'produces the expected output from the EndpointProvider' do + params = EndpointParameters.new(**{:region=>"us-isof-south-1", :use_fips=>false, :use_dual_stack=>true}) expect do subject.resolve_endpoint(params) end.to raise_error(ArgumentError, expected['error']) end end + context "For region us-isof-south-1 with FIPS disabled and DualStack disabled" do + let(:expected) do + {"endpoint"=>{"properties"=>{"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"us-isof-south-1"}]}, "url"=>"https://artifact.us-isof-south-1.csp.hci.ic.gov"}} + end + + it 'produces the expected output from the EndpointProvider' do + params = EndpointParameters.new(**{:region=>"us-isof-south-1", :use_fips=>false, :use_dual_stack=>false}) + endpoint = subject.resolve_endpoint(params) + expect(endpoint.url).to eq(expected['endpoint']['url']) + expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) + expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) + end + end + context "Missing region" do let(:expected) do {"error"=>"Invalid Configuration: Missing Region"} diff --git a/gems/aws-sdk-bedrock/CHANGELOG.md b/gems/aws-sdk-bedrock/CHANGELOG.md index 0a54ba04ff8..6bfe732cd14 100644 --- a/gems/aws-sdk-bedrock/CHANGELOG.md +++ b/gems/aws-sdk-bedrock/CHANGELOG.md @@ -1,6 +1,11 @@ Unreleased Changes ------------------ +1.33.0 (2025-01-13) +------------------ + +* Feature - With this release, Bedrock Evaluation will now support latency-optimized inference for foundation models. + 1.32.0 (2024-12-04) ------------------ diff --git a/gems/aws-sdk-bedrock/VERSION b/gems/aws-sdk-bedrock/VERSION index 359c41089a4..7aa332e4163 100644 --- a/gems/aws-sdk-bedrock/VERSION +++ b/gems/aws-sdk-bedrock/VERSION @@ -1 +1 @@ -1.32.0 +1.33.0 diff --git a/gems/aws-sdk-bedrock/lib/aws-sdk-bedrock.rb b/gems/aws-sdk-bedrock/lib/aws-sdk-bedrock.rb index 25a9a8e3045..2c1580ee20d 100644 --- a/gems/aws-sdk-bedrock/lib/aws-sdk-bedrock.rb +++ b/gems/aws-sdk-bedrock/lib/aws-sdk-bedrock.rb @@ -55,7 +55,7 @@ module Plugins autoload :EndpointProvider, 'aws-sdk-bedrock/endpoint_provider' autoload :Endpoints, 'aws-sdk-bedrock/endpoints' - GEM_VERSION = '1.32.0' + GEM_VERSION = '1.33.0' end diff --git a/gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/client.rb b/gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/client.rb index 8da8a206458..7c642bd01a1 100644 --- a/gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/client.rb +++ b/gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/client.rb @@ -622,6 +622,9 @@ def batch_delete_evaluation_job(params = {}, options = {}) # bedrock_model: { # model_identifier: "EvaluationModelIdentifier", # required # inference_params: "EvaluationModelInferenceParams", + # performance_config: { + # latency: "standard", # accepts standard, optimized + # }, # }, # }, # ], @@ -2221,6 +2224,7 @@ def get_custom_model(params = {}, options = {}) # resp.inference_config.models #=> Array # resp.inference_config.models[0].bedrock_model.model_identifier #=> String # resp.inference_config.models[0].bedrock_model.inference_params #=> String + # resp.inference_config.models[0].bedrock_model.performance_config.latency #=> String, one of "standard", "optimized" # resp.inference_config.rag_configs #=> Array # resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_config.knowledge_base_id #=> String # resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_config.knowledge_base_retrieval_configuration.vector_search_configuration.number_of_results #=> Integer @@ -4633,7 +4637,7 @@ def build_request(operation_name, params = {}) tracer: tracer ) context[:gem_name] = 'aws-sdk-bedrock' - context[:gem_version] = '1.32.0' + context[:gem_version] = '1.33.0' Seahorse::Client::Request.new(handlers, context) end diff --git a/gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/client_api.rb b/gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/client_api.rb index 68780ab587b..309202a361c 100644 --- a/gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/client_api.rb +++ b/gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/client_api.rb @@ -370,6 +370,8 @@ module ClientApi OrchestrationConfiguration = Shapes::StructureShape.new(name: 'OrchestrationConfiguration') OutputDataConfig = Shapes::StructureShape.new(name: 'OutputDataConfig') PaginationToken = Shapes::StringShape.new(name: 'PaginationToken') + PerformanceConfigLatency = Shapes::StringShape.new(name: 'PerformanceConfigLatency') + PerformanceConfiguration = Shapes::StructureShape.new(name: 'PerformanceConfiguration') PositiveInteger = Shapes::IntegerShape.new(name: 'PositiveInteger') PromptRouterArn = Shapes::StringShape.new(name: 'PromptRouterArn') PromptRouterDescription = Shapes::StringShape.new(name: 'PromptRouterDescription') @@ -731,6 +733,7 @@ module ClientApi EvaluationBedrockModel.add_member(:model_identifier, Shapes::ShapeRef.new(shape: EvaluationModelIdentifier, required: true, location_name: "modelIdentifier")) EvaluationBedrockModel.add_member(:inference_params, Shapes::ShapeRef.new(shape: EvaluationModelInferenceParams, location_name: "inferenceParams")) + EvaluationBedrockModel.add_member(:performance_config, Shapes::ShapeRef.new(shape: PerformanceConfiguration, location_name: "performanceConfig")) EvaluationBedrockModel.struct_class = Types::EvaluationBedrockModel EvaluationConfig.add_member(:automated, Shapes::ShapeRef.new(shape: AutomatedEvaluationConfig, location_name: "automated")) @@ -1626,6 +1629,9 @@ module ClientApi OutputDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "s3Uri")) OutputDataConfig.struct_class = Types::OutputDataConfig + PerformanceConfiguration.add_member(:latency, Shapes::ShapeRef.new(shape: PerformanceConfigLatency, location_name: "latency")) + PerformanceConfiguration.struct_class = Types::PerformanceConfiguration + PromptRouterSummaries.member = Shapes::ShapeRef.new(shape: PromptRouterSummary) PromptRouterSummary.add_member(:prompt_router_name, Shapes::ShapeRef.new(shape: PromptRouterName, required: true, location_name: "promptRouterName")) diff --git a/gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb b/gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb index 98382dd2559..5b5f5c84f46 100644 --- a/gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb +++ b/gems/aws-sdk-bedrock/lib/aws-sdk-bedrock/types.rb @@ -1303,11 +1303,16 @@ class Unknown < EndpointConfig; end # change how the model behaves during inference. # @return [String] # + # @!attribute [rw] performance_config + # Specifies performance settings for the model or inference profile. + # @return [Types::PerformanceConfiguration] + # # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/EvaluationBedrockModel AWS API Documentation # class EvaluationBedrockModel < Struct.new( :model_identifier, - :inference_params) + :inference_params, + :performance_config) SENSITIVE = [:inference_params] include Aws::Structure end @@ -5978,6 +5983,21 @@ class OutputDataConfig < Struct.new( include Aws::Structure end + # Contains performance settings for a model. + # + # @!attribute [rw] latency + # Specifies whether to use the latency-optimized or standard version + # of a model or inference profile. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/PerformanceConfiguration AWS API Documentation + # + class PerformanceConfiguration < Struct.new( + :latency) + SENSITIVE = [] + include Aws::Structure + end + # Details about a prompt router. # # @!attribute [rw] prompt_router_name diff --git a/gems/aws-sdk-bedrock/sig/client.rbs b/gems/aws-sdk-bedrock/sig/client.rbs index 73ec2d45ac4..eb9724f271b 100644 --- a/gems/aws-sdk-bedrock/sig/client.rbs +++ b/gems/aws-sdk-bedrock/sig/client.rbs @@ -157,7 +157,10 @@ module Aws { bedrock_model: { model_identifier: ::String, - inference_params: ::String? + inference_params: ::String?, + performance_config: { + latency: ("standard" | "optimized")? + }? }? }, ]?, diff --git a/gems/aws-sdk-bedrock/sig/types.rbs b/gems/aws-sdk-bedrock/sig/types.rbs index 42d45097192..8c13775c4c0 100644 --- a/gems/aws-sdk-bedrock/sig/types.rbs +++ b/gems/aws-sdk-bedrock/sig/types.rbs @@ -346,6 +346,7 @@ module Aws::Bedrock class EvaluationBedrockModel attr_accessor model_identifier: ::String attr_accessor inference_params: ::String + attr_accessor performance_config: Types::PerformanceConfiguration SENSITIVE: [:inference_params] end @@ -1448,6 +1449,11 @@ module Aws::Bedrock SENSITIVE: [] end + class PerformanceConfiguration + attr_accessor latency: ("standard" | "optimized") + SENSITIVE: [] + end + class PromptRouterSummary attr_accessor prompt_router_name: ::String attr_accessor routing_criteria: Types::RoutingCriteria diff --git a/gems/aws-sdk-ec2/CHANGELOG.md b/gems/aws-sdk-ec2/CHANGELOG.md index 5f68c26a297..8ec1b16c6d5 100644 --- a/gems/aws-sdk-ec2/CHANGELOG.md +++ b/gems/aws-sdk-ec2/CHANGELOG.md @@ -1,6 +1,11 @@ Unreleased Changes ------------------ +1.499.0 (2025-01-13) +------------------ + +* Feature - Add support for DisconnectOnSessionTimeout flag in CreateClientVpnEndpoint and ModifyClientVpnEndpoint requests and DescribeClientVpnEndpoints responses + 1.498.0 (2024-12-16) ------------------ diff --git a/gems/aws-sdk-ec2/VERSION b/gems/aws-sdk-ec2/VERSION index a54f0c9fdff..1c31ddf8a09 100644 --- a/gems/aws-sdk-ec2/VERSION +++ b/gems/aws-sdk-ec2/VERSION @@ -1 +1 @@ -1.498.0 +1.499.0 diff --git a/gems/aws-sdk-ec2/lib/aws-sdk-ec2.rb b/gems/aws-sdk-ec2/lib/aws-sdk-ec2.rb index b036abe8cc9..7633264533d 100644 --- a/gems/aws-sdk-ec2/lib/aws-sdk-ec2.rb +++ b/gems/aws-sdk-ec2/lib/aws-sdk-ec2.rb @@ -78,7 +78,7 @@ module Plugins autoload :VpcPeeringConnection, 'aws-sdk-ec2/vpc_peering_connection' autoload :VpcAddress, 'aws-sdk-ec2/vpc_address' - GEM_VERSION = '1.498.0' + GEM_VERSION = '1.499.0' end diff --git a/gems/aws-sdk-ec2/lib/aws-sdk-ec2/client.rb b/gems/aws-sdk-ec2/lib/aws-sdk-ec2/client.rb index d1b661d832b..136bce9744b 100644 --- a/gems/aws-sdk-ec2/lib/aws-sdk-ec2/client.rb +++ b/gems/aws-sdk-ec2/lib/aws-sdk-ec2/client.rb @@ -4084,6 +4084,11 @@ def cancel_bundle_task(params = {}, options = {}) # duration has elapsed. You can't cancel a future-dated Capacity # Reservation during the commitment duration. # + # You can't modify or cancel a Capacity Block. For more information, + # see [Capacity Blocks for ML][1]. + # + # + # # If a future-dated Capacity Reservation enters the `delayed` state, the # commitment duration is waived, and you can cancel it as soon as it # enters the `active` state. @@ -4095,6 +4100,10 @@ def cancel_bundle_task(params = {}, options = {}) # any open Capacity Reservation that has matching attributes and # sufficient capacity. # + # + # + # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-capacity-blocks.html + # # @option params [required, String] :capacity_reservation_id # The ID of the Capacity Reservation to be cancelled. # @@ -4937,7 +4946,7 @@ def copy_image(params = {}, options = {}) # Snapshots copied to an Outpost are encrypted by default using the # default encryption key for the Region, or a different key that you # specify in the request using **KmsKeyId**. Outposts do not support - # unencrypted snapshots. For more information, [ Amazon EBS local + # unencrypted snapshots. For more information, see [Amazon EBS local # snapshots on Outposts][1] in the *Amazon EBS User Guide*. # # Snapshots created by copying another snapshot have an arbitrary volume @@ -5971,6 +5980,12 @@ def create_carrier_gateway(params = {}, options = {}) # on Amazon Web Services provided clients when a VPN session is # established. # + # @option params [Boolean] :disconnect_on_session_timeout + # Indicates whether the client VPN session is disconnected after the + # maximum timeout specified in `SessionTimeoutHours` is reached. If + # `true`, users are prompted to reconnect client VPN. If `false`, client + # VPN attempts to reconnect automatically. The default value is `false`. + # # @return [Types::CreateClientVpnEndpointResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::CreateClientVpnEndpointResult#client_vpn_endpoint_id #client_vpn_endpoint_id} => String @@ -6032,6 +6047,7 @@ def create_carrier_gateway(params = {}, options = {}) # enabled: false, # banner_text: "String", # }, + # disconnect_on_session_timeout: false, # }) # # @example Response structure @@ -12176,7 +12192,7 @@ def create_security_group(params = {}, options = {}) # the same Region as the volume. # # * If the source volume is in a Local Zone, you can create the snapshot - # in the same Local Zone or in parent Amazon Web Services Region. + # in the same Local Zone or in its parent Amazon Web Services Region. # # * If the source volume is on an Outpost, you can create the snapshot # on the same Outpost or in its parent Amazon Web Services Region. @@ -12204,8 +12220,8 @@ def create_security_group(params = {}, options = {}) # Snapshots that are taken from encrypted volumes are automatically # encrypted. Volumes that are created from encrypted snapshots are also # automatically encrypted. Your encrypted volumes and any associated - # snapshots always remain protected. For more information, [Amazon EBS - # encryption][1] in the *Amazon EBS User Guide*. + # snapshots always remain protected. For more information, see [Amazon + # EBS encryption][1] in the *Amazon EBS User Guide*. # # # @@ -12381,8 +12397,8 @@ def create_snapshot(params = {}, options = {}) # in the same Region as the instance. # # * If the source instance is in a Local Zone, you can create the - # snapshots in the same Local Zone or in parent Amazon Web Services - # Region. + # snapshots in the same Local Zone or in its parent Amazon Web + # Services Region. # # * If the source instance is on an Outpost, you can create the # snapshots on the same Outpost or in its parent Amazon Web Services @@ -18481,7 +18497,7 @@ def delete_security_group(params = {}, options = {}) # the volume. # # You cannot delete a snapshot of the root device of an EBS volume used - # by a registered AMI. You must first de-register the AMI before you can + # by a registered AMI. You must first deregister the AMI before you can # delete the snapshot. # # For more information, see [Delete an Amazon EBS snapshot][1] in the @@ -21536,6 +21552,15 @@ def describe_capacity_block_extension_offerings(params = {}, options = {}) # Amazon Web Services Region that you're currently using. With Capacity # Blocks, you purchase a specific instance type for a period of time. # + # To search for an available Capacity Block offering, you specify a + # reservation duration and instance count. You must select one of the + # following options. + # + # * For reservation durations 1-day increments up 14 days and 7-day + # increments up to 182 days total + # + # * For instance count 1, 2, 4, 8, 16, 32, or 64 instances + # # @option params [Boolean] :dry_run # Checks whether you have the required permissions for the action, # without actually making the request, and provides an error response. @@ -22420,6 +22445,7 @@ def describe_client_vpn_connections(params = {}, options = {}) # resp.client_vpn_endpoints[0].session_timeout_hours #=> Integer # resp.client_vpn_endpoints[0].client_login_banner_options.enabled #=> Boolean # resp.client_vpn_endpoints[0].client_login_banner_options.banner_text #=> String + # resp.client_vpn_endpoints[0].disconnect_on_session_timeout #=> Boolean # resp.next_token #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeClientVpnEndpoints AWS API Documentation @@ -26406,7 +26432,8 @@ def describe_instance_status(params = {}, options = {}) # * `p3dn.24xlarge` \| `p4d.24xlarge` \| `p4de.24xlarge` \| # `p5.48xlarge` \| `p5e.48xlarge` \| `p5en.48xlarge` # - # * `trn1.2xlarge` \| `trn1.32xlarge` \| `trn1n.32xlarge` + # * `trn1.2xlarge` \| `trn1.32xlarge` \| `trn1n.32xlarge` \| + # `trn2.48xlarge` \| `trn2u.48xlarge` # # For more information, see [Amazon EC2 instance topology][1] in the # *Amazon EC2 User Guide*. @@ -31750,6 +31777,13 @@ def describe_network_interface_permissions(params = {}, options = {}) # # * `network-interface-id` - The ID of the network interface. # + # * `operator.managed` - A Boolean that indicates whether this is a + # managed network interface. + # + # * `operator.principal` - The principal that manages the network + # interface. Only valid for managed network interfaces, where + # `managed` is `true`. + # # * `owner-id` - The Amazon Web Services account ID of the network # interface owner. # @@ -49015,6 +49049,12 @@ def modify_capacity_reservation_fleet(params = {}, options = {}) # on Amazon Web Services provided clients when a VPN session is # established. # + # @option params [Boolean] :disconnect_on_session_timeout + # Indicates whether the client VPN session is disconnected after the + # maximum timeout specified in `sessionTimeoutHours` is reached. If + # `true`, users are prompted to reconnect client VPN. If `false`, client + # VPN attempts to reconnect automatically. The default value is `false`. + # # @return [Types::ModifyClientVpnEndpointResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::ModifyClientVpnEndpointResult#return #return} => Boolean @@ -49049,6 +49089,7 @@ def modify_capacity_reservation_fleet(params = {}, options = {}) # enabled: false, # banner_text: "String", # }, + # disconnect_on_session_timeout: false, # }) # # @example Response structure @@ -63115,7 +63156,7 @@ def build_request(operation_name, params = {}) tracer: tracer ) context[:gem_name] = 'aws-sdk-ec2' - context[:gem_version] = '1.498.0' + context[:gem_version] = '1.499.0' Seahorse::Client::Request.new(handlers, context) end diff --git a/gems/aws-sdk-ec2/lib/aws-sdk-ec2/client_api.rb b/gems/aws-sdk-ec2/lib/aws-sdk-ec2/client_api.rb index a503af01abe..16f4d2be9c4 100644 --- a/gems/aws-sdk-ec2/lib/aws-sdk-ec2/client_api.rb +++ b/gems/aws-sdk-ec2/lib/aws-sdk-ec2/client_api.rb @@ -4652,6 +4652,7 @@ module ClientApi ClientVpnEndpoint.add_member(:client_connect_options, Shapes::ShapeRef.new(shape: ClientConnectResponseOptions, location_name: "clientConnectOptions")) ClientVpnEndpoint.add_member(:session_timeout_hours, Shapes::ShapeRef.new(shape: Integer, location_name: "sessionTimeoutHours")) ClientVpnEndpoint.add_member(:client_login_banner_options, Shapes::ShapeRef.new(shape: ClientLoginBannerResponseOptions, location_name: "clientLoginBannerOptions")) + ClientVpnEndpoint.add_member(:disconnect_on_session_timeout, Shapes::ShapeRef.new(shape: Boolean, location_name: "disconnectOnSessionTimeout")) ClientVpnEndpoint.struct_class = Types::ClientVpnEndpoint ClientVpnEndpointAttributeStatus.add_member(:code, Shapes::ShapeRef.new(shape: ClientVpnEndpointAttributeStatusCode, location_name: "code")) @@ -4930,6 +4931,7 @@ module ClientApi CreateClientVpnEndpointRequest.add_member(:client_connect_options, Shapes::ShapeRef.new(shape: ClientConnectOptions, location_name: "ClientConnectOptions")) CreateClientVpnEndpointRequest.add_member(:session_timeout_hours, Shapes::ShapeRef.new(shape: Integer, location_name: "SessionTimeoutHours")) CreateClientVpnEndpointRequest.add_member(:client_login_banner_options, Shapes::ShapeRef.new(shape: ClientLoginBannerOptions, location_name: "ClientLoginBannerOptions")) + CreateClientVpnEndpointRequest.add_member(:disconnect_on_session_timeout, Shapes::ShapeRef.new(shape: Boolean, location_name: "DisconnectOnSessionTimeout")) CreateClientVpnEndpointRequest.struct_class = Types::CreateClientVpnEndpointRequest CreateClientVpnEndpointResult.add_member(:client_vpn_endpoint_id, Shapes::ShapeRef.new(shape: String, location_name: "clientVpnEndpointId")) @@ -12161,6 +12163,7 @@ module ClientApi ModifyClientVpnEndpointRequest.add_member(:client_connect_options, Shapes::ShapeRef.new(shape: ClientConnectOptions, location_name: "ClientConnectOptions")) ModifyClientVpnEndpointRequest.add_member(:session_timeout_hours, Shapes::ShapeRef.new(shape: Integer, location_name: "SessionTimeoutHours")) ModifyClientVpnEndpointRequest.add_member(:client_login_banner_options, Shapes::ShapeRef.new(shape: ClientLoginBannerOptions, location_name: "ClientLoginBannerOptions")) + ModifyClientVpnEndpointRequest.add_member(:disconnect_on_session_timeout, Shapes::ShapeRef.new(shape: Boolean, location_name: "DisconnectOnSessionTimeout")) ModifyClientVpnEndpointRequest.struct_class = Types::ModifyClientVpnEndpointRequest ModifyClientVpnEndpointResult.add_member(:return, Shapes::ShapeRef.new(shape: Boolean, location_name: "return")) diff --git a/gems/aws-sdk-ec2/lib/aws-sdk-ec2/resource.rb b/gems/aws-sdk-ec2/lib/aws-sdk-ec2/resource.rb index e3c68a9ef71..fd53279e309 100644 --- a/gems/aws-sdk-ec2/lib/aws-sdk-ec2/resource.rb +++ b/gems/aws-sdk-ec2/lib/aws-sdk-ec2/resource.rb @@ -3380,6 +3380,13 @@ def network_interface(id) # # * `network-interface-id` - The ID of the network interface. # + # * `operator.managed` - A Boolean that indicates whether this is a + # managed network interface. + # + # * `operator.principal` - The principal that manages the network + # interface. Only valid for managed network interfaces, where + # `managed` is `true`. + # # * `owner-id` - The Amazon Web Services account ID of the network # interface owner. # diff --git a/gems/aws-sdk-ec2/lib/aws-sdk-ec2/subnet.rb b/gems/aws-sdk-ec2/lib/aws-sdk-ec2/subnet.rb index 8e858eef12c..a65e3126757 100644 --- a/gems/aws-sdk-ec2/lib/aws-sdk-ec2/subnet.rb +++ b/gems/aws-sdk-ec2/lib/aws-sdk-ec2/subnet.rb @@ -1818,6 +1818,13 @@ def nat_gateways(options = {}) # # * `network-interface-id` - The ID of the network interface. # + # * `operator.managed` - A Boolean that indicates whether this is a + # managed network interface. + # + # * `operator.principal` - The principal that manages the network + # interface. Only valid for managed network interfaces, where + # `managed` is `true`. + # # * `owner-id` - The Amazon Web Services account ID of the network # interface owner. # diff --git a/gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb b/gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb index 97019acc1cc..79214363ce2 100644 --- a/gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb +++ b/gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb @@ -6295,6 +6295,13 @@ class ClientVpnConnectionStatus < Struct.new( # is established. # @return [Types::ClientLoginBannerResponseOptions] # + # @!attribute [rw] disconnect_on_session_timeout + # Indicates whether the client VPN session is disconnected after the + # maximum `sessionTimeoutHours` is reached. If `true`, users are + # prompted to reconnect client VPN. If `false`, client VPN attempts to + # reconnect automatically. The default value is `false`. + # @return [Boolean] + # # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ClientVpnEndpoint AWS API Documentation # class ClientVpnEndpoint < Struct.new( @@ -6320,7 +6327,8 @@ class ClientVpnEndpoint < Struct.new( :self_service_portal_url, :client_connect_options, :session_timeout_hours, - :client_login_banner_options) + :client_login_banner_options, + :disconnect_on_session_timeout) SENSITIVE = [] include Aws::Structure end @@ -8115,6 +8123,14 @@ class CreateCarrierGatewayResult < Struct.new( # is established. # @return [Types::ClientLoginBannerOptions] # + # @!attribute [rw] disconnect_on_session_timeout + # Indicates whether the client VPN session is disconnected after the + # maximum timeout specified in `SessionTimeoutHours` is reached. If + # `true`, users are prompted to reconnect client VPN. If `false`, + # client VPN attempts to reconnect automatically. The default value is + # `false`. + # @return [Boolean] + # # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateClientVpnEndpointRequest AWS API Documentation # class CreateClientVpnEndpointRequest < Struct.new( @@ -8135,7 +8151,8 @@ class CreateClientVpnEndpointRequest < Struct.new( :self_service_portal, :client_connect_options, :session_timeout_hours, - :client_login_banner_options) + :client_login_banner_options, + :disconnect_on_session_timeout) SENSITIVE = [] include Aws::Structure end @@ -24967,6 +24984,13 @@ class DescribeNetworkInterfacePermissionsResult < Struct.new( # # * `network-interface-id` - The ID of the network interface. # + # * `operator.managed` - A Boolean that indicates whether this is a + # managed network interface. + # + # * `operator.principal` - The principal that manages the network + # interface. Only valid for managed network interfaces, where + # `managed` is `true`. + # # * `owner-id` - The Amazon Web Services account ID of the network # interface owner. # @@ -42360,7 +42384,8 @@ class InstanceBlockDeviceMapping < Struct.new( # @return [String] # # @!attribute [rw] no_device - # suppress the specified device included in the block device mapping. + # Suppresses the specified device included in the block device + # mapping. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceBlockDeviceMappingSpecification AWS API Documentation @@ -43411,15 +43436,9 @@ class InstanceNetworkInterfaceAttachment < Struct.new( # @return [Array] # # @!attribute [rw] secondary_private_ip_address_count - # The number of secondary private IPv4 addresses. You can't specify - # this option and specify more than one private IP address using the - # private IP addresses option. You cannot specify this option if - # you're launching more than one instance in a [RunInstances][1] - # request. - # - # - # - # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html + # The number of secondary private IPv4 addresses. You can’t specify + # this parameter and also specify a secondary private IP address using + # the `PrivateIpAddress` parameter. # @return [Integer] # # @!attribute [rw] subnet_id @@ -50658,6 +50677,14 @@ class ModifyCapacityReservationResult < Struct.new( # is established. # @return [Types::ClientLoginBannerOptions] # + # @!attribute [rw] disconnect_on_session_timeout + # Indicates whether the client VPN session is disconnected after the + # maximum timeout specified in `sessionTimeoutHours` is reached. If + # `true`, users are prompted to reconnect client VPN. If `false`, + # client VPN attempts to reconnect automatically. The default value is + # `false`. + # @return [Boolean] + # # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyClientVpnEndpointRequest AWS API Documentation # class ModifyClientVpnEndpointRequest < Struct.new( @@ -50674,7 +50701,8 @@ class ModifyClientVpnEndpointRequest < Struct.new( :self_service_portal, :client_connect_options, :session_timeout_hours, - :client_login_banner_options) + :client_login_banner_options, + :disconnect_on_session_timeout) SENSITIVE = [] include Aws::Structure end diff --git a/gems/aws-sdk-ec2/lib/aws-sdk-ec2/vpc.rb b/gems/aws-sdk-ec2/lib/aws-sdk-ec2/vpc.rb index 2c246f1a3f3..d87209c9a49 100644 --- a/gems/aws-sdk-ec2/lib/aws-sdk-ec2/vpc.rb +++ b/gems/aws-sdk-ec2/lib/aws-sdk-ec2/vpc.rb @@ -1766,6 +1766,13 @@ def network_acls(options = {}) # # * `network-interface-id` - The ID of the network interface. # + # * `operator.managed` - A Boolean that indicates whether this is a + # managed network interface. + # + # * `operator.principal` - The principal that manages the network + # interface. Only valid for managed network interfaces, where + # `managed` is `true`. + # # * `owner-id` - The Amazon Web Services account ID of the network # interface owner. # diff --git a/gems/aws-sdk-ec2/sig/client.rbs b/gems/aws-sdk-ec2/sig/client.rbs index b9b0e45aa72..acf8a20d7d5 100644 --- a/gems/aws-sdk-ec2/sig/client.rbs +++ b/gems/aws-sdk-ec2/sig/client.rbs @@ -1257,7 +1257,8 @@ module Aws ?client_login_banner_options: { enabled: bool?, banner_text: ::String? - } + }, + ?disconnect_on_session_timeout: bool ) -> _CreateClientVpnEndpointResponseSuccess | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateClientVpnEndpointResponseSuccess @@ -10306,7 +10307,8 @@ module Aws ?client_login_banner_options: { enabled: bool?, banner_text: ::String? - } + }, + ?disconnect_on_session_timeout: bool ) -> _ModifyClientVpnEndpointResponseSuccess | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ModifyClientVpnEndpointResponseSuccess diff --git a/gems/aws-sdk-ec2/sig/types.rbs b/gems/aws-sdk-ec2/sig/types.rbs index b49be2186b5..d5fa5ae541c 100644 --- a/gems/aws-sdk-ec2/sig/types.rbs +++ b/gems/aws-sdk-ec2/sig/types.rbs @@ -1506,6 +1506,7 @@ module Aws::EC2 attr_accessor client_connect_options: Types::ClientConnectResponseOptions attr_accessor session_timeout_hours: ::Integer attr_accessor client_login_banner_options: Types::ClientLoginBannerResponseOptions + attr_accessor disconnect_on_session_timeout: bool SENSITIVE: [] end @@ -1838,6 +1839,7 @@ module Aws::EC2 attr_accessor client_connect_options: Types::ClientConnectOptions attr_accessor session_timeout_hours: ::Integer attr_accessor client_login_banner_options: Types::ClientLoginBannerOptions + attr_accessor disconnect_on_session_timeout: bool SENSITIVE: [] end @@ -11005,6 +11007,7 @@ module Aws::EC2 attr_accessor client_connect_options: Types::ClientConnectOptions attr_accessor session_timeout_hours: ::Integer attr_accessor client_login_banner_options: Types::ClientLoginBannerOptions + attr_accessor disconnect_on_session_timeout: bool SENSITIVE: [] end diff --git a/gems/aws-sdk-kafkaconnect/CHANGELOG.md b/gems/aws-sdk-kafkaconnect/CHANGELOG.md index 5dacb802d9e..a5f3343f84c 100644 --- a/gems/aws-sdk-kafkaconnect/CHANGELOG.md +++ b/gems/aws-sdk-kafkaconnect/CHANGELOG.md @@ -1,6 +1,11 @@ Unreleased Changes ------------------ +1.34.0 (2025-01-13) +------------------ + +* Feature - Support updating connector configuration via UpdateConnector API. Release Operations API to monitor the status of the connector operation. + 1.33.0 (2024-10-18) ------------------ diff --git a/gems/aws-sdk-kafkaconnect/VERSION b/gems/aws-sdk-kafkaconnect/VERSION index 7aa332e4163..2b17ffd5042 100644 --- a/gems/aws-sdk-kafkaconnect/VERSION +++ b/gems/aws-sdk-kafkaconnect/VERSION @@ -1 +1 @@ -1.33.0 +1.34.0 diff --git a/gems/aws-sdk-kafkaconnect/aws-sdk-kafkaconnect.gemspec b/gems/aws-sdk-kafkaconnect/aws-sdk-kafkaconnect.gemspec index 8c0e87571ad..26c7712639b 100644 --- a/gems/aws-sdk-kafkaconnect/aws-sdk-kafkaconnect.gemspec +++ b/gems/aws-sdk-kafkaconnect/aws-sdk-kafkaconnect.gemspec @@ -26,7 +26,7 @@ Gem::Specification.new do |spec| } spec.add_dependency('aws-sdk-core', '~> 3', '>= 3.210.0') - spec.add_dependency('aws-sigv4', '~> 1.1') + spec.add_dependency('aws-sigv4', '~> 1.5') spec.required_ruby_version = '>= 2.5' end diff --git a/gems/aws-sdk-kafkaconnect/lib/aws-sdk-kafkaconnect.rb b/gems/aws-sdk-kafkaconnect/lib/aws-sdk-kafkaconnect.rb index b980f81e0d2..41f000c7552 100644 --- a/gems/aws-sdk-kafkaconnect/lib/aws-sdk-kafkaconnect.rb +++ b/gems/aws-sdk-kafkaconnect/lib/aws-sdk-kafkaconnect.rb @@ -49,12 +49,13 @@ module Plugins end autoload :Client, 'aws-sdk-kafkaconnect/client' autoload :Errors, 'aws-sdk-kafkaconnect/errors' + autoload :Waiters, 'aws-sdk-kafkaconnect/waiters' autoload :Resource, 'aws-sdk-kafkaconnect/resource' autoload :EndpointParameters, 'aws-sdk-kafkaconnect/endpoint_parameters' autoload :EndpointProvider, 'aws-sdk-kafkaconnect/endpoint_provider' autoload :Endpoints, 'aws-sdk-kafkaconnect/endpoints' - GEM_VERSION = '1.33.0' + GEM_VERSION = '1.34.0' end diff --git a/gems/aws-sdk-kafkaconnect/lib/aws-sdk-kafkaconnect/client.rb b/gems/aws-sdk-kafkaconnect/lib/aws-sdk-kafkaconnect/client.rb index 4e44ac4a722..eba2d093d2c 100644 --- a/gems/aws-sdk-kafkaconnect/lib/aws-sdk-kafkaconnect/client.rb +++ b/gems/aws-sdk-kafkaconnect/lib/aws-sdk-kafkaconnect/client.rb @@ -495,12 +495,12 @@ def initialize(*args) # connector that has Amazon S3 as a destination must have permissions # that allow it to write to the S3 destination bucket. # - # @option params [Hash] :tags - # The tags you want to attach to the connector. - # # @option params [Types::WorkerConfiguration] :worker_configuration # Specifies which worker configuration to use with the connector. # + # @option params [Hash] :tags + # The tags you want to attach to the connector. + # # @return [Types::CreateConnectorResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::CreateConnectorResponse#connector_arn #connector_arn} => String @@ -574,13 +574,13 @@ def initialize(*args) # }, # ], # service_execution_role_arn: "__string", # required - # tags: { - # "TagKey" => "TagValue", - # }, # worker_configuration: { # revision: 1, # required # worker_configuration_arn: "__string", # required # }, + # tags: { + # "TagKey" => "TagValue", + # }, # }) # # @example Response structure @@ -828,8 +828,8 @@ def delete_worker_configuration(params = {}, options = {}) # * {Types::DescribeConnectorResponse#log_delivery #log_delivery} => Types::LogDeliveryDescription # * {Types::DescribeConnectorResponse#plugins #plugins} => Array<Types::PluginDescription> # * {Types::DescribeConnectorResponse#service_execution_role_arn #service_execution_role_arn} => String - # * {Types::DescribeConnectorResponse#state_description #state_description} => Types::StateDescription # * {Types::DescribeConnectorResponse#worker_configuration #worker_configuration} => Types::WorkerConfigurationDescription + # * {Types::DescribeConnectorResponse#state_description #state_description} => Types::StateDescription # # @example Request syntax with placeholder values # @@ -873,10 +873,10 @@ def delete_worker_configuration(params = {}, options = {}) # resp.plugins[0].custom_plugin.custom_plugin_arn #=> String # resp.plugins[0].custom_plugin.revision #=> Integer # resp.service_execution_role_arn #=> String - # resp.state_description.code #=> String - # resp.state_description.message #=> String # resp.worker_configuration.revision #=> Integer # resp.worker_configuration.worker_configuration_arn #=> String + # resp.state_description.code #=> String + # resp.state_description.message #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/DescribeConnector AWS API Documentation # @@ -887,6 +887,73 @@ def describe_connector(params = {}, options = {}) req.send_request(options) end + # Returns information about the specified connector's operations. + # + # @option params [required, String] :connector_operation_arn + # ARN of the connector operation to be described. + # + # @return [Types::DescribeConnectorOperationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::DescribeConnectorOperationResponse#connector_arn #connector_arn} => String + # * {Types::DescribeConnectorOperationResponse#connector_operation_arn #connector_operation_arn} => String + # * {Types::DescribeConnectorOperationResponse#connector_operation_state #connector_operation_state} => String + # * {Types::DescribeConnectorOperationResponse#connector_operation_type #connector_operation_type} => String + # * {Types::DescribeConnectorOperationResponse#operation_steps #operation_steps} => Array<Types::ConnectorOperationStep> + # * {Types::DescribeConnectorOperationResponse#origin_worker_setting #origin_worker_setting} => Types::WorkerSetting + # * {Types::DescribeConnectorOperationResponse#origin_connector_configuration #origin_connector_configuration} => Hash<String,String> + # * {Types::DescribeConnectorOperationResponse#target_worker_setting #target_worker_setting} => Types::WorkerSetting + # * {Types::DescribeConnectorOperationResponse#target_connector_configuration #target_connector_configuration} => Hash<String,String> + # * {Types::DescribeConnectorOperationResponse#error_info #error_info} => Types::StateDescription + # * {Types::DescribeConnectorOperationResponse#creation_time #creation_time} => Time + # * {Types::DescribeConnectorOperationResponse#end_time #end_time} => Time + # + # @example Request syntax with placeholder values + # + # resp = client.describe_connector_operation({ + # connector_operation_arn: "__string", # required + # }) + # + # @example Response structure + # + # resp.connector_arn #=> String + # resp.connector_operation_arn #=> String + # resp.connector_operation_state #=> String, one of "PENDING", "UPDATE_IN_PROGRESS", "UPDATE_COMPLETE", "UPDATE_FAILED", "ROLLBACK_IN_PROGRESS", "ROLLBACK_FAILED", "ROLLBACK_COMPLETE" + # resp.connector_operation_type #=> String, one of "UPDATE_WORKER_SETTING", "UPDATE_CONNECTOR_CONFIGURATION", "ISOLATE_CONNECTOR", "RESTORE_CONNECTOR" + # resp.operation_steps #=> Array + # resp.operation_steps[0].step_type #=> String, one of "INITIALIZE_UPDATE", "FINALIZE_UPDATE", "UPDATE_WORKER_SETTING", "UPDATE_CONNECTOR_CONFIGURATION", "VALIDATE_UPDATE" + # resp.operation_steps[0].step_state #=> String, one of "PENDING", "IN_PROGRESS", "COMPLETED", "FAILED", "CANCELLED" + # resp.origin_worker_setting.capacity.auto_scaling.max_worker_count #=> Integer + # resp.origin_worker_setting.capacity.auto_scaling.mcu_count #=> Integer + # resp.origin_worker_setting.capacity.auto_scaling.min_worker_count #=> Integer + # resp.origin_worker_setting.capacity.auto_scaling.scale_in_policy.cpu_utilization_percentage #=> Integer + # resp.origin_worker_setting.capacity.auto_scaling.scale_out_policy.cpu_utilization_percentage #=> Integer + # resp.origin_worker_setting.capacity.provisioned_capacity.mcu_count #=> Integer + # resp.origin_worker_setting.capacity.provisioned_capacity.worker_count #=> Integer + # resp.origin_connector_configuration #=> Hash + # resp.origin_connector_configuration["__string"] #=> String + # resp.target_worker_setting.capacity.auto_scaling.max_worker_count #=> Integer + # resp.target_worker_setting.capacity.auto_scaling.mcu_count #=> Integer + # resp.target_worker_setting.capacity.auto_scaling.min_worker_count #=> Integer + # resp.target_worker_setting.capacity.auto_scaling.scale_in_policy.cpu_utilization_percentage #=> Integer + # resp.target_worker_setting.capacity.auto_scaling.scale_out_policy.cpu_utilization_percentage #=> Integer + # resp.target_worker_setting.capacity.provisioned_capacity.mcu_count #=> Integer + # resp.target_worker_setting.capacity.provisioned_capacity.worker_count #=> Integer + # resp.target_connector_configuration #=> Hash + # resp.target_connector_configuration["__string"] #=> String + # resp.error_info.code #=> String + # resp.error_info.message #=> String + # resp.creation_time #=> Time + # resp.end_time #=> Time + # + # @see http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/DescribeConnectorOperation AWS API Documentation + # + # @overload describe_connector_operation(params = {}) + # @param [Hash] params ({}) + def describe_connector_operation(params = {}, options = {}) + req = build_request(:describe_connector_operation, params) + req.send_request(options) + end + # A summary description of the custom plugin. # # @option params [required, String] :custom_plugin_arn @@ -978,6 +1045,54 @@ def describe_worker_configuration(params = {}, options = {}) req.send_request(options) end + # Lists information about a connector's operation(s). + # + # @option params [required, String] :connector_arn + # The Amazon Resource Name (ARN) of the connector for which to list + # operations. + # + # @option params [Integer] :max_results + # Maximum number of connector operations to fetch in one get request. + # + # @option params [String] :next_token + # If the response is truncated, it includes a NextToken. Send this + # NextToken in a subsequent request to continue listing from where it + # left off. + # + # @return [Types::ListConnectorOperationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::ListConnectorOperationsResponse#connector_operations #connector_operations} => Array<Types::ConnectorOperationSummary> + # * {Types::ListConnectorOperationsResponse#next_token #next_token} => String + # + # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}. + # + # @example Request syntax with placeholder values + # + # resp = client.list_connector_operations({ + # connector_arn: "__string", # required + # max_results: 1, + # next_token: "__string", + # }) + # + # @example Response structure + # + # resp.connector_operations #=> Array + # resp.connector_operations[0].connector_operation_arn #=> String + # resp.connector_operations[0].connector_operation_type #=> String, one of "UPDATE_WORKER_SETTING", "UPDATE_CONNECTOR_CONFIGURATION", "ISOLATE_CONNECTOR", "RESTORE_CONNECTOR" + # resp.connector_operations[0].connector_operation_state #=> String, one of "PENDING", "UPDATE_IN_PROGRESS", "UPDATE_COMPLETE", "UPDATE_FAILED", "ROLLBACK_IN_PROGRESS", "ROLLBACK_FAILED", "ROLLBACK_COMPLETE" + # resp.connector_operations[0].creation_time #=> Time + # resp.connector_operations[0].end_time #=> Time + # resp.next_token #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/ListConnectorOperations AWS API Documentation + # + # @overload list_connector_operations(params = {}) + # @param [Hash] params ({}) + def list_connector_operations(params = {}, options = {}) + req = build_request(:list_connector_operations, params) + req.send_request(options) + end + # Returns a list of all the connectors in this account and Region. The # list is limited to connectors whose name starts with the specified # prefix. The response also includes a description of each of the listed @@ -1064,14 +1179,14 @@ def list_connectors(params = {}, options = {}) # @option params [Integer] :max_results # The maximum number of custom plugins to list in one response. # - # @option params [String] :name_prefix - # Lists custom plugin names that start with the specified text string. - # # @option params [String] :next_token # If the response of a ListCustomPlugins operation is truncated, it will # include a NextToken. Send this NextToken in a subsequent request to # continue listing from where the previous operation left off. # + # @option params [String] :name_prefix + # Lists custom plugin names that start with the specified text string. + # # @return [Types::ListCustomPluginsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::ListCustomPluginsResponse#custom_plugins #custom_plugins} => Array<Types::CustomPluginSummary> @@ -1083,8 +1198,8 @@ def list_connectors(params = {}, options = {}) # # resp = client.list_custom_plugins({ # max_results: 1, - # name_prefix: "__string", # next_token: "__string", + # name_prefix: "__string", # }) # # @example Response structure @@ -1151,16 +1266,16 @@ def list_tags_for_resource(params = {}, options = {}) # @option params [Integer] :max_results # The maximum number of worker configurations to list in one response. # - # @option params [String] :name_prefix - # Lists worker configuration names that start with the specified text - # string. - # # @option params [String] :next_token # If the response of a ListWorkerConfigurations operation is truncated, # it will include a NextToken. Send this NextToken in a subsequent # request to continue listing from where the previous operation left # off. # + # @option params [String] :name_prefix + # Lists worker configuration names that start with the specified text + # string. + # # @return [Types::ListWorkerConfigurationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::ListWorkerConfigurationsResponse#next_token #next_token} => String @@ -1172,8 +1287,8 @@ def list_tags_for_resource(params = {}, options = {}) # # resp = client.list_worker_configurations({ # max_results: 1, - # name_prefix: "__string", # next_token: "__string", + # name_prefix: "__string", # }) # # @example Response structure @@ -1256,9 +1371,13 @@ def untag_resource(params = {}, options = {}) # Updates the specified connector. # - # @option params [required, Types::CapacityUpdate] :capacity + # @option params [Types::CapacityUpdate] :capacity # The target capacity. # + # @option params [Hash] :connector_configuration + # A map of keys to values that represent the configuration for the + # connector. + # # @option params [required, String] :connector_arn # The Amazon Resource Name (ARN) of the connector that you want to # update. @@ -1270,11 +1389,12 @@ def untag_resource(params = {}, options = {}) # # * {Types::UpdateConnectorResponse#connector_arn #connector_arn} => String # * {Types::UpdateConnectorResponse#connector_state #connector_state} => String + # * {Types::UpdateConnectorResponse#connector_operation_arn #connector_operation_arn} => String # # @example Request syntax with placeholder values # # resp = client.update_connector({ - # capacity: { # required + # capacity: { # auto_scaling: { # max_worker_count: 1, # required # mcu_count: 1, # required @@ -1291,6 +1411,9 @@ def untag_resource(params = {}, options = {}) # worker_count: 1, # required # }, # }, + # connector_configuration: { + # "__string" => "__string", + # }, # connector_arn: "__string", # required # current_version: "__string", # required # }) @@ -1299,6 +1422,7 @@ def untag_resource(params = {}, options = {}) # # resp.connector_arn #=> String # resp.connector_state #=> String, one of "RUNNING", "CREATING", "UPDATING", "DELETING", "FAILED" + # resp.connector_operation_arn #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/UpdateConnector AWS API Documentation # @@ -1327,7 +1451,7 @@ def build_request(operation_name, params = {}) tracer: tracer ) context[:gem_name] = 'aws-sdk-kafkaconnect' - context[:gem_version] = '1.33.0' + context[:gem_version] = '1.34.0' Seahorse::Client::Request.new(handlers, context) end diff --git a/gems/aws-sdk-kafkaconnect/lib/aws-sdk-kafkaconnect/client_api.rb b/gems/aws-sdk-kafkaconnect/lib/aws-sdk-kafkaconnect/client_api.rb index dd44d057abd..7c91e1c34c9 100644 --- a/gems/aws-sdk-kafkaconnect/lib/aws-sdk-kafkaconnect/client_api.rb +++ b/gems/aws-sdk-kafkaconnect/lib/aws-sdk-kafkaconnect/client_api.rb @@ -26,6 +26,14 @@ module ClientApi CloudWatchLogsLogDelivery = Shapes::StructureShape.new(name: 'CloudWatchLogsLogDelivery') CloudWatchLogsLogDeliveryDescription = Shapes::StructureShape.new(name: 'CloudWatchLogsLogDeliveryDescription') ConflictException = Shapes::StructureShape.new(name: 'ConflictException') + ConnectorConfiguration = Shapes::MapShape.new(name: 'ConnectorConfiguration') + ConnectorConfigurationUpdate = Shapes::MapShape.new(name: 'ConnectorConfigurationUpdate') + ConnectorOperationState = Shapes::StringShape.new(name: 'ConnectorOperationState') + ConnectorOperationStep = Shapes::StructureShape.new(name: 'ConnectorOperationStep') + ConnectorOperationStepState = Shapes::StringShape.new(name: 'ConnectorOperationStepState') + ConnectorOperationStepType = Shapes::StringShape.new(name: 'ConnectorOperationStepType') + ConnectorOperationSummary = Shapes::StructureShape.new(name: 'ConnectorOperationSummary') + ConnectorOperationType = Shapes::StringShape.new(name: 'ConnectorOperationType') ConnectorState = Shapes::StringShape.new(name: 'ConnectorState') ConnectorSummary = Shapes::StructureShape.new(name: 'ConnectorSummary') CreateConnectorRequest = Shapes::StructureShape.new(name: 'CreateConnectorRequest') @@ -49,6 +57,8 @@ module ClientApi DeleteCustomPluginResponse = Shapes::StructureShape.new(name: 'DeleteCustomPluginResponse') DeleteWorkerConfigurationRequest = Shapes::StructureShape.new(name: 'DeleteWorkerConfigurationRequest') DeleteWorkerConfigurationResponse = Shapes::StructureShape.new(name: 'DeleteWorkerConfigurationResponse') + DescribeConnectorOperationRequest = Shapes::StructureShape.new(name: 'DescribeConnectorOperationRequest') + DescribeConnectorOperationResponse = Shapes::StructureShape.new(name: 'DescribeConnectorOperationResponse') DescribeConnectorRequest = Shapes::StructureShape.new(name: 'DescribeConnectorRequest') DescribeConnectorResponse = Shapes::StructureShape.new(name: 'DescribeConnectorResponse') DescribeCustomPluginRequest = Shapes::StructureShape.new(name: 'DescribeCustomPluginRequest') @@ -67,6 +77,8 @@ module ClientApi KafkaClusterEncryptionInTransit = Shapes::StructureShape.new(name: 'KafkaClusterEncryptionInTransit') KafkaClusterEncryptionInTransitDescription = Shapes::StructureShape.new(name: 'KafkaClusterEncryptionInTransitDescription') KafkaClusterEncryptionInTransitType = Shapes::StringShape.new(name: 'KafkaClusterEncryptionInTransitType') + ListConnectorOperationsRequest = Shapes::StructureShape.new(name: 'ListConnectorOperationsRequest') + ListConnectorOperationsResponse = Shapes::StructureShape.new(name: 'ListConnectorOperationsResponse') ListConnectorsRequest = Shapes::StructureShape.new(name: 'ListConnectorsRequest') ListConnectorsResponse = Shapes::StructureShape.new(name: 'ListConnectorsResponse') ListCustomPluginsRequest = Shapes::StructureShape.new(name: 'ListCustomPluginsRequest') @@ -118,11 +130,13 @@ module ClientApi WorkerConfigurationSummary = Shapes::StructureShape.new(name: 'WorkerConfigurationSummary') WorkerLogDelivery = Shapes::StructureShape.new(name: 'WorkerLogDelivery') WorkerLogDeliveryDescription = Shapes::StructureShape.new(name: 'WorkerLogDeliveryDescription') + WorkerSetting = Shapes::StructureShape.new(name: 'WorkerSetting') __boolean = Shapes::BooleanShape.new(name: '__boolean') __integer = Shapes::IntegerShape.new(name: '__integer') - __integerMin1Max10 = Shapes::IntegerShape.new(name: '__integerMin1Max10') __integerMin1Max100 = Shapes::IntegerShape.new(name: '__integerMin1Max100') __integerMin1Max8 = Shapes::IntegerShape.new(name: '__integerMin1Max8') + __listOfConnectorOperationStep = Shapes::ListShape.new(name: '__listOfConnectorOperationStep') + __listOfConnectorOperationSummary = Shapes::ListShape.new(name: '__listOfConnectorOperationSummary') __listOfConnectorSummary = Shapes::ListShape.new(name: '__listOfConnectorSummary') __listOfCustomPluginSummary = Shapes::ListShape.new(name: '__listOfCustomPluginSummary') __listOfPlugin = Shapes::ListShape.new(name: '__listOfPlugin') @@ -132,7 +146,6 @@ module ClientApi __long = Shapes::IntegerShape.new(name: '__long') __longMin1 = Shapes::IntegerShape.new(name: '__longMin1') __sensitiveString = Shapes::StringShape.new(name: '__sensitiveString') - __sensitive__mapOf__string = Shapes::MapShape.new(name: '__sensitive__mapOf__string') __string = Shapes::StringShape.new(name: '__string') __stringMax1024 = Shapes::StringShape.new(name: '__stringMax1024') __stringMin1Max128 = Shapes::StringShape.new(name: '__stringMin1Max128') @@ -146,9 +159,9 @@ module ClientApi ApacheKafkaClusterDescription.add_member(:vpc, Shapes::ShapeRef.new(shape: VpcDescription, location_name: "vpc")) ApacheKafkaClusterDescription.struct_class = Types::ApacheKafkaClusterDescription - AutoScaling.add_member(:max_worker_count, Shapes::ShapeRef.new(shape: __integerMin1Max10, required: true, location_name: "maxWorkerCount")) + AutoScaling.add_member(:max_worker_count, Shapes::ShapeRef.new(shape: __integer, required: true, location_name: "maxWorkerCount")) AutoScaling.add_member(:mcu_count, Shapes::ShapeRef.new(shape: __integerMin1Max8, required: true, location_name: "mcuCount")) - AutoScaling.add_member(:min_worker_count, Shapes::ShapeRef.new(shape: __integerMin1Max10, required: true, location_name: "minWorkerCount")) + AutoScaling.add_member(:min_worker_count, Shapes::ShapeRef.new(shape: __integer, required: true, location_name: "minWorkerCount")) AutoScaling.add_member(:scale_in_policy, Shapes::ShapeRef.new(shape: ScaleInPolicy, location_name: "scaleInPolicy")) AutoScaling.add_member(:scale_out_policy, Shapes::ShapeRef.new(shape: ScaleOutPolicy, location_name: "scaleOutPolicy")) AutoScaling.struct_class = Types::AutoScaling @@ -160,9 +173,9 @@ module ClientApi AutoScalingDescription.add_member(:scale_out_policy, Shapes::ShapeRef.new(shape: ScaleOutPolicyDescription, location_name: "scaleOutPolicy")) AutoScalingDescription.struct_class = Types::AutoScalingDescription - AutoScalingUpdate.add_member(:max_worker_count, Shapes::ShapeRef.new(shape: __integerMin1Max10, required: true, location_name: "maxWorkerCount")) + AutoScalingUpdate.add_member(:max_worker_count, Shapes::ShapeRef.new(shape: __integer, required: true, location_name: "maxWorkerCount")) AutoScalingUpdate.add_member(:mcu_count, Shapes::ShapeRef.new(shape: __integerMin1Max8, required: true, location_name: "mcuCount")) - AutoScalingUpdate.add_member(:min_worker_count, Shapes::ShapeRef.new(shape: __integerMin1Max10, required: true, location_name: "minWorkerCount")) + AutoScalingUpdate.add_member(:min_worker_count, Shapes::ShapeRef.new(shape: __integer, required: true, location_name: "minWorkerCount")) AutoScalingUpdate.add_member(:scale_in_policy, Shapes::ShapeRef.new(shape: ScaleInPolicyUpdate, required: true, location_name: "scaleInPolicy")) AutoScalingUpdate.add_member(:scale_out_policy, Shapes::ShapeRef.new(shape: ScaleOutPolicyUpdate, required: true, location_name: "scaleOutPolicy")) AutoScalingUpdate.struct_class = Types::AutoScalingUpdate @@ -193,6 +206,23 @@ module ClientApi ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: __string, location_name: "message")) ConflictException.struct_class = Types::ConflictException + ConnectorConfiguration.key = Shapes::ShapeRef.new(shape: __string) + ConnectorConfiguration.value = Shapes::ShapeRef.new(shape: __string) + + ConnectorConfigurationUpdate.key = Shapes::ShapeRef.new(shape: __string) + ConnectorConfigurationUpdate.value = Shapes::ShapeRef.new(shape: __string) + + ConnectorOperationStep.add_member(:step_type, Shapes::ShapeRef.new(shape: ConnectorOperationStepType, location_name: "stepType")) + ConnectorOperationStep.add_member(:step_state, Shapes::ShapeRef.new(shape: ConnectorOperationStepState, location_name: "stepState")) + ConnectorOperationStep.struct_class = Types::ConnectorOperationStep + + ConnectorOperationSummary.add_member(:connector_operation_arn, Shapes::ShapeRef.new(shape: __string, location_name: "connectorOperationArn")) + ConnectorOperationSummary.add_member(:connector_operation_type, Shapes::ShapeRef.new(shape: ConnectorOperationType, location_name: "connectorOperationType")) + ConnectorOperationSummary.add_member(:connector_operation_state, Shapes::ShapeRef.new(shape: ConnectorOperationState, location_name: "connectorOperationState")) + ConnectorOperationSummary.add_member(:creation_time, Shapes::ShapeRef.new(shape: __timestampIso8601, location_name: "creationTime")) + ConnectorOperationSummary.add_member(:end_time, Shapes::ShapeRef.new(shape: __timestampIso8601, location_name: "endTime")) + ConnectorOperationSummary.struct_class = Types::ConnectorOperationSummary + ConnectorSummary.add_member(:capacity, Shapes::ShapeRef.new(shape: CapacityDescription, location_name: "capacity")) ConnectorSummary.add_member(:connector_arn, Shapes::ShapeRef.new(shape: __string, location_name: "connectorArn")) ConnectorSummary.add_member(:connector_description, Shapes::ShapeRef.new(shape: __string, location_name: "connectorDescription")) @@ -211,7 +241,7 @@ module ClientApi ConnectorSummary.struct_class = Types::ConnectorSummary CreateConnectorRequest.add_member(:capacity, Shapes::ShapeRef.new(shape: Capacity, required: true, location_name: "capacity")) - CreateConnectorRequest.add_member(:connector_configuration, Shapes::ShapeRef.new(shape: __sensitive__mapOf__string, required: true, location_name: "connectorConfiguration")) + CreateConnectorRequest.add_member(:connector_configuration, Shapes::ShapeRef.new(shape: ConnectorConfiguration, required: true, location_name: "connectorConfiguration")) CreateConnectorRequest.add_member(:connector_description, Shapes::ShapeRef.new(shape: __stringMax1024, location_name: "connectorDescription")) CreateConnectorRequest.add_member(:connector_name, Shapes::ShapeRef.new(shape: __stringMin1Max128, required: true, location_name: "connectorName")) CreateConnectorRequest.add_member(:kafka_cluster, Shapes::ShapeRef.new(shape: KafkaCluster, required: true, location_name: "kafkaCluster")) @@ -221,8 +251,8 @@ module ClientApi CreateConnectorRequest.add_member(:log_delivery, Shapes::ShapeRef.new(shape: LogDelivery, location_name: "logDelivery")) CreateConnectorRequest.add_member(:plugins, Shapes::ShapeRef.new(shape: __listOfPlugin, required: true, location_name: "plugins")) CreateConnectorRequest.add_member(:service_execution_role_arn, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "serviceExecutionRoleArn")) - CreateConnectorRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags")) CreateConnectorRequest.add_member(:worker_configuration, Shapes::ShapeRef.new(shape: WorkerConfiguration, location_name: "workerConfiguration")) + CreateConnectorRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags")) CreateConnectorRequest.struct_class = Types::CreateConnectorRequest CreateConnectorResponse.add_member(:connector_arn, Shapes::ShapeRef.new(shape: __string, location_name: "connectorArn")) @@ -312,12 +342,29 @@ module ClientApi DeleteWorkerConfigurationResponse.add_member(:worker_configuration_state, Shapes::ShapeRef.new(shape: WorkerConfigurationState, location_name: "workerConfigurationState")) DeleteWorkerConfigurationResponse.struct_class = Types::DeleteWorkerConfigurationResponse + DescribeConnectorOperationRequest.add_member(:connector_operation_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "connectorOperationArn")) + DescribeConnectorOperationRequest.struct_class = Types::DescribeConnectorOperationRequest + + DescribeConnectorOperationResponse.add_member(:connector_arn, Shapes::ShapeRef.new(shape: __string, location_name: "connectorArn")) + DescribeConnectorOperationResponse.add_member(:connector_operation_arn, Shapes::ShapeRef.new(shape: __string, location_name: "connectorOperationArn")) + DescribeConnectorOperationResponse.add_member(:connector_operation_state, Shapes::ShapeRef.new(shape: ConnectorOperationState, location_name: "connectorOperationState")) + DescribeConnectorOperationResponse.add_member(:connector_operation_type, Shapes::ShapeRef.new(shape: ConnectorOperationType, location_name: "connectorOperationType")) + DescribeConnectorOperationResponse.add_member(:operation_steps, Shapes::ShapeRef.new(shape: __listOfConnectorOperationStep, location_name: "operationSteps")) + DescribeConnectorOperationResponse.add_member(:origin_worker_setting, Shapes::ShapeRef.new(shape: WorkerSetting, location_name: "originWorkerSetting")) + DescribeConnectorOperationResponse.add_member(:origin_connector_configuration, Shapes::ShapeRef.new(shape: ConnectorConfiguration, location_name: "originConnectorConfiguration")) + DescribeConnectorOperationResponse.add_member(:target_worker_setting, Shapes::ShapeRef.new(shape: WorkerSetting, location_name: "targetWorkerSetting")) + DescribeConnectorOperationResponse.add_member(:target_connector_configuration, Shapes::ShapeRef.new(shape: ConnectorConfiguration, location_name: "targetConnectorConfiguration")) + DescribeConnectorOperationResponse.add_member(:error_info, Shapes::ShapeRef.new(shape: StateDescription, location_name: "errorInfo")) + DescribeConnectorOperationResponse.add_member(:creation_time, Shapes::ShapeRef.new(shape: __timestampIso8601, location_name: "creationTime")) + DescribeConnectorOperationResponse.add_member(:end_time, Shapes::ShapeRef.new(shape: __timestampIso8601, location_name: "endTime")) + DescribeConnectorOperationResponse.struct_class = Types::DescribeConnectorOperationResponse + DescribeConnectorRequest.add_member(:connector_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "connectorArn")) DescribeConnectorRequest.struct_class = Types::DescribeConnectorRequest DescribeConnectorResponse.add_member(:capacity, Shapes::ShapeRef.new(shape: CapacityDescription, location_name: "capacity")) DescribeConnectorResponse.add_member(:connector_arn, Shapes::ShapeRef.new(shape: __string, location_name: "connectorArn")) - DescribeConnectorResponse.add_member(:connector_configuration, Shapes::ShapeRef.new(shape: __sensitive__mapOf__string, location_name: "connectorConfiguration")) + DescribeConnectorResponse.add_member(:connector_configuration, Shapes::ShapeRef.new(shape: ConnectorConfiguration, location_name: "connectorConfiguration")) DescribeConnectorResponse.add_member(:connector_description, Shapes::ShapeRef.new(shape: __string, location_name: "connectorDescription")) DescribeConnectorResponse.add_member(:connector_name, Shapes::ShapeRef.new(shape: __string, location_name: "connectorName")) DescribeConnectorResponse.add_member(:connector_state, Shapes::ShapeRef.new(shape: ConnectorState, location_name: "connectorState")) @@ -330,8 +377,8 @@ module ClientApi DescribeConnectorResponse.add_member(:log_delivery, Shapes::ShapeRef.new(shape: LogDeliveryDescription, location_name: "logDelivery")) DescribeConnectorResponse.add_member(:plugins, Shapes::ShapeRef.new(shape: __listOfPluginDescription, location_name: "plugins")) DescribeConnectorResponse.add_member(:service_execution_role_arn, Shapes::ShapeRef.new(shape: __string, location_name: "serviceExecutionRoleArn")) - DescribeConnectorResponse.add_member(:state_description, Shapes::ShapeRef.new(shape: StateDescription, location_name: "stateDescription")) DescribeConnectorResponse.add_member(:worker_configuration, Shapes::ShapeRef.new(shape: WorkerConfigurationDescription, location_name: "workerConfiguration")) + DescribeConnectorResponse.add_member(:state_description, Shapes::ShapeRef.new(shape: StateDescription, location_name: "stateDescription")) DescribeConnectorResponse.struct_class = Types::DescribeConnectorResponse DescribeCustomPluginRequest.add_member(:custom_plugin_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "customPluginArn")) @@ -389,6 +436,15 @@ module ClientApi KafkaClusterEncryptionInTransitDescription.add_member(:encryption_type, Shapes::ShapeRef.new(shape: KafkaClusterEncryptionInTransitType, location_name: "encryptionType")) KafkaClusterEncryptionInTransitDescription.struct_class = Types::KafkaClusterEncryptionInTransitDescription + ListConnectorOperationsRequest.add_member(:connector_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "connectorArn")) + ListConnectorOperationsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults")) + ListConnectorOperationsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "nextToken")) + ListConnectorOperationsRequest.struct_class = Types::ListConnectorOperationsRequest + + ListConnectorOperationsResponse.add_member(:connector_operations, Shapes::ShapeRef.new(shape: __listOfConnectorOperationSummary, location_name: "connectorOperations")) + ListConnectorOperationsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "nextToken")) + ListConnectorOperationsResponse.struct_class = Types::ListConnectorOperationsResponse + ListConnectorsRequest.add_member(:connector_name_prefix, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "connectorNamePrefix")) ListConnectorsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults")) ListConnectorsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "nextToken")) @@ -399,8 +455,8 @@ module ClientApi ListConnectorsResponse.struct_class = Types::ListConnectorsResponse ListCustomPluginsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults")) - ListCustomPluginsRequest.add_member(:name_prefix, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "namePrefix")) ListCustomPluginsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "nextToken")) + ListCustomPluginsRequest.add_member(:name_prefix, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "namePrefix")) ListCustomPluginsRequest.struct_class = Types::ListCustomPluginsRequest ListCustomPluginsResponse.add_member(:custom_plugins, Shapes::ShapeRef.new(shape: __listOfCustomPluginSummary, location_name: "customPlugins")) @@ -414,8 +470,8 @@ module ClientApi ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse ListWorkerConfigurationsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults")) - ListWorkerConfigurationsRequest.add_member(:name_prefix, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "namePrefix")) ListWorkerConfigurationsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "nextToken")) + ListWorkerConfigurationsRequest.add_member(:name_prefix, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "namePrefix")) ListWorkerConfigurationsRequest.struct_class = Types::ListWorkerConfigurationsRequest ListWorkerConfigurationsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "nextToken")) @@ -438,7 +494,7 @@ module ClientApi PluginDescription.struct_class = Types::PluginDescription ProvisionedCapacity.add_member(:mcu_count, Shapes::ShapeRef.new(shape: __integerMin1Max8, required: true, location_name: "mcuCount")) - ProvisionedCapacity.add_member(:worker_count, Shapes::ShapeRef.new(shape: __integerMin1Max10, required: true, location_name: "workerCount")) + ProvisionedCapacity.add_member(:worker_count, Shapes::ShapeRef.new(shape: __integer, required: true, location_name: "workerCount")) ProvisionedCapacity.struct_class = Types::ProvisionedCapacity ProvisionedCapacityDescription.add_member(:mcu_count, Shapes::ShapeRef.new(shape: __integer, location_name: "mcuCount")) @@ -446,7 +502,7 @@ module ClientApi ProvisionedCapacityDescription.struct_class = Types::ProvisionedCapacityDescription ProvisionedCapacityUpdate.add_member(:mcu_count, Shapes::ShapeRef.new(shape: __integerMin1Max8, required: true, location_name: "mcuCount")) - ProvisionedCapacityUpdate.add_member(:worker_count, Shapes::ShapeRef.new(shape: __integerMin1Max10, required: true, location_name: "workerCount")) + ProvisionedCapacityUpdate.add_member(:worker_count, Shapes::ShapeRef.new(shape: __integer, required: true, location_name: "workerCount")) ProvisionedCapacityUpdate.struct_class = Types::ProvisionedCapacityUpdate S3Location.add_member(:bucket_arn, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "bucketArn")) @@ -517,13 +573,15 @@ module ClientApi UntagResourceResponse.struct_class = Types::UntagResourceResponse - UpdateConnectorRequest.add_member(:capacity, Shapes::ShapeRef.new(shape: CapacityUpdate, required: true, location_name: "capacity")) + UpdateConnectorRequest.add_member(:capacity, Shapes::ShapeRef.new(shape: CapacityUpdate, location_name: "capacity")) + UpdateConnectorRequest.add_member(:connector_configuration, Shapes::ShapeRef.new(shape: ConnectorConfigurationUpdate, location_name: "connectorConfiguration")) UpdateConnectorRequest.add_member(:connector_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "connectorArn")) UpdateConnectorRequest.add_member(:current_version, Shapes::ShapeRef.new(shape: __string, required: true, location: "querystring", location_name: "currentVersion")) UpdateConnectorRequest.struct_class = Types::UpdateConnectorRequest UpdateConnectorResponse.add_member(:connector_arn, Shapes::ShapeRef.new(shape: __string, location_name: "connectorArn")) UpdateConnectorResponse.add_member(:connector_state, Shapes::ShapeRef.new(shape: ConnectorState, location_name: "connectorState")) + UpdateConnectorResponse.add_member(:connector_operation_arn, Shapes::ShapeRef.new(shape: __string, location_name: "connectorOperationArn")) UpdateConnectorResponse.struct_class = Types::UpdateConnectorResponse Vpc.add_member(:security_groups, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "securityGroups")) @@ -571,6 +629,13 @@ module ClientApi WorkerLogDeliveryDescription.add_member(:s3, Shapes::ShapeRef.new(shape: S3LogDeliveryDescription, location_name: "s3")) WorkerLogDeliveryDescription.struct_class = Types::WorkerLogDeliveryDescription + WorkerSetting.add_member(:capacity, Shapes::ShapeRef.new(shape: CapacityDescription, location_name: "capacity")) + WorkerSetting.struct_class = Types::WorkerSetting + + __listOfConnectorOperationStep.member = Shapes::ShapeRef.new(shape: ConnectorOperationStep) + + __listOfConnectorOperationSummary.member = Shapes::ShapeRef.new(shape: ConnectorOperationSummary) + __listOfConnectorSummary.member = Shapes::ShapeRef.new(shape: ConnectorSummary) __listOfCustomPluginSummary.member = Shapes::ShapeRef.new(shape: CustomPluginSummary) @@ -583,9 +648,6 @@ module ClientApi __listOf__string.member = Shapes::ShapeRef.new(shape: __string) - __sensitive__mapOf__string.key = Shapes::ShapeRef.new(shape: __string) - __sensitive__mapOf__string.value = Shapes::ShapeRef.new(shape: __string) - # @api private API = Seahorse::Model::Api.new.tap do |api| @@ -594,9 +656,10 @@ module ClientApi api.metadata = { "apiVersion" => "2021-09-14", + "auth" => ["aws.auth#sigv4"], "endpointPrefix" => "kafkaconnect", - "jsonVersion" => "1.1", "protocol" => "rest-json", + "protocols" => ["rest-json"], "serviceAbbreviation" => "Kafka Connect", "serviceFullName" => "Managed Streaming for Kafka Connect", "serviceId" => "KafkaConnect", @@ -713,6 +776,21 @@ module ClientApi o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException) end) + api.add_operation(:describe_connector_operation, Seahorse::Model::Operation.new.tap do |o| + o.name = "DescribeConnectorOperation" + o.http_method = "GET" + o.http_request_uri = "/v1/connectorOperations/{connectorOperationArn}" + o.input = Shapes::ShapeRef.new(shape: DescribeConnectorOperationRequest) + o.output = Shapes::ShapeRef.new(shape: DescribeConnectorOperationResponse) + o.errors << Shapes::ShapeRef.new(shape: NotFoundException) + o.errors << Shapes::ShapeRef.new(shape: BadRequestException) + o.errors << Shapes::ShapeRef.new(shape: ForbiddenException) + o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException) + o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException) + o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException) + o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException) + end) + api.add_operation(:describe_custom_plugin, Seahorse::Model::Operation.new.tap do |o| o.name = "DescribeCustomPlugin" o.http_method = "GET" @@ -743,6 +821,27 @@ module ClientApi o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException) end) + api.add_operation(:list_connector_operations, Seahorse::Model::Operation.new.tap do |o| + o.name = "ListConnectorOperations" + o.http_method = "GET" + o.http_request_uri = "/v1/connectors/{connectorArn}/operations" + o.input = Shapes::ShapeRef.new(shape: ListConnectorOperationsRequest) + o.output = Shapes::ShapeRef.new(shape: ListConnectorOperationsResponse) + o.errors << Shapes::ShapeRef.new(shape: NotFoundException) + o.errors << Shapes::ShapeRef.new(shape: BadRequestException) + o.errors << Shapes::ShapeRef.new(shape: ForbiddenException) + o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException) + o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException) + o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException) + o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException) + o[:pager] = Aws::Pager.new( + limit_key: "max_results", + tokens: { + "next_token" => "next_token" + } + ) + end) + api.add_operation(:list_connectors, Seahorse::Model::Operation.new.tap do |o| o.name = "ListConnectors" o.http_method = "GET" diff --git a/gems/aws-sdk-kafkaconnect/lib/aws-sdk-kafkaconnect/types.rb b/gems/aws-sdk-kafkaconnect/lib/aws-sdk-kafkaconnect/types.rb index 8b7d03bc7d9..f335da4ab28 100644 --- a/gems/aws-sdk-kafkaconnect/lib/aws-sdk-kafkaconnect/types.rb +++ b/gems/aws-sdk-kafkaconnect/lib/aws-sdk-kafkaconnect/types.rb @@ -284,6 +284,59 @@ class ConflictException < Struct.new( include Aws::Structure end + # Details of a step that is involved in a connector's operation. + # + # @!attribute [rw] step_type + # The step type of the operation. + # @return [String] + # + # @!attribute [rw] step_state + # The step state of the operation. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/ConnectorOperationStep AWS API Documentation + # + class ConnectorOperationStep < Struct.new( + :step_type, + :step_state) + SENSITIVE = [] + include Aws::Structure + end + + # Summary of a connector operation. + # + # @!attribute [rw] connector_operation_arn + # The Amazon Resource Name (ARN) of the connector operation. + # @return [String] + # + # @!attribute [rw] connector_operation_type + # The type of connector operation performed. + # @return [String] + # + # @!attribute [rw] connector_operation_state + # The state of the connector operation. + # @return [String] + # + # @!attribute [rw] creation_time + # The time when operation was created. + # @return [Time] + # + # @!attribute [rw] end_time + # The time when operation ended. + # @return [Time] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/ConnectorOperationSummary AWS API Documentation + # + class ConnectorOperationSummary < Struct.new( + :connector_operation_arn, + :connector_operation_type, + :connector_operation_state, + :creation_time, + :end_time) + SENSITIVE = [] + include Aws::Structure + end + # Summary of a connector. # # @!attribute [rw] capacity @@ -432,14 +485,14 @@ class ConnectorSummary < Struct.new( # that allow it to write to the S3 destination bucket. # @return [String] # - # @!attribute [rw] tags - # The tags you want to attach to the connector. - # @return [Hash] - # # @!attribute [rw] worker_configuration # Specifies which worker configuration to use with the connector. # @return [Types::WorkerConfiguration] # + # @!attribute [rw] tags + # The tags you want to attach to the connector. + # @return [Hash] + # # @see http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/CreateConnectorRequest AWS API Documentation # class CreateConnectorRequest < Struct.new( @@ -454,8 +507,8 @@ class CreateConnectorRequest < Struct.new( :log_delivery, :plugins, :service_execution_role_arn, - :tags, - :worker_configuration) + :worker_configuration, + :tags) SENSITIVE = [:connector_configuration] include Aws::Structure end @@ -869,6 +922,85 @@ class DeleteWorkerConfigurationResponse < Struct.new( include Aws::Structure end + # @!attribute [rw] connector_operation_arn + # ARN of the connector operation to be described. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/DescribeConnectorOperationRequest AWS API Documentation + # + class DescribeConnectorOperationRequest < Struct.new( + :connector_operation_arn) + SENSITIVE = [] + include Aws::Structure + end + + # @!attribute [rw] connector_arn + # The Amazon Resource Name (ARN) of the connector. + # @return [String] + # + # @!attribute [rw] connector_operation_arn + # The Amazon Resource Name (ARN) of the connector operation. + # @return [String] + # + # @!attribute [rw] connector_operation_state + # The state of the connector operation. + # @return [String] + # + # @!attribute [rw] connector_operation_type + # The type of connector operation performed. + # @return [String] + # + # @!attribute [rw] operation_steps + # The array of operation steps taken. + # @return [Array] + # + # @!attribute [rw] origin_worker_setting + # The origin worker setting. + # @return [Types::WorkerSetting] + # + # @!attribute [rw] origin_connector_configuration + # The origin connector configuration. + # @return [Hash] + # + # @!attribute [rw] target_worker_setting + # The target worker setting. + # @return [Types::WorkerSetting] + # + # @!attribute [rw] target_connector_configuration + # The target connector configuration. + # @return [Hash] + # + # @!attribute [rw] error_info + # Details about the state of a resource. + # @return [Types::StateDescription] + # + # @!attribute [rw] creation_time + # The time when the operation was created. + # @return [Time] + # + # @!attribute [rw] end_time + # The time when the operation ended. + # @return [Time] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/DescribeConnectorOperationResponse AWS API Documentation + # + class DescribeConnectorOperationResponse < Struct.new( + :connector_arn, + :connector_operation_arn, + :connector_operation_state, + :connector_operation_type, + :operation_steps, + :origin_worker_setting, + :origin_connector_configuration, + :target_worker_setting, + :target_connector_configuration, + :error_info, + :creation_time, + :end_time) + SENSITIVE = [:origin_connector_configuration, :target_connector_configuration] + include Aws::Structure + end + # @!attribute [rw] connector_arn # The Amazon Resource Name (ARN) of the connector that you want to # describe. @@ -948,14 +1080,14 @@ class DescribeConnectorRequest < Struct.new( # to access Amazon Web Services resources. # @return [String] # - # @!attribute [rw] state_description - # Details about the state of a connector. - # @return [Types::StateDescription] - # # @!attribute [rw] worker_configuration # Specifies which worker configuration was used for the connector. # @return [Types::WorkerConfigurationDescription] # + # @!attribute [rw] state_description + # Details about the state of a connector. + # @return [Types::StateDescription] + # # @see http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/DescribeConnectorResponse AWS API Documentation # class DescribeConnectorResponse < Struct.new( @@ -974,8 +1106,8 @@ class DescribeConnectorResponse < Struct.new( :log_delivery, :plugins, :service_execution_role_arn, - :state_description, - :worker_configuration) + :worker_configuration, + :state_description) SENSITIVE = [:connector_configuration] include Aws::Structure end @@ -1249,6 +1381,50 @@ class KafkaClusterEncryptionInTransitDescription < Struct.new( include Aws::Structure end + # @!attribute [rw] connector_arn + # The Amazon Resource Name (ARN) of the connector for which to list + # operations. + # @return [String] + # + # @!attribute [rw] max_results + # Maximum number of connector operations to fetch in one get request. + # @return [Integer] + # + # @!attribute [rw] next_token + # If the response is truncated, it includes a NextToken. Send this + # NextToken in a subsequent request to continue listing from where it + # left off. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/ListConnectorOperationsRequest AWS API Documentation + # + class ListConnectorOperationsRequest < Struct.new( + :connector_arn, + :max_results, + :next_token) + SENSITIVE = [] + include Aws::Structure + end + + # @!attribute [rw] connector_operations + # An array of connector operation descriptions. + # @return [Array] + # + # @!attribute [rw] next_token + # If the response is truncated, it includes a NextToken. Send this + # NextToken in a subsequent request to continue listing from where it + # left off. + # @return [String] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/ListConnectorOperationsResponse AWS API Documentation + # + class ListConnectorOperationsResponse < Struct.new( + :connector_operations, + :next_token) + SENSITIVE = [] + include Aws::Structure + end + # @!attribute [rw] connector_name_prefix # The name prefix that you want to use to search for and list # connectors. @@ -1297,10 +1473,6 @@ class ListConnectorsResponse < Struct.new( # The maximum number of custom plugins to list in one response. # @return [Integer] # - # @!attribute [rw] name_prefix - # Lists custom plugin names that start with the specified text string. - # @return [String] - # # @!attribute [rw] next_token # If the response of a ListCustomPlugins operation is truncated, it # will include a NextToken. Send this NextToken in a subsequent @@ -1308,12 +1480,16 @@ class ListConnectorsResponse < Struct.new( # off. # @return [String] # + # @!attribute [rw] name_prefix + # Lists custom plugin names that start with the specified text string. + # @return [String] + # # @see http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/ListCustomPluginsRequest AWS API Documentation # class ListCustomPluginsRequest < Struct.new( :max_results, - :name_prefix, - :next_token) + :next_token, + :name_prefix) SENSITIVE = [] include Aws::Structure end @@ -1368,11 +1544,6 @@ class ListTagsForResourceResponse < Struct.new( # The maximum number of worker configurations to list in one response. # @return [Integer] # - # @!attribute [rw] name_prefix - # Lists worker configuration names that start with the specified text - # string. - # @return [String] - # # @!attribute [rw] next_token # If the response of a ListWorkerConfigurations operation is # truncated, it will include a NextToken. Send this NextToken in a @@ -1380,12 +1551,17 @@ class ListTagsForResourceResponse < Struct.new( # operation left off. # @return [String] # + # @!attribute [rw] name_prefix + # Lists worker configuration names that start with the specified text + # string. + # @return [String] + # # @see http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/ListWorkerConfigurationsRequest AWS API Documentation # class ListWorkerConfigurationsRequest < Struct.new( :max_results, - :name_prefix, - :next_token) + :next_token, + :name_prefix) SENSITIVE = [] include Aws::Structure end @@ -1839,6 +2015,11 @@ class UntagResourceResponse < Aws::EmptyStructure; end # The target capacity. # @return [Types::CapacityUpdate] # + # @!attribute [rw] connector_configuration + # A map of keys to values that represent the configuration for the + # connector. + # @return [Hash] + # # @!attribute [rw] connector_arn # The Amazon Resource Name (ARN) of the connector that you want to # update. @@ -1852,9 +2033,10 @@ class UntagResourceResponse < Aws::EmptyStructure; end # class UpdateConnectorRequest < Struct.new( :capacity, + :connector_configuration, :connector_arn, :current_version) - SENSITIVE = [] + SENSITIVE = [:connector_configuration] include Aws::Structure end @@ -1866,11 +2048,16 @@ class UpdateConnectorRequest < Struct.new( # The state of the connector. # @return [String] # + # @!attribute [rw] connector_operation_arn + # The Amazon Resource Name (ARN) of the connector operation. + # @return [String] + # # @see http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/UpdateConnectorResponse AWS API Documentation # class UpdateConnectorResponse < Struct.new( :connector_arn, - :connector_state) + :connector_state, + :connector_operation_arn) SENSITIVE = [] include Aws::Structure end @@ -2094,6 +2281,20 @@ class WorkerLogDeliveryDescription < Struct.new( include Aws::Structure end + # Details about worker setting of a connector + # + # @!attribute [rw] capacity + # A description of the connector's capacity. + # @return [Types::CapacityDescription] + # + # @see http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/WorkerSetting AWS API Documentation + # + class WorkerSetting < Struct.new( + :capacity) + SENSITIVE = [] + include Aws::Structure + end + end end diff --git a/gems/aws-sdk-kafkaconnect/lib/aws-sdk-kafkaconnect/waiters.rb b/gems/aws-sdk-kafkaconnect/lib/aws-sdk-kafkaconnect/waiters.rb new file mode 100644 index 00000000000..391ea683054 --- /dev/null +++ b/gems/aws-sdk-kafkaconnect/lib/aws-sdk-kafkaconnect/waiters.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +# WARNING ABOUT GENERATED CODE +# +# This file is generated. See the contributing guide for more information: +# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md +# +# WARNING ABOUT GENERATED CODE + +require 'aws-sdk-core/waiters' + +module Aws::KafkaConnect + module Waiters + end +end diff --git a/gems/aws-sdk-kafkaconnect/sig/client.rbs b/gems/aws-sdk-kafkaconnect/sig/client.rbs index c20f8537df2..7a1aadcdfdd 100644 --- a/gems/aws-sdk-kafkaconnect/sig/client.rbs +++ b/gems/aws-sdk-kafkaconnect/sig/client.rbs @@ -145,11 +145,11 @@ module Aws }, ], service_execution_role_arn: ::String, - ?tags: Hash[::String, ::String], ?worker_configuration: { revision: ::Integer, worker_configuration_arn: ::String - } + }, + ?tags: Hash[::String, ::String] ) -> _CreateConnectorResponseSuccess | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateConnectorResponseSuccess @@ -244,8 +244,8 @@ module Aws def log_delivery: () -> Types::LogDeliveryDescription def plugins: () -> ::Array[Types::PluginDescription] def service_execution_role_arn: () -> ::String - def state_description: () -> Types::StateDescription def worker_configuration: () -> Types::WorkerConfigurationDescription + def state_description: () -> Types::StateDescription end # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KafkaConnect/Client.html#describe_connector-instance_method def describe_connector: ( @@ -253,6 +253,27 @@ module Aws ) -> _DescribeConnectorResponseSuccess | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeConnectorResponseSuccess + interface _DescribeConnectorOperationResponseSuccess + include ::Seahorse::Client::_ResponseSuccess[Types::DescribeConnectorOperationResponse] + def connector_arn: () -> ::String + def connector_operation_arn: () -> ::String + def connector_operation_state: () -> ("PENDING" | "UPDATE_IN_PROGRESS" | "UPDATE_COMPLETE" | "UPDATE_FAILED" | "ROLLBACK_IN_PROGRESS" | "ROLLBACK_FAILED" | "ROLLBACK_COMPLETE") + def connector_operation_type: () -> ("UPDATE_WORKER_SETTING" | "UPDATE_CONNECTOR_CONFIGURATION" | "ISOLATE_CONNECTOR" | "RESTORE_CONNECTOR") + def operation_steps: () -> ::Array[Types::ConnectorOperationStep] + def origin_worker_setting: () -> Types::WorkerSetting + def origin_connector_configuration: () -> ::Hash[::String, ::String] + def target_worker_setting: () -> Types::WorkerSetting + def target_connector_configuration: () -> ::Hash[::String, ::String] + def error_info: () -> Types::StateDescription + def creation_time: () -> ::Time + def end_time: () -> ::Time + end + # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KafkaConnect/Client.html#describe_connector_operation-instance_method + def describe_connector_operation: ( + connector_operation_arn: ::String + ) -> _DescribeConnectorOperationResponseSuccess + | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeConnectorOperationResponseSuccess + interface _DescribeCustomPluginResponseSuccess include ::Seahorse::Client::_ResponseSuccess[Types::DescribeCustomPluginResponse] def creation_time: () -> ::Time @@ -284,6 +305,19 @@ module Aws ) -> _DescribeWorkerConfigurationResponseSuccess | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeWorkerConfigurationResponseSuccess + interface _ListConnectorOperationsResponseSuccess + include ::Seahorse::Client::_ResponseSuccess[Types::ListConnectorOperationsResponse] + def connector_operations: () -> ::Array[Types::ConnectorOperationSummary] + def next_token: () -> ::String + end + # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KafkaConnect/Client.html#list_connector_operations-instance_method + def list_connector_operations: ( + connector_arn: ::String, + ?max_results: ::Integer, + ?next_token: ::String + ) -> _ListConnectorOperationsResponseSuccess + | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListConnectorOperationsResponseSuccess + interface _ListConnectorsResponseSuccess include ::Seahorse::Client::_ResponseSuccess[Types::ListConnectorsResponse] def connectors: () -> ::Array[Types::ConnectorSummary] @@ -305,8 +339,8 @@ module Aws # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KafkaConnect/Client.html#list_custom_plugins-instance_method def list_custom_plugins: ( ?max_results: ::Integer, - ?name_prefix: ::String, - ?next_token: ::String + ?next_token: ::String, + ?name_prefix: ::String ) -> _ListCustomPluginsResponseSuccess | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListCustomPluginsResponseSuccess @@ -328,8 +362,8 @@ module Aws # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KafkaConnect/Client.html#list_worker_configurations-instance_method def list_worker_configurations: ( ?max_results: ::Integer, - ?name_prefix: ::String, - ?next_token: ::String + ?next_token: ::String, + ?name_prefix: ::String ) -> _ListWorkerConfigurationsResponseSuccess | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListWorkerConfigurationsResponseSuccess @@ -357,10 +391,11 @@ module Aws include ::Seahorse::Client::_ResponseSuccess[Types::UpdateConnectorResponse] def connector_arn: () -> ::String def connector_state: () -> ("RUNNING" | "CREATING" | "UPDATING" | "DELETING" | "FAILED") + def connector_operation_arn: () -> ::String end # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KafkaConnect/Client.html#update_connector-instance_method def update_connector: ( - capacity: { + ?capacity: { auto_scaling: { max_worker_count: ::Integer, mcu_count: ::Integer, @@ -377,6 +412,7 @@ module Aws worker_count: ::Integer }? }, + ?connector_configuration: Hash[::String, ::String], connector_arn: ::String, current_version: ::String ) -> _UpdateConnectorResponseSuccess diff --git a/gems/aws-sdk-kafkaconnect/sig/types.rbs b/gems/aws-sdk-kafkaconnect/sig/types.rbs index c69b1b9df17..988927c1912 100644 --- a/gems/aws-sdk-kafkaconnect/sig/types.rbs +++ b/gems/aws-sdk-kafkaconnect/sig/types.rbs @@ -87,6 +87,21 @@ module Aws::KafkaConnect SENSITIVE: [] end + class ConnectorOperationStep + attr_accessor step_type: ("INITIALIZE_UPDATE" | "FINALIZE_UPDATE" | "UPDATE_WORKER_SETTING" | "UPDATE_CONNECTOR_CONFIGURATION" | "VALIDATE_UPDATE") + attr_accessor step_state: ("PENDING" | "IN_PROGRESS" | "COMPLETED" | "FAILED" | "CANCELLED") + SENSITIVE: [] + end + + class ConnectorOperationSummary + attr_accessor connector_operation_arn: ::String + attr_accessor connector_operation_type: ("UPDATE_WORKER_SETTING" | "UPDATE_CONNECTOR_CONFIGURATION" | "ISOLATE_CONNECTOR" | "RESTORE_CONNECTOR") + attr_accessor connector_operation_state: ("PENDING" | "UPDATE_IN_PROGRESS" | "UPDATE_COMPLETE" | "UPDATE_FAILED" | "ROLLBACK_IN_PROGRESS" | "ROLLBACK_FAILED" | "ROLLBACK_COMPLETE") + attr_accessor creation_time: ::Time + attr_accessor end_time: ::Time + SENSITIVE: [] + end + class ConnectorSummary attr_accessor capacity: Types::CapacityDescription attr_accessor connector_arn: ::String @@ -118,8 +133,8 @@ module Aws::KafkaConnect attr_accessor log_delivery: Types::LogDelivery attr_accessor plugins: ::Array[Types::Plugin] attr_accessor service_execution_role_arn: ::String - attr_accessor tags: ::Hash[::String, ::String] attr_accessor worker_configuration: Types::WorkerConfiguration + attr_accessor tags: ::Hash[::String, ::String] SENSITIVE: [:connector_configuration] end @@ -246,6 +261,27 @@ module Aws::KafkaConnect SENSITIVE: [] end + class DescribeConnectorOperationRequest + attr_accessor connector_operation_arn: ::String + SENSITIVE: [] + end + + class DescribeConnectorOperationResponse + attr_accessor connector_arn: ::String + attr_accessor connector_operation_arn: ::String + attr_accessor connector_operation_state: ("PENDING" | "UPDATE_IN_PROGRESS" | "UPDATE_COMPLETE" | "UPDATE_FAILED" | "ROLLBACK_IN_PROGRESS" | "ROLLBACK_FAILED" | "ROLLBACK_COMPLETE") + attr_accessor connector_operation_type: ("UPDATE_WORKER_SETTING" | "UPDATE_CONNECTOR_CONFIGURATION" | "ISOLATE_CONNECTOR" | "RESTORE_CONNECTOR") + attr_accessor operation_steps: ::Array[Types::ConnectorOperationStep] + attr_accessor origin_worker_setting: Types::WorkerSetting + attr_accessor origin_connector_configuration: ::Hash[::String, ::String] + attr_accessor target_worker_setting: Types::WorkerSetting + attr_accessor target_connector_configuration: ::Hash[::String, ::String] + attr_accessor error_info: Types::StateDescription + attr_accessor creation_time: ::Time + attr_accessor end_time: ::Time + SENSITIVE: [:origin_connector_configuration, :target_connector_configuration] + end + class DescribeConnectorRequest attr_accessor connector_arn: ::String SENSITIVE: [] @@ -267,8 +303,8 @@ module Aws::KafkaConnect attr_accessor log_delivery: Types::LogDeliveryDescription attr_accessor plugins: ::Array[Types::PluginDescription] attr_accessor service_execution_role_arn: ::String - attr_accessor state_description: Types::StateDescription attr_accessor worker_configuration: Types::WorkerConfigurationDescription + attr_accessor state_description: Types::StateDescription SENSITIVE: [:connector_configuration] end @@ -355,6 +391,19 @@ module Aws::KafkaConnect SENSITIVE: [] end + class ListConnectorOperationsRequest + attr_accessor connector_arn: ::String + attr_accessor max_results: ::Integer + attr_accessor next_token: ::String + SENSITIVE: [] + end + + class ListConnectorOperationsResponse + attr_accessor connector_operations: ::Array[Types::ConnectorOperationSummary] + attr_accessor next_token: ::String + SENSITIVE: [] + end + class ListConnectorsRequest attr_accessor connector_name_prefix: ::String attr_accessor max_results: ::Integer @@ -370,8 +419,8 @@ module Aws::KafkaConnect class ListCustomPluginsRequest attr_accessor max_results: ::Integer - attr_accessor name_prefix: ::String attr_accessor next_token: ::String + attr_accessor name_prefix: ::String SENSITIVE: [] end @@ -393,8 +442,8 @@ module Aws::KafkaConnect class ListWorkerConfigurationsRequest attr_accessor max_results: ::Integer - attr_accessor name_prefix: ::String attr_accessor next_token: ::String + attr_accessor name_prefix: ::String SENSITIVE: [] end @@ -546,14 +595,16 @@ module Aws::KafkaConnect class UpdateConnectorRequest attr_accessor capacity: Types::CapacityUpdate + attr_accessor connector_configuration: ::Hash[::String, ::String] attr_accessor connector_arn: ::String attr_accessor current_version: ::String - SENSITIVE: [] + SENSITIVE: [:connector_configuration] end class UpdateConnectorResponse attr_accessor connector_arn: ::String attr_accessor connector_state: ("RUNNING" | "CREATING" | "UPDATING" | "DELETING" | "FAILED") + attr_accessor connector_operation_arn: ::String SENSITIVE: [] end @@ -619,5 +670,10 @@ module Aws::KafkaConnect attr_accessor s3: Types::S3LogDeliveryDescription SENSITIVE: [] end + + class WorkerSetting + attr_accessor capacity: Types::CapacityDescription + SENSITIVE: [] + end end end diff --git a/gems/aws-sdk-transcribeservice/CHANGELOG.md b/gems/aws-sdk-transcribeservice/CHANGELOG.md index ac2de296cec..7f72210a306 100644 --- a/gems/aws-sdk-transcribeservice/CHANGELOG.md +++ b/gems/aws-sdk-transcribeservice/CHANGELOG.md @@ -1,6 +1,11 @@ Unreleased Changes ------------------ +1.111.0 (2025-01-13) +------------------ + +* Feature - This update provides tagging support for Transcribe's Call Analytics Jobs and Call Analytics Categories. + 1.110.0 (2024-10-18) ------------------ diff --git a/gems/aws-sdk-transcribeservice/VERSION b/gems/aws-sdk-transcribeservice/VERSION index 1916b6b587d..d313a193da0 100644 --- a/gems/aws-sdk-transcribeservice/VERSION +++ b/gems/aws-sdk-transcribeservice/VERSION @@ -1 +1 @@ -1.110.0 +1.111.0 diff --git a/gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice.rb b/gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice.rb index a4baf4b3e57..f33dd7f8e1f 100644 --- a/gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice.rb +++ b/gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice.rb @@ -54,7 +54,7 @@ module Plugins autoload :EndpointProvider, 'aws-sdk-transcribeservice/endpoint_provider' autoload :Endpoints, 'aws-sdk-transcribeservice/endpoints' - GEM_VERSION = '1.110.0' + GEM_VERSION = '1.111.0' end diff --git a/gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice/client.rb b/gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice/client.rb index 0b7b9595997..aeb9954638b 100644 --- a/gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice/client.rb +++ b/gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice/client.rb @@ -500,6 +500,17 @@ def initialize(*args) # customer's sentiment was positive during the last 30 seconds of the # call. # + # @option params [Array] :tags + # Adds one or more custom tags, each in the form of a key:value pair, to + # a new call analytics category at the time you start this new job. + # + # To learn more about using tags with Amazon Transcribe, refer to + # [Tagging resources][1]. + # + # + # + # [1]: https://docs.aws.amazon.com/transcribe/latest/dg/tagging.html + # # @option params [String] :input_type # Choose whether you want to create a real-time or a post-call category # for your Call Analytics transcription. @@ -595,6 +606,12 @@ def initialize(*args) # }, # }, # ], + # tags: [ + # { + # key: "TagKey", # required + # value: "TagValue", # required + # }, + # ], # input_type: "REAL_TIME", # accepts REAL_TIME, POST_CALL # }) # @@ -650,6 +667,9 @@ def initialize(*args) # resp.category_properties.rules[0].sentiment_filter.negate #=> Boolean # resp.category_properties.create_time #=> Time # resp.category_properties.last_update_time #=> Time + # resp.category_properties.tags #=> Array + # resp.category_properties.tags[0].key #=> String + # resp.category_properties.tags[0].value #=> String # resp.category_properties.input_type #=> String, one of "REAL_TIME", "POST_CALL" # # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CreateCallAnalyticsCategory AWS API Documentation @@ -1505,6 +1525,9 @@ def describe_language_model(params = {}, options = {}) # resp.category_properties.rules[0].sentiment_filter.negate #=> Boolean # resp.category_properties.create_time #=> Time # resp.category_properties.last_update_time #=> Time + # resp.category_properties.tags #=> Array + # resp.category_properties.tags[0].key #=> String + # resp.category_properties.tags[0].value #=> String # resp.category_properties.input_type #=> String, one of "REAL_TIME", "POST_CALL" # # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetCallAnalyticsCategory AWS API Documentation @@ -1587,6 +1610,9 @@ def get_call_analytics_category(params = {}, options = {}) # resp.call_analytics_job.channel_definitions #=> Array # resp.call_analytics_job.channel_definitions[0].channel_id #=> Integer # resp.call_analytics_job.channel_definitions[0].participant_role #=> String, one of "AGENT", "CUSTOMER" + # resp.call_analytics_job.tags #=> Array + # resp.call_analytics_job.tags[0].key #=> String + # resp.call_analytics_job.tags[0].value #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetCallAnalyticsJob AWS API Documentation # @@ -2023,6 +2049,9 @@ def get_vocabulary_filter(params = {}, options = {}) # resp.categories[0].rules[0].sentiment_filter.negate #=> Boolean # resp.categories[0].create_time #=> Time # resp.categories[0].last_update_time #=> Time + # resp.categories[0].tags #=> Array + # resp.categories[0].tags[0].key #=> String + # resp.categories[0].tags[0].value #=> String # resp.categories[0].input_type #=> String, one of "REAL_TIME", "POST_CALL" # # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/ListCallAnalyticsCategories AWS API Documentation @@ -2790,6 +2819,17 @@ def list_vocabulary_filters(params = {}, options = {}) # vocabulary filters, and custom vocabularies to your Call Analytics # job. # + # @option params [Array] :tags + # Adds one or more custom tags, each in the form of a key:value pair, to + # a new call analytics job at the time you start this new job. + # + # To learn more about using tags with Amazon Transcribe, refer to + # [Tagging resources][1]. + # + # + # + # [1]: https://docs.aws.amazon.com/transcribe/latest/dg/tagging.html + # # @option params [Array] :channel_definitions # Makes it possible to specify which speaker is on which channel. For # example, if your agent is the first participant to speak, you would @@ -2834,6 +2874,12 @@ def list_vocabulary_filters(params = {}, options = {}) # generate_abstractive_summary: false, # required # }, # }, + # tags: [ + # { + # key: "TagKey", # required + # value: "TagValue", # required + # }, + # ], # channel_definitions: [ # { # channel_id: 1, @@ -2881,6 +2927,9 @@ def list_vocabulary_filters(params = {}, options = {}) # resp.call_analytics_job.channel_definitions #=> Array # resp.call_analytics_job.channel_definitions[0].channel_id #=> Integer # resp.call_analytics_job.channel_definitions[0].participant_role #=> String, one of "AGENT", "CUSTOMER" + # resp.call_analytics_job.tags #=> Array + # resp.call_analytics_job.tags[0].key #=> String + # resp.call_analytics_job.tags[0].value #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/StartCallAnalyticsJob AWS API Documentation # @@ -4208,6 +4257,9 @@ def untag_resource(params = {}, options = {}) # resp.category_properties.rules[0].sentiment_filter.negate #=> Boolean # resp.category_properties.create_time #=> Time # resp.category_properties.last_update_time #=> Time + # resp.category_properties.tags #=> Array + # resp.category_properties.tags[0].key #=> String + # resp.category_properties.tags[0].value #=> String # resp.category_properties.input_type #=> String, one of "REAL_TIME", "POST_CALL" # # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/UpdateCallAnalyticsCategory AWS API Documentation @@ -4481,7 +4533,7 @@ def build_request(operation_name, params = {}) tracer: tracer ) context[:gem_name] = 'aws-sdk-transcribeservice' - context[:gem_version] = '1.110.0' + context[:gem_version] = '1.111.0' Seahorse::Client::Request.new(handlers, context) end diff --git a/gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice/client_api.rb b/gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice/client_api.rb index c3593e3180e..1c10e16b18e 100644 --- a/gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice/client_api.rb +++ b/gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice/client_api.rb @@ -254,6 +254,7 @@ module ClientApi CallAnalyticsJob.add_member(:identified_language_score, Shapes::ShapeRef.new(shape: IdentifiedLanguageScore, location_name: "IdentifiedLanguageScore")) CallAnalyticsJob.add_member(:settings, Shapes::ShapeRef.new(shape: CallAnalyticsJobSettings, location_name: "Settings")) CallAnalyticsJob.add_member(:channel_definitions, Shapes::ShapeRef.new(shape: ChannelDefinitions, location_name: "ChannelDefinitions")) + CallAnalyticsJob.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags")) CallAnalyticsJob.struct_class = Types::CallAnalyticsJob CallAnalyticsJobDetails.add_member(:skipped, Shapes::ShapeRef.new(shape: CallAnalyticsSkippedFeatureList, location_name: "Skipped")) @@ -292,6 +293,7 @@ module ClientApi CategoryProperties.add_member(:rules, Shapes::ShapeRef.new(shape: RuleList, location_name: "Rules")) CategoryProperties.add_member(:create_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "CreateTime")) CategoryProperties.add_member(:last_update_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "LastUpdateTime")) + CategoryProperties.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags")) CategoryProperties.add_member(:input_type, Shapes::ShapeRef.new(shape: InputType, location_name: "InputType")) CategoryProperties.struct_class = Types::CategoryProperties @@ -313,6 +315,7 @@ module ClientApi CreateCallAnalyticsCategoryRequest.add_member(:category_name, Shapes::ShapeRef.new(shape: CategoryName, required: true, location_name: "CategoryName")) CreateCallAnalyticsCategoryRequest.add_member(:rules, Shapes::ShapeRef.new(shape: RuleList, required: true, location_name: "Rules")) + CreateCallAnalyticsCategoryRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags")) CreateCallAnalyticsCategoryRequest.add_member(:input_type, Shapes::ShapeRef.new(shape: InputType, location_name: "InputType")) CreateCallAnalyticsCategoryRequest.struct_class = Types::CreateCallAnalyticsCategoryRequest @@ -779,6 +782,7 @@ module ClientApi StartCallAnalyticsJobRequest.add_member(:output_encryption_kms_key_id, Shapes::ShapeRef.new(shape: KMSKeyId, location_name: "OutputEncryptionKMSKeyId")) StartCallAnalyticsJobRequest.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: DataAccessRoleArn, location_name: "DataAccessRoleArn")) StartCallAnalyticsJobRequest.add_member(:settings, Shapes::ShapeRef.new(shape: CallAnalyticsJobSettings, location_name: "Settings")) + StartCallAnalyticsJobRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags")) StartCallAnalyticsJobRequest.add_member(:channel_definitions, Shapes::ShapeRef.new(shape: ChannelDefinitions, location_name: "ChannelDefinitions")) StartCallAnalyticsJobRequest.struct_class = Types::StartCallAnalyticsJobRequest diff --git a/gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice/types.rb b/gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice/types.rb index 6480fb47550..8e4e888117e 100644 --- a/gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice/types.rb +++ b/gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice/types.rb @@ -247,6 +247,11 @@ class BadRequestException < Struct.new( # Indicates which speaker is on which channel. # @return [Array] # + # @!attribute [rw] tags + # The tags, each in the form of a key:value pair, assigned to the + # specified call analytics job. + # @return [Array] + # # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/CallAnalyticsJob AWS API Documentation # class CallAnalyticsJob < Struct.new( @@ -265,7 +270,8 @@ class CallAnalyticsJob < Struct.new( :data_access_role_arn, :identified_language_score, :settings, - :channel_definitions) + :channel_definitions, + :tags) SENSITIVE = [] include Aws::Structure end @@ -561,6 +567,11 @@ class CallAnalyticsSkippedFeature < Struct.new( # UTC-7 on May 5, 2022. # @return [Time] # + # @!attribute [rw] tags + # The tags, each in the form of a key:value pair, assigned to the + # specified call analytics category. + # @return [Array] + # # @!attribute [rw] input_type # The input type associated with the specified category. `POST_CALL` # refers to a category that is applied to batch transcriptions; @@ -575,6 +586,7 @@ class CategoryProperties < Struct.new( :rules, :create_time, :last_update_time, + :tags, :input_type) SENSITIVE = [] include Aws::Structure @@ -679,6 +691,18 @@ class ContentRedaction < Struct.new( # 30 seconds of the call. # @return [Array] # + # @!attribute [rw] tags + # Adds one or more custom tags, each in the form of a key:value pair, + # to a new call analytics category at the time you start this new job. + # + # To learn more about using tags with Amazon Transcribe, refer to + # [Tagging resources][1]. + # + # + # + # [1]: https://docs.aws.amazon.com/transcribe/latest/dg/tagging.html + # @return [Array] + # # @!attribute [rw] input_type # Choose whether you want to create a real-time or a post-call # category for your Call Analytics transcription. @@ -700,6 +724,7 @@ class ContentRedaction < Struct.new( class CreateCallAnalyticsCategoryRequest < Struct.new( :category_name, :rules, + :tags, :input_type) SENSITIVE = [] include Aws::Structure @@ -4009,6 +4034,18 @@ class Settings < Struct.new( # job. # @return [Types::CallAnalyticsJobSettings] # + # @!attribute [rw] tags + # Adds one or more custom tags, each in the form of a key:value pair, + # to a new call analytics job at the time you start this new job. + # + # To learn more about using tags with Amazon Transcribe, refer to + # [Tagging resources][1]. + # + # + # + # [1]: https://docs.aws.amazon.com/transcribe/latest/dg/tagging.html + # @return [Array] + # # @!attribute [rw] channel_definitions # Makes it possible to specify which speaker is on which channel. For # example, if your agent is the first participant to speak, you would @@ -4026,6 +4063,7 @@ class StartCallAnalyticsJobRequest < Struct.new( :output_encryption_kms_key_id, :data_access_role_arn, :settings, + :tags, :channel_definitions) SENSITIVE = [] include Aws::Structure diff --git a/gems/aws-sdk-transcribeservice/sig/client.rbs b/gems/aws-sdk-transcribeservice/sig/client.rbs index 11139ebfec7..8d16a9f820d 100644 --- a/gems/aws-sdk-transcribeservice/sig/client.rbs +++ b/gems/aws-sdk-transcribeservice/sig/client.rbs @@ -155,6 +155,12 @@ module Aws }? }, ], + ?tags: Array[ + { + key: ::String, + value: ::String + }, + ], ?input_type: ("REAL_TIME" | "POST_CALL") ) -> _CreateCallAnalyticsCategoryResponseSuccess | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateCallAnalyticsCategoryResponseSuccess @@ -591,6 +597,12 @@ module Aws generate_abstractive_summary: bool }? }, + ?tags: Array[ + { + key: ::String, + value: ::String + }, + ], ?channel_definitions: Array[ { channel_id: ::Integer?, diff --git a/gems/aws-sdk-transcribeservice/sig/types.rbs b/gems/aws-sdk-transcribeservice/sig/types.rbs index c02df2a2335..fa933d175d6 100644 --- a/gems/aws-sdk-transcribeservice/sig/types.rbs +++ b/gems/aws-sdk-transcribeservice/sig/types.rbs @@ -38,6 +38,7 @@ module Aws::TranscribeService attr_accessor identified_language_score: ::Float attr_accessor settings: Types::CallAnalyticsJobSettings attr_accessor channel_definitions: ::Array[Types::ChannelDefinition] + attr_accessor tags: ::Array[Types::Tag] SENSITIVE: [] end @@ -82,6 +83,7 @@ module Aws::TranscribeService attr_accessor rules: ::Array[Types::Rule] attr_accessor create_time: ::Time attr_accessor last_update_time: ::Time + attr_accessor tags: ::Array[Types::Tag] attr_accessor input_type: ("REAL_TIME" | "POST_CALL") SENSITIVE: [] end @@ -107,6 +109,7 @@ module Aws::TranscribeService class CreateCallAnalyticsCategoryRequest attr_accessor category_name: ::String attr_accessor rules: ::Array[Types::Rule] + attr_accessor tags: ::Array[Types::Tag] attr_accessor input_type: ("REAL_TIME" | "POST_CALL") SENSITIVE: [] end @@ -719,6 +722,7 @@ module Aws::TranscribeService attr_accessor output_encryption_kms_key_id: ::String attr_accessor data_access_role_arn: ::String attr_accessor settings: Types::CallAnalyticsJobSettings + attr_accessor tags: ::Array[Types::Tag] attr_accessor channel_definitions: ::Array[Types::ChannelDefinition] SENSITIVE: [] end