« blib/lib/Paws/WAF/UpdateSqlInjectionMatchSetResponse.pm
↑ Summary
blib/lib/Paws/WAF/UpdateWebACLResponse.pm »
| 1 | |||
| 2 | package Paws::WAF::UpdateWebACL; | ||
| 3 | use Moose; | ||
| 4 | has ChangeToken => (is => 'ro', isa => 'Str', required => 1); | ||
| 5 | has DefaultAction => (is => 'ro', isa => 'Paws::WAF::WafAction'); | ||
| 6 | has Updates => (is => 'ro', isa => 'ArrayRef[Paws::WAF::WebACLUpdate]'); | ||
| 7 | has WebACLId => (is => 'ro', isa => 'Str', required => 1); | ||
| 8 | |||
| 9 | use MooseX::ClassAttribute; | ||
| 10 | |||
| 11 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateWebACL'); | ||
| 12 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::WAF::UpdateWebACLResponse'); | ||
| 13 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 14 | 1; | ||
| 15 | |||
| 16 | ### main pod documentation begin ### | ||
| 17 | |||
| 18 | =head1 NAME | ||
| 19 | |||
| 20 | Paws::WAF::UpdateWebACL - Arguments for method UpdateWebACL on L<Paws::WAF> | ||
| 21 | |||
| 22 | =head1 DESCRIPTION | ||
| 23 | |||
| 24 | This class represents the parameters used for calling the method UpdateWebACL on the | ||
| 25 | L<AWS WAF|Paws::WAF> service. Use the attributes of this class | ||
| 26 | as arguments to method UpdateWebACL. | ||
| 27 | |||
| 28 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateWebACL. | ||
| 29 | |||
| 30 | =head1 SYNOPSIS | ||
| 31 | |||
| 32 | my $waf = Paws->service('WAF'); | ||
| 33 | # To update a Web ACL | ||
| 34 | # The following example deletes an ActivatedRule object in a WebACL with the ID | ||
| 35 | # webacl-1472061481310. | ||
| 36 | my $UpdateWebACLResponse = $waf->UpdateWebACL( | ||
| 37 | 'ChangeToken' => 'abcd12f2-46da-4fdb-b8d5-fbd4c466928f', | ||
| 38 | 'DefaultAction' => { | ||
| 39 | 'Type' => 'ALLOW' | ||
| 40 | }, | ||
| 41 | 'Updates' => [ | ||
| 42 | |||
| 43 | { | ||
| 44 | 'Action' => 'DELETE', | ||
| 45 | 'ActivatedRule' => { | ||
| 46 | 'Action' => { | ||
| 47 | 'Type' => 'ALLOW' | ||
| 48 | }, | ||
| 49 | 'Priority' => 1, | ||
| 50 | 'RuleId' => 'WAFRule-1-Example' | ||
| 51 | } | ||
| 52 | } | ||
| 53 | ], | ||
| 54 | 'WebACLId' => 'webacl-1472061481310' | ||
| 55 | ); | ||
| 56 | |||
| 57 | # Results: | ||
| 58 | my $ChangeToken = $UpdateWebACLResponse->ChangeToken; | ||
| 59 | |||
| 60 | # Returns a L<Paws::WAF::UpdateWebACLResponse> object. | ||
| 61 | |||
| 62 | 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. | ||
| 63 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/waf/UpdateWebACL> | ||
| 64 | |||
| 65 | =head1 ATTRIBUTES | ||
| 66 | |||
| 67 | |||
| 68 | =head2 B<REQUIRED> ChangeToken => Str | ||
| 69 | |||
| 70 | The value returned by the most recent call to GetChangeToken. | ||
| 71 | |||
| 72 | |||
| 73 | |||
| 74 | =head2 DefaultAction => L<Paws::WAF::WafAction> | ||
| 75 | |||
| 76 | A default action for the web ACL, either ALLOW or BLOCK. AWS WAF | ||
| 77 | performs the default action if a request doesn't match the criteria in | ||
| 78 | any of the rules in a web ACL. | ||
| 79 | |||
| 80 | |||
| 81 | |||
| 82 | =head2 Updates => ArrayRef[L<Paws::WAF::WebACLUpdate>] | ||
| 83 | |||
| 84 | An array of updates to make to the WebACL. | ||
| 85 | |||
| 86 | An array of C<WebACLUpdate> objects that you want to insert into or | ||
| 87 | delete from a WebACL. For more information, see the applicable data | ||
| 88 | types: | ||
| 89 | |||
| 90 | =over | ||
| 91 | |||
| 92 | =item * | ||
| 93 | |||
| 94 | WebACLUpdate: Contains C<Action> and C<ActivatedRule> | ||
| 95 | |||
| 96 | =item * | ||
| 97 | |||
| 98 | ActivatedRule: Contains C<Action>, C<OverrideAction>, C<Priority>, | ||
| 99 | C<RuleId>, and C<Type>. C<ActivatedRule|OverrideAction> applies only | ||
| 100 | when updating or adding a C<RuleGroup> to a C<WebACL>. In this case, | ||
| 101 | you do not use C<ActivatedRule|Action>. For all other update requests, | ||
| 102 | C<ActivatedRule|Action> is used instead of | ||
| 103 | C<ActivatedRule|OverrideAction>. | ||
| 104 | |||
| 105 | =item * | ||
| 106 | |||
| 107 | WafAction: Contains C<Type> | ||
| 108 | |||
| 109 | =back | ||
| 110 | |||
| 111 | |||
| 112 | |||
| 113 | |||
| 114 | =head2 B<REQUIRED> WebACLId => Str | ||
| 115 | |||
| 116 | The C<WebACLId> of the WebACL that you want to update. C<WebACLId> is | ||
| 117 | returned by CreateWebACL and by ListWebACLs. | ||
| 118 | |||
| 119 | |||
| 120 | |||
| 121 | |||
| 122 | =head1 SEE ALSO | ||
| 123 | |||
| 124 | This class forms part of L<Paws>, documenting arguments for method UpdateWebACL in L<Paws::WAF> | ||
| 125 | |||
| 126 | =head1 BUGS and CONTRIBUTIONS | ||
| 127 | |||
| 128 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 129 | |||
| 130 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 131 | |||
| 132 | =cut | ||
| 133 |