pub struct Builder { /* private fields */ }
Expand description

Implementations§

The IPv4 network range to allow or deny, in CIDR notation (for example 172.16.0.0/24). We modify the specified CIDR block to its canonical form; for example, if you specify 100.68.0.18/18, we modify it to 100.68.0.0/18.

Examples found in repository?
src/client.rs (line 19075)
19074
19075
19076
19077
        pub fn cidr_block(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.cidr_block(input.into());
            self
        }

The IPv4 network range to allow or deny, in CIDR notation (for example 172.16.0.0/24). We modify the specified CIDR block to its canonical form; for example, if you specify 100.68.0.18/18, we modify it to 100.68.0.0/18.

Examples found in repository?
src/client.rs (line 19080)
19079
19080
19081
19082
        pub fn set_cidr_block(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_cidr_block(input);
            self
        }

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Examples found in repository?
src/client.rs (line 19085)
19084
19085
19086
19087
        pub fn dry_run(mut self, input: bool) -> Self {
            self.inner = self.inner.dry_run(input);
            self
        }

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Examples found in repository?
src/client.rs (line 19090)
19089
19090
19091
19092
        pub fn set_dry_run(mut self, input: std::option::Option<bool>) -> Self {
            self.inner = self.inner.set_dry_run(input);
            self
        }

Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).

Examples found in repository?
src/client.rs (line 19095)
19094
19095
19096
19097
        pub fn egress(mut self, input: bool) -> Self {
            self.inner = self.inner.egress(input);
            self
        }

Indicates whether this is an egress rule (rule is applied to traffic leaving the subnet).

Examples found in repository?
src/client.rs (line 19100)
19099
19100
19101
19102
        pub fn set_egress(mut self, input: std::option::Option<bool>) -> Self {
            self.inner = self.inner.set_egress(input);
            self
        }

ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying protocol 1 (ICMP) or protocol 58 (ICMPv6) with an IPv6 CIDR block.

Examples found in repository?
src/client.rs (line 19105)
19104
19105
19106
19107
        pub fn icmp_type_code(mut self, input: crate::model::IcmpTypeCode) -> Self {
            self.inner = self.inner.icmp_type_code(input);
            self
        }

ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying protocol 1 (ICMP) or protocol 58 (ICMPv6) with an IPv6 CIDR block.

Examples found in repository?
src/client.rs (line 19113)
19109
19110
19111
19112
19113
19114
19115
        pub fn set_icmp_type_code(
            mut self,
            input: std::option::Option<crate::model::IcmpTypeCode>,
        ) -> Self {
            self.inner = self.inner.set_icmp_type_code(input);
            self
        }

The IPv6 network range to allow or deny, in CIDR notation (for example 2001:db8:1234:1a00::/64).

Examples found in repository?
src/client.rs (line 19118)
19117
19118
19119
19120
        pub fn ipv6_cidr_block(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.ipv6_cidr_block(input.into());
            self
        }

The IPv6 network range to allow or deny, in CIDR notation (for example 2001:db8:1234:1a00::/64).

Examples found in repository?
src/client.rs (line 19126)
19122
19123
19124
19125
19126
19127
19128
        pub fn set_ipv6_cidr_block(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_ipv6_cidr_block(input);
            self
        }

The ID of the network ACL.

Examples found in repository?
src/client.rs (line 19131)
19130
19131
19132
19133
        pub fn network_acl_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.network_acl_id(input.into());
            self
        }

The ID of the network ACL.

Examples found in repository?
src/client.rs (line 19139)
19135
19136
19137
19138
19139
19140
19141
        pub fn set_network_acl_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_network_acl_id(input);
            self
        }

TCP or UDP protocols: The range of ports the rule applies to. Required if specifying protocol 6 (TCP) or 17 (UDP).

Examples found in repository?
src/client.rs (line 19144)
19143
19144
19145
19146
        pub fn port_range(mut self, input: crate::model::PortRange) -> Self {
            self.inner = self.inner.port_range(input);
            self
        }

TCP or UDP protocols: The range of ports the rule applies to. Required if specifying protocol 6 (TCP) or 17 (UDP).

Examples found in repository?
src/client.rs (line 19152)
19148
19149
19150
19151
19152
19153
19154
        pub fn set_port_range(
            mut self,
            input: std::option::Option<crate::model::PortRange>,
        ) -> Self {
            self.inner = self.inner.set_port_range(input);
            self
        }

The protocol number. A value of "-1" means all protocols. If you specify "-1" or a protocol number other than "6" (TCP), "17" (UDP), or "1" (ICMP), traffic on all ports is allowed, regardless of any ports or ICMP types or codes that you specify. If you specify protocol "58" (ICMPv6) and specify an IPv4 CIDR block, traffic for all ICMP types and codes allowed, regardless of any that you specify. If you specify protocol "58" (ICMPv6) and specify an IPv6 CIDR block, you must specify an ICMP type and code.

Examples found in repository?
src/client.rs (line 19157)
19156
19157
19158
19159
        pub fn protocol(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.protocol(input.into());
            self
        }

The protocol number. A value of "-1" means all protocols. If you specify "-1" or a protocol number other than "6" (TCP), "17" (UDP), or "1" (ICMP), traffic on all ports is allowed, regardless of any ports or ICMP types or codes that you specify. If you specify protocol "58" (ICMPv6) and specify an IPv4 CIDR block, traffic for all ICMP types and codes allowed, regardless of any that you specify. If you specify protocol "58" (ICMPv6) and specify an IPv6 CIDR block, you must specify an ICMP type and code.

Examples found in repository?
src/client.rs (line 19162)
19161
19162
19163
19164
        pub fn set_protocol(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_protocol(input);
            self
        }

Indicates whether to allow or deny the traffic that matches the rule.

Examples found in repository?
src/client.rs (line 19167)
19166
19167
19168
19169
        pub fn rule_action(mut self, input: crate::model::RuleAction) -> Self {
            self.inner = self.inner.rule_action(input);
            self
        }

Indicates whether to allow or deny the traffic that matches the rule.

Examples found in repository?
src/client.rs (line 19175)
19171
19172
19173
19174
19175
19176
19177
        pub fn set_rule_action(
            mut self,
            input: std::option::Option<crate::model::RuleAction>,
        ) -> Self {
            self.inner = self.inner.set_rule_action(input);
            self
        }

The rule number for the entry (for example, 100). ACL entries are processed in ascending order by rule number.

Constraints: Positive integer from 1 to 32766. The range 32767 to 65535 is reserved for internal use.

Examples found in repository?
src/client.rs (line 19181)
19180
19181
19182
19183
        pub fn rule_number(mut self, input: i32) -> Self {
            self.inner = self.inner.rule_number(input);
            self
        }

The rule number for the entry (for example, 100). ACL entries are processed in ascending order by rule number.

Constraints: Positive integer from 1 to 32766. The range 32767 to 65535 is reserved for internal use.

Examples found in repository?
src/client.rs (line 19187)
19186
19187
19188
19189
        pub fn set_rule_number(mut self, input: std::option::Option<i32>) -> Self {
            self.inner = self.inner.set_rule_number(input);
            self
        }

Consumes the builder and constructs a CreateNetworkAclEntryInput.

Examples found in repository?
src/client.rs (line 19042)
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::CreateNetworkAclEntry,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::CreateNetworkAclEntryError>,
        > {
            let handle = self.handle.clone();
            let operation = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            Ok(crate::operation::customize::CustomizableOperation { handle, operation })
        }

        /// Sends the request and returns the response.
        ///
        /// If an error occurs, an `SdkError` will be returned with additional details that
        /// can be matched against.
        ///
        /// By default, any retryable failures will be retried twice. Retry behavior
        /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
        /// set when configuring the client.
        pub async fn send(
            self,
        ) -> std::result::Result<
            crate::output::CreateNetworkAclEntryOutput,
            aws_smithy_http::result::SdkError<crate::error::CreateNetworkAclEntryError>,
        > {
            let op = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&self.handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            self.handle.client.call(op).await
        }

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more