imports
Creates, updates, deletes, gets or lists an imports resource.
Overview
| Name | imports |
| Type | Resource |
| Id | aws.cloudformation.imports |
Fields
The following fields are returned by SELECT queries:
- list_imports
| Name | Datatype | Description |
|---|---|---|
import | string | A list of stack names that are importing the specified exported output value. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_imports | select | ExportName, region | NextToken | 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
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.
| Name | Datatype | Description |
|---|---|---|
ExportName | string | The name of the exported output value. CloudFormation returns the stack names that are importing this value. |
region | string | AWS region (default: us-east-1) |
NextToken | string | The token for the next set of items to return. (You received this token from a previous call.) |
SELECT examples
- list_imports
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 }}'
;