Describes the capacity reservation status for the specified load balancer.
+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { ElasticLoadBalancingV2Client, DescribeCapacityReservationCommand } from "@aws-sdk/client-elastic-load-balancing-v2"; // ES Modules import + * // const { ElasticLoadBalancingV2Client, DescribeCapacityReservationCommand } = require("@aws-sdk/client-elastic-load-balancing-v2"); // CommonJS import + * const client = new ElasticLoadBalancingV2Client(config); + * const input = { // DescribeCapacityReservationInput + * LoadBalancerArn: "STRING_VALUE", // required + * }; + * const command = new DescribeCapacityReservationCommand(input); + * const response = await client.send(command); + * // { // DescribeCapacityReservationOutput + * // LastModifiedTime: new Date("TIMESTAMP"), + * // DecreaseRequestsRemaining: Number("int"), + * // MinimumLoadBalancerCapacity: { // MinimumLoadBalancerCapacity + * // CapacityUnits: Number("int"), + * // }, + * // CapacityReservationState: [ // ZonalCapacityReservationStates + * // { // ZonalCapacityReservationState + * // State: { // CapacityReservationStatus + * // Code: "provisioned" || "pending" || "rebalancing" || "failed", + * // Reason: "STRING_VALUE", + * // }, + * // AvailabilityZone: "STRING_VALUE", + * // EffectiveCapacityUnits: Number("double"), + * // }, + * // ], + * // }; + * + * ``` + * + * @param DescribeCapacityReservationCommandInput - {@link DescribeCapacityReservationCommandInput} + * @returns {@link DescribeCapacityReservationCommandOutput} + * @see {@link DescribeCapacityReservationCommandInput} for command's `input` shape. + * @see {@link DescribeCapacityReservationCommandOutput} for command's `response` shape. + * @see {@link ElasticLoadBalancingV2ClientResolvedConfig | config} for ElasticLoadBalancingV2Client's `config` shape. + * + * @throws {@link LoadBalancerNotFoundException} (client fault) + *The specified load balancer does not exist.
+ * + * @throws {@link ElasticLoadBalancingV2ServiceException} + *Base exception class for all service exceptions from ElasticLoadBalancingV2 service.
+ * + * @public + */ +export class DescribeCapacityReservationCommand extends $Command + .classBuilder< + DescribeCapacityReservationCommandInput, + DescribeCapacityReservationCommandOutput, + ElasticLoadBalancingV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: ElasticLoadBalancingV2ClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("ElasticLoadBalancing_v10", "DescribeCapacityReservation", {}) + .n("ElasticLoadBalancingV2Client", "DescribeCapacityReservationCommand") + .f(void 0, void 0) + .ser(se_DescribeCapacityReservationCommand) + .de(de_DescribeCapacityReservationCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: DescribeCapacityReservationInput; + output: DescribeCapacityReservationOutput; + }; + sdk: { + input: DescribeCapacityReservationCommandInput; + output: DescribeCapacityReservationCommandOutput; + }; + }; +} diff --git a/clients/client-elastic-load-balancing-v2/src/commands/ModifyCapacityReservationCommand.ts b/clients/client-elastic-load-balancing-v2/src/commands/ModifyCapacityReservationCommand.ts new file mode 100644 index 0000000000000..cecbdae36011e --- /dev/null +++ b/clients/client-elastic-load-balancing-v2/src/commands/ModifyCapacityReservationCommand.ts @@ -0,0 +1,140 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { + ElasticLoadBalancingV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes, +} from "../ElasticLoadBalancingV2Client"; +import { commonParams } from "../endpoint/EndpointParameters"; +import { ModifyCapacityReservationInput, ModifyCapacityReservationOutput } from "../models/models_0"; +import { de_ModifyCapacityReservationCommand, se_ModifyCapacityReservationCommand } from "../protocols/Aws_query"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link ModifyCapacityReservationCommand}. + */ +export interface ModifyCapacityReservationCommandInput extends ModifyCapacityReservationInput {} +/** + * @public + * + * The output of {@link ModifyCapacityReservationCommand}. + */ +export interface ModifyCapacityReservationCommandOutput extends ModifyCapacityReservationOutput, __MetadataBearer {} + +/** + *Modifies the capacity reservation of the specified load balancer.
+ *When modifying capacity reservation, you must include at least one MinimumLoadBalancerCapacity
+ * or ResetCapacityReservation
.
You've exceeded the daily capacity decrease limit for this reservation.
+ * + * @throws {@link CapacityReservationPendingException} (client fault) + *There is a pending capacity reservation.
+ * + * @throws {@link CapacityUnitsLimitExceededException} (client fault) + *You've exceeded the capacity units limit.
+ * + * @throws {@link InsufficientCapacityException} (server fault) + *There is insufficient capacity to reserve.
+ * + * @throws {@link InvalidConfigurationRequestException} (client fault) + *The requested configuration is not valid.
+ * + * @throws {@link LoadBalancerNotFoundException} (client fault) + *The specified load balancer does not exist.
+ * + * @throws {@link OperationNotPermittedException} (client fault) + *This operation is not allowed.
+ * + * @throws {@link PriorRequestNotCompleteException} (client fault) + *This operation is not allowed while a prior request has not been completed.
+ * + * @throws {@link ElasticLoadBalancingV2ServiceException} + *Base exception class for all service exceptions from ElasticLoadBalancingV2 service.
+ * + * @public + */ +export class ModifyCapacityReservationCommand extends $Command + .classBuilder< + ModifyCapacityReservationCommandInput, + ModifyCapacityReservationCommandOutput, + ElasticLoadBalancingV2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: ElasticLoadBalancingV2ClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("ElasticLoadBalancing_v10", "ModifyCapacityReservation", {}) + .n("ElasticLoadBalancingV2Client", "ModifyCapacityReservationCommand") + .f(void 0, void 0) + .ser(se_ModifyCapacityReservationCommand) + .de(de_ModifyCapacityReservationCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: ModifyCapacityReservationInput; + output: ModifyCapacityReservationOutput; + }; + sdk: { + input: ModifyCapacityReservationCommandInput; + output: ModifyCapacityReservationCommandOutput; + }; + }; +} diff --git a/clients/client-elastic-load-balancing-v2/src/commands/SetSubnetsCommand.ts b/clients/client-elastic-load-balancing-v2/src/commands/SetSubnetsCommand.ts index 12a0a183fbb5c..306ee16ad508a 100644 --- a/clients/client-elastic-load-balancing-v2/src/commands/SetSubnetsCommand.ts +++ b/clients/client-elastic-load-balancing-v2/src/commands/SetSubnetsCommand.ts @@ -100,6 +100,9 @@ export interface SetSubnetsCommandOutput extends SetSubnetsOutput, __MetadataBea * @throws {@link AvailabilityZoneNotSupportedException} (client fault) *The specified Availability Zone is not supported.
* + * @throws {@link CapacityReservationPendingException} (client fault) + *There is a pending capacity reservation.
+ * * @throws {@link InvalidConfigurationRequestException} (client fault) *The requested configuration is not valid.
* diff --git a/clients/client-elastic-load-balancing-v2/src/commands/index.ts b/clients/client-elastic-load-balancing-v2/src/commands/index.ts index 394a3515c90df..3975ae263743b 100644 --- a/clients/client-elastic-load-balancing-v2/src/commands/index.ts +++ b/clients/client-elastic-load-balancing-v2/src/commands/index.ts @@ -15,6 +15,7 @@ export * from "./DeleteTargetGroupCommand"; export * from "./DeleteTrustStoreCommand"; export * from "./DeregisterTargetsCommand"; export * from "./DescribeAccountLimitsCommand"; +export * from "./DescribeCapacityReservationCommand"; export * from "./DescribeListenerAttributesCommand"; export * from "./DescribeListenerCertificatesCommand"; export * from "./DescribeListenersCommand"; @@ -32,6 +33,7 @@ export * from "./DescribeTrustStoresCommand"; export * from "./GetResourcePolicyCommand"; export * from "./GetTrustStoreCaCertificatesBundleCommand"; export * from "./GetTrustStoreRevocationContentCommand"; +export * from "./ModifyCapacityReservationCommand"; export * from "./ModifyListenerAttributesCommand"; export * from "./ModifyListenerCommand"; export * from "./ModifyLoadBalancerAttributesCommand"; diff --git a/clients/client-elastic-load-balancing-v2/src/models/models_0.ts b/clients/client-elastic-load-balancing-v2/src/models/models_0.ts index ad86ae172106d..e4a20f8c13fdf 100644 --- a/clients/client-elastic-load-balancing-v2/src/models/models_0.ts +++ b/clients/client-elastic-load-balancing-v2/src/models/models_0.ts @@ -1187,6 +1187,107 @@ export class CaCertificatesBundleNotFoundException extends __BaseException { } } +/** + *You've exceeded the daily capacity decrease limit for this reservation.
+ * @public + */ +export class CapacityDecreaseRequestsLimitExceededException extends __BaseException { + readonly name: "CapacityDecreaseRequestsLimitExceededException" = "CapacityDecreaseRequestsLimitExceededException"; + readonly $fault: "client" = "client"; + Message?: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionTypeThere is a pending capacity reservation.
+ * @public + */ +export class CapacityReservationPendingException extends __BaseException { + readonly name: "CapacityReservationPendingException" = "CapacityReservationPendingException"; + readonly $fault: "client" = "client"; + Message?: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionTypeThe status of a capacity reservation.
+ * @public + */ +export interface CapacityReservationStatus { + /** + *The status code.
+ * @public + */ + Code?: CapacityReservationStateEnum | undefined; + + /** + *The reason code for the status.
+ * @public + */ + Reason?: string | undefined; +} + +/** + *You've exceeded the capacity units limit.
+ * @public + */ +export class CapacityUnitsLimitExceededException extends __BaseException { + readonly name: "CapacityUnitsLimitExceededException" = "CapacityUnitsLimitExceededException"; + readonly $fault: "client" = "client"; + Message?: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionTypeInformation about a cipher used in a policy.
* @public @@ -3658,6 +3759,82 @@ export interface DescribeAccountLimitsOutput { NextMarker?: string | undefined; } +/** + * @public + */ +export interface DescribeCapacityReservationInput { + /** + *The Amazon Resource Name (ARN) of the load balancer.
+ * @public + */ + LoadBalancerArn: string | undefined; +} + +/** + *The capacity reservation status for each availability zone.
+ * @public + */ +export interface ZonalCapacityReservationState { + /** + *The state of the capacity reservation.
+ * @public + */ + State?: CapacityReservationStatus | undefined; + + /** + *Information about the availability zone.
+ * @public + */ + AvailabilityZone?: string | undefined; + + /** + *The number of effective capacity units.
+ * @public + */ + EffectiveCapacityUnits?: number | undefined; +} + +/** + *The minimum capacity for a load balancer.
+ * @public + */ +export interface MinimumLoadBalancerCapacity { + /** + *The number of capacity units.
+ * @public + */ + CapacityUnits?: number | undefined; +} + +/** + * @public + */ +export interface DescribeCapacityReservationOutput { + /** + *The last time the capacity reservation was modified.
+ * @public + */ + LastModifiedTime?: Date | undefined; + + /** + *The amount of daily capacity decreases remaining.
+ * @public + */ + DecreaseRequestsRemaining?: number | undefined; + + /** + *The requested minimum capacity reservation for the load balancer
+ * @public + */ + MinimumLoadBalancerCapacity?: MinimumLoadBalancerCapacity | undefined; + + /** + *The state of the capacity reservation.
+ * @public + */ + CapacityReservationState?: ZonalCapacityReservationState[] | undefined; +} + /** * @public */ @@ -5072,6 +5249,102 @@ export interface GetTrustStoreRevocationContentOutput { Location?: string | undefined; } +/** + *There is insufficient capacity to reserve.
+ * @public + */ +export class InsufficientCapacityException extends __BaseException { + readonly name: "InsufficientCapacityException" = "InsufficientCapacityException"; + readonly $fault: "server" = "server"; + Message?: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionTypeThe Amazon Resource Name (ARN) of the load balancer.
+ * @public + */ + LoadBalancerArn: string | undefined; + + /** + *The minimum load balancer capacity reserved.
+ * @public + */ + MinimumLoadBalancerCapacity?: MinimumLoadBalancerCapacity | undefined; + + /** + *Resets the capacity reservation.
+ * @public + */ + ResetCapacityReservation?: boolean | undefined; +} + +/** + * @public + */ +export interface ModifyCapacityReservationOutput { + /** + *The last time the capacity reservation was modified.
+ * @public + */ + LastModifiedTime?: Date | undefined; + + /** + *The amount of daily capacity decreases remaining.
+ * @public + */ + DecreaseRequestsRemaining?: number | undefined; + + /** + *The requested minimum capacity reservation for the load balancer
+ * @public + */ + MinimumLoadBalancerCapacity?: MinimumLoadBalancerCapacity | undefined; + + /** + *The state of the capacity reservation.
+ * @public + */ + CapacityReservationState?: ZonalCapacityReservationState[] | undefined; +} + +/** + *This operation is not allowed while a prior request has not been completed.
+ * @public + */ +export class PriorRequestNotCompleteException extends __BaseException { + readonly name: "PriorRequestNotCompleteException" = "PriorRequestNotCompleteException"; + readonly $fault: "client" = "client"; + Message?: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionTypeYou've exceeded the daily capacity decrease limit for this reservation.
", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.elasticloadbalancingv2#CapacityReservationPendingException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.elasticloadbalancingv2#ErrorDescription" + } + }, + "traits": { + "aws.protocols#awsQueryError": { + "code": "CapacityReservationPending", + "httpResponseCode": 400 + }, + "smithy.api#documentation": "There is a pending capacity reservation.
", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.elasticloadbalancingv2#CapacityReservationStateEnum": { + "type": "enum", + "members": { + "PROVISIONED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "provisioned" + } + }, + "PENDING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "pending" + } + }, + "REBALANCING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "rebalancing" + } + }, + "FAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "failed" + } + } + } + }, + "com.amazonaws.elasticloadbalancingv2#CapacityReservationStatus": { + "type": "structure", + "members": { + "Code": { + "target": "com.amazonaws.elasticloadbalancingv2#CapacityReservationStateEnum", + "traits": { + "smithy.api#documentation": "The status code.
" + } + }, + "Reason": { + "target": "com.amazonaws.elasticloadbalancingv2#StateReason", + "traits": { + "smithy.api#documentation": "The reason code for the status.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The status of a capacity reservation.
" + } + }, + "com.amazonaws.elasticloadbalancingv2#CapacityUnits": { + "type": "integer" + }, + "com.amazonaws.elasticloadbalancingv2#CapacityUnitsDouble": { + "type": "double" + }, + "com.amazonaws.elasticloadbalancingv2#CapacityUnitsLimitExceededException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.elasticloadbalancingv2#ErrorDescription" + } + }, + "traits": { + "aws.protocols#awsQueryError": { + "code": "CapacityUnitsLimitExceeded", + "httpResponseCode": 400 + }, + "smithy.api#documentation": "You've exceeded the capacity units limit.
", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, "com.amazonaws.elasticloadbalancingv2#Certificate": { "type": "structure", "members": { @@ -1796,6 +1902,9 @@ "com.amazonaws.elasticloadbalancingv2#DNSName": { "type": "string" }, + "com.amazonaws.elasticloadbalancingv2#DecreaseRequestsRemaining": { + "type": "integer" + }, "com.amazonaws.elasticloadbalancingv2#Default": { "type": "boolean" }, @@ -2248,6 +2357,71 @@ "smithy.api#output": {} } }, + "com.amazonaws.elasticloadbalancingv2#DescribeCapacityReservation": { + "type": "operation", + "input": { + "target": "com.amazonaws.elasticloadbalancingv2#DescribeCapacityReservationInput" + }, + "output": { + "target": "com.amazonaws.elasticloadbalancingv2#DescribeCapacityReservationOutput" + }, + "errors": [ + { + "target": "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException" + } + ], + "traits": { + "smithy.api#documentation": "Describes the capacity reservation status for the specified load balancer.
" + } + }, + "com.amazonaws.elasticloadbalancingv2#DescribeCapacityReservationInput": { + "type": "structure", + "members": { + "LoadBalancerArn": { + "target": "com.amazonaws.elasticloadbalancingv2#LoadBalancerArn", + "traits": { + "smithy.api#clientOptional": {}, + "smithy.api#documentation": "The Amazon Resource Name (ARN) of the load balancer.
", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.elasticloadbalancingv2#DescribeCapacityReservationOutput": { + "type": "structure", + "members": { + "LastModifiedTime": { + "target": "com.amazonaws.elasticloadbalancingv2#LastModifiedTime", + "traits": { + "smithy.api#documentation": "The last time the capacity reservation was modified.
" + } + }, + "DecreaseRequestsRemaining": { + "target": "com.amazonaws.elasticloadbalancingv2#DecreaseRequestsRemaining", + "traits": { + "smithy.api#documentation": "The amount of daily capacity decreases remaining.
" + } + }, + "MinimumLoadBalancerCapacity": { + "target": "com.amazonaws.elasticloadbalancingv2#MinimumLoadBalancerCapacity", + "traits": { + "smithy.api#documentation": "The requested minimum capacity reservation for the load balancer
" + } + }, + "CapacityReservationState": { + "target": "com.amazonaws.elasticloadbalancingv2#ZonalCapacityReservationStates", + "traits": { + "smithy.api#documentation": "The state of the capacity reservation.
" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.elasticloadbalancingv2#DescribeListenerAttributes": { "type": "operation", "input": { @@ -3893,6 +4067,9 @@ { "target": "com.amazonaws.elasticloadbalancingv2#DescribeAccountLimits" }, + { + "target": "com.amazonaws.elasticloadbalancingv2#DescribeCapacityReservation" + }, { "target": "com.amazonaws.elasticloadbalancingv2#DescribeListenerAttributes" }, @@ -3944,6 +4121,9 @@ { "target": "com.amazonaws.elasticloadbalancingv2#GetTrustStoreRevocationContent" }, + { + "target": "com.amazonaws.elasticloadbalancingv2#ModifyCapacityReservation" + }, { "target": "com.amazonaws.elasticloadbalancingv2#ModifyListener" }, @@ -5430,6 +5610,23 @@ "smithy.api#httpError": 400 } }, + "com.amazonaws.elasticloadbalancingv2#InsufficientCapacityException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.elasticloadbalancingv2#ErrorDescription" + } + }, + "traits": { + "aws.protocols#awsQueryError": { + "code": "InsufficientCapacity", + "httpResponseCode": 500 + }, + "smithy.api#documentation": "There is insufficient capacity to reserve.
", + "smithy.api#error": "server", + "smithy.api#httpError": 500 + } + }, "com.amazonaws.elasticloadbalancingv2#InvalidCaCertificatesBundleException": { "type": "structure", "members": { @@ -5595,6 +5792,9 @@ "com.amazonaws.elasticloadbalancingv2#IsDefault": { "type": "boolean" }, + "com.amazonaws.elasticloadbalancingv2#LastModifiedTime": { + "type": "timestamp" + }, "com.amazonaws.elasticloadbalancingv2#Limit": { "type": "structure", "members": { @@ -6112,6 +6312,20 @@ "com.amazonaws.elasticloadbalancingv2#Max": { "type": "string" }, + "com.amazonaws.elasticloadbalancingv2#MinimumLoadBalancerCapacity": { + "type": "structure", + "members": { + "CapacityUnits": { + "target": "com.amazonaws.elasticloadbalancingv2#CapacityUnits", + "traits": { + "smithy.api#documentation": "The number of capacity units.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The minimum capacity for a load balancer.
" + } + }, "com.amazonaws.elasticloadbalancingv2#MitigationInEffectEnum": { "type": "enum", "members": { @@ -6132,6 +6346,104 @@ "com.amazonaws.elasticloadbalancingv2#Mode": { "type": "string" }, + "com.amazonaws.elasticloadbalancingv2#ModifyCapacityReservation": { + "type": "operation", + "input": { + "target": "com.amazonaws.elasticloadbalancingv2#ModifyCapacityReservationInput" + }, + "output": { + "target": "com.amazonaws.elasticloadbalancingv2#ModifyCapacityReservationOutput" + }, + "errors": [ + { + "target": "com.amazonaws.elasticloadbalancingv2#CapacityDecreaseRequestsLimitExceededException" + }, + { + "target": "com.amazonaws.elasticloadbalancingv2#CapacityReservationPendingException" + }, + { + "target": "com.amazonaws.elasticloadbalancingv2#CapacityUnitsLimitExceededException" + }, + { + "target": "com.amazonaws.elasticloadbalancingv2#InsufficientCapacityException" + }, + { + "target": "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException" + }, + { + "target": "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException" + }, + { + "target": "com.amazonaws.elasticloadbalancingv2#OperationNotPermittedException" + }, + { + "target": "com.amazonaws.elasticloadbalancingv2#PriorRequestNotCompleteException" + } + ], + "traits": { + "smithy.api#documentation": "Modifies the capacity reservation of the specified load balancer.
\nWhen modifying capacity reservation, you must include at least one MinimumLoadBalancerCapacity
\n or ResetCapacityReservation
.
The Amazon Resource Name (ARN) of the load balancer.
", + "smithy.api#required": {} + } + }, + "MinimumLoadBalancerCapacity": { + "target": "com.amazonaws.elasticloadbalancingv2#MinimumLoadBalancerCapacity", + "traits": { + "smithy.api#documentation": "The minimum load balancer capacity reserved.
" + } + }, + "ResetCapacityReservation": { + "target": "com.amazonaws.elasticloadbalancingv2#ResetCapacityReservation", + "traits": { + "smithy.api#documentation": "Resets the capacity reservation.
" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.elasticloadbalancingv2#ModifyCapacityReservationOutput": { + "type": "structure", + "members": { + "LastModifiedTime": { + "target": "com.amazonaws.elasticloadbalancingv2#LastModifiedTime", + "traits": { + "smithy.api#documentation": "The last time the capacity reservation was modified.
" + } + }, + "DecreaseRequestsRemaining": { + "target": "com.amazonaws.elasticloadbalancingv2#DecreaseRequestsRemaining", + "traits": { + "smithy.api#documentation": "The amount of daily capacity decreases remaining.
" + } + }, + "MinimumLoadBalancerCapacity": { + "target": "com.amazonaws.elasticloadbalancingv2#MinimumLoadBalancerCapacity", + "traits": { + "smithy.api#documentation": "The requested minimum capacity reservation for the load balancer
" + } + }, + "CapacityReservationState": { + "target": "com.amazonaws.elasticloadbalancingv2#ZonalCapacityReservationStates", + "traits": { + "smithy.api#documentation": "The state of the capacity reservation.
" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.elasticloadbalancingv2#ModifyListener": { "type": "operation", "input": { @@ -7118,6 +7430,23 @@ } } }, + "com.amazonaws.elasticloadbalancingv2#PriorRequestNotCompleteException": { + "type": "structure", + "members": { + "Message": { + "target": "com.amazonaws.elasticloadbalancingv2#ErrorDescription" + } + }, + "traits": { + "aws.protocols#awsQueryError": { + "code": "PriorRequestNotComplete", + "httpResponseCode": 429 + }, + "smithy.api#documentation": "This operation is not allowed while a prior request has not been completed.
", + "smithy.api#error": "client", + "smithy.api#httpError": 429 + } + }, "com.amazonaws.elasticloadbalancingv2#PriorityInUseException": { "type": "structure", "members": { @@ -7595,6 +7924,9 @@ "smithy.api#output": {} } }, + "com.amazonaws.elasticloadbalancingv2#ResetCapacityReservation": { + "type": "boolean" + }, "com.amazonaws.elasticloadbalancingv2#ResourceArn": { "type": "string" }, @@ -8182,6 +8514,9 @@ { "target": "com.amazonaws.elasticloadbalancingv2#AvailabilityZoneNotSupportedException" }, + { + "target": "com.amazonaws.elasticloadbalancingv2#CapacityReservationPendingException" + }, { "target": "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException" }, @@ -9592,6 +9927,38 @@ "com.amazonaws.elasticloadbalancingv2#VpcId": { "type": "string" }, + "com.amazonaws.elasticloadbalancingv2#ZonalCapacityReservationState": { + "type": "structure", + "members": { + "State": { + "target": "com.amazonaws.elasticloadbalancingv2#CapacityReservationStatus", + "traits": { + "smithy.api#documentation": "The state of the capacity reservation.
" + } + }, + "AvailabilityZone": { + "target": "com.amazonaws.elasticloadbalancingv2#ZoneName", + "traits": { + "smithy.api#documentation": "Information about the availability zone.
" + } + }, + "EffectiveCapacityUnits": { + "target": "com.amazonaws.elasticloadbalancingv2#CapacityUnitsDouble", + "traits": { + "smithy.api#documentation": "The number of effective capacity units.
" + } + } + }, + "traits": { + "smithy.api#documentation": "The capacity reservation status for each availability zone.
" + } + }, + "com.amazonaws.elasticloadbalancingv2#ZonalCapacityReservationStates": { + "type": "list", + "member": { + "target": "com.amazonaws.elasticloadbalancingv2#ZonalCapacityReservationState" + } + }, "com.amazonaws.elasticloadbalancingv2#ZoneName": { "type": "string" }