Skip to content

update_exascale_db_storage_vault async

update_exascale_db_storage_vault(
    exascale_db_storage_vault_id: ResourceIdOrArn,
    *,
    config_overrides: Optional[AsyncodbClientConfig] = None,
    additional_flash_cache_in_percent: Optional[int] = None,
    autoscale_limit_in_g_bs: Optional[int] = None,
    description: Optional[str] = None,
    display_name: Optional[ResourceDisplayName] = None,
    high_capacity_database_storage_total_size_in_g_bs: Optional[int] = None,
    is_autoscale_enabled: Optional[bool] = None,
) -> UpdateExascaleDbStorageVaultOutput

Updates the specified Exascale storage vault.

Parameters:

  • exascale_db_storage_vault_id (ResourceIdOrArn) –

    The unique identifier of the Exascale storage vault to update.

  • additional_flash_cache_in_percent (Optional[int], default: None ) –

    The additional flash cache percentage for the Exascale storage vault.

  • autoscale_limit_in_g_bs (Optional[int], default: None ) –

    The autoscale limit in gigabytes (GB) for the Exascale storage vault.

  • description (Optional[str], default: None ) –

    A new description for the Exascale storage vault.

  • display_name (Optional[ResourceDisplayName], default: None ) –

    A new user-friendly name for the Exascale storage vault.

  • high_capacity_database_storage_total_size_in_g_bs (Optional[int], default: None ) –

    The total size of the high-capacity database storage, in gigabytes (GB), for the Exascale storage vault.

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

    Specifies whether autoscaling is enabled for the Exascale storage vault.

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.

  • 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 update_exascale_db_storage_vault(
    self,
    exascale_db_storage_vault_id: "capo_odb.types.resource_id_or_arn.ResourceIdOrArn",
    *,
    config_overrides: Optional[AsyncodbClientConfig] = None,
    additional_flash_cache_in_percent: Optional[int] = None,
    autoscale_limit_in_g_bs: Optional[int] = None,
    description: Optional[str] = None,
    display_name: Optional[
        "capo_odb.types.resource_display_name.ResourceDisplayName"
    ] = None,
    high_capacity_database_storage_total_size_in_g_bs: Optional[int] = None,
    is_autoscale_enabled: Optional[bool] = None,
) -> "capo_odb.types.update_exascale_db_storage_vault_output.UpdateExascaleDbStorageVaultOutput":
    """<p>Updates the specified Exascale storage vault.</p>

    Args:
        exascale_db_storage_vault_id: <p>The unique identifier of the Exascale storage vault to update.</p>
        additional_flash_cache_in_percent: <p>The additional flash cache percentage for the Exascale storage vault.</p>
        autoscale_limit_in_g_bs: <p>The autoscale limit in gigabytes (GB) for the Exascale storage vault.</p>
        description: <p>A new description for the Exascale storage vault.</p>
        display_name: <p>A new user-friendly name for the Exascale storage vault.</p>
        high_capacity_database_storage_total_size_in_g_bs: <p>The total size of the high-capacity database storage, in gigabytes (GB), for the Exascale storage vault.</p>
        is_autoscale_enabled: <p>Specifies whether autoscaling is enabled for the Exascale storage vault.</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.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.update_exascale_db_storage_vault_input.UpdateExascaleDbStorageVaultInput]",
    ) -> AsyncOperationResponse[
        "capo_odb.types.update_exascale_db_storage_vault_output.UpdateExascaleDbStorageVaultOutput"
    ]:
        import capo_odb._operations.odb.update_exascale_db_storage_vault

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateExascaleDbStorageVault")
    )
    input_: capo_odb.types.update_exascale_db_storage_vault_input.UpdateExascaleDbStorageVaultInput = {
        "exascale_db_storage_vault_id": exascale_db_storage_vault_id
    }
    if additional_flash_cache_in_percent is not None:
        input_["additional_flash_cache_in_percent"] = (
            additional_flash_cache_in_percent
        )
    if autoscale_limit_in_g_bs is not None:
        input_["autoscale_limit_in_g_bs"] = autoscale_limit_in_g_bs
    if description is not None:
        input_["description"] = description
    if display_name is not None:
        input_["display_name"] = display_name
    if high_capacity_database_storage_total_size_in_g_bs is not None:
        input_["high_capacity_database_storage_total_size_in_g_bs"] = (
            high_capacity_database_storage_total_size_in_g_bs
        )
    if is_autoscale_enabled is not None:
        input_["is_autoscale_enabled"] = is_autoscale_enabled

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