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,913 +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 information about the specified resources. For more information, see <a href=\"https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-list.html\">Discovering resources</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>.</p>\n <p>You can use this action to return information about existing resources in your account and\n Amazon Web Services Region, whether those resources were provisioned using Cloud Control API.</p>",
12
- "operationId": "ListResources",
13
- "requestBody": {
14
- "content": {
15
- "application/x-amz-json-1.0": {
16
- "schema": {
17
- "$ref": "#/components/schemas/ListResourcesInput"
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.ListResources"
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/ListResourcesOutput"
43
- }
44
- }
45
- }
46
- },
47
- "400": {
48
- "description": "Modeled AWS failure",
49
- "content": {
50
- "application/x-amz-json-1.0": {
51
- "schema": {
52
- "anyOf": [
53
- {
54
- "$ref": "#/components/schemas/AlreadyExistsException"
55
- },
56
- {
57
- "$ref": "#/components/schemas/GeneralServiceException"
58
- },
59
- {
60
- "$ref": "#/components/schemas/InvalidRequestException"
61
- },
62
- {
63
- "$ref": "#/components/schemas/NotStabilizedException"
64
- },
65
- {
66
- "$ref": "#/components/schemas/NotUpdatableException"
67
- },
68
- {
69
- "$ref": "#/components/schemas/PrivateTypeException"
70
- },
71
- {
72
- "$ref": "#/components/schemas/ServiceLimitExceededException"
73
- }
74
- ]
75
- }
76
- }
77
- }
78
- },
79
- "401": {
80
- "description": "Modeled AWS failure",
81
- "content": {
82
- "application/x-amz-json-1.0": {
83
- "schema": {
84
- "$ref": "#/components/schemas/InvalidCredentialsException"
85
- }
86
- }
87
- }
88
- },
89
- "404": {
90
- "description": "Modeled AWS failure",
91
- "content": {
92
- "application/x-amz-json-1.0": {
93
- "schema": {
94
- "anyOf": [
95
- {
96
- "$ref": "#/components/schemas/ResourceNotFoundException"
97
- },
98
- {
99
- "$ref": "#/components/schemas/TypeNotFoundException"
100
- }
101
- ]
102
- }
103
- }
104
- }
105
- },
106
- "405": {
107
- "description": "Modeled AWS failure",
108
- "content": {
109
- "application/x-amz-json-1.0": {
110
- "schema": {
111
- "$ref": "#/components/schemas/UnsupportedActionException"
112
- }
113
- }
114
- }
115
- },
116
- "409": {
117
- "description": "Modeled AWS failure",
118
- "content": {
119
- "application/x-amz-json-1.0": {
120
- "schema": {
121
- "$ref": "#/components/schemas/ResourceConflictException"
122
- }
123
- }
124
- }
125
- },
126
- "429": {
127
- "description": "Modeled AWS failure",
128
- "content": {
129
- "application/x-amz-json-1.0": {
130
- "schema": {
131
- "$ref": "#/components/schemas/ThrottlingException"
132
- }
133
- }
134
- }
135
- },
136
- "502": {
137
- "description": "Modeled AWS failure",
138
- "content": {
139
- "application/x-amz-json-1.0": {
140
- "schema": {
141
- "anyOf": [
142
- {
143
- "$ref": "#/components/schemas/HandlerFailureException"
144
- },
145
- {
146
- "$ref": "#/components/schemas/HandlerInternalFailureException"
147
- },
148
- {
149
- "$ref": "#/components/schemas/NetworkFailureException"
150
- },
151
- {
152
- "$ref": "#/components/schemas/ServiceInternalErrorException"
153
- }
154
- ]
155
- }
156
- }
157
- }
158
- }
159
- },
160
- "x-aws-idempotency-tokens": [],
161
- "x-aws-pagination": {
162
- "inputToken": "NextToken",
163
- "outputToken": "NextToken",
164
- "pageSize": "MaxResults",
165
- "items": "ResourceDescriptions"
166
- },
167
- "x-aws-waiters": {}
168
- }
169
- }
170
- },
171
- "components": {
172
- "schemas": {
173
- "AlreadyExistsException": {
174
- "type": "object",
175
- "description": "<p>The resource with the name requested already exists.</p>",
176
- "properties": {
177
- "Message": {
178
- "type": "string",
179
- "maxLength": 2048,
180
- "minLength": 1,
181
- "pattern": "^.+$"
182
- }
183
- },
184
- "x-aws-error": {
185
- "name": "AlreadyExistsException",
186
- "fault": "client",
187
- "httpStatus": 400,
188
- "retryable": null
189
- }
190
- },
191
- "GeneralServiceException": {
192
- "type": "object",
193
- "description": "<p>The resource handler has returned that the downstream service generated an error that\n doesn't map to any other handler error code.</p>",
194
- "properties": {
195
- "Message": {
196
- "type": "string",
197
- "maxLength": 2048,
198
- "minLength": 1,
199
- "pattern": "^.+$"
200
- }
201
- },
202
- "x-aws-error": {
203
- "name": "GeneralServiceException",
204
- "fault": "client",
205
- "httpStatus": 400,
206
- "retryable": null
207
- }
208
- },
209
- "HandlerFailureException": {
210
- "type": "object",
211
- "description": "<p>The resource handler has failed without a returning a more specific error code. This can\n include timeouts.</p>",
212
- "properties": {
213
- "Message": {
214
- "type": "string",
215
- "maxLength": 2048,
216
- "minLength": 1,
217
- "pattern": "^.+$"
218
- }
219
- },
220
- "x-aws-error": {
221
- "name": "HandlerFailureException",
222
- "fault": "server",
223
- "httpStatus": 502,
224
- "retryable": null
225
- }
226
- },
227
- "HandlerInternalFailureException": {
228
- "type": "object",
229
- "description": "<p>The resource handler has returned that an unexpected error occurred within the resource\n handler.</p>",
230
- "properties": {
231
- "Message": {
232
- "type": "string",
233
- "maxLength": 2048,
234
- "minLength": 1,
235
- "pattern": "^.+$"
236
- }
237
- },
238
- "x-aws-error": {
239
- "name": "HandlerInternalFailureException",
240
- "fault": "server",
241
- "httpStatus": 502,
242
- "retryable": null
243
- }
244
- },
245
- "InvalidCredentialsException": {
246
- "type": "object",
247
- "description": "<p>The resource handler has returned that the credentials provided by the user are\n invalid.</p>",
248
- "properties": {
249
- "Message": {
250
- "type": "string",
251
- "maxLength": 2048,
252
- "minLength": 1,
253
- "pattern": "^.+$"
254
- }
255
- },
256
- "x-aws-error": {
257
- "name": "InvalidCredentialsException",
258
- "fault": "client",
259
- "httpStatus": 401,
260
- "retryable": null
261
- }
262
- },
263
- "InvalidRequestException": {
264
- "type": "object",
265
- "description": "<p>The resource handler has returned that invalid input from the user has generated a generic\n exception.</p>",
266
- "properties": {
267
- "Message": {
268
- "type": "string",
269
- "maxLength": 2048,
270
- "minLength": 1,
271
- "pattern": "^.+$"
272
- }
273
- },
274
- "x-aws-error": {
275
- "name": "InvalidRequestException",
276
- "fault": "client",
277
- "httpStatus": 400,
278
- "retryable": null
279
- }
280
- },
281
- "ListResourcesInput": {
282
- "type": "object",
283
- "properties": {
284
- "TypeName": {
285
- "type": "string",
286
- "maxLength": 196,
287
- "minLength": 10,
288
- "pattern": "^[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}$",
289
- "description": "<p>The name of the resource type.</p>"
290
- },
291
- "TypeVersionId": {
292
- "type": "string",
293
- "maxLength": 128,
294
- "minLength": 1,
295
- "pattern": "^[A-Za-z0-9-]+$",
296
- "description": "<p>For private resource types, the type version to use in this resource\n operation. If you do not specify a resource version, CloudFormation\n uses the default version.</p>"
297
- },
298
- "RoleArn": {
299
- "type": "string",
300
- "maxLength": 2048,
301
- "minLength": 20,
302
- "pattern": "^arn:.+:iam::[0-9]{12}:role/.+$",
303
- "description": "<p>The Amazon Resource Name (ARN) of the Identity and Access Management\n (IAM) role for Cloud Control API to use when performing this resource\n operation. The role specified must have the permissions required for this\n operation. The necessary permissions for each event handler are defined in the\n <code>\n <a href=\"https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html#schema-properties-handlers\">handlers</a>\n </code>\n section of the <a href=\"https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html\">resource type\n definition schema</a>.</p>\n <p>If you do not specify a role, Cloud Control API uses a temporary session created using\n your Amazon Web Services user credentials.</p>\n <p>For more information, see <a href=\"https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations.html#resource-operations-permissions\">Specifying\n credentials</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>.</p>"
304
- },
305
- "NextToken": {
306
- "type": "string",
307
- "maxLength": 4096,
308
- "minLength": 1,
309
- "pattern": "^.+$",
310
- "description": "<p>If the previous paginated request didn't return all of the remaining results,\n the response object's <code>NextToken</code> parameter value is set to a token.\n To retrieve the next set of results, call this action again and assign that token to\n the request object's <code>NextToken</code> parameter. If there are no remaining\n results, the previous response object's <code>NextToken</code> parameter is set to\n <code>null</code>.</p>"
311
- },
312
- "MaxResults": {
313
- "type": "integer",
314
- "maximum": 100,
315
- "minimum": 1,
316
- "description": "<p>Reserved.</p>",
317
- "format": "int32"
318
- },
319
- "ResourceModel": {
320
- "type": "string",
321
- "maxLength": 262144,
322
- "minLength": 1,
323
- "pattern": "^[\\s\\S]*$",
324
- "description": "<p>The resource model to use to select the resources to return.</p>",
325
- "format": "password"
326
- }
327
- },
328
- "required": [
329
- "TypeName"
330
- ]
331
- },
332
- "ListResourcesOutput": {
333
- "type": "object",
334
- "properties": {
335
- "TypeName": {
336
- "type": "string",
337
- "maxLength": 196,
338
- "minLength": 10,
339
- "pattern": "^[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}$",
340
- "description": "<p>The name of the resource type.</p>"
341
- },
342
- "ResourceDescriptions": {
343
- "type": "array",
344
- "items": {
345
- "$ref": "#/components/schemas/ResourceDescription"
346
- },
347
- "description": "<p>Information about the specified resources, including primary identifier and resource\n model.</p>"
348
- },
349
- "NextToken": {
350
- "type": "string",
351
- "maxLength": 4096,
352
- "minLength": 1,
353
- "pattern": "^.+$",
354
- "description": "<p>If the request doesn't return all of the remaining results,\n <code>NextToken</code> is set to a token. To retrieve the next set of results, call\n <code>ListResources</code> again and assign that token to the request object's\n <code>NextToken</code> parameter. If the request returns all results,\n <code>NextToken</code> is set to null.</p>"
355
- }
356
- }
357
- },
358
- "NetworkFailureException": {
359
- "type": "object",
360
- "description": "<p>The resource handler has returned that the request couldn't be completed due to networking\n issues, such as a failure to receive a response from the server.</p>",
361
- "properties": {
362
- "Message": {
363
- "type": "string",
364
- "maxLength": 2048,
365
- "minLength": 1,
366
- "pattern": "^.+$"
367
- }
368
- },
369
- "x-aws-error": {
370
- "name": "NetworkFailureException",
371
- "fault": "server",
372
- "httpStatus": 502,
373
- "retryable": null
374
- }
375
- },
376
- "NotStabilizedException": {
377
- "type": "object",
378
- "description": "<p>The resource handler has returned that the downstream resource failed to complete all of\n its ready-state checks.</p>",
379
- "properties": {
380
- "Message": {
381
- "type": "string",
382
- "maxLength": 2048,
383
- "minLength": 1,
384
- "pattern": "^.+$"
385
- }
386
- },
387
- "x-aws-error": {
388
- "name": "NotStabilizedException",
389
- "fault": "client",
390
- "httpStatus": 400,
391
- "retryable": null
392
- }
393
- },
394
- "NotUpdatableException": {
395
- "type": "object",
396
- "description": "<p>One or more properties included in this resource operation are defined as create-only, and\n therefore can't be updated.</p>",
397
- "properties": {
398
- "Message": {
399
- "type": "string",
400
- "maxLength": 2048,
401
- "minLength": 1,
402
- "pattern": "^.+$"
403
- }
404
- },
405
- "x-aws-error": {
406
- "name": "NotUpdatableException",
407
- "fault": "client",
408
- "httpStatus": 400,
409
- "retryable": null
410
- }
411
- },
412
- "PrivateTypeException": {
413
- "type": "object",
414
- "description": "<p>Cloud Control API hasn't received a valid response from the resource handler, due to a configuration\n error. This includes issues such as the resource handler returning an invalid response, or\n timing out.</p>",
415
- "properties": {
416
- "Message": {
417
- "type": "string",
418
- "maxLength": 2048,
419
- "minLength": 1,
420
- "pattern": "^.+$"
421
- }
422
- },
423
- "x-aws-error": {
424
- "name": "PrivateTypeException",
425
- "fault": "client",
426
- "httpStatus": 400,
427
- "retryable": null
428
- }
429
- },
430
- "ResourceConflictException": {
431
- "type": "object",
432
- "description": "<p>The resource is temporarily unavailable to be acted upon. For example, if the resource is\n currently undergoing an operation and can't be acted upon until that operation is\n finished.</p>",
433
- "properties": {
434
- "Message": {
435
- "type": "string",
436
- "maxLength": 2048,
437
- "minLength": 1,
438
- "pattern": "^.+$"
439
- }
440
- },
441
- "x-aws-error": {
442
- "name": "ResourceConflictException",
443
- "fault": "client",
444
- "httpStatus": 409,
445
- "retryable": null
446
- }
447
- },
448
- "ResourceDescription": {
449
- "type": "object",
450
- "description": "<p>Represents information about a provisioned resource.</p>",
451
- "properties": {
452
- "Identifier": {
453
- "type": "string",
454
- "maxLength": 1024,
455
- "minLength": 1,
456
- "pattern": "^.+$",
457
- "description": "<p>The primary identifier for the resource.</p>\n <p>For more information, see <a href=\"https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-identifier.html\">Identifying\n resources</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>.</p>"
458
- },
459
- "Properties": {
460
- "type": "string",
461
- "maxLength": 262144,
462
- "minLength": 1,
463
- "pattern": "^[\\s\\S]*$",
464
- "description": "<p>A list of the resource properties and their current values.</p>",
465
- "format": "password"
466
- }
467
- }
468
- },
469
- "ResourceNotFoundException": {
470
- "type": "object",
471
- "description": "<p>A resource with the specified identifier can't be found.</p>",
472
- "properties": {
473
- "Message": {
474
- "type": "string",
475
- "maxLength": 2048,
476
- "minLength": 1,
477
- "pattern": "^.+$"
478
- }
479
- },
480
- "x-aws-error": {
481
- "name": "ResourceNotFoundException",
482
- "fault": "client",
483
- "httpStatus": 404,
484
- "retryable": null
485
- }
486
- },
487
- "ServiceInternalErrorException": {
488
- "type": "object",
489
- "description": "<p>The resource handler has returned that the downstream service returned an internal error,\n typically with a <code>5XX HTTP</code> status code.</p>",
490
- "properties": {
491
- "Message": {
492
- "type": "string",
493
- "maxLength": 2048,
494
- "minLength": 1,
495
- "pattern": "^.+$"
496
- }
497
- },
498
- "x-aws-error": {
499
- "name": "ServiceInternalErrorException",
500
- "fault": "server",
501
- "httpStatus": 502,
502
- "retryable": null
503
- }
504
- },
505
- "ServiceLimitExceededException": {
506
- "type": "object",
507
- "description": "<p>The resource handler has returned that a non-transient resource limit was reached on the\n service side.</p>",
508
- "properties": {
509
- "Message": {
510
- "type": "string",
511
- "maxLength": 2048,
512
- "minLength": 1,
513
- "pattern": "^.+$"
514
- }
515
- },
516
- "x-aws-error": {
517
- "name": "ServiceLimitExceededException",
518
- "fault": "client",
519
- "httpStatus": 400,
520
- "retryable": null
521
- }
522
- },
523
- "ThrottlingException": {
524
- "type": "object",
525
- "description": "<p>The request was denied due to request throttling.</p>",
526
- "properties": {
527
- "Message": {
528
- "type": "string",
529
- "maxLength": 2048,
530
- "minLength": 1,
531
- "pattern": "^.+$"
532
- }
533
- },
534
- "x-aws-error": {
535
- "name": "ThrottlingException",
536
- "fault": "client",
537
- "httpStatus": 429,
538
- "retryable": null
539
- }
540
- },
541
- "TypeNotFoundException": {
542
- "type": "object",
543
- "description": "<p>The specified extension doesn't exist in the CloudFormation registry.</p>",
544
- "properties": {
545
- "Message": {
546
- "type": "string",
547
- "maxLength": 2048,
548
- "minLength": 1,
549
- "pattern": "^.+$"
550
- }
551
- },
552
- "x-aws-error": {
553
- "name": "TypeNotFoundException",
554
- "fault": "client",
555
- "httpStatus": 404,
556
- "retryable": null
557
- }
558
- },
559
- "UnsupportedActionException": {
560
- "type": "object",
561
- "description": "<p>The specified resource doesn't support this resource operation.</p>",
562
- "properties": {
563
- "Message": {
564
- "type": "string",
565
- "maxLength": 2048,
566
- "minLength": 1,
567
- "pattern": "^.+$"
568
- }
569
- },
570
- "x-aws-error": {
571
- "name": "UnsupportedActionException",
572
- "fault": "client",
573
- "httpStatus": 405,
574
- "retryable": null
575
- }
576
- }
577
- },
578
- "securitySchemes": {
579
- "aws.auth.sigv4": {
580
- "type": "apiKey",
581
- "description": "AWS Signature Version 4 authentication",
582
- "name": "Authorization",
583
- "in": "header",
584
- "x-amazon-apigateway-authtype": "awsSigv4"
585
- }
586
- }
587
- },
588
- "security": [
589
- {
590
- "aws.auth.sigv4": []
591
- }
592
- ],
593
- "x-aws-service": {
594
- "service": "com.amazonaws.cloudcontrol#CloudApiService",
595
- "version": "2021-09-30",
596
- "protocol": "awsJson1_0",
597
- "signingName": "cloudcontrolapi",
598
- "endpointRules": {
599
- "version": "1.0",
600
- "parameters": {
601
- "Region": {
602
- "builtIn": "AWS::Region",
603
- "required": false,
604
- "documentation": "The AWS region used to dispatch the request.",
605
- "type": "string"
606
- },
607
- "UseDualStack": {
608
- "builtIn": "AWS::UseDualStack",
609
- "required": true,
610
- "default": false,
611
- "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",
612
- "type": "boolean"
613
- },
614
- "UseFIPS": {
615
- "builtIn": "AWS::UseFIPS",
616
- "required": true,
617
- "default": false,
618
- "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.",
619
- "type": "boolean"
620
- },
621
- "Endpoint": {
622
- "builtIn": "SDK::Endpoint",
623
- "required": false,
624
- "documentation": "Override the endpoint used to send this request",
625
- "type": "string"
626
- }
627
- },
628
- "rules": [
629
- {
630
- "conditions": [
631
- {
632
- "fn": "isSet",
633
- "argv": [
634
- {
635
- "ref": "Endpoint"
636
- }
637
- ]
638
- }
639
- ],
640
- "rules": [
641
- {
642
- "conditions": [
643
- {
644
- "fn": "booleanEquals",
645
- "argv": [
646
- {
647
- "ref": "UseFIPS"
648
- },
649
- true
650
- ]
651
- }
652
- ],
653
- "error": "Invalid Configuration: FIPS and custom endpoint are not supported",
654
- "type": "error"
655
- },
656
- {
657
- "conditions": [
658
- {
659
- "fn": "booleanEquals",
660
- "argv": [
661
- {
662
- "ref": "UseDualStack"
663
- },
664
- true
665
- ]
666
- }
667
- ],
668
- "error": "Invalid Configuration: Dualstack and custom endpoint are not supported",
669
- "type": "error"
670
- },
671
- {
672
- "conditions": [],
673
- "endpoint": {
674
- "url": {
675
- "ref": "Endpoint"
676
- },
677
- "properties": {},
678
- "headers": {}
679
- },
680
- "type": "endpoint"
681
- }
682
- ],
683
- "type": "tree"
684
- },
685
- {
686
- "conditions": [
687
- {
688
- "fn": "isSet",
689
- "argv": [
690
- {
691
- "ref": "Region"
692
- }
693
- ]
694
- }
695
- ],
696
- "rules": [
697
- {
698
- "conditions": [
699
- {
700
- "fn": "aws.partition",
701
- "argv": [
702
- {
703
- "ref": "Region"
704
- }
705
- ],
706
- "assign": "PartitionResult"
707
- }
708
- ],
709
- "rules": [
710
- {
711
- "conditions": [
712
- {
713
- "fn": "booleanEquals",
714
- "argv": [
715
- {
716
- "ref": "UseFIPS"
717
- },
718
- true
719
- ]
720
- },
721
- {
722
- "fn": "booleanEquals",
723
- "argv": [
724
- {
725
- "ref": "UseDualStack"
726
- },
727
- true
728
- ]
729
- }
730
- ],
731
- "rules": [
732
- {
733
- "conditions": [
734
- {
735
- "fn": "booleanEquals",
736
- "argv": [
737
- true,
738
- {
739
- "fn": "getAttr",
740
- "argv": [
741
- {
742
- "ref": "PartitionResult"
743
- },
744
- "supportsFIPS"
745
- ]
746
- }
747
- ]
748
- },
749
- {
750
- "fn": "booleanEquals",
751
- "argv": [
752
- true,
753
- {
754
- "fn": "getAttr",
755
- "argv": [
756
- {
757
- "ref": "PartitionResult"
758
- },
759
- "supportsDualStack"
760
- ]
761
- }
762
- ]
763
- }
764
- ],
765
- "rules": [
766
- {
767
- "conditions": [],
768
- "endpoint": {
769
- "url": "https://cloudcontrolapi-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
770
- "properties": {},
771
- "headers": {}
772
- },
773
- "type": "endpoint"
774
- }
775
- ],
776
- "type": "tree"
777
- },
778
- {
779
- "conditions": [],
780
- "error": "FIPS and DualStack are enabled, but this partition does not support one or both",
781
- "type": "error"
782
- }
783
- ],
784
- "type": "tree"
785
- },
786
- {
787
- "conditions": [
788
- {
789
- "fn": "booleanEquals",
790
- "argv": [
791
- {
792
- "ref": "UseFIPS"
793
- },
794
- true
795
- ]
796
- }
797
- ],
798
- "rules": [
799
- {
800
- "conditions": [
801
- {
802
- "fn": "booleanEquals",
803
- "argv": [
804
- {
805
- "fn": "getAttr",
806
- "argv": [
807
- {
808
- "ref": "PartitionResult"
809
- },
810
- "supportsFIPS"
811
- ]
812
- },
813
- true
814
- ]
815
- }
816
- ],
817
- "rules": [
818
- {
819
- "conditions": [],
820
- "endpoint": {
821
- "url": "https://cloudcontrolapi-fips.{Region}.{PartitionResult#dnsSuffix}",
822
- "properties": {},
823
- "headers": {}
824
- },
825
- "type": "endpoint"
826
- }
827
- ],
828
- "type": "tree"
829
- },
830
- {
831
- "conditions": [],
832
- "error": "FIPS is enabled but this partition does not support FIPS",
833
- "type": "error"
834
- }
835
- ],
836
- "type": "tree"
837
- },
838
- {
839
- "conditions": [
840
- {
841
- "fn": "booleanEquals",
842
- "argv": [
843
- {
844
- "ref": "UseDualStack"
845
- },
846
- true
847
- ]
848
- }
849
- ],
850
- "rules": [
851
- {
852
- "conditions": [
853
- {
854
- "fn": "booleanEquals",
855
- "argv": [
856
- true,
857
- {
858
- "fn": "getAttr",
859
- "argv": [
860
- {
861
- "ref": "PartitionResult"
862
- },
863
- "supportsDualStack"
864
- ]
865
- }
866
- ]
867
- }
868
- ],
869
- "rules": [
870
- {
871
- "conditions": [],
872
- "endpoint": {
873
- "url": "https://cloudcontrolapi.{Region}.{PartitionResult#dualStackDnsSuffix}",
874
- "properties": {},
875
- "headers": {}
876
- },
877
- "type": "endpoint"
878
- }
879
- ],
880
- "type": "tree"
881
- },
882
- {
883
- "conditions": [],
884
- "error": "DualStack is enabled but this partition does not support DualStack",
885
- "type": "error"
886
- }
887
- ],
888
- "type": "tree"
889
- },
890
- {
891
- "conditions": [],
892
- "endpoint": {
893
- "url": "https://cloudcontrolapi.{Region}.{PartitionResult#dnsSuffix}",
894
- "properties": {},
895
- "headers": {}
896
- },
897
- "type": "endpoint"
898
- }
899
- ],
900
- "type": "tree"
901
- }
902
- ],
903
- "type": "tree"
904
- },
905
- {
906
- "conditions": [],
907
- "error": "Invalid Configuration: Missing Region",
908
- "type": "error"
909
- }
910
- ]
911
- }
912
- }
913
- }