amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.ConfirmProductInstance

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

data ConfirmProductInstance Source #

See: newConfirmProductInstance smart constructor.

Constructors

ConfirmProductInstance' 

Fields

  • dryRun :: 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.

  • instanceId :: Text

    The ID of the instance.

  • productCode :: Text

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

Instances

Instances details
ToHeaders ConfirmProductInstance Source # 
Instance details

Defined in Amazonka.EC2.ConfirmProductInstance

ToPath ConfirmProductInstance Source # 
Instance details

Defined in Amazonka.EC2.ConfirmProductInstance

ToQuery ConfirmProductInstance Source # 
Instance details

Defined in Amazonka.EC2.ConfirmProductInstance

AWSRequest ConfirmProductInstance Source # 
Instance details

Defined in Amazonka.EC2.ConfirmProductInstance

Associated Types

type AWSResponse ConfirmProductInstance #

Generic ConfirmProductInstance Source # 
Instance details

Defined in Amazonka.EC2.ConfirmProductInstance

Associated Types

type Rep ConfirmProductInstance :: Type -> Type #

Read ConfirmProductInstance Source # 
Instance details

Defined in Amazonka.EC2.ConfirmProductInstance

Show ConfirmProductInstance Source # 
Instance details

Defined in Amazonka.EC2.ConfirmProductInstance

NFData ConfirmProductInstance Source # 
Instance details

Defined in Amazonka.EC2.ConfirmProductInstance

Methods

rnf :: ConfirmProductInstance -> () #

Eq ConfirmProductInstance Source # 
Instance details

Defined in Amazonka.EC2.ConfirmProductInstance

Hashable ConfirmProductInstance Source # 
Instance details

Defined in Amazonka.EC2.ConfirmProductInstance

type AWSResponse ConfirmProductInstance Source # 
Instance details

Defined in Amazonka.EC2.ConfirmProductInstance

type Rep ConfirmProductInstance Source # 
Instance details

Defined in Amazonka.EC2.ConfirmProductInstance

type Rep ConfirmProductInstance = D1 ('MetaData "ConfirmProductInstance" "Amazonka.EC2.ConfirmProductInstance" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ConfirmProductInstance'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "instanceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "productCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newConfirmProductInstance Source #

Create a value of ConfirmProductInstance with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:dryRun:ConfirmProductInstance', confirmProductInstance_dryRun - 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.

ConfirmProductInstance, confirmProductInstance_instanceId - The ID of the instance.

$sel:productCode:ConfirmProductInstance', confirmProductInstance_productCode - The product code. This must be a product code that you own.

Request Lenses

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

confirmProductInstance_productCode :: Lens' ConfirmProductInstance Text Source #

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

Destructuring the Response

data ConfirmProductInstanceResponse Source #

See: newConfirmProductInstanceResponse smart constructor.

Constructors

ConfirmProductInstanceResponse' 

Fields

  • ownerId :: Maybe Text

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

  • return' :: 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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ConfirmProductInstanceResponse Source # 
Instance details

Defined in Amazonka.EC2.ConfirmProductInstance

Associated Types

type Rep ConfirmProductInstanceResponse :: Type -> Type #

Read ConfirmProductInstanceResponse Source # 
Instance details

Defined in Amazonka.EC2.ConfirmProductInstance

Show ConfirmProductInstanceResponse Source # 
Instance details

Defined in Amazonka.EC2.ConfirmProductInstance

NFData ConfirmProductInstanceResponse Source # 
Instance details

Defined in Amazonka.EC2.ConfirmProductInstance

Eq ConfirmProductInstanceResponse Source # 
Instance details

Defined in Amazonka.EC2.ConfirmProductInstance

type Rep ConfirmProductInstanceResponse Source # 
Instance details

Defined in Amazonka.EC2.ConfirmProductInstance

type Rep ConfirmProductInstanceResponse = D1 ('MetaData "ConfirmProductInstanceResponse" "Amazonka.EC2.ConfirmProductInstance" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ConfirmProductInstanceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "ownerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "return'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newConfirmProductInstanceResponse Source #

Create a value of ConfirmProductInstanceResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

ConfirmProductInstanceResponse, confirmProductInstanceResponse_ownerId - The Amazon Web Services account ID of the instance owner. This is only present if the product code is attached to the instance.

$sel:return':ConfirmProductInstanceResponse', confirmProductInstanceResponse_return - The return value of the request. Returns true if the specified product code is owned by the requester and associated with the specified instance.

$sel:httpStatus:ConfirmProductInstanceResponse', confirmProductInstanceResponse_httpStatus - The response's http status code.

Response Lenses

confirmProductInstanceResponse_ownerId :: Lens' ConfirmProductInstanceResponse (Maybe Text) Source #

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

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