Skip to content

list_exascale_db_storage_vaults async

list_exascale_db_storage_vaults(
    *,
    config_overrides: Optional[AsyncodbClientConfig] = None,
    max_results: Optional[int] = None,
    next_token: Optional[str] = None,
    cloud_exadata_infrastructure_id: Optional[ResourceIdOrArn] = None,
    vault_type: Optional[ExascaleDbStorageVaultType] = None,
) -> ListExascaleDbStorageVaultsOutput

Returns information about the Exascale storage vaults owned by your Amazon Web Services account.

Parameters:

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

    The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output.

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

    The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.

  • cloud_exadata_infrastructure_id (Optional[ResourceIdOrArn], default: None ) –

    The unique identifier or Amazon Resource Name (ARN) of an Exadata infrastructure. If you specify this value, the operation returns only the Exascale storage vaults on that infrastructure that you own or that are shared with you. The infrastructure can be one that's shared with you through Amazon Web Services Resource Access Manager (Amazon Web Services RAM). You can't combine this filter with a vaultType of EXASCALE_INFRASTRUCTURE.

  • vault_type (Optional[ExascaleDbStorageVaultType], default: None ) –

    The type of Exascale storage vaults to return. Specify DEDICATED_INFRASTRUCTURE to return Exascale storage vaults on dedicated Exadata infrastructure, or EXASCALE_INFRASTRUCTURE to return Exascale storage vaults for Exascale VM clusters. If you don't specify a value, the operation returns both types. You can't combine EXASCALE_INFRASTRUCTURE with the cloudExadataInfrastructureId filter.

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.

  • 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 list_exascale_db_storage_vaults(
    self,
    *,
    config_overrides: Optional[AsyncodbClientConfig] = None,
    max_results: Optional[int] = None,
    next_token: Optional[str] = None,
    cloud_exadata_infrastructure_id: Optional[
        "capo_odb.types.resource_id_or_arn.ResourceIdOrArn"
    ] = None,
    vault_type: Optional[
        "capo_odb.types.exascale_db_storage_vault_type.ExascaleDbStorageVaultType"
    ] = None,
) -> "capo_odb.types.list_exascale_db_storage_vaults_output.ListExascaleDbStorageVaultsOutput":
    """<p>Returns information about the Exascale storage vaults owned by your Amazon Web Services account.</p>

    Args:
        max_results: <p>The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output.</p>
        next_token: <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
        cloud_exadata_infrastructure_id: <p>The unique identifier or Amazon Resource Name (ARN) of an Exadata infrastructure. If you specify this value, the operation returns only the Exascale storage vaults on that infrastructure that you own or that are shared with you. The infrastructure can be one that's shared with you through Amazon Web Services Resource Access Manager (Amazon Web Services RAM). You can't combine this filter with a <code>vaultType</code> of <code>EXASCALE_INFRASTRUCTURE</code>.</p>
        vault_type: <p>The type of Exascale storage vaults to return. Specify <code>DEDICATED_INFRASTRUCTURE</code> to return Exascale storage vaults on dedicated Exadata infrastructure, or <code>EXASCALE_INFRASTRUCTURE</code> to return Exascale storage vaults for Exascale VM clusters. If you don't specify a value, the operation returns both types. You can't combine <code>EXASCALE_INFRASTRUCTURE</code> with the <code>cloudExadataInfrastructureId</code> filter.</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.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.list_exascale_db_storage_vaults_input.ListExascaleDbStorageVaultsInput]",
    ) -> AsyncOperationResponse[
        "capo_odb.types.list_exascale_db_storage_vaults_output.ListExascaleDbStorageVaultsOutput"
    ]:
        import capo_odb._operations.odb.list_exascale_db_storage_vaults

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListExascaleDbStorageVaults")
    )
    input_: capo_odb.types.list_exascale_db_storage_vaults_input.ListExascaleDbStorageVaultsInput = {}
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token
    if cloud_exadata_infrastructure_id is not None:
        input_["cloud_exadata_infrastructure_id"] = cloud_exadata_infrastructure_id
    if vault_type is not None:
        input_["vault_type"] = vault_type

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