Paws::WAFRegional::UpdateRule - Arguments for method UpdateRule on Paws::WAFRegional
This class represents the parameters used for calling the method UpdateRule on the AWS WAF Regional service. Use the attributes of this class as arguments to method UpdateRule.
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateRule.
my $waf-regional = Paws->service('WAFRegional'); # To update a rule # The following example deletes a Predicate object in a rule with the ID # example1ds3t-46da-4fdb-b8d5-abc321j569j5. my $UpdateRuleResponse = $waf -regional->UpdateRule( 'ChangeToken' => 'abcd12f2-46da-4fdb-b8d5-fbd4c466928f', 'RuleId' => 'example1ds3t-46da-4fdb-b8d5-abc321j569j5', 'Updates' => [ { 'Action' => 'DELETE', 'Predicate' => { 'DataId' => 'MyByteMatchSetID', 'Negated' => 0, 'Type' => 'ByteMatch' } } ] ); # Results: my $ChangeToken = $UpdateRuleResponse->ChangeToken; # Returns a L<Paws::WAFRegional::UpdateRuleResponse> object.
Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/waf-regional/UpdateRule
The value returned by the most recent call to GetChangeToken.
The RuleId of the Rule that you want to update. RuleId is returned by CreateRule and by ListRules.
RuleId
Rule
CreateRule
An array of RuleUpdate objects that you want to insert into or delete from a Rule. For more information, see the applicable data types:
RuleUpdate
RuleUpdate: Contains Action and Predicate
Action
Predicate
Predicate: Contains DataId, Negated, and Type
DataId
Negated
Type
FieldToMatch: Contains Data and Type
Data
This class forms part of Paws, documenting arguments for method UpdateRule in Paws::WAFRegional
The source code is located here: https://github.com/pplu/aws-sdk-perl
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
To install Paws, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Paws
CPAN shell
perl -MCPAN -e shell install Paws
For more information on module installation, please visit the detailed CPAN module installation guide.