Skip to content

disassociate_merged_graphql_api async

disassociate_merged_graphql_api(
    source_api_identifier: String,
    association_id: String,
    *,
    config_overrides: Optional[AsyncAppSyncClientConfig] = None,
) -> DisassociateMergedGraphqlApiResponse

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

Parameters:

  • source_api_identifier (String) –

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

  • association_id (String) –

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

Raises:

  • BadRequestException –

    The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.

  • ConcurrentModificationException –

    Another modification is in progress at this time and it must complete before you can make your change.

  • InternalFailureException –

    An internal AppSync error occurred. Try your request again.

  • NotFoundException –

    The resource specified in the request was not found. Check the resource, and then try again.

  • UnauthorizedException –

    You aren't authorized to perform this operation.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_appsync/_services/async_app_sync.py
async def disassociate_merged_graphql_api(
    self,
    source_api_identifier: "capo_appsync.types.string.String",
    association_id: "capo_appsync.types.string.String",
    *,
    config_overrides: Optional[AsyncAppSyncClientConfig] = None,
) -> "capo_appsync.types.disassociate_merged_graphql_api_response.DisassociateMergedGraphqlApiResponse":
    """<p>Deletes an association between a Merged API and source API using the source API's identifier and the association ID.</p>

    Args:
        source_api_identifier: <p>The identifier of the AppSync Source API. This is generated by the AppSync service. In most cases, source APIs (especially in your account) only require the API ID value or ARN of the source API. However, source APIs from other accounts (cross-account use cases) strictly require the full resource ARN of the source API.</p>
        association_id: <p>The ID generated by the AppSync service for the source API association.</p>

    Raises:
        capo_appsync.errors.bad_request_exception.BadRequestException: <p>The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.</p>
        capo_appsync.errors.concurrent_modification_exception.ConcurrentModificationException: <p>Another modification is in progress at this time and it must complete before you can make your change.</p>
        capo_appsync.errors.internal_failure_exception.InternalFailureException: <p>An internal AppSync error occurred. Try your request again.</p>
        capo_appsync.errors.not_found_exception.NotFoundException: <p>The resource specified in the request was not found. Check the resource, and then try again.</p>
        capo_appsync.errors.unauthorized_exception.UnauthorizedException: <p>You aren't authorized to perform this operation.</p>
        capo_appsync.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_appsync.types.disassociate_merged_graphql_api_request.DisassociateMergedGraphqlApiRequest]",
    ) -> AsyncOperationResponse[
        "capo_appsync.types.disassociate_merged_graphql_api_response.DisassociateMergedGraphqlApiResponse"
    ]:
        import capo_appsync._operations.aws_deepdish_control_plane_service.disassociate_merged_graphql_api

        (
            output,
            http_response,
        ) = await capo_appsync._operations.aws_deepdish_control_plane_service.disassociate_merged_graphql_api.async_disassociate_merged_graphql_api(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DisassociateMergedGraphqlApi")
    )
    input_: capo_appsync.types.disassociate_merged_graphql_api_request.DisassociateMergedGraphqlApiRequest = {
        "source_api_identifier": source_api_identifier,
        "association_id": association_id,
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output