Skip to main content

NetworkFirewallState

Struct NetworkFirewallState 

Source
pub struct NetworkFirewallState {
Show 16 fields pub firewalls: HashMap<String, Firewall>, pub logging_configs: HashMap<String, Value>, pub rule_groups: HashMap<String, RuleGroup>, pub firewall_policies: HashMap<String, FirewallPolicy>, pub resource_policies: HashMap<String, ResourcePolicy>, pub tls_inspection_configurations: HashMap<String, TlsInspectionConfiguration>, pub vpc_endpoint_associations: HashMap<String, VpcEndpointAssociation>, pub availability_zone_mappings: HashMap<String, Vec<AvailabilityZoneMapping>>, pub transit_gateway_attachments: HashMap<String, TransitGatewayAttachment>, pub proxies: HashMap<String, NfwProxy>, pub proxy_configurations: HashMap<String, NfwProxyConfiguration>, pub proxy_rule_groups: HashMap<String, NfwProxyRuleGroup>, pub flow_operations: HashMap<String, FlowOperation>, pub analysis_reports: HashMap<String, AnalysisReport>, pub encryption_configs: HashMap<String, EncryptionConfig>, pub analysis_settings: HashMap<String, Vec<String>>,
}
Expand description

In-memory state for the Network Firewall service.

Fields§

§firewalls: HashMap<String, Firewall>

Firewalls keyed by ARN.

§logging_configs: HashMap<String, Value>

Logging configurations keyed by firewall ARN.

§rule_groups: HashMap<String, RuleGroup>

Rule groups keyed by ARN.

§firewall_policies: HashMap<String, FirewallPolicy>

Firewall policies keyed by ARN.

§resource_policies: HashMap<String, ResourcePolicy>

Resource policies keyed by resource ARN.

§tls_inspection_configurations: HashMap<String, TlsInspectionConfiguration>

TLS inspection configurations keyed by ARN.

§vpc_endpoint_associations: HashMap<String, VpcEndpointAssociation>

VPC endpoint associations keyed by ARN.

§availability_zone_mappings: HashMap<String, Vec<AvailabilityZoneMapping>>

Availability zone mappings keyed by firewall ARN.

§transit_gateway_attachments: HashMap<String, TransitGatewayAttachment>

Transit gateway attachments keyed by attachment ID.

§proxies: HashMap<String, NfwProxy>

Proxies keyed by ARN.

§proxy_configurations: HashMap<String, NfwProxyConfiguration>

Proxy configurations keyed by ARN.

§proxy_rule_groups: HashMap<String, NfwProxyRuleGroup>

Proxy rule groups keyed by ARN.

§flow_operations: HashMap<String, FlowOperation>

Flow operations keyed by operation ID.

§analysis_reports: HashMap<String, AnalysisReport>

Analysis reports keyed by report ID.

§encryption_configs: HashMap<String, EncryptionConfig>

Encryption configurations keyed by firewall ARN.

§analysis_settings: HashMap<String, Vec<String>>

Enabled analysis types keyed by firewall ARN.

Implementations§

Source§

impl NetworkFirewallState

Source

pub fn create_firewall( &mut self, firewall_name: &str, firewall_policy_arn: &str, vpc_id: &str, subnet_mappings: Vec<SubnetMapping>, description: Option<&str>, delete_protection: bool, tags: Vec<(String, String)>, account_id: &str, region: &str, ) -> Result<(&Firewall, FirewallStatus), NfwError>

Source

pub fn describe_firewall( &self, firewall_name: Option<&str>, firewall_arn: Option<&str>, ) -> Result<(&Firewall, FirewallStatus), NfwError>

Source

pub fn delete_firewall( &mut self, firewall_name: Option<&str>, firewall_arn: Option<&str>, ) -> Result<(Firewall, FirewallStatus), NfwError>

Source

pub fn list_firewalls(&self) -> Vec<FirewallMetadata>

Source

pub fn create_rule_group( &mut self, rule_group_name: &str, rule_group_type: &str, capacity: i32, description: Option<&str>, tags: Vec<(String, String)>, rule_group_body: Option<Value>, rules: Option<&str>, account_id: &str, region: &str, ) -> Result<&RuleGroup, NfwError>

Source

pub fn describe_rule_group( &self, rule_group_name: Option<&str>, rule_group_arn: Option<&str>, ) -> Result<&RuleGroup, NfwError>

Source

pub fn delete_rule_group( &mut self, rule_group_name: Option<&str>, rule_group_arn: Option<&str>, ) -> Result<RuleGroup, NfwError>

Source

pub fn list_rule_groups(&self) -> Vec<RuleGroupMetadata>

Source

pub fn update_rule_group( &mut self, rule_group_name: Option<&str>, rule_group_arn: Option<&str>, description: Option<&str>, rule_group_body: Option<Value>, rules: Option<&str>, ) -> Result<&RuleGroup, NfwError>

Source

pub fn create_firewall_policy( &mut self, firewall_policy_name: &str, firewall_policy_body: Value, description: Option<&str>, tags: Vec<(String, String)>, account_id: &str, region: &str, ) -> Result<&FirewallPolicy, NfwError>

Source

pub fn describe_firewall_policy( &self, firewall_policy_name: Option<&str>, firewall_policy_arn: Option<&str>, ) -> Result<&FirewallPolicy, NfwError>

Source

pub fn delete_firewall_policy( &mut self, firewall_policy_name: Option<&str>, firewall_policy_arn: Option<&str>, ) -> Result<FirewallPolicy, NfwError>

Source

pub fn list_firewall_policies(&self) -> Vec<FirewallPolicyMetadata>

Source

pub fn update_firewall_policy( &mut self, firewall_policy_name: Option<&str>, firewall_policy_arn: Option<&str>, firewall_policy_body: Value, description: Option<&str>, ) -> Result<&FirewallPolicy, NfwError>

Source

pub fn list_tags_for_resource( &self, resource_arn: &str, ) -> Result<Vec<(String, String)>, NfwError>

Source

pub fn tag_resource( &mut self, resource_arn: &str, tags: Vec<(String, String)>, ) -> Result<(), NfwError>

Source

pub fn untag_resource( &mut self, resource_arn: &str, tag_keys: Vec<&str>, ) -> Result<(), NfwError>

Source

pub fn put_resource_policy( &mut self, resource_arn: &str, policy: &str, ) -> Result<(), NfwError>

Source

pub fn describe_resource_policy( &self, resource_arn: &str, ) -> Result<&str, NfwError>

Source

pub fn delete_resource_policy( &mut self, resource_arn: &str, ) -> Result<(), NfwError>

Source

pub fn update_firewall_description( &mut self, firewall_name: Option<&str>, firewall_arn: Option<&str>, description: Option<&str>, ) -> Result<(&Firewall, FirewallStatus), NfwError>

Source

pub fn update_firewall_delete_protection( &mut self, firewall_name: Option<&str>, firewall_arn: Option<&str>, delete_protection: bool, ) -> Result<(&Firewall, FirewallStatus), NfwError>

Source

pub fn associate_firewall_policy( &mut self, firewall_name: Option<&str>, firewall_arn: Option<&str>, firewall_policy_arn: &str, ) -> Result<(&Firewall, FirewallStatus), NfwError>

Source

pub fn associate_subnets( &mut self, firewall_name: Option<&str>, firewall_arn: Option<&str>, subnet_mappings: Vec<SubnetMapping>, ) -> Result<(&Firewall, FirewallStatus), NfwError>

Source

pub fn disassociate_subnets( &mut self, firewall_name: Option<&str>, firewall_arn: Option<&str>, subnet_ids: Vec<&str>, ) -> Result<(&Firewall, FirewallStatus), NfwError>

Source

pub fn update_subnet_change_protection( &mut self, firewall_name: Option<&str>, firewall_arn: Option<&str>, subnet_change_protection: bool, ) -> Result<(&Firewall, FirewallStatus), NfwError>

Source

pub fn update_firewall_policy_change_protection( &mut self, firewall_name: Option<&str>, firewall_arn: Option<&str>, firewall_policy_change_protection: bool, ) -> Result<(&Firewall, FirewallStatus), NfwError>

Source

pub fn update_availability_zone_change_protection( &mut self, firewall_name: Option<&str>, firewall_arn: Option<&str>, availability_zone_change_protection: bool, ) -> Result<(&Firewall, FirewallStatus), NfwError>

Source

pub fn create_tls_inspection_configuration( &mut self, name: &str, body: Value, description: Option<&str>, tags: Vec<(String, String)>, account_id: &str, region: &str, ) -> Result<&TlsInspectionConfiguration, NfwError>

Source

pub fn describe_tls_inspection_configuration( &self, name: Option<&str>, arn: Option<&str>, ) -> Result<&TlsInspectionConfiguration, NfwError>

Source

pub fn delete_tls_inspection_configuration( &mut self, name: Option<&str>, arn: Option<&str>, ) -> Result<TlsInspectionConfiguration, NfwError>

Source

pub fn update_tls_inspection_configuration( &mut self, name: Option<&str>, arn: Option<&str>, body: Value, description: Option<&str>, ) -> Result<&TlsInspectionConfiguration, NfwError>

Source

pub fn list_tls_inspection_configurations( &self, ) -> Vec<TlsInspectionConfigurationMetadata>

Source

pub fn create_vpc_endpoint_association( &mut self, firewall_arn: &str, vpc_id: &str, subnet_id: &str, description: Option<&str>, tags: Vec<(String, String)>, account_id: &str, region: &str, ) -> Result<&VpcEndpointAssociation, NfwError>

Source

pub fn describe_vpc_endpoint_association( &self, arn: &str, ) -> Result<&VpcEndpointAssociation, NfwError>

Source

pub fn delete_vpc_endpoint_association( &mut self, arn: &str, ) -> Result<VpcEndpointAssociation, NfwError>

Source

pub fn list_vpc_endpoint_associations( &self, firewall_arn: Option<&str>, ) -> Vec<&VpcEndpointAssociation>

Source

pub fn associate_availability_zones( &mut self, firewall_name: Option<&str>, firewall_arn: Option<&str>, zones: Vec<AvailabilityZoneMapping>, ) -> Result<(&Firewall, Vec<AvailabilityZoneMapping>), NfwError>

Source

pub fn disassociate_availability_zones( &mut self, firewall_name: Option<&str>, firewall_arn: Option<&str>, zones: Vec<&str>, ) -> Result<(&Firewall, Vec<AvailabilityZoneMapping>), NfwError>

Source

pub fn accept_transit_gateway_attachment( &mut self, transit_gateway_attachment_id: &str, ) -> Result<&TransitGatewayAttachment, NfwError>

Source

pub fn reject_transit_gateway_attachment( &mut self, transit_gateway_attachment_id: &str, ) -> Result<&TransitGatewayAttachment, NfwError>

Source

pub fn delete_transit_gateway_attachment( &mut self, transit_gateway_attachment_id: &str, ) -> Result<TransitGatewayAttachment, NfwError>

Source

pub fn create_proxy( &mut self, proxy_name: &str, nat_gateway_id: &str, proxy_configuration_arn: Option<&str>, proxy_configuration_name: Option<&str>, tags: Vec<(String, String)>, body: Value, account_id: &str, region: &str, ) -> Result<&NfwProxy, NfwError>

Source

pub fn describe_proxy( &self, proxy_name: Option<&str>, proxy_arn: Option<&str>, ) -> Result<&NfwProxy, NfwError>

Source

pub fn delete_proxy( &mut self, proxy_name: Option<&str>, proxy_arn: Option<&str>, ) -> Result<NfwProxy, NfwError>

Source

pub fn list_proxies(&self) -> Vec<&NfwProxy>

Source

pub fn update_proxy( &mut self, proxy_name: Option<&str>, proxy_arn: Option<&str>, body: Value, ) -> Result<&NfwProxy, NfwError>

Source

pub fn create_proxy_configuration( &mut self, name: &str, description: Option<&str>, tags: Vec<(String, String)>, body: Value, account_id: &str, region: &str, ) -> Result<&NfwProxyConfiguration, NfwError>

Source

pub fn describe_proxy_configuration( &self, name: Option<&str>, arn: Option<&str>, ) -> Result<&NfwProxyConfiguration, NfwError>

Source

pub fn delete_proxy_configuration( &mut self, name: Option<&str>, arn: Option<&str>, ) -> Result<NfwProxyConfiguration, NfwError>

Source

pub fn list_proxy_configurations(&self) -> Vec<&NfwProxyConfiguration>

Source

pub fn update_proxy_configuration( &mut self, name: Option<&str>, arn: Option<&str>, body: Value, ) -> Result<&NfwProxyConfiguration, NfwError>

Source

pub fn create_proxy_rule_group( &mut self, name: &str, description: Option<&str>, tags: Vec<(String, String)>, body: Value, account_id: &str, region: &str, ) -> Result<&NfwProxyRuleGroup, NfwError>

Source

pub fn describe_proxy_rule_group( &self, name: Option<&str>, arn: Option<&str>, ) -> Result<&NfwProxyRuleGroup, NfwError>

Source

pub fn delete_proxy_rule_group( &mut self, name: Option<&str>, arn: Option<&str>, ) -> Result<NfwProxyRuleGroup, NfwError>

Source

pub fn list_proxy_rule_groups(&self) -> Vec<&NfwProxyRuleGroup>

Source

pub fn create_flow_operation( &mut self, firewall_arn: &str, flow_operation_type: &str, body: Value, ) -> &FlowOperation

Source

pub fn describe_flow_operation( &self, flow_operation_id: &str, ) -> Result<&FlowOperation, NfwError>

Source

pub fn list_flow_operations(&self, firewall_arn: &str) -> Vec<&FlowOperation>

Source

pub fn start_analysis_report( &mut self, firewall_arn: &str, analysis_type: &str, ) -> &AnalysisReport

Source

pub fn list_analysis_reports(&self, firewall_arn: &str) -> Vec<&AnalysisReport>

Source

pub fn get_analysis_report( &self, analysis_report_id: &str, ) -> Result<&AnalysisReport, NfwError>

Source

pub fn update_analysis_settings( &mut self, firewall_name: Option<&str>, firewall_arn: Option<&str>, enabled_analysis_types: Vec<String>, ) -> Result<(&Firewall, Vec<String>), NfwError>

Source

pub fn update_encryption_configuration( &mut self, firewall_name: Option<&str>, firewall_arn: Option<&str>, config: EncryptionConfig, ) -> Result<(&Firewall, EncryptionConfig), NfwError>

Trait Implementations§

Source§

impl Debug for NetworkFirewallState

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for NetworkFirewallState

Source§

fn default() -> NetworkFirewallState

Returns the “default value” for a type. Read more
Source§

impl From<&NetworkFirewallState> for NetworkFirewallStateView

Source§

fn from(state: &NetworkFirewallState) -> Self

Converts to this type from the input type.
Source§

impl From<NetworkFirewallStateView> for NetworkFirewallState

Source§

fn from(view: NetworkFirewallStateView) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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 more
Source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

Source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more