aws-sdk-apigatewayv2 1.18.0 → 1.19.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: aebd371bb19515e8e8a3c602b71263b6acc69f20
4
- data.tar.gz: 5a94ac83df76e7659c7a4d060dc3ba06c28ad19f
2
+ SHA256:
3
+ metadata.gz: cd6b4896f47617d3a53887107e3f5ebbda51f89c46f6e2bfb1d8d5770cbfe677
4
+ data.tar.gz: 41fe84d5eea7111360a976acdecc9db2b3b9eda524c8f4b8be7a4052d42f82ea
5
5
  SHA512:
6
- metadata.gz: 1a9ba661e3a01dd0337f7649179d318f24b700ad7c48c6533960fb7a2868d2e7b29607c0d48f2eb9e68e4d6e3f55e2193ffecfd1e73e775fbcbac5dd12791a08
7
- data.tar.gz: 47e236db259e6c8c509e4312006fcbe2ccf9f0063cf86f41e757a0045e16add22336317184883e43e07d7a18e853e264b7a7b88071e8e13cb9b3c29057d07b1b
6
+ metadata.gz: 1b00f0e2b98fb9de96fbd2fff8d44a40096b9becfb06cdac2a7b0f558a4873168aac6fbe0f2786468aaff39c3a5a5f2225e5ba1004a4b9779aacb825132dfc23
7
+ data.tar.gz: 4cc5ef448591f0a52c0a3d273926271f36529ccb24af88a160d24e8216ca9b252fc8675254ac4b77720fa0d75b21f5d9db5ab3f78d8d57020bffc8f53c0d7ecc
@@ -45,6 +45,6 @@ require_relative 'aws-sdk-apigatewayv2/customizations'
45
45
  # @service
46
46
  module Aws::ApiGatewayV2
47
47
 
48
- GEM_VERSION = '1.18.0'
48
+ GEM_VERSION = '1.19.0'
49
49
 
50
50
  end
@@ -269,8 +269,7 @@ module Aws::ApiGatewayV2
269
269
  #
270
270
  # @option options [Integer] :http_read_timeout (60) The default
271
271
  # number of seconds to wait for response data. This value can
272
- # safely be set
273
- # per-request on the session yielded by {#session_for}.
272
+ # safely be set per-request on the session.
274
273
  #
275
274
  # @option options [Float] :http_idle_timeout (5) The number of
276
275
  # seconds a connection is allowed to sit idle before it is
@@ -282,7 +281,7 @@ module Aws::ApiGatewayV2
282
281
  # request body. This option has no effect unless the request has
283
282
  # "Expect" header set to "100-continue". Defaults to `nil` which
284
283
  # disables this behaviour. This value can safely be set per
285
- # request on the session yielded by {#session_for}.
284
+ # request on the session.
286
285
  #
287
286
  # @option options [Boolean] :http_wire_trace (false) When `true`,
288
287
  # HTTP debug output will be sent to the `:logger`.
@@ -1721,6 +1720,47 @@ module Aws::ApiGatewayV2
1721
1720
  req.send_request(options)
1722
1721
  end
1723
1722
 
1723
+ # Exports a definition of an API in a particular output format and
1724
+ # specification.
1725
+ #
1726
+ # @option params [required, String] :api_id
1727
+ #
1728
+ # @option params [String] :export_version
1729
+ #
1730
+ # @option params [Boolean] :include_extensions
1731
+ #
1732
+ # @option params [required, String] :output_type
1733
+ #
1734
+ # @option params [required, String] :specification
1735
+ #
1736
+ # @option params [String] :stage_name
1737
+ #
1738
+ # @return [Types::ExportApiResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1739
+ #
1740
+ # * {Types::ExportApiResponse#body #body} => String
1741
+ #
1742
+ # @example Request syntax with placeholder values
1743
+ #
1744
+ # resp = client.export_api({
1745
+ # api_id: "__string", # required
1746
+ # export_version: "__string",
1747
+ # include_extensions: false,
1748
+ # output_type: "__string", # required
1749
+ # specification: "__string", # required
1750
+ # stage_name: "__string",
1751
+ # })
1752
+ #
1753
+ # @example Response structure
1754
+ #
1755
+ # resp.body #=> String
1756
+ #
1757
+ # @overload export_api(params = {})
1758
+ # @param [Hash] params ({})
1759
+ def export_api(params = {}, options = {})
1760
+ req = build_request(:export_api, params)
1761
+ req.send_request(options)
1762
+ end
1763
+
1724
1764
  # Gets an Api resource.
1725
1765
  #
1726
1766
  # @option params [required, String] :api_id
@@ -4144,7 +4184,7 @@ module Aws::ApiGatewayV2
4144
4184
  params: params,
4145
4185
  config: config)
4146
4186
  context[:gem_name] = 'aws-sdk-apigatewayv2'
4147
- context[:gem_version] = '1.18.0'
4187
+ context[:gem_version] = '1.19.0'
4148
4188
  Seahorse::Client::Request.new(handlers, context)
4149
4189
  end
4150
4190
 
@@ -93,6 +93,9 @@ module Aws::ApiGatewayV2
93
93
  DomainNameStatus = Shapes::StringShape.new(name: 'DomainNameStatus')
94
94
  DomainNames = Shapes::StructureShape.new(name: 'DomainNames')
95
95
  EndpointType = Shapes::StringShape.new(name: 'EndpointType')
96
+ ExportApiRequest = Shapes::StructureShape.new(name: 'ExportApiRequest')
97
+ ExportApiResponse = Shapes::StructureShape.new(name: 'ExportApiResponse')
98
+ ExportedApi = Shapes::BlobShape.new(name: 'ExportedApi')
96
99
  GetApiMappingRequest = Shapes::StructureShape.new(name: 'GetApiMappingRequest')
97
100
  GetApiMappingResponse = Shapes::StructureShape.new(name: 'GetApiMappingResponse')
98
101
  GetApiMappingsRequest = Shapes::StructureShape.new(name: 'GetApiMappingsRequest')
@@ -796,6 +799,19 @@ module Aws::ApiGatewayV2
796
799
  DomainNames.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
797
800
  DomainNames.struct_class = Types::DomainNames
798
801
 
802
+ ExportApiRequest.add_member(:api_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "apiId"))
803
+ ExportApiRequest.add_member(:export_version, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "exportVersion"))
804
+ ExportApiRequest.add_member(:include_extensions, Shapes::ShapeRef.new(shape: __boolean, location: "querystring", location_name: "includeExtensions"))
805
+ ExportApiRequest.add_member(:output_type, Shapes::ShapeRef.new(shape: __string, required: true, location: "querystring", location_name: "outputType", metadata: {"enum"=>["YAML", "JSON"]}))
806
+ ExportApiRequest.add_member(:specification, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "specification", metadata: {"enum"=>["OAS30"]}))
807
+ ExportApiRequest.add_member(:stage_name, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "stageName"))
808
+ ExportApiRequest.struct_class = Types::ExportApiRequest
809
+
810
+ ExportApiResponse.add_member(:body, Shapes::ShapeRef.new(shape: ExportedApi, location_name: "body"))
811
+ ExportApiResponse.struct_class = Types::ExportApiResponse
812
+ ExportApiResponse[:payload] = :body
813
+ ExportApiResponse[:payload_member] = ExportApiResponse.member(:body)
814
+
799
815
  GetApiMappingRequest.add_member(:api_mapping_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "apiMappingId"))
800
816
  GetApiMappingRequest.add_member(:domain_name, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "domainName"))
801
817
  GetApiMappingRequest.struct_class = Types::GetApiMappingRequest
@@ -2022,6 +2038,17 @@ module Aws::ApiGatewayV2
2022
2038
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2023
2039
  end)
2024
2040
 
2041
+ api.add_operation(:export_api, Seahorse::Model::Operation.new.tap do |o|
2042
+ o.name = "ExportApi"
2043
+ o.http_method = "GET"
2044
+ o.http_request_uri = "/v2/apis/{apiId}/exports/{specification}"
2045
+ o.input = Shapes::ShapeRef.new(shape: ExportApiRequest)
2046
+ o.output = Shapes::ShapeRef.new(shape: ExportApiResponse)
2047
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
2048
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2049
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
2050
+ end)
2051
+
2025
2052
  api.add_operation(:get_api, Seahorse::Model::Operation.new.tap do |o|
2026
2053
  o.name = "GetApi"
2027
2054
  o.http_method = "GET"
@@ -222,16 +222,10 @@ module Aws::ApiGatewayV2
222
222
  # The authorizer's Uniform Resource Identifier (URI). ForREQUEST
223
223
  # authorizers, this must be a well-formed Lambda function URI, for
224
224
  # example,
225
- # arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:<replaceable>\{account_id\}</replaceable>
226
- #
227
- # \:function:<replaceable>\{lambda_function_name\}</replaceable>
228
- #
229
- # /invocations. In general, the URI has this form:
230
- # arn:aws:apigateway:<replaceable>\{region\}</replaceable>
231
- #
232
- # \:lambda:path/<replaceable>\{service_api\}</replaceable>
233
- #
234
- # , where <replaceable />
225
+ # arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:*\\\{account\_id\\}*\:function:*\\\{lambda\_function\_name\\}*/invocations.
226
+ # In general, the URI has this form:
227
+ # arn:aws:apigateway:*\\\{region\\}*\:lambda:path/*\\\{service\_api\\}*
228
+ # , where <replaceable />
235
229
  #
236
230
  # \\\{region\\} is the same as the region hosting the Lambda function,
237
231
  # path indicates that the remaining substring in the URI should be
@@ -804,16 +798,10 @@ module Aws::ApiGatewayV2
804
798
  # The authorizer's Uniform Resource Identifier (URI). For REQUEST
805
799
  # authorizers, this must be a well-formed Lambda function URI, for
806
800
  # example,
807
- # arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:<replaceable>\{account_id\}</replaceable>
808
- #
809
- # \:function:<replaceable>\{lambda_function_name\}</replaceable>
810
- #
811
- # /invocations. In general, the URI has this form:
812
- # arn:aws:apigateway:<replaceable>\{region\}</replaceable>
813
- #
814
- # \:lambda:path/<replaceable>\{service_api\}</replaceable>
815
- #
816
- # , where <replaceable />
801
+ # arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:*\\\{account\_id\\}*\:function:*\\\{lambda\_function\_name\\}*/invocations.
802
+ # In general, the URI has this form:
803
+ # arn:aws:apigateway:*\\\{region\\}*\:lambda:path/*\\\{service\_api\\}*
804
+ # , where <replaceable />
817
805
  #
818
806
  # \\\{region\\} is the same as the region hosting the Lambda function,
819
807
  # path indicates that the remaining substring in the URI should be
@@ -1280,7 +1268,7 @@ module Aws::ApiGatewayV2
1280
1268
  #
1281
1269
  #
1282
1270
  #
1283
- # [1]: https://alpha-docs-aws.amazon.com/cloud-map/latest/api/API_DiscoverInstances.html
1271
+ # [1]: https://docs.aws.amazon.com/cloud-map/latest/api/API_DiscoverInstances.html
1284
1272
  # @return [String]
1285
1273
  #
1286
1274
  # @!attribute [rw] passthrough_behavior
@@ -1314,16 +1302,9 @@ module Aws::ApiGatewayV2
1314
1302
  # parameter value or static value that must be enclosed within single
1315
1303
  # quotes and pre-encoded as required by the backend. The method
1316
1304
  # request parameter value must match the pattern of
1317
- # method.request.<replaceable>\{location\}</replaceable>
1318
- #
1319
- # .<replaceable>\{name\}</replaceable>
1320
- #
1321
- # , where <replaceable>\{location\}</replaceable>
1322
- #
1323
- # is querystring, path, or header; and
1324
- # <replaceable>\{name\}</replaceable>
1325
- #
1326
- # must be a valid and unique method request parameter name. Supported
1305
+ # method.request.*\\\{location\\}*.*\\\{name\\}* , where
1306
+ # *\\\{location\\}* is querystring, path, or header; and *\\\{name\\}*
1307
+ # must be a valid and unique method request parameter name. Supported
1327
1308
  # only for WebSocket APIs.
1328
1309
  # @return [Hash<String,String>]
1329
1310
  #
@@ -3162,6 +3143,57 @@ module Aws::ApiGatewayV2
3162
3143
  include Aws::Structure
3163
3144
  end
3164
3145
 
3146
+ # @note When making an API call, you may pass ExportApiRequest
3147
+ # data as a hash:
3148
+ #
3149
+ # {
3150
+ # api_id: "__string", # required
3151
+ # export_version: "__string",
3152
+ # include_extensions: false,
3153
+ # output_type: "__string", # required
3154
+ # specification: "__string", # required
3155
+ # stage_name: "__string",
3156
+ # }
3157
+ #
3158
+ # @!attribute [rw] api_id
3159
+ # @return [String]
3160
+ #
3161
+ # @!attribute [rw] export_version
3162
+ # @return [String]
3163
+ #
3164
+ # @!attribute [rw] include_extensions
3165
+ # @return [Boolean]
3166
+ #
3167
+ # @!attribute [rw] output_type
3168
+ # @return [String]
3169
+ #
3170
+ # @!attribute [rw] specification
3171
+ # @return [String]
3172
+ #
3173
+ # @!attribute [rw] stage_name
3174
+ # @return [String]
3175
+ #
3176
+ class ExportApiRequest < Struct.new(
3177
+ :api_id,
3178
+ :export_version,
3179
+ :include_extensions,
3180
+ :output_type,
3181
+ :specification,
3182
+ :stage_name)
3183
+ include Aws::Structure
3184
+ end
3185
+
3186
+ # @!attribute [rw] body
3187
+ # Represents an exported definition of an API in a particular output
3188
+ # format, for example, YAML. The API is serialized to the requested
3189
+ # specification, for example, OpenAPI 3.0.
3190
+ # @return [String]
3191
+ #
3192
+ class ExportApiResponse < Struct.new(
3193
+ :body)
3194
+ include Aws::Structure
3195
+ end
3196
+
3165
3197
  # @note When making an API call, you may pass GetApiMappingRequest
3166
3198
  # data as a hash:
3167
3199
  #
@@ -4847,7 +4879,7 @@ module Aws::ApiGatewayV2
4847
4879
  #
4848
4880
  #
4849
4881
  #
4850
- # [1]: https://alpha-docs-aws.amazon.com/cloud-map/latest/api/API_DiscoverInstances.html
4882
+ # [1]: https://docs.aws.amazon.com/cloud-map/latest/api/API_DiscoverInstances.html
4851
4883
  # @return [String]
4852
4884
  #
4853
4885
  # @!attribute [rw] passthrough_behavior
@@ -4881,16 +4913,9 @@ module Aws::ApiGatewayV2
4881
4913
  # parameter value or static value that must be enclosed within single
4882
4914
  # quotes and pre-encoded as required by the backend. The method
4883
4915
  # request parameter value must match the pattern of
4884
- # method.request.<replaceable>\{location\}</replaceable>
4885
- #
4886
- # .<replaceable>\{name\}</replaceable>
4887
- #
4888
- # , where <replaceable>\{location\}</replaceable>
4889
- #
4890
- # is querystring, path, or header; and
4891
- # <replaceable>\{name\}</replaceable>
4892
- #
4893
- # must be a valid and unique method request parameter name. Supported
4916
+ # method.request.*\\\{location\\}*.*\\\{name\\}* , where
4917
+ # *\\\{location\\}* is querystring, path, or header; and *\\\{name\\}*
4918
+ # must be a valid and unique method request parameter name. Supported
4894
4919
  # only for WebSocket APIs.
4895
4920
  # @return [Hash<String,String>]
4896
4921
  #
@@ -5063,11 +5088,9 @@ module Aws::ApiGatewayV2
5063
5088
  # @!attribute [rw] issuer
5064
5089
  # The base domain of the identity provider that issues JSON Web
5065
5090
  # Tokens. For example, an Amazon Cognito user pool has the following
5066
- # format: https://cognito-idp.<replaceable>\{region\}</replaceable>
5067
- #
5068
- # .amazonaws.com/<replaceable>\{userPoolId\}</replaceable>
5069
- #
5070
- # . Required for the JWT authorizer type. Supported only for HTTP
5091
+ # format:
5092
+ # https://cognito-idp.*\\\{region\\}*.amazonaws.com/*\\\{userPoolId\\}*
5093
+ # . Required for the JWT authorizer type. Supported only for HTTP
5071
5094
  # APIs.
5072
5095
  # @return [String]
5073
5096
  #
@@ -6134,16 +6157,10 @@ module Aws::ApiGatewayV2
6134
6157
  # The authorizer's Uniform Resource Identifier (URI). For REQUEST
6135
6158
  # authorizers, this must be a well-formed Lambda function URI, for
6136
6159
  # example,
6137
- # arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:<replaceable>\{account_id\}</replaceable>
6138
- #
6139
- # \:function:<replaceable>\{lambda_function_name\}</replaceable>
6140
- #
6141
- # /invocations. In general, the URI has this form:
6142
- # arn:aws:apigateway:<replaceable>\{region\}</replaceable>
6143
- #
6144
- # \:lambda:path/<replaceable>\{service_api\}</replaceable>
6145
- #
6146
- # , where <replaceable />
6160
+ # arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:*\\\{account\_id\\}*\:function:*\\\{lambda\_function\_name\\}*/invocations.
6161
+ # In general, the URI has this form:
6162
+ # arn:aws:apigateway:*\\\{region\\}*\:lambda:path/*\\\{service\_api\\}*
6163
+ # , where <replaceable />
6147
6164
  #
6148
6165
  # \\\{region\\} is the same as the region hosting the Lambda function,
6149
6166
  # path indicates that the remaining substring in the URI should be
@@ -6589,7 +6606,7 @@ module Aws::ApiGatewayV2
6589
6606
  #
6590
6607
  #
6591
6608
  #
6592
- # [1]: https://alpha-docs-aws.amazon.com/cloud-map/latest/api/API_DiscoverInstances.html
6609
+ # [1]: https://docs.aws.amazon.com/cloud-map/latest/api/API_DiscoverInstances.html
6593
6610
  # @return [String]
6594
6611
  #
6595
6612
  # @!attribute [rw] passthrough_behavior
@@ -6623,16 +6640,9 @@ module Aws::ApiGatewayV2
6623
6640
  # parameter value or static value that must be enclosed within single
6624
6641
  # quotes and pre-encoded as required by the backend. The method
6625
6642
  # request parameter value must match the pattern of
6626
- # method.request.<replaceable>\{location\}</replaceable>
6627
- #
6628
- # .<replaceable>\{name\}</replaceable>
6629
- #
6630
- # , where <replaceable>\{location\}</replaceable>
6631
- #
6632
- # is querystring, path, or header; and
6633
- # <replaceable>\{name\}</replaceable>
6634
- #
6635
- # must be a valid and unique method request parameter name. Supported
6643
+ # method.request.*\\\{location\\}*.*\\\{name\\}* , where
6644
+ # *\\\{location\\}* is querystring, path, or header; and *\\\{name\\}*
6645
+ # must be a valid and unique method request parameter name. Supported
6636
6646
  # only for WebSocket APIs.
6637
6647
  # @return [Hash<String,String>]
6638
6648
  #
@@ -6969,21 +6979,13 @@ module Aws::ApiGatewayV2
6969
6979
  # response header value, a static value enclosed within a pair of
6970
6980
  # single quotes, or a JSON expression from the integration response
6971
6981
  # body. The mapping key must match the pattern of
6972
- # method.response.header.<replaceable>\{name\}</replaceable>
6973
- #
6974
- # , where name is a valid and unique header name. The mapped
6975
- # non-static value must match the pattern of
6976
- # integration.response.header.<replaceable>\{name\}</replaceable>
6977
- #
6978
- # or
6979
- # integration.response.body.<replaceable>\{JSON-expression\}</replaceable>
6980
- #
6981
- # , where <replaceable>\{name\}</replaceable>
6982
- #
6983
- # is a valid and unique response header name and
6984
- # <replaceable>\{JSON-expression\}</replaceable>
6985
- #
6986
- # is a valid JSON expression without the $ prefix.
6982
+ # method.response.header.*\\\{name\\}* , where name is a valid and
6983
+ # unique header name. The mapped non-static value must match the
6984
+ # pattern of integration.response.header.*\\\{name\\}* or
6985
+ # integration.response.body.*\\\{JSON-expression\\}* , where
6986
+ # *\\\{name\\}* is a valid and unique response header name and
6987
+ # *\\\{JSON-expression\\}* is a valid JSON expression without the $
6988
+ # prefix.
6987
6989
  # @return [Hash<String,String>]
6988
6990
  #
6989
6991
  # @!attribute [rw] response_templates
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-apigatewayv2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.18.0
4
+ version: 1.19.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: 2020-03-23 00:00:00.000000000 Z
11
+ date: 2020-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  version: '0'
82
82
  requirements: []
83
83
  rubyforge_project:
84
- rubygems_version: 2.5.2.3
84
+ rubygems_version: 2.7.6.2
85
85
  signing_key:
86
86
  specification_version: 4
87
87
  summary: AWS SDK for Ruby - AmazonApiGatewayV2