Skip to content

Commit f2b9a0a

Browse files
authored
bugfix: update operation aliases (#3195)
1 parent 20facd0 commit f2b9a0a

8 files changed

Lines changed: 44 additions & 12 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[
2+
{
3+
"type": "bugfix",
4+
"category": "",
5+
"description": "fixes #3194 and adds operations aliases for operation names that collide with `AwsClient` operation names."
6+
}
7+
]

src/AmplifyBackend/AmplifyBackendClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
* @method \GuzzleHttp\Promise\Promise getBackendJobAsync(array $args = [])
4444
* @method \Aws\Result getBackendStorage(array $args = [])
4545
* @method \GuzzleHttp\Promise\Promise getBackendStorageAsync(array $args = [])
46-
* @method \Aws\Result getToken(array $args = [])
47-
* @method \GuzzleHttp\Promise\Promise getTokenAsync(array $args = [])
46+
* @method \Aws\Result getChallengeToken(array $args = [])
47+
* @method \GuzzleHttp\Promise\Promise getChallengeTokenAsync(array $args = [])
4848
* @method \Aws\Result importBackendAuth(array $args = [])
4949
* @method \GuzzleHttp\Promise\Promise importBackendAuthAsync(array $args = [])
5050
* @method \Aws\Result importBackendStorage(array $args = [])

src/AppSync/AppSyncClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
* @method \GuzzleHttp\Promise\Promise evaluateMappingTemplateAsync(array $args = [])
6464
* @method \Aws\Result flushApiCache(array $args = [])
6565
* @method \GuzzleHttp\Promise\Promise flushApiCacheAsync(array $args = [])
66-
* @method \Aws\Result getApi(array $args = [])
67-
* @method \GuzzleHttp\Promise\Promise getApiAsync(array $args = [])
66+
* @method \Aws\Result getApiResource(array $args = [])
67+
* @method \GuzzleHttp\Promise\Promise getApiResourceAsync(array $args = [])
6868
* @method \Aws\Result getApiAssociation(array $args = [])
6969
* @method \GuzzleHttp\Promise\Promise getApiAssociationAsync(array $args = [])
7070
* @method \Aws\Result getApiCache(array $args = [])

src/IoTDeviceAdvisor/IoTDeviceAdvisorClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
* @method \GuzzleHttp\Promise\Promise createSuiteDefinitionAsync(array $args = [])
1010
* @method \Aws\Result deleteSuiteDefinition(array $args = [])
1111
* @method \GuzzleHttp\Promise\Promise deleteSuiteDefinitionAsync(array $args = [])
12-
* @method \Aws\Result getEndpoint(array $args = [])
13-
* @method \GuzzleHttp\Promise\Promise getEndpointAsync(array $args = [])
12+
* @method \Aws\Result getDeviceAdvisorEndpoint(array $args = [])
13+
* @method \GuzzleHttp\Promise\Promise getDeviceAdvisorEndpointAsync(array $args = [])
1414
* @method \Aws\Result getSuiteDefinition(array $args = [])
1515
* @method \GuzzleHttp\Promise\Promise getSuiteDefinitionAsync(array $args = [])
1616
* @method \Aws\Result getSuiteRun(array $args = [])

src/Iot/IotClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,8 @@
268268
* @method \GuzzleHttp\Promise\Promise getBucketsAggregationAsync(array $args = [])
269269
* @method \Aws\Result getCardinality(array $args = [])
270270
* @method \GuzzleHttp\Promise\Promise getCardinalityAsync(array $args = [])
271-
* @method \Aws\Result getCommand(array $args = [])
272-
* @method \GuzzleHttp\Promise\Promise getCommandAsync(array $args = [])
271+
* @method \Aws\Result getDeviceCommand(array $args = [])
272+
* @method \GuzzleHttp\Promise\Promise getDeviceCommandAsync(array $args = [])
273273
* @method \Aws\Result getCommandExecution(array $args = [])
274274
* @method \GuzzleHttp\Promise\Promise getCommandExecutionAsync(array $args = [])
275275
* @method \Aws\Result getEffectivePolicies(array $args = [])

src/RedshiftServerless/RedshiftServerlessClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
* @method \GuzzleHttp\Promise\Promise deleteUsageLimitAsync(array $args = [])
4444
* @method \Aws\Result deleteWorkgroup(array $args = [])
4545
* @method \GuzzleHttp\Promise\Promise deleteWorkgroupAsync(array $args = [])
46-
* @method \Aws\Result getCredentials(array $args = [])
47-
* @method \GuzzleHttp\Promise\Promise getCredentialsAsync(array $args = [])
46+
* @method \Aws\Result getDbCredentials(array $args = [])
47+
* @method \GuzzleHttp\Promise\Promise getDbCredentialsAsync(array $args = [])
4848
* @method \Aws\Result getCustomDomainAssociation(array $args = [])
4949
* @method \GuzzleHttp\Promise\Promise getCustomDomainAssociationAsync(array $args = [])
5050
* @method \Aws\Result getEndpointAccess(array $args = [])

src/data/aliases.json

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,31 @@
2121
"UpdateEndpoint": "UpdateUserEndpoint",
2222
"UpdateEndpointsBatch": "UpdateUserEndpointsBatch"
2323
}
24+
},
25+
"AppSync": {
26+
"2017-07-25": {
27+
"GetApi": "GetApiResource"
28+
}
29+
},
30+
"AmplifyBackend": {
31+
"2020-08-11": {
32+
"GetToken": "GetChallengeToken"
33+
}
34+
},
35+
"IotDeviceAdvisor": {
36+
"2020-09-18": {
37+
"GetEndpoint": "GetDeviceAdvisorEndpoint"
38+
}
39+
},
40+
"IoT": {
41+
"2015-05-28": {
42+
"GetCommand": "GetDeviceCommand"
43+
}
44+
},
45+
"Redshift Serverless": {
46+
"2021-04-21": {
47+
"GetCredentials": "GetDbCredentials"
48+
}
2449
}
2550
}
26-
}
51+
}

src/data/aliases.json.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22
// This file was auto-generated from sdk-root/src/data/aliases.json
3-
return [ 'operations' => [ 'ApiGatewayV2' => [ '2018-11-29' => [ 'GetApi' => 'GetApiResource', ], ], 'CloudHSM' => [ '2014-05-30' => [ 'GetConfig' => 'GetConfigFiles', ], ], 'GroundStation' => [ '2019-05-23' => [ 'GetConfig' => 'GetMissionProfileConfig', ], ], 'Pinpoint' => [ '2016-12-01' => [ 'GetEndpoint' => 'GetUserEndpoint', 'UpdateEndpoint' => 'UpdateUserEndpoint', 'UpdateEndpointsBatch' => 'UpdateUserEndpointsBatch', ], ], ],];
3+
return [ 'operations' => [ 'ApiGatewayV2' => [ '2018-11-29' => [ 'GetApi' => 'GetApiResource', ], ], 'CloudHSM' => [ '2014-05-30' => [ 'GetConfig' => 'GetConfigFiles', ], ], 'GroundStation' => [ '2019-05-23' => [ 'GetConfig' => 'GetMissionProfileConfig', ], ], 'Pinpoint' => [ '2016-12-01' => [ 'GetEndpoint' => 'GetUserEndpoint', 'UpdateEndpoint' => 'UpdateUserEndpoint', 'UpdateEndpointsBatch' => 'UpdateUserEndpointsBatch', ], ], 'AppSync' => [ '2017-07-25' => [ 'GetApi' => 'GetApiResource', ], ], 'AmplifyBackend' => [ '2020-08-11' => [ 'GetToken' => 'GetChallengeToken', ], ], 'IotDeviceAdvisor' => [ '2020-09-18' => [ 'GetEndpoint' => 'GetDeviceAdvisorEndpoint', ], ], 'IoT' => [ '2015-05-28' => [ 'GetCommand' => 'GetDeviceCommand', ], ], 'Redshift Serverless' => [ '2021-04-21' => [ 'GetCredentials' => 'GetDbCredentials', ], ], ],];

0 commit comments

Comments
 (0)