aws_sdk_wafregional/client/
get_byte_match_set.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 [`GetByteMatchSet`](crate::operation::get_byte_match_set::builders::GetByteMatchSetFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`byte_match_set_id(impl Into<String>)`](crate::operation::get_byte_match_set::builders::GetByteMatchSetFluentBuilder::byte_match_set_id) / [`set_byte_match_set_id(Option<String>)`](crate::operation::get_byte_match_set::builders::GetByteMatchSetFluentBuilder::set_byte_match_set_id):<br>required: **true**<br><p>The <code>ByteMatchSetId</code> of the <code>ByteMatchSet</code> that you want to get. <code>ByteMatchSetId</code> is returned by <code>CreateByteMatchSet</code> and by <code>ListByteMatchSets</code>.</p><br>
    /// - On success, responds with [`GetByteMatchSetOutput`](crate::operation::get_byte_match_set::GetByteMatchSetOutput) with field(s):
    ///   - [`byte_match_set(Option<ByteMatchSet>)`](crate::operation::get_byte_match_set::GetByteMatchSetOutput::byte_match_set): <p>Information about the <code>ByteMatchSet</code> that you specified in the <code>GetByteMatchSet</code> request. For more information, see the following topics:</p> <ul>  <li>   <p><code>ByteMatchSet</code>: Contains <code>ByteMatchSetId</code>, <code>ByteMatchTuples</code>, and <code>Name</code></p></li>  <li>   <p><code>ByteMatchTuples</code>: Contains an array of <code>ByteMatchTuple</code> objects. Each <code>ByteMatchTuple</code> object contains <code>FieldToMatch</code>, <code>PositionalConstraint</code>, <code>TargetString</code>, and <code>TextTransformation</code></p></li>  <li>   <p><code>FieldToMatch</code>: Contains <code>Data</code> and <code>Type</code></p></li> </ul>
    /// - On failure, responds with [`SdkError<GetByteMatchSetError>`](crate::operation::get_byte_match_set::GetByteMatchSetError)
    pub fn get_byte_match_set(&self) -> crate::operation::get_byte_match_set::builders::GetByteMatchSetFluentBuilder {
        crate::operation::get_byte_match_set::builders::GetByteMatchSetFluentBuilder::new(self.handle.clone())
    }
}