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 details of an existing subscription. Only enter values for parameters you want to change. Empty parameters are not updated.
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.
UpdateSubscription' | |
|
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:
$sel:autoRenew: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.
UpdateSubscriptionResponse' | |
|
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.