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 |
Amazonka.EC2.CancelImageLaunchPermission
Description
Removes your Amazon Web Services account from the launch permissions for the specified AMI. For more information, see Cancel having an AMI shared with your Amazon Web Services account in the Amazon EC2 User Guide.
Synopsis
- data CancelImageLaunchPermission = CancelImageLaunchPermission' {}
- newCancelImageLaunchPermission :: Text -> CancelImageLaunchPermission
- cancelImageLaunchPermission_dryRun :: Lens' CancelImageLaunchPermission (Maybe Bool)
- cancelImageLaunchPermission_imageId :: Lens' CancelImageLaunchPermission Text
- data CancelImageLaunchPermissionResponse = CancelImageLaunchPermissionResponse' {
- return' :: Maybe Bool
- httpStatus :: Int
- newCancelImageLaunchPermissionResponse :: Int -> CancelImageLaunchPermissionResponse
- cancelImageLaunchPermissionResponse_return :: Lens' CancelImageLaunchPermissionResponse (Maybe Bool)
- cancelImageLaunchPermissionResponse_httpStatus :: Lens' CancelImageLaunchPermissionResponse Int
Creating a Request
data CancelImageLaunchPermission Source #
See: newCancelImageLaunchPermission
smart constructor.
Constructors
CancelImageLaunchPermission' | |
Fields
|
Instances
newCancelImageLaunchPermission Source #
Arguments
:: Text | |
-> CancelImageLaunchPermission |
Create a value of CancelImageLaunchPermission
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:dryRun:CancelImageLaunchPermission'
, cancelImageLaunchPermission_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
.
CancelImageLaunchPermission
, cancelImageLaunchPermission_imageId
- The ID of the AMI that was shared with your Amazon Web Services account.
Request Lenses
cancelImageLaunchPermission_dryRun :: Lens' CancelImageLaunchPermission (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
.
cancelImageLaunchPermission_imageId :: Lens' CancelImageLaunchPermission Text Source #
The ID of the AMI that was shared with your Amazon Web Services account.
Destructuring the Response
data CancelImageLaunchPermissionResponse Source #
See: newCancelImageLaunchPermissionResponse
smart constructor.
Constructors
CancelImageLaunchPermissionResponse' | |
Fields
|
Instances
newCancelImageLaunchPermissionResponse Source #
Arguments
:: Int | |
-> CancelImageLaunchPermissionResponse |
Create a value of CancelImageLaunchPermissionResponse
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':CancelImageLaunchPermissionResponse'
, cancelImageLaunchPermissionResponse_return
- Returns true
if the request succeeds; otherwise, it returns an error.
$sel:httpStatus:CancelImageLaunchPermissionResponse'
, cancelImageLaunchPermissionResponse_httpStatus
- The response's http status code.
Response Lenses
cancelImageLaunchPermissionResponse_return :: Lens' CancelImageLaunchPermissionResponse (Maybe Bool) Source #
Returns true
if the request succeeds; otherwise, it returns an error.
cancelImageLaunchPermissionResponse_httpStatus :: Lens' CancelImageLaunchPermissionResponse Int Source #
The response's http status code.