| 1 | |||
| 2 | package Paws::Route53::ChangeResourceRecordSets; | ||
| 3 | 2 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | has ChangeBatch => (is => 'ro', isa => 'Paws::Route53::ChangeBatch', required => 1); | |
| 5 | 2 | has HostedZoneId => (is => 'ro', isa => 'Str', uri_name => 'Id', traits => ['ParamInURI'], required => 1); | |
| 6 | |||
| 7 | |||
| 8 | 2 | ▶ | use MooseX::ClassAttribute; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 2 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'ChangeResourceRecordSets'); | |
| 11 | 2 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2013-04-01/hostedzone/{Id}/rrset/'); | |
| 12 | 2 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST'); | |
| 13 | 2 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Route53::ChangeResourceRecordSetsResponse'); | |
| 14 | 2 | class_has _result_key => (isa => 'Str', is => 'ro'); | |
| 15 | 2 | class_has _top_level_element => (isa => 'Str', is => 'ro', default => 'ChangeResourceRecordSetsRequest'); | |
| 16 | 2 | class_has _top_level_namespace => (isa => 'Str', is => 'ro', default => 'https://route53.amazonaws.com/doc/2013-04-01/'); | |
| 17 | 2 | 1; | |
| 18 | |||
| 19 | ### main pod documentation begin ### | ||
| 20 | |||
| 21 | =head1 NAME | ||
| 22 | |||
| 23 | Paws::Route53::ChangeResourceRecordSets - Arguments for method ChangeResourceRecordSets on L<Paws::Route53> | ||
| 24 | |||
| 25 | =head1 DESCRIPTION | ||
| 26 | |||
| 27 | This class represents the parameters used for calling the method ChangeResourceRecordSets on the | ||
| 28 | L<Amazon Route 53|Paws::Route53> service. Use the attributes of this class | ||
| 29 | as arguments to method ChangeResourceRecordSets. | ||
| 30 | |||
| 31 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ChangeResourceRecordSets. | ||
| 32 | |||
| 33 | =head1 SYNOPSIS | ||
| 34 | |||
| 35 | my $route53 = Paws->service('Route53'); | ||
| 36 | # To create a basic resource record set | ||
| 37 | # The following example creates a resource record set that routes Internet | ||
| 38 | # traffic to a resource with an IP address of 192.0.2.44. | ||
| 39 | my $ChangeResourceRecordSetsResponse = $route53->ChangeResourceRecordSets( | ||
| 40 | 'ChangeBatch' => { | ||
| 41 | 'Changes' => [ | ||
| 42 | |||
| 43 | { | ||
| 44 | 'Action' => 'CREATE', | ||
| 45 | 'ResourceRecordSet' => { | ||
| 46 | 'Name' => 'example.com', | ||
| 47 | 'ResourceRecords' => [ | ||
| 48 | |||
| 49 | { | ||
| 50 | 'Value' => '192.0.2.44' | ||
| 51 | } | ||
| 52 | ], | ||
| 53 | 'TTL' => 60, | ||
| 54 | 'Type' => 'A' | ||
| 55 | } | ||
| 56 | } | ||
| 57 | ], | ||
| 58 | 'Comment' => 'Web server for example.com' | ||
| 59 | }, | ||
| 60 | 'HostedZoneId' => 'Z3M3LMPEXAMPLE' | ||
| 61 | ); | ||
| 62 | |||
| 63 | # Results: | ||
| 64 | my $ChangeInfo = $ChangeResourceRecordSetsResponse->ChangeInfo; | ||
| 65 | |||
| 66 | # Returns a L<Paws::Route53::ChangeResourceRecordSetsResponse> object. | ||
| 67 | # To create weighted resource record sets | ||
| 68 | # The following example creates two weighted resource record sets. The resource | ||
| 69 | # with a Weight of 100 will get 1/3rd of traffic (100/100+200), and the other | ||
| 70 | # resource will get the rest of the traffic for example.com. | ||
| 71 | my $ChangeResourceRecordSetsResponse = $route53->ChangeResourceRecordSets( | ||
| 72 | 'ChangeBatch' => { | ||
| 73 | 'Changes' => [ | ||
| 74 | |||
| 75 | { | ||
| 76 | 'Action' => 'CREATE', | ||
| 77 | 'ResourceRecordSet' => { | ||
| 78 | 'HealthCheckId' => 'abcdef11-2222-3333-4444-555555fedcba', | ||
| 79 | 'Name' => 'example.com', | ||
| 80 | 'ResourceRecords' => [ | ||
| 81 | |||
| 82 | { | ||
| 83 | 'Value' => '192.0.2.44' | ||
| 84 | } | ||
| 85 | ], | ||
| 86 | 'SetIdentifier' => 'Seattle data center', | ||
| 87 | 'TTL' => 60, | ||
| 88 | 'Type' => 'A', | ||
| 89 | 'Weight' => 100 | ||
| 90 | } | ||
| 91 | }, | ||
| 92 | |||
| 93 | { | ||
| 94 | 'Action' => 'CREATE', | ||
| 95 | 'ResourceRecordSet' => { | ||
| 96 | 'HealthCheckId' => 'abcdef66-7777-8888-9999-000000fedcba', | ||
| 97 | 'Name' => 'example.com', | ||
| 98 | 'ResourceRecords' => [ | ||
| 99 | |||
| 100 | { | ||
| 101 | 'Value' => '192.0.2.45' | ||
| 102 | } | ||
| 103 | ], | ||
| 104 | 'SetIdentifier' => 'Portland data center', | ||
| 105 | 'TTL' => 60, | ||
| 106 | 'Type' => 'A', | ||
| 107 | 'Weight' => 200 | ||
| 108 | } | ||
| 109 | } | ||
| 110 | ], | ||
| 111 | 'Comment' => 'Web servers for example.com' | ||
| 112 | }, | ||
| 113 | 'HostedZoneId' => 'Z3M3LMPEXAMPLE' | ||
| 114 | ); | ||
| 115 | |||
| 116 | # Results: | ||
| 117 | my $ChangeInfo = $ChangeResourceRecordSetsResponse->ChangeInfo; | ||
| 118 | |||
| 119 | # Returns a L<Paws::Route53::ChangeResourceRecordSetsResponse> object. | ||
| 120 | # To create an alias resource record set | ||
| 121 | # The following example creates an alias resource record set that routes traffic | ||
| 122 | # to a CloudFront distribution. | ||
| 123 | my $ChangeResourceRecordSetsResponse = $route53->ChangeResourceRecordSets( | ||
| 124 | 'ChangeBatch' => { | ||
| 125 | 'Changes' => [ | ||
| 126 | |||
| 127 | { | ||
| 128 | 'Action' => 'CREATE', | ||
| 129 | 'ResourceRecordSet' => { | ||
| 130 | 'AliasTarget' => { | ||
| 131 | 'DNSName' => 'd123rk29d0stfj.cloudfront.net', | ||
| 132 | 'EvaluateTargetHealth' => 0, | ||
| 133 | 'HostedZoneId' => 'Z2FDTNDATAQYW2' | ||
| 134 | }, | ||
| 135 | 'Name' => 'example.com', | ||
| 136 | 'Type' => 'A' | ||
| 137 | } | ||
| 138 | } | ||
| 139 | ], | ||
| 140 | 'Comment' => 'CloudFront distribution for example.com' | ||
| 141 | }, | ||
| 142 | 'HostedZoneId' => 'Z3M3LMPEXAMPLE' | ||
| 143 | ); | ||
| 144 | |||
| 145 | # Results: | ||
| 146 | my $ChangeInfo = $ChangeResourceRecordSetsResponse->ChangeInfo; | ||
| 147 | |||
| 148 | # Returns a L<Paws::Route53::ChangeResourceRecordSetsResponse> object. | ||
| 149 | # To create weighted alias resource record sets | ||
| 150 | # The following example creates two weighted alias resource record sets that | ||
| 151 | # route traffic to ELB load balancers. The resource with a Weight of 100 will | ||
| 152 | # get 1/3rd of traffic (100/100+200), and the other resource will get the rest | ||
| 153 | # of the traffic for example.com. | ||
| 154 | my $ChangeResourceRecordSetsResponse = $route53->ChangeResourceRecordSets( | ||
| 155 | 'ChangeBatch' => { | ||
| 156 | 'Changes' => [ | ||
| 157 | |||
| 158 | { | ||
| 159 | 'Action' => 'CREATE', | ||
| 160 | 'ResourceRecordSet' => { | ||
| 161 | 'AliasTarget' => { | ||
| 162 | 'DNSName' => | ||
| 163 | 'example-com-123456789.us-east-2.elb.amazonaws.com ', | ||
| 164 | 'EvaluateTargetHealth' => 1, | ||
| 165 | 'HostedZoneId' => 'Z3AADJGX6KTTL2' | ||
| 166 | }, | ||
| 167 | 'Name' => 'example.com', | ||
| 168 | 'SetIdentifier' => 'Ohio region', | ||
| 169 | 'Type' => 'A', | ||
| 170 | 'Weight' => 100 | ||
| 171 | } | ||
| 172 | }, | ||
| 173 | |||
| 174 | { | ||
| 175 | 'Action' => 'CREATE', | ||
| 176 | 'ResourceRecordSet' => { | ||
| 177 | 'AliasTarget' => { | ||
| 178 | 'DNSName' => | ||
| 179 | 'example-com-987654321.us-west-2.elb.amazonaws.com ', | ||
| 180 | 'EvaluateTargetHealth' => 1, | ||
| 181 | 'HostedZoneId' => 'Z1H1FL5HABSF5' | ||
| 182 | }, | ||
| 183 | 'Name' => 'example.com', | ||
| 184 | 'SetIdentifier' => 'Oregon region', | ||
| 185 | 'Type' => 'A', | ||
| 186 | 'Weight' => 200 | ||
| 187 | } | ||
| 188 | } | ||
| 189 | ], | ||
| 190 | 'Comment' => 'ELB load balancers for example.com' | ||
| 191 | }, | ||
| 192 | 'HostedZoneId' => 'Z3M3LMPEXAMPLE' | ||
| 193 | ); | ||
| 194 | |||
| 195 | # Results: | ||
| 196 | my $ChangeInfo = $ChangeResourceRecordSetsResponse->ChangeInfo; | ||
| 197 | |||
| 198 | # Returns a L<Paws::Route53::ChangeResourceRecordSetsResponse> object. | ||
| 199 | # To create latency resource record sets | ||
| 200 | # The following example creates two latency resource record sets that route | ||
| 201 | # traffic to EC2 instances. Traffic for example.com is routed either to the Ohio | ||
| 202 | # region or the Oregon region, depending on the latency between the user and | ||
| 203 | # those regions. | ||
| 204 | my $ChangeResourceRecordSetsResponse = $route53->ChangeResourceRecordSets( | ||
| 205 | 'ChangeBatch' => { | ||
| 206 | 'Changes' => [ | ||
| 207 | |||
| 208 | { | ||
| 209 | 'Action' => 'CREATE', | ||
| 210 | 'ResourceRecordSet' => { | ||
| 211 | 'HealthCheckId' => 'abcdef11-2222-3333-4444-555555fedcba', | ||
| 212 | 'Name' => 'example.com', | ||
| 213 | 'Region' => 'us-east-2', | ||
| 214 | 'ResourceRecords' => [ | ||
| 215 | |||
| 216 | { | ||
| 217 | 'Value' => '192.0.2.44' | ||
| 218 | } | ||
| 219 | ], | ||
| 220 | 'SetIdentifier' => 'Ohio region', | ||
| 221 | 'TTL' => 60, | ||
| 222 | 'Type' => 'A' | ||
| 223 | } | ||
| 224 | }, | ||
| 225 | |||
| 226 | { | ||
| 227 | 'Action' => 'CREATE', | ||
| 228 | 'ResourceRecordSet' => { | ||
| 229 | 'HealthCheckId' => 'abcdef66-7777-8888-9999-000000fedcba', | ||
| 230 | 'Name' => 'example.com', | ||
| 231 | 'Region' => 'us-west-2', | ||
| 232 | 'ResourceRecords' => [ | ||
| 233 | |||
| 234 | { | ||
| 235 | 'Value' => '192.0.2.45' | ||
| 236 | } | ||
| 237 | ], | ||
| 238 | 'SetIdentifier' => 'Oregon region', | ||
| 239 | 'TTL' => 60, | ||
| 240 | 'Type' => 'A' | ||
| 241 | } | ||
| 242 | } | ||
| 243 | ], | ||
| 244 | 'Comment' => 'EC2 instances for example.com' | ||
| 245 | }, | ||
| 246 | 'HostedZoneId' => 'Z3M3LMPEXAMPLE' | ||
| 247 | ); | ||
| 248 | |||
| 249 | # Results: | ||
| 250 | my $ChangeInfo = $ChangeResourceRecordSetsResponse->ChangeInfo; | ||
| 251 | |||
| 252 | # Returns a L<Paws::Route53::ChangeResourceRecordSetsResponse> object. | ||
| 253 | # To create latency alias resource record sets | ||
| 254 | # The following example creates two latency alias resource record sets that | ||
| 255 | # route traffic for example.com to ELB load balancers. Requests are routed | ||
| 256 | # either to the Ohio region or the Oregon region, depending on the latency | ||
| 257 | # between the user and those regions. | ||
| 258 | my $ChangeResourceRecordSetsResponse = $route53->ChangeResourceRecordSets( | ||
| 259 | 'ChangeBatch' => { | ||
| 260 | 'Changes' => [ | ||
| 261 | |||
| 262 | { | ||
| 263 | 'Action' => 'CREATE', | ||
| 264 | 'ResourceRecordSet' => { | ||
| 265 | 'AliasTarget' => { | ||
| 266 | 'DNSName' => | ||
| 267 | 'example-com-123456789.us-east-2.elb.amazonaws.com ', | ||
| 268 | 'EvaluateTargetHealth' => 1, | ||
| 269 | 'HostedZoneId' => 'Z3AADJGX6KTTL2' | ||
| 270 | }, | ||
| 271 | 'Name' => 'example.com', | ||
| 272 | 'Region' => 'us-east-2', | ||
| 273 | 'SetIdentifier' => 'Ohio region', | ||
| 274 | 'Type' => 'A' | ||
| 275 | } | ||
| 276 | }, | ||
| 277 | |||
| 278 | { | ||
| 279 | 'Action' => 'CREATE', | ||
| 280 | 'ResourceRecordSet' => { | ||
| 281 | 'AliasTarget' => { | ||
| 282 | 'DNSName' => | ||
| 283 | 'example-com-987654321.us-west-2.elb.amazonaws.com ', | ||
| 284 | 'EvaluateTargetHealth' => 1, | ||
| 285 | 'HostedZoneId' => 'Z1H1FL5HABSF5' | ||
| 286 | }, | ||
| 287 | 'Name' => 'example.com', | ||
| 288 | 'Region' => 'us-west-2', | ||
| 289 | 'SetIdentifier' => 'Oregon region', | ||
| 290 | 'Type' => 'A' | ||
| 291 | } | ||
| 292 | } | ||
| 293 | ], | ||
| 294 | 'Comment' => 'ELB load balancers for example.com' | ||
| 295 | }, | ||
| 296 | 'HostedZoneId' => 'Z3M3LMPEXAMPLE' | ||
| 297 | ); | ||
| 298 | |||
| 299 | # Results: | ||
| 300 | my $ChangeInfo = $ChangeResourceRecordSetsResponse->ChangeInfo; | ||
| 301 | |||
| 302 | # Returns a L<Paws::Route53::ChangeResourceRecordSetsResponse> object. | ||
| 303 | # To create failover resource record sets | ||
| 304 | # The following example creates primary and secondary failover resource record | ||
| 305 | # sets that route traffic to EC2 instances. Traffic is generally routed to the | ||
| 306 | # primary resource, in the Ohio region. If that resource is unavailable, traffic | ||
| 307 | # is routed to the secondary resource, in the Oregon region. | ||
| 308 | my $ChangeResourceRecordSetsResponse = $route53->ChangeResourceRecordSets( | ||
| 309 | 'ChangeBatch' => { | ||
| 310 | 'Changes' => [ | ||
| 311 | |||
| 312 | { | ||
| 313 | 'Action' => 'CREATE', | ||
| 314 | 'ResourceRecordSet' => { | ||
| 315 | 'Failover' => 'PRIMARY', | ||
| 316 | 'HealthCheckId' => 'abcdef11-2222-3333-4444-555555fedcba', | ||
| 317 | 'Name' => 'example.com', | ||
| 318 | 'ResourceRecords' => [ | ||
| 319 | |||
| 320 | { | ||
| 321 | 'Value' => '192.0.2.44' | ||
| 322 | } | ||
| 323 | ], | ||
| 324 | 'SetIdentifier' => 'Ohio region', | ||
| 325 | 'TTL' => 60, | ||
| 326 | 'Type' => 'A' | ||
| 327 | } | ||
| 328 | }, | ||
| 329 | |||
| 330 | { | ||
| 331 | 'Action' => 'CREATE', | ||
| 332 | 'ResourceRecordSet' => { | ||
| 333 | 'Failover' => 'SECONDARY', | ||
| 334 | 'HealthCheckId' => 'abcdef66-7777-8888-9999-000000fedcba', | ||
| 335 | 'Name' => 'example.com', | ||
| 336 | 'ResourceRecords' => [ | ||
| 337 | |||
| 338 | { | ||
| 339 | 'Value' => '192.0.2.45' | ||
| 340 | } | ||
| 341 | ], | ||
| 342 | 'SetIdentifier' => 'Oregon region', | ||
| 343 | 'TTL' => 60, | ||
| 344 | 'Type' => 'A' | ||
| 345 | } | ||
| 346 | } | ||
| 347 | ], | ||
| 348 | 'Comment' => 'Failover configuration for example.com' | ||
| 349 | }, | ||
| 350 | 'HostedZoneId' => 'Z3M3LMPEXAMPLE' | ||
| 351 | ); | ||
| 352 | |||
| 353 | # Results: | ||
| 354 | my $ChangeInfo = $ChangeResourceRecordSetsResponse->ChangeInfo; | ||
| 355 | |||
| 356 | # Returns a L<Paws::Route53::ChangeResourceRecordSetsResponse> object. | ||
| 357 | # To create failover alias resource record sets | ||
| 358 | # The following example creates primary and secondary failover alias resource | ||
| 359 | # record sets that route traffic to ELB load balancers. Traffic is generally | ||
| 360 | # routed to the primary resource, in the Ohio region. If that resource is | ||
| 361 | # unavailable, traffic is routed to the secondary resource, in the Oregon | ||
| 362 | # region. | ||
| 363 | my $ChangeResourceRecordSetsResponse = $route53->ChangeResourceRecordSets( | ||
| 364 | 'ChangeBatch' => { | ||
| 365 | 'Changes' => [ | ||
| 366 | |||
| 367 | { | ||
| 368 | 'Action' => 'CREATE', | ||
| 369 | 'ResourceRecordSet' => { | ||
| 370 | 'AliasTarget' => { | ||
| 371 | 'DNSName' => | ||
| 372 | 'example-com-123456789.us-east-2.elb.amazonaws.com ', | ||
| 373 | 'EvaluateTargetHealth' => 1, | ||
| 374 | 'HostedZoneId' => 'Z3AADJGX6KTTL2' | ||
| 375 | }, | ||
| 376 | 'Failover' => 'PRIMARY', | ||
| 377 | 'Name' => 'example.com', | ||
| 378 | 'SetIdentifier' => 'Ohio region', | ||
| 379 | 'Type' => 'A' | ||
| 380 | } | ||
| 381 | }, | ||
| 382 | |||
| 383 | { | ||
| 384 | 'Action' => 'CREATE', | ||
| 385 | 'ResourceRecordSet' => { | ||
| 386 | 'AliasTarget' => { | ||
| 387 | 'DNSName' => | ||
| 388 | 'example-com-987654321.us-west-2.elb.amazonaws.com ', | ||
| 389 | 'EvaluateTargetHealth' => 1, | ||
| 390 | 'HostedZoneId' => 'Z1H1FL5HABSF5' | ||
| 391 | }, | ||
| 392 | 'Failover' => 'SECONDARY', | ||
| 393 | 'Name' => 'example.com', | ||
| 394 | 'SetIdentifier' => 'Oregon region', | ||
| 395 | 'Type' => 'A' | ||
| 396 | } | ||
| 397 | } | ||
| 398 | ], | ||
| 399 | 'Comment' => 'Failover alias configuration for example.com' | ||
| 400 | }, | ||
| 401 | 'HostedZoneId' => 'Z3M3LMPEXAMPLE' | ||
| 402 | ); | ||
| 403 | |||
| 404 | # Results: | ||
| 405 | my $ChangeInfo = $ChangeResourceRecordSetsResponse->ChangeInfo; | ||
| 406 | |||
| 407 | # Returns a L<Paws::Route53::ChangeResourceRecordSetsResponse> object. | ||
| 408 | # To create geolocation resource record sets | ||
| 409 | # The following example creates four geolocation resource record sets that use | ||
| 410 | # IPv4 addresses to route traffic to resources such as web servers running on | ||
| 411 | # EC2 instances. Traffic is routed to one of four IP addresses, for North | ||
| 412 | # America (NA), for South America (SA), for Europe (EU), and for all other | ||
| 413 | # locations (*). | ||
| 414 | my $ChangeResourceRecordSetsResponse = $route53->ChangeResourceRecordSets( | ||
| 415 | 'ChangeBatch' => { | ||
| 416 | 'Changes' => [ | ||
| 417 | |||
| 418 | { | ||
| 419 | 'Action' => 'CREATE', | ||
| 420 | 'ResourceRecordSet' => { | ||
| 421 | 'GeoLocation' => { | ||
| 422 | 'ContinentCode' => 'NA' | ||
| 423 | }, | ||
| 424 | 'Name' => 'example.com', | ||
| 425 | 'ResourceRecords' => [ | ||
| 426 | |||
| 427 | { | ||
| 428 | 'Value' => '192.0.2.44' | ||
| 429 | } | ||
| 430 | ], | ||
| 431 | 'SetIdentifier' => 'North America', | ||
| 432 | 'TTL' => 60, | ||
| 433 | 'Type' => 'A' | ||
| 434 | } | ||
| 435 | }, | ||
| 436 | |||
| 437 | { | ||
| 438 | 'Action' => 'CREATE', | ||
| 439 | 'ResourceRecordSet' => { | ||
| 440 | 'GeoLocation' => { | ||
| 441 | 'ContinentCode' => 'SA' | ||
| 442 | }, | ||
| 443 | 'Name' => 'example.com', | ||
| 444 | 'ResourceRecords' => [ | ||
| 445 | |||
| 446 | { | ||
| 447 | 'Value' => '192.0.2.45' | ||
| 448 | } | ||
| 449 | ], | ||
| 450 | 'SetIdentifier' => 'South America', | ||
| 451 | 'TTL' => 60, | ||
| 452 | 'Type' => 'A' | ||
| 453 | } | ||
| 454 | }, | ||
| 455 | |||
| 456 | { | ||
| 457 | 'Action' => 'CREATE', | ||
| 458 | 'ResourceRecordSet' => { | ||
| 459 | 'GeoLocation' => { | ||
| 460 | 'ContinentCode' => 'EU' | ||
| 461 | }, | ||
| 462 | 'Name' => 'example.com', | ||
| 463 | 'ResourceRecords' => [ | ||
| 464 | |||
| 465 | { | ||
| 466 | 'Value' => '192.0.2.46' | ||
| 467 | } | ||
| 468 | ], | ||
| 469 | 'SetIdentifier' => 'Europe', | ||
| 470 | 'TTL' => 60, | ||
| 471 | 'Type' => 'A' | ||
| 472 | } | ||
| 473 | }, | ||
| 474 | |||
| 475 | { | ||
| 476 | 'Action' => 'CREATE', | ||
| 477 | 'ResourceRecordSet' => { | ||
| 478 | 'GeoLocation' => { | ||
| 479 | 'CountryCode' => '*' | ||
| 480 | }, | ||
| 481 | 'Name' => 'example.com', | ||
| 482 | 'ResourceRecords' => [ | ||
| 483 | |||
| 484 | { | ||
| 485 | 'Value' => '192.0.2.47' | ||
| 486 | } | ||
| 487 | ], | ||
| 488 | 'SetIdentifier' => 'Other locations', | ||
| 489 | 'TTL' => 60, | ||
| 490 | 'Type' => 'A' | ||
| 491 | } | ||
| 492 | } | ||
| 493 | ], | ||
| 494 | 'Comment' => 'Geolocation configuration for example.com' | ||
| 495 | }, | ||
| 496 | 'HostedZoneId' => 'Z3M3LMPEXAMPLE' | ||
| 497 | ); | ||
| 498 | |||
| 499 | # Results: | ||
| 500 | my $ChangeInfo = $ChangeResourceRecordSetsResponse->ChangeInfo; | ||
| 501 | |||
| 502 | # Returns a L<Paws::Route53::ChangeResourceRecordSetsResponse> object. | ||
| 503 | # To create geolocation alias resource record sets | ||
| 504 | # The following example creates four geolocation alias resource record sets that | ||
| 505 | # route traffic to ELB load balancers. Traffic is routed to one of four IP | ||
| 506 | # addresses, for North America (NA), for South America (SA), for Europe (EU), | ||
| 507 | # and for all other locations (*). | ||
| 508 | my $ChangeResourceRecordSetsResponse = $route53->ChangeResourceRecordSets( | ||
| 509 | 'ChangeBatch' => { | ||
| 510 | 'Changes' => [ | ||
| 511 | |||
| 512 | { | ||
| 513 | 'Action' => 'CREATE', | ||
| 514 | 'ResourceRecordSet' => { | ||
| 515 | 'AliasTarget' => { | ||
| 516 | 'DNSName' => | ||
| 517 | 'example-com-123456789.us-east-2.elb.amazonaws.com ', | ||
| 518 | 'EvaluateTargetHealth' => 1, | ||
| 519 | 'HostedZoneId' => 'Z3AADJGX6KTTL2' | ||
| 520 | }, | ||
| 521 | 'GeoLocation' => { | ||
| 522 | 'ContinentCode' => 'NA' | ||
| 523 | }, | ||
| 524 | 'Name' => 'example.com', | ||
| 525 | 'SetIdentifier' => 'North America', | ||
| 526 | 'Type' => 'A' | ||
| 527 | } | ||
| 528 | }, | ||
| 529 | |||
| 530 | { | ||
| 531 | 'Action' => 'CREATE', | ||
| 532 | 'ResourceRecordSet' => { | ||
| 533 | 'AliasTarget' => { | ||
| 534 | 'DNSName' => | ||
| 535 | 'example-com-234567890.sa-east-1.elb.amazonaws.com ', | ||
| 536 | 'EvaluateTargetHealth' => 1, | ||
| 537 | 'HostedZoneId' => 'Z2P70J7HTTTPLU' | ||
| 538 | }, | ||
| 539 | 'GeoLocation' => { | ||
| 540 | 'ContinentCode' => 'SA' | ||
| 541 | }, | ||
| 542 | 'Name' => 'example.com', | ||
| 543 | 'SetIdentifier' => 'South America', | ||
| 544 | 'Type' => 'A' | ||
| 545 | } | ||
| 546 | }, | ||
| 547 | |||
| 548 | { | ||
| 549 | 'Action' => 'CREATE', | ||
| 550 | 'ResourceRecordSet' => { | ||
| 551 | 'AliasTarget' => { | ||
| 552 | 'DNSName' => | ||
| 553 | 'example-com-234567890.eu-central-1.elb.amazonaws.com ', | ||
| 554 | 'EvaluateTargetHealth' => 1, | ||
| 555 | 'HostedZoneId' => 'Z215JYRZR1TBD5' | ||
| 556 | }, | ||
| 557 | 'GeoLocation' => { | ||
| 558 | 'ContinentCode' => 'EU' | ||
| 559 | }, | ||
| 560 | 'Name' => 'example.com', | ||
| 561 | 'SetIdentifier' => 'Europe', | ||
| 562 | 'Type' => 'A' | ||
| 563 | } | ||
| 564 | }, | ||
| 565 | |||
| 566 | { | ||
| 567 | 'Action' => 'CREATE', | ||
| 568 | 'ResourceRecordSet' => { | ||
| 569 | 'AliasTarget' => { | ||
| 570 | 'DNSName' => | ||
| 571 | 'example-com-234567890.ap-southeast-1.elb.amazonaws.com ', | ||
| 572 | 'EvaluateTargetHealth' => 1, | ||
| 573 | 'HostedZoneId' => 'Z1LMS91P8CMLE5' | ||
| 574 | }, | ||
| 575 | 'GeoLocation' => { | ||
| 576 | 'CountryCode' => '*' | ||
| 577 | }, | ||
| 578 | 'Name' => 'example.com', | ||
| 579 | 'SetIdentifier' => 'Other locations', | ||
| 580 | 'Type' => 'A' | ||
| 581 | } | ||
| 582 | } | ||
| 583 | ], | ||
| 584 | 'Comment' => 'Geolocation alias configuration for example.com' | ||
| 585 | }, | ||
| 586 | 'HostedZoneId' => 'Z3M3LMPEXAMPLE' | ||
| 587 | ); | ||
| 588 | |||
| 589 | # Results: | ||
| 590 | my $ChangeInfo = $ChangeResourceRecordSetsResponse->ChangeInfo; | ||
| 591 | |||
| 592 | # Returns a L<Paws::Route53::ChangeResourceRecordSetsResponse> object. | ||
| 593 | |||
| 594 | 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. | ||
| 595 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/route53/ChangeResourceRecordSets> | ||
| 596 | |||
| 597 | =head1 ATTRIBUTES | ||
| 598 | |||
| 599 | |||
| 600 | =head2 B<REQUIRED> ChangeBatch => L<Paws::Route53::ChangeBatch> | ||
| 601 | |||
| 602 | A complex type that contains an optional comment and the C<Changes> | ||
| 603 | element. | ||
| 604 | |||
| 605 | |||
| 606 | |||
| 607 | =head2 B<REQUIRED> HostedZoneId => Str | ||
| 608 | |||
| 609 | The ID of the hosted zone that contains the resource record sets that | ||
| 610 | you want to change. | ||
| 611 | |||
| 612 | |||
| 613 | |||
| 614 | |||
| 615 | =head1 SEE ALSO | ||
| 616 | |||
| 617 | This class forms part of L<Paws>, documenting arguments for method ChangeResourceRecordSets in L<Paws::Route53> | ||
| 618 | |||
| 619 | =head1 BUGS and CONTRIBUTIONS | ||
| 620 | |||
| 621 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 622 | |||
| 623 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 624 | |||
| 625 | =cut | ||
| 626 | |||