getMpaTeamAssociation method

Future<GetMpaTeamAssociationOutput> getMpaTeamAssociation({
  1. required MpaOperation action,
})

Returns the Multi-Party Approval (MPA) team association for a protected operation.

Cross-account use: This operation can't be used across different Amazon Web Services accounts.

Related operations:

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ServiceQuotaExceededException. May throw ServiceUnavailableException. May throw ThrottlingException. May throw ValidationException.

Parameter action : The protected operation whose MPA team association you want to retrieve. Currently, the only supported value is IMPORT_ROOT_PUBLIC_KEY_CERTIFICATE.

Implementation

Future<GetMpaTeamAssociationOutput> getMpaTeamAssociation({
  required MpaOperation action,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'PaymentCryptographyControlPlane.GetMpaTeamAssociation'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'Action': action.value,
    },
  );

  return GetMpaTeamAssociationOutput.fromJson(jsonResponse.body);
}