|
29 | 29 | ConfigurationSchema = str
|
30 | 30 | ConnectionArn = str
|
31 | 31 | Description = str
|
| 32 | +DetectionReason = str |
32 | 33 | DisableRollback = bool
|
33 | 34 | DriftedStackInstancesCount = int
|
| 35 | +EnableStackCreation = bool |
34 | 36 | EnableTerminationProtection = bool
|
35 | 37 | ErrorCode = str
|
36 | 38 | ErrorMessage = str
|
37 | 39 | EventId = str
|
38 | 40 | ExecutionRoleName = str
|
| 41 | +ExecutionStatusReason = str |
39 | 42 | ExportName = str
|
40 | 43 | ExportValue = str
|
41 | 44 | FailedStackInstancesCount = int
|
|
143 | 146 | StackPolicyDuringUpdateBody = str
|
144 | 147 | StackPolicyDuringUpdateURL = str
|
145 | 148 | StackPolicyURL = str
|
| 149 | +StackRefactorId = str |
| 150 | +StackRefactorResourceIdentifier = str |
| 151 | +StackRefactorStatusReason = str |
146 | 152 | StackSetARN = str
|
147 | 153 | StackSetId = str
|
148 | 154 | StackSetName = str
|
@@ -506,6 +512,12 @@ class ResourceStatus(StrEnum):
|
506 | 512 | IMPORT_ROLLBACK_IN_PROGRESS = "IMPORT_ROLLBACK_IN_PROGRESS"
|
507 | 513 | IMPORT_ROLLBACK_FAILED = "IMPORT_ROLLBACK_FAILED"
|
508 | 514 | IMPORT_ROLLBACK_COMPLETE = "IMPORT_ROLLBACK_COMPLETE"
|
| 515 | + EXPORT_FAILED = "EXPORT_FAILED" |
| 516 | + EXPORT_COMPLETE = "EXPORT_COMPLETE" |
| 517 | + EXPORT_IN_PROGRESS = "EXPORT_IN_PROGRESS" |
| 518 | + EXPORT_ROLLBACK_IN_PROGRESS = "EXPORT_ROLLBACK_IN_PROGRESS" |
| 519 | + EXPORT_ROLLBACK_FAILED = "EXPORT_ROLLBACK_FAILED" |
| 520 | + EXPORT_ROLLBACK_COMPLETE = "EXPORT_ROLLBACK_COMPLETE" |
509 | 521 | UPDATE_ROLLBACK_IN_PROGRESS = "UPDATE_ROLLBACK_IN_PROGRESS"
|
510 | 522 | UPDATE_ROLLBACK_COMPLETE = "UPDATE_ROLLBACK_COMPLETE"
|
511 | 523 | UPDATE_ROLLBACK_FAILED = "UPDATE_ROLLBACK_FAILED"
|
@@ -550,6 +562,42 @@ class StackInstanceStatus(StrEnum):
|
550 | 562 | INOPERABLE = "INOPERABLE"
|
551 | 563 |
|
552 | 564 |
|
| 565 | +class StackRefactorActionEntity(StrEnum): |
| 566 | + RESOURCE = "RESOURCE" |
| 567 | + STACK = "STACK" |
| 568 | + |
| 569 | + |
| 570 | +class StackRefactorActionType(StrEnum): |
| 571 | + MOVE = "MOVE" |
| 572 | + CREATE = "CREATE" |
| 573 | + |
| 574 | + |
| 575 | +class StackRefactorDetection(StrEnum): |
| 576 | + AUTO = "AUTO" |
| 577 | + MANUAL = "MANUAL" |
| 578 | + |
| 579 | + |
| 580 | +class StackRefactorExecutionStatus(StrEnum): |
| 581 | + UNAVAILABLE = "UNAVAILABLE" |
| 582 | + AVAILABLE = "AVAILABLE" |
| 583 | + OBSOLETE = "OBSOLETE" |
| 584 | + EXECUTE_IN_PROGRESS = "EXECUTE_IN_PROGRESS" |
| 585 | + EXECUTE_COMPLETE = "EXECUTE_COMPLETE" |
| 586 | + EXECUTE_FAILED = "EXECUTE_FAILED" |
| 587 | + ROLLBACK_IN_PROGRESS = "ROLLBACK_IN_PROGRESS" |
| 588 | + ROLLBACK_COMPLETE = "ROLLBACK_COMPLETE" |
| 589 | + ROLLBACK_FAILED = "ROLLBACK_FAILED" |
| 590 | + |
| 591 | + |
| 592 | +class StackRefactorStatus(StrEnum): |
| 593 | + CREATE_IN_PROGRESS = "CREATE_IN_PROGRESS" |
| 594 | + CREATE_COMPLETE = "CREATE_COMPLETE" |
| 595 | + CREATE_FAILED = "CREATE_FAILED" |
| 596 | + DELETE_IN_PROGRESS = "DELETE_IN_PROGRESS" |
| 597 | + DELETE_COMPLETE = "DELETE_COMPLETE" |
| 598 | + DELETE_FAILED = "DELETE_FAILED" |
| 599 | + |
| 600 | + |
553 | 601 | class StackResourceDriftStatus(StrEnum):
|
554 | 602 | IN_SYNC = "IN_SYNC"
|
555 | 603 | MODIFIED = "MODIFIED"
|
@@ -797,6 +845,12 @@ class StackNotFoundException(ServiceException):
|
797 | 845 | status_code: int = 404
|
798 | 846 |
|
799 | 847 |
|
| 848 | +class StackRefactorNotFoundException(ServiceException): |
| 849 | + code: str = "StackRefactorNotFoundException" |
| 850 | + sender_fault: bool = True |
| 851 | + status_code: int = 404 |
| 852 | + |
| 853 | + |
800 | 854 | class StackSetNotEmptyException(ServiceException):
|
801 | 855 | code: str = "StackSetNotEmptyException"
|
802 | 856 | sender_fault: bool = True
|
@@ -1206,6 +1260,39 @@ class CreateStackOutput(TypedDict, total=False):
|
1206 | 1260 | StackId: Optional[StackId]
|
1207 | 1261 |
|
1208 | 1262 |
|
| 1263 | +class StackDefinition(TypedDict, total=False): |
| 1264 | + StackName: Optional[StackName] |
| 1265 | + TemplateBody: Optional[TemplateBody] |
| 1266 | + TemplateURL: Optional[TemplateURL] |
| 1267 | + |
| 1268 | + |
| 1269 | +StackDefinitions = List[StackDefinition] |
| 1270 | + |
| 1271 | + |
| 1272 | +class ResourceLocation(TypedDict, total=False): |
| 1273 | + StackName: StackName |
| 1274 | + LogicalResourceId: LogicalResourceId |
| 1275 | + |
| 1276 | + |
| 1277 | +class ResourceMapping(TypedDict, total=False): |
| 1278 | + Source: ResourceLocation |
| 1279 | + Destination: ResourceLocation |
| 1280 | + |
| 1281 | + |
| 1282 | +ResourceMappings = List[ResourceMapping] |
| 1283 | + |
| 1284 | + |
| 1285 | +class CreateStackRefactorInput(ServiceRequest): |
| 1286 | + Description: Optional[Description] |
| 1287 | + EnableStackCreation: Optional[EnableStackCreation] |
| 1288 | + ResourceMappings: Optional[ResourceMappings] |
| 1289 | + StackDefinitions: StackDefinitions |
| 1290 | + |
| 1291 | + |
| 1292 | +class CreateStackRefactorOutput(TypedDict, total=False): |
| 1293 | + StackRefactorId: StackRefactorId |
| 1294 | + |
| 1295 | + |
1209 | 1296 | class ManagedExecution(TypedDict, total=False):
|
1210 | 1297 | Active: Optional[ManagedExecutionNullable]
|
1211 | 1298 |
|
@@ -1538,6 +1625,23 @@ class DescribeStackInstanceOutput(TypedDict, total=False):
|
1538 | 1625 | StackInstance: Optional[StackInstance]
|
1539 | 1626 |
|
1540 | 1627 |
|
| 1628 | +class DescribeStackRefactorInput(ServiceRequest): |
| 1629 | + StackRefactorId: StackRefactorId |
| 1630 | + |
| 1631 | + |
| 1632 | +StackIds = List[StackId] |
| 1633 | + |
| 1634 | + |
| 1635 | +class DescribeStackRefactorOutput(TypedDict, total=False): |
| 1636 | + Description: Optional[Description] |
| 1637 | + StackRefactorId: Optional[StackRefactorId] |
| 1638 | + StackIds: Optional[StackIds] |
| 1639 | + ExecutionStatus: Optional[StackRefactorExecutionStatus] |
| 1640 | + ExecutionStatusReason: Optional[ExecutionStatusReason] |
| 1641 | + Status: Optional[StackRefactorStatus] |
| 1642 | + StatusReason: Optional[StackRefactorStatusReason] |
| 1643 | + |
| 1644 | + |
1541 | 1645 | StackResourceDriftStatusFilters = List[StackResourceDriftStatus]
|
1542 | 1646 |
|
1543 | 1647 |
|
@@ -1888,6 +1992,10 @@ class ExecuteChangeSetOutput(TypedDict, total=False):
|
1888 | 1992 | pass
|
1889 | 1993 |
|
1890 | 1994 |
|
| 1995 | +class ExecuteStackRefactorInput(ServiceRequest): |
| 1996 | + StackRefactorId: StackRefactorId |
| 1997 | + |
| 1998 | + |
1891 | 1999 | class Export(TypedDict, total=False):
|
1892 | 2000 | ExportingStackId: Optional[StackId]
|
1893 | 2001 | Name: Optional[ExportName]
|
@@ -2227,6 +2335,63 @@ class ListStackInstancesOutput(TypedDict, total=False):
|
2227 | 2335 | NextToken: Optional[NextToken]
|
2228 | 2336 |
|
2229 | 2337 |
|
| 2338 | +class ListStackRefactorActionsInput(ServiceRequest): |
| 2339 | + StackRefactorId: StackRefactorId |
| 2340 | + NextToken: Optional[NextToken] |
| 2341 | + MaxResults: Optional[MaxResults] |
| 2342 | + |
| 2343 | + |
| 2344 | +StackRefactorUntagResources = List[TagKey] |
| 2345 | +StackRefactorTagResources = List[Tag] |
| 2346 | + |
| 2347 | + |
| 2348 | +class StackRefactorAction(TypedDict, total=False): |
| 2349 | + Action: Optional[StackRefactorActionType] |
| 2350 | + Entity: Optional[StackRefactorActionEntity] |
| 2351 | + PhysicalResourceId: Optional[PhysicalResourceId] |
| 2352 | + ResourceIdentifier: Optional[StackRefactorResourceIdentifier] |
| 2353 | + Description: Optional[Description] |
| 2354 | + Detection: Optional[StackRefactorDetection] |
| 2355 | + DetectionReason: Optional[DetectionReason] |
| 2356 | + TagResources: Optional[StackRefactorTagResources] |
| 2357 | + UntagResources: Optional[StackRefactorUntagResources] |
| 2358 | + ResourceMapping: Optional[ResourceMapping] |
| 2359 | + |
| 2360 | + |
| 2361 | +StackRefactorActions = List[StackRefactorAction] |
| 2362 | + |
| 2363 | + |
| 2364 | +class ListStackRefactorActionsOutput(TypedDict, total=False): |
| 2365 | + StackRefactorActions: StackRefactorActions |
| 2366 | + NextToken: Optional[NextToken] |
| 2367 | + |
| 2368 | + |
| 2369 | +StackRefactorExecutionStatusFilter = List[StackRefactorExecutionStatus] |
| 2370 | + |
| 2371 | + |
| 2372 | +class ListStackRefactorsInput(ServiceRequest): |
| 2373 | + ExecutionStatusFilter: Optional[StackRefactorExecutionStatusFilter] |
| 2374 | + NextToken: Optional[NextToken] |
| 2375 | + MaxResults: Optional[MaxResults] |
| 2376 | + |
| 2377 | + |
| 2378 | +class StackRefactorSummary(TypedDict, total=False): |
| 2379 | + StackRefactorId: Optional[StackRefactorId] |
| 2380 | + Description: Optional[Description] |
| 2381 | + ExecutionStatus: Optional[StackRefactorExecutionStatus] |
| 2382 | + ExecutionStatusReason: Optional[ExecutionStatusReason] |
| 2383 | + Status: Optional[StackRefactorStatus] |
| 2384 | + StatusReason: Optional[StackRefactorStatusReason] |
| 2385 | + |
| 2386 | + |
| 2387 | +StackRefactorSummaries = List[StackRefactorSummary] |
| 2388 | + |
| 2389 | + |
| 2390 | +class ListStackRefactorsOutput(TypedDict, total=False): |
| 2391 | + StackRefactorSummaries: StackRefactorSummaries |
| 2392 | + NextToken: Optional[NextToken] |
| 2393 | + |
| 2394 | + |
2230 | 2395 | class ListStackResourcesInput(ServiceRequest):
|
2231 | 2396 | StackName: StackName
|
2232 | 2397 | NextToken: Optional[NextToken]
|
@@ -2847,6 +3012,18 @@ def create_stack_instances(
|
2847 | 3012 | ) -> CreateStackInstancesOutput:
|
2848 | 3013 | raise NotImplementedError
|
2849 | 3014 |
|
| 3015 | + @handler("CreateStackRefactor") |
| 3016 | + def create_stack_refactor( |
| 3017 | + self, |
| 3018 | + context: RequestContext, |
| 3019 | + stack_definitions: StackDefinitions, |
| 3020 | + description: Description = None, |
| 3021 | + enable_stack_creation: EnableStackCreation = None, |
| 3022 | + resource_mappings: ResourceMappings = None, |
| 3023 | + **kwargs, |
| 3024 | + ) -> CreateStackRefactorOutput: |
| 3025 | + raise NotImplementedError |
| 3026 | + |
2850 | 3027 | @handler("CreateStackSet")
|
2851 | 3028 | def create_stack_set(
|
2852 | 3029 | self,
|
@@ -3025,6 +3202,12 @@ def describe_stack_instance(
|
3025 | 3202 | ) -> DescribeStackInstanceOutput:
|
3026 | 3203 | raise NotImplementedError
|
3027 | 3204 |
|
| 3205 | + @handler("DescribeStackRefactor") |
| 3206 | + def describe_stack_refactor( |
| 3207 | + self, context: RequestContext, stack_refactor_id: StackRefactorId, **kwargs |
| 3208 | + ) -> DescribeStackRefactorOutput: |
| 3209 | + raise NotImplementedError |
| 3210 | + |
3028 | 3211 | @handler("DescribeStackResource")
|
3029 | 3212 | def describe_stack_resource(
|
3030 | 3213 | self,
|
@@ -3157,6 +3340,12 @@ def execute_change_set(
|
3157 | 3340 | ) -> ExecuteChangeSetOutput:
|
3158 | 3341 | raise NotImplementedError
|
3159 | 3342 |
|
| 3343 | + @handler("ExecuteStackRefactor") |
| 3344 | + def execute_stack_refactor( |
| 3345 | + self, context: RequestContext, stack_refactor_id: StackRefactorId, **kwargs |
| 3346 | + ) -> None: |
| 3347 | + raise NotImplementedError |
| 3348 | + |
3160 | 3349 | @handler("GetGeneratedTemplate")
|
3161 | 3350 | def get_generated_template(
|
3162 | 3351 | self,
|
@@ -3328,6 +3517,28 @@ def list_stack_instances(
|
3328 | 3517 | ) -> ListStackInstancesOutput:
|
3329 | 3518 | raise NotImplementedError
|
3330 | 3519 |
|
| 3520 | + @handler("ListStackRefactorActions") |
| 3521 | + def list_stack_refactor_actions( |
| 3522 | + self, |
| 3523 | + context: RequestContext, |
| 3524 | + stack_refactor_id: StackRefactorId, |
| 3525 | + next_token: NextToken = None, |
| 3526 | + max_results: MaxResults = None, |
| 3527 | + **kwargs, |
| 3528 | + ) -> ListStackRefactorActionsOutput: |
| 3529 | + raise NotImplementedError |
| 3530 | + |
| 3531 | + @handler("ListStackRefactors") |
| 3532 | + def list_stack_refactors( |
| 3533 | + self, |
| 3534 | + context: RequestContext, |
| 3535 | + execution_status_filter: StackRefactorExecutionStatusFilter = None, |
| 3536 | + next_token: NextToken = None, |
| 3537 | + max_results: MaxResults = None, |
| 3538 | + **kwargs, |
| 3539 | + ) -> ListStackRefactorsOutput: |
| 3540 | + raise NotImplementedError |
| 3541 | + |
3331 | 3542 | @handler("ListStackResources")
|
3332 | 3543 | def list_stack_resources(
|
3333 | 3544 | self, context: RequestContext, stack_name: StackName, next_token: NextToken = None, **kwargs
|
|
0 commit comments