aws-sdk-apigateway 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws-sdk-apigateway.rb +1 -1
- data/lib/aws-sdk-apigateway/client.rb +30 -2
- data/lib/aws-sdk-apigateway/client_api.rb +2 -0
- data/lib/aws-sdk-apigateway/types.rb +31 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e7cee9c18525c2f0d8db0f6e95456de656f97aa
|
4
|
+
data.tar.gz: 446f6177ef2604e8ed10f7144b292ff12aa46357
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d33ca7f91ed4a14690ff78f8cd196cacffb948c763e297948d4118c3363f976944bf8d2b0ff63a79f1bcc5e17a7c90ffb4eb5fc76f2aa5d6e68129fd6bb68e48
|
7
|
+
data.tar.gz: 2bbc3a5496828f68fb7e0d51a3c8e99baef4deda617a6ee34fa0eb9e623e635038bc702530919a2490c09980fd734b5dbce94fcec36c22c00f87d8cf5b2615b0
|
data/lib/aws-sdk-apigateway.rb
CHANGED
@@ -858,6 +858,8 @@ module Aws::APIGateway
|
|
858
858
|
# resp.resource_methods["String"].method_integration.integration_responses["String"].response_templates #=> Hash
|
859
859
|
# resp.resource_methods["String"].method_integration.integration_responses["String"].response_templates["String"] #=> String
|
860
860
|
# resp.resource_methods["String"].method_integration.integration_responses["String"].content_handling #=> String, one of "CONVERT_TO_BINARY", "CONVERT_TO_TEXT"
|
861
|
+
# resp.resource_methods["String"].authorization_scopes #=> Array
|
862
|
+
# resp.resource_methods["String"].authorization_scopes[0] #=> String
|
861
863
|
#
|
862
864
|
# @overload create_resource(params = {})
|
863
865
|
# @param [Hash] params ({})
|
@@ -2888,6 +2890,7 @@ module Aws::APIGateway
|
|
2888
2890
|
# * {Types::Method#request_models #request_models} => Hash<String,String>
|
2889
2891
|
# * {Types::Method#method_responses #method_responses} => Hash<String,Types::MethodResponse>
|
2890
2892
|
# * {Types::Method#method_integration #method_integration} => Types::Integration
|
2893
|
+
# * {Types::Method#authorization_scopes #authorization_scopes} => Array<String>
|
2891
2894
|
#
|
2892
2895
|
# @example Request syntax with placeholder values
|
2893
2896
|
#
|
@@ -2939,6 +2942,8 @@ module Aws::APIGateway
|
|
2939
2942
|
# resp.method_integration.integration_responses["String"].response_templates #=> Hash
|
2940
2943
|
# resp.method_integration.integration_responses["String"].response_templates["String"] #=> String
|
2941
2944
|
# resp.method_integration.integration_responses["String"].content_handling #=> String, one of "CONVERT_TO_BINARY", "CONVERT_TO_TEXT"
|
2945
|
+
# resp.authorization_scopes #=> Array
|
2946
|
+
# resp.authorization_scopes[0] #=> String
|
2942
2947
|
#
|
2943
2948
|
# @overload get_method(params = {})
|
2944
2949
|
# @param [Hash] params ({})
|
@@ -3264,6 +3269,8 @@ module Aws::APIGateway
|
|
3264
3269
|
# resp.resource_methods["String"].method_integration.integration_responses["String"].response_templates #=> Hash
|
3265
3270
|
# resp.resource_methods["String"].method_integration.integration_responses["String"].response_templates["String"] #=> String
|
3266
3271
|
# resp.resource_methods["String"].method_integration.integration_responses["String"].content_handling #=> String, one of "CONVERT_TO_BINARY", "CONVERT_TO_TEXT"
|
3272
|
+
# resp.resource_methods["String"].authorization_scopes #=> Array
|
3273
|
+
# resp.resource_methods["String"].authorization_scopes[0] #=> String
|
3267
3274
|
#
|
3268
3275
|
# @overload get_resource(params = {})
|
3269
3276
|
# @param [Hash] params ({})
|
@@ -3356,6 +3363,8 @@ module Aws::APIGateway
|
|
3356
3363
|
# resp.items[0].resource_methods["String"].method_integration.integration_responses["String"].response_templates #=> Hash
|
3357
3364
|
# resp.items[0].resource_methods["String"].method_integration.integration_responses["String"].response_templates["String"] #=> String
|
3358
3365
|
# resp.items[0].resource_methods["String"].method_integration.integration_responses["String"].content_handling #=> String, one of "CONVERT_TO_BINARY", "CONVERT_TO_TEXT"
|
3366
|
+
# resp.items[0].resource_methods["String"].authorization_scopes #=> Array
|
3367
|
+
# resp.items[0].resource_methods["String"].authorization_scopes[0] #=> String
|
3359
3368
|
#
|
3360
3369
|
# @overload get_resources(params = {})
|
3361
3370
|
# @param [Hash] params ({})
|
@@ -4327,7 +4336,7 @@ module Aws::APIGateway
|
|
4327
4336
|
# The type of the network connection to the integration endpoint. The
|
4328
4337
|
# valid value is `INTERNET` for connections through the public routable
|
4329
4338
|
# internet or `VPC_LINK` for private connections between API Gateway and
|
4330
|
-
#
|
4339
|
+
# a network load balancer in a VPC. The default value is `INTERNET`.
|
4331
4340
|
#
|
4332
4341
|
# @option params [String] :connection_id
|
4333
4342
|
# The ([`id`][1]) of the VpcLink used for the integration when
|
@@ -4622,6 +4631,16 @@ module Aws::APIGateway
|
|
4622
4631
|
# The identifier of a RequestValidator for validating the method
|
4623
4632
|
# request.
|
4624
4633
|
#
|
4634
|
+
# @option params [Array<String>] :authorization_scopes
|
4635
|
+
# A list authorization scopes configured on the method used with a
|
4636
|
+
# `COGNITO_USER_POOL` authorizer to authorize the method invocation by
|
4637
|
+
# matching them against the scopes parsed from the access token in the
|
4638
|
+
# incoming request. The method invocation is authorized if any method
|
4639
|
+
# scopes matches a claimed scope in the access token. Otherwise, the
|
4640
|
+
# invocation is not authorized. When the method scope is configured, the
|
4641
|
+
# client must provide an access token instead of an identity token for
|
4642
|
+
# authorizatinon purposes.
|
4643
|
+
#
|
4625
4644
|
# @return [Types::Method] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4626
4645
|
#
|
4627
4646
|
# * {Types::Method#http_method #http_method} => String
|
@@ -4634,6 +4653,7 @@ module Aws::APIGateway
|
|
4634
4653
|
# * {Types::Method#request_models #request_models} => Hash<String,String>
|
4635
4654
|
# * {Types::Method#method_responses #method_responses} => Hash<String,Types::MethodResponse>
|
4636
4655
|
# * {Types::Method#method_integration #method_integration} => Types::Integration
|
4656
|
+
# * {Types::Method#authorization_scopes #authorization_scopes} => Array<String>
|
4637
4657
|
#
|
4638
4658
|
# @example Request syntax with placeholder values
|
4639
4659
|
#
|
@@ -4652,6 +4672,7 @@ module Aws::APIGateway
|
|
4652
4672
|
# "String" => "String",
|
4653
4673
|
# },
|
4654
4674
|
# request_validator_id: "String",
|
4675
|
+
# authorization_scopes: ["String"],
|
4655
4676
|
# })
|
4656
4677
|
#
|
4657
4678
|
# @example Response structure
|
@@ -4696,6 +4717,8 @@ module Aws::APIGateway
|
|
4696
4717
|
# resp.method_integration.integration_responses["String"].response_templates #=> Hash
|
4697
4718
|
# resp.method_integration.integration_responses["String"].response_templates["String"] #=> String
|
4698
4719
|
# resp.method_integration.integration_responses["String"].content_handling #=> String, one of "CONVERT_TO_BINARY", "CONVERT_TO_TEXT"
|
4720
|
+
# resp.authorization_scopes #=> Array
|
4721
|
+
# resp.authorization_scopes[0] #=> String
|
4699
4722
|
#
|
4700
4723
|
# @overload put_method(params = {})
|
4701
4724
|
# @param [Hash] params ({})
|
@@ -5713,6 +5736,7 @@ module Aws::APIGateway
|
|
5713
5736
|
# * {Types::Method#request_models #request_models} => Hash<String,String>
|
5714
5737
|
# * {Types::Method#method_responses #method_responses} => Hash<String,Types::MethodResponse>
|
5715
5738
|
# * {Types::Method#method_integration #method_integration} => Types::Integration
|
5739
|
+
# * {Types::Method#authorization_scopes #authorization_scopes} => Array<String>
|
5716
5740
|
#
|
5717
5741
|
# @example Request syntax with placeholder values
|
5718
5742
|
#
|
@@ -5772,6 +5796,8 @@ module Aws::APIGateway
|
|
5772
5796
|
# resp.method_integration.integration_responses["String"].response_templates #=> Hash
|
5773
5797
|
# resp.method_integration.integration_responses["String"].response_templates["String"] #=> String
|
5774
5798
|
# resp.method_integration.integration_responses["String"].content_handling #=> String, one of "CONVERT_TO_BINARY", "CONVERT_TO_TEXT"
|
5799
|
+
# resp.authorization_scopes #=> Array
|
5800
|
+
# resp.authorization_scopes[0] #=> String
|
5775
5801
|
#
|
5776
5802
|
# @overload update_method(params = {})
|
5777
5803
|
# @param [Hash] params ({})
|
@@ -6016,6 +6042,8 @@ module Aws::APIGateway
|
|
6016
6042
|
# resp.resource_methods["String"].method_integration.integration_responses["String"].response_templates #=> Hash
|
6017
6043
|
# resp.resource_methods["String"].method_integration.integration_responses["String"].response_templates["String"] #=> String
|
6018
6044
|
# resp.resource_methods["String"].method_integration.integration_responses["String"].content_handling #=> String, one of "CONVERT_TO_BINARY", "CONVERT_TO_TEXT"
|
6045
|
+
# resp.resource_methods["String"].authorization_scopes #=> Array
|
6046
|
+
# resp.resource_methods["String"].authorization_scopes[0] #=> String
|
6019
6047
|
#
|
6020
6048
|
# @overload update_resource(params = {})
|
6021
6049
|
# @param [Hash] params ({})
|
@@ -6336,7 +6364,7 @@ module Aws::APIGateway
|
|
6336
6364
|
params: params,
|
6337
6365
|
config: config)
|
6338
6366
|
context[:gem_name] = 'aws-sdk-apigateway'
|
6339
|
-
context[:gem_version] = '1.
|
6367
|
+
context[:gem_version] = '1.8.0'
|
6340
6368
|
Seahorse::Client::Request.new(handlers, context)
|
6341
6369
|
end
|
6342
6370
|
|
@@ -979,6 +979,7 @@ module Aws::APIGateway
|
|
979
979
|
Method.add_member(:request_models, Shapes::ShapeRef.new(shape: MapOfStringToString, location_name: "requestModels"))
|
980
980
|
Method.add_member(:method_responses, Shapes::ShapeRef.new(shape: MapOfMethodResponse, location_name: "methodResponses"))
|
981
981
|
Method.add_member(:method_integration, Shapes::ShapeRef.new(shape: Integration, location_name: "methodIntegration"))
|
982
|
+
Method.add_member(:authorization_scopes, Shapes::ShapeRef.new(shape: ListOfString, location_name: "authorizationScopes"))
|
982
983
|
Method.struct_class = Types::Method
|
983
984
|
|
984
985
|
MethodResponse.add_member(:status_code, Shapes::ShapeRef.new(shape: StatusCode, location_name: "statusCode"))
|
@@ -1067,6 +1068,7 @@ module Aws::APIGateway
|
|
1067
1068
|
PutMethodRequest.add_member(:request_parameters, Shapes::ShapeRef.new(shape: MapOfStringToBoolean, location_name: "requestParameters"))
|
1068
1069
|
PutMethodRequest.add_member(:request_models, Shapes::ShapeRef.new(shape: MapOfStringToString, location_name: "requestModels"))
|
1069
1070
|
PutMethodRequest.add_member(:request_validator_id, Shapes::ShapeRef.new(shape: String, location_name: "requestValidatorId"))
|
1071
|
+
PutMethodRequest.add_member(:authorization_scopes, Shapes::ShapeRef.new(shape: ListOfString, location_name: "authorizationScopes"))
|
1070
1072
|
PutMethodRequest.struct_class = Types::PutMethodRequest
|
1071
1073
|
|
1072
1074
|
PutMethodResponseRequest.add_member(:rest_api_id, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "restapi_id"))
|
@@ -2531,7 +2531,7 @@ module Aws::APIGateway
|
|
2531
2531
|
# ##### Request
|
2532
2532
|
#
|
2533
2533
|
# This example shows how to get a gateway response of the
|
2534
|
-
# `
|
2534
|
+
# `MISSING_AUTHENTICATION_TOKEN` type.
|
2535
2535
|
#
|
2536
2536
|
# GET /restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN HTTP/1.1 Host: beta-apigateway.us-east-1.amazonaws.com Content-Type: application/json X-Amz-Date: 20170503T202516Z Authorization: AWS4-HMAC-SHA256 Credential=\{access-key-id\}/20170503/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=1b52460e3159c1a26cff29093855d50ea141c1c5b937528fecaf60f51129697a Cache-Control: no-cache Postman-Token: 3b2a1ce9-c848-2e26-2e2f-9c2caefbed45
|
2537
2537
|
#
|
@@ -4278,7 +4278,7 @@ module Aws::APIGateway
|
|
4278
4278
|
# The type of the network connection to the integration endpoint. The
|
4279
4279
|
# valid value is `INTERNET` for connections through the public
|
4280
4280
|
# routable internet or `VPC_LINK` for private connections between API
|
4281
|
-
# Gateway and
|
4281
|
+
# Gateway and a network load balancer in a VPC. The default value is
|
4282
4282
|
# `INTERNET`.
|
4283
4283
|
# @return [String]
|
4284
4284
|
#
|
@@ -4682,6 +4682,17 @@ module Aws::APIGateway
|
|
4682
4682
|
# [1]: http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-integration.html
|
4683
4683
|
# @return [Types::Integration]
|
4684
4684
|
#
|
4685
|
+
# @!attribute [rw] authorization_scopes
|
4686
|
+
# A list authorization scopes configured on the method used with a
|
4687
|
+
# `COGNITO_USER_POOL` authorizer to authorize the method invocation by
|
4688
|
+
# matching them against the scopes parsed from the access token in the
|
4689
|
+
# incoming request. The method invocation is authorized if any method
|
4690
|
+
# scopes matches a claimed scope in the access token. Otherwise, the
|
4691
|
+
# invocation is not authorized. When the method scope is configured,
|
4692
|
+
# the client must provide an access token instead of an identity token
|
4693
|
+
# for authorizatinon purposes.
|
4694
|
+
# @return [Array<String>]
|
4695
|
+
#
|
4685
4696
|
class Method < Struct.new(
|
4686
4697
|
:http_method,
|
4687
4698
|
:authorization_type,
|
@@ -4692,7 +4703,8 @@ module Aws::APIGateway
|
|
4692
4703
|
:request_parameters,
|
4693
4704
|
:request_models,
|
4694
4705
|
:method_responses,
|
4695
|
-
:method_integration
|
4706
|
+
:method_integration,
|
4707
|
+
:authorization_scopes)
|
4696
4708
|
include Aws::Structure
|
4697
4709
|
end
|
4698
4710
|
|
@@ -5185,7 +5197,7 @@ module Aws::APIGateway
|
|
5185
5197
|
# The type of the network connection to the integration endpoint. The
|
5186
5198
|
# valid value is `INTERNET` for connections through the public
|
5187
5199
|
# routable internet or `VPC_LINK` for private connections between API
|
5188
|
-
# Gateway and
|
5200
|
+
# Gateway and a network load balancer in a VPC. The default value is
|
5189
5201
|
# `INTERNET`.
|
5190
5202
|
# @return [String]
|
5191
5203
|
#
|
@@ -5398,6 +5410,7 @@ module Aws::APIGateway
|
|
5398
5410
|
# "String" => "String",
|
5399
5411
|
# },
|
5400
5412
|
# request_validator_id: "String",
|
5413
|
+
# authorization_scopes: ["String"],
|
5401
5414
|
# }
|
5402
5415
|
#
|
5403
5416
|
# @!attribute [rw] rest_api_id
|
@@ -5462,6 +5475,17 @@ module Aws::APIGateway
|
|
5462
5475
|
# request.
|
5463
5476
|
# @return [String]
|
5464
5477
|
#
|
5478
|
+
# @!attribute [rw] authorization_scopes
|
5479
|
+
# A list authorization scopes configured on the method used with a
|
5480
|
+
# `COGNITO_USER_POOL` authorizer to authorize the method invocation by
|
5481
|
+
# matching them against the scopes parsed from the access token in the
|
5482
|
+
# incoming request. The method invocation is authorized if any method
|
5483
|
+
# scopes matches a claimed scope in the access token. Otherwise, the
|
5484
|
+
# invocation is not authorized. When the method scope is configured,
|
5485
|
+
# the client must provide an access token instead of an identity token
|
5486
|
+
# for authorizatinon purposes.
|
5487
|
+
# @return [Array<String>]
|
5488
|
+
#
|
5465
5489
|
class PutMethodRequest < Struct.new(
|
5466
5490
|
:rest_api_id,
|
5467
5491
|
:resource_id,
|
@@ -5472,7 +5496,8 @@ module Aws::APIGateway
|
|
5472
5496
|
:operation_name,
|
5473
5497
|
:request_parameters,
|
5474
5498
|
:request_models,
|
5475
|
-
:request_validator_id
|
5499
|
+
:request_validator_id,
|
5500
|
+
:authorization_scopes)
|
5476
5501
|
include Aws::Structure
|
5477
5502
|
end
|
5478
5503
|
|
@@ -7439,7 +7464,7 @@ module Aws::APIGateway
|
|
7439
7464
|
# through Amazon API Gateway, you, as an API developer, create a VpcLink
|
7440
7465
|
# resource targeted for one or more network load balancers of the VPC
|
7441
7466
|
# and then integrate an API method with a private integration that uses
|
7442
|
-
# the VpcLink. The private
|
7467
|
+
# the VpcLink. The private integration has an integration type of `HTTP`
|
7443
7468
|
# or `HTTP_PROXY` and has a connection type of `VPC_LINK`. The
|
7444
7469
|
# integration uses the `connectionId` property to identify the VpcLink
|
7445
7470
|
# used.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-apigateway
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|