Skip to content

Commit

Permalink
feat(client-elastic-load-balancing-v2): Add zonal_shift.config.enable…
Browse files Browse the repository at this point in the history
…d attribute. Add new AdministrativeOverride construct in the describe-target-health API response to include information about the override status applied to a target.
  • Loading branch information
awstools committed Oct 11, 2024
1 parent bc47ba4 commit 809828e
Show file tree
Hide file tree
Showing 4 changed files with 196 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
* // },
* // },
* // ],
* // };
Expand Down
70 changes: 70 additions & 0 deletions clients/client-elastic-load-balancing-v2/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];

/**
* <p>Information about the override status applied to a target.</p>
* @public
*/
export interface AdministrativeOverride {
/**
* <p>The state of the override.</p>
* @public
*/
State?: TargetAdministrativeOverrideStateEnum;

/**
* <p>The reason code for the state.</p>
* @public
*/
Reason?: TargetAdministrativeOverrideReasonEnum;

/**
* <p>A description of the override state that provides additional details.</p>
* @public
*/
Description?: string;
}

/**
* <p>The specified allocation ID does not exist.</p>
* @public
Expand Down Expand Up @@ -3884,6 +3942,12 @@ export interface LoadBalancerAttribute {
* <code>partial_availability_zone_affinity</code> with 85 percent zonal affinity,
* and <code>any_availability_zone</code> with 0 percent zonal affinity.</p>
* </li>
* <li>
* <p>
* <code>zonal_shift.config.enabled</code> - Indicates whether zonal shift is
* enabled. The possible values are <code>true</code> and <code>false</code>. The
* default is <code>false</code>.</p>
* </li>
* </ul>
* @public
*/
Expand Down Expand Up @@ -4639,6 +4703,12 @@ export interface TargetHealthDescription {
* @public
*/
AnomalyDetection?: AnomalyDetection;

/**
* <p>The administrative override information for the target.</p>
* @public
*/
AdministrativeOverride?: AdministrativeOverride;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ import {
AddTagsOutput,
AddTrustStoreRevocationsInput,
AddTrustStoreRevocationsOutput,
AdministrativeOverride,
AllocationIdNotFoundException,
ALPNPolicyNotSupportedException,
AnomalyDetection,
Expand Down Expand Up @@ -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
*/
Expand Down Expand Up @@ -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]);
Expand Down Expand Up @@ -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;
};
Expand Down Expand Up @@ -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]);
Expand All @@ -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;
};

Expand Down Expand Up @@ -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";
Expand Down Expand Up @@ -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";
Expand All @@ -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";
Expand Down
Loading

0 comments on commit 809828e

Please sign in to comment.