listImports method

Future<ListImportsOutput> listImports({
  1. required String exportName,
  2. String? 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.

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

Parameter nextToken : A string (provided by the ListImports response output) that identifies the next page of stacks that are importing the specified exported output value.

Implementation

Future<ListImportsOutput> listImports({
  required String exportName,
  String? nextToken,
}) async {
  ArgumentError.checkNotNull(exportName, 'exportName');
  _s.validateStringLength(
    'nextToken',
    nextToken,
    1,
    1024,
  );
  final $request = <String, dynamic>{};
  $request['ExportName'] = exportName;
  nextToken?.also((arg) => $request['NextToken'] = arg);
  final $result = await _protocol.send(
    $request,
    action: 'ListImports',
    version: '2010-05-15',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['ListImportsInput'],
    shapes: shapes,
    resultWrapper: 'ListImportsResult',
  );
  return ListImportsOutput.fromXml($result);
}