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

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

Network.AWS.EC2.ConfirmProductInstance

Contents

Description

Determines whether a product code is associated with an instance. This action can only be used by the owner of the product code. It is useful when a product code owner needs to verify whether another user's instance is eligible for support.

Synopsis

Creating a Request

confirmProductInstance #

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

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

  • cpiDryRun - 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 .
  • cpiProductCode - The product code. This must be a product code that you own.
  • cpiInstanceId - The ID of the instance.

data ConfirmProductInstance #

Contains the parameters for ConfirmProductInstance.

See: confirmProductInstance smart constructor.

Instances

Eq ConfirmProductInstance # 
Data ConfirmProductInstance # 

Methods

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

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

toConstr :: ConfirmProductInstance -> Constr #

dataTypeOf :: ConfirmProductInstance -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ConfirmProductInstance # 
Show ConfirmProductInstance # 
Generic ConfirmProductInstance # 
Hashable ConfirmProductInstance # 
NFData ConfirmProductInstance # 

Methods

rnf :: ConfirmProductInstance -> () #

AWSRequest ConfirmProductInstance # 
ToQuery ConfirmProductInstance # 
ToPath ConfirmProductInstance # 
ToHeaders ConfirmProductInstance # 
type Rep ConfirmProductInstance # 
type Rep ConfirmProductInstance = D1 (MetaData "ConfirmProductInstance" "Network.AWS.EC2.ConfirmProductInstance" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "ConfirmProductInstance'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cpiDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_cpiProductCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_cpiInstanceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs ConfirmProductInstance # 

Request Lenses

cpiDryRun :: Lens' ConfirmProductInstance (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 .

cpiProductCode :: Lens' ConfirmProductInstance Text #

The product code. This must be a product code that you own.

cpiInstanceId :: Lens' ConfirmProductInstance Text #

The ID of the instance.

Destructuring the Response

confirmProductInstanceResponse #

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

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

  • cpirsReturn - The return value of the request. Returns true if the specified product code is owned by the requester and associated with the specified instance.
  • cpirsOwnerId - The AWS account ID of the instance owner. This is only present if the product code is attached to the instance.
  • cpirsResponseStatus - -- | The response status code.

data ConfirmProductInstanceResponse #

Contains the output of ConfirmProductInstance.

See: confirmProductInstanceResponse smart constructor.

Instances

Eq ConfirmProductInstanceResponse # 
Data ConfirmProductInstanceResponse # 

Methods

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

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

toConstr :: ConfirmProductInstanceResponse -> Constr #

dataTypeOf :: ConfirmProductInstanceResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ConfirmProductInstanceResponse # 
Show ConfirmProductInstanceResponse # 
Generic ConfirmProductInstanceResponse # 
NFData ConfirmProductInstanceResponse # 
type Rep ConfirmProductInstanceResponse # 
type Rep ConfirmProductInstanceResponse = D1 (MetaData "ConfirmProductInstanceResponse" "Network.AWS.EC2.ConfirmProductInstance" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "ConfirmProductInstanceResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cpirsReturn") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_cpirsOwnerId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_cpirsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

Response Lenses

cpirsReturn :: Lens' ConfirmProductInstanceResponse (Maybe Bool) #

The return value of the request. Returns true if the specified product code is owned by the requester and associated with the specified instance.

cpirsOwnerId :: Lens' ConfirmProductInstanceResponse (Maybe Text) #

The AWS account ID of the instance owner. This is only present if the product code is attached to the instance.