« blib/lib/Paws/WAF/UpdateByteMatchSetResponse.pm
↑ Summary
blib/lib/Paws/WAF/UpdateGeoMatchSetResponse.pm »
| 1 | |||
| 2 | package Paws::WAF::UpdateGeoMatchSet; | ||
| 3 | use Moose; | ||
| 4 | has ChangeToken => (is => 'ro', isa => 'Str', required => 1); | ||
| 5 | has GeoMatchSetId => (is => 'ro', isa => 'Str', required => 1); | ||
| 6 | has Updates => (is => 'ro', isa => 'ArrayRef[Paws::WAF::GeoMatchSetUpdate]', required => 1); | ||
| 7 | |||
| 8 | use MooseX::ClassAttribute; | ||
| 9 | |||
| 10 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateGeoMatchSet'); | ||
| 11 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::WAF::UpdateGeoMatchSetResponse'); | ||
| 12 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 13 | 1; | ||
| 14 | |||
| 15 | ### main pod documentation begin ### | ||
| 16 | |||
| 17 | =head1 NAME | ||
| 18 | |||
| 19 | Paws::WAF::UpdateGeoMatchSet - Arguments for method UpdateGeoMatchSet on L<Paws::WAF> | ||
| 20 | |||
| 21 | =head1 DESCRIPTION | ||
| 22 | |||
| 23 | This class represents the parameters used for calling the method UpdateGeoMatchSet on the | ||
| 24 | L<AWS WAF|Paws::WAF> service. Use the attributes of this class | ||
| 25 | as arguments to method UpdateGeoMatchSet. | ||
| 26 | |||
| 27 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateGeoMatchSet. | ||
| 28 | |||
| 29 | =head1 SYNOPSIS | ||
| 30 | |||
| 31 | my $waf = Paws->service('WAF'); | ||
| 32 | my $UpdateGeoMatchSetResponse = $waf->UpdateGeoMatchSet( | ||
| 33 | ChangeToken => 'MyChangeToken', | ||
| 34 | GeoMatchSetId => 'MyResourceId', | ||
| 35 | Updates => [ | ||
| 36 | { | ||
| 37 | Action => 'INSERT', # values: INSERT, DELETE | ||
| 38 | GeoMatchConstraint => { | ||
| 39 | Type => 'Country', # values: Country | ||
| 40 | Value => 'AF' | ||
| 41 | , # values: AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, BN, BG, BF, BI, KH, CM, CA, CV, KY, CF, TD, CL, CN, CX, CC, CO, KM, CG, CD, CK, CR, CI, HR, CU, CW, CY, CZ, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HK, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KP, KR, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MO, MK, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, MX, FM, MD, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PS, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, RE, RO, RU, RW, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, SD, SR, SJ, SZ, SE, CH, SY, TW, TJ, TZ, TH, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, US, UM, UY, UZ, VU, VE, VN, VG, VI, WF, EH, YE, ZM, ZW | ||
| 42 | |||
| 43 | }, | ||
| 44 | |||
| 45 | }, | ||
| 46 | ... | ||
| 47 | ], | ||
| 48 | |||
| 49 | ); | ||
| 50 | |||
| 51 | # Results: | ||
| 52 | my $ChangeToken = $UpdateGeoMatchSetResponse->ChangeToken; | ||
| 53 | |||
| 54 | # Returns a L<Paws::WAF::UpdateGeoMatchSetResponse> object. | ||
| 55 | |||
| 56 | 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. | ||
| 57 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/waf/UpdateGeoMatchSet> | ||
| 58 | |||
| 59 | =head1 ATTRIBUTES | ||
| 60 | |||
| 61 | |||
| 62 | =head2 B<REQUIRED> ChangeToken => Str | ||
| 63 | |||
| 64 | The value returned by the most recent call to GetChangeToken. | ||
| 65 | |||
| 66 | |||
| 67 | |||
| 68 | =head2 B<REQUIRED> GeoMatchSetId => Str | ||
| 69 | |||
| 70 | The C<GeoMatchSetId> of the GeoMatchSet that you want to update. | ||
| 71 | C<GeoMatchSetId> is returned by CreateGeoMatchSet and by | ||
| 72 | ListGeoMatchSets. | ||
| 73 | |||
| 74 | |||
| 75 | |||
| 76 | =head2 B<REQUIRED> Updates => ArrayRef[L<Paws::WAF::GeoMatchSetUpdate>] | ||
| 77 | |||
| 78 | An array of C<GeoMatchSetUpdate> objects that you want to insert into | ||
| 79 | or delete from an GeoMatchSet. For more information, see the applicable | ||
| 80 | data types: | ||
| 81 | |||
| 82 | =over | ||
| 83 | |||
| 84 | =item * | ||
| 85 | |||
| 86 | GeoMatchSetUpdate: Contains C<Action> and C<GeoMatchConstraint> | ||
| 87 | |||
| 88 | =item * | ||
| 89 | |||
| 90 | GeoMatchConstraint: Contains C<Type> and C<Value> | ||
| 91 | |||
| 92 | You can have only one C<Type> and C<Value> per C<GeoMatchConstraint>. | ||
| 93 | To add multiple countries, include multiple C<GeoMatchSetUpdate> | ||
| 94 | objects in your request. | ||
| 95 | |||
| 96 | =back | ||
| 97 | |||
| 98 | |||
| 99 | |||
| 100 | |||
| 101 | |||
| 102 | =head1 SEE ALSO | ||
| 103 | |||
| 104 | This class forms part of L<Paws>, documenting arguments for method UpdateGeoMatchSet in L<Paws::WAF> | ||
| 105 | |||
| 106 | =head1 BUGS and CONTRIBUTIONS | ||
| 107 | |||
| 108 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 109 | |||
| 110 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 111 | |||
| 112 | =cut | ||
| 113 |