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 |
Resets the specified attribute of the specified Amazon FPGA Image (AFI) to its default value. You can only reset the load permission attribute.
Synopsis
- data ResetFpgaImageAttribute = ResetFpgaImageAttribute' {}
- newResetFpgaImageAttribute :: Text -> ResetFpgaImageAttribute
- resetFpgaImageAttribute_attribute :: Lens' ResetFpgaImageAttribute (Maybe ResetFpgaImageAttributeName)
- resetFpgaImageAttribute_dryRun :: Lens' ResetFpgaImageAttribute (Maybe Bool)
- resetFpgaImageAttribute_fpgaImageId :: Lens' ResetFpgaImageAttribute Text
- data ResetFpgaImageAttributeResponse = ResetFpgaImageAttributeResponse' {
- return' :: Maybe Bool
- httpStatus :: Int
- newResetFpgaImageAttributeResponse :: Int -> ResetFpgaImageAttributeResponse
- resetFpgaImageAttributeResponse_return :: Lens' ResetFpgaImageAttributeResponse (Maybe Bool)
- resetFpgaImageAttributeResponse_httpStatus :: Lens' ResetFpgaImageAttributeResponse Int
Creating a Request
data ResetFpgaImageAttribute Source #
See: newResetFpgaImageAttribute
smart constructor.
ResetFpgaImageAttribute' | |
|
Instances
newResetFpgaImageAttribute Source #
Create a value of ResetFpgaImageAttribute
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:ResetFpgaImageAttribute'
, resetFpgaImageAttribute_attribute
- The attribute.
$sel:dryRun:ResetFpgaImageAttribute'
, resetFpgaImageAttribute_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
.
ResetFpgaImageAttribute
, resetFpgaImageAttribute_fpgaImageId
- The ID of the AFI.
Request Lenses
resetFpgaImageAttribute_attribute :: Lens' ResetFpgaImageAttribute (Maybe ResetFpgaImageAttributeName) Source #
The attribute.
resetFpgaImageAttribute_dryRun :: Lens' ResetFpgaImageAttribute (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
.
resetFpgaImageAttribute_fpgaImageId :: Lens' ResetFpgaImageAttribute Text Source #
The ID of the AFI.
Destructuring the Response
data ResetFpgaImageAttributeResponse Source #
See: newResetFpgaImageAttributeResponse
smart constructor.
ResetFpgaImageAttributeResponse' | |
|
Instances
Generic ResetFpgaImageAttributeResponse Source # | |
Read ResetFpgaImageAttributeResponse Source # | |
Show ResetFpgaImageAttributeResponse Source # | |
Defined in Amazonka.EC2.ResetFpgaImageAttribute | |
NFData ResetFpgaImageAttributeResponse Source # | |
Defined in Amazonka.EC2.ResetFpgaImageAttribute rnf :: ResetFpgaImageAttributeResponse -> () # | |
Eq ResetFpgaImageAttributeResponse Source # | |
type Rep ResetFpgaImageAttributeResponse Source # | |
Defined in Amazonka.EC2.ResetFpgaImageAttribute type Rep ResetFpgaImageAttributeResponse = D1 ('MetaData "ResetFpgaImageAttributeResponse" "Amazonka.EC2.ResetFpgaImageAttribute" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ResetFpgaImageAttributeResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "return'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newResetFpgaImageAttributeResponse Source #
Create a value of ResetFpgaImageAttributeResponse
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:return':ResetFpgaImageAttributeResponse'
, resetFpgaImageAttributeResponse_return
- Is true
if the request succeeds, and an error otherwise.
$sel:httpStatus:ResetFpgaImageAttributeResponse'
, resetFpgaImageAttributeResponse_httpStatus
- The response's http status code.
Response Lenses
resetFpgaImageAttributeResponse_return :: Lens' ResetFpgaImageAttributeResponse (Maybe Bool) Source #
Is true
if the request succeeds, and an error otherwise.
resetFpgaImageAttributeResponse_httpStatus :: Lens' ResetFpgaImageAttributeResponse Int Source #
The response's http status code.