describeAccessPolicy method

Future<DescribeAccessPolicyResponse> describeAccessPolicy({
  1. required String accessPolicyId,
})

Describes an access policy, which specifies an identity's access to an IoT SiteWise Monitor portal or project.

May throw InternalFailureException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter accessPolicyId : The ID of the access policy.

Implementation

Future<DescribeAccessPolicyResponse> describeAccessPolicy({
  required String accessPolicyId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/access-policies/${Uri.encodeComponent(accessPolicyId)}',
    hostPrefix: 'monitor.',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeAccessPolicyResponse.fromJson(response);
}