Skip to content

associate_virtual_machines_to_exadb_vm_cluster async

associate_virtual_machines_to_exadb_vm_cluster(
    exadb_vm_cluster_id: ResourceIdOrArn,
    desired_node_count: int,
    *,
    config_overrides: Optional[AsyncodbClientConfig] = None,
) -> AssociateVirtualMachinesToExadbVmClusterOutput

Adds virtual machines to the specified Exascale VM cluster.

Parameters:

  • exadb_vm_cluster_id (ResourceIdOrArn) –

    The unique identifier of the Exascale VM cluster to add virtual machines to.

  • desired_node_count (int) –

    The desired number of nodes in the Exascale VM cluster after the association.

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.

  • ResourceNotFoundException –

    The operation tried to access a resource that doesn't exist. Make sure you provided the correct resource and try again.

  • ServiceQuotaExceededException –

    You have exceeded the service quota.

  • 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 associate_virtual_machines_to_exadb_vm_cluster(
    self,
    exadb_vm_cluster_id: "capo_odb.types.resource_id_or_arn.ResourceIdOrArn",
    desired_node_count: int,
    *,
    config_overrides: Optional[AsyncodbClientConfig] = None,
) -> "capo_odb.types.associate_virtual_machines_to_exadb_vm_cluster_output.AssociateVirtualMachinesToExadbVmClusterOutput":
    """<p>Adds virtual machines to the specified Exascale VM cluster.</p>

    Args:
        exadb_vm_cluster_id: <p>The unique identifier of the Exascale VM cluster to add virtual machines to.</p>
        desired_node_count: <p>The desired number of nodes in the Exascale VM cluster after the association.</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.resource_not_found_exception.ResourceNotFoundException: <p>The operation tried to access a resource that doesn't exist. Make sure you provided the correct resource and try again.</p>
        capo_odb.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>You have exceeded the service quota.</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.associate_virtual_machines_to_exadb_vm_cluster_input.AssociateVirtualMachinesToExadbVmClusterInput]",
    ) -> AsyncOperationResponse[
        "capo_odb.types.associate_virtual_machines_to_exadb_vm_cluster_output.AssociateVirtualMachinesToExadbVmClusterOutput"
    ]:
        import capo_odb._operations.odb.associate_virtual_machines_to_exadb_vm_cluster

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

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("AssociateVirtualMachinesToExadbVmCluster"),
    )
    input_: capo_odb.types.associate_virtual_machines_to_exadb_vm_cluster_input.AssociateVirtualMachinesToExadbVmClusterInput = {
        "exadb_vm_cluster_id": exadb_vm_cluster_id,
        "desired_node_count": desired_node_count,
    }

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