Struct aws_sdk_networkfirewall::Client
source · [−]pub struct Client { /* private fields */ }
Expand description
Client for AWS Network Firewall
Client for invoking operations on AWS Network Firewall. Each operation on AWS Network Firewall is a method on this
this struct. .send()
MUST be invoked on the generated operations to dispatch the request to the service.
Examples
Constructing a client and invoking an operation
// create a shared configuration. This can be used & shared between multiple service clients.
let shared_config = aws_config::load_from_env().await;
let client = aws_sdk_networkfirewall::Client::new(&shared_config);
// invoke an operation
/* let rsp = client
.<operation_name>().
.<param>("some value")
.send().await; */
Constructing a client with custom configuration
use aws_config::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_networkfirewall::config::Builder::from(&shared_config)
.retry_config(RetryConfig::disabled())
.build();
let client = aws_sdk_networkfirewall::Client::from_conf(config);
Implementations
sourceimpl Client
impl Client
sourcepub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
pub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
Creates a client with the given service configuration.
sourceimpl Client
impl Client
sourcepub fn associate_firewall_policy(&self) -> AssociateFirewallPolicy
pub fn associate_firewall_policy(&self) -> AssociateFirewallPolicy
Constructs a fluent builder for the AssociateFirewallPolicy
operation.
- The fluent builder is configurable:
update_token(impl Into<String>)
/set_update_token(Option<String>)
:An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.
To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.
To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn’t changed since you last retrieved it. If it has changed, the operation fails with an
InvalidTokenException
. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.firewall_arn(impl Into<String>)
/set_firewall_arn(Option<String>)
:The Amazon Resource Name (ARN) of the firewall.
You must specify the ARN or the name, and you can specify both.
firewall_name(impl Into<String>)
/set_firewall_name(Option<String>)
:The descriptive name of the firewall. You can’t change the name of a firewall after you create it.
You must specify the ARN or the name, and you can specify both.
firewall_policy_arn(impl Into<String>)
/set_firewall_policy_arn(Option<String>)
:The Amazon Resource Name (ARN) of the firewall policy.
- On success, responds with
AssociateFirewallPolicyOutput
with field(s):firewall_arn(Option<String>)
:The Amazon Resource Name (ARN) of the firewall.
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 firewall policy.
update_token(Option<String>)
:An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.
To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.
To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn’t changed since you last retrieved it. If it has changed, the operation fails with an
InvalidTokenException
. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.
- On failure, responds with
SdkError<AssociateFirewallPolicyError>
sourcepub fn associate_subnets(&self) -> AssociateSubnets
pub fn associate_subnets(&self) -> AssociateSubnets
Constructs a fluent builder for the AssociateSubnets
operation.
- The fluent builder is configurable:
update_token(impl Into<String>)
/set_update_token(Option<String>)
:An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.
To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.
To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn’t changed since you last retrieved it. If it has changed, the operation fails with an
InvalidTokenException
. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.firewall_arn(impl Into<String>)
/set_firewall_arn(Option<String>)
:The Amazon Resource Name (ARN) of the firewall.
You must specify the ARN or the name, and you can specify both.
firewall_name(impl Into<String>)
/set_firewall_name(Option<String>)
:The descriptive name of the firewall. You can’t change the name of a firewall after you create it.
You must specify the ARN or the name, and you can specify both.
subnet_mappings(Vec<SubnetMapping>)
/set_subnet_mappings(Option<Vec<SubnetMapping>>)
:The IDs of the subnets that you want to associate with the firewall.
- On success, responds with
AssociateSubnetsOutput
with field(s):firewall_arn(Option<String>)
:The Amazon Resource Name (ARN) of the firewall.
firewall_name(Option<String>)
:The descriptive name of the firewall. You can’t change the name of a firewall after you create it.
subnet_mappings(Option<Vec<SubnetMapping>>)
:The IDs of the subnets that are associated with the firewall.
update_token(Option<String>)
:An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.
To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.
To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn’t changed since you last retrieved it. If it has changed, the operation fails with an
InvalidTokenException
. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.
- On failure, responds with
SdkError<AssociateSubnetsError>
sourcepub fn create_firewall(&self) -> CreateFirewall
pub fn create_firewall(&self) -> CreateFirewall
Constructs a fluent builder for the CreateFirewall
operation.
- The fluent builder is configurable:
firewall_name(impl Into<String>)
/set_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(impl Into<String>)
/set_firewall_policy_arn(Option<String>)
:The Amazon Resource Name (ARN) of the
FirewallPolicy
that you want to use for the firewall.vpc_id(impl Into<String>)
/set_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(Vec<SubnetMapping>)
/set_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(bool)
/set_delete_protection(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 toTRUE
.subnet_change_protection(bool)
/set_subnet_change_protection(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(bool)
/set_firewall_policy_change_protection(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(impl Into<String>)
/set_description(Option<String>)
:A description of the firewall.
tags(Vec<Tag>)
/set_tags(Option<Vec<Tag>>)
:The key:value pairs to associate with the resource.
- On success, responds with
CreateFirewallOutput
with field(s):firewall(Option<Firewall>)
:The configuration settings for the firewall. These settings include the firewall policy and the subnets in your VPC to use for the firewall endpoints.
firewall_status(Option<FirewallStatus>)
:Detailed information about the current status of a
Firewall
. You can retrieve this for a firewall by callingDescribeFirewall
and providing the firewall name and ARN.
- On failure, responds with
SdkError<CreateFirewallError>
sourcepub fn create_firewall_policy(&self) -> CreateFirewallPolicy
pub fn create_firewall_policy(&self) -> CreateFirewallPolicy
Constructs a fluent builder for the CreateFirewallPolicy
operation.
- The fluent builder is configurable:
firewall_policy_name(impl Into<String>)
/set_firewall_policy_name(Option<String>)
:The descriptive name of the firewall policy. You can’t change the name of a firewall policy after you create it.
firewall_policy(FirewallPolicy)
/set_firewall_policy(Option<FirewallPolicy>)
:The rule groups and policy actions to use in the firewall policy.
description(impl Into<String>)
/set_description(Option<String>)
:A description of the firewall policy.
tags(Vec<Tag>)
/set_tags(Option<Vec<Tag>>)
:The key:value pairs to associate with the resource.
dry_run(bool)
/set_dry_run(bool)
:Indicates whether you want Network Firewall to just check the validity of the request, rather than run the request.
If set to
TRUE
, Network Firewall checks whether the request can run successfully, but doesn’t actually make the requested changes. The call returns the value that the request would return if you ran it with dry run set toFALSE
, but doesn’t make additions or changes to your resources. This option allows you to make sure that you have the required permissions to run the request and that your request parameters are valid.If set to
FALSE
, Network Firewall makes the requested changes to your resources.
- On success, responds with
CreateFirewallPolicyOutput
with field(s):update_token(Option<String>)
:A token used for optimistic locking. Network Firewall returns a token to your requests that access the firewall policy. The token marks the state of the policy resource at the time of the request.
To make changes to the policy, you provide the token in your request. Network Firewall uses the token to ensure that the policy hasn’t changed since you last retrieved it. If it has changed, the operation fails with an
InvalidTokenException
. If this happens, retrieve the firewall policy again to get a current copy of it with current token. Reapply your changes as needed, then try the operation again using the new token.firewall_policy_response(Option<FirewallPolicyResponse>)
:The high-level properties of a firewall policy. This, along with the
FirewallPolicy
, define the policy. You can retrieve all objects for a firewall policy by callingDescribeFirewallPolicy
.
- On failure, responds with
SdkError<CreateFirewallPolicyError>
sourcepub fn create_rule_group(&self) -> CreateRuleGroup
pub fn create_rule_group(&self) -> CreateRuleGroup
Constructs a fluent builder for the CreateRuleGroup
operation.
- The fluent builder is configurable:
rule_group_name(impl Into<String>)
/set_rule_group_name(Option<String>)
:The descriptive name of the rule group. You can’t change the name of a rule group after you create it.
rule_group(RuleGroup)
/set_rule_group(Option<RuleGroup>)
:An object that defines the rule group rules.
You must provide either this rule group setting or a
Rules
setting, but not both.rules(impl Into<String>)
/set_rules(Option<String>)
:A string containing stateful rule group rules specifications in Suricata flat format, with one rule per line. Use this to import your existing Suricata compatible rule groups.
You must provide either this rules setting or a populated
RuleGroup
setting, but not both.You can provide your rule group specification in Suricata flat format through this setting when you create or update your rule group. The call response returns a
RuleGroup
object that Network Firewall has populated from your string.r#type(RuleGroupType)
/set_type(Option<RuleGroupType>)
:Indicates whether the rule group is stateless or stateful. If the rule group is stateless, it contains stateless rules. If it is stateful, it contains stateful rules.
description(impl Into<String>)
/set_description(Option<String>)
:A description of the rule group.
capacity(i32)
/set_capacity(Option<i32>)
:The maximum operating resources that this rule group can use. Rule group capacity is fixed at creation. When you update a rule group, you are limited to this capacity. When you reference a rule group from a firewall policy, Network Firewall reserves this capacity for the rule group.
You can retrieve the capacity that would be required for a rule group before you create the rule group by calling
CreateRuleGroup
withDryRun
set toTRUE
.You can’t change or exceed this capacity when you update the rule group, so leave room for your rule group to grow.
Capacity for a stateless rule group
For a stateless rule group, the capacity required is the sum of the capacity requirements of the individual rules that you expect to have in the rule group.
To calculate the capacity requirement of a single rule, multiply the capacity requirement values of each of the rule’s match settings:
-
A match setting with no criteria specified has a value of 1.
-
A match setting with
Any
specified has a value of 1. -
All other match settings have a value equal to the number of elements provided in the setting. For example, a protocol setting [“UDP”] and a source setting [“10.0.0.0/24”] each have a value of 1. A protocol setting [“UDP”,“TCP”] has a value of 2. A source setting [“10.0.0.0/24”,“10.0.0.1/24”,“10.0.0.2/24”] has a value of 3.
A rule with no criteria specified in any of its match settings has a capacity requirement of 1. A rule with protocol setting [“UDP”,“TCP”], source setting [“10.0.0.0/24”,“10.0.0.1/24”,“10.0.0.2/24”], and a single specification or no specification for each of the other match settings has a capacity requirement of 6.
Capacity for a stateful rule group
For a stateful rule group, the minimum capacity required is the number of individual rules that you expect to have in the rule group.
-
tags(Vec<Tag>)
/set_tags(Option<Vec<Tag>>)
:The key:value pairs to associate with the resource.
dry_run(bool)
/set_dry_run(bool)
:Indicates whether you want Network Firewall to just check the validity of the request, rather than run the request.
If set to
TRUE
, Network Firewall checks whether the request can run successfully, but doesn’t actually make the requested changes. The call returns the value that the request would return if you ran it with dry run set toFALSE
, but doesn’t make additions or changes to your resources. This option allows you to make sure that you have the required permissions to run the request and that your request parameters are valid.If set to
FALSE
, Network Firewall makes the requested changes to your resources.
- On success, responds with
CreateRuleGroupOutput
with field(s):update_token(Option<String>)
:A token used for optimistic locking. Network Firewall returns a token to your requests that access the rule group. The token marks the state of the rule group resource at the time of the request.
To make changes to the rule group, you provide the token in your request. Network Firewall uses the token to ensure that the rule group hasn’t changed since you last retrieved it. If it has changed, the operation fails with an
InvalidTokenException
. If this happens, retrieve the rule group again to get a current copy of it with a current token. Reapply your changes as needed, then try the operation again using the new token.rule_group_response(Option<RuleGroupResponse>)
:The high-level properties of a rule group. This, along with the
RuleGroup
, define the rule group. You can retrieve all objects for a rule group by callingDescribeRuleGroup
.
- On failure, responds with
SdkError<CreateRuleGroupError>
sourcepub fn delete_firewall(&self) -> DeleteFirewall
pub fn delete_firewall(&self) -> DeleteFirewall
Constructs a fluent builder for the DeleteFirewall
operation.
- The fluent builder is configurable:
firewall_name(impl Into<String>)
/set_firewall_name(Option<String>)
:The descriptive name of the firewall. You can’t change the name of a firewall after you create it.
You must specify the ARN or the name, and you can specify both.
firewall_arn(impl Into<String>)
/set_firewall_arn(Option<String>)
:The Amazon Resource Name (ARN) of the firewall.
You must specify the ARN or the name, and you can specify both.
- On success, responds with
DeleteFirewallOutput
with field(s):firewall(Option<Firewall>)
:The firewall defines the configuration settings for an AWS Network Firewall firewall. These settings include the firewall policy, the subnets in your VPC to use for the firewall endpoints, and any tags that are attached to the firewall AWS resource.
The status of the firewall, for example whether it’s ready to filter network traffic, is provided in the corresponding
FirewallStatus
. You can retrieve both objects by callingDescribeFirewall
.firewall_status(Option<FirewallStatus>)
:Detailed information about the current status of a
Firewall
. You can retrieve this for a firewall by callingDescribeFirewall
and providing the firewall name and ARN.
- On failure, responds with
SdkError<DeleteFirewallError>
sourcepub fn delete_firewall_policy(&self) -> DeleteFirewallPolicy
pub fn delete_firewall_policy(&self) -> DeleteFirewallPolicy
Constructs a fluent builder for the DeleteFirewallPolicy
operation.
- The fluent builder is configurable:
firewall_policy_name(impl Into<String>)
/set_firewall_policy_name(Option<String>)
:The descriptive name of the firewall policy. You can’t change the name of a firewall policy after you create it.
You must specify the ARN or the name, and you can specify both.
firewall_policy_arn(impl Into<String>)
/set_firewall_policy_arn(Option<String>)
:The Amazon Resource Name (ARN) of the firewall policy.
You must specify the ARN or the name, and you can specify both.
- On success, responds with
DeleteFirewallPolicyOutput
with field(s):firewall_policy_response(Option<FirewallPolicyResponse>)
:The object containing the definition of the
FirewallPolicyResponse
that you asked to delete.
- On failure, responds with
SdkError<DeleteFirewallPolicyError>
sourcepub fn delete_resource_policy(&self) -> DeleteResourcePolicy
pub fn delete_resource_policy(&self) -> DeleteResourcePolicy
Constructs a fluent builder for the DeleteResourcePolicy
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) of the rule group or firewall policy whose resource policy you want to delete.
- On success, responds with
DeleteResourcePolicyOutput
- On failure, responds with
SdkError<DeleteResourcePolicyError>
sourcepub fn delete_rule_group(&self) -> DeleteRuleGroup
pub fn delete_rule_group(&self) -> DeleteRuleGroup
Constructs a fluent builder for the DeleteRuleGroup
operation.
- The fluent builder is configurable:
rule_group_name(impl Into<String>)
/set_rule_group_name(Option<String>)
:The descriptive name of the rule group. You can’t change the name of a rule group after you create it.
You must specify the ARN or the name, and you can specify both.
rule_group_arn(impl Into<String>)
/set_rule_group_arn(Option<String>)
:The Amazon Resource Name (ARN) of the rule group.
You must specify the ARN or the name, and you can specify both.
r#type(RuleGroupType)
/set_type(Option<RuleGroupType>)
:Indicates whether the rule group is stateless or stateful. If the rule group is stateless, it contains stateless rules. If it is stateful, it contains stateful rules.
This setting is required for requests that do not include the
RuleGroupARN
.
- On success, responds with
DeleteRuleGroupOutput
with field(s):rule_group_response(Option<RuleGroupResponse>)
:The high-level properties of a rule group. This, along with the
RuleGroup
, define the rule group. You can retrieve all objects for a rule group by callingDescribeRuleGroup
.
- On failure, responds with
SdkError<DeleteRuleGroupError>
sourcepub fn describe_firewall(&self) -> DescribeFirewall
pub fn describe_firewall(&self) -> DescribeFirewall
Constructs a fluent builder for the DescribeFirewall
operation.
- The fluent builder is configurable:
firewall_name(impl Into<String>)
/set_firewall_name(Option<String>)
:The descriptive name of the firewall. You can’t change the name of a firewall after you create it.
You must specify the ARN or the name, and you can specify both.
firewall_arn(impl Into<String>)
/set_firewall_arn(Option<String>)
:The Amazon Resource Name (ARN) of the firewall.
You must specify the ARN or the name, and you can specify both.
- On success, responds with
DescribeFirewallOutput
with field(s):update_token(Option<String>)
:An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.
To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.
To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn’t changed since you last retrieved it. If it has changed, the operation fails with an
InvalidTokenException
. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.firewall(Option<Firewall>)
:The configuration settings for the firewall. These settings include the firewall policy and the subnets in your VPC to use for the firewall endpoints.
firewall_status(Option<FirewallStatus>)
:Detailed information about the current status of a
Firewall
. You can retrieve this for a firewall by callingDescribeFirewall
and providing the firewall name and ARN.
- On failure, responds with
SdkError<DescribeFirewallError>
sourcepub fn describe_firewall_policy(&self) -> DescribeFirewallPolicy
pub fn describe_firewall_policy(&self) -> DescribeFirewallPolicy
Constructs a fluent builder for the DescribeFirewallPolicy
operation.
- The fluent builder is configurable:
firewall_policy_name(impl Into<String>)
/set_firewall_policy_name(Option<String>)
:The descriptive name of the firewall policy. You can’t change the name of a firewall policy after you create it.
You must specify the ARN or the name, and you can specify both.
firewall_policy_arn(impl Into<String>)
/set_firewall_policy_arn(Option<String>)
:The Amazon Resource Name (ARN) of the firewall policy.
You must specify the ARN or the name, and you can specify both.
- On success, responds with
DescribeFirewallPolicyOutput
with field(s):update_token(Option<String>)
:A token used for optimistic locking. Network Firewall returns a token to your requests that access the firewall policy. The token marks the state of the policy resource at the time of the request.
To make changes to the policy, you provide the token in your request. Network Firewall uses the token to ensure that the policy hasn’t changed since you last retrieved it. If it has changed, the operation fails with an
InvalidTokenException
. If this happens, retrieve the firewall policy again to get a current copy of it with current token. Reapply your changes as needed, then try the operation again using the new token.firewall_policy_response(Option<FirewallPolicyResponse>)
:The high-level properties of a firewall policy. This, along with the
FirewallPolicy
, define the policy. You can retrieve all objects for a firewall policy by callingDescribeFirewallPolicy
.firewall_policy(Option<FirewallPolicy>)
:The policy for the specified firewall policy.
- On failure, responds with
SdkError<DescribeFirewallPolicyError>
sourcepub fn describe_logging_configuration(&self) -> DescribeLoggingConfiguration
pub fn describe_logging_configuration(&self) -> DescribeLoggingConfiguration
Constructs a fluent builder for the DescribeLoggingConfiguration
operation.
- The fluent builder is configurable:
firewall_arn(impl Into<String>)
/set_firewall_arn(Option<String>)
:The Amazon Resource Name (ARN) of the firewall.
You must specify the ARN or the name, and you can specify both.
firewall_name(impl Into<String>)
/set_firewall_name(Option<String>)
:The descriptive name of the firewall. You can’t change the name of a firewall after you create it.
You must specify the ARN or the name, and you can specify both.
- On success, responds with
DescribeLoggingConfigurationOutput
with field(s):firewall_arn(Option<String>)
:The Amazon Resource Name (ARN) of the firewall.
logging_configuration(Option<LoggingConfiguration>)
:Defines how AWS Network Firewall performs logging for a
Firewall
.
- On failure, responds with
SdkError<DescribeLoggingConfigurationError>
sourcepub fn describe_resource_policy(&self) -> DescribeResourcePolicy
pub fn describe_resource_policy(&self) -> DescribeResourcePolicy
Constructs a fluent builder for the DescribeResourcePolicy
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) of the rule group or firewall policy whose resource policy you want to retrieve.
- On success, responds with
DescribeResourcePolicyOutput
with field(s):policy(Option<String>)
:The AWS Identity and Access Management policy for the resource.
- On failure, responds with
SdkError<DescribeResourcePolicyError>
sourcepub fn describe_rule_group(&self) -> DescribeRuleGroup
pub fn describe_rule_group(&self) -> DescribeRuleGroup
Constructs a fluent builder for the DescribeRuleGroup
operation.
- The fluent builder is configurable:
rule_group_name(impl Into<String>)
/set_rule_group_name(Option<String>)
:The descriptive name of the rule group. You can’t change the name of a rule group after you create it.
You must specify the ARN or the name, and you can specify both.
rule_group_arn(impl Into<String>)
/set_rule_group_arn(Option<String>)
:The Amazon Resource Name (ARN) of the rule group.
You must specify the ARN or the name, and you can specify both.
r#type(RuleGroupType)
/set_type(Option<RuleGroupType>)
:Indicates whether the rule group is stateless or stateful. If the rule group is stateless, it contains stateless rules. If it is stateful, it contains stateful rules.
This setting is required for requests that do not include the
RuleGroupARN
.
- On success, responds with
DescribeRuleGroupOutput
with field(s):update_token(Option<String>)
:A token used for optimistic locking. Network Firewall returns a token to your requests that access the rule group. The token marks the state of the rule group resource at the time of the request.
To make changes to the rule group, you provide the token in your request. Network Firewall uses the token to ensure that the rule group hasn’t changed since you last retrieved it. If it has changed, the operation fails with an
InvalidTokenException
. If this happens, retrieve the rule group again to get a current copy of it with a current token. Reapply your changes as needed, then try the operation again using the new token.rule_group(Option<RuleGroup>)
:The object that defines the rules in a rule group. This, along with
RuleGroupResponse
, define the rule group. You can retrieve all objects for a rule group by callingDescribeRuleGroup
.AWS Network Firewall uses a rule group to inspect and control network traffic. You define stateless rule groups to inspect individual packets and you define stateful rule groups to inspect packets in the context of their traffic flow.
To use a rule group, you include it by reference in an Network Firewall firewall policy, then you use the policy in a firewall. You can reference a rule group from more than one firewall policy, and you can use a firewall policy in more than one firewall.
rule_group_response(Option<RuleGroupResponse>)
:The high-level properties of a rule group. This, along with the
RuleGroup
, define the rule group. You can retrieve all objects for a rule group by callingDescribeRuleGroup
.
- On failure, responds with
SdkError<DescribeRuleGroupError>
sourcepub fn describe_rule_group_metadata(&self) -> DescribeRuleGroupMetadata
pub fn describe_rule_group_metadata(&self) -> DescribeRuleGroupMetadata
Constructs a fluent builder for the DescribeRuleGroupMetadata
operation.
- The fluent builder is configurable:
rule_group_name(impl Into<String>)
/set_rule_group_name(Option<String>)
:The descriptive name of the rule group. You can’t change the name of a rule group after you create it.
You must specify the ARN or the name, and you can specify both.
rule_group_arn(impl Into<String>)
/set_rule_group_arn(Option<String>)
:The descriptive name of the rule group. You can’t change the name of a rule group after you create it.
You must specify the ARN or the name, and you can specify both.
r#type(RuleGroupType)
/set_type(Option<RuleGroupType>)
:Indicates whether the rule group is stateless or stateful. If the rule group is stateless, it contains stateless rules. If it is stateful, it contains stateful rules.
This setting is required for requests that do not include the
RuleGroupARN
.
- On success, responds with
DescribeRuleGroupMetadataOutput
with field(s):rule_group_arn(Option<String>)
:The descriptive name of the rule group. You can’t change the name of a rule group after you create it.
You must specify the ARN or the name, and you can specify both.
rule_group_name(Option<String>)
:The descriptive name of the rule group. You can’t change the name of a rule group after you create it.
You must specify the ARN or the name, and you can specify both.
description(Option<String>)
:Returns the metadata objects for the specified rule group.
r#type(Option<RuleGroupType>)
:Indicates whether the rule group is stateless or stateful. If the rule group is stateless, it contains stateless rules. If it is stateful, it contains stateful rules.
This setting is required for requests that do not include the
RuleGroupARN
.capacity(Option<i32>)
:The maximum operating resources that this rule group can use. Rule group capacity is fixed at creation. When you update a rule group, you are limited to this capacity. When you reference a rule group from a firewall policy, Network Firewall reserves this capacity for the rule group.
You can retrieve the capacity that would be required for a rule group before you create the rule group by calling
CreateRuleGroup
withDryRun
set toTRUE
.stateful_rule_options(Option<StatefulRuleOptions>)
:Additional options governing how Network Firewall handles the rule group. You can only use these for stateful rule groups.
- On failure, responds with
SdkError<DescribeRuleGroupMetadataError>
sourcepub fn disassociate_subnets(&self) -> DisassociateSubnets
pub fn disassociate_subnets(&self) -> DisassociateSubnets
Constructs a fluent builder for the DisassociateSubnets
operation.
- The fluent builder is configurable:
update_token(impl Into<String>)
/set_update_token(Option<String>)
:An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.
To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.
To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn’t changed since you last retrieved it. If it has changed, the operation fails with an
InvalidTokenException
. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.firewall_arn(impl Into<String>)
/set_firewall_arn(Option<String>)
:The Amazon Resource Name (ARN) of the firewall.
You must specify the ARN or the name, and you can specify both.
firewall_name(impl Into<String>)
/set_firewall_name(Option<String>)
:The descriptive name of the firewall. You can’t change the name of a firewall after you create it.
You must specify the ARN or the name, and you can specify both.
subnet_ids(Vec<String>)
/set_subnet_ids(Option<Vec<String>>)
:The unique identifiers for the subnets that you want to disassociate.
- On success, responds with
DisassociateSubnetsOutput
with field(s):firewall_arn(Option<String>)
:The Amazon Resource Name (ARN) of the firewall.
firewall_name(Option<String>)
:The descriptive name of the firewall. You can’t change the name of a firewall after you create it.
subnet_mappings(Option<Vec<SubnetMapping>>)
:The IDs of the subnets that are associated with the firewall.
update_token(Option<String>)
:An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.
To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.
To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn’t changed since you last retrieved it. If it has changed, the operation fails with an
InvalidTokenException
. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.
- On failure, responds with
SdkError<DisassociateSubnetsError>
sourcepub fn list_firewall_policies(&self) -> ListFirewallPolicies
pub fn list_firewall_policies(&self) -> ListFirewallPolicies
Constructs a fluent builder for the ListFirewallPolicies
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:When you request a list of objects with a
MaxResults
setting, if the number of objects that are still available for retrieval exceeds the maximum you requested, Network Firewall returns aNextToken
value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request.max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of objects that you want Network Firewall to return for this request. If more objects are available, in the response, Network Firewall provides a
NextToken
value that you can use in a subsequent call to get the next batch of objects.
- On success, responds with
ListFirewallPoliciesOutput
with field(s):next_token(Option<String>)
:When you request a list of objects with a
MaxResults
setting, if the number of objects that are still available for retrieval exceeds the maximum you requested, Network Firewall returns aNextToken
value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request.firewall_policies(Option<Vec<FirewallPolicyMetadata>>)
:The metadata for the firewall policies. Depending on your setting for max results and the number of firewall policies that you have, this might not be the full list.
- On failure, responds with
SdkError<ListFirewallPoliciesError>
sourcepub fn list_firewalls(&self) -> ListFirewalls
pub fn list_firewalls(&self) -> ListFirewalls
Constructs a fluent builder for the ListFirewalls
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:When you request a list of objects with a
MaxResults
setting, if the number of objects that are still available for retrieval exceeds the maximum you requested, Network Firewall returns aNextToken
value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request.vpc_ids(Vec<String>)
/set_vpc_ids(Option<Vec<String>>)
:The unique identifiers of the VPCs that you want Network Firewall to retrieve the firewalls for. Leave this blank to retrieve all firewalls that you have defined.
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of objects that you want Network Firewall to return for this request. If more objects are available, in the response, Network Firewall provides a
NextToken
value that you can use in a subsequent call to get the next batch of objects.
- On success, responds with
ListFirewallsOutput
with field(s):next_token(Option<String>)
:When you request a list of objects with a
MaxResults
setting, if the number of objects that are still available for retrieval exceeds the maximum you requested, Network Firewall returns aNextToken
value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request.firewalls(Option<Vec<FirewallMetadata>>)
:The firewall metadata objects for the VPCs that you specified. Depending on your setting for max results and the number of firewalls you have, a single call might not be the full list.
- On failure, responds with
SdkError<ListFirewallsError>
sourcepub fn list_rule_groups(&self) -> ListRuleGroups
pub fn list_rule_groups(&self) -> ListRuleGroups
Constructs a fluent builder for the ListRuleGroups
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:When you request a list of objects with a
MaxResults
setting, if the number of objects that are still available for retrieval exceeds the maximum you requested, Network Firewall returns aNextToken
value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request.max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of objects that you want Network Firewall to return for this request. If more objects are available, in the response, Network Firewall provides a
NextToken
value that you can use in a subsequent call to get the next batch of objects.scope(ResourceManagedStatus)
/set_scope(Option<ResourceManagedStatus>)
:The scope of the request. The default setting of
ACCOUNT
or a setting ofNULL
returns all of the rule groups in your account. A setting ofMANAGED
returns all available managed rule groups.
- On success, responds with
ListRuleGroupsOutput
with field(s):next_token(Option<String>)
:When you request a list of objects with a
MaxResults
setting, if the number of objects that are still available for retrieval exceeds the maximum you requested, Network Firewall returns aNextToken
value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request.rule_groups(Option<Vec<RuleGroupMetadata>>)
:The rule group metadata objects that you’ve defined. Depending on your setting for max results and the number of rule groups, this might not be the full list.
- On failure, responds with
SdkError<ListRuleGroupsError>
Constructs a fluent builder for the ListTagsForResource
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:When you request a list of objects with a
MaxResults
setting, if the number of objects that are still available for retrieval exceeds the maximum you requested, Network Firewall returns aNextToken
value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request.max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of objects that you want Network Firewall to return for this request. If more objects are available, in the response, Network Firewall provides a
NextToken
value that you can use in a subsequent call to get the next batch of objects.resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) of the resource.
- On success, responds with
ListTagsForResourceOutput
with field(s):next_token(Option<String>)
:When you request a list of objects with a
MaxResults
setting, if the number of objects that are still available for retrieval exceeds the maximum you requested, Network Firewall returns aNextToken
value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request.tags(Option<Vec<Tag>>)
:The tags that are associated with the resource.
- On failure, responds with
SdkError<ListTagsForResourceError>
sourcepub fn put_resource_policy(&self) -> PutResourcePolicy
pub fn put_resource_policy(&self) -> PutResourcePolicy
Constructs a fluent builder for the PutResourcePolicy
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) of the account that you want to share rule groups and firewall policies with.
policy(impl Into<String>)
/set_policy(Option<String>)
:The AWS Identity and Access Management policy statement that lists the accounts that you want to share your rule group or firewall policy with and the operations that you want the accounts to be able to perform.
For a rule group resource, you can specify the following operations in the Actions section of the statement:
-
network-firewall:CreateFirewallPolicy
-
network-firewall:UpdateFirewallPolicy
-
network-firewall:ListRuleGroups
For a firewall policy resource, you can specify the following operations in the Actions section of the statement:
-
network-firewall:CreateFirewall
-
network-firewall:UpdateFirewall
-
network-firewall:AssociateFirewallPolicy
-
network-firewall:ListFirewallPolicies
In the Resource section of the statement, you specify the ARNs for the rule groups and firewall policies that you want to share with the account that you specified in
Arn
.-
- On success, responds with
PutResourcePolicyOutput
- On failure, responds with
SdkError<PutResourcePolicyError>
sourcepub fn tag_resource(&self) -> TagResource
pub fn tag_resource(&self) -> TagResource
Constructs a fluent builder for the TagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) of the resource.
tags(Vec<Tag>)
/set_tags(Option<Vec<Tag>>)
:
- On success, responds with
TagResourceOutput
- On failure, responds with
SdkError<TagResourceError>
sourcepub fn untag_resource(&self) -> UntagResource
pub fn untag_resource(&self) -> UntagResource
Constructs a fluent builder for the UntagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) of the resource.
tag_keys(Vec<String>)
/set_tag_keys(Option<Vec<String>>)
:
- On success, responds with
UntagResourceOutput
- On failure, responds with
SdkError<UntagResourceError>
sourcepub fn update_firewall_delete_protection(
&self
) -> UpdateFirewallDeleteProtection
pub fn update_firewall_delete_protection(
&self
) -> UpdateFirewallDeleteProtection
Constructs a fluent builder for the UpdateFirewallDeleteProtection
operation.
- The fluent builder is configurable:
update_token(impl Into<String>)
/set_update_token(Option<String>)
:An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.
To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.
To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn’t changed since you last retrieved it. If it has changed, the operation fails with an
InvalidTokenException
. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.firewall_arn(impl Into<String>)
/set_firewall_arn(Option<String>)
:The Amazon Resource Name (ARN) of the firewall.
You must specify the ARN or the name, and you can specify both.
firewall_name(impl Into<String>)
/set_firewall_name(Option<String>)
:The descriptive name of the firewall. You can’t change the name of a firewall after you create it.
You must specify the ARN or the name, and you can specify both.
delete_protection(bool)
/set_delete_protection(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 toTRUE
.
- On success, responds with
UpdateFirewallDeleteProtectionOutput
with field(s):firewall_arn(Option<String>)
:The Amazon Resource Name (ARN) of the firewall.
firewall_name(Option<String>)
:The descriptive name of the firewall. You can’t change the name of a firewall after you create it.
delete_protection(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 toTRUE
.update_token(Option<String>)
:An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.
To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.
To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn’t changed since you last retrieved it. If it has changed, the operation fails with an
InvalidTokenException
. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.
- On failure, responds with
SdkError<UpdateFirewallDeleteProtectionError>
sourcepub fn update_firewall_description(&self) -> UpdateFirewallDescription
pub fn update_firewall_description(&self) -> UpdateFirewallDescription
Constructs a fluent builder for the UpdateFirewallDescription
operation.
- The fluent builder is configurable:
update_token(impl Into<String>)
/set_update_token(Option<String>)
:An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.
To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.
To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn’t changed since you last retrieved it. If it has changed, the operation fails with an
InvalidTokenException
. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.firewall_arn(impl Into<String>)
/set_firewall_arn(Option<String>)
:The Amazon Resource Name (ARN) of the firewall.
You must specify the ARN or the name, and you can specify both.
firewall_name(impl Into<String>)
/set_firewall_name(Option<String>)
:The descriptive name of the firewall. You can’t change the name of a firewall after you create it.
You must specify the ARN or the name, and you can specify both.
description(impl Into<String>)
/set_description(Option<String>)
:The new description for the firewall. If you omit this setting, Network Firewall removes the description for the firewall.
- On success, responds with
UpdateFirewallDescriptionOutput
with field(s):firewall_arn(Option<String>)
:The Amazon Resource Name (ARN) of the firewall.
firewall_name(Option<String>)
:The descriptive name of the firewall. You can’t change the name of a firewall after you create it.
description(Option<String>)
:A description of the firewall.
update_token(Option<String>)
:An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.
To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.
To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn’t changed since you last retrieved it. If it has changed, the operation fails with an
InvalidTokenException
. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.
- On failure, responds with
SdkError<UpdateFirewallDescriptionError>
sourcepub fn update_firewall_policy(&self) -> UpdateFirewallPolicy
pub fn update_firewall_policy(&self) -> UpdateFirewallPolicy
Constructs a fluent builder for the UpdateFirewallPolicy
operation.
- The fluent builder is configurable:
update_token(impl Into<String>)
/set_update_token(Option<String>)
:A token used for optimistic locking. Network Firewall returns a token to your requests that access the firewall policy. The token marks the state of the policy resource at the time of the request.
To make changes to the policy, you provide the token in your request. Network Firewall uses the token to ensure that the policy hasn’t changed since you last retrieved it. If it has changed, the operation fails with an
InvalidTokenException
. If this happens, retrieve the firewall policy again to get a current copy of it with current token. Reapply your changes as needed, then try the operation again using the new token.firewall_policy_arn(impl Into<String>)
/set_firewall_policy_arn(Option<String>)
:The Amazon Resource Name (ARN) of the firewall policy.
You must specify the ARN or the name, and you can specify both.
firewall_policy_name(impl Into<String>)
/set_firewall_policy_name(Option<String>)
:The descriptive name of the firewall policy. You can’t change the name of a firewall policy after you create it.
You must specify the ARN or the name, and you can specify both.
firewall_policy(FirewallPolicy)
/set_firewall_policy(Option<FirewallPolicy>)
:The updated firewall policy to use for the firewall.
description(impl Into<String>)
/set_description(Option<String>)
:A description of the firewall policy.
dry_run(bool)
/set_dry_run(bool)
:Indicates whether you want Network Firewall to just check the validity of the request, rather than run the request.
If set to
TRUE
, Network Firewall checks whether the request can run successfully, but doesn’t actually make the requested changes. The call returns the value that the request would return if you ran it with dry run set toFALSE
, but doesn’t make additions or changes to your resources. This option allows you to make sure that you have the required permissions to run the request and that your request parameters are valid.If set to
FALSE
, Network Firewall makes the requested changes to your resources.
- On success, responds with
UpdateFirewallPolicyOutput
with field(s):update_token(Option<String>)
:A token used for optimistic locking. Network Firewall returns a token to your requests that access the firewall policy. The token marks the state of the policy resource at the time of the request.
To make changes to the policy, you provide the token in your request. Network Firewall uses the token to ensure that the policy hasn’t changed since you last retrieved it. If it has changed, the operation fails with an
InvalidTokenException
. If this happens, retrieve the firewall policy again to get a current copy of it with current token. Reapply your changes as needed, then try the operation again using the new token.firewall_policy_response(Option<FirewallPolicyResponse>)
:The high-level properties of a firewall policy. This, along with the
FirewallPolicy
, define the policy. You can retrieve all objects for a firewall policy by callingDescribeFirewallPolicy
.
- On failure, responds with
SdkError<UpdateFirewallPolicyError>
sourcepub fn update_firewall_policy_change_protection(
&self
) -> UpdateFirewallPolicyChangeProtection
pub fn update_firewall_policy_change_protection(
&self
) -> UpdateFirewallPolicyChangeProtection
Constructs a fluent builder for the UpdateFirewallPolicyChangeProtection
operation.
- The fluent builder is configurable:
update_token(impl Into<String>)
/set_update_token(Option<String>)
:An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.
To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.
To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn’t changed since you last retrieved it. If it has changed, the operation fails with an
InvalidTokenException
. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.firewall_arn(impl Into<String>)
/set_firewall_arn(Option<String>)
:The Amazon Resource Name (ARN) of the firewall.
You must specify the ARN or the name, and you can specify both.
firewall_name(impl Into<String>)
/set_firewall_name(Option<String>)
:The descriptive name of the firewall. You can’t change the name of a firewall after you create it.
You must specify the ARN or the name, and you can specify both.
firewall_policy_change_protection(bool)
/set_firewall_policy_change_protection(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
.
- On success, responds with
UpdateFirewallPolicyChangeProtectionOutput
with field(s):update_token(Option<String>)
:An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.
To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.
To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn’t changed since you last retrieved it. If it has changed, the operation fails with an
InvalidTokenException
. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.firewall_arn(Option<String>)
:The Amazon Resource Name (ARN) of the firewall.
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_change_protection(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
.
- On failure, responds with
SdkError<UpdateFirewallPolicyChangeProtectionError>
sourcepub fn update_logging_configuration(&self) -> UpdateLoggingConfiguration
pub fn update_logging_configuration(&self) -> UpdateLoggingConfiguration
Constructs a fluent builder for the UpdateLoggingConfiguration
operation.
- The fluent builder is configurable:
firewall_arn(impl Into<String>)
/set_firewall_arn(Option<String>)
:The Amazon Resource Name (ARN) of the firewall.
You must specify the ARN or the name, and you can specify both.
firewall_name(impl Into<String>)
/set_firewall_name(Option<String>)
:The descriptive name of the firewall. You can’t change the name of a firewall after you create it.
You must specify the ARN or the name, and you can specify both.
logging_configuration(LoggingConfiguration)
/set_logging_configuration(Option<LoggingConfiguration>)
:Defines how Network Firewall performs logging for a firewall. If you omit this setting, Network Firewall disables logging for the firewall.
- On success, responds with
UpdateLoggingConfigurationOutput
with field(s):firewall_arn(Option<String>)
:The Amazon Resource Name (ARN) of the firewall.
firewall_name(Option<String>)
:The descriptive name of the firewall. You can’t change the name of a firewall after you create it.
logging_configuration(Option<LoggingConfiguration>)
:Defines how AWS Network Firewall performs logging for a
Firewall
.
- On failure, responds with
SdkError<UpdateLoggingConfigurationError>
sourcepub fn update_rule_group(&self) -> UpdateRuleGroup
pub fn update_rule_group(&self) -> UpdateRuleGroup
Constructs a fluent builder for the UpdateRuleGroup
operation.
- The fluent builder is configurable:
update_token(impl Into<String>)
/set_update_token(Option<String>)
:A token used for optimistic locking. Network Firewall returns a token to your requests that access the rule group. The token marks the state of the rule group resource at the time of the request.
To make changes to the rule group, you provide the token in your request. Network Firewall uses the token to ensure that the rule group hasn’t changed since you last retrieved it. If it has changed, the operation fails with an
InvalidTokenException
. If this happens, retrieve the rule group again to get a current copy of it with a current token. Reapply your changes as needed, then try the operation again using the new token.rule_group_arn(impl Into<String>)
/set_rule_group_arn(Option<String>)
:The Amazon Resource Name (ARN) of the rule group.
You must specify the ARN or the name, and you can specify both.
rule_group_name(impl Into<String>)
/set_rule_group_name(Option<String>)
:The descriptive name of the rule group. You can’t change the name of a rule group after you create it.
You must specify the ARN or the name, and you can specify both.
rule_group(RuleGroup)
/set_rule_group(Option<RuleGroup>)
:An object that defines the rule group rules.
You must provide either this rule group setting or a
Rules
setting, but not both.rules(impl Into<String>)
/set_rules(Option<String>)
:A string containing stateful rule group rules specifications in Suricata flat format, with one rule per line. Use this to import your existing Suricata compatible rule groups.
You must provide either this rules setting or a populated
RuleGroup
setting, but not both.You can provide your rule group specification in Suricata flat format through this setting when you create or update your rule group. The call response returns a
RuleGroup
object that Network Firewall has populated from your string.r#type(RuleGroupType)
/set_type(Option<RuleGroupType>)
:Indicates whether the rule group is stateless or stateful. If the rule group is stateless, it contains stateless rules. If it is stateful, it contains stateful rules.
This setting is required for requests that do not include the
RuleGroupARN
.description(impl Into<String>)
/set_description(Option<String>)
:A description of the rule group.
dry_run(bool)
/set_dry_run(bool)
:Indicates whether you want Network Firewall to just check the validity of the request, rather than run the request.
If set to
TRUE
, Network Firewall checks whether the request can run successfully, but doesn’t actually make the requested changes. The call returns the value that the request would return if you ran it with dry run set toFALSE
, but doesn’t make additions or changes to your resources. This option allows you to make sure that you have the required permissions to run the request and that your request parameters are valid.If set to
FALSE
, Network Firewall makes the requested changes to your resources.
- On success, responds with
UpdateRuleGroupOutput
with field(s):update_token(Option<String>)
:A token used for optimistic locking. Network Firewall returns a token to your requests that access the rule group. The token marks the state of the rule group resource at the time of the request.
To make changes to the rule group, you provide the token in your request. Network Firewall uses the token to ensure that the rule group hasn’t changed since you last retrieved it. If it has changed, the operation fails with an
InvalidTokenException
. If this happens, retrieve the rule group again to get a current copy of it with a current token. Reapply your changes as needed, then try the operation again using the new token.rule_group_response(Option<RuleGroupResponse>)
:The high-level properties of a rule group. This, along with the
RuleGroup
, define the rule group. You can retrieve all objects for a rule group by callingDescribeRuleGroup
.
- On failure, responds with
SdkError<UpdateRuleGroupError>
sourcepub fn update_subnet_change_protection(&self) -> UpdateSubnetChangeProtection
pub fn update_subnet_change_protection(&self) -> UpdateSubnetChangeProtection
Constructs a fluent builder for the UpdateSubnetChangeProtection
operation.
- The fluent builder is configurable:
update_token(impl Into<String>)
/set_update_token(Option<String>)
:An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.
To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.
To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn’t changed since you last retrieved it. If it has changed, the operation fails with an
InvalidTokenException
. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.firewall_arn(impl Into<String>)
/set_firewall_arn(Option<String>)
:The Amazon Resource Name (ARN) of the firewall.
You must specify the ARN or the name, and you can specify both.
firewall_name(impl Into<String>)
/set_firewall_name(Option<String>)
:The descriptive name of the firewall. You can’t change the name of a firewall after you create it.
You must specify the ARN or the name, and you can specify both.
subnet_change_protection(bool)
/set_subnet_change_protection(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
.
- On success, responds with
UpdateSubnetChangeProtectionOutput
with field(s):update_token(Option<String>)
:An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.
To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.
To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn’t changed since you last retrieved it. If it has changed, the operation fails with an
InvalidTokenException
. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.firewall_arn(Option<String>)
:The Amazon Resource Name (ARN) of the firewall.
firewall_name(Option<String>)
:The descriptive name of the firewall. You can’t change the name of a firewall after you create it.
subnet_change_protection(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
.
- On failure, responds with
SdkError<UpdateSubnetChangeProtectionError>
sourceimpl Client
impl Client
sourcepub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
pub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
Creates a client with the given service config and connector override.
Trait Implementations
sourceimpl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
impl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
sourcefn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
fn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more