aws_sdk_wafv2/client/
describe_managed_rule_group.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DescribeManagedRuleGroup`](crate::operation::describe_managed_rule_group::builders::DescribeManagedRuleGroupFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`vendor_name(impl Into<String>)`](crate::operation::describe_managed_rule_group::builders::DescribeManagedRuleGroupFluentBuilder::vendor_name) / [`set_vendor_name(Option<String>)`](crate::operation::describe_managed_rule_group::builders::DescribeManagedRuleGroupFluentBuilder::set_vendor_name):<br>required: **true**<br><p>The name of the managed rule group vendor. You use this, along with the rule group name, to identify a rule group.</p><br>
    ///   - [`name(impl Into<String>)`](crate::operation::describe_managed_rule_group::builders::DescribeManagedRuleGroupFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::describe_managed_rule_group::builders::DescribeManagedRuleGroupFluentBuilder::set_name):<br>required: **true**<br><p>The name of the managed rule group. You use this, along with the vendor name, to identify the rule group.</p><br>
    ///   - [`scope(Scope)`](crate::operation::describe_managed_rule_group::builders::DescribeManagedRuleGroupFluentBuilder::scope) / [`set_scope(Option<Scope>)`](crate::operation::describe_managed_rule_group::builders::DescribeManagedRuleGroupFluentBuilder::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>
    ///   - [`version_name(impl Into<String>)`](crate::operation::describe_managed_rule_group::builders::DescribeManagedRuleGroupFluentBuilder::version_name) / [`set_version_name(Option<String>)`](crate::operation::describe_managed_rule_group::builders::DescribeManagedRuleGroupFluentBuilder::set_version_name):<br>required: **false**<br><p>The version of the rule group. You can only use a version that is not scheduled for expiration. If you don't provide this, WAF uses the vendor's default version.</p><br>
    /// - On success, responds with [`DescribeManagedRuleGroupOutput`](crate::operation::describe_managed_rule_group::DescribeManagedRuleGroupOutput) with field(s):
    ///   - [`version_name(Option<String>)`](crate::operation::describe_managed_rule_group::DescribeManagedRuleGroupOutput::version_name): <p>The managed rule group's version.</p>
    ///   - [`sns_topic_arn(Option<String>)`](crate::operation::describe_managed_rule_group::DescribeManagedRuleGroupOutput::sns_topic_arn): <p>The Amazon resource name (ARN) of the Amazon Simple Notification Service SNS topic that's used to provide notification of changes to the managed rule group. You can subscribe to the SNS topic to receive notifications when the managed rule group is modified, such as for new versions and for version expiration. For more information, see the <a href="https://docs.aws.amazon.com/sns/latest/dg/welcome.html">Amazon Simple Notification Service Developer Guide</a>.</p>
    ///   - [`capacity(Option<i64>)`](crate::operation::describe_managed_rule_group::DescribeManagedRuleGroupOutput::capacity): <p>The web ACL capacity units (WCUs) required for this rule group.</p> <p>WAF uses WCUs to calculate and control the operating resources that are used to run your rules, rule groups, and web ACLs. WAF calculates capacity differently for each rule type, to reflect the relative cost of each rule. Simple rules that cost little to run use fewer WCUs than more complex rules that use more processing power. Rule group capacity is fixed at creation, which helps users plan their web ACL WCU usage when they use a rule group. For more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/aws-waf-capacity-units.html">WAF web ACL capacity units (WCU)</a> in the <i>WAF Developer Guide</i>.</p>
    ///   - [`rules(Option<Vec::<RuleSummary>>)`](crate::operation::describe_managed_rule_group::DescribeManagedRuleGroupOutput::rules): <p></p>
    ///   - [`label_namespace(Option<String>)`](crate::operation::describe_managed_rule_group::DescribeManagedRuleGroupOutput::label_namespace): <p>The label namespace prefix for this rule group. All labels added by rules in this rule group have this prefix.</p> <ul>  <li>   <p>The syntax for the label namespace prefix for a managed rule group is the following:</p>   <p><code>awswaf:managed:<vendor>      :      <rule group name></rule>     </vendor></code>:</p></li>  <li>   <p>When a rule with a label matches a web request, WAF adds the fully qualified label to the request. A fully qualified label is made up of the label namespace from the rule group or web ACL where the rule is defined and the label from the rule, separated by a colon:</p>   <p><code><label namespace>:<label from rule></label></label></code></p></li> </ul>
    ///   - [`available_labels(Option<Vec::<LabelSummary>>)`](crate::operation::describe_managed_rule_group::DescribeManagedRuleGroupOutput::available_labels): <p>The labels that one or more rules in this rule group add to matching web requests. These labels are defined in the <code>RuleLabels</code> for a <code>Rule</code>.</p>
    ///   - [`consumed_labels(Option<Vec::<LabelSummary>>)`](crate::operation::describe_managed_rule_group::DescribeManagedRuleGroupOutput::consumed_labels): <p>The labels that one or more rules in this rule group match against in label match statements. These labels are defined in a <code>LabelMatchStatement</code> specification, in the <code>Statement</code> definition of a rule.</p>
    /// - On failure, responds with [`SdkError<DescribeManagedRuleGroupError>`](crate::operation::describe_managed_rule_group::DescribeManagedRuleGroupError)
    pub fn describe_managed_rule_group(&self) -> crate::operation::describe_managed_rule_group::builders::DescribeManagedRuleGroupFluentBuilder {
        crate::operation::describe_managed_rule_group::builders::DescribeManagedRuleGroupFluentBuilder::new(self.handle.clone())
    }
}