CloudFormationClient.create_stack_set
rboto-cloudformation==0.4.0 · Service index · Types
Model summary (excerpt): Creates a StackSet.
Install and imports
from rboto import CloudFormationClient
from collections.abc import Sequence
from rboto_cloudformation.types import (
AutoDeployment,
CallAs,
Capability,
CreateStackSetOutput,
ManagedExecution,
Parameter,
PermissionModels,
Tag,
)
Signature
async def create_stack_set(
*,
stack_set_name: str,
description: str | None = None,
template_body: str | None = None,
template_url: str | None = None,
stack_id: str | None = None,
parameters: Sequence[Parameter] | None = None,
capabilities: Sequence[Capability] | None = None,
tags: Sequence[Tag] | None = None,
administration_role_arn: str | None = None,
execution_role_name: str | None = None,
permission_model: PermissionModels | None = None,
auto_deployment: AutoDeployment | None = None,
call_as: CallAs | None = None,
client_request_token: str | None = None,
managed_execution: ManagedExecution | None = None,
execution_role_template_body: str | None = None,
execution_role_template_url: str | None = None,
stack_set_output_bucket: str | None = None,
) -> CreateStackSetOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
stack_set_name |
Yes | The name to associate with the StackSet. The name must be unique in the Region where you create your StackSet. A stack name can contain only alphanumeric characters (case-sensitive) and hyphens. It must start with an alphabetic character and can't be longer than 128 characters. |
description |
No | A description of the StackSet. You can use the description to identify the StackSet's purpose or other important information. |
template_body |
No | The structure that contains the template body, with a minimum length of 1 byte and a maximum length of 51,200 bytes. Conditional: You must specify either the TemplateBody or the TemplateURL parameter, but not both. |
template_url |
No | The URL of a file that contains the template body. The URL must point to a template (maximum size: 1 MB) that's located in an Amazon S3 bucket or a Systems Manager document. The location for an Amazon S3 bucket must start with https:// . S3 static website URLs are not supported. Conditional: You must specify either the TemplateBody or the TemplateURL parameter, but not both. |
stack_id |
No | The stack ID you are importing into a new StackSet. Specify the Amazon Resource Name (ARN) of the stack. |
parameters |
No | The input parameters for the StackSet template. |
capabilities |
No | In some cases, you must explicitly acknowledge that your StackSet template contains certain capabilities in order for CloudFormation to create the StackSet and related stack instances. CAPABILITY_IAM and CAPABILITY_NAMED_IAM Some stack templates might include resources that can affect permissions in your Amazon Web Services account; for example, by creating new IAM users. For those StackSets,... |
tags |
No | The key-value pairs to associate with this StackSet and the stacks created from it. CloudFormation also propagates these tags to supported resources that are created in the stacks. A maximum number of 50 tags can be specified. If you specify tags as part of a CreateStackSet action, CloudFormation checks to see if you have the required IAM permission to tag resources. If you don't, the entire... |
administration_role_arn |
No | The Amazon Resource Name (ARN) of the IAM role to use to create this StackSet. Specify an IAM role only if you are using customized administrator roles to control which users or groups can manage specific StackSets within the same administrator account. For more information, see Grant self-managed permissions in the CloudFormation User Guide . Valid only if the permissions model is SELF_MANAGED . |
execution_role_name |
No | The name of the IAM execution role that CloudFormation uses for StackSet operations in your target accounts. [Self-managed permissions] If you do not specify an execution role, CloudFormation uses the AWSCloudFormationStackSetExecutionRole role for the StackSet operation. Specify an IAM role only if you are using customized execution roles to control which stack resources users and groups can... |
permission_model |
No | Describes how the IAM roles required for StackSet operations are created. By default, SELF-MANAGED is specified. With self-managed permissions, you must create the administrator and execution roles required to deploy to target accounts. For more information, see Grant self-managed permissions . With service-managed permissions, StackSets automatically creates the IAM roles required to deploy... |
auto_deployment |
No | Describes whether StackSets automatically deploys to Organizations accounts that are added to the target organization or organizational unit (OU). For more information, see Enable or disable automatic deployments for StackSets in Organizations in the CloudFormation User Guide . Required if the permissions model is SERVICE_MANAGED . (Not used with self-managed permissions.) |
call_as |
No | Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions. To create a StackSet with service-managed permissions while signed in to the management account, specify SELF . To create a StackSet with service-managed... |
client_request_token |
No | A unique identifier for this CreateStackSet request. Specify this token if you plan to retry requests so that CloudFormation knows that you're not attempting to create another StackSet with the same name. You might retry CreateStackSet requests to ensure that CloudFormation successfully received them. If you don't specify an operation ID, the SDK generates one automatically. |
managed_execution |
No | Describes whether CloudFormation performs non-conflicting operations concurrently and queues conflicting operations. |
execution_role_template_body |
No | The body of the template that creates a custom execution role in target accounts. This parameter applies only when the permissions model is SERVICE_MANAGED . Conditional: Specify either ExecutionRoleTemplateBody or ExecutionRoleTemplateUrl , but not both. If you don't specify either, CloudFormation uses the default service-managed execution role in target accounts. |
execution_role_template_url |
No | The URL of an Amazon S3 object that contains the template that creates a custom execution role in target accounts. This parameter applies only when the permissions model is SERVICE_MANAGED . Conditional: Specify either ExecutionRoleTemplateBody or ExecutionRoleTemplateUrl , but not both. If you don't specify either, CloudFormation uses the default service-managed execution role in target accounts. |
stack_set_output_bucket |
No | The name of the Amazon S3 bucket that stores the execution role stack template body. CloudFormation uses this bucket only when you specify a custom execution role template. |
Output
CreateStackSetOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
stack_set_id |
str | None |
Always present | — |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
AutoDeployment, CallAs, Capability, CreateStackSetOutput, ManagedExecution, Parameter, PermissionModels, Tag
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_cloudformation.exceptions:
CreatedButModifiedError, LimitExceededError, NameAlreadyExistsError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.