import_stacks_to_stack_set
¶
import_stacks_to_stack_set(
*,
config_overrides: Optional[CloudFormationClientConfig] = None,
stack_set_name: Optional[StackSetNameOrId] = None,
stack_ids: Optional[StackIdList] = None,
stack_ids_url: Optional[StackIdsUrl] = None,
organizational_unit_ids: Optional[OrganizationalUnitIdList] = None,
operation_preferences: Optional[StackSetOperationPreferences] = None,
operation_id: Optional[ClientRequestToken] = None,
call_as: Optional[CallAs] = None,
) -> ImportStacksToStackSetOutput
Import existing stacks into a new StackSets. Use the stack import operation to import up to 10 stacks into a new StackSet in the same account as the source stack or in a different administrator account and Region, by specifying the stack ID of the stack you intend to import.
Parameters:
-
stack_set_name(Optional[StackSetNameOrId], default:None) –The name of the StackSet. The name must be unique in the Region where you create your StackSet.
-
stack_ids(Optional[StackIdList], default:None) –The IDs of the stacks you are importing into a StackSet. You import up to 10 stacks per StackSet at a time.
Specify either
StackIdsorStackIdsUrl. -
stack_ids_url(Optional[StackIdsUrl], default:None) –The Amazon S3 URL which contains list of stack ids to be inputted.
Specify either
StackIdsorStackIdsUrl. -
organizational_unit_ids(Optional[OrganizationalUnitIdList], default:None) –The list of OU ID's to which the imported stacks must be mapped as deployment targets.
-
operation_preferences(Optional[StackSetOperationPreferences], default:None) –The user-specified preferences for how CloudFormation performs a StackSet operation.
For more information about maximum concurrent accounts and failure tolerance, see StackSet operation options.
-
operation_id(Optional[ClientRequestToken], default:None) –A unique, user defined, identifier for the StackSet operation.
-
call_as(Optional[CallAs], default:None) –By default,
SELFis specified. UseSELFfor StackSets with self-managed permissions.-
If you are signed in to the management account, specify
SELF. -
For service managed StackSets, specify
DELEGATED_ADMIN.
-
Raises:
-
InvalidOperationException–The specified operation isn't valid.
-
LimitExceededException–The quota for the resource has already been reached.
For information about resource and stack limitations, see CloudFormation quotas in the CloudFormation User Guide.
-
OperationIdAlreadyExistsException–The specified operation ID already exists.
-
OperationInProgressException–Another operation is currently in progress for this StackSet. Only one operation can be performed for a stack set at a given time.
-
StackNotFoundException–The specified stack ARN doesn't exist or stack doesn't exist corresponding to the ARN in input.
-
StackSetNotFoundException–The specified StackSet doesn't exist.
-
StaleRequestException–Another operation has been performed on this StackSet since the specified operation was performed.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudformation/_services/cloud_formation.py
3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 | |