diff --git a/clients/client-elastic-load-balancing-v2/src/commands/DescribeTargetHealthCommand.ts b/clients/client-elastic-load-balancing-v2/src/commands/DescribeTargetHealthCommand.ts index fe0dac1a9b92..0168ad149f3e 100644 --- a/clients/client-elastic-load-balancing-v2/src/commands/DescribeTargetHealthCommand.ts +++ b/clients/client-elastic-load-balancing-v2/src/commands/DescribeTargetHealthCommand.ts @@ -72,6 +72,11 @@ export interface DescribeTargetHealthCommandOutput extends DescribeTargetHealthO * // Result: "anomalous" || "normal", * // MitigationInEffect: "yes" || "no", * // }, + * // AdministrativeOverride: { // AdministrativeOverride + * // State: "unknown" || "no_override" || "zonal_shift_active" || "zonal_shift_delegated_to_dns", + * // Reason: "AdministrativeOverride.Unknown" || "AdministrativeOverride.NoOverride" || "AdministrativeOverride.ZonalShiftActive" || "AdministrativeOverride.ZonalShiftDelegatedToDns", + * // Description: "STRING_VALUE", + * // }, * // }, * // ], * // }; 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 e815ac1564e9..eb6e6b15cda8 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 @@ -922,6 +922,64 @@ export class TooManyTrustStoreRevocationEntriesException extends __BaseException } } +/** + * @public + * @enum + */ +export const TargetAdministrativeOverrideReasonEnum = { + INTERNAL_ERROR: "AdministrativeOverride.Unknown", + NO_OVERRIDE_ENGAGED: "AdministrativeOverride.NoOverride", + ZONAL_SHIFT_DELEGATED_TO_DNS: "AdministrativeOverride.ZonalShiftDelegatedToDns", + ZONAL_SHIFT_ENGAGED: "AdministrativeOverride.ZonalShiftActive", +} as const; + +/** + * @public + */ +export type TargetAdministrativeOverrideReasonEnum = + (typeof TargetAdministrativeOverrideReasonEnum)[keyof typeof TargetAdministrativeOverrideReasonEnum]; + +/** + * @public + * @enum + */ +export const TargetAdministrativeOverrideStateEnum = { + NO_OVERRIDE: "no_override", + UNKNOWN: "unknown", + ZONAL_SHIFT_ACTIVE: "zonal_shift_active", + ZONAL_SHIFT_DELEGATED_TO_DNS: "zonal_shift_delegated_to_dns", +} as const; + +/** + * @public + */ +export type TargetAdministrativeOverrideStateEnum = + (typeof TargetAdministrativeOverrideStateEnum)[keyof typeof TargetAdministrativeOverrideStateEnum]; + +/** + *

Information about the override status applied to a target.

+ * @public + */ +export interface AdministrativeOverride { + /** + *

The state of the override.

+ * @public + */ + State?: TargetAdministrativeOverrideStateEnum; + + /** + *

The reason code for the state.

+ * @public + */ + Reason?: TargetAdministrativeOverrideReasonEnum; + + /** + *

A description of the override state that provides additional details.

+ * @public + */ + Description?: string; +} + /** *

The specified allocation ID does not exist.

* @public @@ -3884,6 +3942,12 @@ export interface LoadBalancerAttribute { * partial_availability_zone_affinity with 85 percent zonal affinity, * and any_availability_zone with 0 percent zonal affinity.

* + *
  • + *

    + * zonal_shift.config.enabled - Indicates whether zonal shift is + * enabled. The possible values are true and false. The + * default is false.

    + *
  • * * @public */ @@ -4639,6 +4703,12 @@ export interface TargetHealthDescription { * @public */ AnomalyDetection?: AnomalyDetection; + + /** + *

    The administrative override information for the target.

    + * @public + */ + AdministrativeOverride?: AdministrativeOverride; } /** diff --git a/clients/client-elastic-load-balancing-v2/src/protocols/Aws_query.ts b/clients/client-elastic-load-balancing-v2/src/protocols/Aws_query.ts index ca7f4319b4c9..b96517bd5527 100644 --- a/clients/client-elastic-load-balancing-v2/src/protocols/Aws_query.ts +++ b/clients/client-elastic-load-balancing-v2/src/protocols/Aws_query.ts @@ -144,6 +144,7 @@ import { AddTagsOutput, AddTrustStoreRevocationsInput, AddTrustStoreRevocationsOutput, + AdministrativeOverride, AllocationIdNotFoundException, ALPNPolicyNotSupportedException, AnomalyDetection, @@ -5563,6 +5564,23 @@ const de_AddTrustStoreRevocationsOutput = (output: any, context: __SerdeContext) return contents; }; +/** + * deserializeAws_queryAdministrativeOverride + */ +const de_AdministrativeOverride = (output: any, context: __SerdeContext): AdministrativeOverride => { + const contents: any = {}; + if (output[_St] != null) { + contents[_St] = __expectString(output[_St]); + } + if (output[_R] != null) { + contents[_R] = __expectString(output[_R]); + } + if (output[_D] != null) { + contents[_D] = __expectString(output[_D]); + } + return contents; +}; + /** * deserializeAws_queryAllocationIdNotFoundException */ @@ -5601,8 +5619,8 @@ const de_ALPNPolicyNotSupportedException = (output: any, context: __SerdeContext */ const de_AnomalyDetection = (output: any, context: __SerdeContext): AnomalyDetection => { const contents: any = {}; - if (output[_R] != null) { - contents[_R] = __expectString(output[_R]); + if (output[_Re] != null) { + contents[_Re] = __expectString(output[_Re]); } if (output[_MIE] != null) { contents[_MIE] = __expectString(output[_MIE]); @@ -6843,8 +6861,8 @@ const de_LoadBalancerState = (output: any, context: __SerdeContext): LoadBalance if (output[_Cod] != null) { contents[_Cod] = __expectString(output[_Cod]); } - if (output[_Re] != null) { - contents[_Re] = __expectString(output[_Re]); + if (output[_R] != null) { + contents[_R] = __expectString(output[_R]); } return contents; }; @@ -7649,8 +7667,8 @@ const de_TargetHealth = (output: any, context: __SerdeContext): TargetHealth => if (output[_St] != null) { contents[_St] = __expectString(output[_St]); } - if (output[_Re] != null) { - contents[_Re] = __expectString(output[_Re]); + if (output[_R] != null) { + contents[_R] = __expectString(output[_R]); } if (output[_D] != null) { contents[_D] = __expectString(output[_D]); @@ -7675,6 +7693,9 @@ const de_TargetHealthDescription = (output: any, context: __SerdeContext): Targe if (output[_AD] != null) { contents[_AD] = de_AnomalyDetection(output[_AD], context); } + if (output[_AO] != null) { + contents[_AO] = de_AdministrativeOverride(output[_AO], context); + } return contents; }; @@ -8023,6 +8044,7 @@ const _AD = "AnomalyDetection"; const _AE = "AuthorizationEndpoint"; const _AI = "AllocationId"; const _ALC = "AddListenerCertificates"; +const _AO = "AdministrativeOverride"; const _AOC = "AuthenticateOidcConfig"; const _AP = "AlpnPolicy"; const _AREP = "AuthenticationRequestExtraParams"; @@ -8153,7 +8175,7 @@ const _Pol = "Policy"; const _Pr = "Priority"; const _Q = "Query"; const _QSC = "QueryStringConfig"; -const _R = "Result"; +const _R = "Reason"; const _RA = "ResourceArns"; const _RAe = "ResourceArn"; const _RAu = "RuleArn"; @@ -8168,7 +8190,7 @@ const _RT = "RegisterTargets"; const _RTSR = "RemoveTrustStoreRevocations"; const _RTe = "RemoveTags"; const _RTev = "RevocationType"; -const _Re = "Reason"; +const _Re = "Result"; const _Ru = "Rules"; const _S = "Scope"; const _SB = "S3Bucket"; diff --git a/codegen/sdk-codegen/aws-models/elastic-load-balancing-v2.json b/codegen/sdk-codegen/aws-models/elastic-load-balancing-v2.json index 600f6d2f21fe..a2f7b6bdc125 100644 --- a/codegen/sdk-codegen/aws-models/elastic-load-balancing-v2.json +++ b/codegen/sdk-codegen/aws-models/elastic-load-balancing-v2.json @@ -364,6 +364,32 @@ "smithy.api#output": {} } }, + "com.amazonaws.elasticloadbalancingv2#AdministrativeOverride": { + "type": "structure", + "members": { + "State": { + "target": "com.amazonaws.elasticloadbalancingv2#TargetAdministrativeOverrideStateEnum", + "traits": { + "smithy.api#documentation": "

    The state of the override.

    " + } + }, + "Reason": { + "target": "com.amazonaws.elasticloadbalancingv2#TargetAdministrativeOverrideReasonEnum", + "traits": { + "smithy.api#documentation": "

    The reason code for the state.

    " + } + }, + "Description": { + "target": "com.amazonaws.elasticloadbalancingv2#Description", + "traits": { + "smithy.api#documentation": "

    A description of the override state that provides additional details.

    " + } + } + }, + "traits": { + "smithy.api#documentation": "

    Information about the override status applied to a target.

    " + } + }, "com.amazonaws.elasticloadbalancingv2#AllocationId": { "type": "string" }, @@ -5856,7 +5882,7 @@ "Key": { "target": "com.amazonaws.elasticloadbalancingv2#LoadBalancerAttributeKey", "traits": { - "smithy.api#documentation": "

    The name of the attribute.

    \n

    The following attributes are supported by all load balancers:

    \n \n

    The following attributes are supported by both Application Load Balancers and Network Load\n Balancers:

    \n \n

    The following attributes are supported by only Application Load Balancers:

    \n \n

    The following attributes are supported by only Network Load Balancers:

    \n " + "smithy.api#documentation": "

    The name of the attribute.

    \n

    The following attributes are supported by all load balancers:

    \n \n

    The following attributes are supported by both Application Load Balancers and Network Load\n Balancers:

    \n \n

    The following attributes are supported by only Application Load Balancers:

    \n \n

    The following attributes are supported by only Network Load Balancers:

    \n " } }, "Value": { @@ -8442,6 +8468,64 @@ "smithy.api#pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" } }, + "com.amazonaws.elasticloadbalancingv2#TargetAdministrativeOverrideReasonEnum": { + "type": "enum", + "members": { + "INTERNAL_ERROR": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AdministrativeOverride.Unknown" + } + }, + "NO_OVERRIDE_ENGAGED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AdministrativeOverride.NoOverride" + } + }, + "ZONAL_SHIFT_ENGAGED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AdministrativeOverride.ZonalShiftActive" + } + }, + "ZONAL_SHIFT_DELEGATED_TO_DNS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AdministrativeOverride.ZonalShiftDelegatedToDns" + } + } + } + }, + "com.amazonaws.elasticloadbalancingv2#TargetAdministrativeOverrideStateEnum": { + "type": "enum", + "members": { + "UNKNOWN": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "unknown" + } + }, + "NO_OVERRIDE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "no_override" + } + }, + "ZONAL_SHIFT_ACTIVE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "zonal_shift_active" + } + }, + "ZONAL_SHIFT_DELEGATED_TO_DNS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "zonal_shift_delegated_to_dns" + } + } + } + }, "com.amazonaws.elasticloadbalancingv2#TargetDescription": { "type": "structure", "members": { @@ -8813,6 +8897,12 @@ "traits": { "smithy.api#documentation": "

    The anomaly detection result for the target.

    \n

    If no anomalies were detected, the result is normal.

    \n

    If anomalies were detected, the result is anomalous.

    " } + }, + "AdministrativeOverride": { + "target": "com.amazonaws.elasticloadbalancingv2#AdministrativeOverride", + "traits": { + "smithy.api#documentation": "

    The administrative override information for the target.

    " + } } }, "traits": {