Copyright | (c) 2013-2017 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
- confirmProductInstance :: Text -> Text -> ConfirmProductInstance
- data ConfirmProductInstance
- cpiDryRun :: Lens' ConfirmProductInstance (Maybe Bool)
- cpiInstanceId :: Lens' ConfirmProductInstance Text
- cpiProductCode :: Lens' ConfirmProductInstance Text
- confirmProductInstanceResponse :: Int -> ConfirmProductInstanceResponse
- data ConfirmProductInstanceResponse
- cpirsReturn :: Lens' ConfirmProductInstanceResponse (Maybe Bool)
- cpirsOwnerId :: Lens' ConfirmProductInstanceResponse (Maybe Text)
- cpirsResponseStatus :: Lens' ConfirmProductInstanceResponse Int
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 isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.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.
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
.
cpiInstanceId :: Lens' ConfirmProductInstance Text Source #
The ID of the instance.
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. Returnstrue
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.
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.
cpirsResponseStatus :: Lens' ConfirmProductInstanceResponse Int Source #
- - | The response status code.