diff --git a/.changes/nextrelease/apigateway_v2_alias.json b/.changes/nextrelease/apigateway_v2_alias.json new file mode 100644 index 0000000000..fea51113da --- /dev/null +++ b/.changes/nextrelease/apigateway_v2_alias.json @@ -0,0 +1,7 @@ +[ + { + "type": "enhancement", + "category": "ApiGatewayV2", + "description": "Adds an alias 'GetApiResource' for the 'GetApi' operation to avoid a naming conflict with the generic AwsClient 'GetApi' method." + } +] diff --git a/src/ApiGatewayV2/ApiGatewayV2Client.php b/src/ApiGatewayV2/ApiGatewayV2Client.php index c5ae91e49c..5f0500197a 100644 --- a/src/ApiGatewayV2/ApiGatewayV2Client.php +++ b/src/ApiGatewayV2/ApiGatewayV2Client.php @@ -53,8 +53,8 @@ * @method \GuzzleHttp\Promise\Promise deleteRouteSettingsAsync(array $args = []) * @method \Aws\Result deleteStage(array $args = []) * @method \GuzzleHttp\Promise\Promise deleteStageAsync(array $args = []) - * @method \Aws\Result getApi(array $args = []) - * @method \GuzzleHttp\Promise\Promise getApiAsync(array $args = []) + * @method \Aws\Result getApiResource(array $args = []) + * @method \GuzzleHttp\Promise\Promise getApiResourceAsync(array $args = []) * @method \Aws\Result getApiMapping(array $args = []) * @method \GuzzleHttp\Promise\Promise getApiMappingAsync(array $args = []) * @method \Aws\Result getApiMappings(array $args = []) diff --git a/src/data/aliases.json b/src/data/aliases.json index 2637851391..2b8ab3f1e6 100644 --- a/src/data/aliases.json +++ b/src/data/aliases.json @@ -1,5 +1,10 @@ { "operations": { + "ApiGatewayV2": { + "2018-11-29": { + "GetApi": "GetApiResource" + } + }, "CloudHSM": { "2014-05-30": { "GetConfig": "GetConfigFiles" diff --git a/src/data/aliases.json.php b/src/data/aliases.json.php index e36ecf0820..b6270471d0 100644 --- a/src/data/aliases.json.php +++ b/src/data/aliases.json.php @@ -1,3 +1,3 @@ [ 'CloudHSM' => [ '2014-05-30' => [ 'GetConfig' => 'GetConfigFiles', ], ], 'GroundStation' => [ '2019-05-23' => [ 'GetConfig' => 'GetMissionProfileConfig', ], ], 'Pinpoint' => [ '2016-12-01' => [ 'GetEndpoint' => 'GetUserEndpoint', 'UpdateEndpoint' => 'UpdateUserEndpoint', 'UpdateEndpointsBatch' => 'UpdateUserEndpointsBatch', ], ], ],]; +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', ], ], ],];