nomoss 0.0.3 → 0.0.5

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.
Files changed (150) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +5 -15
  3. package/ROADMAP.md +2 -0
  4. package/docs/README.md +1 -1
  5. package/docs/application/aws-resource-coverage.md +26 -0
  6. package/docs/application/aws-resource-lifecycle-management.md +13 -23
  7. package/docs/application/cli-workflow.md +1 -1
  8. package/docs/application/engine-design.md +2 -2
  9. package/docs/application/generation-architecture.md +10 -45
  10. package/docs/application/resource-command-policy-stage.md +2 -2
  11. package/docs/application/resource-graph.md +1 -1
  12. package/docs/application/resource-lifecycle-tracker.md +1 -9
  13. package/docs/application/resource-mapping.md +4 -9
  14. package/docs/application/resource-operations.md +4 -2
  15. package/docs/application/tracing.md +2 -6
  16. package/docs/development/code-documentation.md +2 -0
  17. package/docs/development/effect-native-development.md +44 -0
  18. package/docs/development/linting.md +1 -1
  19. package/docs/development/review-code.md +22 -6
  20. package/docs/development/review-remediation-spec.md +28 -37
  21. package/docs/development/spec-writing.md +1 -1
  22. package/docs/development/testing.md +23 -9
  23. package/docs/operations/observability-sop.md +11 -17
  24. package/docs/operations/releasing.md +3 -1
  25. package/examples/README.md +3 -26
  26. package/examples/commands.ts +2 -36
  27. package/examples/queue/application.ts +8 -2
  28. package/examples/state-machine/application.ts +3 -1
  29. package/package.json +40 -46
  30. package/providers/aws/README.md +21 -0
  31. package/providers/aws/awsEnvironment.ts +114 -0
  32. package/providers/aws/generated/managementRegistry.ts +136 -0
  33. package/{src/providers/aws/resources/generated/native/apigatewayv2/api/index.ts → providers/aws/generated/resources/apigatewayv2/api.ts} +13 -50
  34. package/{src/providers/aws/resources/generated/native/apigatewayv2/integration/index.ts → providers/aws/generated/resources/apigatewayv2/integration.ts} +13 -37
  35. package/{src/providers/aws/resources/generated/native/apigatewayv2/route/index.ts → providers/aws/generated/resources/apigatewayv2/route.ts} +23 -40
  36. package/{src/providers/aws/resources/generated/native/apigatewayv2/stage/index.ts → providers/aws/generated/resources/apigatewayv2/stage.ts} +13 -38
  37. package/providers/aws/generated/resources/iam/accesskey.ts +184 -0
  38. package/{src/providers/aws/resources/generated/native/iam/group/index.ts → providers/aws/generated/resources/iam/group.ts} +13 -38
  39. package/{src/providers/aws/resources/generated/native/iam/grouppolicy/index.ts → providers/aws/generated/resources/iam/grouppolicy.ts} +29 -59
  40. package/{src/providers/aws/resources/generated/native/iam/instanceprofile/index.ts → providers/aws/generated/resources/iam/instanceprofile.ts} +13 -41
  41. package/{src/providers/aws/resources/generated/native/iam/managedpolicy/index.ts → providers/aws/generated/resources/iam/managedpolicy.ts} +13 -95
  42. package/providers/aws/generated/resources/iam/oidcprovider.ts +314 -0
  43. package/{src/providers/aws/resources/generated/native/iam/policy/index.ts → providers/aws/generated/resources/iam/policy.ts} +13 -28
  44. package/{src/providers/aws/resources/generated/native/iam/role/index.ts → providers/aws/generated/resources/iam/role.ts} +13 -47
  45. package/{src/providers/aws/resources/generated/native/iam/rolepolicy/index.ts → providers/aws/generated/resources/iam/rolepolicy.ts} +29 -59
  46. package/providers/aws/generated/resources/iam/samlprovider.ts +463 -0
  47. package/providers/aws/generated/resources/iam/servercertificate.ts +465 -0
  48. package/providers/aws/generated/resources/iam/servicelinkedrole.ts +187 -0
  49. package/{src/providers/aws/resources/generated/native/iam/user/index.ts → providers/aws/generated/resources/iam/user.ts} +13 -38
  50. package/{src/providers/aws/resources/generated/native/iam/userpolicy/index.ts → providers/aws/generated/resources/iam/userpolicy.ts} +29 -59
  51. package/{src/providers/aws/resources/generated/native/iam/usertogroupaddition/index.ts → providers/aws/generated/resources/iam/usertogroupaddition.ts} +13 -27
  52. package/providers/aws/generated/resources/iam/virtualmfadevice.ts +298 -0
  53. package/{src/providers/aws/resources/generated/native/kms/key/index.ts → providers/aws/generated/resources/kms/key.ts} +13 -41
  54. package/{src/providers/aws/resources/generated/native/lambda/function/index.ts → providers/aws/generated/resources/lambda/function.ts} +13 -63
  55. package/{src/providers/aws/resources/generated/native/lambda/permission/index.ts → providers/aws/generated/resources/lambda/permission.ts} +13 -55
  56. package/{src/providers/aws/resources/generated/native/s3/bucket/index.ts → providers/aws/generated/resources/s3/bucket.ts} +14 -104
  57. package/{src/providers/aws/resources/generated/native/sns/topic/index.ts → providers/aws/generated/resources/sns/topic.ts} +14 -29
  58. package/{src/providers/aws/resources/generated/native/sqs/queue/index.ts → providers/aws/generated/resources/sqs/queue.ts} +14 -38
  59. package/{src/providers/aws/resources/generated/native/stepfunctions/statemachine/index.ts → providers/aws/generated/resources/stepfunctions/statemachine.ts} +15 -58
  60. package/providers/aws/management/mappings/iam/group.ts +63 -0
  61. package/providers/aws/management/mappings/iam/iamIdentity.ts +41 -0
  62. package/providers/aws/management/mappings/iam/iamLifecycleSettings.ts +8 -0
  63. package/providers/aws/management/mappings/iam/inlinePolicies.ts +159 -0
  64. package/providers/aws/management/mappings/iam/instanceProfile.ts +77 -0
  65. package/providers/aws/management/mappings/iam/oidcProvider.ts +94 -0
  66. package/providers/aws/management/mappings/iam/role.ts +74 -0
  67. package/providers/aws/management/mappings/iam/samlProvider.ts +98 -0
  68. package/providers/aws/management/mappings/iam/serverCertificate.ts +72 -0
  69. package/providers/aws/management/mappings/iam/user.ts +61 -0
  70. package/providers/aws/management/mappings/iam/userToGroupAddition.ts +75 -0
  71. package/providers/aws/management/operations/iam/accessKey.ts +206 -0
  72. package/providers/aws/management/operations/iam/managedPolicy.ts +491 -0
  73. package/providers/aws/management/operations/iam/policy.ts +476 -0
  74. package/providers/aws/management/operations/iam/serviceLinkedRole.ts +172 -0
  75. package/providers/aws/management/operations/iam/virtualMfaDevice.ts +253 -0
  76. package/providers/aws/management/resourceAssociationConfiguration.ts +112 -0
  77. package/providers/aws/management/resourceAssociationRegistration.ts +349 -0
  78. package/providers/aws/management/resourceAssociations.ts +168 -0
  79. package/{src/providers → providers}/aws/management/resourceConfiguration.ts +24 -26
  80. package/providers/aws/management/resourceLifecycleRegistration.ts +540 -0
  81. package/providers/aws/management/resourceManagementModule.ts +31 -0
  82. package/providers/aws/management/resourceManagementRegistry.ts +62 -0
  83. package/providers/aws/management/resourceMapping.ts +84 -0
  84. package/providers/aws/management/resourceOperation.ts +134 -0
  85. package/providers/aws/management/resourceTagOperations.ts +108 -0
  86. package/providers/aws/management/resourceTiming.ts +4 -0
  87. package/providers/aws/runtime.ts +52 -0
  88. package/src/core/resource/resourceCommandPolicy.ts +20 -0
  89. package/src/core/resource/resourceLifecycle.ts +644 -0
  90. package/src/core/resource/resourceStabilization.ts +120 -0
  91. package/src/core/resource/resourceVersions.ts +102 -0
  92. package/src/core/stack/planner.ts +9 -0
  93. package/src/core/stack/resourceStackLifecycle.ts +36 -3
  94. package/src/core/state/resourceState.ts +6 -4
  95. package/src/core/state/stateStore.ts +57 -10
  96. package/src/providers/file/resourcePolicy.ts +13 -12
  97. package/src/providers/providerRuntimeLayer.ts +5 -2
  98. package/src/providers/resourceCommandPolicyLayer.ts +117 -37
  99. package/src/providers/stripe/management/resourcePolicy.ts +22 -11
  100. package/examples/http-echo/application.ts +0 -87
  101. package/src/providers/aws/client/awsClient.ts +0 -418
  102. package/src/providers/aws/client/awsClientConfig.ts +0 -133
  103. package/src/providers/aws/client/awsClientModel.ts +0 -119
  104. package/src/providers/aws/client/awsHttpOperation.ts +0 -153
  105. package/src/providers/aws/client/awsQueryOperation.ts +0 -149
  106. package/src/providers/aws/client/awsRequestSigner.ts +0 -115
  107. package/src/providers/aws/client/awsResponseDecoder.ts +0 -135
  108. package/src/providers/aws/client/awsRetryPolicy.ts +0 -62
  109. package/src/providers/aws/client/generated/apiGatewayV2.ts +0 -3025
  110. package/src/providers/aws/client/generated/cloudControl.ts +0 -5746
  111. package/src/providers/aws/client/generated/iam.ts +0 -10892
  112. package/src/providers/aws/client/generated/lambda.ts +0 -5403
  113. package/src/providers/aws/client/generated/sqs.ts +0 -3769
  114. package/src/providers/aws/client/generated/stepFunctions.ts +0 -1726
  115. package/src/providers/aws/client/openapi/cloudControl/CancelResourceRequest.json +0 -579
  116. package/src/providers/aws/client/openapi/cloudControl/CreateResource.json +0 -1019
  117. package/src/providers/aws/client/openapi/cloudControl/DeleteResource.json +0 -1018
  118. package/src/providers/aws/client/openapi/cloudControl/GetResource.json +0 -883
  119. package/src/providers/aws/client/openapi/cloudControl/GetResourceRequestStatus.json +0 -655
  120. package/src/providers/aws/client/openapi/cloudControl/ListResourceRequests.json +0 -566
  121. package/src/providers/aws/client/openapi/cloudControl/ListResources.json +0 -913
  122. package/src/providers/aws/client/openapi/cloudControl/UpdateResource.json +0 -1027
  123. package/src/providers/aws/cloudControl/client.ts +0 -69
  124. package/src/providers/aws/cloudControl/requestTracker.ts +0 -138
  125. package/src/providers/aws/cloudControl/resourceCommandPolicyLayer.ts +0 -63
  126. package/src/providers/aws/cloudControl/resourceLifecycle.ts +0 -479
  127. package/src/providers/aws/cloudControl/resources/generated/certificatemanager/certificate/index.ts +0 -179
  128. package/src/providers/aws/cloudControl/resources/generated/kms/key/index.ts +0 -362
  129. package/src/providers/aws/cloudControl/resources/generated/s3/bucket/index.ts +0 -2364
  130. package/src/providers/aws/cloudControl/resources/generated/sns/topic/index.ts +0 -326
  131. package/src/providers/aws/cloudControl/resources/generated/sqs/queue/index.ts +0 -307
  132. package/src/providers/aws/cloudControl/resources/generated/sqs/queueinlinepolicy/index.ts +0 -108
  133. package/src/providers/aws/cloudControl/runtime.ts +0 -127
  134. package/src/providers/aws/management/resourceMapping.ts +0 -343
  135. package/src/providers/aws/management/resourceOperation.ts +0 -57
  136. package/src/providers/aws/management/resourcePolicy.ts +0 -549
  137. package/src/providers/aws/management/resourceRegistration.ts +0 -294
  138. package/src/providers/aws/resources/apiGatewayV2/httpApi.ts +0 -327
  139. package/src/providers/aws/resources/generated/native/resourceCommands.ts +0 -152
  140. package/src/providers/aws/resources/iam/grant.ts +0 -150
  141. package/src/providers/aws/resources/iam/grantCommands.ts +0 -283
  142. package/src/providers/aws/resources/iam/policyDocument.ts +0 -30
  143. package/src/providers/aws/resources/iam/policyStatement.ts +0 -59
  144. package/src/providers/aws/resources/iam/role.ts +0 -426
  145. package/src/providers/aws/resources/iam/roleDeclaration.ts +0 -105
  146. package/src/providers/aws/resources/lambda/function.ts +0 -403
  147. package/src/providers/aws/resources/lambda/functionDeclaration.ts +0 -234
  148. package/src/providers/aws/resources/lambda/permission.ts +0 -363
  149. package/src/providers/aws/resources/stepFunctions/stateMachine.ts +0 -95
  150. package/src/providers/aws/runtime.ts +0 -70
@@ -1,3025 +0,0 @@
1
- // Generated from Smithy's official OpenAPI transformation. Do not edit.
2
- // biome-ignore-all lint/complexity/useRegexLiterals: Preserve Effect's generated regular expressions.
3
- import { Effect, Schema } from "effect";
4
- import { HttpApi, HttpApiGroup, HttpApiSchema } from "effect/http-api";
5
- import { AwsClient } from "../awsClient.js";
6
- import type {
7
- AwsRestJsonOperation,
8
- AwsServiceDefinition,
9
- } from "../awsClientModel.js";
10
- import {
11
- awsHttpEndpoint,
12
- optionalRestJsonMember,
13
- } from "../awsHttpOperation.js";
14
-
15
- export const Cors = Schema.StructWithRest(
16
- Schema.Struct({
17
- allowCredentials: optionalRestJsonMember(Schema.Boolean),
18
- allowHeaders: optionalRestJsonMember(Schema.Array(Schema.String)),
19
- allowMethods: optionalRestJsonMember(Schema.Array(Schema.String)),
20
- allowOrigins: optionalRestJsonMember(Schema.Array(Schema.String)),
21
- exposeHeaders: optionalRestJsonMember(Schema.Array(Schema.String)),
22
- maxAge: optionalRestJsonMember(
23
- Schema.Finite.check(
24
- Schema.isGreaterThanOrEqualTo(-1).annotate({
25
- expected: "a value greater than or equal to -1",
26
- }),
27
- ).check(
28
- Schema.isLessThanOrEqualTo(86400).annotate({
29
- expected: "a value less than or equal to 86400",
30
- }),
31
- ),
32
- ),
33
- }),
34
- [
35
- Schema.Record(
36
- Schema.String,
37
- Schema.Json.annotate({ expected: "JSON value" }),
38
- ),
39
- ],
40
- ).annotate({ identifier: "Cors" });
41
-
42
- export type Cors = typeof Cors.Type;
43
-
44
- export const IpAddressType = Schema.Union([
45
- Schema.Literals(["ipv4", "dualstack"]),
46
- Schema.String,
47
- ]).annotate({ identifier: "IpAddressType" });
48
-
49
- export type IpAddressType = typeof IpAddressType.Type;
50
-
51
- export const ProtocolType = Schema.Union([
52
- Schema.Literals(["WEBSOCKET", "HTTP"]),
53
- Schema.String,
54
- ]).annotate({ identifier: "ProtocolType" });
55
-
56
- export type ProtocolType = typeof ProtocolType.Type;
57
-
58
- export const Tags = Schema.Record(Schema.String, Schema.String).check(
59
- Schema.isPropertyNames(Schema.String).annotate({
60
- expected: "an object with property names matching the schema",
61
- identifier: "Tags",
62
- }),
63
- );
64
-
65
- export type Tags = typeof Tags.Type;
66
-
67
- export const ConnectionType = Schema.Union([
68
- Schema.Literals(["INTERNET", "VPC_LINK"]),
69
- Schema.String,
70
- ]).annotate({ identifier: "ConnectionType" });
71
-
72
- export type ConnectionType = typeof ConnectionType.Type;
73
-
74
- export const ContentHandlingStrategy = Schema.Union([
75
- Schema.Literals(["CONVERT_TO_BINARY", "CONVERT_TO_TEXT"]),
76
- Schema.String,
77
- ]).annotate({ identifier: "ContentHandlingStrategy" });
78
-
79
- export type ContentHandlingStrategy = typeof ContentHandlingStrategy.Type;
80
-
81
- export const IntegrationType = Schema.Union([
82
- Schema.Literals(["AWS", "HTTP", "MOCK", "HTTP_PROXY", "AWS_PROXY"]),
83
- Schema.String,
84
- ]).annotate({ identifier: "IntegrationType" });
85
-
86
- export type IntegrationType = typeof IntegrationType.Type;
87
-
88
- export const PassthroughBehavior = Schema.Union([
89
- Schema.Literals(["WHEN_NO_MATCH", "NEVER", "WHEN_NO_TEMPLATES"]),
90
- Schema.String,
91
- ]).annotate({ identifier: "PassthroughBehavior" });
92
-
93
- export type PassthroughBehavior = typeof PassthroughBehavior.Type;
94
-
95
- export const IntegrationParameters = Schema.Record(
96
- Schema.String,
97
- Schema.String,
98
- ).check(
99
- Schema.isPropertyNames(Schema.String).annotate({
100
- expected: "an object with property names matching the schema",
101
- identifier: "IntegrationParameters",
102
- }),
103
- );
104
-
105
- export type IntegrationParameters = typeof IntegrationParameters.Type;
106
-
107
- export const TemplateMap = Schema.Record(Schema.String, Schema.String).check(
108
- Schema.isPropertyNames(Schema.String).annotate({
109
- expected: "an object with property names matching the schema",
110
- identifier: "TemplateMap",
111
- }),
112
- );
113
-
114
- export type TemplateMap = typeof TemplateMap.Type;
115
-
116
- export const TlsConfigInput = Schema.StructWithRest(
117
- Schema.Struct({ serverNameToVerify: optionalRestJsonMember(Schema.String) }),
118
- [
119
- Schema.Record(
120
- Schema.String,
121
- Schema.Json.annotate({ expected: "JSON value" }),
122
- ),
123
- ],
124
- ).annotate({ identifier: "TlsConfigInput" });
125
-
126
- export type TlsConfigInput = typeof TlsConfigInput.Type;
127
-
128
- export const TlsConfig = Schema.StructWithRest(
129
- Schema.Struct({ serverNameToVerify: optionalRestJsonMember(Schema.String) }),
130
- [
131
- Schema.Record(
132
- Schema.String,
133
- Schema.Json.annotate({ expected: "JSON value" }),
134
- ),
135
- ],
136
- ).annotate({ identifier: "TlsConfig" });
137
-
138
- export type TlsConfig = typeof TlsConfig.Type;
139
-
140
- export const AuthorizationType = Schema.Union([
141
- Schema.Literals(["NONE", "AWS_IAM", "CUSTOM", "JWT"]),
142
- Schema.String,
143
- ]).annotate({ identifier: "AuthorizationType" });
144
-
145
- export type AuthorizationType = typeof AuthorizationType.Type;
146
-
147
- export const RouteModels = Schema.Record(Schema.String, Schema.String).check(
148
- Schema.isPropertyNames(Schema.String).annotate({
149
- expected: "an object with property names matching the schema",
150
- identifier: "RouteModels",
151
- }),
152
- );
153
-
154
- export type RouteModels = typeof RouteModels.Type;
155
-
156
- export const ParameterConstraints = Schema.StructWithRest(
157
- Schema.Struct({ required: optionalRestJsonMember(Schema.Boolean) }),
158
- [
159
- Schema.Record(
160
- Schema.String,
161
- Schema.Json.annotate({ expected: "JSON value" }),
162
- ),
163
- ],
164
- ).annotate({ identifier: "ParameterConstraints" });
165
-
166
- export type ParameterConstraints = typeof ParameterConstraints.Type;
167
-
168
- export const AccessLogSettings = Schema.StructWithRest(
169
- Schema.Struct({
170
- destinationArn: optionalRestJsonMember(Schema.String),
171
- format: optionalRestJsonMember(Schema.String),
172
- }),
173
- [
174
- Schema.Record(
175
- Schema.String,
176
- Schema.Json.annotate({ expected: "JSON value" }),
177
- ),
178
- ],
179
- ).annotate({ identifier: "AccessLogSettings" });
180
-
181
- export type AccessLogSettings = typeof AccessLogSettings.Type;
182
-
183
- export const LoggingLevel = Schema.Union([
184
- Schema.Literals(["ERROR", "INFO", "OFF"]),
185
- Schema.String,
186
- ]).annotate({ identifier: "LoggingLevel" });
187
-
188
- export type LoggingLevel = typeof LoggingLevel.Type;
189
-
190
- export const StageVariablesMap = Schema.Record(
191
- Schema.String,
192
- Schema.String,
193
- ).check(
194
- Schema.isPropertyNames(Schema.String).annotate({
195
- expected: "an object with property names matching the schema",
196
- identifier: "StageVariablesMap",
197
- }),
198
- );
199
-
200
- export type StageVariablesMap = typeof StageVariablesMap.Type;
201
-
202
- export const ResponseParameters = Schema.Record(
203
- Schema.String,
204
- IntegrationParameters,
205
- ).check(
206
- Schema.isPropertyNames(Schema.String).annotate({
207
- expected: "an object with property names matching the schema",
208
- identifier: "ResponseParameters",
209
- }),
210
- );
211
-
212
- export type ResponseParameters = typeof ResponseParameters.Type;
213
-
214
- export const RouteParameters = Schema.Record(
215
- Schema.String,
216
- ParameterConstraints,
217
- ).check(
218
- Schema.isPropertyNames(Schema.String).annotate({
219
- expected: "an object with property names matching the schema",
220
- identifier: "RouteParameters",
221
- }),
222
- );
223
-
224
- export type RouteParameters = typeof RouteParameters.Type;
225
-
226
- export const RouteSettings = Schema.StructWithRest(
227
- Schema.Struct({
228
- dataTraceEnabled: optionalRestJsonMember(Schema.Boolean),
229
- detailedMetricsEnabled: optionalRestJsonMember(Schema.Boolean),
230
- loggingLevel: optionalRestJsonMember(LoggingLevel),
231
- throttlingBurstLimit: optionalRestJsonMember(Schema.Finite),
232
- throttlingRateLimit: optionalRestJsonMember(
233
- Schema.Number.annotate({ format: "double" }).check(
234
- Schema.isFinite().annotate({ expected: "a finite number" }),
235
- ),
236
- ),
237
- }),
238
- [
239
- Schema.Record(
240
- Schema.String,
241
- Schema.Json.annotate({ expected: "JSON value" }),
242
- ),
243
- ],
244
- ).annotate({ identifier: "RouteSettings" });
245
-
246
- export type RouteSettings = typeof RouteSettings.Type;
247
-
248
- export const RouteSettingsMap = Schema.Record(
249
- Schema.String,
250
- RouteSettings,
251
- ).check(
252
- Schema.isPropertyNames(Schema.String).annotate({
253
- expected: "an object with property names matching the schema",
254
- identifier: "RouteSettingsMap",
255
- }),
256
- );
257
-
258
- export type RouteSettingsMap = typeof RouteSettingsMap.Type;
259
-
260
- export const CreateApiRequest = Schema.StructWithRest(
261
- Schema.Struct({
262
- apiKeySelectionExpression: optionalRestJsonMember(Schema.String),
263
- corsConfiguration: optionalRestJsonMember(Cors),
264
- credentialsArn: optionalRestJsonMember(Schema.String),
265
- description: optionalRestJsonMember(Schema.String),
266
- disableSchemaValidation: optionalRestJsonMember(Schema.Boolean),
267
- disableExecuteApiEndpoint: optionalRestJsonMember(Schema.Boolean),
268
- ipAddressType: optionalRestJsonMember(IpAddressType),
269
- name: Schema.String,
270
- protocolType: ProtocolType,
271
- routeKey: optionalRestJsonMember(Schema.String),
272
- routeSelectionExpression: optionalRestJsonMember(Schema.String),
273
- tags: optionalRestJsonMember(Tags),
274
- target: optionalRestJsonMember(Schema.String),
275
- version: optionalRestJsonMember(Schema.String),
276
- }),
277
- [
278
- Schema.Record(
279
- Schema.String,
280
- Schema.Json.annotate({ expected: "JSON value" }),
281
- ),
282
- ],
283
- );
284
-
285
- export type CreateApiRequest = typeof CreateApiRequest.Type;
286
-
287
- export const CreateApiResponseContent = Schema.StructWithRest(
288
- Schema.Struct({
289
- apiEndpoint: optionalRestJsonMember(Schema.String),
290
- apiGatewayManaged: optionalRestJsonMember(Schema.Boolean),
291
- apiId: optionalRestJsonMember(Schema.String),
292
- apiKeySelectionExpression: optionalRestJsonMember(Schema.String),
293
- corsConfiguration: optionalRestJsonMember(Cors),
294
- createdDate: optionalRestJsonMember(
295
- Schema.String.annotate({ format: "date-time" }),
296
- ),
297
- description: optionalRestJsonMember(Schema.String),
298
- disableSchemaValidation: optionalRestJsonMember(Schema.Boolean),
299
- disableExecuteApiEndpoint: optionalRestJsonMember(Schema.Boolean),
300
- importInfo: optionalRestJsonMember(Schema.Array(Schema.String)),
301
- ipAddressType: optionalRestJsonMember(IpAddressType),
302
- name: optionalRestJsonMember(Schema.String),
303
- protocolType: optionalRestJsonMember(ProtocolType),
304
- routeSelectionExpression: optionalRestJsonMember(Schema.String),
305
- tags: optionalRestJsonMember(Tags),
306
- version: optionalRestJsonMember(Schema.String),
307
- warnings: optionalRestJsonMember(Schema.Array(Schema.String)),
308
- }),
309
- [
310
- Schema.Record(
311
- Schema.String,
312
- Schema.Json.annotate({ expected: "JSON value" }),
313
- ),
314
- ],
315
- );
316
-
317
- export type CreateApiResponseContent = typeof CreateApiResponseContent.Type;
318
-
319
- export const BadRequestException = Schema.StructWithRest(
320
- Schema.Struct({ message: optionalRestJsonMember(Schema.String) }),
321
- [
322
- Schema.Record(
323
- Schema.String,
324
- Schema.Json.annotate({ expected: "JSON value" }),
325
- ),
326
- ],
327
- );
328
-
329
- export type BadRequestException = typeof BadRequestException.Type;
330
-
331
- export const ConflictException = Schema.StructWithRest(
332
- Schema.Struct({ message: optionalRestJsonMember(Schema.String) }),
333
- [
334
- Schema.Record(
335
- Schema.String,
336
- Schema.Json.annotate({ expected: "JSON value" }),
337
- ),
338
- ],
339
- );
340
-
341
- export type ConflictException = typeof ConflictException.Type;
342
-
343
- export const NotFoundException = Schema.StructWithRest(
344
- Schema.Struct({
345
- message: optionalRestJsonMember(Schema.String),
346
- resourceType: optionalRestJsonMember(Schema.String),
347
- }),
348
- [
349
- Schema.Record(
350
- Schema.String,
351
- Schema.Json.annotate({ expected: "JSON value" }),
352
- ),
353
- ],
354
- );
355
-
356
- export type NotFoundException = typeof NotFoundException.Type;
357
-
358
- export const TooManyRequestsException = Schema.StructWithRest(
359
- Schema.Struct({
360
- limitType: optionalRestJsonMember(Schema.String),
361
- message: optionalRestJsonMember(Schema.String),
362
- }),
363
- [
364
- Schema.Record(
365
- Schema.String,
366
- Schema.Json.annotate({ expected: "JSON value" }),
367
- ),
368
- ],
369
- );
370
-
371
- export type TooManyRequestsException = typeof TooManyRequestsException.Type;
372
-
373
- export const CreateIntegrationRequest = Schema.StructWithRest(
374
- Schema.Struct({
375
- ApiId: Schema.String,
376
- connectionId: optionalRestJsonMember(Schema.String),
377
- connectionType: optionalRestJsonMember(ConnectionType),
378
- contentHandlingStrategy: optionalRestJsonMember(ContentHandlingStrategy),
379
- credentialsArn: optionalRestJsonMember(Schema.String),
380
- description: optionalRestJsonMember(Schema.String),
381
- integrationMethod: optionalRestJsonMember(Schema.String),
382
- integrationSubtype: optionalRestJsonMember(Schema.String),
383
- integrationType: IntegrationType,
384
- integrationUri: optionalRestJsonMember(Schema.String),
385
- passthroughBehavior: optionalRestJsonMember(PassthroughBehavior),
386
- payloadFormatVersion: optionalRestJsonMember(Schema.String),
387
- requestParameters: optionalRestJsonMember(IntegrationParameters),
388
- requestTemplates: optionalRestJsonMember(TemplateMap),
389
- responseParameters: optionalRestJsonMember(ResponseParameters),
390
- templateSelectionExpression: optionalRestJsonMember(Schema.String),
391
- timeoutInMillis: optionalRestJsonMember(
392
- Schema.Finite.check(
393
- Schema.isGreaterThanOrEqualTo(50).annotate({
394
- expected: "a value greater than or equal to 50",
395
- }),
396
- ).check(
397
- Schema.isLessThanOrEqualTo(30000).annotate({
398
- expected: "a value less than or equal to 30000",
399
- }),
400
- ),
401
- ),
402
- tlsConfig: optionalRestJsonMember(TlsConfigInput),
403
- }),
404
- [
405
- Schema.Record(
406
- Schema.String,
407
- Schema.Json.annotate({ expected: "JSON value" }),
408
- ),
409
- ],
410
- );
411
-
412
- export type CreateIntegrationRequest = typeof CreateIntegrationRequest.Type;
413
-
414
- export const CreateIntegrationResponseContent = Schema.StructWithRest(
415
- Schema.Struct({
416
- apiGatewayManaged: optionalRestJsonMember(Schema.Boolean),
417
- connectionId: optionalRestJsonMember(Schema.String),
418
- connectionType: optionalRestJsonMember(ConnectionType),
419
- contentHandlingStrategy: optionalRestJsonMember(ContentHandlingStrategy),
420
- credentialsArn: optionalRestJsonMember(Schema.String),
421
- description: optionalRestJsonMember(Schema.String),
422
- integrationId: optionalRestJsonMember(Schema.String),
423
- integrationMethod: optionalRestJsonMember(Schema.String),
424
- integrationResponseSelectionExpression: optionalRestJsonMember(
425
- Schema.String,
426
- ),
427
- integrationSubtype: optionalRestJsonMember(Schema.String),
428
- integrationType: optionalRestJsonMember(IntegrationType),
429
- integrationUri: optionalRestJsonMember(Schema.String),
430
- passthroughBehavior: optionalRestJsonMember(PassthroughBehavior),
431
- payloadFormatVersion: optionalRestJsonMember(Schema.String),
432
- requestParameters: optionalRestJsonMember(IntegrationParameters),
433
- requestTemplates: optionalRestJsonMember(TemplateMap),
434
- responseParameters: optionalRestJsonMember(ResponseParameters),
435
- templateSelectionExpression: optionalRestJsonMember(Schema.String),
436
- timeoutInMillis: optionalRestJsonMember(
437
- Schema.Finite.check(
438
- Schema.isGreaterThanOrEqualTo(50).annotate({
439
- expected: "a value greater than or equal to 50",
440
- }),
441
- ).check(
442
- Schema.isLessThanOrEqualTo(30000).annotate({
443
- expected: "a value less than or equal to 30000",
444
- }),
445
- ),
446
- ),
447
- tlsConfig: optionalRestJsonMember(TlsConfig),
448
- }),
449
- [
450
- Schema.Record(
451
- Schema.String,
452
- Schema.Json.annotate({ expected: "JSON value" }),
453
- ),
454
- ],
455
- );
456
-
457
- export type CreateIntegrationResponseContent =
458
- typeof CreateIntegrationResponseContent.Type;
459
-
460
- export const CreateRouteRequest = Schema.StructWithRest(
461
- Schema.Struct({
462
- ApiId: Schema.String,
463
- apiKeyRequired: optionalRestJsonMember(Schema.Boolean),
464
- authorizationScopes: optionalRestJsonMember(Schema.Array(Schema.String)),
465
- authorizationType: optionalRestJsonMember(AuthorizationType),
466
- authorizerId: optionalRestJsonMember(Schema.String),
467
- modelSelectionExpression: optionalRestJsonMember(Schema.String),
468
- operationName: optionalRestJsonMember(Schema.String),
469
- requestModels: optionalRestJsonMember(RouteModels),
470
- requestParameters: optionalRestJsonMember(RouteParameters),
471
- routeKey: Schema.String,
472
- routeResponseSelectionExpression: optionalRestJsonMember(Schema.String),
473
- target: optionalRestJsonMember(Schema.String),
474
- }),
475
- [
476
- Schema.Record(
477
- Schema.String,
478
- Schema.Json.annotate({ expected: "JSON value" }),
479
- ),
480
- ],
481
- );
482
-
483
- export type CreateRouteRequest = typeof CreateRouteRequest.Type;
484
-
485
- export const CreateRouteResponseContent = Schema.StructWithRest(
486
- Schema.Struct({
487
- apiGatewayManaged: optionalRestJsonMember(Schema.Boolean),
488
- apiKeyRequired: optionalRestJsonMember(Schema.Boolean),
489
- authorizationScopes: optionalRestJsonMember(Schema.Array(Schema.String)),
490
- authorizationType: optionalRestJsonMember(AuthorizationType),
491
- authorizerId: optionalRestJsonMember(Schema.String),
492
- modelSelectionExpression: optionalRestJsonMember(Schema.String),
493
- operationName: optionalRestJsonMember(Schema.String),
494
- requestModels: optionalRestJsonMember(RouteModels),
495
- requestParameters: optionalRestJsonMember(RouteParameters),
496
- routeId: optionalRestJsonMember(Schema.String),
497
- routeKey: optionalRestJsonMember(Schema.String),
498
- routeResponseSelectionExpression: optionalRestJsonMember(Schema.String),
499
- target: optionalRestJsonMember(Schema.String),
500
- }),
501
- [
502
- Schema.Record(
503
- Schema.String,
504
- Schema.Json.annotate({ expected: "JSON value" }),
505
- ),
506
- ],
507
- );
508
-
509
- export type CreateRouteResponseContent = typeof CreateRouteResponseContent.Type;
510
-
511
- export const CreateStageRequest = Schema.StructWithRest(
512
- Schema.Struct({
513
- accessLogSettings: optionalRestJsonMember(AccessLogSettings),
514
- ApiId: Schema.String,
515
- autoDeploy: optionalRestJsonMember(Schema.Boolean),
516
- clientCertificateId: optionalRestJsonMember(Schema.String),
517
- defaultRouteSettings: optionalRestJsonMember(RouteSettings),
518
- deploymentId: optionalRestJsonMember(Schema.String),
519
- description: optionalRestJsonMember(Schema.String),
520
- routeSettings: optionalRestJsonMember(RouteSettingsMap),
521
- stageName: Schema.String,
522
- stageVariables: optionalRestJsonMember(StageVariablesMap),
523
- tags: optionalRestJsonMember(Tags),
524
- }),
525
- [
526
- Schema.Record(
527
- Schema.String,
528
- Schema.Json.annotate({ expected: "JSON value" }),
529
- ),
530
- ],
531
- );
532
-
533
- export type CreateStageRequest = typeof CreateStageRequest.Type;
534
-
535
- export const CreateStageResponseContent = Schema.StructWithRest(
536
- Schema.Struct({
537
- accessLogSettings: optionalRestJsonMember(AccessLogSettings),
538
- apiGatewayManaged: optionalRestJsonMember(Schema.Boolean),
539
- autoDeploy: optionalRestJsonMember(Schema.Boolean),
540
- clientCertificateId: optionalRestJsonMember(Schema.String),
541
- createdDate: optionalRestJsonMember(
542
- Schema.String.annotate({ format: "date-time" }),
543
- ),
544
- defaultRouteSettings: optionalRestJsonMember(RouteSettings),
545
- deploymentId: optionalRestJsonMember(Schema.String),
546
- description: optionalRestJsonMember(Schema.String),
547
- lastDeploymentStatusMessage: optionalRestJsonMember(Schema.String),
548
- lastUpdatedDate: optionalRestJsonMember(
549
- Schema.String.annotate({ format: "date-time" }),
550
- ),
551
- routeSettings: optionalRestJsonMember(RouteSettingsMap),
552
- stageName: optionalRestJsonMember(Schema.String),
553
- stageVariables: optionalRestJsonMember(StageVariablesMap),
554
- tags: optionalRestJsonMember(Tags),
555
- }),
556
- [
557
- Schema.Record(
558
- Schema.String,
559
- Schema.Json.annotate({ expected: "JSON value" }),
560
- ),
561
- ],
562
- );
563
-
564
- export type CreateStageResponseContent = typeof CreateStageResponseContent.Type;
565
-
566
- export const DeleteApiRequest = Schema.StructWithRest(
567
- Schema.Struct({ ApiId: Schema.String }),
568
- [
569
- Schema.Record(
570
- Schema.String,
571
- Schema.Json.annotate({ expected: "JSON value" }),
572
- ),
573
- ],
574
- );
575
-
576
- export type DeleteApiRequest = typeof DeleteApiRequest.Type;
577
-
578
- export const DeleteIntegrationRequest = Schema.StructWithRest(
579
- Schema.Struct({ ApiId: Schema.String, IntegrationId: Schema.String }),
580
- [
581
- Schema.Record(
582
- Schema.String,
583
- Schema.Json.annotate({ expected: "JSON value" }),
584
- ),
585
- ],
586
- );
587
-
588
- export type DeleteIntegrationRequest = typeof DeleteIntegrationRequest.Type;
589
-
590
- export const DeleteRouteRequest = Schema.StructWithRest(
591
- Schema.Struct({ ApiId: Schema.String, RouteId: Schema.String }),
592
- [
593
- Schema.Record(
594
- Schema.String,
595
- Schema.Json.annotate({ expected: "JSON value" }),
596
- ),
597
- ],
598
- );
599
-
600
- export type DeleteRouteRequest = typeof DeleteRouteRequest.Type;
601
-
602
- export const DeleteStageRequest = Schema.StructWithRest(
603
- Schema.Struct({ ApiId: Schema.String, StageName: Schema.String }),
604
- [
605
- Schema.Record(
606
- Schema.String,
607
- Schema.Json.annotate({ expected: "JSON value" }),
608
- ),
609
- ],
610
- );
611
-
612
- export type DeleteStageRequest = typeof DeleteStageRequest.Type;
613
-
614
- export const GetApiRequest = Schema.StructWithRest(
615
- Schema.Struct({ ApiId: Schema.String }),
616
- [
617
- Schema.Record(
618
- Schema.String,
619
- Schema.Json.annotate({ expected: "JSON value" }),
620
- ),
621
- ],
622
- );
623
-
624
- export type GetApiRequest = typeof GetApiRequest.Type;
625
-
626
- export const GetApiResponseContent = Schema.StructWithRest(
627
- Schema.Struct({
628
- apiEndpoint: optionalRestJsonMember(Schema.String),
629
- apiGatewayManaged: optionalRestJsonMember(Schema.Boolean),
630
- apiId: optionalRestJsonMember(Schema.String),
631
- apiKeySelectionExpression: optionalRestJsonMember(Schema.String),
632
- corsConfiguration: optionalRestJsonMember(Cors),
633
- createdDate: optionalRestJsonMember(
634
- Schema.String.annotate({ format: "date-time" }),
635
- ),
636
- description: optionalRestJsonMember(Schema.String),
637
- disableSchemaValidation: optionalRestJsonMember(Schema.Boolean),
638
- disableExecuteApiEndpoint: optionalRestJsonMember(Schema.Boolean),
639
- importInfo: optionalRestJsonMember(Schema.Array(Schema.String)),
640
- ipAddressType: optionalRestJsonMember(IpAddressType),
641
- name: optionalRestJsonMember(Schema.String),
642
- protocolType: optionalRestJsonMember(ProtocolType),
643
- routeSelectionExpression: optionalRestJsonMember(Schema.String),
644
- tags: optionalRestJsonMember(Tags),
645
- version: optionalRestJsonMember(Schema.String),
646
- warnings: optionalRestJsonMember(Schema.Array(Schema.String)),
647
- }),
648
- [
649
- Schema.Record(
650
- Schema.String,
651
- Schema.Json.annotate({ expected: "JSON value" }),
652
- ),
653
- ],
654
- );
655
-
656
- export type GetApiResponseContent = typeof GetApiResponseContent.Type;
657
-
658
- export const GetIntegrationRequest = Schema.StructWithRest(
659
- Schema.Struct({ ApiId: Schema.String, IntegrationId: Schema.String }),
660
- [
661
- Schema.Record(
662
- Schema.String,
663
- Schema.Json.annotate({ expected: "JSON value" }),
664
- ),
665
- ],
666
- );
667
-
668
- export type GetIntegrationRequest = typeof GetIntegrationRequest.Type;
669
-
670
- export const GetIntegrationResponseContent = Schema.StructWithRest(
671
- Schema.Struct({
672
- apiGatewayManaged: optionalRestJsonMember(Schema.Boolean),
673
- connectionId: optionalRestJsonMember(Schema.String),
674
- connectionType: optionalRestJsonMember(ConnectionType),
675
- contentHandlingStrategy: optionalRestJsonMember(ContentHandlingStrategy),
676
- credentialsArn: optionalRestJsonMember(Schema.String),
677
- description: optionalRestJsonMember(Schema.String),
678
- integrationId: optionalRestJsonMember(Schema.String),
679
- integrationMethod: optionalRestJsonMember(Schema.String),
680
- integrationResponseSelectionExpression: optionalRestJsonMember(
681
- Schema.String,
682
- ),
683
- integrationSubtype: optionalRestJsonMember(Schema.String),
684
- integrationType: optionalRestJsonMember(IntegrationType),
685
- integrationUri: optionalRestJsonMember(Schema.String),
686
- passthroughBehavior: optionalRestJsonMember(PassthroughBehavior),
687
- payloadFormatVersion: optionalRestJsonMember(Schema.String),
688
- requestParameters: optionalRestJsonMember(IntegrationParameters),
689
- requestTemplates: optionalRestJsonMember(TemplateMap),
690
- responseParameters: optionalRestJsonMember(ResponseParameters),
691
- templateSelectionExpression: optionalRestJsonMember(Schema.String),
692
- timeoutInMillis: optionalRestJsonMember(
693
- Schema.Finite.check(
694
- Schema.isGreaterThanOrEqualTo(50).annotate({
695
- expected: "a value greater than or equal to 50",
696
- }),
697
- ).check(
698
- Schema.isLessThanOrEqualTo(30000).annotate({
699
- expected: "a value less than or equal to 30000",
700
- }),
701
- ),
702
- ),
703
- tlsConfig: optionalRestJsonMember(TlsConfig),
704
- }),
705
- [
706
- Schema.Record(
707
- Schema.String,
708
- Schema.Json.annotate({ expected: "JSON value" }),
709
- ),
710
- ],
711
- );
712
-
713
- export type GetIntegrationResponseContent =
714
- typeof GetIntegrationResponseContent.Type;
715
-
716
- export const GetRouteRequest = Schema.StructWithRest(
717
- Schema.Struct({ ApiId: Schema.String, RouteId: Schema.String }),
718
- [
719
- Schema.Record(
720
- Schema.String,
721
- Schema.Json.annotate({ expected: "JSON value" }),
722
- ),
723
- ],
724
- );
725
-
726
- export type GetRouteRequest = typeof GetRouteRequest.Type;
727
-
728
- export const GetRouteResponseContent = Schema.StructWithRest(
729
- Schema.Struct({
730
- apiGatewayManaged: optionalRestJsonMember(Schema.Boolean),
731
- apiKeyRequired: optionalRestJsonMember(Schema.Boolean),
732
- authorizationScopes: optionalRestJsonMember(Schema.Array(Schema.String)),
733
- authorizationType: optionalRestJsonMember(AuthorizationType),
734
- authorizerId: optionalRestJsonMember(Schema.String),
735
- modelSelectionExpression: optionalRestJsonMember(Schema.String),
736
- operationName: optionalRestJsonMember(Schema.String),
737
- requestModels: optionalRestJsonMember(RouteModels),
738
- requestParameters: optionalRestJsonMember(RouteParameters),
739
- routeId: optionalRestJsonMember(Schema.String),
740
- routeKey: optionalRestJsonMember(Schema.String),
741
- routeResponseSelectionExpression: optionalRestJsonMember(Schema.String),
742
- target: optionalRestJsonMember(Schema.String),
743
- }),
744
- [
745
- Schema.Record(
746
- Schema.String,
747
- Schema.Json.annotate({ expected: "JSON value" }),
748
- ),
749
- ],
750
- );
751
-
752
- export type GetRouteResponseContent = typeof GetRouteResponseContent.Type;
753
-
754
- export const GetStageRequest = Schema.StructWithRest(
755
- Schema.Struct({ ApiId: Schema.String, StageName: Schema.String }),
756
- [
757
- Schema.Record(
758
- Schema.String,
759
- Schema.Json.annotate({ expected: "JSON value" }),
760
- ),
761
- ],
762
- );
763
-
764
- export type GetStageRequest = typeof GetStageRequest.Type;
765
-
766
- export const GetStageResponseContent = Schema.StructWithRest(
767
- Schema.Struct({
768
- accessLogSettings: optionalRestJsonMember(AccessLogSettings),
769
- apiGatewayManaged: optionalRestJsonMember(Schema.Boolean),
770
- autoDeploy: optionalRestJsonMember(Schema.Boolean),
771
- clientCertificateId: optionalRestJsonMember(Schema.String),
772
- createdDate: optionalRestJsonMember(
773
- Schema.String.annotate({ format: "date-time" }),
774
- ),
775
- defaultRouteSettings: optionalRestJsonMember(RouteSettings),
776
- deploymentId: optionalRestJsonMember(Schema.String),
777
- description: optionalRestJsonMember(Schema.String),
778
- lastDeploymentStatusMessage: optionalRestJsonMember(Schema.String),
779
- lastUpdatedDate: optionalRestJsonMember(
780
- Schema.String.annotate({ format: "date-time" }),
781
- ),
782
- routeSettings: optionalRestJsonMember(RouteSettingsMap),
783
- stageName: optionalRestJsonMember(Schema.String),
784
- stageVariables: optionalRestJsonMember(StageVariablesMap),
785
- tags: optionalRestJsonMember(Tags),
786
- }),
787
- [
788
- Schema.Record(
789
- Schema.String,
790
- Schema.Json.annotate({ expected: "JSON value" }),
791
- ),
792
- ],
793
- );
794
-
795
- export type GetStageResponseContent = typeof GetStageResponseContent.Type;
796
-
797
- export const UpdateApiRequest = Schema.StructWithRest(
798
- Schema.Struct({
799
- ApiId: Schema.String,
800
- apiKeySelectionExpression: optionalRestJsonMember(Schema.String),
801
- corsConfiguration: optionalRestJsonMember(Cors),
802
- credentialsArn: optionalRestJsonMember(Schema.String),
803
- description: optionalRestJsonMember(Schema.String),
804
- disableSchemaValidation: optionalRestJsonMember(Schema.Boolean),
805
- disableExecuteApiEndpoint: optionalRestJsonMember(Schema.Boolean),
806
- ipAddressType: optionalRestJsonMember(IpAddressType),
807
- name: optionalRestJsonMember(Schema.String),
808
- routeKey: optionalRestJsonMember(Schema.String),
809
- routeSelectionExpression: optionalRestJsonMember(Schema.String),
810
- target: optionalRestJsonMember(Schema.String),
811
- version: optionalRestJsonMember(Schema.String),
812
- }),
813
- [
814
- Schema.Record(
815
- Schema.String,
816
- Schema.Json.annotate({ expected: "JSON value" }),
817
- ),
818
- ],
819
- );
820
-
821
- export type UpdateApiRequest = typeof UpdateApiRequest.Type;
822
-
823
- export const UpdateApiResponseContent = Schema.StructWithRest(
824
- Schema.Struct({
825
- apiEndpoint: optionalRestJsonMember(Schema.String),
826
- apiGatewayManaged: optionalRestJsonMember(Schema.Boolean),
827
- apiId: optionalRestJsonMember(Schema.String),
828
- apiKeySelectionExpression: optionalRestJsonMember(Schema.String),
829
- corsConfiguration: optionalRestJsonMember(Cors),
830
- createdDate: optionalRestJsonMember(
831
- Schema.String.annotate({ format: "date-time" }),
832
- ),
833
- description: optionalRestJsonMember(Schema.String),
834
- disableSchemaValidation: optionalRestJsonMember(Schema.Boolean),
835
- disableExecuteApiEndpoint: optionalRestJsonMember(Schema.Boolean),
836
- importInfo: optionalRestJsonMember(Schema.Array(Schema.String)),
837
- ipAddressType: optionalRestJsonMember(IpAddressType),
838
- name: optionalRestJsonMember(Schema.String),
839
- protocolType: optionalRestJsonMember(ProtocolType),
840
- routeSelectionExpression: optionalRestJsonMember(Schema.String),
841
- tags: optionalRestJsonMember(Tags),
842
- version: optionalRestJsonMember(Schema.String),
843
- warnings: optionalRestJsonMember(Schema.Array(Schema.String)),
844
- }),
845
- [
846
- Schema.Record(
847
- Schema.String,
848
- Schema.Json.annotate({ expected: "JSON value" }),
849
- ),
850
- ],
851
- );
852
-
853
- export type UpdateApiResponseContent = typeof UpdateApiResponseContent.Type;
854
-
855
- export const UpdateIntegrationRequest = Schema.StructWithRest(
856
- Schema.Struct({
857
- ApiId: Schema.String,
858
- connectionId: optionalRestJsonMember(Schema.String),
859
- connectionType: optionalRestJsonMember(ConnectionType),
860
- contentHandlingStrategy: optionalRestJsonMember(ContentHandlingStrategy),
861
- credentialsArn: optionalRestJsonMember(Schema.String),
862
- description: optionalRestJsonMember(Schema.String),
863
- IntegrationId: Schema.String,
864
- integrationMethod: optionalRestJsonMember(Schema.String),
865
- integrationSubtype: optionalRestJsonMember(Schema.String),
866
- integrationType: optionalRestJsonMember(IntegrationType),
867
- integrationUri: optionalRestJsonMember(Schema.String),
868
- passthroughBehavior: optionalRestJsonMember(PassthroughBehavior),
869
- payloadFormatVersion: optionalRestJsonMember(Schema.String),
870
- requestParameters: optionalRestJsonMember(IntegrationParameters),
871
- requestTemplates: optionalRestJsonMember(TemplateMap),
872
- responseParameters: optionalRestJsonMember(ResponseParameters),
873
- templateSelectionExpression: optionalRestJsonMember(Schema.String),
874
- timeoutInMillis: optionalRestJsonMember(
875
- Schema.Finite.check(
876
- Schema.isGreaterThanOrEqualTo(50).annotate({
877
- expected: "a value greater than or equal to 50",
878
- }),
879
- ).check(
880
- Schema.isLessThanOrEqualTo(30000).annotate({
881
- expected: "a value less than or equal to 30000",
882
- }),
883
- ),
884
- ),
885
- tlsConfig: optionalRestJsonMember(TlsConfigInput),
886
- }),
887
- [
888
- Schema.Record(
889
- Schema.String,
890
- Schema.Json.annotate({ expected: "JSON value" }),
891
- ),
892
- ],
893
- );
894
-
895
- export type UpdateIntegrationRequest = typeof UpdateIntegrationRequest.Type;
896
-
897
- export const UpdateIntegrationResponseContent = Schema.StructWithRest(
898
- Schema.Struct({
899
- apiGatewayManaged: optionalRestJsonMember(Schema.Boolean),
900
- connectionId: optionalRestJsonMember(Schema.String),
901
- connectionType: optionalRestJsonMember(ConnectionType),
902
- contentHandlingStrategy: optionalRestJsonMember(ContentHandlingStrategy),
903
- credentialsArn: optionalRestJsonMember(Schema.String),
904
- description: optionalRestJsonMember(Schema.String),
905
- integrationId: optionalRestJsonMember(Schema.String),
906
- integrationMethod: optionalRestJsonMember(Schema.String),
907
- integrationResponseSelectionExpression: optionalRestJsonMember(
908
- Schema.String,
909
- ),
910
- integrationSubtype: optionalRestJsonMember(Schema.String),
911
- integrationType: optionalRestJsonMember(IntegrationType),
912
- integrationUri: optionalRestJsonMember(Schema.String),
913
- passthroughBehavior: optionalRestJsonMember(PassthroughBehavior),
914
- payloadFormatVersion: optionalRestJsonMember(Schema.String),
915
- requestParameters: optionalRestJsonMember(IntegrationParameters),
916
- requestTemplates: optionalRestJsonMember(TemplateMap),
917
- responseParameters: optionalRestJsonMember(ResponseParameters),
918
- templateSelectionExpression: optionalRestJsonMember(Schema.String),
919
- timeoutInMillis: optionalRestJsonMember(
920
- Schema.Finite.check(
921
- Schema.isGreaterThanOrEqualTo(50).annotate({
922
- expected: "a value greater than or equal to 50",
923
- }),
924
- ).check(
925
- Schema.isLessThanOrEqualTo(30000).annotate({
926
- expected: "a value less than or equal to 30000",
927
- }),
928
- ),
929
- ),
930
- tlsConfig: optionalRestJsonMember(TlsConfig),
931
- }),
932
- [
933
- Schema.Record(
934
- Schema.String,
935
- Schema.Json.annotate({ expected: "JSON value" }),
936
- ),
937
- ],
938
- );
939
-
940
- export type UpdateIntegrationResponseContent =
941
- typeof UpdateIntegrationResponseContent.Type;
942
-
943
- export const UpdateRouteRequest = Schema.StructWithRest(
944
- Schema.Struct({
945
- ApiId: Schema.String,
946
- apiKeyRequired: optionalRestJsonMember(Schema.Boolean),
947
- authorizationScopes: optionalRestJsonMember(Schema.Array(Schema.String)),
948
- authorizationType: optionalRestJsonMember(AuthorizationType),
949
- authorizerId: optionalRestJsonMember(Schema.String),
950
- modelSelectionExpression: optionalRestJsonMember(Schema.String),
951
- operationName: optionalRestJsonMember(Schema.String),
952
- requestModels: optionalRestJsonMember(RouteModels),
953
- requestParameters: optionalRestJsonMember(RouteParameters),
954
- RouteId: Schema.String,
955
- routeKey: optionalRestJsonMember(Schema.String),
956
- routeResponseSelectionExpression: optionalRestJsonMember(Schema.String),
957
- target: optionalRestJsonMember(Schema.String),
958
- }),
959
- [
960
- Schema.Record(
961
- Schema.String,
962
- Schema.Json.annotate({ expected: "JSON value" }),
963
- ),
964
- ],
965
- );
966
-
967
- export type UpdateRouteRequest = typeof UpdateRouteRequest.Type;
968
-
969
- export const UpdateRouteResponseContent = Schema.StructWithRest(
970
- Schema.Struct({
971
- apiGatewayManaged: optionalRestJsonMember(Schema.Boolean),
972
- apiKeyRequired: optionalRestJsonMember(Schema.Boolean),
973
- authorizationScopes: optionalRestJsonMember(Schema.Array(Schema.String)),
974
- authorizationType: optionalRestJsonMember(AuthorizationType),
975
- authorizerId: optionalRestJsonMember(Schema.String),
976
- modelSelectionExpression: optionalRestJsonMember(Schema.String),
977
- operationName: optionalRestJsonMember(Schema.String),
978
- requestModels: optionalRestJsonMember(RouteModels),
979
- requestParameters: optionalRestJsonMember(RouteParameters),
980
- routeId: optionalRestJsonMember(Schema.String),
981
- routeKey: optionalRestJsonMember(Schema.String),
982
- routeResponseSelectionExpression: optionalRestJsonMember(Schema.String),
983
- target: optionalRestJsonMember(Schema.String),
984
- }),
985
- [
986
- Schema.Record(
987
- Schema.String,
988
- Schema.Json.annotate({ expected: "JSON value" }),
989
- ),
990
- ],
991
- );
992
-
993
- export type UpdateRouteResponseContent = typeof UpdateRouteResponseContent.Type;
994
-
995
- export const UpdateStageRequest = Schema.StructWithRest(
996
- Schema.Struct({
997
- accessLogSettings: optionalRestJsonMember(AccessLogSettings),
998
- ApiId: Schema.String,
999
- autoDeploy: optionalRestJsonMember(Schema.Boolean),
1000
- clientCertificateId: optionalRestJsonMember(Schema.String),
1001
- defaultRouteSettings: optionalRestJsonMember(RouteSettings),
1002
- deploymentId: optionalRestJsonMember(Schema.String),
1003
- description: optionalRestJsonMember(Schema.String),
1004
- routeSettings: optionalRestJsonMember(RouteSettingsMap),
1005
- StageName: Schema.String,
1006
- stageVariables: optionalRestJsonMember(StageVariablesMap),
1007
- }),
1008
- [
1009
- Schema.Record(
1010
- Schema.String,
1011
- Schema.Json.annotate({ expected: "JSON value" }),
1012
- ),
1013
- ],
1014
- );
1015
-
1016
- export type UpdateStageRequest = typeof UpdateStageRequest.Type;
1017
-
1018
- export const UpdateStageResponseContent = Schema.StructWithRest(
1019
- Schema.Struct({
1020
- accessLogSettings: optionalRestJsonMember(AccessLogSettings),
1021
- apiGatewayManaged: optionalRestJsonMember(Schema.Boolean),
1022
- autoDeploy: optionalRestJsonMember(Schema.Boolean),
1023
- clientCertificateId: optionalRestJsonMember(Schema.String),
1024
- createdDate: optionalRestJsonMember(
1025
- Schema.String.annotate({ format: "date-time" }),
1026
- ),
1027
- defaultRouteSettings: optionalRestJsonMember(RouteSettings),
1028
- deploymentId: optionalRestJsonMember(Schema.String),
1029
- description: optionalRestJsonMember(Schema.String),
1030
- lastDeploymentStatusMessage: optionalRestJsonMember(Schema.String),
1031
- lastUpdatedDate: optionalRestJsonMember(
1032
- Schema.String.annotate({ format: "date-time" }),
1033
- ),
1034
- routeSettings: optionalRestJsonMember(RouteSettingsMap),
1035
- stageName: optionalRestJsonMember(Schema.String),
1036
- stageVariables: optionalRestJsonMember(StageVariablesMap),
1037
- tags: optionalRestJsonMember(Tags),
1038
- }),
1039
- [
1040
- Schema.Record(
1041
- Schema.String,
1042
- Schema.Json.annotate({ expected: "JSON value" }),
1043
- ),
1044
- ],
1045
- );
1046
-
1047
- export type UpdateStageResponseContent = typeof UpdateStageResponseContent.Type;
1048
-
1049
- export const apiGatewayV2Errors = {
1050
- BadRequestException: {
1051
- name: "BadRequestException",
1052
- fault: "client",
1053
- httpStatus: 400,
1054
- retryable: null,
1055
- schema: BadRequestException,
1056
- },
1057
- ConflictException: {
1058
- name: "ConflictException",
1059
- fault: "client",
1060
- httpStatus: 409,
1061
- retryable: null,
1062
- schema: ConflictException,
1063
- },
1064
- NotFoundException: {
1065
- name: "NotFoundException",
1066
- fault: "client",
1067
- httpStatus: 404,
1068
- retryable: null,
1069
- schema: NotFoundException,
1070
- },
1071
- TooManyRequestsException: {
1072
- name: "TooManyRequestsException",
1073
- fault: "client",
1074
- httpStatus: 429,
1075
- retryable: null,
1076
- schema: TooManyRequestsException,
1077
- },
1078
- };
1079
-
1080
- export const createApiErrors = [
1081
- apiGatewayV2Errors.BadRequestException,
1082
- apiGatewayV2Errors.ConflictException,
1083
- apiGatewayV2Errors.NotFoundException,
1084
- apiGatewayV2Errors.TooManyRequestsException,
1085
- ];
1086
-
1087
- export const deleteApiErrors = [
1088
- apiGatewayV2Errors.NotFoundException,
1089
- apiGatewayV2Errors.TooManyRequestsException,
1090
- ];
1091
-
1092
- export const createApiOperation: AwsRestJsonOperation & {
1093
- readonly input: typeof CreateApiRequest;
1094
- readonly output: typeof CreateApiResponseContent;
1095
- } = {
1096
- name: "CreateApi",
1097
- method: "POST",
1098
- path: "/v2/apis",
1099
- headers: {},
1100
- rest: {
1101
- bindings: {},
1102
- status: 201,
1103
- body: true,
1104
- },
1105
- idempotencyTokens: [],
1106
- pagination: {},
1107
- waiters: {},
1108
- input: CreateApiRequest,
1109
- output: CreateApiResponseContent,
1110
- errors: createApiErrors,
1111
- };
1112
-
1113
- export const createApiEndpoint = awsHttpEndpoint(
1114
- "CreateApi",
1115
- createApiOperation,
1116
- );
1117
-
1118
- export const createIntegrationOperation: AwsRestJsonOperation & {
1119
- readonly input: typeof CreateIntegrationRequest;
1120
- readonly output: typeof CreateIntegrationResponseContent;
1121
- } = {
1122
- name: "CreateIntegration",
1123
- method: "POST",
1124
- path: "/v2/apis/{ApiId}/integrations",
1125
- headers: {},
1126
- rest: {
1127
- bindings: {
1128
- ApiId: {
1129
- location: "LABEL",
1130
- name: "ApiId",
1131
- },
1132
- },
1133
- status: 201,
1134
- body: true,
1135
- },
1136
- idempotencyTokens: [],
1137
- pagination: {},
1138
- waiters: {},
1139
- input: CreateIntegrationRequest,
1140
- output: CreateIntegrationResponseContent,
1141
- errors: createApiErrors,
1142
- };
1143
-
1144
- export const createIntegrationEndpoint = awsHttpEndpoint(
1145
- "CreateIntegration",
1146
- createIntegrationOperation,
1147
- );
1148
-
1149
- export const createRouteOperation: AwsRestJsonOperation & {
1150
- readonly input: typeof CreateRouteRequest;
1151
- readonly output: typeof CreateRouteResponseContent;
1152
- } = {
1153
- name: "CreateRoute",
1154
- method: "POST",
1155
- path: "/v2/apis/{ApiId}/routes",
1156
- headers: {},
1157
- rest: {
1158
- bindings: {
1159
- ApiId: {
1160
- location: "LABEL",
1161
- name: "ApiId",
1162
- },
1163
- },
1164
- status: 201,
1165
- body: true,
1166
- },
1167
- idempotencyTokens: [],
1168
- pagination: {},
1169
- waiters: {},
1170
- input: CreateRouteRequest,
1171
- output: CreateRouteResponseContent,
1172
- errors: createApiErrors,
1173
- };
1174
-
1175
- export const createRouteEndpoint = awsHttpEndpoint(
1176
- "CreateRoute",
1177
- createRouteOperation,
1178
- );
1179
-
1180
- export const createStageOperation: AwsRestJsonOperation & {
1181
- readonly input: typeof CreateStageRequest;
1182
- readonly output: typeof CreateStageResponseContent;
1183
- } = {
1184
- name: "CreateStage",
1185
- method: "POST",
1186
- path: "/v2/apis/{ApiId}/stages",
1187
- headers: {},
1188
- rest: {
1189
- bindings: {
1190
- ApiId: {
1191
- location: "LABEL",
1192
- name: "ApiId",
1193
- },
1194
- },
1195
- status: 201,
1196
- body: true,
1197
- },
1198
- idempotencyTokens: [],
1199
- pagination: {},
1200
- waiters: {},
1201
- input: CreateStageRequest,
1202
- output: CreateStageResponseContent,
1203
- errors: createApiErrors,
1204
- };
1205
-
1206
- export const createStageEndpoint = awsHttpEndpoint(
1207
- "CreateStage",
1208
- createStageOperation,
1209
- );
1210
-
1211
- export const DeleteApiOutput = HttpApiSchema.Empty(204);
1212
-
1213
- export const deleteApiOperation: AwsRestJsonOperation & {
1214
- readonly input: typeof DeleteApiRequest;
1215
- readonly output: typeof DeleteApiOutput;
1216
- } = {
1217
- name: "DeleteApi",
1218
- method: "DELETE",
1219
- path: "/v2/apis/{ApiId}",
1220
- headers: {},
1221
- rest: {
1222
- bindings: {
1223
- ApiId: {
1224
- location: "LABEL",
1225
- name: "ApiId",
1226
- },
1227
- },
1228
- status: 204,
1229
- body: false,
1230
- },
1231
- idempotencyTokens: [],
1232
- pagination: {},
1233
- waiters: {},
1234
- input: DeleteApiRequest,
1235
- output: DeleteApiOutput,
1236
- errors: deleteApiErrors,
1237
- };
1238
-
1239
- export const deleteApiEndpoint = awsHttpEndpoint(
1240
- "DeleteApi",
1241
- deleteApiOperation,
1242
- );
1243
-
1244
- export const DeleteIntegrationOutput = HttpApiSchema.Empty(204);
1245
-
1246
- export const deleteIntegrationOperation: AwsRestJsonOperation & {
1247
- readonly input: typeof DeleteIntegrationRequest;
1248
- readonly output: typeof DeleteIntegrationOutput;
1249
- } = {
1250
- name: "DeleteIntegration",
1251
- method: "DELETE",
1252
- path: "/v2/apis/{ApiId}/integrations/{IntegrationId}",
1253
- headers: {},
1254
- rest: {
1255
- bindings: {
1256
- IntegrationId: {
1257
- location: "LABEL",
1258
- name: "IntegrationId",
1259
- },
1260
- ApiId: {
1261
- location: "LABEL",
1262
- name: "ApiId",
1263
- },
1264
- },
1265
- status: 204,
1266
- body: false,
1267
- },
1268
- idempotencyTokens: [],
1269
- pagination: {},
1270
- waiters: {},
1271
- input: DeleteIntegrationRequest,
1272
- output: DeleteIntegrationOutput,
1273
- errors: deleteApiErrors,
1274
- };
1275
-
1276
- export const deleteIntegrationEndpoint = awsHttpEndpoint(
1277
- "DeleteIntegration",
1278
- deleteIntegrationOperation,
1279
- );
1280
-
1281
- export const DeleteRouteOutput = HttpApiSchema.Empty(204);
1282
-
1283
- export const deleteRouteOperation: AwsRestJsonOperation & {
1284
- readonly input: typeof DeleteRouteRequest;
1285
- readonly output: typeof DeleteRouteOutput;
1286
- } = {
1287
- name: "DeleteRoute",
1288
- method: "DELETE",
1289
- path: "/v2/apis/{ApiId}/routes/{RouteId}",
1290
- headers: {},
1291
- rest: {
1292
- bindings: {
1293
- RouteId: {
1294
- location: "LABEL",
1295
- name: "RouteId",
1296
- },
1297
- ApiId: {
1298
- location: "LABEL",
1299
- name: "ApiId",
1300
- },
1301
- },
1302
- status: 204,
1303
- body: false,
1304
- },
1305
- idempotencyTokens: [],
1306
- pagination: {},
1307
- waiters: {},
1308
- input: DeleteRouteRequest,
1309
- output: DeleteRouteOutput,
1310
- errors: deleteApiErrors,
1311
- };
1312
-
1313
- export const deleteRouteEndpoint = awsHttpEndpoint(
1314
- "DeleteRoute",
1315
- deleteRouteOperation,
1316
- );
1317
-
1318
- export const DeleteStageOutput = HttpApiSchema.Empty(204);
1319
-
1320
- export const deleteStageOperation: AwsRestJsonOperation & {
1321
- readonly input: typeof DeleteStageRequest;
1322
- readonly output: typeof DeleteStageOutput;
1323
- } = {
1324
- name: "DeleteStage",
1325
- method: "DELETE",
1326
- path: "/v2/apis/{ApiId}/stages/{StageName}",
1327
- headers: {},
1328
- rest: {
1329
- bindings: {
1330
- StageName: {
1331
- location: "LABEL",
1332
- name: "StageName",
1333
- },
1334
- ApiId: {
1335
- location: "LABEL",
1336
- name: "ApiId",
1337
- },
1338
- },
1339
- status: 204,
1340
- body: false,
1341
- },
1342
- idempotencyTokens: [],
1343
- pagination: {},
1344
- waiters: {},
1345
- input: DeleteStageRequest,
1346
- output: DeleteStageOutput,
1347
- errors: deleteApiErrors,
1348
- };
1349
-
1350
- export const deleteStageEndpoint = awsHttpEndpoint(
1351
- "DeleteStage",
1352
- deleteStageOperation,
1353
- );
1354
-
1355
- export const getApiOperation: AwsRestJsonOperation & {
1356
- readonly input: typeof GetApiRequest;
1357
- readonly output: typeof GetApiResponseContent;
1358
- } = {
1359
- name: "GetApi",
1360
- method: "GET",
1361
- path: "/v2/apis/{ApiId}",
1362
- headers: {},
1363
- rest: {
1364
- bindings: {
1365
- ApiId: {
1366
- location: "LABEL",
1367
- name: "ApiId",
1368
- },
1369
- },
1370
- status: 200,
1371
- body: false,
1372
- },
1373
- idempotencyTokens: [],
1374
- pagination: {},
1375
- waiters: {},
1376
- input: GetApiRequest,
1377
- output: GetApiResponseContent,
1378
- errors: deleteApiErrors,
1379
- };
1380
-
1381
- export const getApiEndpoint = awsHttpEndpoint("GetApi", getApiOperation);
1382
-
1383
- export const getIntegrationOperation: AwsRestJsonOperation & {
1384
- readonly input: typeof GetIntegrationRequest;
1385
- readonly output: typeof GetIntegrationResponseContent;
1386
- } = {
1387
- name: "GetIntegration",
1388
- method: "GET",
1389
- path: "/v2/apis/{ApiId}/integrations/{IntegrationId}",
1390
- headers: {},
1391
- rest: {
1392
- bindings: {
1393
- IntegrationId: {
1394
- location: "LABEL",
1395
- name: "IntegrationId",
1396
- },
1397
- ApiId: {
1398
- location: "LABEL",
1399
- name: "ApiId",
1400
- },
1401
- },
1402
- status: 200,
1403
- body: false,
1404
- },
1405
- idempotencyTokens: [],
1406
- pagination: {},
1407
- waiters: {},
1408
- input: GetIntegrationRequest,
1409
- output: GetIntegrationResponseContent,
1410
- errors: deleteApiErrors,
1411
- };
1412
-
1413
- export const getIntegrationEndpoint = awsHttpEndpoint(
1414
- "GetIntegration",
1415
- getIntegrationOperation,
1416
- );
1417
-
1418
- export const getRouteOperation: AwsRestJsonOperation & {
1419
- readonly input: typeof GetRouteRequest;
1420
- readonly output: typeof GetRouteResponseContent;
1421
- } = {
1422
- name: "GetRoute",
1423
- method: "GET",
1424
- path: "/v2/apis/{ApiId}/routes/{RouteId}",
1425
- headers: {},
1426
- rest: {
1427
- bindings: {
1428
- RouteId: {
1429
- location: "LABEL",
1430
- name: "RouteId",
1431
- },
1432
- ApiId: {
1433
- location: "LABEL",
1434
- name: "ApiId",
1435
- },
1436
- },
1437
- status: 200,
1438
- body: false,
1439
- },
1440
- idempotencyTokens: [],
1441
- pagination: {},
1442
- waiters: {},
1443
- input: GetRouteRequest,
1444
- output: GetRouteResponseContent,
1445
- errors: deleteApiErrors,
1446
- };
1447
-
1448
- export const getRouteEndpoint = awsHttpEndpoint("GetRoute", getRouteOperation);
1449
-
1450
- export const getStageOperation: AwsRestJsonOperation & {
1451
- readonly input: typeof GetStageRequest;
1452
- readonly output: typeof GetStageResponseContent;
1453
- } = {
1454
- name: "GetStage",
1455
- method: "GET",
1456
- path: "/v2/apis/{ApiId}/stages/{StageName}",
1457
- headers: {},
1458
- rest: {
1459
- bindings: {
1460
- StageName: {
1461
- location: "LABEL",
1462
- name: "StageName",
1463
- },
1464
- ApiId: {
1465
- location: "LABEL",
1466
- name: "ApiId",
1467
- },
1468
- },
1469
- status: 200,
1470
- body: false,
1471
- },
1472
- idempotencyTokens: [],
1473
- pagination: {},
1474
- waiters: {},
1475
- input: GetStageRequest,
1476
- output: GetStageResponseContent,
1477
- errors: deleteApiErrors,
1478
- };
1479
-
1480
- export const getStageEndpoint = awsHttpEndpoint("GetStage", getStageOperation);
1481
-
1482
- export const updateApiOperation: AwsRestJsonOperation & {
1483
- readonly input: typeof UpdateApiRequest;
1484
- readonly output: typeof UpdateApiResponseContent;
1485
- } = {
1486
- name: "UpdateApi",
1487
- method: "PATCH",
1488
- path: "/v2/apis/{ApiId}",
1489
- headers: {},
1490
- rest: {
1491
- bindings: {
1492
- ApiId: {
1493
- location: "LABEL",
1494
- name: "ApiId",
1495
- },
1496
- },
1497
- status: 200,
1498
- body: true,
1499
- },
1500
- idempotencyTokens: [],
1501
- pagination: {},
1502
- waiters: {},
1503
- input: UpdateApiRequest,
1504
- output: UpdateApiResponseContent,
1505
- errors: createApiErrors,
1506
- };
1507
-
1508
- export const updateApiEndpoint = awsHttpEndpoint(
1509
- "UpdateApi",
1510
- updateApiOperation,
1511
- );
1512
-
1513
- export const updateIntegrationOperation: AwsRestJsonOperation & {
1514
- readonly input: typeof UpdateIntegrationRequest;
1515
- readonly output: typeof UpdateIntegrationResponseContent;
1516
- } = {
1517
- name: "UpdateIntegration",
1518
- method: "PATCH",
1519
- path: "/v2/apis/{ApiId}/integrations/{IntegrationId}",
1520
- headers: {},
1521
- rest: {
1522
- bindings: {
1523
- IntegrationId: {
1524
- location: "LABEL",
1525
- name: "IntegrationId",
1526
- },
1527
- ApiId: {
1528
- location: "LABEL",
1529
- name: "ApiId",
1530
- },
1531
- },
1532
- status: 200,
1533
- body: true,
1534
- },
1535
- idempotencyTokens: [],
1536
- pagination: {},
1537
- waiters: {},
1538
- input: UpdateIntegrationRequest,
1539
- output: UpdateIntegrationResponseContent,
1540
- errors: createApiErrors,
1541
- };
1542
-
1543
- export const updateIntegrationEndpoint = awsHttpEndpoint(
1544
- "UpdateIntegration",
1545
- updateIntegrationOperation,
1546
- );
1547
-
1548
- export const updateRouteOperation: AwsRestJsonOperation & {
1549
- readonly input: typeof UpdateRouteRequest;
1550
- readonly output: typeof UpdateRouteResponseContent;
1551
- } = {
1552
- name: "UpdateRoute",
1553
- method: "PATCH",
1554
- path: "/v2/apis/{ApiId}/routes/{RouteId}",
1555
- headers: {},
1556
- rest: {
1557
- bindings: {
1558
- RouteId: {
1559
- location: "LABEL",
1560
- name: "RouteId",
1561
- },
1562
- ApiId: {
1563
- location: "LABEL",
1564
- name: "ApiId",
1565
- },
1566
- },
1567
- status: 200,
1568
- body: true,
1569
- },
1570
- idempotencyTokens: [],
1571
- pagination: {},
1572
- waiters: {},
1573
- input: UpdateRouteRequest,
1574
- output: UpdateRouteResponseContent,
1575
- errors: createApiErrors,
1576
- };
1577
-
1578
- export const updateRouteEndpoint = awsHttpEndpoint(
1579
- "UpdateRoute",
1580
- updateRouteOperation,
1581
- );
1582
-
1583
- export const updateStageOperation: AwsRestJsonOperation & {
1584
- readonly input: typeof UpdateStageRequest;
1585
- readonly output: typeof UpdateStageResponseContent;
1586
- } = {
1587
- name: "UpdateStage",
1588
- method: "PATCH",
1589
- path: "/v2/apis/{ApiId}/stages/{StageName}",
1590
- headers: {},
1591
- rest: {
1592
- bindings: {
1593
- StageName: {
1594
- location: "LABEL",
1595
- name: "StageName",
1596
- },
1597
- ApiId: {
1598
- location: "LABEL",
1599
- name: "ApiId",
1600
- },
1601
- },
1602
- status: 200,
1603
- body: true,
1604
- },
1605
- idempotencyTokens: [],
1606
- pagination: {},
1607
- waiters: {},
1608
- input: UpdateStageRequest,
1609
- output: UpdateStageResponseContent,
1610
- errors: createApiErrors,
1611
- };
1612
-
1613
- export const updateStageEndpoint = awsHttpEndpoint(
1614
- "UpdateStage",
1615
- updateStageOperation,
1616
- );
1617
-
1618
- export const apiGatewayV2Operations = {
1619
- CreateApi: createApiOperation,
1620
- CreateIntegration: createIntegrationOperation,
1621
- CreateRoute: createRouteOperation,
1622
- CreateStage: createStageOperation,
1623
- DeleteApi: deleteApiOperation,
1624
- DeleteIntegration: deleteIntegrationOperation,
1625
- DeleteRoute: deleteRouteOperation,
1626
- DeleteStage: deleteStageOperation,
1627
- GetApi: getApiOperation,
1628
- GetIntegration: getIntegrationOperation,
1629
- GetRoute: getRouteOperation,
1630
- GetStage: getStageOperation,
1631
- UpdateApi: updateApiOperation,
1632
- UpdateIntegration: updateIntegrationOperation,
1633
- UpdateRoute: updateRouteOperation,
1634
- UpdateStage: updateStageOperation,
1635
- };
1636
-
1637
- export const apiGatewayV2Api = HttpApi.make("ApiGatewayV2").add(
1638
- HttpApiGroup.make("apigatewayv2").add(
1639
- createApiEndpoint,
1640
- createIntegrationEndpoint,
1641
- createRouteEndpoint,
1642
- createStageEndpoint,
1643
- deleteApiEndpoint,
1644
- deleteIntegrationEndpoint,
1645
- deleteRouteEndpoint,
1646
- deleteStageEndpoint,
1647
- getApiEndpoint,
1648
- getIntegrationEndpoint,
1649
- getRouteEndpoint,
1650
- getStageEndpoint,
1651
- updateApiEndpoint,
1652
- updateIntegrationEndpoint,
1653
- updateRouteEndpoint,
1654
- updateStageEndpoint,
1655
- ),
1656
- );
1657
-
1658
- export const apiGatewayV2Service: AwsServiceDefinition = {
1659
- service: "com.amazonaws.apigatewayv2#ApiGatewayV2",
1660
- version: "2018-11-29",
1661
- protocol: "restJson1",
1662
- signingName: "apigateway",
1663
- endpointRules: {
1664
- version: "1.0",
1665
- parameters: {
1666
- Region: {
1667
- builtIn: "AWS::Region",
1668
- required: false,
1669
- documentation: "The AWS region used to dispatch the request.",
1670
- type: "string",
1671
- },
1672
- UseDualStack: {
1673
- builtIn: "AWS::UseDualStack",
1674
- required: true,
1675
- default: false,
1676
- documentation:
1677
- "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",
1678
- type: "boolean",
1679
- },
1680
- UseFIPS: {
1681
- builtIn: "AWS::UseFIPS",
1682
- required: true,
1683
- default: false,
1684
- documentation:
1685
- "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",
1686
- type: "boolean",
1687
- },
1688
- Endpoint: {
1689
- builtIn: "SDK::Endpoint",
1690
- required: false,
1691
- documentation: "Override the endpoint used to send this request",
1692
- type: "string",
1693
- },
1694
- },
1695
- rules: [
1696
- {
1697
- conditions: [
1698
- {
1699
- fn: "isSet",
1700
- argv: [
1701
- {
1702
- ref: "Endpoint",
1703
- },
1704
- ],
1705
- },
1706
- ],
1707
- rules: [
1708
- {
1709
- conditions: [
1710
- {
1711
- fn: "booleanEquals",
1712
- argv: [
1713
- {
1714
- ref: "UseFIPS",
1715
- },
1716
- true,
1717
- ],
1718
- },
1719
- ],
1720
- error:
1721
- "Invalid Configuration: FIPS and custom endpoint are not supported",
1722
- type: "error",
1723
- },
1724
- {
1725
- conditions: [
1726
- {
1727
- fn: "booleanEquals",
1728
- argv: [
1729
- {
1730
- ref: "UseDualStack",
1731
- },
1732
- true,
1733
- ],
1734
- },
1735
- ],
1736
- error:
1737
- "Invalid Configuration: Dualstack and custom endpoint are not supported",
1738
- type: "error",
1739
- },
1740
- {
1741
- conditions: [],
1742
- endpoint: {
1743
- url: {
1744
- ref: "Endpoint",
1745
- },
1746
- properties: {},
1747
- headers: {},
1748
- },
1749
- type: "endpoint",
1750
- },
1751
- ],
1752
- type: "tree",
1753
- },
1754
- {
1755
- conditions: [
1756
- {
1757
- fn: "isSet",
1758
- argv: [
1759
- {
1760
- ref: "Region",
1761
- },
1762
- ],
1763
- },
1764
- ],
1765
- rules: [
1766
- {
1767
- conditions: [
1768
- {
1769
- fn: "aws.partition",
1770
- argv: [
1771
- {
1772
- ref: "Region",
1773
- },
1774
- ],
1775
- assign: "PartitionResult",
1776
- },
1777
- ],
1778
- rules: [
1779
- {
1780
- conditions: [
1781
- {
1782
- fn: "booleanEquals",
1783
- argv: [
1784
- {
1785
- ref: "UseFIPS",
1786
- },
1787
- true,
1788
- ],
1789
- },
1790
- {
1791
- fn: "booleanEquals",
1792
- argv: [
1793
- {
1794
- ref: "UseDualStack",
1795
- },
1796
- true,
1797
- ],
1798
- },
1799
- ],
1800
- rules: [
1801
- {
1802
- conditions: [
1803
- {
1804
- fn: "booleanEquals",
1805
- argv: [
1806
- true,
1807
- {
1808
- fn: "getAttr",
1809
- argv: [
1810
- {
1811
- ref: "PartitionResult",
1812
- },
1813
- "supportsFIPS",
1814
- ],
1815
- },
1816
- ],
1817
- },
1818
- {
1819
- fn: "booleanEquals",
1820
- argv: [
1821
- true,
1822
- {
1823
- fn: "getAttr",
1824
- argv: [
1825
- {
1826
- ref: "PartitionResult",
1827
- },
1828
- "supportsDualStack",
1829
- ],
1830
- },
1831
- ],
1832
- },
1833
- ],
1834
- rules: [
1835
- {
1836
- conditions: [],
1837
- endpoint: {
1838
- url: "https://apigateway-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
1839
- properties: {},
1840
- headers: {},
1841
- },
1842
- type: "endpoint",
1843
- },
1844
- ],
1845
- type: "tree",
1846
- },
1847
- {
1848
- conditions: [],
1849
- error:
1850
- "FIPS and DualStack are enabled, but this partition does not support one or both",
1851
- type: "error",
1852
- },
1853
- ],
1854
- type: "tree",
1855
- },
1856
- {
1857
- conditions: [
1858
- {
1859
- fn: "booleanEquals",
1860
- argv: [
1861
- {
1862
- ref: "UseFIPS",
1863
- },
1864
- true,
1865
- ],
1866
- },
1867
- ],
1868
- rules: [
1869
- {
1870
- conditions: [
1871
- {
1872
- fn: "booleanEquals",
1873
- argv: [
1874
- {
1875
- fn: "getAttr",
1876
- argv: [
1877
- {
1878
- ref: "PartitionResult",
1879
- },
1880
- "supportsFIPS",
1881
- ],
1882
- },
1883
- true,
1884
- ],
1885
- },
1886
- ],
1887
- rules: [
1888
- {
1889
- conditions: [],
1890
- endpoint: {
1891
- url: "https://apigateway-fips.{Region}.{PartitionResult#dnsSuffix}",
1892
- properties: {},
1893
- headers: {},
1894
- },
1895
- type: "endpoint",
1896
- },
1897
- ],
1898
- type: "tree",
1899
- },
1900
- {
1901
- conditions: [],
1902
- error:
1903
- "FIPS is enabled but this partition does not support FIPS",
1904
- type: "error",
1905
- },
1906
- ],
1907
- type: "tree",
1908
- },
1909
- {
1910
- conditions: [
1911
- {
1912
- fn: "booleanEquals",
1913
- argv: [
1914
- {
1915
- ref: "UseDualStack",
1916
- },
1917
- true,
1918
- ],
1919
- },
1920
- ],
1921
- rules: [
1922
- {
1923
- conditions: [
1924
- {
1925
- fn: "booleanEquals",
1926
- argv: [
1927
- true,
1928
- {
1929
- fn: "getAttr",
1930
- argv: [
1931
- {
1932
- ref: "PartitionResult",
1933
- },
1934
- "supportsDualStack",
1935
- ],
1936
- },
1937
- ],
1938
- },
1939
- ],
1940
- rules: [
1941
- {
1942
- conditions: [],
1943
- endpoint: {
1944
- url: "https://apigateway.{Region}.{PartitionResult#dualStackDnsSuffix}",
1945
- properties: {},
1946
- headers: {},
1947
- },
1948
- type: "endpoint",
1949
- },
1950
- ],
1951
- type: "tree",
1952
- },
1953
- {
1954
- conditions: [],
1955
- error:
1956
- "DualStack is enabled but this partition does not support DualStack",
1957
- type: "error",
1958
- },
1959
- ],
1960
- type: "tree",
1961
- },
1962
- {
1963
- conditions: [],
1964
- endpoint: {
1965
- url: "https://apigateway.{Region}.{PartitionResult#dnsSuffix}",
1966
- properties: {},
1967
- headers: {},
1968
- },
1969
- type: "endpoint",
1970
- },
1971
- ],
1972
- type: "tree",
1973
- },
1974
- ],
1975
- type: "tree",
1976
- },
1977
- {
1978
- conditions: [],
1979
- error: "Invalid Configuration: Missing Region",
1980
- type: "error",
1981
- },
1982
- ],
1983
- },
1984
- };
1985
-
1986
- export const makeApiGatewayV2Client = Effect.gen(function* () {
1987
- const aws = yield* AwsClient;
1988
- const bindOperation = aws.bindOperation(apiGatewayV2Service);
1989
-
1990
- const createApi = bindOperation(createApiOperation);
1991
- const createIntegration = bindOperation(createIntegrationOperation);
1992
- const createRoute = bindOperation(createRouteOperation);
1993
- const createStage = bindOperation(createStageOperation);
1994
- const deleteApi = bindOperation(deleteApiOperation);
1995
- const deleteIntegration = bindOperation(deleteIntegrationOperation);
1996
- const deleteRoute = bindOperation(deleteRouteOperation);
1997
- const deleteStage = bindOperation(deleteStageOperation);
1998
- const getApi = bindOperation(getApiOperation);
1999
- const getIntegration = bindOperation(getIntegrationOperation);
2000
- const getRoute = bindOperation(getRouteOperation);
2001
- const getStage = bindOperation(getStageOperation);
2002
- const updateApi = bindOperation(updateApiOperation);
2003
- const updateIntegration = bindOperation(updateIntegrationOperation);
2004
- const updateRoute = bindOperation(updateRouteOperation);
2005
- const updateStage = bindOperation(updateStageOperation);
2006
-
2007
- return {
2008
- createApi,
2009
- createIntegration,
2010
- createRoute,
2011
- createStage,
2012
- deleteApi,
2013
- deleteIntegration,
2014
- deleteRoute,
2015
- deleteStage,
2016
- getApi,
2017
- getIntegration,
2018
- getRoute,
2019
- getStage,
2020
- updateApi,
2021
- updateIntegration,
2022
- updateRoute,
2023
- updateStage,
2024
- };
2025
- });
2026
- export const apiGatewayV2OperationCatalog = [
2027
- {
2028
- source: {
2029
- provider: "AWS",
2030
- service: "com.amazonaws.apigatewayv2#ApiGatewayV2",
2031
- name: "CreateApi.json",
2032
- format: "Smithy",
2033
- },
2034
- version: "2018-11-29",
2035
- operationId: "CreateApi",
2036
- method: "POST",
2037
- path: "/v2/apis",
2038
- servers: [],
2039
- parameters: [],
2040
- requestBody: {
2041
- required: true,
2042
- mediaTypes: ["application/json"],
2043
- },
2044
- responses: {
2045
- "201": ["application/json"],
2046
- "400": ["application/json"],
2047
- "404": ["application/json"],
2048
- "409": ["application/json"],
2049
- "429": ["application/json"],
2050
- },
2051
- providerMetadata: {
2052
- document: {
2053
- "x-aws-service": apiGatewayV2Service,
2054
- },
2055
- operation: {
2056
- "x-aws-errors": [
2057
- {
2058
- $ref: "#/components/schemas/BadRequestException",
2059
- },
2060
- {
2061
- $ref: "#/components/schemas/ConflictException",
2062
- },
2063
- {
2064
- $ref: "#/components/schemas/NotFoundException",
2065
- },
2066
- {
2067
- $ref: "#/components/schemas/TooManyRequestsException",
2068
- },
2069
- ],
2070
- "x-aws-http-bindings": {},
2071
- "x-aws-idempotency-tokens": [],
2072
- "x-aws-input": {
2073
- $ref: "#/components/schemas/CreateApiRequest",
2074
- },
2075
- "x-aws-pagination": {},
2076
- "x-aws-waiters": {},
2077
- },
2078
- },
2079
- },
2080
- {
2081
- source: {
2082
- provider: "AWS",
2083
- service: "com.amazonaws.apigatewayv2#ApiGatewayV2",
2084
- name: "CreateIntegration.json",
2085
- format: "Smithy",
2086
- },
2087
- version: "2018-11-29",
2088
- operationId: "CreateIntegration",
2089
- method: "POST",
2090
- path: "/v2/apis/{ApiId}/integrations",
2091
- servers: [],
2092
- parameters: [
2093
- {
2094
- name: "ApiId",
2095
- location: "path",
2096
- required: true,
2097
- },
2098
- ],
2099
- requestBody: {
2100
- required: true,
2101
- mediaTypes: ["application/json"],
2102
- },
2103
- responses: {
2104
- "201": ["application/json"],
2105
- "400": ["application/json"],
2106
- "404": ["application/json"],
2107
- "409": ["application/json"],
2108
- "429": ["application/json"],
2109
- },
2110
- providerMetadata: {
2111
- document: {
2112
- "x-aws-service": apiGatewayV2Service,
2113
- },
2114
- operation: {
2115
- "x-aws-errors": [
2116
- {
2117
- $ref: "#/components/schemas/BadRequestException",
2118
- },
2119
- {
2120
- $ref: "#/components/schemas/ConflictException",
2121
- },
2122
- {
2123
- $ref: "#/components/schemas/NotFoundException",
2124
- },
2125
- {
2126
- $ref: "#/components/schemas/TooManyRequestsException",
2127
- },
2128
- ],
2129
- "x-aws-http-bindings": {
2130
- ApiId: {
2131
- location: "LABEL",
2132
- name: "ApiId",
2133
- },
2134
- },
2135
- "x-aws-idempotency-tokens": [],
2136
- "x-aws-input": {
2137
- $ref: "#/components/schemas/CreateIntegrationRequest",
2138
- },
2139
- "x-aws-pagination": {},
2140
- "x-aws-waiters": {},
2141
- },
2142
- },
2143
- },
2144
- {
2145
- source: {
2146
- provider: "AWS",
2147
- service: "com.amazonaws.apigatewayv2#ApiGatewayV2",
2148
- name: "CreateRoute.json",
2149
- format: "Smithy",
2150
- },
2151
- version: "2018-11-29",
2152
- operationId: "CreateRoute",
2153
- method: "POST",
2154
- path: "/v2/apis/{ApiId}/routes",
2155
- servers: [],
2156
- parameters: [
2157
- {
2158
- name: "ApiId",
2159
- location: "path",
2160
- required: true,
2161
- },
2162
- ],
2163
- requestBody: {
2164
- required: true,
2165
- mediaTypes: ["application/json"],
2166
- },
2167
- responses: {
2168
- "201": ["application/json"],
2169
- "400": ["application/json"],
2170
- "404": ["application/json"],
2171
- "409": ["application/json"],
2172
- "429": ["application/json"],
2173
- },
2174
- providerMetadata: {
2175
- document: {
2176
- "x-aws-service": apiGatewayV2Service,
2177
- },
2178
- operation: {
2179
- "x-aws-errors": [
2180
- {
2181
- $ref: "#/components/schemas/BadRequestException",
2182
- },
2183
- {
2184
- $ref: "#/components/schemas/ConflictException",
2185
- },
2186
- {
2187
- $ref: "#/components/schemas/NotFoundException",
2188
- },
2189
- {
2190
- $ref: "#/components/schemas/TooManyRequestsException",
2191
- },
2192
- ],
2193
- "x-aws-http-bindings": {
2194
- ApiId: {
2195
- location: "LABEL",
2196
- name: "ApiId",
2197
- },
2198
- },
2199
- "x-aws-idempotency-tokens": [],
2200
- "x-aws-input": {
2201
- $ref: "#/components/schemas/CreateRouteRequest",
2202
- },
2203
- "x-aws-pagination": {},
2204
- "x-aws-waiters": {},
2205
- },
2206
- },
2207
- },
2208
- {
2209
- source: {
2210
- provider: "AWS",
2211
- service: "com.amazonaws.apigatewayv2#ApiGatewayV2",
2212
- name: "CreateStage.json",
2213
- format: "Smithy",
2214
- },
2215
- version: "2018-11-29",
2216
- operationId: "CreateStage",
2217
- method: "POST",
2218
- path: "/v2/apis/{ApiId}/stages",
2219
- servers: [],
2220
- parameters: [
2221
- {
2222
- name: "ApiId",
2223
- location: "path",
2224
- required: true,
2225
- },
2226
- ],
2227
- requestBody: {
2228
- required: true,
2229
- mediaTypes: ["application/json"],
2230
- },
2231
- responses: {
2232
- "201": ["application/json"],
2233
- "400": ["application/json"],
2234
- "404": ["application/json"],
2235
- "409": ["application/json"],
2236
- "429": ["application/json"],
2237
- },
2238
- providerMetadata: {
2239
- document: {
2240
- "x-aws-service": apiGatewayV2Service,
2241
- },
2242
- operation: {
2243
- "x-aws-errors": [
2244
- {
2245
- $ref: "#/components/schemas/BadRequestException",
2246
- },
2247
- {
2248
- $ref: "#/components/schemas/ConflictException",
2249
- },
2250
- {
2251
- $ref: "#/components/schemas/NotFoundException",
2252
- },
2253
- {
2254
- $ref: "#/components/schemas/TooManyRequestsException",
2255
- },
2256
- ],
2257
- "x-aws-http-bindings": {
2258
- ApiId: {
2259
- location: "LABEL",
2260
- name: "ApiId",
2261
- },
2262
- },
2263
- "x-aws-idempotency-tokens": [],
2264
- "x-aws-input": {
2265
- $ref: "#/components/schemas/CreateStageRequest",
2266
- },
2267
- "x-aws-pagination": {},
2268
- "x-aws-waiters": {},
2269
- },
2270
- },
2271
- },
2272
- {
2273
- source: {
2274
- provider: "AWS",
2275
- service: "com.amazonaws.apigatewayv2#ApiGatewayV2",
2276
- name: "DeleteApi.json",
2277
- format: "Smithy",
2278
- },
2279
- version: "2018-11-29",
2280
- operationId: "DeleteApi",
2281
- method: "DELETE",
2282
- path: "/v2/apis/{ApiId}",
2283
- servers: [],
2284
- parameters: [
2285
- {
2286
- name: "ApiId",
2287
- location: "path",
2288
- required: true,
2289
- },
2290
- ],
2291
- responses: {
2292
- "204": [],
2293
- "404": ["application/json"],
2294
- "429": ["application/json"],
2295
- },
2296
- providerMetadata: {
2297
- document: {
2298
- "x-aws-service": apiGatewayV2Service,
2299
- },
2300
- operation: {
2301
- "x-aws-errors": [
2302
- {
2303
- $ref: "#/components/schemas/NotFoundException",
2304
- },
2305
- {
2306
- $ref: "#/components/schemas/TooManyRequestsException",
2307
- },
2308
- ],
2309
- "x-aws-http-bindings": {
2310
- ApiId: {
2311
- location: "LABEL",
2312
- name: "ApiId",
2313
- },
2314
- },
2315
- "x-aws-idempotency-tokens": [],
2316
- "x-aws-input": {
2317
- $ref: "#/components/schemas/DeleteApiRequest",
2318
- },
2319
- "x-aws-pagination": {},
2320
- "x-aws-waiters": {},
2321
- },
2322
- },
2323
- },
2324
- {
2325
- source: {
2326
- provider: "AWS",
2327
- service: "com.amazonaws.apigatewayv2#ApiGatewayV2",
2328
- name: "DeleteIntegration.json",
2329
- format: "Smithy",
2330
- },
2331
- version: "2018-11-29",
2332
- operationId: "DeleteIntegration",
2333
- method: "DELETE",
2334
- path: "/v2/apis/{ApiId}/integrations/{IntegrationId}",
2335
- servers: [],
2336
- parameters: [
2337
- {
2338
- name: "ApiId",
2339
- location: "path",
2340
- required: true,
2341
- },
2342
- {
2343
- name: "IntegrationId",
2344
- location: "path",
2345
- required: true,
2346
- },
2347
- ],
2348
- responses: {
2349
- "204": [],
2350
- "404": ["application/json"],
2351
- "429": ["application/json"],
2352
- },
2353
- providerMetadata: {
2354
- document: {
2355
- "x-aws-service": apiGatewayV2Service,
2356
- },
2357
- operation: {
2358
- "x-aws-errors": [
2359
- {
2360
- $ref: "#/components/schemas/NotFoundException",
2361
- },
2362
- {
2363
- $ref: "#/components/schemas/TooManyRequestsException",
2364
- },
2365
- ],
2366
- "x-aws-http-bindings": {
2367
- IntegrationId: {
2368
- location: "LABEL",
2369
- name: "IntegrationId",
2370
- },
2371
- ApiId: {
2372
- location: "LABEL",
2373
- name: "ApiId",
2374
- },
2375
- },
2376
- "x-aws-idempotency-tokens": [],
2377
- "x-aws-input": {
2378
- $ref: "#/components/schemas/DeleteIntegrationRequest",
2379
- },
2380
- "x-aws-pagination": {},
2381
- "x-aws-waiters": {},
2382
- },
2383
- },
2384
- },
2385
- {
2386
- source: {
2387
- provider: "AWS",
2388
- service: "com.amazonaws.apigatewayv2#ApiGatewayV2",
2389
- name: "DeleteRoute.json",
2390
- format: "Smithy",
2391
- },
2392
- version: "2018-11-29",
2393
- operationId: "DeleteRoute",
2394
- method: "DELETE",
2395
- path: "/v2/apis/{ApiId}/routes/{RouteId}",
2396
- servers: [],
2397
- parameters: [
2398
- {
2399
- name: "ApiId",
2400
- location: "path",
2401
- required: true,
2402
- },
2403
- {
2404
- name: "RouteId",
2405
- location: "path",
2406
- required: true,
2407
- },
2408
- ],
2409
- responses: {
2410
- "204": [],
2411
- "404": ["application/json"],
2412
- "429": ["application/json"],
2413
- },
2414
- providerMetadata: {
2415
- document: {
2416
- "x-aws-service": apiGatewayV2Service,
2417
- },
2418
- operation: {
2419
- "x-aws-errors": [
2420
- {
2421
- $ref: "#/components/schemas/NotFoundException",
2422
- },
2423
- {
2424
- $ref: "#/components/schemas/TooManyRequestsException",
2425
- },
2426
- ],
2427
- "x-aws-http-bindings": {
2428
- RouteId: {
2429
- location: "LABEL",
2430
- name: "RouteId",
2431
- },
2432
- ApiId: {
2433
- location: "LABEL",
2434
- name: "ApiId",
2435
- },
2436
- },
2437
- "x-aws-idempotency-tokens": [],
2438
- "x-aws-input": {
2439
- $ref: "#/components/schemas/DeleteRouteRequest",
2440
- },
2441
- "x-aws-pagination": {},
2442
- "x-aws-waiters": {},
2443
- },
2444
- },
2445
- },
2446
- {
2447
- source: {
2448
- provider: "AWS",
2449
- service: "com.amazonaws.apigatewayv2#ApiGatewayV2",
2450
- name: "DeleteStage.json",
2451
- format: "Smithy",
2452
- },
2453
- version: "2018-11-29",
2454
- operationId: "DeleteStage",
2455
- method: "DELETE",
2456
- path: "/v2/apis/{ApiId}/stages/{StageName}",
2457
- servers: [],
2458
- parameters: [
2459
- {
2460
- name: "ApiId",
2461
- location: "path",
2462
- required: true,
2463
- },
2464
- {
2465
- name: "StageName",
2466
- location: "path",
2467
- required: true,
2468
- },
2469
- ],
2470
- responses: {
2471
- "204": [],
2472
- "404": ["application/json"],
2473
- "429": ["application/json"],
2474
- },
2475
- providerMetadata: {
2476
- document: {
2477
- "x-aws-service": apiGatewayV2Service,
2478
- },
2479
- operation: {
2480
- "x-aws-errors": [
2481
- {
2482
- $ref: "#/components/schemas/NotFoundException",
2483
- },
2484
- {
2485
- $ref: "#/components/schemas/TooManyRequestsException",
2486
- },
2487
- ],
2488
- "x-aws-http-bindings": {
2489
- StageName: {
2490
- location: "LABEL",
2491
- name: "StageName",
2492
- },
2493
- ApiId: {
2494
- location: "LABEL",
2495
- name: "ApiId",
2496
- },
2497
- },
2498
- "x-aws-idempotency-tokens": [],
2499
- "x-aws-input": {
2500
- $ref: "#/components/schemas/DeleteStageRequest",
2501
- },
2502
- "x-aws-pagination": {},
2503
- "x-aws-waiters": {},
2504
- },
2505
- },
2506
- },
2507
- {
2508
- source: {
2509
- provider: "AWS",
2510
- service: "com.amazonaws.apigatewayv2#ApiGatewayV2",
2511
- name: "GetApi.json",
2512
- format: "Smithy",
2513
- },
2514
- version: "2018-11-29",
2515
- operationId: "GetApi",
2516
- method: "GET",
2517
- path: "/v2/apis/{ApiId}",
2518
- servers: [],
2519
- parameters: [
2520
- {
2521
- name: "ApiId",
2522
- location: "path",
2523
- required: true,
2524
- },
2525
- ],
2526
- responses: {
2527
- "200": ["application/json"],
2528
- "404": ["application/json"],
2529
- "429": ["application/json"],
2530
- },
2531
- providerMetadata: {
2532
- document: {
2533
- "x-aws-service": apiGatewayV2Service,
2534
- },
2535
- operation: {
2536
- "x-aws-errors": [
2537
- {
2538
- $ref: "#/components/schemas/NotFoundException",
2539
- },
2540
- {
2541
- $ref: "#/components/schemas/TooManyRequestsException",
2542
- },
2543
- ],
2544
- "x-aws-http-bindings": {
2545
- ApiId: {
2546
- location: "LABEL",
2547
- name: "ApiId",
2548
- },
2549
- },
2550
- "x-aws-idempotency-tokens": [],
2551
- "x-aws-input": {
2552
- $ref: "#/components/schemas/GetApiRequest",
2553
- },
2554
- "x-aws-pagination": {},
2555
- "x-aws-waiters": {},
2556
- },
2557
- },
2558
- },
2559
- {
2560
- source: {
2561
- provider: "AWS",
2562
- service: "com.amazonaws.apigatewayv2#ApiGatewayV2",
2563
- name: "GetIntegration.json",
2564
- format: "Smithy",
2565
- },
2566
- version: "2018-11-29",
2567
- operationId: "GetIntegration",
2568
- method: "GET",
2569
- path: "/v2/apis/{ApiId}/integrations/{IntegrationId}",
2570
- servers: [],
2571
- parameters: [
2572
- {
2573
- name: "ApiId",
2574
- location: "path",
2575
- required: true,
2576
- },
2577
- {
2578
- name: "IntegrationId",
2579
- location: "path",
2580
- required: true,
2581
- },
2582
- ],
2583
- responses: {
2584
- "200": ["application/json"],
2585
- "404": ["application/json"],
2586
- "429": ["application/json"],
2587
- },
2588
- providerMetadata: {
2589
- document: {
2590
- "x-aws-service": apiGatewayV2Service,
2591
- },
2592
- operation: {
2593
- "x-aws-errors": [
2594
- {
2595
- $ref: "#/components/schemas/NotFoundException",
2596
- },
2597
- {
2598
- $ref: "#/components/schemas/TooManyRequestsException",
2599
- },
2600
- ],
2601
- "x-aws-http-bindings": {
2602
- IntegrationId: {
2603
- location: "LABEL",
2604
- name: "IntegrationId",
2605
- },
2606
- ApiId: {
2607
- location: "LABEL",
2608
- name: "ApiId",
2609
- },
2610
- },
2611
- "x-aws-idempotency-tokens": [],
2612
- "x-aws-input": {
2613
- $ref: "#/components/schemas/GetIntegrationRequest",
2614
- },
2615
- "x-aws-pagination": {},
2616
- "x-aws-waiters": {},
2617
- },
2618
- },
2619
- },
2620
- {
2621
- source: {
2622
- provider: "AWS",
2623
- service: "com.amazonaws.apigatewayv2#ApiGatewayV2",
2624
- name: "GetRoute.json",
2625
- format: "Smithy",
2626
- },
2627
- version: "2018-11-29",
2628
- operationId: "GetRoute",
2629
- method: "GET",
2630
- path: "/v2/apis/{ApiId}/routes/{RouteId}",
2631
- servers: [],
2632
- parameters: [
2633
- {
2634
- name: "ApiId",
2635
- location: "path",
2636
- required: true,
2637
- },
2638
- {
2639
- name: "RouteId",
2640
- location: "path",
2641
- required: true,
2642
- },
2643
- ],
2644
- responses: {
2645
- "200": ["application/json"],
2646
- "404": ["application/json"],
2647
- "429": ["application/json"],
2648
- },
2649
- providerMetadata: {
2650
- document: {
2651
- "x-aws-service": apiGatewayV2Service,
2652
- },
2653
- operation: {
2654
- "x-aws-errors": [
2655
- {
2656
- $ref: "#/components/schemas/NotFoundException",
2657
- },
2658
- {
2659
- $ref: "#/components/schemas/TooManyRequestsException",
2660
- },
2661
- ],
2662
- "x-aws-http-bindings": {
2663
- RouteId: {
2664
- location: "LABEL",
2665
- name: "RouteId",
2666
- },
2667
- ApiId: {
2668
- location: "LABEL",
2669
- name: "ApiId",
2670
- },
2671
- },
2672
- "x-aws-idempotency-tokens": [],
2673
- "x-aws-input": {
2674
- $ref: "#/components/schemas/GetRouteRequest",
2675
- },
2676
- "x-aws-pagination": {},
2677
- "x-aws-waiters": {},
2678
- },
2679
- },
2680
- },
2681
- {
2682
- source: {
2683
- provider: "AWS",
2684
- service: "com.amazonaws.apigatewayv2#ApiGatewayV2",
2685
- name: "GetStage.json",
2686
- format: "Smithy",
2687
- },
2688
- version: "2018-11-29",
2689
- operationId: "GetStage",
2690
- method: "GET",
2691
- path: "/v2/apis/{ApiId}/stages/{StageName}",
2692
- servers: [],
2693
- parameters: [
2694
- {
2695
- name: "ApiId",
2696
- location: "path",
2697
- required: true,
2698
- },
2699
- {
2700
- name: "StageName",
2701
- location: "path",
2702
- required: true,
2703
- },
2704
- ],
2705
- responses: {
2706
- "200": ["application/json"],
2707
- "404": ["application/json"],
2708
- "429": ["application/json"],
2709
- },
2710
- providerMetadata: {
2711
- document: {
2712
- "x-aws-service": apiGatewayV2Service,
2713
- },
2714
- operation: {
2715
- "x-aws-errors": [
2716
- {
2717
- $ref: "#/components/schemas/NotFoundException",
2718
- },
2719
- {
2720
- $ref: "#/components/schemas/TooManyRequestsException",
2721
- },
2722
- ],
2723
- "x-aws-http-bindings": {
2724
- StageName: {
2725
- location: "LABEL",
2726
- name: "StageName",
2727
- },
2728
- ApiId: {
2729
- location: "LABEL",
2730
- name: "ApiId",
2731
- },
2732
- },
2733
- "x-aws-idempotency-tokens": [],
2734
- "x-aws-input": {
2735
- $ref: "#/components/schemas/GetStageRequest",
2736
- },
2737
- "x-aws-pagination": {},
2738
- "x-aws-waiters": {},
2739
- },
2740
- },
2741
- },
2742
- {
2743
- source: {
2744
- provider: "AWS",
2745
- service: "com.amazonaws.apigatewayv2#ApiGatewayV2",
2746
- name: "UpdateApi.json",
2747
- format: "Smithy",
2748
- },
2749
- version: "2018-11-29",
2750
- operationId: "UpdateApi",
2751
- method: "PATCH",
2752
- path: "/v2/apis/{ApiId}",
2753
- servers: [],
2754
- parameters: [
2755
- {
2756
- name: "ApiId",
2757
- location: "path",
2758
- required: true,
2759
- },
2760
- ],
2761
- requestBody: {
2762
- required: false,
2763
- mediaTypes: ["application/json"],
2764
- },
2765
- responses: {
2766
- "200": ["application/json"],
2767
- "400": ["application/json"],
2768
- "404": ["application/json"],
2769
- "409": ["application/json"],
2770
- "429": ["application/json"],
2771
- },
2772
- providerMetadata: {
2773
- document: {
2774
- "x-aws-service": apiGatewayV2Service,
2775
- },
2776
- operation: {
2777
- "x-aws-errors": [
2778
- {
2779
- $ref: "#/components/schemas/BadRequestException",
2780
- },
2781
- {
2782
- $ref: "#/components/schemas/ConflictException",
2783
- },
2784
- {
2785
- $ref: "#/components/schemas/NotFoundException",
2786
- },
2787
- {
2788
- $ref: "#/components/schemas/TooManyRequestsException",
2789
- },
2790
- ],
2791
- "x-aws-http-bindings": {
2792
- ApiId: {
2793
- location: "LABEL",
2794
- name: "ApiId",
2795
- },
2796
- },
2797
- "x-aws-idempotency-tokens": [],
2798
- "x-aws-input": {
2799
- $ref: "#/components/schemas/UpdateApiRequest",
2800
- },
2801
- "x-aws-pagination": {},
2802
- "x-aws-waiters": {},
2803
- },
2804
- },
2805
- },
2806
- {
2807
- source: {
2808
- provider: "AWS",
2809
- service: "com.amazonaws.apigatewayv2#ApiGatewayV2",
2810
- name: "UpdateIntegration.json",
2811
- format: "Smithy",
2812
- },
2813
- version: "2018-11-29",
2814
- operationId: "UpdateIntegration",
2815
- method: "PATCH",
2816
- path: "/v2/apis/{ApiId}/integrations/{IntegrationId}",
2817
- servers: [],
2818
- parameters: [
2819
- {
2820
- name: "ApiId",
2821
- location: "path",
2822
- required: true,
2823
- },
2824
- {
2825
- name: "IntegrationId",
2826
- location: "path",
2827
- required: true,
2828
- },
2829
- ],
2830
- requestBody: {
2831
- required: false,
2832
- mediaTypes: ["application/json"],
2833
- },
2834
- responses: {
2835
- "200": ["application/json"],
2836
- "400": ["application/json"],
2837
- "404": ["application/json"],
2838
- "409": ["application/json"],
2839
- "429": ["application/json"],
2840
- },
2841
- providerMetadata: {
2842
- document: {
2843
- "x-aws-service": apiGatewayV2Service,
2844
- },
2845
- operation: {
2846
- "x-aws-errors": [
2847
- {
2848
- $ref: "#/components/schemas/BadRequestException",
2849
- },
2850
- {
2851
- $ref: "#/components/schemas/ConflictException",
2852
- },
2853
- {
2854
- $ref: "#/components/schemas/NotFoundException",
2855
- },
2856
- {
2857
- $ref: "#/components/schemas/TooManyRequestsException",
2858
- },
2859
- ],
2860
- "x-aws-http-bindings": {
2861
- IntegrationId: {
2862
- location: "LABEL",
2863
- name: "IntegrationId",
2864
- },
2865
- ApiId: {
2866
- location: "LABEL",
2867
- name: "ApiId",
2868
- },
2869
- },
2870
- "x-aws-idempotency-tokens": [],
2871
- "x-aws-input": {
2872
- $ref: "#/components/schemas/UpdateIntegrationRequest",
2873
- },
2874
- "x-aws-pagination": {},
2875
- "x-aws-waiters": {},
2876
- },
2877
- },
2878
- },
2879
- {
2880
- source: {
2881
- provider: "AWS",
2882
- service: "com.amazonaws.apigatewayv2#ApiGatewayV2",
2883
- name: "UpdateRoute.json",
2884
- format: "Smithy",
2885
- },
2886
- version: "2018-11-29",
2887
- operationId: "UpdateRoute",
2888
- method: "PATCH",
2889
- path: "/v2/apis/{ApiId}/routes/{RouteId}",
2890
- servers: [],
2891
- parameters: [
2892
- {
2893
- name: "ApiId",
2894
- location: "path",
2895
- required: true,
2896
- },
2897
- {
2898
- name: "RouteId",
2899
- location: "path",
2900
- required: true,
2901
- },
2902
- ],
2903
- requestBody: {
2904
- required: false,
2905
- mediaTypes: ["application/json"],
2906
- },
2907
- responses: {
2908
- "200": ["application/json"],
2909
- "400": ["application/json"],
2910
- "404": ["application/json"],
2911
- "409": ["application/json"],
2912
- "429": ["application/json"],
2913
- },
2914
- providerMetadata: {
2915
- document: {
2916
- "x-aws-service": apiGatewayV2Service,
2917
- },
2918
- operation: {
2919
- "x-aws-errors": [
2920
- {
2921
- $ref: "#/components/schemas/BadRequestException",
2922
- },
2923
- {
2924
- $ref: "#/components/schemas/ConflictException",
2925
- },
2926
- {
2927
- $ref: "#/components/schemas/NotFoundException",
2928
- },
2929
- {
2930
- $ref: "#/components/schemas/TooManyRequestsException",
2931
- },
2932
- ],
2933
- "x-aws-http-bindings": {
2934
- RouteId: {
2935
- location: "LABEL",
2936
- name: "RouteId",
2937
- },
2938
- ApiId: {
2939
- location: "LABEL",
2940
- name: "ApiId",
2941
- },
2942
- },
2943
- "x-aws-idempotency-tokens": [],
2944
- "x-aws-input": {
2945
- $ref: "#/components/schemas/UpdateRouteRequest",
2946
- },
2947
- "x-aws-pagination": {},
2948
- "x-aws-waiters": {},
2949
- },
2950
- },
2951
- },
2952
- {
2953
- source: {
2954
- provider: "AWS",
2955
- service: "com.amazonaws.apigatewayv2#ApiGatewayV2",
2956
- name: "UpdateStage.json",
2957
- format: "Smithy",
2958
- },
2959
- version: "2018-11-29",
2960
- operationId: "UpdateStage",
2961
- method: "PATCH",
2962
- path: "/v2/apis/{ApiId}/stages/{StageName}",
2963
- servers: [],
2964
- parameters: [
2965
- {
2966
- name: "ApiId",
2967
- location: "path",
2968
- required: true,
2969
- },
2970
- {
2971
- name: "StageName",
2972
- location: "path",
2973
- required: true,
2974
- },
2975
- ],
2976
- requestBody: {
2977
- required: false,
2978
- mediaTypes: ["application/json"],
2979
- },
2980
- responses: {
2981
- "200": ["application/json"],
2982
- "400": ["application/json"],
2983
- "404": ["application/json"],
2984
- "409": ["application/json"],
2985
- "429": ["application/json"],
2986
- },
2987
- providerMetadata: {
2988
- document: {
2989
- "x-aws-service": apiGatewayV2Service,
2990
- },
2991
- operation: {
2992
- "x-aws-errors": [
2993
- {
2994
- $ref: "#/components/schemas/BadRequestException",
2995
- },
2996
- {
2997
- $ref: "#/components/schemas/ConflictException",
2998
- },
2999
- {
3000
- $ref: "#/components/schemas/NotFoundException",
3001
- },
3002
- {
3003
- $ref: "#/components/schemas/TooManyRequestsException",
3004
- },
3005
- ],
3006
- "x-aws-http-bindings": {
3007
- StageName: {
3008
- location: "LABEL",
3009
- name: "StageName",
3010
- },
3011
- ApiId: {
3012
- location: "LABEL",
3013
- name: "ApiId",
3014
- },
3015
- },
3016
- "x-aws-idempotency-tokens": [],
3017
- "x-aws-input": {
3018
- $ref: "#/components/schemas/UpdateStageRequest",
3019
- },
3020
- "x-aws-pagination": {},
3021
- "x-aws-waiters": {},
3022
- },
3023
- },
3024
- },
3025
- ];