amazonka-ec2-1.6.1: 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.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 must 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:

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

data ConfirmProductInstance Source #

Contains the parameters for ConfirmProductInstance.

See: confirmProductInstance smart constructor.

Instances
Eq ConfirmProductInstance Source # 
Instance details

Defined in Network.AWS.EC2.ConfirmProductInstance

Data ConfirmProductInstance Source # 
Instance details

Defined in Network.AWS.EC2.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 Source # 
Instance details

Defined in Network.AWS.EC2.ConfirmProductInstance

Show ConfirmProductInstance Source # 
Instance details

Defined in Network.AWS.EC2.ConfirmProductInstance

Generic ConfirmProductInstance Source # 
Instance details

Defined in Network.AWS.EC2.ConfirmProductInstance

Associated Types

type Rep ConfirmProductInstance :: Type -> Type #

Hashable ConfirmProductInstance Source # 
Instance details

Defined in Network.AWS.EC2.ConfirmProductInstance

AWSRequest ConfirmProductInstance Source # 
Instance details

Defined in Network.AWS.EC2.ConfirmProductInstance

Associated Types

type Rs ConfirmProductInstance :: Type #

ToHeaders ConfirmProductInstance Source # 
Instance details

Defined in Network.AWS.EC2.ConfirmProductInstance

ToPath ConfirmProductInstance Source # 
Instance details

Defined in Network.AWS.EC2.ConfirmProductInstance

ToQuery ConfirmProductInstance Source # 
Instance details

Defined in Network.AWS.EC2.ConfirmProductInstance

NFData ConfirmProductInstance Source # 
Instance details

Defined in Network.AWS.EC2.ConfirmProductInstance

Methods

rnf :: ConfirmProductInstance -> () #

type Rep ConfirmProductInstance Source # 
Instance details

Defined in Network.AWS.EC2.ConfirmProductInstance

type Rep ConfirmProductInstance = D1 (MetaData "ConfirmProductInstance" "Network.AWS.EC2.ConfirmProductInstance" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "ConfirmProductInstance'" PrefixI True) (S1 (MetaSel (Just "_cpiDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 (MetaSel (Just "_cpiInstanceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_cpiProductCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs ConfirmProductInstance Source # 
Instance details

Defined in Network.AWS.EC2.ConfirmProductInstance

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:

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

Contains the output of ConfirmProductInstance.

See: confirmProductInstanceResponse smart constructor.

Instances
Eq ConfirmProductInstanceResponse Source # 
Instance details

Defined in Network.AWS.EC2.ConfirmProductInstance

Data ConfirmProductInstanceResponse Source # 
Instance details

Defined in Network.AWS.EC2.ConfirmProductInstance

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 # 
Instance details

Defined in Network.AWS.EC2.ConfirmProductInstance

Show ConfirmProductInstanceResponse Source # 
Instance details

Defined in Network.AWS.EC2.ConfirmProductInstance

Generic ConfirmProductInstanceResponse Source # 
Instance details

Defined in Network.AWS.EC2.ConfirmProductInstance

Associated Types

type Rep ConfirmProductInstanceResponse :: Type -> Type #

NFData ConfirmProductInstanceResponse Source # 
Instance details

Defined in Network.AWS.EC2.ConfirmProductInstance

type Rep ConfirmProductInstanceResponse Source # 
Instance details

Defined in Network.AWS.EC2.ConfirmProductInstance

type Rep ConfirmProductInstanceResponse = D1 (MetaData "ConfirmProductInstanceResponse" "Network.AWS.EC2.ConfirmProductInstance" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "ConfirmProductInstanceResponse'" PrefixI True) (S1 (MetaSel (Just "_cpirsReturn") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 (MetaSel (Just "_cpirsOwnerId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cpirsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (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.