AWS Tools for Windows PowerShell
Command Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Synopsis

Calls the AWS Network Firewall UpdateRuleGroup API operation.

Syntax

Update-NWFWRuleGroup
-UpdateToken <String>
-AnalyzeRuleGroup <Boolean>
-StatelessRulesAndCustomActions_CustomAction <CustomAction[]>
-Description <String>
-DryRun <Boolean>
-RulesSourceList_GeneratedRulesType <GeneratedRulesType>
-ReferenceSets_IPSetReference <Hashtable>
-RuleVariables_IPSet <Hashtable>
-EncryptionConfiguration_KeyId <String>
-RuleVariables_PortSet <Hashtable>
-RuleGroupArn <String>
-RuleGroupName <String>
-StatefulRuleOptions_RuleOrder <RuleOrder>
-Rule <String>
-RulesSource_RulesString <String>
-SourceMetadata_SourceArn <String>
-SourceMetadata_SourceUpdateToken <String>
-RulesSource_StatefulRule <StatefulRule[]>
-StatelessRulesAndCustomActions_StatelessRule <StatelessRule[]>
-RulesSourceList_Target <String[]>
-RulesSourceList_TargetType <String[]>
-EncryptionConfiguration_Type <EncryptionType>
-Type <RuleGroupType>
-Select <String>
-PassThru <SwitchParameter>
-Force <SwitchParameter>
-ClientConfig <AmazonNetworkFirewallConfig>

Description

Updates the rule settings for the specified rule group. You use a rule group by reference in one or more firewall policies. When you modify a rule group, you modify all firewall policies that use the rule group. To update a rule group, first call DescribeRuleGroup to retrieve the current RuleGroup object, update the object as needed, and then provide the updated object to this call.

Parameters

-AnalyzeRuleGroup <Boolean>
Indicates whether you want Network Firewall to analyze the stateless rules in the rule group for rule behavior such as asymmetric routing. If set to TRUE, Network Firewall runs the analysis and then updates the rule group for you. To run the stateless rule group analyzer without updating the rule group, set DryRun to TRUE.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
Amazon.PowerShell.Cmdlets.NWFW.AmazonNetworkFirewallClientCmdlet.ClientConfig
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Description <String>
A description of the rule group.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-DryRun <Boolean>
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 to FALSE, 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.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-EncryptionConfiguration_KeyId <String>
The ID of the Amazon Web Services Key Management Service (KMS) customer managed key. You can use any of the key identifiers that KMS supports, unless you're using a key that's managed by another account. If you're using a key managed by another account, then specify the key ARN. For more information, see Key ID in the Amazon Web Services KMS Developer Guide.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-EncryptionConfiguration_Type <EncryptionType>
The type of Amazon Web Services KMS key to use for encryption of your Network Firewall resources.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
This parameter overrides confirmation prompts to force the cmdlet to continue its operation. This parameter should always be used with caution.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-PassThru <SwitchParameter>
Changes the cmdlet behavior to return the value passed to the UpdateToken parameter. The -PassThru parameter is deprecated, use -Select '^UpdateToken' instead. This parameter will be removed in a future version.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-ReferenceSets_IPSetReference <Hashtable>
The list of IP set references.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesRuleGroup_ReferenceSets_IPSetReferences
-Rule <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.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesRules
-RuleGroupArn <String>
The Amazon Resource Name (ARN) of the rule group.You must specify the ARN or the name, and you can specify both.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-RuleGroupName <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.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-RulesSource_RulesString <String>
Stateful inspection criteria, provided in Suricata compatible rules. Suricata is an open-source threat detection framework that includes a standard rule-based language for network traffic inspection.These rules contain the inspection criteria and the action to take for traffic that matches the criteria, so this type of rule group doesn't have a separate action setting.You can't use the priority keyword if the RuleOrder option in StatefulRuleOptions is set to STRICT_ORDER.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesRuleGroup_RulesSource_RulesString
-RulesSource_StatefulRule <StatefulRule[]>
An array of individual stateful rules inspection criteria to be used together in a stateful rule group. Use this option to specify simple Suricata rules with protocol, source and destination, ports, direction, and rule options. For information about the Suricata Rules format, see Rules Format.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesRuleGroup_RulesSource_StatefulRules
-RulesSourceList_GeneratedRulesType <GeneratedRulesType>
Whether you want to allow or deny access to the domains in your target list.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesRuleGroup_RulesSource_RulesSourceList_GeneratedRulesType
-RulesSourceList_Target <String[]>
The domains that you want to inspect for in your traffic flows. Valid domain specifications are the following:
  • Explicit names. For example, abc.example.com matches only the domain abc.example.com.
  • Names that use a domain wildcard, which you indicate with an initial '.'. For example,.example.com matches example.com and matches all subdomains of example.com, such as abc.example.com and www.example.com.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesRuleGroup_RulesSource_RulesSourceList_Targets
-RulesSourceList_TargetType <String[]>
The protocols you want to inspect. Specify TLS_SNI for HTTPS. Specify HTTP_HOST for HTTP. You can specify either or both.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesRuleGroup_RulesSource_RulesSourceList_TargetTypes
-RuleVariables_IPSet <Hashtable>
A list of IP addresses and address ranges, in CIDR notation.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesRuleGroup_RuleVariables_IPSets
-RuleVariables_PortSet <Hashtable>
A list of port ranges.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesRuleGroup_RuleVariables_PortSets
-Select <String>
Use the -Select parameter to control the cmdlet output. The default value is '*'. Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.NetworkFirewall.Model.UpdateRuleGroupResponse). Specifying the name of a property of type Amazon.NetworkFirewall.Model.UpdateRuleGroupResponse will result in that property being returned. Specifying -Select '^ParameterName' will result in the cmdlet returning the selected cmdlet parameter value.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-SourceMetadata_SourceArn <String>
The Amazon Resource Name (ARN) of the rule group that your own rule group is copied from.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-SourceMetadata_SourceUpdateToken <String>
The update token of the Amazon Web Services managed rule group that your own rule group is copied from. To determine the update token for the managed rule group, call DescribeRuleGroup.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-StatefulRuleOptions_RuleOrder <RuleOrder>
Indicates how to manage the order of the rule evaluation for the rule group. DEFAULT_ACTION_ORDER is the default behavior. Stateful rules are provided to the rule engine as Suricata compatible strings, and Suricata evaluates them based on certain settings. For more information, see Evaluation order for stateful rules in the Network Firewall Developer Guide.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesRuleGroup_StatefulRuleOptions_RuleOrder
-StatelessRulesAndCustomActions_CustomAction <CustomAction[]>
Defines an array of individual custom action definitions that are available for use by the stateless rules in this StatelessRulesAndCustomActions specification. You name each custom action that you define, and then you can use it by name in your StatelessRuleRuleDefinitionActions specification.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesRuleGroup_RulesSource_StatelessRulesAndCustomActions_CustomActions
-StatelessRulesAndCustomActions_StatelessRule <StatelessRule[]>
Defines the set of stateless rules for use in a stateless rule group.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesRuleGroup_RulesSource_StatelessRulesAndCustomActions_StatelessRules
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.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-UpdateToken <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.
Required?True
Position?1
Accept pipeline input?True (ByValue, ByPropertyName)

Common Credential and Region Parameters

-AccessKey <String>
The AWS access key for the user account. This can be a temporary access key if the corresponding session token is supplied to the -SessionToken parameter.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAK
-Credential <AWSCredentials>
An AWSCredentials object instance containing access and secret key information, and optionally a token for session-based credentials.
Required?False
Position?Named
Accept pipeline input?True (ByValue, ByPropertyName)
-EndpointUrl <String>
The endpoint to make the call against.Note: This parameter is primarily for internal AWS use and is not required/should not be specified for normal usage. The cmdlets normally determine which endpoint to call based on the region specified to the -Region parameter or set as default in the shell (via Set-DefaultAWSRegion). Only specify this parameter if you must direct the call to a specific custom endpoint.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-NetworkCredential <PSCredential>
Used with SAML-based authentication when ProfileName references a SAML role profile. Contains the network credentials to be supplied during authentication with the configured identity provider's endpoint. This parameter is not required if the user's default network identity can or should be used during authentication.
Required?False
Position?Named
Accept pipeline input?True (ByValue, ByPropertyName)
-ProfileLocation <String>
Used to specify the name and location of the ini-format credential file (shared with the AWS CLI and other AWS SDKs)If this optional parameter is omitted this cmdlet will search the encrypted credential file used by the AWS SDK for .NET and AWS Toolkit for Visual Studio first. If the profile is not found then the cmdlet will search in the ini-format credential file at the default location: (user's home directory)\.aws\credentials.If this parameter is specified then this cmdlet will only search the ini-format credential file at the location given.As the current folder can vary in a shell or during script execution it is advised that you use specify a fully qualified path instead of a relative path.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAWSProfilesLocation, ProfilesLocation
-ProfileName <String>
The user-defined name of an AWS credentials or SAML-based role profile containing credential information. The profile is expected to be found in the secure credential file shared with the AWS SDK for .NET and AWS Toolkit for Visual Studio. You can also specify the name of a profile stored in the .ini-format credential file used with the AWS CLI and other AWS SDKs.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesStoredCredentials, AWSProfileName
-Region <Object>
The system name of an AWS region or an AWSRegion instance. This governs the endpoint that will be used when calling service operations. Note that the AWS resources referenced in a call are usually region-specific.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesRegionToCall
-SecretKey <String>
The AWS secret key for the user account. This can be a temporary secret key if the corresponding session token is supplied to the -SessionToken parameter.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSK, SecretAccessKey
-SessionToken <String>
The session token if the access and secret keys are temporary session-based credentials.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesST

Outputs

This cmdlet returns an Amazon.NetworkFirewall.Model.UpdateRuleGroupResponse object containing multiple properties. The object can also be referenced from properties attached to the cmdlet entry in the $AWSHistory stack.

Supported Version

AWS Tools for PowerShell: 2.x.y.z