diff --git a/clients/client-auto-scaling/README.md b/clients/client-auto-scaling/README.md index 298ca73fe2e1..04ac81f00a75 100644 --- a/clients/client-auto-scaling/README.md +++ b/clients/client-auto-scaling/README.md @@ -14,7 +14,7 @@ based on user-defined scaling policies, scheduled actions, and health checks.

+ * The amount of time, in seconds, to wait at the end of an instance refresh before the instance refresh is considered complete. + *

+ * @public + */ + BakeTime?: number; } /** @@ -3992,6 +4000,7 @@ export interface RollbackDetails { * @enum */ export const InstanceRefreshStatus = { + Baking: "Baking", Cancelled: "Cancelled", Cancelling: "Cancelling", Failed: "Failed", @@ -4069,6 +4078,10 @@ export interface InstanceRefresh { *

* RollbackSuccessful - The rollback completed successfully.

* + *
  • + *

    + * Baking - Waiting the specified bake time after an instance refresh has finished updating instances.

    + *
  • * * @public */ @@ -7977,6 +7990,9 @@ export interface StartInstanceRefreshType { *
  • *

    Skip matching

    *
  • + *
  • + *

    Bake time

    + *
  • * * @public */ diff --git a/clients/client-auto-scaling/src/protocols/Aws_query.ts b/clients/client-auto-scaling/src/protocols/Aws_query.ts index ef50fe5ad15a..6e42078efd52 100644 --- a/clients/client-auto-scaling/src/protocols/Aws_query.ts +++ b/clients/client-auto-scaling/src/protocols/Aws_query.ts @@ -5780,6 +5780,9 @@ const se_RefreshPreferences = (input: RefreshPreferences, context: __SerdeContex if (input[_MHPa] != null) { entries[_MHPa] = input[_MHPa]; } + if (input[_BTa] != null) { + entries[_BTa] = input[_BTa]; + } return entries; }; @@ -8796,6 +8799,9 @@ const de_RefreshPreferences = (output: any, context: __SerdeContext): RefreshPre if (output[_MHPa] != null) { contents[_MHPa] = __strictParseInt32(output[_MHPa]) as number; } + if (output[_BTa] != null) { + contents[_BTa] = __strictParseInt32(output[_BTa]) as number; + } return contents; }; @@ -9430,6 +9436,7 @@ const _BM = "BareMetal"; const _BP = "BurstablePerformance"; const _BPSUGA = "BatchPutScheduledUpdateGroupAction"; const _BT = "BreachThreshold"; +const _BTa = "BakeTime"; const _C = "Context"; const _CASG = "CreateAutoScalingGroup"; const _CCMS = "CustomizedCapacityMetricSpecification"; diff --git a/codegen/sdk-codegen/aws-models/auto-scaling.json b/codegen/sdk-codegen/aws-models/auto-scaling.json index ab08fc4ebd07..abe959994bcc 100644 --- a/codegen/sdk-codegen/aws-models/auto-scaling.json +++ b/codegen/sdk-codegen/aws-models/auto-scaling.json @@ -2305,6 +2305,15 @@ "target": "com.amazonaws.autoscaling#XmlStringMaxLen255" } }, + "com.amazonaws.autoscaling#BakeTime": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 0, + "max": 172800 + } + } + }, "com.amazonaws.autoscaling#BareMetal": { "type": "enum", "members": { @@ -6409,7 +6418,7 @@ "Status": { "target": "com.amazonaws.autoscaling#InstanceRefreshStatus", "traits": { - "smithy.api#documentation": "

    The current status for the instance refresh operation:

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

    The current status for the instance refresh operation:

    \n " } }, "StatusReason": { @@ -6590,6 +6599,12 @@ "traits": { "smithy.api#enumValue": "RollbackSuccessful" } + }, + "Baking": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Baking" + } } } }, @@ -9274,6 +9289,12 @@ "traits": { "smithy.api#documentation": "

    Specifies the maximum percentage of the group that can be in service and healthy, or\n pending, to support your workload when replacing instances. The value is expressed as a\n percentage of the desired capacity of the Auto Scaling group. Value range is 100 to 200.

    \n

    If you specify MaxHealthyPercentage, you must also specify\n MinHealthyPercentage, and the difference between them cannot be greater\n than 100. A larger range increases the number of instances that can be replaced at the\n same time.

    \n

    If you do not specify this property, the default is 100 percent, or the percentage set\n in the instance maintenance policy for the Auto Scaling group, if defined.

    " } + }, + "BakeTime": { + "target": "com.amazonaws.autoscaling#BakeTime", + "traits": { + "smithy.api#documentation": "

    \n The amount of time, in seconds, to wait at the end of an instance refresh before the instance refresh is considered complete.\n

    " + } } }, "traits": { @@ -10229,7 +10250,7 @@ "Preferences": { "target": "com.amazonaws.autoscaling#RefreshPreferences", "traits": { - "smithy.api#documentation": "

    Sets your preferences for the instance refresh so that it performs as expected when\n you start it. Includes the instance warmup time, the minimum and maximum healthy\n percentages, and the behaviors that you want Amazon EC2 Auto Scaling to use if instances that are in\n Standby state or protected from scale in are found. You can also choose\n to enable additional features, such as the following:

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

    Sets your preferences for the instance refresh so that it performs as expected when\n you start it. Includes the instance warmup time, the minimum and maximum healthy\n percentages, and the behaviors that you want Amazon EC2 Auto Scaling to use if instances that are in\n Standby state or protected from scale in are found. You can also choose\n to enable additional features, such as the following:

    \n " } } }