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

Description

Grants an Amazon Web Services-authorized account permission to attach the specified network interface to an instance in their account.

You can grant permission to a single Amazon Web Services account only, and only one account at a time.

Synopsis

Creating a Request

data CreateNetworkInterfacePermission Source #

Contains the parameters for CreateNetworkInterfacePermission.

See: newCreateNetworkInterfacePermission smart constructor.

Constructors

CreateNetworkInterfacePermission' 

Fields

Instances

Instances details
ToHeaders CreateNetworkInterfacePermission Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkInterfacePermission

ToPath CreateNetworkInterfacePermission Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkInterfacePermission

ToQuery CreateNetworkInterfacePermission Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkInterfacePermission

AWSRequest CreateNetworkInterfacePermission Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkInterfacePermission

Generic CreateNetworkInterfacePermission Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkInterfacePermission

Associated Types

type Rep CreateNetworkInterfacePermission :: Type -> Type #

Read CreateNetworkInterfacePermission Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkInterfacePermission

Show CreateNetworkInterfacePermission Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkInterfacePermission

NFData CreateNetworkInterfacePermission Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkInterfacePermission

Eq CreateNetworkInterfacePermission Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkInterfacePermission

Hashable CreateNetworkInterfacePermission Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkInterfacePermission

type AWSResponse CreateNetworkInterfacePermission Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkInterfacePermission

type Rep CreateNetworkInterfacePermission Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkInterfacePermission

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

newCreateNetworkInterfacePermission Source #

Create a value of CreateNetworkInterfacePermission 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:

CreateNetworkInterfacePermission, createNetworkInterfacePermission_awsAccountId - The Amazon Web Services account ID.

CreateNetworkInterfacePermission, createNetworkInterfacePermission_awsService - The Amazon Web Service. Currently not supported.

$sel:dryRun:CreateNetworkInterfacePermission', createNetworkInterfacePermission_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.

CreateNetworkInterfacePermission, createNetworkInterfacePermission_networkInterfaceId - The ID of the network interface.

CreateNetworkInterfacePermission, createNetworkInterfacePermission_permission - The type of permission to grant.

Request Lenses

createNetworkInterfacePermission_dryRun :: Lens' CreateNetworkInterfacePermission (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.

Destructuring the Response

data CreateNetworkInterfacePermissionResponse Source #

Contains the output of CreateNetworkInterfacePermission.

See: newCreateNetworkInterfacePermissionResponse smart constructor.

Constructors

CreateNetworkInterfacePermissionResponse' 

Fields

Instances

Instances details
Generic CreateNetworkInterfacePermissionResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkInterfacePermission

Read CreateNetworkInterfacePermissionResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkInterfacePermission

Show CreateNetworkInterfacePermissionResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkInterfacePermission

NFData CreateNetworkInterfacePermissionResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkInterfacePermission

Eq CreateNetworkInterfacePermissionResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkInterfacePermission

type Rep CreateNetworkInterfacePermissionResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateNetworkInterfacePermission

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

newCreateNetworkInterfacePermissionResponse Source #

Create a value of CreateNetworkInterfacePermissionResponse 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:interfacePermission:CreateNetworkInterfacePermissionResponse', createNetworkInterfacePermissionResponse_interfacePermission - Information about the permission for the network interface.

$sel:httpStatus:CreateNetworkInterfacePermissionResponse', createNetworkInterfacePermissionResponse_httpStatus - The response's http status code.

Response Lenses