Skip to content

disassociate_instance_storage_config async

disassociate_instance_storage_config(
    instance_id: InstanceId,
    association_id: AssociationId,
    resource_type: InstanceStorageResourceType,
    *,
    config_overrides: Optional[AsyncConnectClientConfig] = None,
    client_token: Optional[ClientToken] = None,
) -> None

This API is in preview release for Connect Customer and is subject to change.

Removes the storage type configurations for the specified resource type and association ID.

Parameters:

  • instance_id (InstanceId) –

    The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

  • association_id (AssociationId) –

    The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID.

  • resource_type (InstanceStorageResourceType) –

    A valid resource type.

  • client_token (Optional[ClientToken], default: None ) –

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.

Raises:

Source code in docs_src/capo_connect/_services/async_connect.py
async def disassociate_instance_storage_config(
    self,
    instance_id: "capo_connect.types.instance_id.InstanceId",
    association_id: "capo_connect.types.association_id.AssociationId",
    resource_type: "capo_connect.types.instance_storage_resource_type.InstanceStorageResourceType",
    *,
    config_overrides: Optional[AsyncConnectClientConfig] = None,
    client_token: Optional["capo_connect.types.client_token.ClientToken"] = None,
) -> None:
    """<p>This API is in preview release for Connect Customer and is subject to change.</p> <p>Removes the storage type configurations for the specified resource type and association ID.</p>

    Args:
        instance_id: <p>The identifier of the Connect Customer instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>
        association_id: <p>The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID.</p>
        resource_type: <p>A valid resource type.</p>
        client_token: <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see <a href="https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/">Making retries safe with idempotent APIs</a>.</p>

    Raises:
        capo_connect.errors.internal_service_exception.InternalServiceException: <p>Request processing failed because of an error or failure with the service.</p>
        capo_connect.errors.invalid_parameter_exception.InvalidParameterException: <p>One or more of the specified parameters are not valid.</p>
        capo_connect.errors.invalid_request_exception.InvalidRequestException: <p>The request is not valid.</p>
        capo_connect.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource was not found.</p>
        capo_connect.errors.throttling_exception.ThrottlingException: <p>The throttling limit has been exceeded.</p>
        capo_connect.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_connect.types.disassociate_instance_storage_config_request.DisassociateInstanceStorageConfigRequest]",
    ) -> AsyncOperationResponse[None]:
        import capo_connect._operations.amazon_connect_service.disassociate_instance_storage_config

        (
            output,
            http_response,
        ) = await capo_connect._operations.amazon_connect_service.disassociate_instance_storage_config.async_disassociate_instance_storage_config(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DisassociateInstanceStorageConfig")
    )
    input_: capo_connect.types.disassociate_instance_storage_config_request.DisassociateInstanceStorageConfigRequest = {
        "instance_id": instance_id,
        "association_id": association_id,
        "resource_type": resource_type,
    }
    if client_token is None:
        client_token = str(uuid.uuid4())
    input_["client_token"] = client_token

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