disassociateSourceGraphqlApi method

Future<DisassociateSourceGraphqlApiResponse> disassociateSourceGraphqlApi({
  1. required String associationId,
  2. required String mergedApiIdentifier,
})

Deletes an association between a Merged API and source API using the Merged API's identifier and the association ID.

May throw BadRequestException. May throw ConcurrentModificationException. 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<DisassociateSourceGraphqlApiResponse> disassociateSourceGraphqlApi({
  required String associationId,
  required String mergedApiIdentifier,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/v1/mergedApis/${Uri.encodeComponent(mergedApiIdentifier)}/sourceApiAssociations/${Uri.encodeComponent(associationId)}',
    exceptionFnMap: _exceptionFns,
  );
  return DisassociateSourceGraphqlApiResponse.fromJson(response);
}