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

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.

http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-ConfirmProductInstance.html

Synopsis

Request

Request constructor

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.

Response

Response constructor

confirmProductInstanceResponse :: ConfirmProductInstanceResponse Source

ConfirmProductInstanceResponse constructor.

The fields accessible through corresponding lenses are:

Response lenses

cpirOwnerId :: 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.