amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

Creating a Request

data CancelImageLaunchPermission Source #

See: newCancelImageLaunchPermission smart constructor.

Constructors

CancelImageLaunchPermission' 

Fields

  • dryRun :: Maybe Bool

    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.

  • imageId :: Text

    The ID of the AMI that was shared with your Amazon Web Services account.

Instances

Instances details
ToHeaders CancelImageLaunchPermission Source # 
Instance details

Defined in Amazonka.EC2.CancelImageLaunchPermission

ToPath CancelImageLaunchPermission Source # 
Instance details

Defined in Amazonka.EC2.CancelImageLaunchPermission

ToQuery CancelImageLaunchPermission Source # 
Instance details

Defined in Amazonka.EC2.CancelImageLaunchPermission

AWSRequest CancelImageLaunchPermission Source # 
Instance details

Defined in Amazonka.EC2.CancelImageLaunchPermission

Generic CancelImageLaunchPermission Source # 
Instance details

Defined in Amazonka.EC2.CancelImageLaunchPermission

Associated Types

type Rep CancelImageLaunchPermission :: Type -> Type #

Read CancelImageLaunchPermission Source # 
Instance details

Defined in Amazonka.EC2.CancelImageLaunchPermission

Show CancelImageLaunchPermission Source # 
Instance details

Defined in Amazonka.EC2.CancelImageLaunchPermission

NFData CancelImageLaunchPermission Source # 
Instance details

Defined in Amazonka.EC2.CancelImageLaunchPermission

Eq CancelImageLaunchPermission Source # 
Instance details

Defined in Amazonka.EC2.CancelImageLaunchPermission

Hashable CancelImageLaunchPermission Source # 
Instance details

Defined in Amazonka.EC2.CancelImageLaunchPermission

type AWSResponse CancelImageLaunchPermission Source # 
Instance details

Defined in Amazonka.EC2.CancelImageLaunchPermission

type Rep CancelImageLaunchPermission Source # 
Instance details

Defined in Amazonka.EC2.CancelImageLaunchPermission

type Rep CancelImageLaunchPermission = D1 ('MetaData "CancelImageLaunchPermission" "Amazonka.EC2.CancelImageLaunchPermission" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "CancelImageLaunchPermission'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "imageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

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 #

Constructors

CancelImageLaunchPermissionResponse' 

Fields

Instances

Instances details
Generic CancelImageLaunchPermissionResponse Source # 
Instance details

Defined in Amazonka.EC2.CancelImageLaunchPermission

Read CancelImageLaunchPermissionResponse Source # 
Instance details

Defined in Amazonka.EC2.CancelImageLaunchPermission

Show CancelImageLaunchPermissionResponse Source # 
Instance details

Defined in Amazonka.EC2.CancelImageLaunchPermission

NFData CancelImageLaunchPermissionResponse Source # 
Instance details

Defined in Amazonka.EC2.CancelImageLaunchPermission

Eq CancelImageLaunchPermissionResponse Source # 
Instance details

Defined in Amazonka.EC2.CancelImageLaunchPermission

type Rep CancelImageLaunchPermissionResponse Source # 
Instance details

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.