« blib/lib/Paws/WAFRegional/UpdateGeoMatchSetResponse.pm
↑ Summary
blib/lib/Paws/WAFRegional/UpdateIPSetResponse.pm »
| 1 | |||
| 2 | package Paws::WAFRegional::UpdateIPSet; | ||
| 3 | use Moose; | ||
| 4 | has ChangeToken => (is => 'ro', isa => 'Str', required => 1); | ||
| 5 | has IPSetId => (is => 'ro', isa => 'Str', required => 1); | ||
| 6 | has Updates => (is => 'ro', isa => 'ArrayRef[Paws::WAFRegional::IPSetUpdate]', required => 1); | ||
| 7 | |||
| 8 | use MooseX::ClassAttribute; | ||
| 9 | |||
| 10 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateIPSet'); | ||
| 11 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::WAFRegional::UpdateIPSetResponse'); | ||
| 12 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 13 | 1; | ||
| 14 | |||
| 15 | ### main pod documentation begin ### | ||
| 16 | |||
| 17 | =head1 NAME | ||
| 18 | |||
| 19 | Paws::WAFRegional::UpdateIPSet - Arguments for method UpdateIPSet on L<Paws::WAFRegional> | ||
| 20 | |||
| 21 | =head1 DESCRIPTION | ||
| 22 | |||
| 23 | This class represents the parameters used for calling the method UpdateIPSet on the | ||
| 24 | L<AWS WAF Regional|Paws::WAFRegional> service. Use the attributes of this class | ||
| 25 | as arguments to method UpdateIPSet. | ||
| 26 | |||
| 27 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateIPSet. | ||
| 28 | |||
| 29 | =head1 SYNOPSIS | ||
| 30 | |||
| 31 | my $waf-regional = Paws->service('WAFRegional'); | ||
| 32 | # To update an IP set | ||
| 33 | # The following example deletes an IPSetDescriptor object in an IP match set | ||
| 34 | # with the ID example1ds3t-46da-4fdb-b8d5-abc321j569j5. | ||
| 35 | my $UpdateIPSetResponse = $waf -regional->UpdateIPSet( | ||
| 36 | 'ChangeToken' => 'abcd12f2-46da-4fdb-b8d5-fbd4c466928f', | ||
| 37 | 'IPSetId' => 'example1ds3t-46da-4fdb-b8d5-abc321j569j5', | ||
| 38 | 'Updates' => [ | ||
| 39 | |||
| 40 | { | ||
| 41 | 'Action' => 'DELETE', | ||
| 42 | 'IPSetDescriptor' => { | ||
| 43 | 'Type' => 'IPV4', | ||
| 44 | 'Value' => '192.0.2.44/32' | ||
| 45 | } | ||
| 46 | } | ||
| 47 | ] | ||
| 48 | ); | ||
| 49 | |||
| 50 | # Results: | ||
| 51 | my $ChangeToken = $UpdateIPSetResponse->ChangeToken; | ||
| 52 | |||
| 53 | # Returns a L<Paws::WAFRegional::UpdateIPSetResponse> object. | ||
| 54 | |||
| 55 | 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. | ||
| 56 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/waf-regional/UpdateIPSet> | ||
| 57 | |||
| 58 | =head1 ATTRIBUTES | ||
| 59 | |||
| 60 | |||
| 61 | =head2 B<REQUIRED> ChangeToken => Str | ||
| 62 | |||
| 63 | The value returned by the most recent call to GetChangeToken. | ||
| 64 | |||
| 65 | |||
| 66 | |||
| 67 | =head2 B<REQUIRED> IPSetId => Str | ||
| 68 | |||
| 69 | The C<IPSetId> of the IPSet that you want to update. C<IPSetId> is | ||
| 70 | returned by CreateIPSet and by ListIPSets. | ||
| 71 | |||
| 72 | |||
| 73 | |||
| 74 | =head2 B<REQUIRED> Updates => ArrayRef[L<Paws::WAFRegional::IPSetUpdate>] | ||
| 75 | |||
| 76 | An array of C<IPSetUpdate> objects that you want to insert into or | ||
| 77 | delete from an IPSet. For more information, see the applicable data | ||
| 78 | types: | ||
| 79 | |||
| 80 | =over | ||
| 81 | |||
| 82 | =item * | ||
| 83 | |||
| 84 | IPSetUpdate: Contains C<Action> and C<IPSetDescriptor> | ||
| 85 | |||
| 86 | =item * | ||
| 87 | |||
| 88 | IPSetDescriptor: Contains C<Type> and C<Value> | ||
| 89 | |||
| 90 | =back | ||
| 91 | |||
| 92 | You can insert a maximum of 1000 addresses in a single request. | ||
| 93 | |||
| 94 | |||
| 95 | |||
| 96 | |||
| 97 | =head1 SEE ALSO | ||
| 98 | |||
| 99 | This class forms part of L<Paws>, documenting arguments for method UpdateIPSet in L<Paws::WAFRegional> | ||
| 100 | |||
| 101 | =head1 BUGS and CONTRIBUTIONS | ||
| 102 | |||
| 103 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 104 | |||
| 105 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 106 | |||
| 107 | =cut | ||
| 108 |