NAME
Paws::WAFRegional::UpdateRule - Arguments for method UpdateRule on Paws::WAFRegional
DESCRIPTION
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.
SYNOPSIS
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
ATTRIBUTES
REQUIRED ChangeToken => Str
The value returned by the most recent call to GetChangeToken.
REQUIRED RuleId => Str
The RuleId
of the Rule
that you want to update. RuleId
is returned by CreateRule
and by ListRules.
REQUIRED Updates => ArrayRef[Paws::WAFRegional::RuleUpdate]
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: Contains
Action
andPredicate
Predicate: Contains
DataId
,Negated
, andType
FieldToMatch: Contains
Data
andType
SEE ALSO
This class forms part of Paws, documenting arguments for method UpdateRule in Paws::WAFRegional
BUGS and CONTRIBUTIONS
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