Struct aws_sdk_shield::client::fluent_builders::UpdateSubscription
source · pub struct UpdateSubscription { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateSubscription
.
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.
Implementations§
source§impl UpdateSubscription
impl UpdateSubscription
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<UpdateSubscription, AwsResponseRetryClassifier>, SdkError<UpdateSubscriptionError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<UpdateSubscription, AwsResponseRetryClassifier>, SdkError<UpdateSubscriptionError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<UpdateSubscriptionOutput, SdkError<UpdateSubscriptionError>>
pub async fn send(
self
) -> Result<UpdateSubscriptionOutput, SdkError<UpdateSubscriptionError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn auto_renew(self, input: AutoRenew) -> Self
pub fn auto_renew(self, input: AutoRenew) -> Self
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.
sourcepub fn set_auto_renew(self, input: Option<AutoRenew>) -> Self
pub fn set_auto_renew(self, input: Option<AutoRenew>) -> Self
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.
Trait Implementations§
source§impl Clone for UpdateSubscription
impl Clone for UpdateSubscription
source§fn clone(&self) -> UpdateSubscription
fn clone(&self) -> UpdateSubscription
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more