amazonka-ec2-1.4.4: 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 Source #

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:

data ConfirmProductInstance Source #

Contains the parameters for ConfirmProductInstance.

See: confirmProductInstance smart constructor.

Instances

Eq ConfirmProductInstance Source # 
Data ConfirmProductInstance Source # 

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 Source # 
Show ConfirmProductInstance Source # 
Generic ConfirmProductInstance Source # 
Hashable ConfirmProductInstance Source # 
NFData ConfirmProductInstance Source # 

Methods

rnf :: ConfirmProductInstance -> () #

AWSRequest ConfirmProductInstance Source # 
ToPath ConfirmProductInstance Source # 
ToHeaders ConfirmProductInstance Source # 
ToQuery ConfirmProductInstance Source # 
type Rep ConfirmProductInstance Source # 
type Rep ConfirmProductInstance = D1 (MetaData "ConfirmProductInstance" "Network.AWS.EC2.ConfirmProductInstance" "amazonka-ec2-1.4.4-4aYNmHv73MpJXVQjlVKYjQ" 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 Source # 

Request Lenses

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

cpiProductCode :: Lens' ConfirmProductInstance Text Source #

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

Destructuring the Response

confirmProductInstanceResponse Source #

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:

data ConfirmProductInstanceResponse Source #

Contains the output of ConfirmProductInstance.

See: confirmProductInstanceResponse smart constructor.

Instances

Eq ConfirmProductInstanceResponse Source # 
Data ConfirmProductInstanceResponse Source # 

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 Source # 
Show ConfirmProductInstanceResponse Source # 
Generic ConfirmProductInstanceResponse Source # 
NFData ConfirmProductInstanceResponse Source # 
type Rep ConfirmProductInstanceResponse Source # 
type Rep ConfirmProductInstanceResponse = D1 (MetaData "ConfirmProductInstanceResponse" "Network.AWS.EC2.ConfirmProductInstance" "amazonka-ec2-1.4.4-4aYNmHv73MpJXVQjlVKYjQ" 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) Source #

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

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