Skip to main content

fpga_image_attributes

Creates, updates, deletes, gets or lists a fpga_image_attributes resource.

Overview

Namefpga_image_attributes
TypeResource
Idaws.ec2.fpga_image_attributes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
descriptionstringThe description of the AFI.
fpga_image_idstringThe ID of the AFI.
load_permissionsstringThe load permissions.
namestringThe name of the AFI.
product_codesstringThe product codes.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_fpga_image_attributeselectFpgaImageId, Attribute, regionDryRunDescribes the specified attribute of the specified Amazon FPGA Image (AFI).
modify_fpga_image_attributeupdateFpgaImageId, regionDryRun, Attribute, OperationType, UserId, UserGroup, ProductCode, LoadPermission, Description, NameModifies the specified attribute of the specified Amazon FPGA Image (AFI).

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
AttributestringThe AFI attribute.
FpgaImageIdstringThe ID of the AFI.
regionstringAWS region (default: us-east-1)
AttributestringThe name of the attribute.
DescriptionstringA description for the AFI.
DryRunbooleanChecks 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.
LoadPermissionobjectThe load permission for the AFI.
NamestringA name for the AFI.
OperationTypestringThe operation type.
ProductCodearrayThe product codes. After you add a product code to an AFI, it can't be removed. This parameter is valid only when modifying the productCodes attribute.
UserGrouparrayThe user groups. This parameter is valid only when modifying the loadPermission attribute.
UserIdarrayThe Amazon Web Services account IDs. This parameter is valid only when modifying the loadPermission attribute.

SELECT examples

Describes the specified attribute of the specified Amazon FPGA Image (AFI).

SELECT
description,
fpga_image_id,
load_permissions,
name,
product_codes
FROM aws.ec2.fpga_image_attributes
WHERE FpgaImageId = '{{ FpgaImageId }}' -- required
AND Attribute = '{{ Attribute }}' -- required
AND region = '{{ region }}' -- required
AND DryRun = '{{ DryRun }}'
;

UPDATE examples

Modifies the specified attribute of the specified Amazon FPGA Image (AFI).

UPDATE aws.ec2.fpga_image_attributes
SET
-- No updatable properties
WHERE
FpgaImageId = '{{ FpgaImageId }}' --required
AND region = '{{ region }}' --required
AND DryRun = {{ DryRun}}
AND Attribute = '{{ Attribute}}'
AND OperationType = '{{ OperationType}}'
AND UserId = '{{ UserId}}'
AND UserGroup = '{{ UserGroup}}'
AND ProductCode = '{{ ProductCode}}'
AND LoadPermission = '{{ LoadPermission}}'
AND Description = '{{ Description}}'
AND Name = '{{ Name}}'
RETURNING
description,
fpga_image_id,
load_permissions,
name,
product_codes;