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

Copyright(c) 2013-2015 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.

See: AWS API Reference for ConfirmProductInstance.

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:

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:

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.