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

A builder for CreateFirewallInput.

Implementations§

The descriptive name of the firewall. You can't change the name of a firewall after you create it.

Examples found in repository?
src/client.rs (line 867)
866
867
868
869
        pub fn firewall_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.firewall_name(input.into());
            self
        }

The descriptive name of the firewall. You can't change the name of a firewall after you create it.

Examples found in repository?
src/client.rs (line 875)
871
872
873
874
875
876
877
        pub fn set_firewall_name(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_firewall_name(input);
            self
        }

The Amazon Resource Name (ARN) of the FirewallPolicy that you want to use for the firewall.

Examples found in repository?
src/client.rs (line 880)
879
880
881
882
        pub fn firewall_policy_arn(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.firewall_policy_arn(input.into());
            self
        }

The Amazon Resource Name (ARN) of the FirewallPolicy that you want to use for the firewall.

Examples found in repository?
src/client.rs (line 888)
884
885
886
887
888
889
890
        pub fn set_firewall_policy_arn(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_firewall_policy_arn(input);
            self
        }

The unique identifier of the VPC where Network Firewall should create the firewall.

You can't change this setting after you create the firewall.

Examples found in repository?
src/client.rs (line 894)
893
894
895
896
        pub fn vpc_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.vpc_id(input.into());
            self
        }

The unique identifier of the VPC where Network Firewall should create the firewall.

You can't change this setting after you create the firewall.

Examples found in repository?
src/client.rs (line 900)
899
900
901
902
        pub fn set_vpc_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_vpc_id(input);
            self
        }

Appends an item to subnet_mappings.

To override the contents of this collection use set_subnet_mappings.

The public subnets to use for your Network Firewall firewalls. Each subnet must belong to a different Availability Zone in the VPC. Network Firewall creates a firewall endpoint in each subnet.

Examples found in repository?
src/client.rs (line 909)
908
909
910
911
        pub fn subnet_mappings(mut self, input: crate::model::SubnetMapping) -> Self {
            self.inner = self.inner.subnet_mappings(input);
            self
        }

The public subnets to use for your Network Firewall firewalls. Each subnet must belong to a different Availability Zone in the VPC. Network Firewall creates a firewall endpoint in each subnet.

Examples found in repository?
src/client.rs (line 917)
913
914
915
916
917
918
919
        pub fn set_subnet_mappings(
            mut self,
            input: std::option::Option<std::vec::Vec<crate::model::SubnetMapping>>,
        ) -> Self {
            self.inner = self.inner.set_subnet_mappings(input);
            self
        }

A flag indicating whether it is possible to delete the firewall. A setting of TRUE indicates that the firewall is protected against deletion. Use this setting to protect against accidentally deleting a firewall that is in use. When you create a firewall, the operation initializes this flag to TRUE.

Examples found in repository?
src/client.rs (line 922)
921
922
923
924
        pub fn delete_protection(mut self, input: bool) -> Self {
            self.inner = self.inner.delete_protection(input);
            self
        }

A flag indicating whether it is possible to delete the firewall. A setting of TRUE indicates that the firewall is protected against deletion. Use this setting to protect against accidentally deleting a firewall that is in use. When you create a firewall, the operation initializes this flag to TRUE.

Examples found in repository?
src/client.rs (line 927)
926
927
928
929
        pub fn set_delete_protection(mut self, input: std::option::Option<bool>) -> Self {
            self.inner = self.inner.set_delete_protection(input);
            self
        }

A setting indicating whether the firewall is protected against changes to the subnet associations. Use this setting to protect against accidentally modifying the subnet associations for a firewall that is in use. When you create a firewall, the operation initializes this setting to TRUE.

Examples found in repository?
src/client.rs (line 932)
931
932
933
934
        pub fn subnet_change_protection(mut self, input: bool) -> Self {
            self.inner = self.inner.subnet_change_protection(input);
            self
        }

A setting indicating whether the firewall is protected against changes to the subnet associations. Use this setting to protect against accidentally modifying the subnet associations for a firewall that is in use. When you create a firewall, the operation initializes this setting to TRUE.

Examples found in repository?
src/client.rs (line 937)
936
937
938
939
        pub fn set_subnet_change_protection(mut self, input: std::option::Option<bool>) -> Self {
            self.inner = self.inner.set_subnet_change_protection(input);
            self
        }

A setting indicating whether the firewall is protected against a change to the firewall policy association. Use this setting to protect against accidentally modifying the firewall policy for a firewall that is in use. When you create a firewall, the operation initializes this setting to TRUE.

Examples found in repository?
src/client.rs (line 942)
941
942
943
944
        pub fn firewall_policy_change_protection(mut self, input: bool) -> Self {
            self.inner = self.inner.firewall_policy_change_protection(input);
            self
        }

A setting indicating whether the firewall is protected against a change to the firewall policy association. Use this setting to protect against accidentally modifying the firewall policy for a firewall that is in use. When you create a firewall, the operation initializes this setting to TRUE.

Examples found in repository?
src/client.rs (line 950)
946
947
948
949
950
951
952
        pub fn set_firewall_policy_change_protection(
            mut self,
            input: std::option::Option<bool>,
        ) -> Self {
            self.inner = self.inner.set_firewall_policy_change_protection(input);
            self
        }

A description of the firewall.

Examples found in repository?
src/client.rs (line 955)
954
955
956
957
        pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.description(input.into());
            self
        }

A description of the firewall.

Examples found in repository?
src/client.rs (line 960)
959
960
961
962
        pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_description(input);
            self
        }

Appends an item to tags.

To override the contents of this collection use set_tags.

The key:value pairs to associate with the resource.

Examples found in repository?
src/client.rs (line 969)
968
969
970
971
        pub fn tags(mut self, input: crate::model::Tag) -> Self {
            self.inner = self.inner.tags(input);
            self
        }

The key:value pairs to associate with the resource.

Examples found in repository?
src/client.rs (line 977)
973
974
975
976
977
978
979
        pub fn set_tags(
            mut self,
            input: std::option::Option<std::vec::Vec<crate::model::Tag>>,
        ) -> Self {
            self.inner = self.inner.set_tags(input);
            self
        }

A complex type that contains settings for encryption of your firewall resources.

Examples found in repository?
src/client.rs (line 985)
981
982
983
984
985
986
987
        pub fn encryption_configuration(
            mut self,
            input: crate::model::EncryptionConfiguration,
        ) -> Self {
            self.inner = self.inner.encryption_configuration(input);
            self
        }

A complex type that contains settings for encryption of your firewall resources.

Examples found in repository?
src/client.rs (line 993)
989
990
991
992
993
994
995
        pub fn set_encryption_configuration(
            mut self,
            input: std::option::Option<crate::model::EncryptionConfiguration>,
        ) -> Self {
            self.inner = self.inner.set_encryption_configuration(input);
            self
        }

Consumes the builder and constructs a CreateFirewallInput.

Examples found in repository?
src/client.rs (line 834)
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::CreateFirewall,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::CreateFirewallError>,
        > {
            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::CreateFirewallOutput,
            aws_smithy_http::result::SdkError<crate::error::CreateFirewallError>,
        > {
            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