Skip to content

accept_marketplace_registration async

accept_marketplace_registration(
    marketplace_registration_token: str,
    *,
    config_overrides: Optional[AsyncodbClientConfig] = None,
) -> AcceptMarketplaceRegistrationOutput

Registers the Amazon Web Services Marketplace token for your Amazon Web Services account to activate your Oracle Database@Amazon Web Services subscription.

Parameters:

  • marketplace_registration_token (str) –

    The registration token that's generated by Amazon Web Services Marketplace and sent to Oracle Database@Amazon Web Services.

Raises:

  • AccessDeniedException –

    You don't have sufficient access to perform this action. Make sure you have the required permissions and try again.

  • ConflictException –

    Occurs when a conflict with the current status of your resource. Fix any inconsistencies with your resource and try again.

  • InternalServerException –

    Occurs when there is an internal failure in the Oracle Database@Amazon Web Services service. Wait and try again.

  • ThrottlingException –

    The request was denied due to request throttling.

  • ValidationException –

    The request has failed validation because it is missing required fields or has invalid inputs.

  • UnknownServiceError –

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

Source code in docs_src/capo_odb/_services/async_odb.py
async def accept_marketplace_registration(
    self,
    marketplace_registration_token: str,
    *,
    config_overrides: Optional[AsyncodbClientConfig] = None,
) -> "capo_odb.types.accept_marketplace_registration_output.AcceptMarketplaceRegistrationOutput":
    """<p>Registers the Amazon Web Services Marketplace token for your Amazon Web Services account to activate your Oracle Database@Amazon Web Services subscription.</p>

    Args:
        marketplace_registration_token: <p>The registration token that's generated by Amazon Web Services Marketplace and sent to Oracle Database@Amazon Web Services.</p>

    Raises:
        capo_odb.errors.access_denied_exception.AccessDeniedException: <p>You don't have sufficient access to perform this action. Make sure you have the required permissions and try again.</p>
        capo_odb.errors.conflict_exception.ConflictException: <p>Occurs when a conflict with the current status of your resource. Fix any inconsistencies with your resource and try again.</p>
        capo_odb.errors.internal_server_exception.InternalServerException: <p>Occurs when there is an internal failure in the Oracle Database@Amazon Web Services service. Wait and try again.</p>
        capo_odb.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
        capo_odb.errors.validation_exception.ValidationException: <p>The request has failed validation because it is missing required fields or has invalid inputs.</p>
        capo_odb.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_odb.types.accept_marketplace_registration_input.AcceptMarketplaceRegistrationInput]",
    ) -> AsyncOperationResponse[
        "capo_odb.types.accept_marketplace_registration_output.AcceptMarketplaceRegistrationOutput"
    ]:
        import capo_odb._operations.odb.accept_marketplace_registration

        (
            output,
            http_response,
        ) = await capo_odb._operations.odb.accept_marketplace_registration.async_accept_marketplace_registration(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("AcceptMarketplaceRegistration")
    )
    input_: capo_odb.types.accept_marketplace_registration_input.AcceptMarketplaceRegistrationInput = {
        "marketplace_registration_token": marketplace_registration_token
    }

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