Skip to content

CloudFormationClient.set_alias

rboto-cloudformation==0.4.0 · Service index · Types

Model summary (excerpt): Assigns an alias to an existing stack. An alias is an alternative name for a stack that can be used in place of the stack name in any CloudFormation API call that accepts the StackName parameter. This enables you to effectively rename a stack without recreating it. After setting an alias, both the original stack name and the alias resolve to the same stack. Setting an alias does not change the...

Install and imports

python -m pip install "rboto[cloudformation]==0.4.0"
from rboto import CloudFormationClient

Signature

async def set_alias(
    *,
    stack_name: str,
    alias_name: str,
) -> None: ...

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_name Yes The name or unique stack ID of the stack to assign an alias to.
alias_name Yes The alias to assign to the stack. The alias can then be used in place of the stack name in any API call that accepts StackName . The name must be unique within the same account and Region. It cannot match an existing stack name or another active alias. An alias name can contain only alphanumeric characters (case-sensitive) and hyphens. It must start with an alphabetic character and can't be...

Output

None.

| 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.

—

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:

AlreadyExistsError, LimitExceededError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model