describeStackInstance method

Future<DescribeStackInstanceOutput> describeStackInstance({
  1. required String stackInstanceAccount,
  2. required String stackInstanceRegion,
  3. required String stackSetName,
})

Returns the stack instance that's associated with the specified stack set, AWS account, and Region.

For a list of stack instances that are associated with a specific stack set, use ListStackInstances.

May throw StackSetNotFoundException. May throw StackInstanceNotFoundException.

Parameter stackInstanceAccount : The ID of an AWS account that's associated with this stack instance.

Parameter stackInstanceRegion : The name of a Region that's associated with this stack instance.

Parameter stackSetName : The name or the unique stack ID of the stack set that you want to get stack instance information for.

Implementation

Future<DescribeStackInstanceOutput> describeStackInstance({
  required String stackInstanceAccount,
  required String stackInstanceRegion,
  required String stackSetName,
}) async {
  ArgumentError.checkNotNull(stackInstanceAccount, 'stackInstanceAccount');
  ArgumentError.checkNotNull(stackInstanceRegion, 'stackInstanceRegion');
  ArgumentError.checkNotNull(stackSetName, 'stackSetName');
  final $request = <String, dynamic>{};
  $request['StackInstanceAccount'] = stackInstanceAccount;
  $request['StackInstanceRegion'] = stackInstanceRegion;
  $request['StackSetName'] = stackSetName;
  final $result = await _protocol.send(
    $request,
    action: 'DescribeStackInstance',
    version: '2010-05-15',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DescribeStackInstanceInput'],
    shapes: shapes,
    resultWrapper: 'DescribeStackInstanceResult',
  );
  return DescribeStackInstanceOutput.fromXml($result);
}