Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@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 needs to verify whether another user's instance is eligible for support.
See: AWS API Reference for ConfirmProductInstance.
- confirmProductInstance :: Text -> Text -> ConfirmProductInstance
- data ConfirmProductInstance
- cpiDryRun :: Lens' ConfirmProductInstance (Maybe Bool)
- cpiProductCode :: Lens' ConfirmProductInstance Text
- cpiInstanceId :: 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
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:
data ConfirmProductInstance Source
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
.
cpiProductCode :: Lens' ConfirmProductInstance Text Source
The product code. This must be a product code that you own.
cpiInstanceId :: Lens' ConfirmProductInstance Text Source
The ID of the instance.
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:
data ConfirmProductInstanceResponse Source
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.