1 |
efrain |
1 |
<?php
|
|
|
2 |
namespace Aws\Route53;
|
|
|
3 |
|
|
|
4 |
use Aws\AwsClient;
|
|
|
5 |
use Aws\CommandInterface;
|
|
|
6 |
use Psr\Http\Message\RequestInterface;
|
|
|
7 |
|
|
|
8 |
/**
|
|
|
9 |
* This client is used to interact with the **Amazon Route 53** service.
|
|
|
10 |
*
|
|
|
11 |
* @method \Aws\Result activateKeySigningKey(array $args = [])
|
|
|
12 |
* @method \GuzzleHttp\Promise\Promise activateKeySigningKeyAsync(array $args = [])
|
|
|
13 |
* @method \Aws\Result associateVPCWithHostedZone(array $args = [])
|
|
|
14 |
* @method \GuzzleHttp\Promise\Promise associateVPCWithHostedZoneAsync(array $args = [])
|
|
|
15 |
* @method \Aws\Result changeCidrCollection(array $args = [])
|
|
|
16 |
* @method \GuzzleHttp\Promise\Promise changeCidrCollectionAsync(array $args = [])
|
|
|
17 |
* @method \Aws\Result changeResourceRecordSets(array $args = [])
|
|
|
18 |
* @method \GuzzleHttp\Promise\Promise changeResourceRecordSetsAsync(array $args = [])
|
|
|
19 |
* @method \Aws\Result changeTagsForResource(array $args = [])
|
|
|
20 |
* @method \GuzzleHttp\Promise\Promise changeTagsForResourceAsync(array $args = [])
|
|
|
21 |
* @method \Aws\Result createCidrCollection(array $args = [])
|
|
|
22 |
* @method \GuzzleHttp\Promise\Promise createCidrCollectionAsync(array $args = [])
|
|
|
23 |
* @method \Aws\Result createHealthCheck(array $args = [])
|
|
|
24 |
* @method \GuzzleHttp\Promise\Promise createHealthCheckAsync(array $args = [])
|
|
|
25 |
* @method \Aws\Result createHostedZone(array $args = [])
|
|
|
26 |
* @method \GuzzleHttp\Promise\Promise createHostedZoneAsync(array $args = [])
|
|
|
27 |
* @method \Aws\Result createKeySigningKey(array $args = [])
|
|
|
28 |
* @method \GuzzleHttp\Promise\Promise createKeySigningKeyAsync(array $args = [])
|
|
|
29 |
* @method \Aws\Result createQueryLoggingConfig(array $args = [])
|
|
|
30 |
* @method \GuzzleHttp\Promise\Promise createQueryLoggingConfigAsync(array $args = [])
|
|
|
31 |
* @method \Aws\Result createReusableDelegationSet(array $args = [])
|
|
|
32 |
* @method \GuzzleHttp\Promise\Promise createReusableDelegationSetAsync(array $args = [])
|
|
|
33 |
* @method \Aws\Result createTrafficPolicy(array $args = [])
|
|
|
34 |
* @method \GuzzleHttp\Promise\Promise createTrafficPolicyAsync(array $args = [])
|
|
|
35 |
* @method \Aws\Result createTrafficPolicyInstance(array $args = [])
|
|
|
36 |
* @method \GuzzleHttp\Promise\Promise createTrafficPolicyInstanceAsync(array $args = [])
|
|
|
37 |
* @method \Aws\Result createTrafficPolicyVersion(array $args = [])
|
|
|
38 |
* @method \GuzzleHttp\Promise\Promise createTrafficPolicyVersionAsync(array $args = [])
|
|
|
39 |
* @method \Aws\Result createVPCAssociationAuthorization(array $args = [])
|
|
|
40 |
* @method \GuzzleHttp\Promise\Promise createVPCAssociationAuthorizationAsync(array $args = [])
|
|
|
41 |
* @method \Aws\Result deactivateKeySigningKey(array $args = [])
|
|
|
42 |
* @method \GuzzleHttp\Promise\Promise deactivateKeySigningKeyAsync(array $args = [])
|
|
|
43 |
* @method \Aws\Result deleteCidrCollection(array $args = [])
|
|
|
44 |
* @method \GuzzleHttp\Promise\Promise deleteCidrCollectionAsync(array $args = [])
|
|
|
45 |
* @method \Aws\Result deleteHealthCheck(array $args = [])
|
|
|
46 |
* @method \GuzzleHttp\Promise\Promise deleteHealthCheckAsync(array $args = [])
|
|
|
47 |
* @method \Aws\Result deleteHostedZone(array $args = [])
|
|
|
48 |
* @method \GuzzleHttp\Promise\Promise deleteHostedZoneAsync(array $args = [])
|
|
|
49 |
* @method \Aws\Result deleteKeySigningKey(array $args = [])
|
|
|
50 |
* @method \GuzzleHttp\Promise\Promise deleteKeySigningKeyAsync(array $args = [])
|
|
|
51 |
* @method \Aws\Result deleteQueryLoggingConfig(array $args = [])
|
|
|
52 |
* @method \GuzzleHttp\Promise\Promise deleteQueryLoggingConfigAsync(array $args = [])
|
|
|
53 |
* @method \Aws\Result deleteReusableDelegationSet(array $args = [])
|
|
|
54 |
* @method \GuzzleHttp\Promise\Promise deleteReusableDelegationSetAsync(array $args = [])
|
|
|
55 |
* @method \Aws\Result deleteTrafficPolicy(array $args = [])
|
|
|
56 |
* @method \GuzzleHttp\Promise\Promise deleteTrafficPolicyAsync(array $args = [])
|
|
|
57 |
* @method \Aws\Result deleteTrafficPolicyInstance(array $args = [])
|
|
|
58 |
* @method \GuzzleHttp\Promise\Promise deleteTrafficPolicyInstanceAsync(array $args = [])
|
|
|
59 |
* @method \Aws\Result deleteVPCAssociationAuthorization(array $args = [])
|
|
|
60 |
* @method \GuzzleHttp\Promise\Promise deleteVPCAssociationAuthorizationAsync(array $args = [])
|
|
|
61 |
* @method \Aws\Result disableHostedZoneDNSSEC(array $args = [])
|
|
|
62 |
* @method \GuzzleHttp\Promise\Promise disableHostedZoneDNSSECAsync(array $args = [])
|
|
|
63 |
* @method \Aws\Result disassociateVPCFromHostedZone(array $args = [])
|
|
|
64 |
* @method \GuzzleHttp\Promise\Promise disassociateVPCFromHostedZoneAsync(array $args = [])
|
|
|
65 |
* @method \Aws\Result enableHostedZoneDNSSEC(array $args = [])
|
|
|
66 |
* @method \GuzzleHttp\Promise\Promise enableHostedZoneDNSSECAsync(array $args = [])
|
|
|
67 |
* @method \Aws\Result getAccountLimit(array $args = [])
|
|
|
68 |
* @method \GuzzleHttp\Promise\Promise getAccountLimitAsync(array $args = [])
|
|
|
69 |
* @method \Aws\Result getChange(array $args = [])
|
|
|
70 |
* @method \GuzzleHttp\Promise\Promise getChangeAsync(array $args = [])
|
|
|
71 |
* @method \Aws\Result getCheckerIpRanges(array $args = [])
|
|
|
72 |
* @method \GuzzleHttp\Promise\Promise getCheckerIpRangesAsync(array $args = [])
|
|
|
73 |
* @method \Aws\Result getDNSSEC(array $args = [])
|
|
|
74 |
* @method \GuzzleHttp\Promise\Promise getDNSSECAsync(array $args = [])
|
|
|
75 |
* @method \Aws\Result getGeoLocation(array $args = [])
|
|
|
76 |
* @method \GuzzleHttp\Promise\Promise getGeoLocationAsync(array $args = [])
|
|
|
77 |
* @method \Aws\Result getHealthCheck(array $args = [])
|
|
|
78 |
* @method \GuzzleHttp\Promise\Promise getHealthCheckAsync(array $args = [])
|
|
|
79 |
* @method \Aws\Result getHealthCheckCount(array $args = [])
|
|
|
80 |
* @method \GuzzleHttp\Promise\Promise getHealthCheckCountAsync(array $args = [])
|
|
|
81 |
* @method \Aws\Result getHealthCheckLastFailureReason(array $args = [])
|
|
|
82 |
* @method \GuzzleHttp\Promise\Promise getHealthCheckLastFailureReasonAsync(array $args = [])
|
|
|
83 |
* @method \Aws\Result getHealthCheckStatus(array $args = [])
|
|
|
84 |
* @method \GuzzleHttp\Promise\Promise getHealthCheckStatusAsync(array $args = [])
|
|
|
85 |
* @method \Aws\Result getHostedZone(array $args = [])
|
|
|
86 |
* @method \GuzzleHttp\Promise\Promise getHostedZoneAsync(array $args = [])
|
|
|
87 |
* @method \Aws\Result getHostedZoneCount(array $args = [])
|
|
|
88 |
* @method \GuzzleHttp\Promise\Promise getHostedZoneCountAsync(array $args = [])
|
|
|
89 |
* @method \Aws\Result getHostedZoneLimit(array $args = [])
|
|
|
90 |
* @method \GuzzleHttp\Promise\Promise getHostedZoneLimitAsync(array $args = [])
|
|
|
91 |
* @method \Aws\Result getQueryLoggingConfig(array $args = [])
|
|
|
92 |
* @method \GuzzleHttp\Promise\Promise getQueryLoggingConfigAsync(array $args = [])
|
|
|
93 |
* @method \Aws\Result getReusableDelegationSet(array $args = [])
|
|
|
94 |
* @method \GuzzleHttp\Promise\Promise getReusableDelegationSetAsync(array $args = [])
|
|
|
95 |
* @method \Aws\Result getReusableDelegationSetLimit(array $args = [])
|
|
|
96 |
* @method \GuzzleHttp\Promise\Promise getReusableDelegationSetLimitAsync(array $args = [])
|
|
|
97 |
* @method \Aws\Result getTrafficPolicy(array $args = [])
|
|
|
98 |
* @method \GuzzleHttp\Promise\Promise getTrafficPolicyAsync(array $args = [])
|
|
|
99 |
* @method \Aws\Result getTrafficPolicyInstance(array $args = [])
|
|
|
100 |
* @method \GuzzleHttp\Promise\Promise getTrafficPolicyInstanceAsync(array $args = [])
|
|
|
101 |
* @method \Aws\Result getTrafficPolicyInstanceCount(array $args = [])
|
|
|
102 |
* @method \GuzzleHttp\Promise\Promise getTrafficPolicyInstanceCountAsync(array $args = [])
|
|
|
103 |
* @method \Aws\Result listCidrBlocks(array $args = [])
|
|
|
104 |
* @method \GuzzleHttp\Promise\Promise listCidrBlocksAsync(array $args = [])
|
|
|
105 |
* @method \Aws\Result listCidrCollections(array $args = [])
|
|
|
106 |
* @method \GuzzleHttp\Promise\Promise listCidrCollectionsAsync(array $args = [])
|
|
|
107 |
* @method \Aws\Result listCidrLocations(array $args = [])
|
|
|
108 |
* @method \GuzzleHttp\Promise\Promise listCidrLocationsAsync(array $args = [])
|
|
|
109 |
* @method \Aws\Result listGeoLocations(array $args = [])
|
|
|
110 |
* @method \GuzzleHttp\Promise\Promise listGeoLocationsAsync(array $args = [])
|
|
|
111 |
* @method \Aws\Result listHealthChecks(array $args = [])
|
|
|
112 |
* @method \GuzzleHttp\Promise\Promise listHealthChecksAsync(array $args = [])
|
|
|
113 |
* @method \Aws\Result listHostedZones(array $args = [])
|
|
|
114 |
* @method \GuzzleHttp\Promise\Promise listHostedZonesAsync(array $args = [])
|
|
|
115 |
* @method \Aws\Result listHostedZonesByName(array $args = [])
|
|
|
116 |
* @method \GuzzleHttp\Promise\Promise listHostedZonesByNameAsync(array $args = [])
|
|
|
117 |
* @method \Aws\Result listHostedZonesByVPC(array $args = [])
|
|
|
118 |
* @method \GuzzleHttp\Promise\Promise listHostedZonesByVPCAsync(array $args = [])
|
|
|
119 |
* @method \Aws\Result listQueryLoggingConfigs(array $args = [])
|
|
|
120 |
* @method \GuzzleHttp\Promise\Promise listQueryLoggingConfigsAsync(array $args = [])
|
|
|
121 |
* @method \Aws\Result listResourceRecordSets(array $args = [])
|
|
|
122 |
* @method \GuzzleHttp\Promise\Promise listResourceRecordSetsAsync(array $args = [])
|
|
|
123 |
* @method \Aws\Result listReusableDelegationSets(array $args = [])
|
|
|
124 |
* @method \GuzzleHttp\Promise\Promise listReusableDelegationSetsAsync(array $args = [])
|
|
|
125 |
* @method \Aws\Result listTagsForResource(array $args = [])
|
|
|
126 |
* @method \GuzzleHttp\Promise\Promise listTagsForResourceAsync(array $args = [])
|
|
|
127 |
* @method \Aws\Result listTagsForResources(array $args = [])
|
|
|
128 |
* @method \GuzzleHttp\Promise\Promise listTagsForResourcesAsync(array $args = [])
|
|
|
129 |
* @method \Aws\Result listTrafficPolicies(array $args = [])
|
|
|
130 |
* @method \GuzzleHttp\Promise\Promise listTrafficPoliciesAsync(array $args = [])
|
|
|
131 |
* @method \Aws\Result listTrafficPolicyInstances(array $args = [])
|
|
|
132 |
* @method \GuzzleHttp\Promise\Promise listTrafficPolicyInstancesAsync(array $args = [])
|
|
|
133 |
* @method \Aws\Result listTrafficPolicyInstancesByHostedZone(array $args = [])
|
|
|
134 |
* @method \GuzzleHttp\Promise\Promise listTrafficPolicyInstancesByHostedZoneAsync(array $args = [])
|
|
|
135 |
* @method \Aws\Result listTrafficPolicyInstancesByPolicy(array $args = [])
|
|
|
136 |
* @method \GuzzleHttp\Promise\Promise listTrafficPolicyInstancesByPolicyAsync(array $args = [])
|
|
|
137 |
* @method \Aws\Result listTrafficPolicyVersions(array $args = [])
|
|
|
138 |
* @method \GuzzleHttp\Promise\Promise listTrafficPolicyVersionsAsync(array $args = [])
|
|
|
139 |
* @method \Aws\Result listVPCAssociationAuthorizations(array $args = [])
|
|
|
140 |
* @method \GuzzleHttp\Promise\Promise listVPCAssociationAuthorizationsAsync(array $args = [])
|
|
|
141 |
* @method \Aws\Result testDNSAnswer(array $args = [])
|
|
|
142 |
* @method \GuzzleHttp\Promise\Promise testDNSAnswerAsync(array $args = [])
|
|
|
143 |
* @method \Aws\Result updateHealthCheck(array $args = [])
|
|
|
144 |
* @method \GuzzleHttp\Promise\Promise updateHealthCheckAsync(array $args = [])
|
|
|
145 |
* @method \Aws\Result updateHostedZoneComment(array $args = [])
|
|
|
146 |
* @method \GuzzleHttp\Promise\Promise updateHostedZoneCommentAsync(array $args = [])
|
|
|
147 |
* @method \Aws\Result updateTrafficPolicyComment(array $args = [])
|
|
|
148 |
* @method \GuzzleHttp\Promise\Promise updateTrafficPolicyCommentAsync(array $args = [])
|
|
|
149 |
* @method \Aws\Result updateTrafficPolicyInstance(array $args = [])
|
|
|
150 |
* @method \GuzzleHttp\Promise\Promise updateTrafficPolicyInstanceAsync(array $args = [])
|
|
|
151 |
*/
|
|
|
152 |
class Route53Client extends AwsClient
|
|
|
153 |
{
|
|
|
154 |
public function __construct(array $args)
|
|
|
155 |
{
|
|
|
156 |
parent::__construct($args);
|
|
|
157 |
$this->getHandlerList()->appendInit($this->cleanIdFn(), 'route53.clean_id');
|
|
|
158 |
}
|
|
|
159 |
|
|
|
160 |
private function cleanIdFn()
|
|
|
161 |
{
|
|
|
162 |
return function (callable $handler) {
|
|
|
163 |
return function (CommandInterface $c, RequestInterface $r = null) use ($handler) {
|
|
|
164 |
foreach (['Id', 'HostedZoneId', 'DelegationSetId'] as $clean) {
|
|
|
165 |
if ($c->hasParam($clean)) {
|
|
|
166 |
$c[$clean] = $this->cleanId($c[$clean]);
|
|
|
167 |
}
|
|
|
168 |
}
|
|
|
169 |
return $handler($c, $r);
|
|
|
170 |
};
|
|
|
171 |
};
|
|
|
172 |
}
|
|
|
173 |
|
|
|
174 |
private function cleanId($id)
|
|
|
175 |
{
|
|
|
176 |
static $toClean = ['/hostedzone/', '/change/', '/delegationset/'];
|
|
|
177 |
|
|
|
178 |
return str_replace($toClean, '', $id);
|
|
|
179 |
}
|
|
|
180 |
}
|