getStackPolicy method
Returns the stack policy for a specified stack. If a stack doesn't have a policy, a null value is returned.
Parameter stackName :
The name or unique stack ID that's associated with the stack whose policy
you want to get.
Implementation
Future<GetStackPolicyOutput> getStackPolicy({
required String stackName,
}) async {
final $request = <String, String>{
'StackName': stackName,
};
final $result = await _protocol.send(
$request,
action: 'GetStackPolicy',
version: '2010-05-15',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
resultWrapper: 'GetStackPolicyResult',
);
return GetStackPolicyOutput.fromXml($result);
}