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 |
Updates the automatic tape creation policy of a gateway. Use this to update the policy with a new set of automatic tape creation rules. This is only supported for tape gateways.
By default, there is no automatic tape creation policy.
A gateway can have only one automatic tape creation policy.
Synopsis
- data UpdateAutomaticTapeCreationPolicy = UpdateAutomaticTapeCreationPolicy' {}
- newUpdateAutomaticTapeCreationPolicy :: NonEmpty AutomaticTapeCreationRule -> Text -> UpdateAutomaticTapeCreationPolicy
- updateAutomaticTapeCreationPolicy_automaticTapeCreationRules :: Lens' UpdateAutomaticTapeCreationPolicy (NonEmpty AutomaticTapeCreationRule)
- updateAutomaticTapeCreationPolicy_gatewayARN :: Lens' UpdateAutomaticTapeCreationPolicy Text
- data UpdateAutomaticTapeCreationPolicyResponse = UpdateAutomaticTapeCreationPolicyResponse' {
- gatewayARN :: Maybe Text
- httpStatus :: Int
- newUpdateAutomaticTapeCreationPolicyResponse :: Int -> UpdateAutomaticTapeCreationPolicyResponse
- updateAutomaticTapeCreationPolicyResponse_gatewayARN :: Lens' UpdateAutomaticTapeCreationPolicyResponse (Maybe Text)
- updateAutomaticTapeCreationPolicyResponse_httpStatus :: Lens' UpdateAutomaticTapeCreationPolicyResponse Int
Creating a Request
data UpdateAutomaticTapeCreationPolicy Source #
See: newUpdateAutomaticTapeCreationPolicy
smart constructor.
UpdateAutomaticTapeCreationPolicy' | |
|
Instances
newUpdateAutomaticTapeCreationPolicy Source #
:: NonEmpty AutomaticTapeCreationRule |
|
-> Text | |
-> UpdateAutomaticTapeCreationPolicy |
Create a value of UpdateAutomaticTapeCreationPolicy
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:automaticTapeCreationRules:UpdateAutomaticTapeCreationPolicy'
, updateAutomaticTapeCreationPolicy_automaticTapeCreationRules
- An automatic tape creation policy consists of a list of automatic tape
creation rules. The rules determine when and how to automatically create
new tapes.
$sel:gatewayARN:UpdateAutomaticTapeCreationPolicy'
, updateAutomaticTapeCreationPolicy_gatewayARN
- Undocumented member.
Request Lenses
updateAutomaticTapeCreationPolicy_automaticTapeCreationRules :: Lens' UpdateAutomaticTapeCreationPolicy (NonEmpty AutomaticTapeCreationRule) Source #
An automatic tape creation policy consists of a list of automatic tape creation rules. The rules determine when and how to automatically create new tapes.
updateAutomaticTapeCreationPolicy_gatewayARN :: Lens' UpdateAutomaticTapeCreationPolicy Text Source #
Undocumented member.
Destructuring the Response
data UpdateAutomaticTapeCreationPolicyResponse Source #
See: newUpdateAutomaticTapeCreationPolicyResponse
smart constructor.
UpdateAutomaticTapeCreationPolicyResponse' | |
|
Instances
Eq UpdateAutomaticTapeCreationPolicyResponse Source # | |
Read UpdateAutomaticTapeCreationPolicyResponse Source # | |
Show UpdateAutomaticTapeCreationPolicyResponse Source # | |
Generic UpdateAutomaticTapeCreationPolicyResponse Source # | |
NFData UpdateAutomaticTapeCreationPolicyResponse Source # | |
type Rep UpdateAutomaticTapeCreationPolicyResponse Source # | |
Defined in Amazonka.StorageGateway.UpdateAutomaticTapeCreationPolicy type Rep UpdateAutomaticTapeCreationPolicyResponse = D1 ('MetaData "UpdateAutomaticTapeCreationPolicyResponse" "Amazonka.StorageGateway.UpdateAutomaticTapeCreationPolicy" "libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway" 'False) (C1 ('MetaCons "UpdateAutomaticTapeCreationPolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "gatewayARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newUpdateAutomaticTapeCreationPolicyResponse Source #
Create a value of UpdateAutomaticTapeCreationPolicyResponse
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:gatewayARN:UpdateAutomaticTapeCreationPolicy'
, updateAutomaticTapeCreationPolicyResponse_gatewayARN
- Undocumented member.
$sel:httpStatus:UpdateAutomaticTapeCreationPolicyResponse'
, updateAutomaticTapeCreationPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
updateAutomaticTapeCreationPolicyResponse_gatewayARN :: Lens' UpdateAutomaticTapeCreationPolicyResponse (Maybe Text) Source #
Undocumented member.
updateAutomaticTapeCreationPolicyResponse_httpStatus :: Lens' UpdateAutomaticTapeCreationPolicyResponse Int Source #
The response's http status code.