aws_sdk_quicksight/client/
update_ip_restriction.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`UpdateIpRestriction`](crate::operation::update_ip_restriction::builders::UpdateIpRestrictionFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`aws_account_id(impl Into<String>)`](crate::operation::update_ip_restriction::builders::UpdateIpRestrictionFluentBuilder::aws_account_id) / [`set_aws_account_id(Option<String>)`](crate::operation::update_ip_restriction::builders::UpdateIpRestrictionFluentBuilder::set_aws_account_id):<br>required: **true**<br><p>The ID of the Amazon Web Services account that contains the IP rules.</p><br>
7    ///   - [`ip_restriction_rule_map(impl Into<String>, impl Into<String>)`](crate::operation::update_ip_restriction::builders::UpdateIpRestrictionFluentBuilder::ip_restriction_rule_map) / [`set_ip_restriction_rule_map(Option<HashMap::<String, String>>)`](crate::operation::update_ip_restriction::builders::UpdateIpRestrictionFluentBuilder::set_ip_restriction_rule_map):<br>required: **false**<br><p>A map that describes the updated IP rules with CIDR ranges and descriptions.</p><br>
8    ///   - [`vpc_id_restriction_rule_map(impl Into<String>, impl Into<String>)`](crate::operation::update_ip_restriction::builders::UpdateIpRestrictionFluentBuilder::vpc_id_restriction_rule_map) / [`set_vpc_id_restriction_rule_map(Option<HashMap::<String, String>>)`](crate::operation::update_ip_restriction::builders::UpdateIpRestrictionFluentBuilder::set_vpc_id_restriction_rule_map):<br>required: **false**<br><p>A map of VPC IDs and their corresponding rules. When you configure this parameter, traffic from all VPC endpoints that are present in the specified VPC is allowed.</p><br>
9    ///   - [`vpc_endpoint_id_restriction_rule_map(impl Into<String>, impl Into<String>)`](crate::operation::update_ip_restriction::builders::UpdateIpRestrictionFluentBuilder::vpc_endpoint_id_restriction_rule_map) / [`set_vpc_endpoint_id_restriction_rule_map(Option<HashMap::<String, String>>)`](crate::operation::update_ip_restriction::builders::UpdateIpRestrictionFluentBuilder::set_vpc_endpoint_id_restriction_rule_map):<br>required: **false**<br><p>A map of allowed VPC endpoint IDs and their corresponding rule descriptions.</p><br>
10    ///   - [`enabled(bool)`](crate::operation::update_ip_restriction::builders::UpdateIpRestrictionFluentBuilder::enabled) / [`set_enabled(Option<bool>)`](crate::operation::update_ip_restriction::builders::UpdateIpRestrictionFluentBuilder::set_enabled):<br>required: **false**<br><p>A value that specifies whether IP rules are turned on.</p><br>
11    /// - On success, responds with [`UpdateIpRestrictionOutput`](crate::operation::update_ip_restriction::UpdateIpRestrictionOutput) with field(s):
12    ///   - [`aws_account_id(Option<String>)`](crate::operation::update_ip_restriction::UpdateIpRestrictionOutput::aws_account_id): <p>The ID of the Amazon Web Services account that contains the IP rules.</p>
13    ///   - [`request_id(Option<String>)`](crate::operation::update_ip_restriction::UpdateIpRestrictionOutput::request_id): <p>The Amazon Web Services request ID for this operation.</p>
14    ///   - [`status(i32)`](crate::operation::update_ip_restriction::UpdateIpRestrictionOutput::status): <p>The HTTP status of the request.</p>
15    /// - On failure, responds with [`SdkError<UpdateIpRestrictionError>`](crate::operation::update_ip_restriction::UpdateIpRestrictionError)
16    pub fn update_ip_restriction(&self) -> crate::operation::update_ip_restriction::builders::UpdateIpRestrictionFluentBuilder {
17        crate::operation::update_ip_restriction::builders::UpdateIpRestrictionFluentBuilder::new(self.handle.clone())
18    }
19}