Skip to content

describe_fpga_images

describe_fpga_images(
    *,
    config_overrides: Optional[EC2ClientConfig] = None,
    dry_run: Optional[Boolean] = None,
    fpga_image_ids: Optional[FpgaImageIdList] = None,
    owners: Optional[OwnerStringList] = None,
    filters: Optional[FilterList] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[DescribeFpgaImagesMaxResults] = None,
) -> DescribeFpgaImagesResult

Describes the Amazon FPGA Images (AFIs) available to you. These include public AFIs, private AFIs that you own, and AFIs owned by other Amazon Web Services accounts for which you have load permissions.

Parameters:

  • 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.

  • fpga_image_ids (Optional[FpgaImageIdList], default: None ) –

    The AFI IDs.

  • owners (Optional[OwnerStringList], default: None ) –

    Filters the AFI by owner. Specify an Amazon Web Services account ID, self (owner is the sender of the request), or an Amazon Web Services owner alias (valid values are amazon | aws-marketplace).

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

    The filters.

    • create-time - The creation time of the AFI.

    • fpga-image-id - The FPGA image identifier (AFI ID).

    • fpga-image-global-id - The global FPGA image identifier (AGFI ID).

    • name - The name of the AFI.

    • owner-id - The Amazon Web Services account ID of the AFI owner.

    • product-code - The product code.

    • shell-version - The version of the Amazon Web Services Shell that was used to create the bitstream.

    • state - The state of the AFI (pending | failed | available | unavailable).

    • tag: - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

    • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

    • update-time - The time of the most recent update.

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

    The token to retrieve the next page of results.

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

    The maximum number of results to return in a single call.

Raises:

Source code in docs_src/capo_ec2/_services/ec2.py
def describe_fpga_images(
    self,
    *,
    config_overrides: Optional[EC2ClientConfig] = None,
    dry_run: Optional["capo_ec2.types.boolean.Boolean"] = None,
    fpga_image_ids: Optional[
        "capo_ec2.types.fpga_image_id_list.FpgaImageIdList"
    ] = None,
    owners: Optional["capo_ec2.types.owner_string_list.OwnerStringList"] = None,
    filters: Optional["capo_ec2.types.filter_list.FilterList"] = None,
    next_token: Optional["capo_ec2.types.next_token.NextToken"] = None,
    max_results: Optional[
        "capo_ec2.types.describe_fpga_images_max_results.DescribeFpgaImagesMaxResults"
    ] = None,
) -> "capo_ec2.types.describe_fpga_images_result.DescribeFpgaImagesResult":
    """<p>Describes the Amazon FPGA Images (AFIs) available to you. These include public AFIs, private AFIs that you own, and AFIs owned by other Amazon Web Services accounts for which you have load permissions.</p>

    Args:
        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>
        fpga_image_ids: <p>The AFI IDs.</p>
        owners: <p>Filters the AFI by owner. Specify an Amazon Web Services account ID, <code>self</code> (owner is the sender of the request), or an Amazon Web Services owner alias (valid values are <code>amazon</code> | <code>aws-marketplace</code>).</p>
        filters: <p>The filters.</p> <ul> <li> <p> <code>create-time</code> - The creation time of the AFI.</p> </li> <li> <p> <code>fpga-image-id</code> - The FPGA image identifier (AFI ID).</p> </li> <li> <p> <code>fpga-image-global-id</code> - The global FPGA image identifier (AGFI ID).</p> </li> <li> <p> <code>name</code> - The name of the AFI.</p> </li> <li> <p> <code>owner-id</code> - The Amazon Web Services account ID of the AFI owner.</p> </li> <li> <p> <code>product-code</code> - The product code.</p> </li> <li> <p> <code>shell-version</code> - The version of the Amazon Web Services Shell that was used to create the bitstream.</p> </li> <li> <p> <code>state</code> - The state of the AFI (<code>pending</code> | <code>failed</code> | <code>available</code> | <code>unavailable</code>).</p> </li> <li> <p> <code>tag</code>:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key <code>Owner</code> and the value <code>TeamA</code>, specify <code>tag:Owner</code> for the filter name and <code>TeamA</code> for the filter value.</p> </li> <li> <p> <code>tag-key</code> - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.</p> </li> <li> <p> <code>update-time</code> - The time of the most recent update.</p> </li> </ul>
        next_token: <p>The token to retrieve the next page of results.</p>
        max_results: <p>The maximum number of results to return in a single call.</p>

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

    def _handler(
        req: "OperationRequest[capo_ec2.types.describe_fpga_images_request.DescribeFpgaImagesRequest]",
    ) -> OperationResponse[
        "capo_ec2.types.describe_fpga_images_result.DescribeFpgaImagesResult"
    ]:
        import capo_ec2._operations.amazon_ec2.describe_fpga_images

        output, http_response = (
            capo_ec2._operations.amazon_ec2.describe_fpga_images.describe_fpga_images(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeFpgaImages")
    )
    input_: capo_ec2.types.describe_fpga_images_request.DescribeFpgaImagesRequest = {}
    if dry_run is not None:
        input_["dry_run"] = dry_run
    if fpga_image_ids is not None:
        input_["fpga_image_ids"] = fpga_image_ids
    if owners is not None:
        input_["owners"] = owners
    if filters is not None:
        input_["filters"] = filters
    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