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

Copyright(c) 2013-2017 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 Source #

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 Source #

Contains the parameters for CreateNetworkInterfacePermission.

See: createNetworkInterfacePermission smart constructor.

Instances

Eq CreateNetworkInterfacePermission Source # 
Data CreateNetworkInterfacePermission Source # 

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 Source # 
Show CreateNetworkInterfacePermission Source # 
Generic CreateNetworkInterfacePermission Source # 
Hashable CreateNetworkInterfacePermission Source # 
NFData CreateNetworkInterfacePermission Source # 
AWSRequest CreateNetworkInterfacePermission Source # 
ToQuery CreateNetworkInterfacePermission Source # 
ToPath CreateNetworkInterfacePermission Source # 
ToHeaders CreateNetworkInterfacePermission Source # 
type Rep CreateNetworkInterfacePermission Source # 
type Rep CreateNetworkInterfacePermission = D1 (MetaData "CreateNetworkInterfacePermission" "Network.AWS.EC2.CreateNetworkInterfacePermission" "amazonka-ec2-1.5.0-8IdXK3SzsETDMW2aFpANS9" False) (C1 (MetaCons "CreateNetworkInterfacePermission'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_cnipAWSAccountId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_cnipAWSService") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_cnipDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_cnipNetworkInterfaceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_cnipPermission") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 InterfacePermissionType))))))
type Rs CreateNetworkInterfacePermission Source # 

Request Lenses

cnipAWSService :: Lens' CreateNetworkInterfacePermission (Maybe Text) Source #

The AWS service. Currently not supported.

cnipDryRun :: 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

createNetworkInterfacePermissionResponse Source #

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 Source #

Contains the output of CreateNetworkInterfacePermission.

See: createNetworkInterfacePermissionResponse smart constructor.

Instances

Eq CreateNetworkInterfacePermissionResponse Source # 
Data CreateNetworkInterfacePermissionResponse Source # 

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 Source # 
Show CreateNetworkInterfacePermissionResponse Source # 
Generic CreateNetworkInterfacePermissionResponse Source # 
NFData CreateNetworkInterfacePermissionResponse Source # 
type Rep CreateNetworkInterfacePermissionResponse Source # 
type Rep CreateNetworkInterfacePermissionResponse = D1 (MetaData "CreateNetworkInterfacePermissionResponse" "Network.AWS.EC2.CreateNetworkInterfacePermission" "amazonka-ec2-1.5.0-8IdXK3SzsETDMW2aFpANS9" False) (C1 (MetaCons "CreateNetworkInterfacePermissionResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cniprsInterfacePermission") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe NetworkInterfacePermission))) (S1 (MetaSel (Just Symbol "_cniprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses