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 |
Copies the specified Amazon FPGA Image (AFI) to the current Region.
Synopsis
- data CopyFpgaImage = CopyFpgaImage' {
- clientToken :: Maybe Text
- description :: Maybe Text
- dryRun :: Maybe Bool
- name :: Maybe Text
- sourceFpgaImageId :: Text
- sourceRegion :: Text
- newCopyFpgaImage :: Text -> Text -> CopyFpgaImage
- copyFpgaImage_clientToken :: Lens' CopyFpgaImage (Maybe Text)
- copyFpgaImage_description :: Lens' CopyFpgaImage (Maybe Text)
- copyFpgaImage_dryRun :: Lens' CopyFpgaImage (Maybe Bool)
- copyFpgaImage_name :: Lens' CopyFpgaImage (Maybe Text)
- copyFpgaImage_sourceFpgaImageId :: Lens' CopyFpgaImage Text
- copyFpgaImage_sourceRegion :: Lens' CopyFpgaImage Text
- data CopyFpgaImageResponse = CopyFpgaImageResponse' {
- fpgaImageId :: Maybe Text
- httpStatus :: Int
- newCopyFpgaImageResponse :: Int -> CopyFpgaImageResponse
- copyFpgaImageResponse_fpgaImageId :: Lens' CopyFpgaImageResponse (Maybe Text)
- copyFpgaImageResponse_httpStatus :: Lens' CopyFpgaImageResponse Int
Creating a Request
data CopyFpgaImage Source #
See: newCopyFpgaImage
smart constructor.
CopyFpgaImage' | |
|
Instances
Create a value of CopyFpgaImage
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:
CopyFpgaImage
, copyFpgaImage_clientToken
- Unique, case-sensitive identifier that you provide to ensure the
idempotency of the request. For more information, see
Ensuring idempotency.
CopyFpgaImage
, copyFpgaImage_description
- The description for the new AFI.
$sel:dryRun:CopyFpgaImage'
, copyFpgaImage_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
.
CopyFpgaImage
, copyFpgaImage_name
- The name for the new AFI. The default is the name of the source AFI.
$sel:sourceFpgaImageId:CopyFpgaImage'
, copyFpgaImage_sourceFpgaImageId
- The ID of the source AFI.
$sel:sourceRegion:CopyFpgaImage'
, copyFpgaImage_sourceRegion
- The Region that contains the source AFI.
Request Lenses
copyFpgaImage_clientToken :: 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.
copyFpgaImage_description :: Lens' CopyFpgaImage (Maybe Text) Source #
The description for the new AFI.
copyFpgaImage_dryRun :: 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
.
copyFpgaImage_name :: Lens' CopyFpgaImage (Maybe Text) Source #
The name for the new AFI. The default is the name of the source AFI.
copyFpgaImage_sourceFpgaImageId :: Lens' CopyFpgaImage Text Source #
The ID of the source AFI.
copyFpgaImage_sourceRegion :: Lens' CopyFpgaImage Text Source #
The Region that contains the source AFI.
Destructuring the Response
data CopyFpgaImageResponse Source #
See: newCopyFpgaImageResponse
smart constructor.
CopyFpgaImageResponse' | |
|
Instances
newCopyFpgaImageResponse Source #
Create a value of CopyFpgaImageResponse
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:
CopyFpgaImageResponse
, copyFpgaImageResponse_fpgaImageId
- The ID of the new AFI.
$sel:httpStatus:CopyFpgaImageResponse'
, copyFpgaImageResponse_httpStatus
- The response's http status code.
Response Lenses
copyFpgaImageResponse_fpgaImageId :: Lens' CopyFpgaImageResponse (Maybe Text) Source #
The ID of the new AFI.
copyFpgaImageResponse_httpStatus :: Lens' CopyFpgaImageResponse Int Source #
The response's http status code.