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 |
Copies the specified Amazon FPGA Image (AFI) to the current region.
- copyFpgaImage :: Text -> Text -> CopyFpgaImage
- data CopyFpgaImage
- cfiClientToken :: Lens' CopyFpgaImage (Maybe Text)
- cfiName :: Lens' CopyFpgaImage (Maybe Text)
- cfiDescription :: Lens' CopyFpgaImage (Maybe Text)
- cfiDryRun :: Lens' CopyFpgaImage (Maybe Bool)
- cfiSourceFpgaImageId :: Lens' CopyFpgaImage Text
- cfiSourceRegion :: Lens' CopyFpgaImage Text
- copyFpgaImageResponse :: Int -> CopyFpgaImageResponse
- data CopyFpgaImageResponse
- crsFpgaImageId :: Lens' CopyFpgaImageResponse (Maybe Text)
- crsResponseStatus :: Lens' CopyFpgaImageResponse Int
Creating a Request
Creates a value of CopyFpgaImage
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cfiClientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency .cfiName
- The name for the new AFI. The default is the name of the source AFI.cfiDescription
- The description for the new AFI.cfiDryRun
- 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
.cfiSourceFpgaImageId
- The ID of the source AFI.cfiSourceRegion
- The region that contains the source AFI.
data CopyFpgaImage Source #
See: copyFpgaImage
smart constructor.
Request Lenses
cfiClientToken :: Lens' CopyFpgaImage (Maybe Text) Source #
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency .
cfiName :: Lens' CopyFpgaImage (Maybe Text) Source #
The name for the new AFI. The default is the name of the source AFI.
cfiDescription :: Lens' CopyFpgaImage (Maybe Text) Source #
The description for the new AFI.
cfiDryRun :: Lens' CopyFpgaImage (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
.
cfiSourceFpgaImageId :: Lens' CopyFpgaImage Text Source #
The ID of the source AFI.
cfiSourceRegion :: Lens' CopyFpgaImage Text Source #
The region that contains the source AFI.
Destructuring the Response
copyFpgaImageResponse Source #
Creates a value of CopyFpgaImageResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
crsFpgaImageId
- The ID of the new AFI.crsResponseStatus
- -- | The response status code.
data CopyFpgaImageResponse Source #
See: copyFpgaImageResponse
smart constructor.
Response Lenses
crsFpgaImageId :: Lens' CopyFpgaImageResponse (Maybe Text) Source #
The ID of the new AFI.
crsResponseStatus :: Lens' CopyFpgaImageResponse Int Source #
- - | The response status code.