Skip to content

describe_connect_client_add_ins async

describe_connect_client_add_ins(
    resource_id: DirectoryId,
    *,
    config_overrides: Optional[AsyncWorkSpacesClientConfig] = None,
    next_token: Optional[PaginationToken] = None,
    max_results: Optional[Limit] = None,
) -> DescribeConnectClientAddInsResult

Retrieves a list of Connect Customer client add-ins that have been created.

Parameters:

  • resource_id (DirectoryId) –

    The directory identifier for which the client add-in is configured.

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

    If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

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

    The maximum number of items to return.

Raises:

Source code in docs_src/capo_workspaces/_services/async_work_spaces.py
async def describe_connect_client_add_ins(
    self,
    resource_id: "capo_workspaces.types.directory_id.DirectoryId",
    *,
    config_overrides: Optional[AsyncWorkSpacesClientConfig] = None,
    next_token: Optional[
        "capo_workspaces.types.pagination_token.PaginationToken"
    ] = None,
    max_results: Optional["capo_workspaces.types.limit.Limit"] = None,
) -> "capo_workspaces.types.describe_connect_client_add_ins_result.DescribeConnectClientAddInsResult":
    """<p>Retrieves a list of Connect Customer client add-ins that have been created.</p>

    Args:
        resource_id: <p>The directory identifier for which the client add-in is configured.</p>
        next_token: <p>If you received a <code>NextToken</code> from a previous call that was paginated, provide this token to receive the next set of results.</p>
        max_results: <p>The maximum number of items to return.</p>

    Raises:
        capo_workspaces.errors.access_denied_exception.AccessDeniedException: <p>The user is not authorized to access a resource.</p>
        capo_workspaces.errors.invalid_parameter_values_exception.InvalidParameterValuesException: <p>One or more parameter values are not valid.</p>
        capo_workspaces.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource could not be found.</p>
        capo_workspaces.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_workspaces.types.describe_connect_client_add_ins_request.DescribeConnectClientAddInsRequest]",
    ) -> AsyncOperationResponse[
        "capo_workspaces.types.describe_connect_client_add_ins_result.DescribeConnectClientAddInsResult"
    ]:
        import capo_workspaces._operations.workspaces_service.describe_connect_client_add_ins

        (
            output,
            http_response,
        ) = await capo_workspaces._operations.workspaces_service.describe_connect_client_add_ins.async_describe_connect_client_add_ins(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeConnectClientAddIns")
    )
    input_: capo_workspaces.types.describe_connect_client_add_ins_request.DescribeConnectClientAddInsRequest = {
        "resource_id": resource_id
    }
    if next_token is not None:
        input_["next_token"] = next_token
    if max_results is not None:
        input_["max_results"] = max_results

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