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.DeleteNetworkInterfacePermission

Description

Deletes a permission for a network interface. By default, you cannot delete the permission if the account for which you're removing the permission has attached the network interface to an instance. However, you can force delete the permission, regardless of any attachment.

Synopsis

Creating a Request

data DeleteNetworkInterfacePermission Source #

Contains the parameters for DeleteNetworkInterfacePermission.

See: newDeleteNetworkInterfacePermission smart constructor.

Constructors

DeleteNetworkInterfacePermission' 

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.

  • force :: Maybe Bool

    Specify true to remove the permission even if the network interface is attached to an instance.

  • networkInterfacePermissionId :: Text

    The ID of the network interface permission.

Instances

Instances details
ToHeaders DeleteNetworkInterfacePermission Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterfacePermission

ToPath DeleteNetworkInterfacePermission Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterfacePermission

ToQuery DeleteNetworkInterfacePermission Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterfacePermission

AWSRequest DeleteNetworkInterfacePermission Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterfacePermission

Generic DeleteNetworkInterfacePermission Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterfacePermission

Associated Types

type Rep DeleteNetworkInterfacePermission :: Type -> Type #

Read DeleteNetworkInterfacePermission Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterfacePermission

Show DeleteNetworkInterfacePermission Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterfacePermission

NFData DeleteNetworkInterfacePermission Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterfacePermission

Eq DeleteNetworkInterfacePermission Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterfacePermission

Hashable DeleteNetworkInterfacePermission Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterfacePermission

type AWSResponse DeleteNetworkInterfacePermission Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterfacePermission

type Rep DeleteNetworkInterfacePermission Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterfacePermission

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

newDeleteNetworkInterfacePermission Source #

Create a value of DeleteNetworkInterfacePermission 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:DeleteNetworkInterfacePermission', deleteNetworkInterfacePermission_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.

$sel:force:DeleteNetworkInterfacePermission', deleteNetworkInterfacePermission_force - Specify true to remove the permission even if the network interface is attached to an instance.

DeleteNetworkInterfacePermission, deleteNetworkInterfacePermission_networkInterfacePermissionId - The ID of the network interface permission.

Request Lenses

deleteNetworkInterfacePermission_dryRun :: Lens' DeleteNetworkInterfacePermission (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.

deleteNetworkInterfacePermission_force :: Lens' DeleteNetworkInterfacePermission (Maybe Bool) Source #

Specify true to remove the permission even if the network interface is attached to an instance.

Destructuring the Response

data DeleteNetworkInterfacePermissionResponse Source #

Contains the output for DeleteNetworkInterfacePermission.

See: newDeleteNetworkInterfacePermissionResponse smart constructor.

Constructors

DeleteNetworkInterfacePermissionResponse' 

Fields

Instances

Instances details
Generic DeleteNetworkInterfacePermissionResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterfacePermission

Read DeleteNetworkInterfacePermissionResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterfacePermission

Show DeleteNetworkInterfacePermissionResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterfacePermission

NFData DeleteNetworkInterfacePermissionResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterfacePermission

Eq DeleteNetworkInterfacePermissionResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterfacePermission

type Rep DeleteNetworkInterfacePermissionResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteNetworkInterfacePermission

type Rep DeleteNetworkInterfacePermissionResponse = D1 ('MetaData "DeleteNetworkInterfacePermissionResponse" "Amazonka.EC2.DeleteNetworkInterfacePermission" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DeleteNetworkInterfacePermissionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "return'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDeleteNetworkInterfacePermissionResponse Source #

Create a value of DeleteNetworkInterfacePermissionResponse 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':DeleteNetworkInterfacePermissionResponse', deleteNetworkInterfacePermissionResponse_return - Returns true if the request succeeds, otherwise returns an error.

$sel:httpStatus:DeleteNetworkInterfacePermissionResponse', deleteNetworkInterfacePermissionResponse_httpStatus - The response's http status code.

Response Lenses

deleteNetworkInterfacePermissionResponse_return :: Lens' DeleteNetworkInterfacePermissionResponse (Maybe Bool) Source #

Returns true if the request succeeds, otherwise returns an error.