aws_sdk_waf/client/
get_web_acl.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetWebACL`](crate::operation::get_web_acl::builders::GetWebACLFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`web_acl_id(impl Into<String>)`](crate::operation::get_web_acl::builders::GetWebACLFluentBuilder::web_acl_id) / [`set_web_acl_id(Option<String>)`](crate::operation::get_web_acl::builders::GetWebACLFluentBuilder::set_web_acl_id):<br>required: **true**<br><p>The <code>WebACLId</code> of the <code>WebACL</code> that you want to get. <code>WebACLId</code> is returned by <code>CreateWebACL</code> and by <code>ListWebACLs</code>.</p><br>
    /// - On success, responds with [`GetWebAclOutput`](crate::operation::get_web_acl::GetWebAclOutput) with field(s):
    ///   - [`web_acl(Option<WebAcl>)`](crate::operation::get_web_acl::GetWebAclOutput::web_acl): <p>Information about the <code>WebACL</code> that you specified in the <code>GetWebACL</code> request. For more information, see the following topics:</p> <ul>  <li>   <p><code>WebACL</code>: Contains <code>DefaultAction</code>, <code>MetricName</code>, <code>Name</code>, an array of <code>Rule</code> objects, and <code>WebACLId</code></p></li>  <li>   <p><code>DefaultAction</code> (Data type is <code>WafAction</code>): Contains <code>Type</code></p></li>  <li>   <p><code>Rules</code>: Contains an array of <code>ActivatedRule</code> objects, which contain <code>Action</code>, <code>Priority</code>, and <code>RuleId</code></p></li>  <li>   <p><code>Action</code>: Contains <code>Type</code></p></li> </ul>
    /// - On failure, responds with [`SdkError<GetWebACLError>`](crate::operation::get_web_acl::GetWebACLError)
    pub fn get_web_acl(&self) -> crate::operation::get_web_acl::builders::GetWebACLFluentBuilder {
        crate::operation::get_web_acl::builders::GetWebACLFluentBuilder::new(self.handle.clone())
    }
}