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
impl NetworkFirewallState
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>
pub fn describe_firewall( &self, firewall_name: Option<&str>, firewall_arn: Option<&str>, ) -> Result<(&Firewall, FirewallStatus), NfwError>
pub fn delete_firewall( &mut self, firewall_name: Option<&str>, firewall_arn: Option<&str>, ) -> Result<(Firewall, FirewallStatus), NfwError>
pub fn list_firewalls(&self) -> Vec<FirewallMetadata>
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>
pub fn describe_rule_group( &self, rule_group_name: Option<&str>, rule_group_arn: Option<&str>, ) -> Result<&RuleGroup, NfwError>
pub fn delete_rule_group( &mut self, rule_group_name: Option<&str>, rule_group_arn: Option<&str>, ) -> Result<RuleGroup, NfwError>
pub fn list_rule_groups(&self) -> Vec<RuleGroupMetadata>
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>
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>
pub fn describe_firewall_policy( &self, firewall_policy_name: Option<&str>, firewall_policy_arn: Option<&str>, ) -> Result<&FirewallPolicy, NfwError>
pub fn delete_firewall_policy( &mut self, firewall_policy_name: Option<&str>, firewall_policy_arn: Option<&str>, ) -> Result<FirewallPolicy, NfwError>
pub fn list_firewall_policies(&self) -> Vec<FirewallPolicyMetadata>
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>
pub fn tag_resource( &mut self, resource_arn: &str, tags: Vec<(String, String)>, ) -> Result<(), NfwError>
pub fn untag_resource( &mut self, resource_arn: &str, tag_keys: Vec<&str>, ) -> Result<(), NfwError>
pub fn put_resource_policy( &mut self, resource_arn: &str, policy: &str, ) -> Result<(), NfwError>
pub fn describe_resource_policy( &self, resource_arn: &str, ) -> Result<&str, NfwError>
pub fn delete_resource_policy( &mut self, resource_arn: &str, ) -> Result<(), NfwError>
pub fn update_firewall_description( &mut self, firewall_name: Option<&str>, firewall_arn: Option<&str>, description: Option<&str>, ) -> Result<(&Firewall, FirewallStatus), NfwError>
pub fn update_firewall_delete_protection( &mut self, firewall_name: Option<&str>, firewall_arn: Option<&str>, delete_protection: bool, ) -> Result<(&Firewall, FirewallStatus), NfwError>
pub fn associate_firewall_policy( &mut self, firewall_name: Option<&str>, firewall_arn: Option<&str>, firewall_policy_arn: &str, ) -> Result<(&Firewall, FirewallStatus), NfwError>
pub fn associate_subnets( &mut self, firewall_name: Option<&str>, firewall_arn: Option<&str>, subnet_mappings: Vec<SubnetMapping>, ) -> Result<(&Firewall, FirewallStatus), NfwError>
pub fn disassociate_subnets( &mut self, firewall_name: Option<&str>, firewall_arn: Option<&str>, subnet_ids: Vec<&str>, ) -> Result<(&Firewall, FirewallStatus), NfwError>
pub fn update_subnet_change_protection( &mut self, firewall_name: Option<&str>, firewall_arn: Option<&str>, subnet_change_protection: bool, ) -> Result<(&Firewall, FirewallStatus), NfwError>
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>
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>
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>
pub fn describe_tls_inspection_configuration( &self, name: Option<&str>, arn: Option<&str>, ) -> Result<&TlsInspectionConfiguration, NfwError>
pub fn delete_tls_inspection_configuration( &mut self, name: Option<&str>, arn: Option<&str>, ) -> Result<TlsInspectionConfiguration, NfwError>
pub fn update_tls_inspection_configuration( &mut self, name: Option<&str>, arn: Option<&str>, body: Value, description: Option<&str>, ) -> Result<&TlsInspectionConfiguration, NfwError>
pub fn list_tls_inspection_configurations( &self, ) -> Vec<TlsInspectionConfigurationMetadata>
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>
pub fn describe_vpc_endpoint_association( &self, arn: &str, ) -> Result<&VpcEndpointAssociation, NfwError>
pub fn delete_vpc_endpoint_association( &mut self, arn: &str, ) -> Result<VpcEndpointAssociation, NfwError>
pub fn list_vpc_endpoint_associations( &self, firewall_arn: Option<&str>, ) -> Vec<&VpcEndpointAssociation>
pub fn associate_availability_zones( &mut self, firewall_name: Option<&str>, firewall_arn: Option<&str>, zones: Vec<AvailabilityZoneMapping>, ) -> Result<(&Firewall, Vec<AvailabilityZoneMapping>), NfwError>
pub fn disassociate_availability_zones( &mut self, firewall_name: Option<&str>, firewall_arn: Option<&str>, zones: Vec<&str>, ) -> Result<(&Firewall, Vec<AvailabilityZoneMapping>), NfwError>
pub fn accept_transit_gateway_attachment( &mut self, transit_gateway_attachment_id: &str, ) -> Result<&TransitGatewayAttachment, NfwError>
pub fn reject_transit_gateway_attachment( &mut self, transit_gateway_attachment_id: &str, ) -> Result<&TransitGatewayAttachment, NfwError>
pub fn delete_transit_gateway_attachment( &mut self, transit_gateway_attachment_id: &str, ) -> Result<TransitGatewayAttachment, NfwError>
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>
pub fn describe_proxy( &self, proxy_name: Option<&str>, proxy_arn: Option<&str>, ) -> Result<&NfwProxy, NfwError>
pub fn delete_proxy( &mut self, proxy_name: Option<&str>, proxy_arn: Option<&str>, ) -> Result<NfwProxy, NfwError>
pub fn list_proxies(&self) -> Vec<&NfwProxy>
pub fn update_proxy( &mut self, proxy_name: Option<&str>, proxy_arn: Option<&str>, body: Value, ) -> Result<&NfwProxy, NfwError>
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>
pub fn describe_proxy_configuration( &self, name: Option<&str>, arn: Option<&str>, ) -> Result<&NfwProxyConfiguration, NfwError>
pub fn delete_proxy_configuration( &mut self, name: Option<&str>, arn: Option<&str>, ) -> Result<NfwProxyConfiguration, NfwError>
pub fn list_proxy_configurations(&self) -> Vec<&NfwProxyConfiguration>
pub fn update_proxy_configuration( &mut self, name: Option<&str>, arn: Option<&str>, body: Value, ) -> Result<&NfwProxyConfiguration, NfwError>
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>
pub fn describe_proxy_rule_group( &self, name: Option<&str>, arn: Option<&str>, ) -> Result<&NfwProxyRuleGroup, NfwError>
pub fn delete_proxy_rule_group( &mut self, name: Option<&str>, arn: Option<&str>, ) -> Result<NfwProxyRuleGroup, NfwError>
pub fn list_proxy_rule_groups(&self) -> Vec<&NfwProxyRuleGroup>
pub fn create_flow_operation( &mut self, firewall_arn: &str, flow_operation_type: &str, body: Value, ) -> &FlowOperation
pub fn describe_flow_operation( &self, flow_operation_id: &str, ) -> Result<&FlowOperation, NfwError>
pub fn list_flow_operations(&self, firewall_arn: &str) -> Vec<&FlowOperation>
pub fn start_analysis_report( &mut self, firewall_arn: &str, analysis_type: &str, ) -> &AnalysisReport
pub fn list_analysis_reports(&self, firewall_arn: &str) -> Vec<&AnalysisReport>
pub fn get_analysis_report( &self, analysis_report_id: &str, ) -> Result<&AnalysisReport, NfwError>
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>
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
impl Debug for NetworkFirewallState
Source§impl Default for NetworkFirewallState
impl Default for NetworkFirewallState
Source§fn default() -> NetworkFirewallState
fn default() -> NetworkFirewallState
Returns the “default value” for a type. Read more
Source§impl From<&NetworkFirewallState> for NetworkFirewallStateView
impl From<&NetworkFirewallState> for NetworkFirewallStateView
Source§fn from(state: &NetworkFirewallState) -> Self
fn from(state: &NetworkFirewallState) -> Self
Converts to this type from the input type.
Source§impl From<NetworkFirewallStateView> for NetworkFirewallState
impl From<NetworkFirewallStateView> for NetworkFirewallState
Source§fn from(view: NetworkFirewallStateView) -> Self
fn from(view: NetworkFirewallStateView) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NetworkFirewallState
impl RefUnwindSafe for NetworkFirewallState
impl Send for NetworkFirewallState
impl Sync for NetworkFirewallState
impl Unpin for NetworkFirewallState
impl UnsafeUnpin for NetworkFirewallState
impl UnwindSafe for NetworkFirewallState
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
Mutably borrows from an owned value. Read more
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>
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 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>
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 moreCreates a shared type from an unshared type.