describeResourcePolicy method

Future<DescribeResourcePolicyResponse> describeResourcePolicy({
  1. required String workspaceId,
})

Returns information about the resource-based policy attached to an Amazon Managed Service for Prometheus workspace.

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

Parameter workspaceId : The ID of the workspace to describe the resource-based policy for.

Implementation

Future<DescribeResourcePolicyResponse> describeResourcePolicy({
  required String workspaceId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/workspaces/${Uri.encodeComponent(workspaceId)}/policy',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeResourcePolicyResponse.fromJson(response);
}