describeResiliencyPolicy method

Future<DescribeResiliencyPolicyResponse> describeResiliencyPolicy({
  1. required String policyArn,
})

Describes a specified resiliency policy for an Resilience Hub application. The returned policy object includes creation time, data location constraints, the Amazon Resource Name (ARN) for the policy, tags, tier, and more.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter policyArn : Amazon Resource Name (ARN) of the resiliency policy. The format for this ARN is: arn:partition:resiliencehub:region:account:resiliency-policy/policy-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.

Implementation

Future<DescribeResiliencyPolicyResponse> describeResiliencyPolicy({
  required String policyArn,
}) async {
  final $payload = <String, dynamic>{
    'policyArn': policyArn,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/describe-resiliency-policy',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeResiliencyPolicyResponse.fromJson(response);
}