Struct aws_sdk_networkfirewall::operation::create_firewall::builders::CreateFirewallInputBuilder
source · #[non_exhaustive]pub struct CreateFirewallInputBuilder { /* private fields */ }
Expand description
A builder for CreateFirewallInput
.
Implementations§
source§impl CreateFirewallInputBuilder
impl CreateFirewallInputBuilder
sourcepub fn firewall_name(self, input: impl Into<String>) -> Self
pub fn firewall_name(self, input: impl Into<String>) -> Self
The descriptive name of the firewall. You can't change the name of a firewall after you create it.
This field is required.sourcepub fn set_firewall_name(self, input: Option<String>) -> Self
pub fn set_firewall_name(self, input: Option<String>) -> Self
The descriptive name of the firewall. You can't change the name of a firewall after you create it.
sourcepub fn get_firewall_name(&self) -> &Option<String>
pub fn get_firewall_name(&self) -> &Option<String>
The descriptive name of the firewall. You can't change the name of a firewall after you create it.
sourcepub fn firewall_policy_arn(self, input: impl Into<String>) -> Self
pub fn firewall_policy_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the FirewallPolicy
that you want to use for the firewall.
sourcepub fn set_firewall_policy_arn(self, input: Option<String>) -> Self
pub fn set_firewall_policy_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the FirewallPolicy
that you want to use for the firewall.
sourcepub fn get_firewall_policy_arn(&self) -> &Option<String>
pub fn get_firewall_policy_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the FirewallPolicy
that you want to use for the firewall.
sourcepub fn vpc_id(self, input: impl Into<String>) -> Self
pub fn vpc_id(self, input: impl Into<String>) -> 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.
This field is required.sourcepub fn set_vpc_id(self, input: Option<String>) -> Self
pub fn set_vpc_id(self, input: Option<String>) -> 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.
sourcepub fn get_vpc_id(&self) -> &Option<String>
pub fn get_vpc_id(&self) -> &Option<String>
The unique identifier of the VPC where Network Firewall should create the firewall.
You can't change this setting after you create the firewall.
sourcepub fn subnet_mappings(self, input: SubnetMapping) -> Self
pub fn subnet_mappings(self, input: SubnetMapping) -> 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.
sourcepub fn set_subnet_mappings(self, input: Option<Vec<SubnetMapping>>) -> Self
pub fn set_subnet_mappings(self, input: Option<Vec<SubnetMapping>>) -> 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.
sourcepub fn get_subnet_mappings(&self) -> &Option<Vec<SubnetMapping>>
pub fn get_subnet_mappings(&self) -> &Option<Vec<SubnetMapping>>
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.
sourcepub fn delete_protection(self, input: bool) -> Self
pub fn delete_protection(self, input: bool) -> 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
.
sourcepub fn set_delete_protection(self, input: Option<bool>) -> Self
pub fn set_delete_protection(self, input: Option<bool>) -> 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
.
sourcepub fn get_delete_protection(&self) -> &Option<bool>
pub fn get_delete_protection(&self) -> &Option<bool>
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
.
sourcepub fn subnet_change_protection(self, input: bool) -> Self
pub fn subnet_change_protection(self, input: bool) -> 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
.
sourcepub fn set_subnet_change_protection(self, input: Option<bool>) -> Self
pub fn set_subnet_change_protection(self, input: Option<bool>) -> 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
.
sourcepub fn get_subnet_change_protection(&self) -> &Option<bool>
pub fn get_subnet_change_protection(&self) -> &Option<bool>
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
.
sourcepub fn firewall_policy_change_protection(self, input: bool) -> Self
pub fn firewall_policy_change_protection(self, input: bool) -> 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
.
sourcepub fn set_firewall_policy_change_protection(self, input: Option<bool>) -> Self
pub fn set_firewall_policy_change_protection(self, input: Option<bool>) -> 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
.
sourcepub fn get_firewall_policy_change_protection(&self) -> &Option<bool>
pub fn get_firewall_policy_change_protection(&self) -> &Option<bool>
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
.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the firewall.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the firewall.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description of the firewall.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The key:value pairs to associate with the resource.
The key:value pairs to associate with the resource.
The key:value pairs to associate with the resource.
sourcepub fn encryption_configuration(self, input: EncryptionConfiguration) -> Self
pub fn encryption_configuration(self, input: EncryptionConfiguration) -> Self
A complex type that contains settings for encryption of your firewall resources.
sourcepub fn set_encryption_configuration(
self,
input: Option<EncryptionConfiguration>
) -> Self
pub fn set_encryption_configuration( self, input: Option<EncryptionConfiguration> ) -> Self
A complex type that contains settings for encryption of your firewall resources.
sourcepub fn get_encryption_configuration(&self) -> &Option<EncryptionConfiguration>
pub fn get_encryption_configuration(&self) -> &Option<EncryptionConfiguration>
A complex type that contains settings for encryption of your firewall resources.
sourcepub fn build(self) -> Result<CreateFirewallInput, BuildError>
pub fn build(self) -> Result<CreateFirewallInput, BuildError>
Consumes the builder and constructs a CreateFirewallInput
.
source§impl CreateFirewallInputBuilder
impl CreateFirewallInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateFirewallOutput, SdkError<CreateFirewallError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateFirewallOutput, SdkError<CreateFirewallError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateFirewallInputBuilder
impl Clone for CreateFirewallInputBuilder
source§fn clone(&self) -> CreateFirewallInputBuilder
fn clone(&self) -> CreateFirewallInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateFirewallInputBuilder
impl Debug for CreateFirewallInputBuilder
source§impl Default for CreateFirewallInputBuilder
impl Default for CreateFirewallInputBuilder
source§fn default() -> CreateFirewallInputBuilder
fn default() -> CreateFirewallInputBuilder
source§impl PartialEq for CreateFirewallInputBuilder
impl PartialEq for CreateFirewallInputBuilder
source§fn eq(&self, other: &CreateFirewallInputBuilder) -> bool
fn eq(&self, other: &CreateFirewallInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.