Skip to content

list_raster_data_collections

list_raster_data_collections(
    *,
    config_overrides: Optional[SageMakerGeospatialClientConfig] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[int] = None,
) -> ListRasterDataCollectionsOutput

Use this operation to get raster data collections.

Parameters:

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

    If the previous response was truncated, you receive this token. Use it in your next request to receive the next set of results.

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

    The total number of items to return.

Raises:

Source code in docs_src/capo_sagemaker_geospatial/_services/sage_maker_geospatial.py
def list_raster_data_collections(
    self,
    *,
    config_overrides: Optional[SageMakerGeospatialClientConfig] = None,
    next_token: Optional[
        "capo_sagemaker_geospatial.types.next_token.NextToken"
    ] = None,
    max_results: Optional[int] = None,
) -> "capo_sagemaker_geospatial.types.list_raster_data_collections_output.ListRasterDataCollectionsOutput":
    """<p>Use this operation to get raster data collections.</p>

    Args:
        next_token: <p>If the previous response was truncated, you receive this token. Use it in your next request to receive the next set of results.</p>
        max_results: <p>The total number of items to return.</p>

    Raises:
        capo_sagemaker_geospatial.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_sagemaker_geospatial.errors.internal_server_exception.InternalServerException: <p>The request processing has failed because of an unknown error, exception, or failure.</p>
        capo_sagemaker_geospatial.errors.resource_not_found_exception.ResourceNotFoundException: <p>The request references a resource which does not exist.</p>
        capo_sagemaker_geospatial.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
        capo_sagemaker_geospatial.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
        capo_sagemaker_geospatial.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_sagemaker_geospatial.types.list_raster_data_collections_input.ListRasterDataCollectionsInput]",
    ) -> OperationResponse[
        "capo_sagemaker_geospatial.types.list_raster_data_collections_output.ListRasterDataCollectionsOutput"
    ]:
        import capo_sagemaker_geospatial._operations.sage_maker_geospatial.list_raster_data_collections

        output, http_response = (
            capo_sagemaker_geospatial._operations.sage_maker_geospatial.list_raster_data_collections.list_raster_data_collections(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    def _redact_input(
        input_: "capo_sagemaker_geospatial.types.list_raster_data_collections_input.ListRasterDataCollectionsInput",
    ) -> dict[str, Any]:
        import capo_sagemaker_geospatial.types.list_raster_data_collections_input

        return capo_sagemaker_geospatial.types.list_raster_data_collections_input.redact_sensitive(
            input_
        )

    def _redact_output(
        output: "capo_sagemaker_geospatial.types.list_raster_data_collections_output.ListRasterDataCollectionsOutput",
    ) -> dict[str, Any]:
        import capo_sagemaker_geospatial.types.list_raster_data_collections_output

        return capo_sagemaker_geospatial.types.list_raster_data_collections_output.redact_sensitive(
            output
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging(
            "ListRasterDataCollections",
            redact_input=_redact_input,
            redact_output=_redact_output,
        ),
    )
    input_: capo_sagemaker_geospatial.types.list_raster_data_collections_input.ListRasterDataCollectionsInput = {}
    if next_token is not None:
        input_["next_token"] = next_token
    if max_results is not None:
        input_["max_results"] = max_results

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output