getSourceApiAssociation method

Future<GetSourceApiAssociationResponse> getSourceApiAssociation({
  1. required String associationId,
  2. required String mergedApiIdentifier,
})

Retrieves a SourceApiAssociation object.

May throw BadRequestException. May throw InternalFailureException. May throw NotFoundException. May throw UnauthorizedException.

Parameter associationId : The ID generated by the AppSync service for the source API association.

Parameter mergedApiIdentifier : The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.

Implementation

Future<GetSourceApiAssociationResponse> getSourceApiAssociation({
  required String associationId,
  required String mergedApiIdentifier,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/v1/mergedApis/${Uri.encodeComponent(mergedApiIdentifier)}/sourceApiAssociations/${Uri.encodeComponent(associationId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetSourceApiAssociationResponse.fromJson(response);
}