amazonka-ec2-1.6.0: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.CreateNetworkInterfacePermission

Contents

Description

Grants an AWS authorized partner account permission to attach the specified network interface to an instance in their account.

You can grant permission to a single AWS account only, and only one account at a time.

Synopsis

Creating a Request

createNetworkInterfacePermission #

Creates a value of CreateNetworkInterfacePermission with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • cnipAWSAccountId - The AWS account ID.
  • cnipAWSService - The AWS service. Currently not supported.
  • cnipDryRun - 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 .
  • cnipNetworkInterfaceId - The ID of the network interface.
  • cnipPermission - The type of permission to grant.

data CreateNetworkInterfacePermission #

Contains the parameters for CreateNetworkInterfacePermission.

See: createNetworkInterfacePermission smart constructor.

Instances
Eq CreateNetworkInterfacePermission # 
Instance details

Defined in Network.AWS.EC2.CreateNetworkInterfacePermission

Data CreateNetworkInterfacePermission # 
Instance details

Defined in Network.AWS.EC2.CreateNetworkInterfacePermission

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateNetworkInterfacePermission -> c CreateNetworkInterfacePermission #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateNetworkInterfacePermission #

toConstr :: CreateNetworkInterfacePermission -> Constr #

dataTypeOf :: CreateNetworkInterfacePermission -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateNetworkInterfacePermission) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateNetworkInterfacePermission) #

gmapT :: (forall b. Data b => b -> b) -> CreateNetworkInterfacePermission -> CreateNetworkInterfacePermission #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateNetworkInterfacePermission -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateNetworkInterfacePermission -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateNetworkInterfacePermission -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateNetworkInterfacePermission -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateNetworkInterfacePermission -> m CreateNetworkInterfacePermission #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateNetworkInterfacePermission -> m CreateNetworkInterfacePermission #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateNetworkInterfacePermission -> m CreateNetworkInterfacePermission #

Read CreateNetworkInterfacePermission # 
Instance details

Defined in Network.AWS.EC2.CreateNetworkInterfacePermission

Show CreateNetworkInterfacePermission # 
Instance details

Defined in Network.AWS.EC2.CreateNetworkInterfacePermission

Generic CreateNetworkInterfacePermission # 
Instance details

Defined in Network.AWS.EC2.CreateNetworkInterfacePermission

Associated Types

type Rep CreateNetworkInterfacePermission :: * -> * #

Hashable CreateNetworkInterfacePermission # 
Instance details

Defined in Network.AWS.EC2.CreateNetworkInterfacePermission

AWSRequest CreateNetworkInterfacePermission # 
Instance details

Defined in Network.AWS.EC2.CreateNetworkInterfacePermission

Associated Types

type Rs CreateNetworkInterfacePermission :: * #

ToHeaders CreateNetworkInterfacePermission # 
Instance details

Defined in Network.AWS.EC2.CreateNetworkInterfacePermission

ToPath CreateNetworkInterfacePermission # 
Instance details

Defined in Network.AWS.EC2.CreateNetworkInterfacePermission

ToQuery CreateNetworkInterfacePermission # 
Instance details

Defined in Network.AWS.EC2.CreateNetworkInterfacePermission

NFData CreateNetworkInterfacePermission # 
Instance details

Defined in Network.AWS.EC2.CreateNetworkInterfacePermission

type Rep CreateNetworkInterfacePermission # 
Instance details

Defined in Network.AWS.EC2.CreateNetworkInterfacePermission

type Rep CreateNetworkInterfacePermission = D1 (MetaData "CreateNetworkInterfacePermission" "Network.AWS.EC2.CreateNetworkInterfacePermission" "amazonka-ec2-1.6.0-G6ppxISnQxeI7PhDx9p8Zy" False) (C1 (MetaCons "CreateNetworkInterfacePermission'" PrefixI True) ((S1 (MetaSel (Just "_cnipAWSAccountId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cnipAWSService") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_cnipDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 (MetaSel (Just "_cnipNetworkInterfaceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_cnipPermission") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 InterfacePermissionType)))))
type Rs CreateNetworkInterfacePermission # 
Instance details

Defined in Network.AWS.EC2.CreateNetworkInterfacePermission

Request Lenses

cnipAWSService :: Lens' CreateNetworkInterfacePermission (Maybe Text) #

The AWS service. Currently not supported.

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

Destructuring the Response

createNetworkInterfacePermissionResponse #

Creates a value of CreateNetworkInterfacePermissionResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateNetworkInterfacePermissionResponse #

Contains the output of CreateNetworkInterfacePermission.

See: createNetworkInterfacePermissionResponse smart constructor.

Instances
Eq CreateNetworkInterfacePermissionResponse # 
Instance details

Defined in Network.AWS.EC2.CreateNetworkInterfacePermission

Data CreateNetworkInterfacePermissionResponse # 
Instance details

Defined in Network.AWS.EC2.CreateNetworkInterfacePermission

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateNetworkInterfacePermissionResponse -> c CreateNetworkInterfacePermissionResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateNetworkInterfacePermissionResponse #

toConstr :: CreateNetworkInterfacePermissionResponse -> Constr #

dataTypeOf :: CreateNetworkInterfacePermissionResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateNetworkInterfacePermissionResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateNetworkInterfacePermissionResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateNetworkInterfacePermissionResponse -> CreateNetworkInterfacePermissionResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateNetworkInterfacePermissionResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateNetworkInterfacePermissionResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateNetworkInterfacePermissionResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateNetworkInterfacePermissionResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateNetworkInterfacePermissionResponse -> m CreateNetworkInterfacePermissionResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateNetworkInterfacePermissionResponse -> m CreateNetworkInterfacePermissionResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateNetworkInterfacePermissionResponse -> m CreateNetworkInterfacePermissionResponse #

Read CreateNetworkInterfacePermissionResponse # 
Instance details

Defined in Network.AWS.EC2.CreateNetworkInterfacePermission

Show CreateNetworkInterfacePermissionResponse # 
Instance details

Defined in Network.AWS.EC2.CreateNetworkInterfacePermission

Generic CreateNetworkInterfacePermissionResponse # 
Instance details

Defined in Network.AWS.EC2.CreateNetworkInterfacePermission

Associated Types

type Rep CreateNetworkInterfacePermissionResponse :: * -> * #

NFData CreateNetworkInterfacePermissionResponse # 
Instance details

Defined in Network.AWS.EC2.CreateNetworkInterfacePermission

type Rep CreateNetworkInterfacePermissionResponse # 
Instance details

Defined in Network.AWS.EC2.CreateNetworkInterfacePermission

type Rep CreateNetworkInterfacePermissionResponse = D1 (MetaData "CreateNetworkInterfacePermissionResponse" "Network.AWS.EC2.CreateNetworkInterfacePermission" "amazonka-ec2-1.6.0-G6ppxISnQxeI7PhDx9p8Zy" False) (C1 (MetaCons "CreateNetworkInterfacePermissionResponse'" PrefixI True) (S1 (MetaSel (Just "_cniprsInterfacePermission") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe NetworkInterfacePermission)) :*: S1 (MetaSel (Just "_cniprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

cniprsInterfacePermission :: Lens' CreateNetworkInterfacePermissionResponse (Maybe NetworkInterfacePermission) #

Information about the permission for the network interface.