nomoss 0.0.3 → 0.0.4

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 +27 -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,655 +0,0 @@
1
- {
2
- "openapi": "3.1.0",
3
- "info": {
4
- "title": "AWS Cloud Control API",
5
- "version": "2021-09-30",
6
- "description": "<p>For more information about Amazon Web Services Cloud Control API, see the <a href=\"https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/what-is-cloudcontrolapi.html\">Amazon Web Services Cloud Control API User\n Guide</a>.</p>"
7
- },
8
- "paths": {
9
- "/": {
10
- "post": {
11
- "description": "<p>Returns the current status of a resource operation request. For more information, see\n <a href=\"https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-track\">Tracking the progress of resource operation requests</a> in the\n <i>Amazon Web Services Cloud Control API User Guide</i>.</p>",
12
- "operationId": "GetResourceRequestStatus",
13
- "requestBody": {
14
- "content": {
15
- "application/x-amz-json-1.0": {
16
- "schema": {
17
- "$ref": "#/components/schemas/GetResourceRequestStatusInput"
18
- }
19
- }
20
- },
21
- "required": true
22
- },
23
- "parameters": [
24
- {
25
- "name": "X-Amz-Target",
26
- "in": "header",
27
- "schema": {
28
- "type": "string",
29
- "enum": [
30
- "CloudApiService.GetResourceRequestStatus"
31
- ]
32
- },
33
- "required": true
34
- }
35
- ],
36
- "responses": {
37
- "200": {
38
- "description": "Successful operation response",
39
- "content": {
40
- "application/x-amz-json-1.0": {
41
- "schema": {
42
- "$ref": "#/components/schemas/GetResourceRequestStatusOutput"
43
- }
44
- }
45
- }
46
- },
47
- "404": {
48
- "description": "Modeled AWS failure",
49
- "content": {
50
- "application/x-amz-json-1.0": {
51
- "schema": {
52
- "$ref": "#/components/schemas/RequestTokenNotFoundException"
53
- }
54
- }
55
- }
56
- }
57
- },
58
- "x-aws-idempotency-tokens": [],
59
- "x-aws-pagination": {},
60
- "x-aws-waiters": {
61
- "ResourceRequestSuccess": {
62
- "documentation": "Wait until resource operation request is successful",
63
- "acceptors": [
64
- {
65
- "state": "success",
66
- "matcher": {
67
- "output": {
68
- "path": "ProgressEvent.OperationStatus",
69
- "expected": "SUCCESS",
70
- "comparator": "stringEquals"
71
- }
72
- }
73
- },
74
- {
75
- "state": "failure",
76
- "matcher": {
77
- "output": {
78
- "path": "ProgressEvent.OperationStatus",
79
- "expected": "FAILED",
80
- "comparator": "stringEquals"
81
- }
82
- }
83
- },
84
- {
85
- "state": "failure",
86
- "matcher": {
87
- "output": {
88
- "path": "ProgressEvent.OperationStatus",
89
- "expected": "CANCEL_COMPLETE",
90
- "comparator": "stringEquals"
91
- }
92
- }
93
- }
94
- ],
95
- "minDelay": 5
96
- }
97
- }
98
- }
99
- }
100
- },
101
- "components": {
102
- "schemas": {
103
- "GetResourceRequestStatusInput": {
104
- "type": "object",
105
- "properties": {
106
- "RequestToken": {
107
- "type": "string",
108
- "maxLength": 128,
109
- "minLength": 1,
110
- "pattern": "^[-A-Za-z0-9+/=]+$",
111
- "description": "<p>A unique token used to track the progress of the resource operation request.</p>\n <p>Request tokens are included in the <code>ProgressEvent</code> type returned by a resource\n operation request.</p>"
112
- }
113
- },
114
- "required": [
115
- "RequestToken"
116
- ]
117
- },
118
- "GetResourceRequestStatusOutput": {
119
- "type": "object",
120
- "properties": {
121
- "ProgressEvent": {
122
- "$ref": "#/components/schemas/ProgressEvent"
123
- },
124
- "HooksProgressEvent": {
125
- "type": "array",
126
- "items": {
127
- "$ref": "#/components/schemas/HookProgressEvent"
128
- },
129
- "description": "<p>Lists Hook invocations for the specified target in the request. This is a list since the same target can invoke multiple Hooks.</p>"
130
- }
131
- }
132
- },
133
- "HandlerErrorCode": {
134
- "type": "string",
135
- "enum": [
136
- "NotUpdatable",
137
- "InvalidRequest",
138
- "AccessDenied",
139
- "UnauthorizedTaggingOperation",
140
- "InvalidCredentials",
141
- "AlreadyExists",
142
- "NotFound",
143
- "ResourceConflict",
144
- "Throttling",
145
- "ServiceLimitExceeded",
146
- "NotStabilized",
147
- "GeneralServiceException",
148
- "ServiceInternalError",
149
- "ServiceTimeout",
150
- "NetworkFailure",
151
- "InternalFailure"
152
- ]
153
- },
154
- "HookProgressEvent": {
155
- "type": "object",
156
- "description": "<p>Represents the current status of applicable Hooks for a resource operation request. It contains list of \n Hook invocation information for the resource specified in the request since the same target can invoke multiple Hooks. \n For more information, see <a href=\"https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html\">Managing resource operation requests with Amazon Web Services Cloud Control API\n </a>.</p>",
157
- "properties": {
158
- "HookTypeName": {
159
- "type": "string",
160
- "maxLength": 196,
161
- "minLength": 10,
162
- "pattern": "^[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}$",
163
- "description": "<p>The type name of the Hook being invoked.</p>"
164
- },
165
- "HookTypeVersionId": {
166
- "type": "string",
167
- "maxLength": 128,
168
- "minLength": 1,
169
- "pattern": "^[A-Za-z0-9-]+$",
170
- "description": "<p>The type version of the Hook being invoked.</p>"
171
- },
172
- "HookTypeArn": {
173
- "type": "string",
174
- "maxLength": 2048,
175
- "minLength": 1,
176
- "pattern": "^arn:aws.*:.+:.*:.*:.+$",
177
- "description": "<p>The ARN of the Hook being invoked.</p>"
178
- },
179
- "InvocationPoint": {
180
- "type": "string",
181
- "maxLength": 128,
182
- "minLength": 1,
183
- "pattern": "^[-A-Za-z_]+$",
184
- "description": "<p>States whether the Hook is invoked before or after resource provisioning.</p>"
185
- },
186
- "HookStatus": {
187
- "type": "string",
188
- "maxLength": 128,
189
- "minLength": 1,
190
- "pattern": "^[-A-Za-z_]+$",
191
- "description": "<p>The status of the Hook invocation. The following are potential statuses:</p>\n <ul>\n <li>\n <p>\n <code>HOOK_PENDING</code>: The Hook was added to the invocation plan, but not yet invoked.</p>\n </li>\n <li>\n <p>\n <code>HOOK_IN_PROGRESS</code>: The Hook was invoked, but hasn't completed.</p>\n </li>\n <li>\n <p>\n <code>HOOK_COMPLETE_SUCCEEDED</code>: The Hook invocation is complete with a successful result.</p>\n </li>\n <li>\n <p>\n <code>HOOK_COMPLETE_FAILED</code>: The Hook invocation is complete with a failed result.</p>\n </li>\n <li>\n <p>\n <code>HOOK_FAILED</code>: The Hook invocation didn't complete successfully.</p>\n </li>\n </ul>"
192
- },
193
- "HookEventTime": {
194
- "type": "number",
195
- "description": "<p>The time that the Hook invocation request initiated.</p>",
196
- "format": "double"
197
- },
198
- "HookStatusMessage": {
199
- "type": "string",
200
- "maxLength": 2048,
201
- "minLength": 0,
202
- "pattern": "^[\\s\\S]*$",
203
- "description": "<p>The message explaining the current Hook status.</p>"
204
- },
205
- "FailureMode": {
206
- "type": "string",
207
- "maxLength": 128,
208
- "minLength": 1,
209
- "pattern": "^[-A-Za-z_]+$",
210
- "description": "<p>The failure mode of the invocation. The following are the potential statuses:</p>\n <ul>\n <li>\n <p>\n <code>FAIL</code>: This will fail the Hook invocation and the request associated with it.</p>\n </li>\n <li>\n <p>\n <code>WARN</code>: This will fail the Hook invocation, but not the request associated with it.</p>\n </li>\n </ul>"
211
- }
212
- }
213
- },
214
- "Operation": {
215
- "type": "string",
216
- "enum": [
217
- "CREATE",
218
- "DELETE",
219
- "UPDATE"
220
- ]
221
- },
222
- "OperationStatus": {
223
- "type": "string",
224
- "enum": [
225
- "PENDING",
226
- "IN_PROGRESS",
227
- "SUCCESS",
228
- "FAILED",
229
- "CANCEL_IN_PROGRESS",
230
- "CANCEL_COMPLETE"
231
- ]
232
- },
233
- "ProgressEvent": {
234
- "type": "object",
235
- "description": "<p>Represents the current status of a resource operation request. For more information, see\n <a href=\"https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html\">Managing resource operation requests</a> in the\n <i>Amazon Web Services Cloud Control API User Guide</i>.</p>",
236
- "properties": {
237
- "TypeName": {
238
- "type": "string",
239
- "maxLength": 196,
240
- "minLength": 10,
241
- "pattern": "^[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}$",
242
- "description": "<p>The name of the resource type used in the operation.</p>"
243
- },
244
- "Identifier": {
245
- "type": "string",
246
- "maxLength": 1024,
247
- "minLength": 1,
248
- "pattern": "^.+$",
249
- "description": "<p>The primary identifier for the resource.</p>\n <note>\n <p>In some cases, the resource identifier may be available before the resource operation\n has reached a status of <code>SUCCESS</code>.</p>\n </note>"
250
- },
251
- "RequestToken": {
252
- "type": "string",
253
- "maxLength": 128,
254
- "minLength": 1,
255
- "pattern": "^[-A-Za-z0-9+/=]+$",
256
- "description": "<p>The unique token representing this resource operation request.</p>\n <p>Use the <code>RequestToken</code> with <a href=\"https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html\">GetResourceRequestStatus</a> to return the current status of a resource operation\n request.</p>"
257
- },
258
- "HooksRequestToken": {
259
- "type": "string",
260
- "maxLength": 128,
261
- "minLength": 1,
262
- "pattern": "^[-A-Za-z0-9+/=]+$",
263
- "description": "<p>The unique token representing the Hooks operation for the request.</p>"
264
- },
265
- "Operation": {
266
- "$ref": "#/components/schemas/Operation"
267
- },
268
- "OperationStatus": {
269
- "$ref": "#/components/schemas/OperationStatus"
270
- },
271
- "EventTime": {
272
- "type": "number",
273
- "description": "<p>When the resource operation request was initiated.</p>",
274
- "format": "double"
275
- },
276
- "ResourceModel": {
277
- "type": "string",
278
- "maxLength": 262144,
279
- "minLength": 1,
280
- "pattern": "^[\\s\\S]*$",
281
- "description": "<p>A JSON string containing the resource model, consisting of each resource property and its\n current value.</p>",
282
- "format": "password"
283
- },
284
- "StatusMessage": {
285
- "type": "string",
286
- "maxLength": 2048,
287
- "minLength": 0,
288
- "pattern": "^[\\s\\S]*$",
289
- "description": "<p>Any message explaining the current status.</p>"
290
- },
291
- "ErrorCode": {
292
- "$ref": "#/components/schemas/HandlerErrorCode"
293
- },
294
- "RetryAfter": {
295
- "type": "number",
296
- "description": "<p>When to next request the status of this resource operation request.</p>",
297
- "format": "double"
298
- }
299
- }
300
- },
301
- "RequestTokenNotFoundException": {
302
- "type": "object",
303
- "description": "<p>A resource operation with the specified request token can't be found.</p>",
304
- "properties": {
305
- "Message": {
306
- "type": "string",
307
- "maxLength": 2048,
308
- "minLength": 1,
309
- "pattern": "^.+$"
310
- }
311
- },
312
- "x-aws-error": {
313
- "name": "RequestTokenNotFoundException",
314
- "fault": "client",
315
- "httpStatus": 404,
316
- "retryable": null
317
- }
318
- }
319
- },
320
- "securitySchemes": {
321
- "aws.auth.sigv4": {
322
- "type": "apiKey",
323
- "description": "AWS Signature Version 4 authentication",
324
- "name": "Authorization",
325
- "in": "header",
326
- "x-amazon-apigateway-authtype": "awsSigv4"
327
- }
328
- }
329
- },
330
- "security": [
331
- {
332
- "aws.auth.sigv4": []
333
- }
334
- ],
335
- "x-aws-service": {
336
- "service": "com.amazonaws.cloudcontrol#CloudApiService",
337
- "version": "2021-09-30",
338
- "protocol": "awsJson1_0",
339
- "signingName": "cloudcontrolapi",
340
- "endpointRules": {
341
- "version": "1.0",
342
- "parameters": {
343
- "Region": {
344
- "builtIn": "AWS::Region",
345
- "required": false,
346
- "documentation": "The AWS region used to dispatch the request.",
347
- "type": "string"
348
- },
349
- "UseDualStack": {
350
- "builtIn": "AWS::UseDualStack",
351
- "required": true,
352
- "default": false,
353
- "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",
354
- "type": "boolean"
355
- },
356
- "UseFIPS": {
357
- "builtIn": "AWS::UseFIPS",
358
- "required": true,
359
- "default": false,
360
- "documentation": "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.",
361
- "type": "boolean"
362
- },
363
- "Endpoint": {
364
- "builtIn": "SDK::Endpoint",
365
- "required": false,
366
- "documentation": "Override the endpoint used to send this request",
367
- "type": "string"
368
- }
369
- },
370
- "rules": [
371
- {
372
- "conditions": [
373
- {
374
- "fn": "isSet",
375
- "argv": [
376
- {
377
- "ref": "Endpoint"
378
- }
379
- ]
380
- }
381
- ],
382
- "rules": [
383
- {
384
- "conditions": [
385
- {
386
- "fn": "booleanEquals",
387
- "argv": [
388
- {
389
- "ref": "UseFIPS"
390
- },
391
- true
392
- ]
393
- }
394
- ],
395
- "error": "Invalid Configuration: FIPS and custom endpoint are not supported",
396
- "type": "error"
397
- },
398
- {
399
- "conditions": [
400
- {
401
- "fn": "booleanEquals",
402
- "argv": [
403
- {
404
- "ref": "UseDualStack"
405
- },
406
- true
407
- ]
408
- }
409
- ],
410
- "error": "Invalid Configuration: Dualstack and custom endpoint are not supported",
411
- "type": "error"
412
- },
413
- {
414
- "conditions": [],
415
- "endpoint": {
416
- "url": {
417
- "ref": "Endpoint"
418
- },
419
- "properties": {},
420
- "headers": {}
421
- },
422
- "type": "endpoint"
423
- }
424
- ],
425
- "type": "tree"
426
- },
427
- {
428
- "conditions": [
429
- {
430
- "fn": "isSet",
431
- "argv": [
432
- {
433
- "ref": "Region"
434
- }
435
- ]
436
- }
437
- ],
438
- "rules": [
439
- {
440
- "conditions": [
441
- {
442
- "fn": "aws.partition",
443
- "argv": [
444
- {
445
- "ref": "Region"
446
- }
447
- ],
448
- "assign": "PartitionResult"
449
- }
450
- ],
451
- "rules": [
452
- {
453
- "conditions": [
454
- {
455
- "fn": "booleanEquals",
456
- "argv": [
457
- {
458
- "ref": "UseFIPS"
459
- },
460
- true
461
- ]
462
- },
463
- {
464
- "fn": "booleanEquals",
465
- "argv": [
466
- {
467
- "ref": "UseDualStack"
468
- },
469
- true
470
- ]
471
- }
472
- ],
473
- "rules": [
474
- {
475
- "conditions": [
476
- {
477
- "fn": "booleanEquals",
478
- "argv": [
479
- true,
480
- {
481
- "fn": "getAttr",
482
- "argv": [
483
- {
484
- "ref": "PartitionResult"
485
- },
486
- "supportsFIPS"
487
- ]
488
- }
489
- ]
490
- },
491
- {
492
- "fn": "booleanEquals",
493
- "argv": [
494
- true,
495
- {
496
- "fn": "getAttr",
497
- "argv": [
498
- {
499
- "ref": "PartitionResult"
500
- },
501
- "supportsDualStack"
502
- ]
503
- }
504
- ]
505
- }
506
- ],
507
- "rules": [
508
- {
509
- "conditions": [],
510
- "endpoint": {
511
- "url": "https://cloudcontrolapi-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
512
- "properties": {},
513
- "headers": {}
514
- },
515
- "type": "endpoint"
516
- }
517
- ],
518
- "type": "tree"
519
- },
520
- {
521
- "conditions": [],
522
- "error": "FIPS and DualStack are enabled, but this partition does not support one or both",
523
- "type": "error"
524
- }
525
- ],
526
- "type": "tree"
527
- },
528
- {
529
- "conditions": [
530
- {
531
- "fn": "booleanEquals",
532
- "argv": [
533
- {
534
- "ref": "UseFIPS"
535
- },
536
- true
537
- ]
538
- }
539
- ],
540
- "rules": [
541
- {
542
- "conditions": [
543
- {
544
- "fn": "booleanEquals",
545
- "argv": [
546
- {
547
- "fn": "getAttr",
548
- "argv": [
549
- {
550
- "ref": "PartitionResult"
551
- },
552
- "supportsFIPS"
553
- ]
554
- },
555
- true
556
- ]
557
- }
558
- ],
559
- "rules": [
560
- {
561
- "conditions": [],
562
- "endpoint": {
563
- "url": "https://cloudcontrolapi-fips.{Region}.{PartitionResult#dnsSuffix}",
564
- "properties": {},
565
- "headers": {}
566
- },
567
- "type": "endpoint"
568
- }
569
- ],
570
- "type": "tree"
571
- },
572
- {
573
- "conditions": [],
574
- "error": "FIPS is enabled but this partition does not support FIPS",
575
- "type": "error"
576
- }
577
- ],
578
- "type": "tree"
579
- },
580
- {
581
- "conditions": [
582
- {
583
- "fn": "booleanEquals",
584
- "argv": [
585
- {
586
- "ref": "UseDualStack"
587
- },
588
- true
589
- ]
590
- }
591
- ],
592
- "rules": [
593
- {
594
- "conditions": [
595
- {
596
- "fn": "booleanEquals",
597
- "argv": [
598
- true,
599
- {
600
- "fn": "getAttr",
601
- "argv": [
602
- {
603
- "ref": "PartitionResult"
604
- },
605
- "supportsDualStack"
606
- ]
607
- }
608
- ]
609
- }
610
- ],
611
- "rules": [
612
- {
613
- "conditions": [],
614
- "endpoint": {
615
- "url": "https://cloudcontrolapi.{Region}.{PartitionResult#dualStackDnsSuffix}",
616
- "properties": {},
617
- "headers": {}
618
- },
619
- "type": "endpoint"
620
- }
621
- ],
622
- "type": "tree"
623
- },
624
- {
625
- "conditions": [],
626
- "error": "DualStack is enabled but this partition does not support DualStack",
627
- "type": "error"
628
- }
629
- ],
630
- "type": "tree"
631
- },
632
- {
633
- "conditions": [],
634
- "endpoint": {
635
- "url": "https://cloudcontrolapi.{Region}.{PartitionResult#dnsSuffix}",
636
- "properties": {},
637
- "headers": {}
638
- },
639
- "type": "endpoint"
640
- }
641
- ],
642
- "type": "tree"
643
- }
644
- ],
645
- "type": "tree"
646
- },
647
- {
648
- "conditions": [],
649
- "error": "Invalid Configuration: Missing Region",
650
- "type": "error"
651
- }
652
- ]
653
- }
654
- }
655
- }