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