getAcmeExternalAccountBindingCredentials method

Future<GetAcmeExternalAccountBindingCredentialsResponse> getAcmeExternalAccountBindingCredentials({
  1. required String acmeExternalAccountBindingArn,
})

Retrieves the key ID and MAC key credentials for an external account binding. These credentials are used by ACME clients during account registration to bind to the endpoint.

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

Parameter acmeExternalAccountBindingArn : The Amazon Resource Name (ARN) of the ACME external account binding.

Implementation

Future<GetAcmeExternalAccountBindingCredentialsResponse>
    getAcmeExternalAccountBindingCredentials({
  required String acmeExternalAccountBindingArn,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target':
        'CertificateManager.GetAcmeExternalAccountBindingCredentials'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'AcmeExternalAccountBindingArn': acmeExternalAccountBindingArn,
    },
    endpoint: _resolveEndpoint(
      serviceType: 'ACM-ACME',
    ),
  );

  return GetAcmeExternalAccountBindingCredentialsResponse.fromJson(
      jsonResponse.body);
}