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 |
Amazonka.Glacier.PurchaseProvisionedCapacity
Description
This operation purchases a provisioned capacity unit for an AWS account.
Synopsis
- data PurchaseProvisionedCapacity = PurchaseProvisionedCapacity' {}
- newPurchaseProvisionedCapacity :: Text -> PurchaseProvisionedCapacity
- purchaseProvisionedCapacity_accountId :: Lens' PurchaseProvisionedCapacity Text
- data PurchaseProvisionedCapacityResponse = PurchaseProvisionedCapacityResponse' {
- capacityId :: Maybe Text
- httpStatus :: Int
- newPurchaseProvisionedCapacityResponse :: Int -> PurchaseProvisionedCapacityResponse
- purchaseProvisionedCapacityResponse_capacityId :: Lens' PurchaseProvisionedCapacityResponse (Maybe Text)
- purchaseProvisionedCapacityResponse_httpStatus :: Lens' PurchaseProvisionedCapacityResponse Int
Creating a Request
data PurchaseProvisionedCapacity Source #
See: newPurchaseProvisionedCapacity
smart constructor.
Constructors
PurchaseProvisionedCapacity' | |
Fields
|
Instances
newPurchaseProvisionedCapacity Source #
Create a value of PurchaseProvisionedCapacity
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:accountId:PurchaseProvisionedCapacity'
, purchaseProvisionedCapacity_accountId
- 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 S3 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.
Request Lenses
purchaseProvisionedCapacity_accountId :: 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 S3 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
data PurchaseProvisionedCapacityResponse Source #
See: newPurchaseProvisionedCapacityResponse
smart constructor.
Constructors
PurchaseProvisionedCapacityResponse' | |
Fields
|
Instances
newPurchaseProvisionedCapacityResponse Source #
Arguments
:: Int | |
-> PurchaseProvisionedCapacityResponse |
Create a value of PurchaseProvisionedCapacityResponse
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:
PurchaseProvisionedCapacityResponse
, purchaseProvisionedCapacityResponse_capacityId
- The ID that identifies the provisioned capacity unit.
$sel:httpStatus:PurchaseProvisionedCapacityResponse'
, purchaseProvisionedCapacityResponse_httpStatus
- The response's http status code.
Response Lenses
purchaseProvisionedCapacityResponse_capacityId :: Lens' PurchaseProvisionedCapacityResponse (Maybe Text) Source #
The ID that identifies the provisioned capacity unit.
purchaseProvisionedCapacityResponse_httpStatus :: Lens' PurchaseProvisionedCapacityResponse Int Source #
The response's http status code.