#[non_exhaustive]pub struct CreateFirewallInput {Show 14 fields
pub firewall_name: Option<String>,
pub firewall_policy_arn: Option<String>,
pub vpc_id: Option<String>,
pub subnet_mappings: Option<Vec<SubnetMapping>>,
pub delete_protection: Option<bool>,
pub subnet_change_protection: Option<bool>,
pub firewall_policy_change_protection: Option<bool>,
pub description: Option<String>,
pub tags: Option<Vec<Tag>>,
pub encryption_configuration: Option<EncryptionConfiguration>,
pub enabled_analysis_types: Option<Vec<EnabledAnalysisType>>,
pub transit_gateway_id: Option<String>,
pub availability_zone_mappings: Option<Vec<AvailabilityZoneMapping>>,
pub availability_zone_change_protection: Option<bool>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.firewall_name: Option<String>
The descriptive name of the firewall. You can't change the name of a firewall after you create it.
firewall_policy_arn: Option<String>
The Amazon Resource Name (ARN) of the FirewallPolicy
that you want to use for the firewall.
vpc_id: 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.
subnet_mappings: 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.
delete_protection: 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
.
subnet_change_protection: 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
.
firewall_policy_change_protection: 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
.
description: Option<String>
A description of the firewall.
The key:value pairs to associate with the resource.
encryption_configuration: Option<EncryptionConfiguration>
A complex type that contains settings for encryption of your firewall resources.
enabled_analysis_types: Option<Vec<EnabledAnalysisType>>
An optional setting indicating the specific traffic analysis types to enable on the firewall.
transit_gateway_id: 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.
availability_zone_mappings: 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.
availability_zone_change_protection: 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
Implementations§
Source§impl CreateFirewallInput
impl CreateFirewallInput
Sourcepub fn firewall_name(&self) -> Option<&str>
pub fn firewall_name(&self) -> Option<&str>
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) -> Option<&str>
pub fn firewall_policy_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the FirewallPolicy
that you want to use for the firewall.
Sourcepub fn vpc_id(&self) -> Option<&str>
pub fn vpc_id(&self) -> Option<&str>
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) -> &[SubnetMapping]
pub fn subnet_mappings(&self) -> &[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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .subnet_mappings.is_none()
.
Sourcepub fn delete_protection(&self) -> Option<bool>
pub fn 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) -> Option<bool>
pub fn 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) -> Option<bool>
pub fn 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) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the firewall.
The key:value pairs to associate with the resource.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none()
.
Sourcepub fn encryption_configuration(&self) -> Option<&EncryptionConfiguration>
pub fn encryption_configuration(&self) -> Option<&EncryptionConfiguration>
A complex type that contains settings for encryption of your firewall resources.
Sourcepub fn enabled_analysis_types(&self) -> &[EnabledAnalysisType]
pub fn enabled_analysis_types(&self) -> &[EnabledAnalysisType]
An optional setting indicating the specific traffic analysis types to enable on the firewall.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .enabled_analysis_types.is_none()
.
Sourcepub fn transit_gateway_id(&self) -> Option<&str>
pub fn transit_gateway_id(&self) -> Option<&str>
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) -> &[AvailabilityZoneMapping]
pub fn availability_zone_mappings(&self) -> &[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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .availability_zone_mappings.is_none()
.
Sourcepub fn availability_zone_change_protection(&self) -> Option<bool>
pub fn 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
Source§impl CreateFirewallInput
impl CreateFirewallInput
Sourcepub fn builder() -> CreateFirewallInputBuilder
pub fn builder() -> CreateFirewallInputBuilder
Creates a new builder-style object to manufacture CreateFirewallInput
.
Trait Implementations§
Source§impl Clone for CreateFirewallInput
impl Clone for CreateFirewallInput
Source§fn clone(&self) -> CreateFirewallInput
fn clone(&self) -> CreateFirewallInput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CreateFirewallInput
impl Debug for CreateFirewallInput
Source§impl PartialEq for CreateFirewallInput
impl PartialEq for CreateFirewallInput
impl StructuralPartialEq for CreateFirewallInput
Auto Trait Implementations§
impl Freeze for CreateFirewallInput
impl RefUnwindSafe for CreateFirewallInput
impl Send for CreateFirewallInput
impl Sync for CreateFirewallInput
impl Unpin for CreateFirewallInput
impl UnwindSafe for CreateFirewallInput
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);