Skip to content

describe_fast_launch_images async

describe_fast_launch_images(
    *,
    config_overrides: Optional[AsyncEC2ClientConfig] = None,
    image_ids: Optional[FastLaunchImageIdList] = None,
    filters: Optional[FilterList] = None,
    max_results: Optional[DescribeFastLaunchImagesRequestMaxResults] = None,
    next_token: Optional[NextToken] = None,
    dry_run: Optional[Boolean] = None,
) -> DescribeFastLaunchImagesResult

Describe details for Windows AMIs that are configured for Windows fast launch.

Parameters:

  • image_ids (Optional[FastLaunchImageIdList], default: None ) –

    Specify one or more Windows AMI image IDs for the request.

  • filters (Optional[FilterList], default: None ) –

    Use the following filters to streamline results.

    • resource-type - The resource type for pre-provisioning.

    • owner-id - The owner ID for the pre-provisioning resource.

    • state - The current state of fast launching for the Windows AMI.

  • max_results (Optional[DescribeFastLaunchImagesRequestMaxResults], 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. For more information, see Pagination.

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

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

  • dry_run (Optional[Boolean], default: None ) –

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Raises:

Source code in docs_src/capo_ec2/_services/async_ec2.py
async def describe_fast_launch_images(
    self,
    *,
    config_overrides: Optional[AsyncEC2ClientConfig] = None,
    image_ids: Optional[
        "capo_ec2.types.fast_launch_image_id_list.FastLaunchImageIdList"
    ] = None,
    filters: Optional["capo_ec2.types.filter_list.FilterList"] = None,
    max_results: Optional[
        "capo_ec2.types.describe_fast_launch_images_request_max_results.DescribeFastLaunchImagesRequestMaxResults"
    ] = None,
    next_token: Optional["capo_ec2.types.next_token.NextToken"] = None,
    dry_run: Optional["capo_ec2.types.boolean.Boolean"] = None,
) -> "capo_ec2.types.describe_fast_launch_images_result.DescribeFastLaunchImagesResult":
    """<p>Describe details for Windows AMIs that are configured for Windows fast launch.</p>

    Args:
        image_ids: <p>Specify one or more Windows AMI image IDs for the request.</p>
        filters: <p>Use the following filters to streamline results.</p> <ul> <li> <p> <code>resource-type</code> - The resource type for pre-provisioning.</p> </li> <li> <p> <code>owner-id</code> - The owner ID for the pre-provisioning resource.</p> </li> <li> <p> <code>state</code> - The current state of fast launching for the Windows AMI.</p> </li> </ul>
        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. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</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>
        dry_run: <p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>

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

    async def _handler(
        req: "AsyncOperationRequest[capo_ec2.types.describe_fast_launch_images_request.DescribeFastLaunchImagesRequest]",
    ) -> AsyncOperationResponse[
        "capo_ec2.types.describe_fast_launch_images_result.DescribeFastLaunchImagesResult"
    ]:
        import capo_ec2._operations.amazon_ec2.describe_fast_launch_images

        (
            output,
            http_response,
        ) = await capo_ec2._operations.amazon_ec2.describe_fast_launch_images.async_describe_fast_launch_images(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeFastLaunchImages")
    )
    input_: capo_ec2.types.describe_fast_launch_images_request.DescribeFastLaunchImagesRequest = {}
    if image_ids is not None:
        input_["image_ids"] = image_ids
    if filters is not None:
        input_["filters"] = filters
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token
    if dry_run is not None:
        input_["dry_run"] = dry_run

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