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,1019 +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>Creates the specified resource. For more information, see <a href=\"https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-create.html\">Creating a\n resource</a> in the <i>Amazon Web Services Cloud Control API User Guide</i>.</p>\n <p>After you have initiated a resource creation request, you can monitor the progress of your\n request by calling <a href=\"https://docs.aws.amazon.com/cloudcontrolapi/latest/APIReference/API_GetResourceRequestStatus.html\">GetResourceRequestStatus</a> using the <code>RequestToken</code> of the\n <code>ProgressEvent</code> type returned by <code>CreateResource</code>.</p>",
12
- "operationId": "CreateResource",
13
- "requestBody": {
14
- "content": {
15
- "application/x-amz-json-1.0": {
16
- "schema": {
17
- "$ref": "#/components/schemas/CreateResourceInput"
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.CreateResource"
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/CreateResourceOutput"
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
- "anyOf": [
122
- {
123
- "$ref": "#/components/schemas/ClientTokenConflictException"
124
- },
125
- {
126
- "$ref": "#/components/schemas/ConcurrentOperationException"
127
- },
128
- {
129
- "$ref": "#/components/schemas/ResourceConflictException"
130
- }
131
- ]
132
- }
133
- }
134
- }
135
- },
136
- "429": {
137
- "description": "Modeled AWS failure",
138
- "content": {
139
- "application/x-amz-json-1.0": {
140
- "schema": {
141
- "$ref": "#/components/schemas/ThrottlingException"
142
- }
143
- }
144
- }
145
- },
146
- "502": {
147
- "description": "Modeled AWS failure",
148
- "content": {
149
- "application/x-amz-json-1.0": {
150
- "schema": {
151
- "anyOf": [
152
- {
153
- "$ref": "#/components/schemas/HandlerFailureException"
154
- },
155
- {
156
- "$ref": "#/components/schemas/HandlerInternalFailureException"
157
- },
158
- {
159
- "$ref": "#/components/schemas/NetworkFailureException"
160
- },
161
- {
162
- "$ref": "#/components/schemas/ServiceInternalErrorException"
163
- }
164
- ]
165
- }
166
- }
167
- }
168
- }
169
- },
170
- "x-aws-idempotency-tokens": [
171
- "ClientToken"
172
- ],
173
- "x-aws-pagination": {},
174
- "x-aws-waiters": {}
175
- }
176
- }
177
- },
178
- "components": {
179
- "schemas": {
180
- "AlreadyExistsException": {
181
- "type": "object",
182
- "description": "<p>The resource with the name requested already exists.</p>",
183
- "properties": {
184
- "Message": {
185
- "type": "string",
186
- "maxLength": 2048,
187
- "minLength": 1,
188
- "pattern": "^.+$"
189
- }
190
- },
191
- "x-aws-error": {
192
- "name": "AlreadyExistsException",
193
- "fault": "client",
194
- "httpStatus": 400,
195
- "retryable": null
196
- }
197
- },
198
- "ClientTokenConflictException": {
199
- "type": "object",
200
- "description": "<p>The specified client token has already been used in another resource request.</p>\n <p>It's best practice for client tokens to be unique for each resource operation request.\n However, client token expire after 36 hours.</p>",
201
- "properties": {
202
- "Message": {
203
- "type": "string",
204
- "maxLength": 2048,
205
- "minLength": 1,
206
- "pattern": "^.+$"
207
- }
208
- },
209
- "x-aws-error": {
210
- "name": "ClientTokenConflictException",
211
- "fault": "client",
212
- "httpStatus": 409,
213
- "retryable": null
214
- }
215
- },
216
- "ConcurrentOperationException": {
217
- "type": "object",
218
- "description": "<p>Another resource operation is currently being performed on this resource.</p>",
219
- "properties": {
220
- "Message": {
221
- "type": "string",
222
- "maxLength": 2048,
223
- "minLength": 1,
224
- "pattern": "^.+$"
225
- }
226
- },
227
- "x-aws-error": {
228
- "name": "ConcurrentOperationException",
229
- "fault": "client",
230
- "httpStatus": 409,
231
- "retryable": null
232
- }
233
- },
234
- "CreateResourceInput": {
235
- "type": "object",
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.</p>"
243
- },
244
- "TypeVersionId": {
245
- "type": "string",
246
- "maxLength": 128,
247
- "minLength": 1,
248
- "pattern": "^[A-Za-z0-9-]+$",
249
- "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>"
250
- },
251
- "RoleArn": {
252
- "type": "string",
253
- "maxLength": 2048,
254
- "minLength": 20,
255
- "pattern": "^arn:.+:iam::[0-9]{12}:role/.+$",
256
- "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>"
257
- },
258
- "ClientToken": {
259
- "type": "string",
260
- "maxLength": 128,
261
- "minLength": 1,
262
- "pattern": "^[-A-Za-z0-9+/=]+$",
263
- "description": "<p>A unique identifier to ensure the idempotency of the resource request. As a\n best practice, specify this token to ensure idempotency, so that Amazon Web Services Cloud Control API can\n accurately distinguish between request retries and new resource requests. You\n might retry a resource request to ensure that it was successfully received.</p>\n <p>A client token is valid for 36 hours once used. After that, a resource\n request with the same client token is treated as a new request.</p>\n <p>If you\n do not specify a client token, one is generated for inclusion in the request.</p>\n <p>For more information, see <a href=\"https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations.html#resource-operations-idempotency\">Ensuring\n resource operation requests are unique</a> in the <i>Amazon Web Services Cloud Control API User\n Guide</i>.</p>"
264
- },
265
- "DesiredState": {
266
- "type": "string",
267
- "maxLength": 262144,
268
- "minLength": 1,
269
- "pattern": "^[\\s\\S]*$",
270
- "description": "<p>Structured data format representing the desired state of the resource, consisting of that\n resource's properties and their desired values.</p>\n <note>\n <p>Cloud Control API currently supports JSON as a structured data format.</p>\n </note>\n <p>Specify the desired state as one of the following:</p>\n <ul>\n <li>\n <p>A JSON blob</p>\n </li>\n <li>\n <p>A local path containing the desired state in JSON data format</p>\n </li>\n </ul>\n <p>For more information, see <a href=\"https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-create.html#resource-operations-create-desiredstate\">Composing the desired state of the resource</a> in the <i>Amazon Web Services Cloud Control API User\n Guide</i>.</p>\n <p>For more information about the properties of a specific resource, refer to the related\n topic for the resource in the <a href=\"https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html\">Resource and property types reference</a> in the <i>CloudFormation Users Guide</i>.</p>",
271
- "format": "password"
272
- }
273
- },
274
- "required": [
275
- "DesiredState",
276
- "TypeName"
277
- ]
278
- },
279
- "CreateResourceOutput": {
280
- "type": "object",
281
- "properties": {
282
- "ProgressEvent": {
283
- "$ref": "#/components/schemas/ProgressEvent"
284
- }
285
- }
286
- },
287
- "GeneralServiceException": {
288
- "type": "object",
289
- "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>",
290
- "properties": {
291
- "Message": {
292
- "type": "string",
293
- "maxLength": 2048,
294
- "minLength": 1,
295
- "pattern": "^.+$"
296
- }
297
- },
298
- "x-aws-error": {
299
- "name": "GeneralServiceException",
300
- "fault": "client",
301
- "httpStatus": 400,
302
- "retryable": null
303
- }
304
- },
305
- "HandlerErrorCode": {
306
- "type": "string",
307
- "enum": [
308
- "NotUpdatable",
309
- "InvalidRequest",
310
- "AccessDenied",
311
- "UnauthorizedTaggingOperation",
312
- "InvalidCredentials",
313
- "AlreadyExists",
314
- "NotFound",
315
- "ResourceConflict",
316
- "Throttling",
317
- "ServiceLimitExceeded",
318
- "NotStabilized",
319
- "GeneralServiceException",
320
- "ServiceInternalError",
321
- "ServiceTimeout",
322
- "NetworkFailure",
323
- "InternalFailure"
324
- ]
325
- },
326
- "HandlerFailureException": {
327
- "type": "object",
328
- "description": "<p>The resource handler has failed without a returning a more specific error code. This can\n include timeouts.</p>",
329
- "properties": {
330
- "Message": {
331
- "type": "string",
332
- "maxLength": 2048,
333
- "minLength": 1,
334
- "pattern": "^.+$"
335
- }
336
- },
337
- "x-aws-error": {
338
- "name": "HandlerFailureException",
339
- "fault": "server",
340
- "httpStatus": 502,
341
- "retryable": null
342
- }
343
- },
344
- "HandlerInternalFailureException": {
345
- "type": "object",
346
- "description": "<p>The resource handler has returned that an unexpected error occurred within the resource\n handler.</p>",
347
- "properties": {
348
- "Message": {
349
- "type": "string",
350
- "maxLength": 2048,
351
- "minLength": 1,
352
- "pattern": "^.+$"
353
- }
354
- },
355
- "x-aws-error": {
356
- "name": "HandlerInternalFailureException",
357
- "fault": "server",
358
- "httpStatus": 502,
359
- "retryable": null
360
- }
361
- },
362
- "InvalidCredentialsException": {
363
- "type": "object",
364
- "description": "<p>The resource handler has returned that the credentials provided by the user are\n invalid.</p>",
365
- "properties": {
366
- "Message": {
367
- "type": "string",
368
- "maxLength": 2048,
369
- "minLength": 1,
370
- "pattern": "^.+$"
371
- }
372
- },
373
- "x-aws-error": {
374
- "name": "InvalidCredentialsException",
375
- "fault": "client",
376
- "httpStatus": 401,
377
- "retryable": null
378
- }
379
- },
380
- "InvalidRequestException": {
381
- "type": "object",
382
- "description": "<p>The resource handler has returned that invalid input from the user has generated a generic\n exception.</p>",
383
- "properties": {
384
- "Message": {
385
- "type": "string",
386
- "maxLength": 2048,
387
- "minLength": 1,
388
- "pattern": "^.+$"
389
- }
390
- },
391
- "x-aws-error": {
392
- "name": "InvalidRequestException",
393
- "fault": "client",
394
- "httpStatus": 400,
395
- "retryable": null
396
- }
397
- },
398
- "NetworkFailureException": {
399
- "type": "object",
400
- "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>",
401
- "properties": {
402
- "Message": {
403
- "type": "string",
404
- "maxLength": 2048,
405
- "minLength": 1,
406
- "pattern": "^.+$"
407
- }
408
- },
409
- "x-aws-error": {
410
- "name": "NetworkFailureException",
411
- "fault": "server",
412
- "httpStatus": 502,
413
- "retryable": null
414
- }
415
- },
416
- "NotStabilizedException": {
417
- "type": "object",
418
- "description": "<p>The resource handler has returned that the downstream resource failed to complete all of\n its ready-state checks.</p>",
419
- "properties": {
420
- "Message": {
421
- "type": "string",
422
- "maxLength": 2048,
423
- "minLength": 1,
424
- "pattern": "^.+$"
425
- }
426
- },
427
- "x-aws-error": {
428
- "name": "NotStabilizedException",
429
- "fault": "client",
430
- "httpStatus": 400,
431
- "retryable": null
432
- }
433
- },
434
- "NotUpdatableException": {
435
- "type": "object",
436
- "description": "<p>One or more properties included in this resource operation are defined as create-only, and\n therefore can't be updated.</p>",
437
- "properties": {
438
- "Message": {
439
- "type": "string",
440
- "maxLength": 2048,
441
- "minLength": 1,
442
- "pattern": "^.+$"
443
- }
444
- },
445
- "x-aws-error": {
446
- "name": "NotUpdatableException",
447
- "fault": "client",
448
- "httpStatus": 400,
449
- "retryable": null
450
- }
451
- },
452
- "Operation": {
453
- "type": "string",
454
- "enum": [
455
- "CREATE",
456
- "DELETE",
457
- "UPDATE"
458
- ]
459
- },
460
- "OperationStatus": {
461
- "type": "string",
462
- "enum": [
463
- "PENDING",
464
- "IN_PROGRESS",
465
- "SUCCESS",
466
- "FAILED",
467
- "CANCEL_IN_PROGRESS",
468
- "CANCEL_COMPLETE"
469
- ]
470
- },
471
- "PrivateTypeException": {
472
- "type": "object",
473
- "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>",
474
- "properties": {
475
- "Message": {
476
- "type": "string",
477
- "maxLength": 2048,
478
- "minLength": 1,
479
- "pattern": "^.+$"
480
- }
481
- },
482
- "x-aws-error": {
483
- "name": "PrivateTypeException",
484
- "fault": "client",
485
- "httpStatus": 400,
486
- "retryable": null
487
- }
488
- },
489
- "ProgressEvent": {
490
- "type": "object",
491
- "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>",
492
- "properties": {
493
- "TypeName": {
494
- "type": "string",
495
- "maxLength": 196,
496
- "minLength": 10,
497
- "pattern": "^[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}::[A-Za-z0-9]{2,64}$",
498
- "description": "<p>The name of the resource type used in the operation.</p>"
499
- },
500
- "Identifier": {
501
- "type": "string",
502
- "maxLength": 1024,
503
- "minLength": 1,
504
- "pattern": "^.+$",
505
- "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>"
506
- },
507
- "RequestToken": {
508
- "type": "string",
509
- "maxLength": 128,
510
- "minLength": 1,
511
- "pattern": "^[-A-Za-z0-9+/=]+$",
512
- "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>"
513
- },
514
- "HooksRequestToken": {
515
- "type": "string",
516
- "maxLength": 128,
517
- "minLength": 1,
518
- "pattern": "^[-A-Za-z0-9+/=]+$",
519
- "description": "<p>The unique token representing the Hooks operation for the request.</p>"
520
- },
521
- "Operation": {
522
- "$ref": "#/components/schemas/Operation"
523
- },
524
- "OperationStatus": {
525
- "$ref": "#/components/schemas/OperationStatus"
526
- },
527
- "EventTime": {
528
- "type": "number",
529
- "description": "<p>When the resource operation request was initiated.</p>",
530
- "format": "double"
531
- },
532
- "ResourceModel": {
533
- "type": "string",
534
- "maxLength": 262144,
535
- "minLength": 1,
536
- "pattern": "^[\\s\\S]*$",
537
- "description": "<p>A JSON string containing the resource model, consisting of each resource property and its\n current value.</p>",
538
- "format": "password"
539
- },
540
- "StatusMessage": {
541
- "type": "string",
542
- "maxLength": 2048,
543
- "minLength": 0,
544
- "pattern": "^[\\s\\S]*$",
545
- "description": "<p>Any message explaining the current status.</p>"
546
- },
547
- "ErrorCode": {
548
- "$ref": "#/components/schemas/HandlerErrorCode"
549
- },
550
- "RetryAfter": {
551
- "type": "number",
552
- "description": "<p>When to next request the status of this resource operation request.</p>",
553
- "format": "double"
554
- }
555
- }
556
- },
557
- "ResourceConflictException": {
558
- "type": "object",
559
- "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>",
560
- "properties": {
561
- "Message": {
562
- "type": "string",
563
- "maxLength": 2048,
564
- "minLength": 1,
565
- "pattern": "^.+$"
566
- }
567
- },
568
- "x-aws-error": {
569
- "name": "ResourceConflictException",
570
- "fault": "client",
571
- "httpStatus": 409,
572
- "retryable": null
573
- }
574
- },
575
- "ResourceNotFoundException": {
576
- "type": "object",
577
- "description": "<p>A resource with the specified identifier can't be found.</p>",
578
- "properties": {
579
- "Message": {
580
- "type": "string",
581
- "maxLength": 2048,
582
- "minLength": 1,
583
- "pattern": "^.+$"
584
- }
585
- },
586
- "x-aws-error": {
587
- "name": "ResourceNotFoundException",
588
- "fault": "client",
589
- "httpStatus": 404,
590
- "retryable": null
591
- }
592
- },
593
- "ServiceInternalErrorException": {
594
- "type": "object",
595
- "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>",
596
- "properties": {
597
- "Message": {
598
- "type": "string",
599
- "maxLength": 2048,
600
- "minLength": 1,
601
- "pattern": "^.+$"
602
- }
603
- },
604
- "x-aws-error": {
605
- "name": "ServiceInternalErrorException",
606
- "fault": "server",
607
- "httpStatus": 502,
608
- "retryable": null
609
- }
610
- },
611
- "ServiceLimitExceededException": {
612
- "type": "object",
613
- "description": "<p>The resource handler has returned that a non-transient resource limit was reached on the\n service side.</p>",
614
- "properties": {
615
- "Message": {
616
- "type": "string",
617
- "maxLength": 2048,
618
- "minLength": 1,
619
- "pattern": "^.+$"
620
- }
621
- },
622
- "x-aws-error": {
623
- "name": "ServiceLimitExceededException",
624
- "fault": "client",
625
- "httpStatus": 400,
626
- "retryable": null
627
- }
628
- },
629
- "ThrottlingException": {
630
- "type": "object",
631
- "description": "<p>The request was denied due to request throttling.</p>",
632
- "properties": {
633
- "Message": {
634
- "type": "string",
635
- "maxLength": 2048,
636
- "minLength": 1,
637
- "pattern": "^.+$"
638
- }
639
- },
640
- "x-aws-error": {
641
- "name": "ThrottlingException",
642
- "fault": "client",
643
- "httpStatus": 429,
644
- "retryable": null
645
- }
646
- },
647
- "TypeNotFoundException": {
648
- "type": "object",
649
- "description": "<p>The specified extension doesn't exist in the CloudFormation registry.</p>",
650
- "properties": {
651
- "Message": {
652
- "type": "string",
653
- "maxLength": 2048,
654
- "minLength": 1,
655
- "pattern": "^.+$"
656
- }
657
- },
658
- "x-aws-error": {
659
- "name": "TypeNotFoundException",
660
- "fault": "client",
661
- "httpStatus": 404,
662
- "retryable": null
663
- }
664
- },
665
- "UnsupportedActionException": {
666
- "type": "object",
667
- "description": "<p>The specified resource doesn't support this resource operation.</p>",
668
- "properties": {
669
- "Message": {
670
- "type": "string",
671
- "maxLength": 2048,
672
- "minLength": 1,
673
- "pattern": "^.+$"
674
- }
675
- },
676
- "x-aws-error": {
677
- "name": "UnsupportedActionException",
678
- "fault": "client",
679
- "httpStatus": 405,
680
- "retryable": null
681
- }
682
- }
683
- },
684
- "securitySchemes": {
685
- "aws.auth.sigv4": {
686
- "type": "apiKey",
687
- "description": "AWS Signature Version 4 authentication",
688
- "name": "Authorization",
689
- "in": "header",
690
- "x-amazon-apigateway-authtype": "awsSigv4"
691
- }
692
- }
693
- },
694
- "security": [
695
- {
696
- "aws.auth.sigv4": []
697
- }
698
- ],
699
- "x-aws-service": {
700
- "service": "com.amazonaws.cloudcontrol#CloudApiService",
701
- "version": "2021-09-30",
702
- "protocol": "awsJson1_0",
703
- "signingName": "cloudcontrolapi",
704
- "endpointRules": {
705
- "version": "1.0",
706
- "parameters": {
707
- "Region": {
708
- "builtIn": "AWS::Region",
709
- "required": false,
710
- "documentation": "The AWS region used to dispatch the request.",
711
- "type": "string"
712
- },
713
- "UseDualStack": {
714
- "builtIn": "AWS::UseDualStack",
715
- "required": true,
716
- "default": false,
717
- "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",
718
- "type": "boolean"
719
- },
720
- "UseFIPS": {
721
- "builtIn": "AWS::UseFIPS",
722
- "required": true,
723
- "default": false,
724
- "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.",
725
- "type": "boolean"
726
- },
727
- "Endpoint": {
728
- "builtIn": "SDK::Endpoint",
729
- "required": false,
730
- "documentation": "Override the endpoint used to send this request",
731
- "type": "string"
732
- }
733
- },
734
- "rules": [
735
- {
736
- "conditions": [
737
- {
738
- "fn": "isSet",
739
- "argv": [
740
- {
741
- "ref": "Endpoint"
742
- }
743
- ]
744
- }
745
- ],
746
- "rules": [
747
- {
748
- "conditions": [
749
- {
750
- "fn": "booleanEquals",
751
- "argv": [
752
- {
753
- "ref": "UseFIPS"
754
- },
755
- true
756
- ]
757
- }
758
- ],
759
- "error": "Invalid Configuration: FIPS and custom endpoint are not supported",
760
- "type": "error"
761
- },
762
- {
763
- "conditions": [
764
- {
765
- "fn": "booleanEquals",
766
- "argv": [
767
- {
768
- "ref": "UseDualStack"
769
- },
770
- true
771
- ]
772
- }
773
- ],
774
- "error": "Invalid Configuration: Dualstack and custom endpoint are not supported",
775
- "type": "error"
776
- },
777
- {
778
- "conditions": [],
779
- "endpoint": {
780
- "url": {
781
- "ref": "Endpoint"
782
- },
783
- "properties": {},
784
- "headers": {}
785
- },
786
- "type": "endpoint"
787
- }
788
- ],
789
- "type": "tree"
790
- },
791
- {
792
- "conditions": [
793
- {
794
- "fn": "isSet",
795
- "argv": [
796
- {
797
- "ref": "Region"
798
- }
799
- ]
800
- }
801
- ],
802
- "rules": [
803
- {
804
- "conditions": [
805
- {
806
- "fn": "aws.partition",
807
- "argv": [
808
- {
809
- "ref": "Region"
810
- }
811
- ],
812
- "assign": "PartitionResult"
813
- }
814
- ],
815
- "rules": [
816
- {
817
- "conditions": [
818
- {
819
- "fn": "booleanEquals",
820
- "argv": [
821
- {
822
- "ref": "UseFIPS"
823
- },
824
- true
825
- ]
826
- },
827
- {
828
- "fn": "booleanEquals",
829
- "argv": [
830
- {
831
- "ref": "UseDualStack"
832
- },
833
- true
834
- ]
835
- }
836
- ],
837
- "rules": [
838
- {
839
- "conditions": [
840
- {
841
- "fn": "booleanEquals",
842
- "argv": [
843
- true,
844
- {
845
- "fn": "getAttr",
846
- "argv": [
847
- {
848
- "ref": "PartitionResult"
849
- },
850
- "supportsFIPS"
851
- ]
852
- }
853
- ]
854
- },
855
- {
856
- "fn": "booleanEquals",
857
- "argv": [
858
- true,
859
- {
860
- "fn": "getAttr",
861
- "argv": [
862
- {
863
- "ref": "PartitionResult"
864
- },
865
- "supportsDualStack"
866
- ]
867
- }
868
- ]
869
- }
870
- ],
871
- "rules": [
872
- {
873
- "conditions": [],
874
- "endpoint": {
875
- "url": "https://cloudcontrolapi-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
876
- "properties": {},
877
- "headers": {}
878
- },
879
- "type": "endpoint"
880
- }
881
- ],
882
- "type": "tree"
883
- },
884
- {
885
- "conditions": [],
886
- "error": "FIPS and DualStack are enabled, but this partition does not support one or both",
887
- "type": "error"
888
- }
889
- ],
890
- "type": "tree"
891
- },
892
- {
893
- "conditions": [
894
- {
895
- "fn": "booleanEquals",
896
- "argv": [
897
- {
898
- "ref": "UseFIPS"
899
- },
900
- true
901
- ]
902
- }
903
- ],
904
- "rules": [
905
- {
906
- "conditions": [
907
- {
908
- "fn": "booleanEquals",
909
- "argv": [
910
- {
911
- "fn": "getAttr",
912
- "argv": [
913
- {
914
- "ref": "PartitionResult"
915
- },
916
- "supportsFIPS"
917
- ]
918
- },
919
- true
920
- ]
921
- }
922
- ],
923
- "rules": [
924
- {
925
- "conditions": [],
926
- "endpoint": {
927
- "url": "https://cloudcontrolapi-fips.{Region}.{PartitionResult#dnsSuffix}",
928
- "properties": {},
929
- "headers": {}
930
- },
931
- "type": "endpoint"
932
- }
933
- ],
934
- "type": "tree"
935
- },
936
- {
937
- "conditions": [],
938
- "error": "FIPS is enabled but this partition does not support FIPS",
939
- "type": "error"
940
- }
941
- ],
942
- "type": "tree"
943
- },
944
- {
945
- "conditions": [
946
- {
947
- "fn": "booleanEquals",
948
- "argv": [
949
- {
950
- "ref": "UseDualStack"
951
- },
952
- true
953
- ]
954
- }
955
- ],
956
- "rules": [
957
- {
958
- "conditions": [
959
- {
960
- "fn": "booleanEquals",
961
- "argv": [
962
- true,
963
- {
964
- "fn": "getAttr",
965
- "argv": [
966
- {
967
- "ref": "PartitionResult"
968
- },
969
- "supportsDualStack"
970
- ]
971
- }
972
- ]
973
- }
974
- ],
975
- "rules": [
976
- {
977
- "conditions": [],
978
- "endpoint": {
979
- "url": "https://cloudcontrolapi.{Region}.{PartitionResult#dualStackDnsSuffix}",
980
- "properties": {},
981
- "headers": {}
982
- },
983
- "type": "endpoint"
984
- }
985
- ],
986
- "type": "tree"
987
- },
988
- {
989
- "conditions": [],
990
- "error": "DualStack is enabled but this partition does not support DualStack",
991
- "type": "error"
992
- }
993
- ],
994
- "type": "tree"
995
- },
996
- {
997
- "conditions": [],
998
- "endpoint": {
999
- "url": "https://cloudcontrolapi.{Region}.{PartitionResult#dnsSuffix}",
1000
- "properties": {},
1001
- "headers": {}
1002
- },
1003
- "type": "endpoint"
1004
- }
1005
- ],
1006
- "type": "tree"
1007
- }
1008
- ],
1009
- "type": "tree"
1010
- },
1011
- {
1012
- "conditions": [],
1013
- "error": "Invalid Configuration: Missing Region",
1014
- "type": "error"
1015
- }
1016
- ]
1017
- }
1018
- }
1019
- }