Skip to content

initialize_service async

initialize_service(
    *,
    config_overrides: Optional[AsyncodbClientConfig] = None,
    oci_identity_domain: Optional[bool] = None,
    autonomous_database_oci_aws_secrets_manager_integration: Optional[Access] = None,
) -> InitializeServiceOutput

Initializes the ODB service for the first time in an account.

Parameters:

  • oci_identity_domain (Optional[bool], default: None ) –

    The Oracle Cloud Infrastructure (OCI) identity domain configuration for service initialization.

  • autonomous_database_oci_aws_secrets_manager_integration (Optional[Access], default: None ) –

    Specifies whether to enable or disable the OCI service-account role for Amazon Web Services Secrets Manager integration with Autonomous Database.

Raises:

  • AccessDeniedException –

    You don't have sufficient access to perform this action. Make sure you have the required permissions 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 initialize_service(
    self,
    *,
    config_overrides: Optional[AsyncodbClientConfig] = None,
    oci_identity_domain: Optional[bool] = None,
    autonomous_database_oci_aws_secrets_manager_integration: Optional[
        "capo_odb.types.access.Access"
    ] = None,
) -> "capo_odb.types.initialize_service_output.InitializeServiceOutput":
    """<p>Initializes the ODB service for the first time in an account.</p>

    Args:
        oci_identity_domain: <p>The Oracle Cloud Infrastructure (OCI) identity domain configuration for service initialization.</p>
        autonomous_database_oci_aws_secrets_manager_integration: <p>Specifies whether to enable or disable the OCI service-account role for Amazon Web Services Secrets Manager integration with Autonomous Database.</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.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.initialize_service_input.InitializeServiceInput]",
    ) -> AsyncOperationResponse[
        "capo_odb.types.initialize_service_output.InitializeServiceOutput"
    ]:
        import capo_odb._operations.odb.initialize_service

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("InitializeService")
    )
    input_: capo_odb.types.initialize_service_input.InitializeServiceInput = {}
    if oci_identity_domain is not None:
        input_["oci_identity_domain"] = oci_identity_domain
    if autonomous_database_oci_aws_secrets_manager_integration is not None:
        input_["autonomous_database_oci_aws_secrets_manager_integration"] = (
            autonomous_database_oci_aws_secrets_manager_integration
        )

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