Copyright | (c) 2013-2021 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 |
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.
PurchaseProvisionedCapacity' | |
|
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.
PurchaseProvisionedCapacityResponse' | |
|
Instances
Eq PurchaseProvisionedCapacityResponse Source # | |
Read PurchaseProvisionedCapacityResponse Source # | |
Show PurchaseProvisionedCapacityResponse Source # | |
Generic PurchaseProvisionedCapacityResponse Source # | |
NFData PurchaseProvisionedCapacityResponse Source # | |
Defined in Amazonka.Glacier.PurchaseProvisionedCapacity rnf :: PurchaseProvisionedCapacityResponse -> () # | |
type Rep PurchaseProvisionedCapacityResponse Source # | |
Defined in Amazonka.Glacier.PurchaseProvisionedCapacity type Rep PurchaseProvisionedCapacityResponse = D1 ('MetaData "PurchaseProvisionedCapacityResponse" "Amazonka.Glacier.PurchaseProvisionedCapacity" "libZSservicesZSamazonka-glacierZSamazonka-glacier" 'False) (C1 ('MetaCons "PurchaseProvisionedCapacityResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "capacityId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newPurchaseProvisionedCapacityResponse Source #
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:
$sel:capacityId: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.