#[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.
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 enabled_analysis_types(self, input: EnabledAnalysisType) -> Self
pub fn enabled_analysis_types(self, input: EnabledAnalysisType) -> Self
Appends an item to enabled_analysis_types
.
To override the contents of this collection use set_enabled_analysis_types
.
An optional setting indicating the specific traffic analysis types to enable on the firewall.
Sourcepub fn set_enabled_analysis_types(
self,
input: Option<Vec<EnabledAnalysisType>>,
) -> Self
pub fn set_enabled_analysis_types( self, input: Option<Vec<EnabledAnalysisType>>, ) -> Self
An optional setting indicating the specific traffic analysis types to enable on the firewall.
Sourcepub fn get_enabled_analysis_types(&self) -> &Option<Vec<EnabledAnalysisType>>
pub fn get_enabled_analysis_types(&self) -> &Option<Vec<EnabledAnalysisType>>
An optional setting indicating the specific traffic analysis types to enable on the firewall.
Sourcepub fn transit_gateway_id(self, input: impl Into<String>) -> Self
pub fn transit_gateway_id(self, input: impl Into<String>) -> Self
Required when creating a transit gateway-attached firewall. The unique identifier of the transit gateway to attach to this firewall. You can provide either a transit gateway from your account or one that has been shared with you through Resource Access Manager.
After creating the firewall, you cannot change the transit gateway association. To use a different transit gateway, you must create a new firewall.
For information about creating firewalls, see CreateFirewall
. For specific guidance about transit gateway-attached firewalls, see Considerations for transit gateway-attached firewalls in the Network Firewall Developer Guide.
Sourcepub fn set_transit_gateway_id(self, input: Option<String>) -> Self
pub fn set_transit_gateway_id(self, input: Option<String>) -> Self
Required when creating a transit gateway-attached firewall. The unique identifier of the transit gateway to attach to this firewall. You can provide either a transit gateway from your account or one that has been shared with you through Resource Access Manager.
After creating the firewall, you cannot change the transit gateway association. To use a different transit gateway, you must create a new firewall.
For information about creating firewalls, see CreateFirewall
. For specific guidance about transit gateway-attached firewalls, see Considerations for transit gateway-attached firewalls in the Network Firewall Developer Guide.
Sourcepub fn get_transit_gateway_id(&self) -> &Option<String>
pub fn get_transit_gateway_id(&self) -> &Option<String>
Required when creating a transit gateway-attached firewall. The unique identifier of the transit gateway to attach to this firewall. You can provide either a transit gateway from your account or one that has been shared with you through Resource Access Manager.
After creating the firewall, you cannot change the transit gateway association. To use a different transit gateway, you must create a new firewall.
For information about creating firewalls, see CreateFirewall
. For specific guidance about transit gateway-attached firewalls, see Considerations for transit gateway-attached firewalls in the Network Firewall Developer Guide.
Sourcepub fn availability_zone_mappings(self, input: AvailabilityZoneMapping) -> Self
pub fn availability_zone_mappings(self, input: AvailabilityZoneMapping) -> Self
Appends an item to availability_zone_mappings
.
To override the contents of this collection use set_availability_zone_mappings
.
Required. The Availability Zones where you want to create firewall endpoints for a transit gateway-attached firewall. You must specify at least one Availability Zone. Consider enabling the firewall in every Availability Zone where you have workloads to maintain Availability Zone independence.
You can modify Availability Zones later using AssociateAvailabilityZones
or DisassociateAvailabilityZones
, but this may briefly disrupt traffic. The AvailabilityZoneChangeProtection
setting controls whether you can make these modifications.
Sourcepub fn set_availability_zone_mappings(
self,
input: Option<Vec<AvailabilityZoneMapping>>,
) -> Self
pub fn set_availability_zone_mappings( self, input: Option<Vec<AvailabilityZoneMapping>>, ) -> Self
Required. The Availability Zones where you want to create firewall endpoints for a transit gateway-attached firewall. You must specify at least one Availability Zone. Consider enabling the firewall in every Availability Zone where you have workloads to maintain Availability Zone independence.
You can modify Availability Zones later using AssociateAvailabilityZones
or DisassociateAvailabilityZones
, but this may briefly disrupt traffic. The AvailabilityZoneChangeProtection
setting controls whether you can make these modifications.
Sourcepub fn get_availability_zone_mappings(
&self,
) -> &Option<Vec<AvailabilityZoneMapping>>
pub fn get_availability_zone_mappings( &self, ) -> &Option<Vec<AvailabilityZoneMapping>>
Required. The Availability Zones where you want to create firewall endpoints for a transit gateway-attached firewall. You must specify at least one Availability Zone. Consider enabling the firewall in every Availability Zone where you have workloads to maintain Availability Zone independence.
You can modify Availability Zones later using AssociateAvailabilityZones
or DisassociateAvailabilityZones
, but this may briefly disrupt traffic. The AvailabilityZoneChangeProtection
setting controls whether you can make these modifications.
Sourcepub fn availability_zone_change_protection(self, input: bool) -> Self
pub fn availability_zone_change_protection(self, input: bool) -> Self
Optional. A setting indicating whether the firewall is protected against changes to its Availability Zone configuration. When set to TRUE
, you cannot add or remove Availability Zones without first disabling this protection using UpdateAvailabilityZoneChangeProtection
.
Default value: FALSE
Sourcepub fn set_availability_zone_change_protection(
self,
input: Option<bool>,
) -> Self
pub fn set_availability_zone_change_protection( self, input: Option<bool>, ) -> Self
Optional. A setting indicating whether the firewall is protected against changes to its Availability Zone configuration. When set to TRUE
, you cannot add or remove Availability Zones without first disabling this protection using UpdateAvailabilityZoneChangeProtection
.
Default value: FALSE
Sourcepub fn get_availability_zone_change_protection(&self) -> &Option<bool>
pub fn get_availability_zone_change_protection(&self) -> &Option<bool>
Optional. A setting indicating whether the firewall is protected against changes to its Availability Zone configuration. When set to TRUE
, you cannot add or remove Availability Zones without first disabling this protection using UpdateAvailabilityZoneChangeProtection
.
Default value: FALSE
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
impl StructuralPartialEq for CreateFirewallInputBuilder
Auto Trait Implementations§
impl Freeze for CreateFirewallInputBuilder
impl RefUnwindSafe for CreateFirewallInputBuilder
impl Send for CreateFirewallInputBuilder
impl Sync for CreateFirewallInputBuilder
impl Unpin for CreateFirewallInputBuilder
impl UnwindSafe for CreateFirewallInputBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);