aws_sdk_wafv2/client/
get_ip_set.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetIPSet`](crate::operation::get_ip_set::builders::GetIPSetFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`name(impl Into<String>)`](crate::operation::get_ip_set::builders::GetIPSetFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::get_ip_set::builders::GetIPSetFluentBuilder::set_name):<br>required: **true**<br><p>The name of the IP set. You cannot change the name of an <code>IPSet</code> after you create it.</p><br>
    ///   - [`scope(Scope)`](crate::operation::get_ip_set::builders::GetIPSetFluentBuilder::scope) / [`set_scope(Option<Scope>)`](crate::operation::get_ip_set::builders::GetIPSetFluentBuilder::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::get_ip_set::builders::GetIPSetFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::get_ip_set::builders::GetIPSetFluentBuilder::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>
    /// - On success, responds with [`GetIpSetOutput`](crate::operation::get_ip_set::GetIpSetOutput) with field(s):
    ///   - [`ip_set(Option<IpSet>)`](crate::operation::get_ip_set::GetIpSetOutput::ip_set): <p></p>
    ///   - [`lock_token(Option<String>)`](crate::operation::get_ip_set::GetIpSetOutput::lock_token): <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>
    /// - On failure, responds with [`SdkError<GetIPSetError>`](crate::operation::get_ip_set::GetIPSetError)
    pub fn get_ip_set(&self) -> crate::operation::get_ip_set::builders::GetIPSetFluentBuilder {
        crate::operation::get_ip_set::builders::GetIPSetFluentBuilder::new(self.handle.clone())
    }
}