aws_sdk_shield/client/
update_subscription.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`UpdateSubscription`](crate::operation::update_subscription::builders::UpdateSubscriptionFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`auto_renew(AutoRenew)`](crate::operation::update_subscription::builders::UpdateSubscriptionFluentBuilder::auto_renew) / [`set_auto_renew(Option<AutoRenew>)`](crate::operation::update_subscription::builders::UpdateSubscriptionFluentBuilder::set_auto_renew):<br>required: **false**<br><p>When you initally create a subscription, <code>AutoRenew</code> is set to <code>ENABLED</code>. If <code>ENABLED</code>, the subscription will be automatically renewed at the end of the existing subscription period. You can change this by submitting an <code>UpdateSubscription</code> request. If the <code>UpdateSubscription</code> request does not included a value for <code>AutoRenew</code>, the existing value for <code>AutoRenew</code> remains unchanged.</p><br>
7    /// - On success, responds with [`UpdateSubscriptionOutput`](crate::operation::update_subscription::UpdateSubscriptionOutput)
8    /// - On failure, responds with [`SdkError<UpdateSubscriptionError>`](crate::operation::update_subscription::UpdateSubscriptionError)
9    pub fn update_subscription(&self) -> crate::operation::update_subscription::builders::UpdateSubscriptionFluentBuilder {
10        crate::operation::update_subscription::builders::UpdateSubscriptionFluentBuilder::new(self.handle.clone())
11    }
12}