Skip to content

CloudFormation  >  Operations  >  list_imports

list_imports

Operation

list_imports async

list_imports(input: ListImportsInput, plugins: list[Plugin] | None = None) -> ListImportsOutput

Lists all stacks that are importing an exported output value. To modify or remove an exported output value, first use this action to see which stacks are using it. To see the exported output values in your account, see ListExports.

For more information about importing an exported output value, see the Fn::ImportValue function.

Parameters:

Name Type Description Default
input ListImportsInput

An instance of ListImportsInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
ListImportsOutput

An instance of ListImportsOutput.

Input

ListImportsInput dataclass

Bases: _SerdeShape

Dataclass for ListImportsInput structure.

Attributes

export_name class-attribute instance-attribute
export_name: str | None = ...

The name of the exported output value. CloudFormation returns the stack names that are importing this value.

next_token class-attribute instance-attribute
next_token: str | None = ...

The token for the next set of items to return. (You received this token from a previous call.)

Output

ListImportsOutput dataclass

Bases: _SerdeShape

Dataclass for ListImportsOutput structure.

Attributes

imports class-attribute instance-attribute
imports: list[str] | None = ...

A list of stack names that are importing the specified exported output value.

next_token class-attribute instance-attribute
next_token: str | None = ...

A string that identifies the next page of exports. If there is no additional page, this value is null.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.