getComponentPolicy method

Future<GetComponentPolicyResponse> getComponentPolicy({
  1. required String componentArn,
})

Gets a component policy.

May throw ServiceException. May throw ServiceUnavailableException. May throw ResourceNotFoundException. May throw InvalidRequestException. May throw ForbiddenException. May throw CallRateLimitExceededException.

Parameter componentArn : The Amazon Resource Name (ARN) of the component whose policy you want to retrieve.

Implementation

Future<GetComponentPolicyResponse> getComponentPolicy({
  required String componentArn,
}) async {
  ArgumentError.checkNotNull(componentArn, 'componentArn');
  final $query = <String, List<String>>{
    'componentArn': [componentArn],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/GetComponentPolicy',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return GetComponentPolicyResponse.fromJson(response);
}