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 |
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.
CancelImageLaunchPermission' | |
|
Instances
newCancelImageLaunchPermission Source #
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.
CancelImageLaunchPermissionResponse' | |
|
Instances
Generic CancelImageLaunchPermissionResponse Source # | |
Read CancelImageLaunchPermissionResponse Source # | |
Show CancelImageLaunchPermissionResponse Source # | |
NFData CancelImageLaunchPermissionResponse Source # | |
Defined in Amazonka.EC2.CancelImageLaunchPermission rnf :: CancelImageLaunchPermissionResponse -> () # | |
Eq CancelImageLaunchPermissionResponse Source # | |
type Rep CancelImageLaunchPermissionResponse Source # | |
Defined in Amazonka.EC2.CancelImageLaunchPermission type Rep CancelImageLaunchPermissionResponse = D1 ('MetaData "CancelImageLaunchPermissionResponse" "Amazonka.EC2.CancelImageLaunchPermission" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "CancelImageLaunchPermissionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "return'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newCancelImageLaunchPermissionResponse Source #
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.