Lists all exported output values in the account and Region in which you call this action. Use this action to see the exported output values that you can import into other stacks. To import values, use the Fn::ImportValue function.
For more information, see Get exported outputs from a deployed CloudFormation stack.
Parameters:
-
next_token
(Optional[NextToken], default:
None
)
–
The token for the next set of items to return. (You received this token from a previous call.)
Raises:
Source code in docs_src/capo_cloudformation/_services/cloud_formation.py
| def list_exports(
self,
*,
config_overrides: Optional[CloudFormationClientConfig] = None,
next_token: Optional["capo_cloudformation.types.next_token.NextToken"] = None,
) -> "capo_cloudformation.types.list_exports_output.ListExportsOutput":
"""<p>Lists all exported output values in the account and Region in which you call this action. Use this action to see the exported output values that you can import into other stacks. To import values, use the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-importvalue.html"> Fn::ImportValue</a> function.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-exports.html">Get exported outputs from a deployed CloudFormation stack</a>.</p>
Args:
next_token: <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
Raises:
capo_cloudformation.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_cloudformation.types.list_exports_input.ListExportsInput]",
) -> OperationResponse[
"capo_cloudformation.types.list_exports_output.ListExportsOutput"
]:
import capo_cloudformation._operations.cloud_formation.list_exports
output, http_response = (
capo_cloudformation._operations.cloud_formation.list_exports.list_exports(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListExports")
)
input_: capo_cloudformation.types.list_exports_input.ListExportsInput = {}
if next_token is not None:
input_["next_token"] = next_token
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|