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 # 
Data 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 # 
Show CreateNetworkInterfacePermission # 
Generic CreateNetworkInterfacePermission # 
Hashable CreateNetworkInterfacePermission # 
NFData CreateNetworkInterfacePermission # 
AWSRequest CreateNetworkInterfacePermission # 
ToHeaders CreateNetworkInterfacePermission # 
ToPath CreateNetworkInterfacePermission # 
ToQuery CreateNetworkInterfacePermission # 
type Rep CreateNetworkInterfacePermission # 
type Rep CreateNetworkInterfacePermission = D1 * (MetaData "CreateNetworkInterfacePermission" "Network.AWS.EC2.CreateNetworkInterfacePermission" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" 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 # 

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 # 
Data CreateNetworkInterfacePermissionResponse # 

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 # 
Show CreateNetworkInterfacePermissionResponse # 
Generic CreateNetworkInterfacePermissionResponse # 
NFData CreateNetworkInterfacePermissionResponse # 
type Rep CreateNetworkInterfacePermissionResponse # 
type Rep CreateNetworkInterfacePermissionResponse = D1 * (MetaData "CreateNetworkInterfacePermissionResponse" "Network.AWS.EC2.CreateNetworkInterfacePermission" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" 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

cniprsInterfacePermission :: Lens' CreateNetworkInterfacePermissionResponse (Maybe NetworkInterfacePermission) #

Information about the permission for the network interface.