Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- resetFpgaImageAttribute :: Text -> ResetFpgaImageAttribute
- data ResetFpgaImageAttribute
- rfiaAttribute :: Lens' ResetFpgaImageAttribute (Maybe ResetFpgaImageAttributeName)
- rfiaDryRun :: Lens' ResetFpgaImageAttribute (Maybe Bool)
- rfiaFpgaImageId :: Lens' ResetFpgaImageAttribute Text
- resetFpgaImageAttributeResponse :: Int -> ResetFpgaImageAttributeResponse
- data ResetFpgaImageAttributeResponse
- rfiarsReturn :: Lens' ResetFpgaImageAttributeResponse (Maybe Bool)
- rfiarsResponseStatus :: Lens' ResetFpgaImageAttributeResponse Int
Creating a Request
resetFpgaImageAttribute Source #
Creates a value of ResetFpgaImageAttribute
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rfiaAttribute
- The attribute.rfiaDryRun
- 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 isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.rfiaFpgaImageId
- The ID of the AFI.
data ResetFpgaImageAttribute Source #
See: resetFpgaImageAttribute
smart constructor.
Instances
Request Lenses
rfiaAttribute :: Lens' ResetFpgaImageAttribute (Maybe ResetFpgaImageAttributeName) Source #
The attribute.
rfiaDryRun :: 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
.
rfiaFpgaImageId :: Lens' ResetFpgaImageAttribute Text Source #
The ID of the AFI.
Destructuring the Response
resetFpgaImageAttributeResponse Source #
Creates a value of ResetFpgaImageAttributeResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rfiarsReturn
- Istrue
if the request succeeds, and an error otherwise.rfiarsResponseStatus
- -- | The response status code.
data ResetFpgaImageAttributeResponse Source #
See: resetFpgaImageAttributeResponse
smart constructor.
Instances
Response Lenses
rfiarsReturn :: Lens' ResetFpgaImageAttributeResponse (Maybe Bool) Source #
Is true
if the request succeeds, and an error otherwise.
rfiarsResponseStatus :: Lens' ResetFpgaImageAttributeResponse Int Source #
- - | The response status code.