aws_sdk_wafv2/client/update_regex_pattern_set.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`UpdateRegexPatternSet`](crate::operation::update_regex_pattern_set::builders::UpdateRegexPatternSetFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`name(impl Into<String>)`](crate::operation::update_regex_pattern_set::builders::UpdateRegexPatternSetFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_regex_pattern_set::builders::UpdateRegexPatternSetFluentBuilder::set_name):<br>required: **true**<br><p>The name of the set. You cannot change the name after you create the set.</p><br>
/// - [`scope(Scope)`](crate::operation::update_regex_pattern_set::builders::UpdateRegexPatternSetFluentBuilder::scope) / [`set_scope(Option<Scope>)`](crate::operation::update_regex_pattern_set::builders::UpdateRegexPatternSetFluentBuilder::set_scope):<br>required: **true**<br><p>Specifies whether this is for an Amazon CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, an Amazon Cognito user pool, an App Runner service, or an Amazon Web Services Verified Access instance.</p> <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:</p> <ul> <li> <p>CLI - Specify the Region when you use the CloudFront scope: <code>--scope=CLOUDFRONT --region=us-east-1</code>.</p></li> <li> <p>API and SDKs - For all calls, use the Region endpoint us-east-1.</p></li> </ul><br>
/// - [`id(impl Into<String>)`](crate::operation::update_regex_pattern_set::builders::UpdateRegexPatternSetFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::update_regex_pattern_set::builders::UpdateRegexPatternSetFluentBuilder::set_id):<br>required: **true**<br><p>A unique identifier for the set. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.</p><br>
/// - [`description(impl Into<String>)`](crate::operation::update_regex_pattern_set::builders::UpdateRegexPatternSetFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::update_regex_pattern_set::builders::UpdateRegexPatternSetFluentBuilder::set_description):<br>required: **false**<br><p>A description of the set that helps with identification.</p><br>
/// - [`regular_expression_list(Regex)`](crate::operation::update_regex_pattern_set::builders::UpdateRegexPatternSetFluentBuilder::regular_expression_list) / [`set_regular_expression_list(Option<Vec::<Regex>>)`](crate::operation::update_regex_pattern_set::builders::UpdateRegexPatternSetFluentBuilder::set_regular_expression_list):<br>required: **true**<br><p></p><br>
/// - [`lock_token(impl Into<String>)`](crate::operation::update_regex_pattern_set::builders::UpdateRegexPatternSetFluentBuilder::lock_token) / [`set_lock_token(Option<String>)`](crate::operation::update_regex_pattern_set::builders::UpdateRegexPatternSetFluentBuilder::set_lock_token):<br>required: **true**<br><p>A token used for optimistic locking. WAF returns a token to your <code>get</code> and <code>list</code> requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like <code>update</code> and <code>delete</code>. WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a <code>WAFOptimisticLockException</code>. If this happens, perform another <code>get</code>, and use the new token returned by that operation.</p><br>
/// - On success, responds with [`UpdateRegexPatternSetOutput`](crate::operation::update_regex_pattern_set::UpdateRegexPatternSetOutput) with field(s):
/// - [`next_lock_token(Option<String>)`](crate::operation::update_regex_pattern_set::UpdateRegexPatternSetOutput::next_lock_token): <p>A token used for optimistic locking. WAF returns this token to your <code>update</code> requests. You use <code>NextLockToken</code> in the same manner as you use <code>LockToken</code>.</p>
/// - On failure, responds with [`SdkError<UpdateRegexPatternSetError>`](crate::operation::update_regex_pattern_set::UpdateRegexPatternSetError)
pub fn update_regex_pattern_set(&self) -> crate::operation::update_regex_pattern_set::builders::UpdateRegexPatternSetFluentBuilder {
crate::operation::update_regex_pattern_set::builders::UpdateRegexPatternSetFluentBuilder::new(self.handle.clone())
}
}