Skip to content

Commit 809828e

Browse files
author
awstools
committed
feat(client-elastic-load-balancing-v2): Add zonal_shift.config.enabled attribute. Add new AdministrativeOverride construct in the describe-target-health API response to include information about the override status applied to a target.
1 parent bc47ba4 commit 809828e

File tree

4 files changed

+196
-9
lines changed

4 files changed

+196
-9
lines changed

clients/client-elastic-load-balancing-v2/src/commands/DescribeTargetHealthCommand.ts

+5
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ export interface DescribeTargetHealthCommandOutput extends DescribeTargetHealthO
7272
* // Result: "anomalous" || "normal",
7373
* // MitigationInEffect: "yes" || "no",
7474
* // },
75+
* // AdministrativeOverride: { // AdministrativeOverride
76+
* // State: "unknown" || "no_override" || "zonal_shift_active" || "zonal_shift_delegated_to_dns",
77+
* // Reason: "AdministrativeOverride.Unknown" || "AdministrativeOverride.NoOverride" || "AdministrativeOverride.ZonalShiftActive" || "AdministrativeOverride.ZonalShiftDelegatedToDns",
78+
* // Description: "STRING_VALUE",
79+
* // },
7580
* // },
7681
* // ],
7782
* // };

clients/client-elastic-load-balancing-v2/src/models/models_0.ts

+70
Original file line numberDiff line numberDiff line change
@@ -922,6 +922,64 @@ export class TooManyTrustStoreRevocationEntriesException extends __BaseException
922922
}
923923
}
924924

925+
/**
926+
* @public
927+
* @enum
928+
*/
929+
export const TargetAdministrativeOverrideReasonEnum = {
930+
INTERNAL_ERROR: "AdministrativeOverride.Unknown",
931+
NO_OVERRIDE_ENGAGED: "AdministrativeOverride.NoOverride",
932+
ZONAL_SHIFT_DELEGATED_TO_DNS: "AdministrativeOverride.ZonalShiftDelegatedToDns",
933+
ZONAL_SHIFT_ENGAGED: "AdministrativeOverride.ZonalShiftActive",
934+
} as const;
935+
936+
/**
937+
* @public
938+
*/
939+
export type TargetAdministrativeOverrideReasonEnum =
940+
(typeof TargetAdministrativeOverrideReasonEnum)[keyof typeof TargetAdministrativeOverrideReasonEnum];
941+
942+
/**
943+
* @public
944+
* @enum
945+
*/
946+
export const TargetAdministrativeOverrideStateEnum = {
947+
NO_OVERRIDE: "no_override",
948+
UNKNOWN: "unknown",
949+
ZONAL_SHIFT_ACTIVE: "zonal_shift_active",
950+
ZONAL_SHIFT_DELEGATED_TO_DNS: "zonal_shift_delegated_to_dns",
951+
} as const;
952+
953+
/**
954+
* @public
955+
*/
956+
export type TargetAdministrativeOverrideStateEnum =
957+
(typeof TargetAdministrativeOverrideStateEnum)[keyof typeof TargetAdministrativeOverrideStateEnum];
958+
959+
/**
960+
* <p>Information about the override status applied to a target.</p>
961+
* @public
962+
*/
963+
export interface AdministrativeOverride {
964+
/**
965+
* <p>The state of the override.</p>
966+
* @public
967+
*/
968+
State?: TargetAdministrativeOverrideStateEnum;
969+
970+
/**
971+
* <p>The reason code for the state.</p>
972+
* @public
973+
*/
974+
Reason?: TargetAdministrativeOverrideReasonEnum;
975+
976+
/**
977+
* <p>A description of the override state that provides additional details.</p>
978+
* @public
979+
*/
980+
Description?: string;
981+
}
982+
925983
/**
926984
* <p>The specified allocation ID does not exist.</p>
927985
* @public
@@ -3884,6 +3942,12 @@ export interface LoadBalancerAttribute {
38843942
* <code>partial_availability_zone_affinity</code> with 85 percent zonal affinity,
38853943
* and <code>any_availability_zone</code> with 0 percent zonal affinity.</p>
38863944
* </li>
3945+
* <li>
3946+
* <p>
3947+
* <code>zonal_shift.config.enabled</code> - Indicates whether zonal shift is
3948+
* enabled. The possible values are <code>true</code> and <code>false</code>. The
3949+
* default is <code>false</code>.</p>
3950+
* </li>
38873951
* </ul>
38883952
* @public
38893953
*/
@@ -4639,6 +4703,12 @@ export interface TargetHealthDescription {
46394703
* @public
46404704
*/
46414705
AnomalyDetection?: AnomalyDetection;
4706+
4707+
/**
4708+
* <p>The administrative override information for the target.</p>
4709+
* @public
4710+
*/
4711+
AdministrativeOverride?: AdministrativeOverride;
46424712
}
46434713

46444714
/**

clients/client-elastic-load-balancing-v2/src/protocols/Aws_query.ts

+30-8
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ import {
144144
AddTagsOutput,
145145
AddTrustStoreRevocationsInput,
146146
AddTrustStoreRevocationsOutput,
147+
AdministrativeOverride,
147148
AllocationIdNotFoundException,
148149
ALPNPolicyNotSupportedException,
149150
AnomalyDetection,
@@ -5563,6 +5564,23 @@ const de_AddTrustStoreRevocationsOutput = (output: any, context: __SerdeContext)
55635564
return contents;
55645565
};
55655566

5567+
/**
5568+
* deserializeAws_queryAdministrativeOverride
5569+
*/
5570+
const de_AdministrativeOverride = (output: any, context: __SerdeContext): AdministrativeOverride => {
5571+
const contents: any = {};
5572+
if (output[_St] != null) {
5573+
contents[_St] = __expectString(output[_St]);
5574+
}
5575+
if (output[_R] != null) {
5576+
contents[_R] = __expectString(output[_R]);
5577+
}
5578+
if (output[_D] != null) {
5579+
contents[_D] = __expectString(output[_D]);
5580+
}
5581+
return contents;
5582+
};
5583+
55665584
/**
55675585
* deserializeAws_queryAllocationIdNotFoundException
55685586
*/
@@ -5601,8 +5619,8 @@ const de_ALPNPolicyNotSupportedException = (output: any, context: __SerdeContext
56015619
*/
56025620
const de_AnomalyDetection = (output: any, context: __SerdeContext): AnomalyDetection => {
56035621
const contents: any = {};
5604-
if (output[_R] != null) {
5605-
contents[_R] = __expectString(output[_R]);
5622+
if (output[_Re] != null) {
5623+
contents[_Re] = __expectString(output[_Re]);
56065624
}
56075625
if (output[_MIE] != null) {
56085626
contents[_MIE] = __expectString(output[_MIE]);
@@ -6843,8 +6861,8 @@ const de_LoadBalancerState = (output: any, context: __SerdeContext): LoadBalance
68436861
if (output[_Cod] != null) {
68446862
contents[_Cod] = __expectString(output[_Cod]);
68456863
}
6846-
if (output[_Re] != null) {
6847-
contents[_Re] = __expectString(output[_Re]);
6864+
if (output[_R] != null) {
6865+
contents[_R] = __expectString(output[_R]);
68486866
}
68496867
return contents;
68506868
};
@@ -7649,8 +7667,8 @@ const de_TargetHealth = (output: any, context: __SerdeContext): TargetHealth =>
76497667
if (output[_St] != null) {
76507668
contents[_St] = __expectString(output[_St]);
76517669
}
7652-
if (output[_Re] != null) {
7653-
contents[_Re] = __expectString(output[_Re]);
7670+
if (output[_R] != null) {
7671+
contents[_R] = __expectString(output[_R]);
76547672
}
76557673
if (output[_D] != null) {
76567674
contents[_D] = __expectString(output[_D]);
@@ -7675,6 +7693,9 @@ const de_TargetHealthDescription = (output: any, context: __SerdeContext): Targe
76757693
if (output[_AD] != null) {
76767694
contents[_AD] = de_AnomalyDetection(output[_AD], context);
76777695
}
7696+
if (output[_AO] != null) {
7697+
contents[_AO] = de_AdministrativeOverride(output[_AO], context);
7698+
}
76787699
return contents;
76797700
};
76807701

@@ -8023,6 +8044,7 @@ const _AD = "AnomalyDetection";
80238044
const _AE = "AuthorizationEndpoint";
80248045
const _AI = "AllocationId";
80258046
const _ALC = "AddListenerCertificates";
8047+
const _AO = "AdministrativeOverride";
80268048
const _AOC = "AuthenticateOidcConfig";
80278049
const _AP = "AlpnPolicy";
80288050
const _AREP = "AuthenticationRequestExtraParams";
@@ -8153,7 +8175,7 @@ const _Pol = "Policy";
81538175
const _Pr = "Priority";
81548176
const _Q = "Query";
81558177
const _QSC = "QueryStringConfig";
8156-
const _R = "Result";
8178+
const _R = "Reason";
81578179
const _RA = "ResourceArns";
81588180
const _RAe = "ResourceArn";
81598181
const _RAu = "RuleArn";
@@ -8168,7 +8190,7 @@ const _RT = "RegisterTargets";
81688190
const _RTSR = "RemoveTrustStoreRevocations";
81698191
const _RTe = "RemoveTags";
81708192
const _RTev = "RevocationType";
8171-
const _Re = "Reason";
8193+
const _Re = "Result";
81728194
const _Ru = "Rules";
81738195
const _S = "Scope";
81748196
const _SB = "S3Bucket";

0 commit comments

Comments
 (0)