Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Modifies the specified attribute of the specified Amazon FPGA Image (AFI).
Synopsis
- data ModifyFpgaImageAttribute = ModifyFpgaImageAttribute' {}
- newModifyFpgaImageAttribute :: Text -> ModifyFpgaImageAttribute
- modifyFpgaImageAttribute_attribute :: Lens' ModifyFpgaImageAttribute (Maybe FpgaImageAttributeName)
- modifyFpgaImageAttribute_description :: Lens' ModifyFpgaImageAttribute (Maybe Text)
- modifyFpgaImageAttribute_dryRun :: Lens' ModifyFpgaImageAttribute (Maybe Bool)
- modifyFpgaImageAttribute_loadPermission :: Lens' ModifyFpgaImageAttribute (Maybe LoadPermissionModifications)
- modifyFpgaImageAttribute_name :: Lens' ModifyFpgaImageAttribute (Maybe Text)
- modifyFpgaImageAttribute_operationType :: Lens' ModifyFpgaImageAttribute (Maybe OperationType)
- modifyFpgaImageAttribute_productCodes :: Lens' ModifyFpgaImageAttribute (Maybe [Text])
- modifyFpgaImageAttribute_userGroups :: Lens' ModifyFpgaImageAttribute (Maybe [Text])
- modifyFpgaImageAttribute_userIds :: Lens' ModifyFpgaImageAttribute (Maybe [Text])
- modifyFpgaImageAttribute_fpgaImageId :: Lens' ModifyFpgaImageAttribute Text
- data ModifyFpgaImageAttributeResponse = ModifyFpgaImageAttributeResponse' {}
- newModifyFpgaImageAttributeResponse :: Int -> ModifyFpgaImageAttributeResponse
- modifyFpgaImageAttributeResponse_fpgaImageAttribute :: Lens' ModifyFpgaImageAttributeResponse (Maybe FpgaImageAttribute)
- modifyFpgaImageAttributeResponse_httpStatus :: Lens' ModifyFpgaImageAttributeResponse Int
Creating a Request
data ModifyFpgaImageAttribute Source #
See: newModifyFpgaImageAttribute
smart constructor.
ModifyFpgaImageAttribute' | |
|
Instances
newModifyFpgaImageAttribute Source #
Create a value of ModifyFpgaImageAttribute
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:attribute:ModifyFpgaImageAttribute'
, modifyFpgaImageAttribute_attribute
- The name of the attribute.
ModifyFpgaImageAttribute
, modifyFpgaImageAttribute_description
- A description for the AFI.
$sel:dryRun:ModifyFpgaImageAttribute'
, modifyFpgaImageAttribute_dryRun
- 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
.
$sel:loadPermission:ModifyFpgaImageAttribute'
, modifyFpgaImageAttribute_loadPermission
- The load permission for the AFI.
ModifyFpgaImageAttribute
, modifyFpgaImageAttribute_name
- A name for the AFI.
$sel:operationType:ModifyFpgaImageAttribute'
, modifyFpgaImageAttribute_operationType
- The operation type.
ModifyFpgaImageAttribute
, modifyFpgaImageAttribute_productCodes
- The 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.
$sel:userGroups:ModifyFpgaImageAttribute'
, modifyFpgaImageAttribute_userGroups
- The user groups. This parameter is valid only when modifying the
loadPermission
attribute.
$sel:userIds:ModifyFpgaImageAttribute'
, modifyFpgaImageAttribute_userIds
- The Amazon Web Services account IDs. This parameter is valid only when
modifying the loadPermission
attribute.
ModifyFpgaImageAttribute
, modifyFpgaImageAttribute_fpgaImageId
- The ID of the AFI.
Request Lenses
modifyFpgaImageAttribute_attribute :: Lens' ModifyFpgaImageAttribute (Maybe FpgaImageAttributeName) Source #
The name of the attribute.
modifyFpgaImageAttribute_description :: Lens' ModifyFpgaImageAttribute (Maybe Text) Source #
A description for the AFI.
modifyFpgaImageAttribute_dryRun :: Lens' ModifyFpgaImageAttribute (Maybe Bool) Source #
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
.
modifyFpgaImageAttribute_loadPermission :: Lens' ModifyFpgaImageAttribute (Maybe LoadPermissionModifications) Source #
The load permission for the AFI.
modifyFpgaImageAttribute_name :: Lens' ModifyFpgaImageAttribute (Maybe Text) Source #
A name for the AFI.
modifyFpgaImageAttribute_operationType :: Lens' ModifyFpgaImageAttribute (Maybe OperationType) Source #
The operation type.
modifyFpgaImageAttribute_productCodes :: Lens' ModifyFpgaImageAttribute (Maybe [Text]) Source #
The 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.
modifyFpgaImageAttribute_userGroups :: Lens' ModifyFpgaImageAttribute (Maybe [Text]) Source #
The user groups. This parameter is valid only when modifying the
loadPermission
attribute.
modifyFpgaImageAttribute_userIds :: Lens' ModifyFpgaImageAttribute (Maybe [Text]) Source #
The Amazon Web Services account IDs. This parameter is valid only when
modifying the loadPermission
attribute.
modifyFpgaImageAttribute_fpgaImageId :: Lens' ModifyFpgaImageAttribute Text Source #
The ID of the AFI.
Destructuring the Response
data ModifyFpgaImageAttributeResponse Source #
See: newModifyFpgaImageAttributeResponse
smart constructor.
ModifyFpgaImageAttributeResponse' | |
|
Instances
Generic ModifyFpgaImageAttributeResponse Source # | |
Read ModifyFpgaImageAttributeResponse Source # | |
Show ModifyFpgaImageAttributeResponse Source # | |
Defined in Amazonka.EC2.ModifyFpgaImageAttribute | |
NFData ModifyFpgaImageAttributeResponse Source # | |
Defined in Amazonka.EC2.ModifyFpgaImageAttribute rnf :: ModifyFpgaImageAttributeResponse -> () # | |
Eq ModifyFpgaImageAttributeResponse Source # | |
type Rep ModifyFpgaImageAttributeResponse Source # | |
Defined in Amazonka.EC2.ModifyFpgaImageAttribute type Rep ModifyFpgaImageAttributeResponse = D1 ('MetaData "ModifyFpgaImageAttributeResponse" "Amazonka.EC2.ModifyFpgaImageAttribute" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ModifyFpgaImageAttributeResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fpgaImageAttribute") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FpgaImageAttribute)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newModifyFpgaImageAttributeResponse Source #
Create a value of ModifyFpgaImageAttributeResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:fpgaImageAttribute:ModifyFpgaImageAttributeResponse'
, modifyFpgaImageAttributeResponse_fpgaImageAttribute
- Information about the attribute.
$sel:httpStatus:ModifyFpgaImageAttributeResponse'
, modifyFpgaImageAttributeResponse_httpStatus
- The response's http status code.
Response Lenses
modifyFpgaImageAttributeResponse_fpgaImageAttribute :: Lens' ModifyFpgaImageAttributeResponse (Maybe FpgaImageAttribute) Source #
Information about the attribute.
modifyFpgaImageAttributeResponse_httpStatus :: Lens' ModifyFpgaImageAttributeResponse Int Source #
The response's http status code.