Skip to content

list_app_image_configs async

list_app_image_configs(
    *,
    config_overrides: Optional[AsyncSageMakerClientConfig] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
    name_contains: Optional[AppImageConfigName] = None,
    creation_time_before: Optional[Timestamp] = None,
    creation_time_after: Optional[Timestamp] = None,
    modified_time_before: Optional[Timestamp] = None,
    modified_time_after: Optional[Timestamp] = None,
    sort_by: Optional[AppImageConfigSortKey] = None,
    sort_order: Optional[SortOrder] = None,
) -> ListAppImageConfigsResponse

Lists the AppImageConfigs in your account and their properties. The list can be filtered by creation time or modified time, and whether the AppImageConfig name contains a specified string.

Parameters:

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

    The total number of items to return in the response. If the total number of items available is more than the value specified, a NextToken is provided in the response. To resume pagination, provide the NextToken value in the as part of a subsequent call. The default value is 10.

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

    If the previous call to ListImages didn't return the full set of AppImageConfigs, the call returns a token for getting the next set of AppImageConfigs.

  • name_contains (Optional[AppImageConfigName], default: None ) –

    A filter that returns only AppImageConfigs whose name contains the specified string.

  • creation_time_before (Optional[Timestamp], default: None ) –

    A filter that returns only AppImageConfigs created on or before the specified time.

  • creation_time_after (Optional[Timestamp], default: None ) –

    A filter that returns only AppImageConfigs created on or after the specified time.

  • modified_time_before (Optional[Timestamp], default: None ) –

    A filter that returns only AppImageConfigs modified on or before the specified time.

  • modified_time_after (Optional[Timestamp], default: None ) –

    A filter that returns only AppImageConfigs modified on or after the specified time.

  • sort_by (Optional[AppImageConfigSortKey], default: None ) –

    The property used to sort results. The default value is CreationTime.

  • sort_order (Optional[SortOrder], default: None ) –

    The sort order. The default value is Descending.

Raises:

Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
async def list_app_image_configs(
    self,
    *,
    config_overrides: Optional[AsyncSageMakerClientConfig] = None,
    max_results: Optional["capo_sagemaker.types.max_results.MaxResults"] = None,
    next_token: Optional["capo_sagemaker.types.next_token.NextToken"] = None,
    name_contains: Optional[
        "capo_sagemaker.types.app_image_config_name.AppImageConfigName"
    ] = None,
    creation_time_before: Optional[
        "capo_sagemaker.types.timestamp.Timestamp"
    ] = None,
    creation_time_after: Optional[
        "capo_sagemaker.types.timestamp.Timestamp"
    ] = None,
    modified_time_before: Optional[
        "capo_sagemaker.types.timestamp.Timestamp"
    ] = None,
    modified_time_after: Optional[
        "capo_sagemaker.types.timestamp.Timestamp"
    ] = None,
    sort_by: Optional[
        "capo_sagemaker.types.app_image_config_sort_key.AppImageConfigSortKey"
    ] = None,
    sort_order: Optional["capo_sagemaker.types.sort_order.SortOrder"] = None,
) -> "capo_sagemaker.types.list_app_image_configs_response.ListAppImageConfigsResponse":
    """<p>Lists the AppImageConfigs in your account and their properties. The list can be filtered by creation time or modified time, and whether the AppImageConfig name contains a specified string.</p>

    Args:
        max_results: <p>The total number of items to return in the response. If the total number of items available is more than the value specified, a <code>NextToken</code> is provided in the response. To resume pagination, provide the <code>NextToken</code> value in the as part of a subsequent call. The default value is 10.</p>
        next_token: <p>If the previous call to <code>ListImages</code> didn't return the full set of AppImageConfigs, the call returns a token for getting the next set of AppImageConfigs.</p>
        name_contains: <p>A filter that returns only AppImageConfigs whose name contains the specified string.</p>
        creation_time_before: <p>A filter that returns only AppImageConfigs created on or before the specified time.</p>
        creation_time_after: <p>A filter that returns only AppImageConfigs created on or after the specified time.</p>
        modified_time_before: <p>A filter that returns only AppImageConfigs modified on or before the specified time.</p>
        modified_time_after: <p>A filter that returns only AppImageConfigs modified on or after the specified time.</p>
        sort_by: <p>The property used to sort results. The default value is <code>CreationTime</code>.</p>
        sort_order: <p>The sort order. The default value is <code>Descending</code>.</p>

    Raises:
        capo_sagemaker.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_sagemaker.types.list_app_image_configs_request.ListAppImageConfigsRequest]",
    ) -> AsyncOperationResponse[
        "capo_sagemaker.types.list_app_image_configs_response.ListAppImageConfigsResponse"
    ]:
        import capo_sagemaker._operations.sage_maker.list_app_image_configs

        (
            output,
            http_response,
        ) = await capo_sagemaker._operations.sage_maker.list_app_image_configs.async_list_app_image_configs(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListAppImageConfigs")
    )
    input_: capo_sagemaker.types.list_app_image_configs_request.ListAppImageConfigsRequest = {}
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token
    if name_contains is not None:
        input_["name_contains"] = name_contains
    if creation_time_before is not None:
        input_["creation_time_before"] = creation_time_before
    if creation_time_after is not None:
        input_["creation_time_after"] = creation_time_after
    if modified_time_before is not None:
        input_["modified_time_before"] = modified_time_before
    if modified_time_after is not None:
        input_["modified_time_after"] = modified_time_after
    if sort_by is not None:
        input_["sort_by"] = sort_by
    if sort_order is not None:
        input_["sort_order"] = sort_order

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