aws_sdk_waf/client/
create_rule_group.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateRuleGroup`](crate::operation::create_rule_group::builders::CreateRuleGroupFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`name(impl Into<String>)`](crate::operation::create_rule_group::builders::CreateRuleGroupFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_rule_group::builders::CreateRuleGroupFluentBuilder::set_name):<br>required: **true**<br><p>A friendly name or description of the <code>RuleGroup</code>. You can't change <code>Name</code> after you create a <code>RuleGroup</code>.</p><br>
    ///   - [`metric_name(impl Into<String>)`](crate::operation::create_rule_group::builders::CreateRuleGroupFluentBuilder::metric_name) / [`set_metric_name(Option<String>)`](crate::operation::create_rule_group::builders::CreateRuleGroupFluentBuilder::set_metric_name):<br>required: **true**<br><p>A friendly name or description for the metrics for this <code>RuleGroup</code>. The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't change the name of the metric after you create the <code>RuleGroup</code>.</p><br>
    ///   - [`change_token(impl Into<String>)`](crate::operation::create_rule_group::builders::CreateRuleGroupFluentBuilder::change_token) / [`set_change_token(Option<String>)`](crate::operation::create_rule_group::builders::CreateRuleGroupFluentBuilder::set_change_token):<br>required: **true**<br><p>The value returned by the most recent call to <code>GetChangeToken</code>.</p><br>
    ///   - [`tags(Tag)`](crate::operation::create_rule_group::builders::CreateRuleGroupFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_rule_group::builders::CreateRuleGroupFluentBuilder::set_tags):<br>required: **false**<br><p></p><br>
    /// - On success, responds with [`CreateRuleGroupOutput`](crate::operation::create_rule_group::CreateRuleGroupOutput) with field(s):
    ///   - [`rule_group(Option<RuleGroup>)`](crate::operation::create_rule_group::CreateRuleGroupOutput::rule_group): <p>An empty <code>RuleGroup</code>.</p>
    ///   - [`change_token(Option<String>)`](crate::operation::create_rule_group::CreateRuleGroupOutput::change_token): <p>The <code>ChangeToken</code> that you used to submit the <code>CreateRuleGroup</code> request. You can also use this value to query the status of the request. For more information, see <code>GetChangeTokenStatus</code>.</p>
    /// - On failure, responds with [`SdkError<CreateRuleGroupError>`](crate::operation::create_rule_group::CreateRuleGroupError)
    pub fn create_rule_group(&self) -> crate::operation::create_rule_group::builders::CreateRuleGroupFluentBuilder {
        crate::operation::create_rule_group::builders::CreateRuleGroupFluentBuilder::new(self.handle.clone())
    }
}