« blib/lib/Paws/Route53Resolver/UpdateFirewallDomainsResponse.pm
↑ Summary
blib/lib/Paws/Route53Resolver/UpdateFirewallRuleGroupAssociation.pm »
| 1 | |||
| 2 | package Paws::Route53Resolver::UpdateFirewallRule; | ||
| 3 | use Moose; | ||
| 4 | has Action => (is => 'ro', isa => 'Str'); | ||
| 5 | has BlockOverrideDnsType => (is => 'ro', isa => 'Str'); | ||
| 6 | has BlockOverrideDomain => (is => 'ro', isa => 'Str'); | ||
| 7 | has BlockOverrideTtl => (is => 'ro', isa => 'Int'); | ||
| 8 | has BlockResponse => (is => 'ro', isa => 'Str'); | ||
| 9 | has FirewallDomainListId => (is => 'ro', isa => 'Str', required => 1); | ||
| 10 | has FirewallRuleGroupId => (is => 'ro', isa => 'Str', required => 1); | ||
| 11 | has Name => (is => 'ro', isa => 'Str'); | ||
| 12 | has Priority => (is => 'ro', isa => 'Int'); | ||
| 13 | |||
| 14 | use MooseX::ClassAttribute; | ||
| 15 | |||
| 16 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateFirewallRule'); | ||
| 17 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Route53Resolver::UpdateFirewallRuleResponse'); | ||
| 18 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 19 | 1; | ||
| 20 | |||
| 21 | ### main pod documentation begin ### | ||
| 22 | |||
| 23 | =head1 NAME | ||
| 24 | |||
| 25 | Paws::Route53Resolver::UpdateFirewallRule - Arguments for method UpdateFirewallRule on L<Paws::Route53Resolver> | ||
| 26 | |||
| 27 | =head1 DESCRIPTION | ||
| 28 | |||
| 29 | This class represents the parameters used for calling the method UpdateFirewallRule on the | ||
| 30 | L<Amazon Route 53 Resolver|Paws::Route53Resolver> service. Use the attributes of this class | ||
| 31 | as arguments to method UpdateFirewallRule. | ||
| 32 | |||
| 33 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateFirewallRule. | ||
| 34 | |||
| 35 | =head1 SYNOPSIS | ||
| 36 | |||
| 37 | my $route53resolver = Paws->service('Route53Resolver'); | ||
| 38 | my $UpdateFirewallRuleResponse = $route53resolver->UpdateFirewallRule( | ||
| 39 | FirewallDomainListId => 'MyResourceId', | ||
| 40 | FirewallRuleGroupId => 'MyResourceId', | ||
| 41 | Action => 'ALLOW', # OPTIONAL | ||
| 42 | BlockOverrideDnsType => 'CNAME', # OPTIONAL | ||
| 43 | BlockOverrideDomain => 'MyBlockOverrideDomain', # OPTIONAL | ||
| 44 | BlockOverrideTtl => 1, # OPTIONAL | ||
| 45 | BlockResponse => 'NODATA', # OPTIONAL | ||
| 46 | Name => 'MyName', # OPTIONAL | ||
| 47 | Priority => 1, # OPTIONAL | ||
| 48 | ); | ||
| 49 | |||
| 50 | # Results: | ||
| 51 | my $FirewallRule = $UpdateFirewallRuleResponse->FirewallRule; | ||
| 52 | |||
| 53 | # Returns a L<Paws::Route53Resolver::UpdateFirewallRuleResponse> 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/route53resolver/UpdateFirewallRule> | ||
| 57 | |||
| 58 | =head1 ATTRIBUTES | ||
| 59 | |||
| 60 | |||
| 61 | =head2 Action => Str | ||
| 62 | |||
| 63 | The action that DNS Firewall should take on a DNS query when it matches | ||
| 64 | one of the domains in the rule's domain list: | ||
| 65 | |||
| 66 | =over | ||
| 67 | |||
| 68 | =item * | ||
| 69 | |||
| 70 | C<ALLOW> - Permit the request to go through. | ||
| 71 | |||
| 72 | =item * | ||
| 73 | |||
| 74 | C<ALERT> - Permit the request to go through but send an alert to the | ||
| 75 | logs. | ||
| 76 | |||
| 77 | =item * | ||
| 78 | |||
| 79 | C<BLOCK> - Disallow the request. This option requires additional | ||
| 80 | details in the rule's C<BlockResponse>. | ||
| 81 | |||
| 82 | =back | ||
| 83 | |||
| 84 | |||
| 85 | Valid values are: C<"ALLOW">, C<"BLOCK">, C<"ALERT"> | ||
| 86 | |||
| 87 | =head2 BlockOverrideDnsType => Str | ||
| 88 | |||
| 89 | The DNS record's type. This determines the format of the record value | ||
| 90 | that you provided in C<BlockOverrideDomain>. Used for the rule action | ||
| 91 | C<BLOCK> with a C<BlockResponse> setting of C<OVERRIDE>. | ||
| 92 | |||
| 93 | Valid values are: C<"CNAME"> | ||
| 94 | |||
| 95 | =head2 BlockOverrideDomain => Str | ||
| 96 | |||
| 97 | The custom DNS record to send back in response to the query. Used for | ||
| 98 | the rule action C<BLOCK> with a C<BlockResponse> setting of | ||
| 99 | C<OVERRIDE>. | ||
| 100 | |||
| 101 | |||
| 102 | |||
| 103 | =head2 BlockOverrideTtl => Int | ||
| 104 | |||
| 105 | The recommended amount of time, in seconds, for the DNS resolver or web | ||
| 106 | browser to cache the provided override record. Used for the rule action | ||
| 107 | C<BLOCK> with a C<BlockResponse> setting of C<OVERRIDE>. | ||
| 108 | |||
| 109 | |||
| 110 | |||
| 111 | =head2 BlockResponse => Str | ||
| 112 | |||
| 113 | The way that you want DNS Firewall to block the request. Used for the | ||
| 114 | rule action setting C<BLOCK>. | ||
| 115 | |||
| 116 | =over | ||
| 117 | |||
| 118 | =item * | ||
| 119 | |||
| 120 | C<NODATA> - Respond indicating that the query was successful, but no | ||
| 121 | response is available for it. | ||
| 122 | |||
| 123 | =item * | ||
| 124 | |||
| 125 | C<NXDOMAIN> - Respond indicating that the domain name that's in the | ||
| 126 | query doesn't exist. | ||
| 127 | |||
| 128 | =item * | ||
| 129 | |||
| 130 | C<OVERRIDE> - Provide a custom override in the response. This option | ||
| 131 | requires custom handling details in the rule's C<BlockOverride*> | ||
| 132 | settings. | ||
| 133 | |||
| 134 | =back | ||
| 135 | |||
| 136 | |||
| 137 | Valid values are: C<"NODATA">, C<"NXDOMAIN">, C<"OVERRIDE"> | ||
| 138 | |||
| 139 | =head2 B<REQUIRED> FirewallDomainListId => Str | ||
| 140 | |||
| 141 | The ID of the domain list to use in the rule. | ||
| 142 | |||
| 143 | |||
| 144 | |||
| 145 | =head2 B<REQUIRED> FirewallRuleGroupId => Str | ||
| 146 | |||
| 147 | The unique identifier of the firewall rule group for the rule. | ||
| 148 | |||
| 149 | |||
| 150 | |||
| 151 | =head2 Name => Str | ||
| 152 | |||
| 153 | The name of the rule. | ||
| 154 | |||
| 155 | |||
| 156 | |||
| 157 | =head2 Priority => Int | ||
| 158 | |||
| 159 | The setting that determines the processing order of the rule in the | ||
| 160 | rule group. DNS Firewall processes the rules in a rule group by order | ||
| 161 | of priority, starting from the lowest setting. | ||
| 162 | |||
| 163 | You must specify a unique priority for each rule in a rule group. To | ||
| 164 | make it easier to insert rules later, leave space between the numbers, | ||
| 165 | for example, use 100, 200, and so on. You can change the priority | ||
| 166 | setting for the rules in a rule group at any time. | ||
| 167 | |||
| 168 | |||
| 169 | |||
| 170 | |||
| 171 | =head1 SEE ALSO | ||
| 172 | |||
| 173 | This class forms part of L<Paws>, documenting arguments for method UpdateFirewallRule in L<Paws::Route53Resolver> | ||
| 174 | |||
| 175 | =head1 BUGS and CONTRIBUTIONS | ||
| 176 | |||
| 177 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 178 | |||
| 179 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 180 | |||
| 181 | =cut | ||
| 182 |