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.Shield.UpdateSubscription
Description
Updates the details of an existing subscription. Only enter values for parameters you want to change. Empty parameters are not updated.
For accounts that are members of an Organizations organization, Shield Advanced subscriptions are billed against the organization's payer account, regardless of whether the payer account itself is subscribed.
Synopsis
- data UpdateSubscription = UpdateSubscription' {}
- newUpdateSubscription :: UpdateSubscription
- updateSubscription_autoRenew :: Lens' UpdateSubscription (Maybe AutoRenew)
- data UpdateSubscriptionResponse = UpdateSubscriptionResponse' {
- httpStatus :: Int
- newUpdateSubscriptionResponse :: Int -> UpdateSubscriptionResponse
- updateSubscriptionResponse_httpStatus :: Lens' UpdateSubscriptionResponse Int
Creating a Request
data UpdateSubscription Source #
See: newUpdateSubscription
smart constructor.
Constructors
UpdateSubscription' | |
Fields
|
Instances
newUpdateSubscription :: UpdateSubscription Source #
Create a value of UpdateSubscription
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:
UpdateSubscription
, updateSubscription_autoRenew
- When you initally create a subscription, AutoRenew
is set to
ENABLED
. If ENABLED
, the subscription will be automatically renewed
at the end of the existing subscription period. You can change this by
submitting an UpdateSubscription
request. If the UpdateSubscription
request does not included a value for AutoRenew
, the existing value
for AutoRenew
remains unchanged.
Request Lenses
updateSubscription_autoRenew :: Lens' UpdateSubscription (Maybe AutoRenew) Source #
When you initally create a subscription, AutoRenew
is set to
ENABLED
. If ENABLED
, the subscription will be automatically renewed
at the end of the existing subscription period. You can change this by
submitting an UpdateSubscription
request. If the UpdateSubscription
request does not included a value for AutoRenew
, the existing value
for AutoRenew
remains unchanged.
Destructuring the Response
data UpdateSubscriptionResponse Source #
See: newUpdateSubscriptionResponse
smart constructor.
Constructors
UpdateSubscriptionResponse' | |
Fields
|
Instances
newUpdateSubscriptionResponse Source #
Create a value of UpdateSubscriptionResponse
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:httpStatus:UpdateSubscriptionResponse'
, updateSubscriptionResponse_httpStatus
- The response's http status code.
Response Lenses
updateSubscriptionResponse_httpStatus :: Lens' UpdateSubscriptionResponse Int Source #
The response's http status code.