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 |
This operation purchases a provisioned capacity unit for an AWS account.
- purchaseProvisionedCapacity :: Text -> PurchaseProvisionedCapacity
- data PurchaseProvisionedCapacity
- ppcAccountId :: Lens' PurchaseProvisionedCapacity Text
- purchaseProvisionedCapacityResponse :: Int -> PurchaseProvisionedCapacityResponse
- data PurchaseProvisionedCapacityResponse
- ppcrsCapacityId :: Lens' PurchaseProvisionedCapacityResponse (Maybe Text)
- ppcrsResponseStatus :: Lens' PurchaseProvisionedCapacityResponse Int
Creating a Request
purchaseProvisionedCapacity Source #
Creates a value of PurchaseProvisionedCapacity
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ppcAccountId
- The AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single-
(hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, don't include any hyphens (-
) in the ID.
data PurchaseProvisionedCapacity Source #
See: purchaseProvisionedCapacity
smart constructor.
Request Lenses
ppcAccountId :: Lens' PurchaseProvisionedCapacity Text Source #
The AWS account ID of the account that owns the vault. You can either specify an AWS account ID or optionally a single -
(hyphen), in which case Amazon Glacier uses the AWS account ID associated with the credentials used to sign the request. If you use an account ID, don't include any hyphens (-
) in the ID.
Destructuring the Response
purchaseProvisionedCapacityResponse Source #
Creates a value of PurchaseProvisionedCapacityResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ppcrsCapacityId
- The ID that identifies the provisioned capacity unit.ppcrsResponseStatus
- -- | The response status code.
data PurchaseProvisionedCapacityResponse Source #
See: purchaseProvisionedCapacityResponse
smart constructor.
Response Lenses
ppcrsCapacityId :: Lens' PurchaseProvisionedCapacityResponse (Maybe Text) Source #
The ID that identifies the provisioned capacity unit.
ppcrsResponseStatus :: Lens' PurchaseProvisionedCapacityResponse Int Source #
- - | The response status code.