Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
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.
Synopsis
- data ConfirmProductInstance = ConfirmProductInstance' {
- dryRun :: Maybe Bool
- instanceId :: Text
- productCode :: Text
- newConfirmProductInstance :: Text -> Text -> ConfirmProductInstance
- confirmProductInstance_dryRun :: Lens' ConfirmProductInstance (Maybe Bool)
- confirmProductInstance_instanceId :: Lens' ConfirmProductInstance Text
- confirmProductInstance_productCode :: Lens' ConfirmProductInstance Text
- data ConfirmProductInstanceResponse = ConfirmProductInstanceResponse' {}
- newConfirmProductInstanceResponse :: Int -> ConfirmProductInstanceResponse
- confirmProductInstanceResponse_ownerId :: Lens' ConfirmProductInstanceResponse (Maybe Text)
- confirmProductInstanceResponse_return :: Lens' ConfirmProductInstanceResponse (Maybe Bool)
- confirmProductInstanceResponse_httpStatus :: Lens' ConfirmProductInstanceResponse Int
Creating a Request
data ConfirmProductInstance Source #
See: newConfirmProductInstance
smart constructor.
ConfirmProductInstance' | |
|
Instances
newConfirmProductInstance Source #
:: Text | |
-> Text | |
-> ConfirmProductInstance |
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_instanceId :: Lens' ConfirmProductInstance Text Source #
The ID of the instance.
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.
ConfirmProductInstanceResponse' | |
|
Instances
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.
confirmProductInstanceResponse_httpStatus :: Lens' ConfirmProductInstanceResponse Int Source #
The response's http status code.