Skip to main content

imports

Creates, updates, deletes, gets or lists an imports resource.

Overview

Nameimports
TypeResource
Idaws.cloudformation.imports

Fields

The following fields are returned by SELECT queries:

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

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_importsselectExportName, regionNextTokenLists 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

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
ExportNamestringThe name of the exported output value. CloudFormation returns the stack names that are importing this value.
regionstringAWS region (default: us-east-1)
NextTokenstringThe token for the next set of items to return. (You received this token from a previous call.)

SELECT examples

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.

SELECT
import
FROM aws.cloudformation.imports
WHERE ExportName = '{{ ExportName }}' -- required
AND region = '{{ region }}' -- required
AND NextToken = '{{ NextToken }}'
;