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.
- package/CHANGELOG.md +34 -0
- package/README.md +5 -15
- package/ROADMAP.md +2 -0
- package/docs/README.md +1 -1
- package/docs/application/aws-resource-coverage.md +26 -0
- package/docs/application/aws-resource-lifecycle-management.md +13 -23
- package/docs/application/cli-workflow.md +1 -1
- package/docs/application/engine-design.md +2 -2
- package/docs/application/generation-architecture.md +10 -45
- package/docs/application/resource-command-policy-stage.md +2 -2
- package/docs/application/resource-graph.md +1 -1
- package/docs/application/resource-lifecycle-tracker.md +1 -9
- package/docs/application/resource-mapping.md +4 -9
- package/docs/application/resource-operations.md +4 -2
- package/docs/application/tracing.md +2 -6
- package/docs/development/code-documentation.md +2 -0
- package/docs/development/effect-native-development.md +44 -0
- package/docs/development/linting.md +1 -1
- package/docs/development/review-code.md +22 -6
- package/docs/development/review-remediation-spec.md +28 -37
- package/docs/development/spec-writing.md +1 -1
- package/docs/development/testing.md +23 -9
- package/docs/operations/observability-sop.md +11 -17
- package/docs/operations/releasing.md +3 -1
- package/examples/README.md +3 -26
- package/examples/commands.ts +2 -36
- package/examples/queue/application.ts +8 -2
- package/examples/state-machine/application.ts +3 -1
- package/package.json +40 -46
- package/providers/aws/README.md +21 -0
- package/providers/aws/awsEnvironment.ts +114 -0
- package/providers/aws/generated/managementRegistry.ts +136 -0
- package/{src/providers/aws/resources/generated/native/apigatewayv2/api/index.ts → providers/aws/generated/resources/apigatewayv2/api.ts} +13 -50
- package/{src/providers/aws/resources/generated/native/apigatewayv2/integration/index.ts → providers/aws/generated/resources/apigatewayv2/integration.ts} +13 -37
- package/{src/providers/aws/resources/generated/native/apigatewayv2/route/index.ts → providers/aws/generated/resources/apigatewayv2/route.ts} +23 -40
- package/{src/providers/aws/resources/generated/native/apigatewayv2/stage/index.ts → providers/aws/generated/resources/apigatewayv2/stage.ts} +13 -38
- package/providers/aws/generated/resources/iam/accesskey.ts +184 -0
- package/{src/providers/aws/resources/generated/native/iam/group/index.ts → providers/aws/generated/resources/iam/group.ts} +13 -38
- package/{src/providers/aws/resources/generated/native/iam/grouppolicy/index.ts → providers/aws/generated/resources/iam/grouppolicy.ts} +29 -59
- package/{src/providers/aws/resources/generated/native/iam/instanceprofile/index.ts → providers/aws/generated/resources/iam/instanceprofile.ts} +13 -41
- package/{src/providers/aws/resources/generated/native/iam/managedpolicy/index.ts → providers/aws/generated/resources/iam/managedpolicy.ts} +13 -95
- package/providers/aws/generated/resources/iam/oidcprovider.ts +314 -0
- package/{src/providers/aws/resources/generated/native/iam/policy/index.ts → providers/aws/generated/resources/iam/policy.ts} +13 -28
- package/{src/providers/aws/resources/generated/native/iam/role/index.ts → providers/aws/generated/resources/iam/role.ts} +13 -47
- package/{src/providers/aws/resources/generated/native/iam/rolepolicy/index.ts → providers/aws/generated/resources/iam/rolepolicy.ts} +29 -59
- package/providers/aws/generated/resources/iam/samlprovider.ts +463 -0
- package/providers/aws/generated/resources/iam/servercertificate.ts +465 -0
- package/providers/aws/generated/resources/iam/servicelinkedrole.ts +187 -0
- package/{src/providers/aws/resources/generated/native/iam/user/index.ts → providers/aws/generated/resources/iam/user.ts} +13 -38
- package/{src/providers/aws/resources/generated/native/iam/userpolicy/index.ts → providers/aws/generated/resources/iam/userpolicy.ts} +29 -59
- package/{src/providers/aws/resources/generated/native/iam/usertogroupaddition/index.ts → providers/aws/generated/resources/iam/usertogroupaddition.ts} +13 -27
- package/providers/aws/generated/resources/iam/virtualmfadevice.ts +298 -0
- package/{src/providers/aws/resources/generated/native/kms/key/index.ts → providers/aws/generated/resources/kms/key.ts} +13 -41
- package/{src/providers/aws/resources/generated/native/lambda/function/index.ts → providers/aws/generated/resources/lambda/function.ts} +13 -63
- package/{src/providers/aws/resources/generated/native/lambda/permission/index.ts → providers/aws/generated/resources/lambda/permission.ts} +13 -55
- package/{src/providers/aws/resources/generated/native/s3/bucket/index.ts → providers/aws/generated/resources/s3/bucket.ts} +14 -104
- package/{src/providers/aws/resources/generated/native/sns/topic/index.ts → providers/aws/generated/resources/sns/topic.ts} +14 -29
- package/{src/providers/aws/resources/generated/native/sqs/queue/index.ts → providers/aws/generated/resources/sqs/queue.ts} +14 -38
- package/{src/providers/aws/resources/generated/native/stepfunctions/statemachine/index.ts → providers/aws/generated/resources/stepfunctions/statemachine.ts} +15 -58
- package/providers/aws/management/mappings/iam/group.ts +63 -0
- package/providers/aws/management/mappings/iam/iamIdentity.ts +41 -0
- package/providers/aws/management/mappings/iam/iamLifecycleSettings.ts +8 -0
- package/providers/aws/management/mappings/iam/inlinePolicies.ts +159 -0
- package/providers/aws/management/mappings/iam/instanceProfile.ts +77 -0
- package/providers/aws/management/mappings/iam/oidcProvider.ts +94 -0
- package/providers/aws/management/mappings/iam/role.ts +74 -0
- package/providers/aws/management/mappings/iam/samlProvider.ts +98 -0
- package/providers/aws/management/mappings/iam/serverCertificate.ts +72 -0
- package/providers/aws/management/mappings/iam/user.ts +61 -0
- package/providers/aws/management/mappings/iam/userToGroupAddition.ts +75 -0
- package/providers/aws/management/operations/iam/accessKey.ts +206 -0
- package/providers/aws/management/operations/iam/managedPolicy.ts +491 -0
- package/providers/aws/management/operations/iam/policy.ts +476 -0
- package/providers/aws/management/operations/iam/serviceLinkedRole.ts +172 -0
- package/providers/aws/management/operations/iam/virtualMfaDevice.ts +253 -0
- package/providers/aws/management/resourceAssociationConfiguration.ts +112 -0
- package/providers/aws/management/resourceAssociationRegistration.ts +349 -0
- package/providers/aws/management/resourceAssociations.ts +168 -0
- package/{src/providers → providers}/aws/management/resourceConfiguration.ts +24 -26
- package/providers/aws/management/resourceLifecycleRegistration.ts +540 -0
- package/providers/aws/management/resourceManagementModule.ts +31 -0
- package/providers/aws/management/resourceManagementRegistry.ts +62 -0
- package/providers/aws/management/resourceMapping.ts +84 -0
- package/providers/aws/management/resourceOperation.ts +134 -0
- package/providers/aws/management/resourceTagOperations.ts +108 -0
- package/providers/aws/management/resourceTiming.ts +4 -0
- package/providers/aws/runtime.ts +52 -0
- package/src/core/resource/resourceCommandPolicy.ts +20 -0
- package/src/core/resource/resourceLifecycle.ts +644 -0
- package/src/core/resource/resourceStabilization.ts +120 -0
- package/src/core/resource/resourceVersions.ts +102 -0
- package/src/core/stack/planner.ts +9 -0
- package/src/core/stack/resourceStackLifecycle.ts +36 -3
- package/src/core/state/resourceState.ts +6 -4
- package/src/core/state/stateStore.ts +57 -10
- package/src/providers/file/resourcePolicy.ts +13 -12
- package/src/providers/providerRuntimeLayer.ts +5 -2
- package/src/providers/resourceCommandPolicyLayer.ts +117 -37
- package/src/providers/stripe/management/resourcePolicy.ts +22 -11
- package/examples/http-echo/application.ts +0 -87
- package/src/providers/aws/client/awsClient.ts +0 -418
- package/src/providers/aws/client/awsClientConfig.ts +0 -133
- package/src/providers/aws/client/awsClientModel.ts +0 -119
- package/src/providers/aws/client/awsHttpOperation.ts +0 -153
- package/src/providers/aws/client/awsQueryOperation.ts +0 -149
- package/src/providers/aws/client/awsRequestSigner.ts +0 -115
- package/src/providers/aws/client/awsResponseDecoder.ts +0 -135
- package/src/providers/aws/client/awsRetryPolicy.ts +0 -62
- package/src/providers/aws/client/generated/apiGatewayV2.ts +0 -3025
- package/src/providers/aws/client/generated/cloudControl.ts +0 -5746
- package/src/providers/aws/client/generated/iam.ts +0 -10892
- package/src/providers/aws/client/generated/lambda.ts +0 -5403
- package/src/providers/aws/client/generated/sqs.ts +0 -3769
- package/src/providers/aws/client/generated/stepFunctions.ts +0 -1726
- package/src/providers/aws/client/openapi/cloudControl/CancelResourceRequest.json +0 -579
- package/src/providers/aws/client/openapi/cloudControl/CreateResource.json +0 -1019
- package/src/providers/aws/client/openapi/cloudControl/DeleteResource.json +0 -1018
- package/src/providers/aws/client/openapi/cloudControl/GetResource.json +0 -883
- package/src/providers/aws/client/openapi/cloudControl/GetResourceRequestStatus.json +0 -655
- package/src/providers/aws/client/openapi/cloudControl/ListResourceRequests.json +0 -566
- package/src/providers/aws/client/openapi/cloudControl/ListResources.json +0 -913
- package/src/providers/aws/client/openapi/cloudControl/UpdateResource.json +0 -1027
- package/src/providers/aws/cloudControl/client.ts +0 -69
- package/src/providers/aws/cloudControl/requestTracker.ts +0 -138
- package/src/providers/aws/cloudControl/resourceCommandPolicyLayer.ts +0 -63
- package/src/providers/aws/cloudControl/resourceLifecycle.ts +0 -479
- package/src/providers/aws/cloudControl/resources/generated/certificatemanager/certificate/index.ts +0 -179
- package/src/providers/aws/cloudControl/resources/generated/kms/key/index.ts +0 -362
- package/src/providers/aws/cloudControl/resources/generated/s3/bucket/index.ts +0 -2364
- package/src/providers/aws/cloudControl/resources/generated/sns/topic/index.ts +0 -326
- package/src/providers/aws/cloudControl/resources/generated/sqs/queue/index.ts +0 -307
- package/src/providers/aws/cloudControl/resources/generated/sqs/queueinlinepolicy/index.ts +0 -108
- package/src/providers/aws/cloudControl/runtime.ts +0 -127
- package/src/providers/aws/management/resourceMapping.ts +0 -343
- package/src/providers/aws/management/resourceOperation.ts +0 -57
- package/src/providers/aws/management/resourcePolicy.ts +0 -549
- package/src/providers/aws/management/resourceRegistration.ts +0 -294
- package/src/providers/aws/resources/apiGatewayV2/httpApi.ts +0 -327
- package/src/providers/aws/resources/generated/native/resourceCommands.ts +0 -152
- package/src/providers/aws/resources/iam/grant.ts +0 -150
- package/src/providers/aws/resources/iam/grantCommands.ts +0 -283
- package/src/providers/aws/resources/iam/policyDocument.ts +0 -30
- package/src/providers/aws/resources/iam/policyStatement.ts +0 -59
- package/src/providers/aws/resources/iam/role.ts +0 -426
- package/src/providers/aws/resources/iam/roleDeclaration.ts +0 -105
- package/src/providers/aws/resources/lambda/function.ts +0 -403
- package/src/providers/aws/resources/lambda/functionDeclaration.ts +0 -234
- package/src/providers/aws/resources/lambda/permission.ts +0 -363
- package/src/providers/aws/resources/stepFunctions/stateMachine.ts +0 -95
- package/src/providers/aws/runtime.ts +0 -70
|
@@ -1,1726 +0,0 @@
|
|
|
1
|
-
// Generated from Smithy's official OpenAPI transformation. Do not edit.
|
|
2
|
-
// biome-ignore-all lint/complexity/useRegexLiterals: Preserve Effect's generated regular expressions.
|
|
3
|
-
import { Effect, Schema } from "effect";
|
|
4
|
-
import { HttpApi, HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
5
|
-
import { AwsClient } from "../awsClient.js";
|
|
6
|
-
import type {
|
|
7
|
-
AwsJsonRpcOperation,
|
|
8
|
-
AwsServiceDefinition,
|
|
9
|
-
} from "../awsClientModel.js";
|
|
10
|
-
import { awsJsonRpcEmptyOutput } from "../awsHttpOperation.js";
|
|
11
|
-
|
|
12
|
-
export const StateMachineType = Schema.Literals([
|
|
13
|
-
"STANDARD",
|
|
14
|
-
"EXPRESS",
|
|
15
|
-
]).annotate({ identifier: "StateMachineType" });
|
|
16
|
-
|
|
17
|
-
export type StateMachineType = typeof StateMachineType.Type;
|
|
18
|
-
|
|
19
|
-
export const LogLevel = Schema.Literals([
|
|
20
|
-
"ALL",
|
|
21
|
-
"ERROR",
|
|
22
|
-
"FATAL",
|
|
23
|
-
"OFF",
|
|
24
|
-
]).annotate({ identifier: "LogLevel" });
|
|
25
|
-
|
|
26
|
-
export type LogLevel = typeof LogLevel.Type;
|
|
27
|
-
|
|
28
|
-
export const CloudWatchLogsLogGroup = Schema.StructWithRest(
|
|
29
|
-
Schema.Struct({
|
|
30
|
-
logGroupArn: Schema.optionalKey(
|
|
31
|
-
Schema.String.check(
|
|
32
|
-
Schema.isMinLength(1).annotate({
|
|
33
|
-
expected: "a value with a length of at least 1",
|
|
34
|
-
}),
|
|
35
|
-
).check(
|
|
36
|
-
Schema.isMaxCodePoints(256).annotate({
|
|
37
|
-
expected: "a string with at most 256 code points",
|
|
38
|
-
}),
|
|
39
|
-
),
|
|
40
|
-
),
|
|
41
|
-
}),
|
|
42
|
-
[
|
|
43
|
-
Schema.Record(
|
|
44
|
-
Schema.String,
|
|
45
|
-
Schema.Json.annotate({ expected: "JSON value" }),
|
|
46
|
-
),
|
|
47
|
-
],
|
|
48
|
-
).annotate({ identifier: "CloudWatchLogsLogGroup" });
|
|
49
|
-
|
|
50
|
-
export type CloudWatchLogsLogGroup = typeof CloudWatchLogsLogGroup.Type;
|
|
51
|
-
|
|
52
|
-
export const Tag = Schema.StructWithRest(
|
|
53
|
-
Schema.Struct({
|
|
54
|
-
key: Schema.optionalKey(
|
|
55
|
-
Schema.String.check(
|
|
56
|
-
Schema.isMinLength(1).annotate({
|
|
57
|
-
expected: "a value with a length of at least 1",
|
|
58
|
-
}),
|
|
59
|
-
).check(
|
|
60
|
-
Schema.isMaxCodePoints(128).annotate({
|
|
61
|
-
expected: "a string with at most 128 code points",
|
|
62
|
-
}),
|
|
63
|
-
),
|
|
64
|
-
),
|
|
65
|
-
value: Schema.optionalKey(
|
|
66
|
-
Schema.String.check(
|
|
67
|
-
Schema.isMinCodePoints(0).annotate({
|
|
68
|
-
expected: "a string with at least 0 code points",
|
|
69
|
-
}),
|
|
70
|
-
).check(
|
|
71
|
-
Schema.isMaxCodePoints(256).annotate({
|
|
72
|
-
expected: "a string with at most 256 code points",
|
|
73
|
-
}),
|
|
74
|
-
),
|
|
75
|
-
),
|
|
76
|
-
}),
|
|
77
|
-
[
|
|
78
|
-
Schema.Record(
|
|
79
|
-
Schema.String,
|
|
80
|
-
Schema.Json.annotate({ expected: "JSON value" }),
|
|
81
|
-
),
|
|
82
|
-
],
|
|
83
|
-
).annotate({ identifier: "Tag" });
|
|
84
|
-
|
|
85
|
-
export type Tag = typeof Tag.Type;
|
|
86
|
-
|
|
87
|
-
export const TracingConfiguration = Schema.StructWithRest(
|
|
88
|
-
Schema.Struct({
|
|
89
|
-
enabled: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
|
|
90
|
-
}),
|
|
91
|
-
[
|
|
92
|
-
Schema.Record(
|
|
93
|
-
Schema.String,
|
|
94
|
-
Schema.Json.annotate({ expected: "JSON value" }),
|
|
95
|
-
),
|
|
96
|
-
],
|
|
97
|
-
).annotate({ identifier: "TracingConfiguration" });
|
|
98
|
-
|
|
99
|
-
export type TracingConfiguration = typeof TracingConfiguration.Type;
|
|
100
|
-
|
|
101
|
-
export const EncryptionType = Schema.Literals([
|
|
102
|
-
"AWS_OWNED_KEY",
|
|
103
|
-
"CUSTOMER_MANAGED_KMS_KEY",
|
|
104
|
-
]).annotate({ identifier: "EncryptionType" });
|
|
105
|
-
|
|
106
|
-
export type EncryptionType = typeof EncryptionType.Type;
|
|
107
|
-
|
|
108
|
-
export const ValidationExceptionReason = Schema.Literals([
|
|
109
|
-
"API_DOES_NOT_SUPPORT_LABELED_ARNS",
|
|
110
|
-
"MISSING_REQUIRED_PARAMETER",
|
|
111
|
-
"CANNOT_UPDATE_COMPLETED_MAP_RUN",
|
|
112
|
-
"INVALID_ROUTING_CONFIGURATION",
|
|
113
|
-
]).annotate({ identifier: "ValidationExceptionReason" });
|
|
114
|
-
|
|
115
|
-
export type ValidationExceptionReason = typeof ValidationExceptionReason.Type;
|
|
116
|
-
|
|
117
|
-
export const IncludedData = Schema.Literals([
|
|
118
|
-
"ALL_DATA",
|
|
119
|
-
"METADATA_ONLY",
|
|
120
|
-
]).annotate({ identifier: "IncludedData" });
|
|
121
|
-
|
|
122
|
-
export type IncludedData = typeof IncludedData.Type;
|
|
123
|
-
|
|
124
|
-
export const StateMachineStatus = Schema.Literals([
|
|
125
|
-
"ACTIVE",
|
|
126
|
-
"DELETING",
|
|
127
|
-
]).annotate({ identifier: "StateMachineStatus" });
|
|
128
|
-
|
|
129
|
-
export type StateMachineStatus = typeof StateMachineStatus.Type;
|
|
130
|
-
|
|
131
|
-
export const VariableReferences = Schema.Record(
|
|
132
|
-
Schema.String,
|
|
133
|
-
Schema.Array(Schema.String.annotate({ format: "password" })),
|
|
134
|
-
)
|
|
135
|
-
.annotate({ format: "password" })
|
|
136
|
-
.check(
|
|
137
|
-
Schema.isPropertyNames(
|
|
138
|
-
Schema.String.check(
|
|
139
|
-
Schema.isMinLength(1).annotate({
|
|
140
|
-
expected: "a value with a length of at least 1",
|
|
141
|
-
}),
|
|
142
|
-
).check(
|
|
143
|
-
Schema.isMaxCodePoints(80).annotate({
|
|
144
|
-
expected: "a string with at most 80 code points",
|
|
145
|
-
}),
|
|
146
|
-
),
|
|
147
|
-
).annotate({
|
|
148
|
-
expected: "an object with property names matching the schema",
|
|
149
|
-
identifier: "VariableReferences",
|
|
150
|
-
}),
|
|
151
|
-
);
|
|
152
|
-
|
|
153
|
-
export type VariableReferences = typeof VariableReferences.Type;
|
|
154
|
-
|
|
155
|
-
export const KmsKeyState = Schema.Literals([
|
|
156
|
-
"DISABLED",
|
|
157
|
-
"PENDING_DELETION",
|
|
158
|
-
"PENDING_IMPORT",
|
|
159
|
-
"UNAVAILABLE",
|
|
160
|
-
"CREATING",
|
|
161
|
-
]).annotate({ identifier: "KmsKeyState" });
|
|
162
|
-
|
|
163
|
-
export type KmsKeyState = typeof KmsKeyState.Type;
|
|
164
|
-
|
|
165
|
-
export const LogDestination = Schema.StructWithRest(
|
|
166
|
-
Schema.Struct({
|
|
167
|
-
cloudWatchLogsLogGroup: Schema.optionalKey(CloudWatchLogsLogGroup),
|
|
168
|
-
}),
|
|
169
|
-
[
|
|
170
|
-
Schema.Record(
|
|
171
|
-
Schema.String,
|
|
172
|
-
Schema.Json.annotate({ expected: "JSON value" }),
|
|
173
|
-
),
|
|
174
|
-
],
|
|
175
|
-
).annotate({ identifier: "LogDestination" });
|
|
176
|
-
|
|
177
|
-
export type LogDestination = typeof LogDestination.Type;
|
|
178
|
-
|
|
179
|
-
export const EncryptionConfiguration = Schema.StructWithRest(
|
|
180
|
-
Schema.Struct({
|
|
181
|
-
kmsKeyId: Schema.optionalKey(
|
|
182
|
-
Schema.String.check(
|
|
183
|
-
Schema.isMinLength(1).annotate({
|
|
184
|
-
expected: "a value with a length of at least 1",
|
|
185
|
-
}),
|
|
186
|
-
).check(
|
|
187
|
-
Schema.isMaxCodePoints(2048).annotate({
|
|
188
|
-
expected: "a string with at most 2048 code points",
|
|
189
|
-
}),
|
|
190
|
-
),
|
|
191
|
-
),
|
|
192
|
-
kmsDataKeyReusePeriodSeconds: Schema.optionalKey(
|
|
193
|
-
Schema.Number.annotate({ format: "int32" })
|
|
194
|
-
.check(Schema.isInt().annotate({ expected: "an integer" }))
|
|
195
|
-
.check(
|
|
196
|
-
Schema.isGreaterThanOrEqualTo(60).annotate({
|
|
197
|
-
expected: "a value greater than or equal to 60",
|
|
198
|
-
}),
|
|
199
|
-
)
|
|
200
|
-
.check(
|
|
201
|
-
Schema.isLessThanOrEqualTo(900).annotate({
|
|
202
|
-
expected: "a value less than or equal to 900",
|
|
203
|
-
}),
|
|
204
|
-
),
|
|
205
|
-
),
|
|
206
|
-
type: EncryptionType,
|
|
207
|
-
}),
|
|
208
|
-
[
|
|
209
|
-
Schema.Record(
|
|
210
|
-
Schema.String,
|
|
211
|
-
Schema.Json.annotate({ expected: "JSON value" }),
|
|
212
|
-
),
|
|
213
|
-
],
|
|
214
|
-
).annotate({ identifier: "EncryptionConfiguration" });
|
|
215
|
-
|
|
216
|
-
export type EncryptionConfiguration = typeof EncryptionConfiguration.Type;
|
|
217
|
-
|
|
218
|
-
export const LoggingConfiguration = Schema.StructWithRest(
|
|
219
|
-
Schema.Struct({
|
|
220
|
-
level: Schema.optionalKey(LogLevel),
|
|
221
|
-
includeExecutionData: Schema.optionalKey(
|
|
222
|
-
Schema.Boolean.annotate({ default: false }),
|
|
223
|
-
),
|
|
224
|
-
destinations: Schema.optionalKey(Schema.Array(LogDestination)),
|
|
225
|
-
}),
|
|
226
|
-
[
|
|
227
|
-
Schema.Record(
|
|
228
|
-
Schema.String,
|
|
229
|
-
Schema.Json.annotate({ expected: "JSON value" }),
|
|
230
|
-
),
|
|
231
|
-
],
|
|
232
|
-
).annotate({ identifier: "LoggingConfiguration" });
|
|
233
|
-
|
|
234
|
-
export type LoggingConfiguration = typeof LoggingConfiguration.Type;
|
|
235
|
-
|
|
236
|
-
export const CreateStateMachineInput = Schema.StructWithRest(
|
|
237
|
-
Schema.Struct({
|
|
238
|
-
name: Schema.String.check(
|
|
239
|
-
Schema.isMinLength(1).annotate({
|
|
240
|
-
expected: "a value with a length of at least 1",
|
|
241
|
-
}),
|
|
242
|
-
).check(
|
|
243
|
-
Schema.isMaxCodePoints(80).annotate({
|
|
244
|
-
expected: "a string with at most 80 code points",
|
|
245
|
-
}),
|
|
246
|
-
),
|
|
247
|
-
definition: Schema.String.annotate({ format: "password" })
|
|
248
|
-
.check(
|
|
249
|
-
Schema.isMinLength(1).annotate({
|
|
250
|
-
expected: "a value with a length of at least 1",
|
|
251
|
-
}),
|
|
252
|
-
)
|
|
253
|
-
.check(
|
|
254
|
-
Schema.isMaxCodePoints(1048576).annotate({
|
|
255
|
-
expected: "a string with at most 1048576 code points",
|
|
256
|
-
}),
|
|
257
|
-
),
|
|
258
|
-
roleArn: Schema.String.check(
|
|
259
|
-
Schema.isMinLength(1).annotate({
|
|
260
|
-
expected: "a value with a length of at least 1",
|
|
261
|
-
}),
|
|
262
|
-
).check(
|
|
263
|
-
Schema.isMaxCodePoints(256).annotate({
|
|
264
|
-
expected: "a string with at most 256 code points",
|
|
265
|
-
}),
|
|
266
|
-
),
|
|
267
|
-
type: Schema.optionalKey(StateMachineType),
|
|
268
|
-
loggingConfiguration: Schema.optionalKey(LoggingConfiguration),
|
|
269
|
-
tags: Schema.optionalKey(Schema.Array(Tag)),
|
|
270
|
-
tracingConfiguration: Schema.optionalKey(TracingConfiguration),
|
|
271
|
-
publish: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
|
|
272
|
-
versionDescription: Schema.optionalKey(
|
|
273
|
-
Schema.String.annotate({ format: "password" })
|
|
274
|
-
.check(
|
|
275
|
-
Schema.isMinCodePoints(0).annotate({
|
|
276
|
-
expected: "a string with at least 0 code points",
|
|
277
|
-
}),
|
|
278
|
-
)
|
|
279
|
-
.check(
|
|
280
|
-
Schema.isMaxCodePoints(256).annotate({
|
|
281
|
-
expected: "a string with at most 256 code points",
|
|
282
|
-
}),
|
|
283
|
-
),
|
|
284
|
-
),
|
|
285
|
-
encryptionConfiguration: Schema.optionalKey(EncryptionConfiguration),
|
|
286
|
-
}),
|
|
287
|
-
[
|
|
288
|
-
Schema.Record(
|
|
289
|
-
Schema.String,
|
|
290
|
-
Schema.Json.annotate({ expected: "JSON value" }),
|
|
291
|
-
),
|
|
292
|
-
],
|
|
293
|
-
);
|
|
294
|
-
|
|
295
|
-
export type CreateStateMachineInput = typeof CreateStateMachineInput.Type;
|
|
296
|
-
|
|
297
|
-
export const CreateStateMachineOutput = Schema.StructWithRest(
|
|
298
|
-
Schema.Struct({
|
|
299
|
-
stateMachineArn: Schema.String.check(
|
|
300
|
-
Schema.isMinLength(1).annotate({
|
|
301
|
-
expected: "a value with a length of at least 1",
|
|
302
|
-
}),
|
|
303
|
-
).check(
|
|
304
|
-
Schema.isMaxCodePoints(256).annotate({
|
|
305
|
-
expected: "a string with at most 256 code points",
|
|
306
|
-
}),
|
|
307
|
-
),
|
|
308
|
-
creationDate: Schema.Number.annotate({ format: "double" }).check(
|
|
309
|
-
Schema.isFinite().annotate({ expected: "a finite number" }),
|
|
310
|
-
),
|
|
311
|
-
stateMachineVersionArn: Schema.optionalKey(
|
|
312
|
-
Schema.String.check(
|
|
313
|
-
Schema.isMinLength(1).annotate({
|
|
314
|
-
expected: "a value with a length of at least 1",
|
|
315
|
-
}),
|
|
316
|
-
).check(
|
|
317
|
-
Schema.isMaxCodePoints(256).annotate({
|
|
318
|
-
expected: "a string with at most 256 code points",
|
|
319
|
-
}),
|
|
320
|
-
),
|
|
321
|
-
),
|
|
322
|
-
}),
|
|
323
|
-
[
|
|
324
|
-
Schema.Record(
|
|
325
|
-
Schema.String,
|
|
326
|
-
Schema.Json.annotate({ expected: "JSON value" }),
|
|
327
|
-
),
|
|
328
|
-
],
|
|
329
|
-
);
|
|
330
|
-
|
|
331
|
-
export type CreateStateMachineOutput = typeof CreateStateMachineOutput.Type;
|
|
332
|
-
|
|
333
|
-
export const InvalidArn = Schema.StructWithRest(
|
|
334
|
-
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
335
|
-
[
|
|
336
|
-
Schema.Record(
|
|
337
|
-
Schema.String,
|
|
338
|
-
Schema.Json.annotate({ expected: "JSON value" }),
|
|
339
|
-
),
|
|
340
|
-
],
|
|
341
|
-
);
|
|
342
|
-
|
|
343
|
-
export type InvalidArn = typeof InvalidArn.Type;
|
|
344
|
-
|
|
345
|
-
export const InvalidDefinition = Schema.StructWithRest(
|
|
346
|
-
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
347
|
-
[
|
|
348
|
-
Schema.Record(
|
|
349
|
-
Schema.String,
|
|
350
|
-
Schema.Json.annotate({ expected: "JSON value" }),
|
|
351
|
-
),
|
|
352
|
-
],
|
|
353
|
-
);
|
|
354
|
-
|
|
355
|
-
export type InvalidDefinition = typeof InvalidDefinition.Type;
|
|
356
|
-
|
|
357
|
-
export const InvalidEncryptionConfiguration = Schema.StructWithRest(
|
|
358
|
-
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
359
|
-
[
|
|
360
|
-
Schema.Record(
|
|
361
|
-
Schema.String,
|
|
362
|
-
Schema.Json.annotate({ expected: "JSON value" }),
|
|
363
|
-
),
|
|
364
|
-
],
|
|
365
|
-
);
|
|
366
|
-
|
|
367
|
-
export type InvalidEncryptionConfiguration =
|
|
368
|
-
typeof InvalidEncryptionConfiguration.Type;
|
|
369
|
-
|
|
370
|
-
export const InvalidLoggingConfiguration = Schema.StructWithRest(
|
|
371
|
-
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
372
|
-
[
|
|
373
|
-
Schema.Record(
|
|
374
|
-
Schema.String,
|
|
375
|
-
Schema.Json.annotate({ expected: "JSON value" }),
|
|
376
|
-
),
|
|
377
|
-
],
|
|
378
|
-
);
|
|
379
|
-
|
|
380
|
-
export type InvalidLoggingConfiguration =
|
|
381
|
-
typeof InvalidLoggingConfiguration.Type;
|
|
382
|
-
|
|
383
|
-
export const InvalidName = Schema.StructWithRest(
|
|
384
|
-
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
385
|
-
[
|
|
386
|
-
Schema.Record(
|
|
387
|
-
Schema.String,
|
|
388
|
-
Schema.Json.annotate({ expected: "JSON value" }),
|
|
389
|
-
),
|
|
390
|
-
],
|
|
391
|
-
);
|
|
392
|
-
|
|
393
|
-
export type InvalidName = typeof InvalidName.Type;
|
|
394
|
-
|
|
395
|
-
export const InvalidTracingConfiguration = Schema.StructWithRest(
|
|
396
|
-
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
397
|
-
[
|
|
398
|
-
Schema.Record(
|
|
399
|
-
Schema.String,
|
|
400
|
-
Schema.Json.annotate({ expected: "JSON value" }),
|
|
401
|
-
),
|
|
402
|
-
],
|
|
403
|
-
);
|
|
404
|
-
|
|
405
|
-
export type InvalidTracingConfiguration =
|
|
406
|
-
typeof InvalidTracingConfiguration.Type;
|
|
407
|
-
|
|
408
|
-
export const KmsAccessDeniedException = Schema.StructWithRest(
|
|
409
|
-
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
410
|
-
[
|
|
411
|
-
Schema.Record(
|
|
412
|
-
Schema.String,
|
|
413
|
-
Schema.Json.annotate({ expected: "JSON value" }),
|
|
414
|
-
),
|
|
415
|
-
],
|
|
416
|
-
);
|
|
417
|
-
|
|
418
|
-
export type KmsAccessDeniedException = typeof KmsAccessDeniedException.Type;
|
|
419
|
-
|
|
420
|
-
export const KmsThrottlingException = Schema.StructWithRest(
|
|
421
|
-
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
422
|
-
[
|
|
423
|
-
Schema.Record(
|
|
424
|
-
Schema.String,
|
|
425
|
-
Schema.Json.annotate({ expected: "JSON value" }),
|
|
426
|
-
),
|
|
427
|
-
],
|
|
428
|
-
);
|
|
429
|
-
|
|
430
|
-
export type KmsThrottlingException = typeof KmsThrottlingException.Type;
|
|
431
|
-
|
|
432
|
-
export const StateMachineAlreadyExists = Schema.StructWithRest(
|
|
433
|
-
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
434
|
-
[
|
|
435
|
-
Schema.Record(
|
|
436
|
-
Schema.String,
|
|
437
|
-
Schema.Json.annotate({ expected: "JSON value" }),
|
|
438
|
-
),
|
|
439
|
-
],
|
|
440
|
-
);
|
|
441
|
-
|
|
442
|
-
export type StateMachineAlreadyExists = typeof StateMachineAlreadyExists.Type;
|
|
443
|
-
|
|
444
|
-
export const StateMachineDeleting = Schema.StructWithRest(
|
|
445
|
-
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
446
|
-
[
|
|
447
|
-
Schema.Record(
|
|
448
|
-
Schema.String,
|
|
449
|
-
Schema.Json.annotate({ expected: "JSON value" }),
|
|
450
|
-
),
|
|
451
|
-
],
|
|
452
|
-
);
|
|
453
|
-
|
|
454
|
-
export type StateMachineDeleting = typeof StateMachineDeleting.Type;
|
|
455
|
-
|
|
456
|
-
export const StateMachineLimitExceeded = Schema.StructWithRest(
|
|
457
|
-
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
458
|
-
[
|
|
459
|
-
Schema.Record(
|
|
460
|
-
Schema.String,
|
|
461
|
-
Schema.Json.annotate({ expected: "JSON value" }),
|
|
462
|
-
),
|
|
463
|
-
],
|
|
464
|
-
);
|
|
465
|
-
|
|
466
|
-
export type StateMachineLimitExceeded = typeof StateMachineLimitExceeded.Type;
|
|
467
|
-
|
|
468
|
-
export const StateMachineTypeNotSupported = Schema.StructWithRest(
|
|
469
|
-
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
470
|
-
[
|
|
471
|
-
Schema.Record(
|
|
472
|
-
Schema.String,
|
|
473
|
-
Schema.Json.annotate({ expected: "JSON value" }),
|
|
474
|
-
),
|
|
475
|
-
],
|
|
476
|
-
);
|
|
477
|
-
|
|
478
|
-
export type StateMachineTypeNotSupported =
|
|
479
|
-
typeof StateMachineTypeNotSupported.Type;
|
|
480
|
-
|
|
481
|
-
export const TooManyTags = Schema.StructWithRest(
|
|
482
|
-
Schema.Struct({
|
|
483
|
-
message: Schema.optionalKey(Schema.String),
|
|
484
|
-
resourceName: Schema.optionalKey(
|
|
485
|
-
Schema.String.check(
|
|
486
|
-
Schema.isMinLength(1).annotate({
|
|
487
|
-
expected: "a value with a length of at least 1",
|
|
488
|
-
}),
|
|
489
|
-
).check(
|
|
490
|
-
Schema.isMaxCodePoints(256).annotate({
|
|
491
|
-
expected: "a string with at most 256 code points",
|
|
492
|
-
}),
|
|
493
|
-
),
|
|
494
|
-
),
|
|
495
|
-
}),
|
|
496
|
-
[
|
|
497
|
-
Schema.Record(
|
|
498
|
-
Schema.String,
|
|
499
|
-
Schema.Json.annotate({ expected: "JSON value" }),
|
|
500
|
-
),
|
|
501
|
-
],
|
|
502
|
-
);
|
|
503
|
-
|
|
504
|
-
export type TooManyTags = typeof TooManyTags.Type;
|
|
505
|
-
|
|
506
|
-
export const ValidationException = Schema.StructWithRest(
|
|
507
|
-
Schema.Struct({
|
|
508
|
-
message: Schema.optionalKey(Schema.String),
|
|
509
|
-
reason: Schema.optionalKey(ValidationExceptionReason),
|
|
510
|
-
}),
|
|
511
|
-
[
|
|
512
|
-
Schema.Record(
|
|
513
|
-
Schema.String,
|
|
514
|
-
Schema.Json.annotate({ expected: "JSON value" }),
|
|
515
|
-
),
|
|
516
|
-
],
|
|
517
|
-
);
|
|
518
|
-
|
|
519
|
-
export type ValidationException = typeof ValidationException.Type;
|
|
520
|
-
|
|
521
|
-
export const ConflictException = Schema.StructWithRest(
|
|
522
|
-
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
523
|
-
[
|
|
524
|
-
Schema.Record(
|
|
525
|
-
Schema.String,
|
|
526
|
-
Schema.Json.annotate({ expected: "JSON value" }),
|
|
527
|
-
),
|
|
528
|
-
],
|
|
529
|
-
);
|
|
530
|
-
|
|
531
|
-
export type ConflictException = typeof ConflictException.Type;
|
|
532
|
-
|
|
533
|
-
export const DeleteStateMachineInput = Schema.StructWithRest(
|
|
534
|
-
Schema.Struct({
|
|
535
|
-
stateMachineArn: Schema.String.check(
|
|
536
|
-
Schema.isMinLength(1).annotate({
|
|
537
|
-
expected: "a value with a length of at least 1",
|
|
538
|
-
}),
|
|
539
|
-
).check(
|
|
540
|
-
Schema.isMaxCodePoints(256).annotate({
|
|
541
|
-
expected: "a string with at most 256 code points",
|
|
542
|
-
}),
|
|
543
|
-
),
|
|
544
|
-
}),
|
|
545
|
-
[
|
|
546
|
-
Schema.Record(
|
|
547
|
-
Schema.String,
|
|
548
|
-
Schema.Json.annotate({ expected: "JSON value" }),
|
|
549
|
-
),
|
|
550
|
-
],
|
|
551
|
-
);
|
|
552
|
-
|
|
553
|
-
export type DeleteStateMachineInput = typeof DeleteStateMachineInput.Type;
|
|
554
|
-
|
|
555
|
-
export const DescribeStateMachineInput = Schema.StructWithRest(
|
|
556
|
-
Schema.Struct({
|
|
557
|
-
stateMachineArn: Schema.String.check(
|
|
558
|
-
Schema.isMinLength(1).annotate({
|
|
559
|
-
expected: "a value with a length of at least 1",
|
|
560
|
-
}),
|
|
561
|
-
).check(
|
|
562
|
-
Schema.isMaxCodePoints(256).annotate({
|
|
563
|
-
expected: "a string with at most 256 code points",
|
|
564
|
-
}),
|
|
565
|
-
),
|
|
566
|
-
includedData: Schema.optionalKey(IncludedData),
|
|
567
|
-
}),
|
|
568
|
-
[
|
|
569
|
-
Schema.Record(
|
|
570
|
-
Schema.String,
|
|
571
|
-
Schema.Json.annotate({ expected: "JSON value" }),
|
|
572
|
-
),
|
|
573
|
-
],
|
|
574
|
-
);
|
|
575
|
-
|
|
576
|
-
export type DescribeStateMachineInput = typeof DescribeStateMachineInput.Type;
|
|
577
|
-
|
|
578
|
-
export const DescribeStateMachineOutput = Schema.StructWithRest(
|
|
579
|
-
Schema.Struct({
|
|
580
|
-
stateMachineArn: Schema.String.check(
|
|
581
|
-
Schema.isMinLength(1).annotate({
|
|
582
|
-
expected: "a value with a length of at least 1",
|
|
583
|
-
}),
|
|
584
|
-
).check(
|
|
585
|
-
Schema.isMaxCodePoints(256).annotate({
|
|
586
|
-
expected: "a string with at most 256 code points",
|
|
587
|
-
}),
|
|
588
|
-
),
|
|
589
|
-
name: Schema.String.check(
|
|
590
|
-
Schema.isMinLength(1).annotate({
|
|
591
|
-
expected: "a value with a length of at least 1",
|
|
592
|
-
}),
|
|
593
|
-
).check(
|
|
594
|
-
Schema.isMaxCodePoints(80).annotate({
|
|
595
|
-
expected: "a string with at most 80 code points",
|
|
596
|
-
}),
|
|
597
|
-
),
|
|
598
|
-
status: Schema.optionalKey(StateMachineStatus),
|
|
599
|
-
definition: Schema.String.annotate({ format: "password" })
|
|
600
|
-
.check(
|
|
601
|
-
Schema.isMinLength(1).annotate({
|
|
602
|
-
expected: "a value with a length of at least 1",
|
|
603
|
-
}),
|
|
604
|
-
)
|
|
605
|
-
.check(
|
|
606
|
-
Schema.isMaxCodePoints(1048576).annotate({
|
|
607
|
-
expected: "a string with at most 1048576 code points",
|
|
608
|
-
}),
|
|
609
|
-
),
|
|
610
|
-
roleArn: Schema.String.check(
|
|
611
|
-
Schema.isMinLength(1).annotate({
|
|
612
|
-
expected: "a value with a length of at least 1",
|
|
613
|
-
}),
|
|
614
|
-
).check(
|
|
615
|
-
Schema.isMaxCodePoints(256).annotate({
|
|
616
|
-
expected: "a string with at most 256 code points",
|
|
617
|
-
}),
|
|
618
|
-
),
|
|
619
|
-
type: StateMachineType,
|
|
620
|
-
creationDate: Schema.Number.annotate({ format: "double" }).check(
|
|
621
|
-
Schema.isFinite().annotate({ expected: "a finite number" }),
|
|
622
|
-
),
|
|
623
|
-
loggingConfiguration: Schema.optionalKey(LoggingConfiguration),
|
|
624
|
-
tracingConfiguration: Schema.optionalKey(TracingConfiguration),
|
|
625
|
-
label: Schema.optionalKey(Schema.String),
|
|
626
|
-
revisionId: Schema.optionalKey(Schema.String),
|
|
627
|
-
description: Schema.optionalKey(
|
|
628
|
-
Schema.String.annotate({ format: "password" })
|
|
629
|
-
.check(
|
|
630
|
-
Schema.isMinCodePoints(0).annotate({
|
|
631
|
-
expected: "a string with at least 0 code points",
|
|
632
|
-
}),
|
|
633
|
-
)
|
|
634
|
-
.check(
|
|
635
|
-
Schema.isMaxCodePoints(256).annotate({
|
|
636
|
-
expected: "a string with at most 256 code points",
|
|
637
|
-
}),
|
|
638
|
-
),
|
|
639
|
-
),
|
|
640
|
-
encryptionConfiguration: Schema.optionalKey(EncryptionConfiguration),
|
|
641
|
-
variableReferences: Schema.optionalKey(VariableReferences),
|
|
642
|
-
}),
|
|
643
|
-
[
|
|
644
|
-
Schema.Record(
|
|
645
|
-
Schema.String,
|
|
646
|
-
Schema.Json.annotate({ expected: "JSON value" }),
|
|
647
|
-
),
|
|
648
|
-
],
|
|
649
|
-
);
|
|
650
|
-
|
|
651
|
-
export type DescribeStateMachineOutput = typeof DescribeStateMachineOutput.Type;
|
|
652
|
-
|
|
653
|
-
export const KmsInvalidStateException = Schema.StructWithRest(
|
|
654
|
-
Schema.Struct({
|
|
655
|
-
kmsKeyState: Schema.optionalKey(KmsKeyState),
|
|
656
|
-
message: Schema.optionalKey(Schema.String),
|
|
657
|
-
}),
|
|
658
|
-
[
|
|
659
|
-
Schema.Record(
|
|
660
|
-
Schema.String,
|
|
661
|
-
Schema.Json.annotate({ expected: "JSON value" }),
|
|
662
|
-
),
|
|
663
|
-
],
|
|
664
|
-
);
|
|
665
|
-
|
|
666
|
-
export type KmsInvalidStateException = typeof KmsInvalidStateException.Type;
|
|
667
|
-
|
|
668
|
-
export const StateMachineDoesNotExist = Schema.StructWithRest(
|
|
669
|
-
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
670
|
-
[
|
|
671
|
-
Schema.Record(
|
|
672
|
-
Schema.String,
|
|
673
|
-
Schema.Json.annotate({ expected: "JSON value" }),
|
|
674
|
-
),
|
|
675
|
-
],
|
|
676
|
-
);
|
|
677
|
-
|
|
678
|
-
export type StateMachineDoesNotExist = typeof StateMachineDoesNotExist.Type;
|
|
679
|
-
|
|
680
|
-
export const UpdateStateMachineInput = Schema.StructWithRest(
|
|
681
|
-
Schema.Struct({
|
|
682
|
-
stateMachineArn: Schema.String.check(
|
|
683
|
-
Schema.isMinLength(1).annotate({
|
|
684
|
-
expected: "a value with a length of at least 1",
|
|
685
|
-
}),
|
|
686
|
-
).check(
|
|
687
|
-
Schema.isMaxCodePoints(256).annotate({
|
|
688
|
-
expected: "a string with at most 256 code points",
|
|
689
|
-
}),
|
|
690
|
-
),
|
|
691
|
-
definition: Schema.optionalKey(
|
|
692
|
-
Schema.String.annotate({ format: "password" })
|
|
693
|
-
.check(
|
|
694
|
-
Schema.isMinLength(1).annotate({
|
|
695
|
-
expected: "a value with a length of at least 1",
|
|
696
|
-
}),
|
|
697
|
-
)
|
|
698
|
-
.check(
|
|
699
|
-
Schema.isMaxCodePoints(1048576).annotate({
|
|
700
|
-
expected: "a string with at most 1048576 code points",
|
|
701
|
-
}),
|
|
702
|
-
),
|
|
703
|
-
),
|
|
704
|
-
roleArn: Schema.optionalKey(
|
|
705
|
-
Schema.String.check(
|
|
706
|
-
Schema.isMinLength(1).annotate({
|
|
707
|
-
expected: "a value with a length of at least 1",
|
|
708
|
-
}),
|
|
709
|
-
).check(
|
|
710
|
-
Schema.isMaxCodePoints(256).annotate({
|
|
711
|
-
expected: "a string with at most 256 code points",
|
|
712
|
-
}),
|
|
713
|
-
),
|
|
714
|
-
),
|
|
715
|
-
loggingConfiguration: Schema.optionalKey(LoggingConfiguration),
|
|
716
|
-
tracingConfiguration: Schema.optionalKey(TracingConfiguration),
|
|
717
|
-
publish: Schema.optionalKey(Schema.Boolean.annotate({ default: false })),
|
|
718
|
-
versionDescription: Schema.optionalKey(
|
|
719
|
-
Schema.String.annotate({ format: "password" })
|
|
720
|
-
.check(
|
|
721
|
-
Schema.isMinCodePoints(0).annotate({
|
|
722
|
-
expected: "a string with at least 0 code points",
|
|
723
|
-
}),
|
|
724
|
-
)
|
|
725
|
-
.check(
|
|
726
|
-
Schema.isMaxCodePoints(256).annotate({
|
|
727
|
-
expected: "a string with at most 256 code points",
|
|
728
|
-
}),
|
|
729
|
-
),
|
|
730
|
-
),
|
|
731
|
-
encryptionConfiguration: Schema.optionalKey(EncryptionConfiguration),
|
|
732
|
-
}),
|
|
733
|
-
[
|
|
734
|
-
Schema.Record(
|
|
735
|
-
Schema.String,
|
|
736
|
-
Schema.Json.annotate({ expected: "JSON value" }),
|
|
737
|
-
),
|
|
738
|
-
],
|
|
739
|
-
);
|
|
740
|
-
|
|
741
|
-
export type UpdateStateMachineInput = typeof UpdateStateMachineInput.Type;
|
|
742
|
-
|
|
743
|
-
export const UpdateStateMachineOutput = Schema.StructWithRest(
|
|
744
|
-
Schema.Struct({
|
|
745
|
-
updateDate: Schema.Number.annotate({ format: "double" }).check(
|
|
746
|
-
Schema.isFinite().annotate({ expected: "a finite number" }),
|
|
747
|
-
),
|
|
748
|
-
revisionId: Schema.optionalKey(Schema.String),
|
|
749
|
-
stateMachineVersionArn: Schema.optionalKey(
|
|
750
|
-
Schema.String.check(
|
|
751
|
-
Schema.isMinLength(1).annotate({
|
|
752
|
-
expected: "a value with a length of at least 1",
|
|
753
|
-
}),
|
|
754
|
-
).check(
|
|
755
|
-
Schema.isMaxCodePoints(256).annotate({
|
|
756
|
-
expected: "a string with at most 256 code points",
|
|
757
|
-
}),
|
|
758
|
-
),
|
|
759
|
-
),
|
|
760
|
-
}),
|
|
761
|
-
[
|
|
762
|
-
Schema.Record(
|
|
763
|
-
Schema.String,
|
|
764
|
-
Schema.Json.annotate({ expected: "JSON value" }),
|
|
765
|
-
),
|
|
766
|
-
],
|
|
767
|
-
);
|
|
768
|
-
|
|
769
|
-
export type UpdateStateMachineOutput = typeof UpdateStateMachineOutput.Type;
|
|
770
|
-
|
|
771
|
-
export const MissingRequiredParameter = Schema.StructWithRest(
|
|
772
|
-
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
773
|
-
[
|
|
774
|
-
Schema.Record(
|
|
775
|
-
Schema.String,
|
|
776
|
-
Schema.Json.annotate({ expected: "JSON value" }),
|
|
777
|
-
),
|
|
778
|
-
],
|
|
779
|
-
);
|
|
780
|
-
|
|
781
|
-
export type MissingRequiredParameter = typeof MissingRequiredParameter.Type;
|
|
782
|
-
|
|
783
|
-
export const ServiceQuotaExceededException = Schema.StructWithRest(
|
|
784
|
-
Schema.Struct({ message: Schema.optionalKey(Schema.String) }),
|
|
785
|
-
[
|
|
786
|
-
Schema.Record(
|
|
787
|
-
Schema.String,
|
|
788
|
-
Schema.Json.annotate({ expected: "JSON value" }),
|
|
789
|
-
),
|
|
790
|
-
],
|
|
791
|
-
);
|
|
792
|
-
|
|
793
|
-
export type ServiceQuotaExceededException =
|
|
794
|
-
typeof ServiceQuotaExceededException.Type;
|
|
795
|
-
|
|
796
|
-
export const stepFunctionsErrors = {
|
|
797
|
-
InvalidArn: {
|
|
798
|
-
name: "InvalidArn",
|
|
799
|
-
fault: "client",
|
|
800
|
-
httpStatus: 400,
|
|
801
|
-
retryable: null,
|
|
802
|
-
schema: InvalidArn,
|
|
803
|
-
},
|
|
804
|
-
InvalidDefinition: {
|
|
805
|
-
name: "InvalidDefinition",
|
|
806
|
-
fault: "client",
|
|
807
|
-
httpStatus: 400,
|
|
808
|
-
retryable: null,
|
|
809
|
-
schema: InvalidDefinition,
|
|
810
|
-
},
|
|
811
|
-
InvalidEncryptionConfiguration: {
|
|
812
|
-
name: "InvalidEncryptionConfiguration",
|
|
813
|
-
fault: "client",
|
|
814
|
-
httpStatus: 400,
|
|
815
|
-
retryable: null,
|
|
816
|
-
schema: InvalidEncryptionConfiguration,
|
|
817
|
-
},
|
|
818
|
-
InvalidLoggingConfiguration: {
|
|
819
|
-
name: "InvalidLoggingConfiguration",
|
|
820
|
-
fault: "client",
|
|
821
|
-
httpStatus: 400,
|
|
822
|
-
retryable: null,
|
|
823
|
-
schema: InvalidLoggingConfiguration,
|
|
824
|
-
},
|
|
825
|
-
InvalidName: {
|
|
826
|
-
name: "InvalidName",
|
|
827
|
-
fault: "client",
|
|
828
|
-
httpStatus: 400,
|
|
829
|
-
retryable: null,
|
|
830
|
-
schema: InvalidName,
|
|
831
|
-
},
|
|
832
|
-
InvalidTracingConfiguration: {
|
|
833
|
-
name: "InvalidTracingConfiguration",
|
|
834
|
-
fault: "client",
|
|
835
|
-
httpStatus: 400,
|
|
836
|
-
retryable: null,
|
|
837
|
-
schema: InvalidTracingConfiguration,
|
|
838
|
-
},
|
|
839
|
-
KmsAccessDeniedException: {
|
|
840
|
-
name: "KmsAccessDeniedException",
|
|
841
|
-
fault: "client",
|
|
842
|
-
httpStatus: 400,
|
|
843
|
-
retryable: null,
|
|
844
|
-
schema: KmsAccessDeniedException,
|
|
845
|
-
},
|
|
846
|
-
KmsThrottlingException: {
|
|
847
|
-
name: "KmsThrottlingException",
|
|
848
|
-
fault: "client",
|
|
849
|
-
httpStatus: 400,
|
|
850
|
-
retryable: null,
|
|
851
|
-
schema: KmsThrottlingException,
|
|
852
|
-
},
|
|
853
|
-
StateMachineAlreadyExists: {
|
|
854
|
-
name: "StateMachineAlreadyExists",
|
|
855
|
-
fault: "client",
|
|
856
|
-
httpStatus: 400,
|
|
857
|
-
retryable: null,
|
|
858
|
-
schema: StateMachineAlreadyExists,
|
|
859
|
-
},
|
|
860
|
-
StateMachineDeleting: {
|
|
861
|
-
name: "StateMachineDeleting",
|
|
862
|
-
fault: "client",
|
|
863
|
-
httpStatus: 400,
|
|
864
|
-
retryable: null,
|
|
865
|
-
schema: StateMachineDeleting,
|
|
866
|
-
},
|
|
867
|
-
StateMachineLimitExceeded: {
|
|
868
|
-
name: "StateMachineLimitExceeded",
|
|
869
|
-
fault: "client",
|
|
870
|
-
httpStatus: 400,
|
|
871
|
-
retryable: null,
|
|
872
|
-
schema: StateMachineLimitExceeded,
|
|
873
|
-
},
|
|
874
|
-
StateMachineTypeNotSupported: {
|
|
875
|
-
name: "StateMachineTypeNotSupported",
|
|
876
|
-
fault: "client",
|
|
877
|
-
httpStatus: 400,
|
|
878
|
-
retryable: null,
|
|
879
|
-
schema: StateMachineTypeNotSupported,
|
|
880
|
-
},
|
|
881
|
-
TooManyTags: {
|
|
882
|
-
name: "TooManyTags",
|
|
883
|
-
fault: "client",
|
|
884
|
-
httpStatus: 400,
|
|
885
|
-
retryable: null,
|
|
886
|
-
schema: TooManyTags,
|
|
887
|
-
},
|
|
888
|
-
ValidationException: {
|
|
889
|
-
name: "ValidationException",
|
|
890
|
-
fault: "client",
|
|
891
|
-
httpStatus: 400,
|
|
892
|
-
retryable: null,
|
|
893
|
-
schema: ValidationException,
|
|
894
|
-
},
|
|
895
|
-
ConflictException: {
|
|
896
|
-
name: "ConflictException",
|
|
897
|
-
fault: "client",
|
|
898
|
-
httpStatus: 409,
|
|
899
|
-
retryable: null,
|
|
900
|
-
schema: ConflictException,
|
|
901
|
-
},
|
|
902
|
-
KmsInvalidStateException: {
|
|
903
|
-
name: "KmsInvalidStateException",
|
|
904
|
-
fault: "client",
|
|
905
|
-
httpStatus: 400,
|
|
906
|
-
retryable: null,
|
|
907
|
-
schema: KmsInvalidStateException,
|
|
908
|
-
},
|
|
909
|
-
StateMachineDoesNotExist: {
|
|
910
|
-
name: "StateMachineDoesNotExist",
|
|
911
|
-
fault: "client",
|
|
912
|
-
httpStatus: 400,
|
|
913
|
-
retryable: null,
|
|
914
|
-
schema: StateMachineDoesNotExist,
|
|
915
|
-
},
|
|
916
|
-
MissingRequiredParameter: {
|
|
917
|
-
name: "MissingRequiredParameter",
|
|
918
|
-
fault: "client",
|
|
919
|
-
httpStatus: 400,
|
|
920
|
-
retryable: null,
|
|
921
|
-
schema: MissingRequiredParameter,
|
|
922
|
-
},
|
|
923
|
-
ServiceQuotaExceededException: {
|
|
924
|
-
name: "ServiceQuotaExceededException",
|
|
925
|
-
fault: "client",
|
|
926
|
-
httpStatus: 402,
|
|
927
|
-
retryable: null,
|
|
928
|
-
schema: ServiceQuotaExceededException,
|
|
929
|
-
},
|
|
930
|
-
};
|
|
931
|
-
|
|
932
|
-
export const createStateMachineErrors = [
|
|
933
|
-
stepFunctionsErrors.InvalidArn,
|
|
934
|
-
stepFunctionsErrors.InvalidDefinition,
|
|
935
|
-
stepFunctionsErrors.InvalidEncryptionConfiguration,
|
|
936
|
-
stepFunctionsErrors.InvalidLoggingConfiguration,
|
|
937
|
-
stepFunctionsErrors.InvalidName,
|
|
938
|
-
stepFunctionsErrors.InvalidTracingConfiguration,
|
|
939
|
-
stepFunctionsErrors.KmsAccessDeniedException,
|
|
940
|
-
stepFunctionsErrors.KmsThrottlingException,
|
|
941
|
-
stepFunctionsErrors.StateMachineAlreadyExists,
|
|
942
|
-
stepFunctionsErrors.StateMachineDeleting,
|
|
943
|
-
stepFunctionsErrors.StateMachineLimitExceeded,
|
|
944
|
-
stepFunctionsErrors.StateMachineTypeNotSupported,
|
|
945
|
-
stepFunctionsErrors.TooManyTags,
|
|
946
|
-
stepFunctionsErrors.ValidationException,
|
|
947
|
-
stepFunctionsErrors.ConflictException,
|
|
948
|
-
];
|
|
949
|
-
|
|
950
|
-
export const deleteStateMachineErrors = [
|
|
951
|
-
stepFunctionsErrors.InvalidArn,
|
|
952
|
-
stepFunctionsErrors.ValidationException,
|
|
953
|
-
];
|
|
954
|
-
|
|
955
|
-
export const describeStateMachineErrors = [
|
|
956
|
-
stepFunctionsErrors.InvalidArn,
|
|
957
|
-
stepFunctionsErrors.KmsAccessDeniedException,
|
|
958
|
-
stepFunctionsErrors.KmsInvalidStateException,
|
|
959
|
-
stepFunctionsErrors.KmsThrottlingException,
|
|
960
|
-
stepFunctionsErrors.StateMachineDoesNotExist,
|
|
961
|
-
];
|
|
962
|
-
|
|
963
|
-
export const updateStateMachineErrors = [
|
|
964
|
-
stepFunctionsErrors.InvalidArn,
|
|
965
|
-
stepFunctionsErrors.InvalidDefinition,
|
|
966
|
-
stepFunctionsErrors.InvalidEncryptionConfiguration,
|
|
967
|
-
stepFunctionsErrors.InvalidLoggingConfiguration,
|
|
968
|
-
stepFunctionsErrors.InvalidTracingConfiguration,
|
|
969
|
-
stepFunctionsErrors.KmsAccessDeniedException,
|
|
970
|
-
stepFunctionsErrors.KmsThrottlingException,
|
|
971
|
-
stepFunctionsErrors.MissingRequiredParameter,
|
|
972
|
-
stepFunctionsErrors.StateMachineDeleting,
|
|
973
|
-
stepFunctionsErrors.StateMachineDoesNotExist,
|
|
974
|
-
stepFunctionsErrors.ValidationException,
|
|
975
|
-
stepFunctionsErrors.ServiceQuotaExceededException,
|
|
976
|
-
stepFunctionsErrors.ConflictException,
|
|
977
|
-
];
|
|
978
|
-
|
|
979
|
-
export const createStateMachineOperation: AwsJsonRpcOperation & {
|
|
980
|
-
readonly input: typeof CreateStateMachineInput;
|
|
981
|
-
readonly output: typeof CreateStateMachineOutput;
|
|
982
|
-
} = {
|
|
983
|
-
name: "CreateStateMachine",
|
|
984
|
-
method: "POST",
|
|
985
|
-
path: "/",
|
|
986
|
-
headers: {
|
|
987
|
-
"x-amz-target": "AWSStepFunctions.CreateStateMachine",
|
|
988
|
-
"content-type": "application/x-amz-json-1.0",
|
|
989
|
-
},
|
|
990
|
-
idempotencyTokens: [],
|
|
991
|
-
pagination: {},
|
|
992
|
-
waiters: {},
|
|
993
|
-
input: CreateStateMachineInput,
|
|
994
|
-
output: CreateStateMachineOutput,
|
|
995
|
-
errors: createStateMachineErrors,
|
|
996
|
-
};
|
|
997
|
-
|
|
998
|
-
export const createStateMachineEndpoint = HttpApiEndpoint.make("POST")(
|
|
999
|
-
"CreateStateMachine",
|
|
1000
|
-
"/",
|
|
1001
|
-
{
|
|
1002
|
-
payload: CreateStateMachineInput,
|
|
1003
|
-
success: CreateStateMachineOutput,
|
|
1004
|
-
},
|
|
1005
|
-
);
|
|
1006
|
-
|
|
1007
|
-
export const DeleteStateMachineOutput = awsJsonRpcEmptyOutput(
|
|
1008
|
-
"application/x-amz-json-1.0",
|
|
1009
|
-
);
|
|
1010
|
-
|
|
1011
|
-
export const deleteStateMachineOperation: AwsJsonRpcOperation & {
|
|
1012
|
-
readonly input: typeof DeleteStateMachineInput;
|
|
1013
|
-
readonly output: typeof DeleteStateMachineOutput;
|
|
1014
|
-
} = {
|
|
1015
|
-
name: "DeleteStateMachine",
|
|
1016
|
-
method: "POST",
|
|
1017
|
-
path: "/",
|
|
1018
|
-
headers: {
|
|
1019
|
-
"x-amz-target": "AWSStepFunctions.DeleteStateMachine",
|
|
1020
|
-
"content-type": "application/x-amz-json-1.0",
|
|
1021
|
-
},
|
|
1022
|
-
idempotencyTokens: [],
|
|
1023
|
-
pagination: {},
|
|
1024
|
-
waiters: {},
|
|
1025
|
-
input: DeleteStateMachineInput,
|
|
1026
|
-
output: DeleteStateMachineOutput,
|
|
1027
|
-
errors: deleteStateMachineErrors,
|
|
1028
|
-
};
|
|
1029
|
-
|
|
1030
|
-
export const deleteStateMachineEndpoint = HttpApiEndpoint.make("POST")(
|
|
1031
|
-
"DeleteStateMachine",
|
|
1032
|
-
"/",
|
|
1033
|
-
{
|
|
1034
|
-
payload: DeleteStateMachineInput,
|
|
1035
|
-
success: DeleteStateMachineOutput,
|
|
1036
|
-
},
|
|
1037
|
-
);
|
|
1038
|
-
|
|
1039
|
-
export const describeStateMachineOperation: AwsJsonRpcOperation & {
|
|
1040
|
-
readonly input: typeof DescribeStateMachineInput;
|
|
1041
|
-
readonly output: typeof DescribeStateMachineOutput;
|
|
1042
|
-
} = {
|
|
1043
|
-
name: "DescribeStateMachine",
|
|
1044
|
-
method: "POST",
|
|
1045
|
-
path: "/",
|
|
1046
|
-
headers: {
|
|
1047
|
-
"x-amz-target": "AWSStepFunctions.DescribeStateMachine",
|
|
1048
|
-
"content-type": "application/x-amz-json-1.0",
|
|
1049
|
-
},
|
|
1050
|
-
idempotencyTokens: [],
|
|
1051
|
-
pagination: {},
|
|
1052
|
-
waiters: {},
|
|
1053
|
-
input: DescribeStateMachineInput,
|
|
1054
|
-
output: DescribeStateMachineOutput,
|
|
1055
|
-
errors: describeStateMachineErrors,
|
|
1056
|
-
};
|
|
1057
|
-
|
|
1058
|
-
export const describeStateMachineEndpoint = HttpApiEndpoint.make("POST")(
|
|
1059
|
-
"DescribeStateMachine",
|
|
1060
|
-
"/",
|
|
1061
|
-
{
|
|
1062
|
-
payload: DescribeStateMachineInput,
|
|
1063
|
-
success: DescribeStateMachineOutput,
|
|
1064
|
-
},
|
|
1065
|
-
);
|
|
1066
|
-
|
|
1067
|
-
export const updateStateMachineOperation: AwsJsonRpcOperation & {
|
|
1068
|
-
readonly input: typeof UpdateStateMachineInput;
|
|
1069
|
-
readonly output: typeof UpdateStateMachineOutput;
|
|
1070
|
-
} = {
|
|
1071
|
-
name: "UpdateStateMachine",
|
|
1072
|
-
method: "POST",
|
|
1073
|
-
path: "/",
|
|
1074
|
-
headers: {
|
|
1075
|
-
"x-amz-target": "AWSStepFunctions.UpdateStateMachine",
|
|
1076
|
-
"content-type": "application/x-amz-json-1.0",
|
|
1077
|
-
},
|
|
1078
|
-
idempotencyTokens: [],
|
|
1079
|
-
pagination: {},
|
|
1080
|
-
waiters: {},
|
|
1081
|
-
input: UpdateStateMachineInput,
|
|
1082
|
-
output: UpdateStateMachineOutput,
|
|
1083
|
-
errors: updateStateMachineErrors,
|
|
1084
|
-
};
|
|
1085
|
-
|
|
1086
|
-
export const updateStateMachineEndpoint = HttpApiEndpoint.make("POST")(
|
|
1087
|
-
"UpdateStateMachine",
|
|
1088
|
-
"/",
|
|
1089
|
-
{
|
|
1090
|
-
payload: UpdateStateMachineInput,
|
|
1091
|
-
success: UpdateStateMachineOutput,
|
|
1092
|
-
},
|
|
1093
|
-
);
|
|
1094
|
-
|
|
1095
|
-
export const stepFunctionsOperations = {
|
|
1096
|
-
CreateStateMachine: createStateMachineOperation,
|
|
1097
|
-
DeleteStateMachine: deleteStateMachineOperation,
|
|
1098
|
-
DescribeStateMachine: describeStateMachineOperation,
|
|
1099
|
-
UpdateStateMachine: updateStateMachineOperation,
|
|
1100
|
-
};
|
|
1101
|
-
|
|
1102
|
-
export const stepFunctionsApi = HttpApi.make("StepFunctions").add(
|
|
1103
|
-
HttpApiGroup.make("stepfunctions").add(
|
|
1104
|
-
createStateMachineEndpoint,
|
|
1105
|
-
deleteStateMachineEndpoint,
|
|
1106
|
-
describeStateMachineEndpoint,
|
|
1107
|
-
updateStateMachineEndpoint,
|
|
1108
|
-
),
|
|
1109
|
-
);
|
|
1110
|
-
|
|
1111
|
-
export const stepFunctionsService: AwsServiceDefinition = {
|
|
1112
|
-
service: "com.amazonaws.sfn#AWSStepFunctions",
|
|
1113
|
-
version: "2016-11-23",
|
|
1114
|
-
protocol: "awsJson1_0",
|
|
1115
|
-
signingName: "states",
|
|
1116
|
-
endpointRules: {
|
|
1117
|
-
version: "1.0",
|
|
1118
|
-
parameters: {
|
|
1119
|
-
UseDualStack: {
|
|
1120
|
-
builtIn: "AWS::UseDualStack",
|
|
1121
|
-
required: true,
|
|
1122
|
-
default: false,
|
|
1123
|
-
documentation:
|
|
1124
|
-
"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",
|
|
1125
|
-
type: "boolean",
|
|
1126
|
-
},
|
|
1127
|
-
UseFIPS: {
|
|
1128
|
-
builtIn: "AWS::UseFIPS",
|
|
1129
|
-
required: true,
|
|
1130
|
-
default: false,
|
|
1131
|
-
documentation:
|
|
1132
|
-
"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.",
|
|
1133
|
-
type: "boolean",
|
|
1134
|
-
},
|
|
1135
|
-
Endpoint: {
|
|
1136
|
-
builtIn: "SDK::Endpoint",
|
|
1137
|
-
required: false,
|
|
1138
|
-
documentation: "Override the endpoint used to send this request",
|
|
1139
|
-
type: "string",
|
|
1140
|
-
},
|
|
1141
|
-
Region: {
|
|
1142
|
-
builtIn: "AWS::Region",
|
|
1143
|
-
required: false,
|
|
1144
|
-
documentation: "The AWS region used to dispatch the request.",
|
|
1145
|
-
type: "string",
|
|
1146
|
-
},
|
|
1147
|
-
},
|
|
1148
|
-
rules: [
|
|
1149
|
-
{
|
|
1150
|
-
conditions: [
|
|
1151
|
-
{
|
|
1152
|
-
fn: "isSet",
|
|
1153
|
-
argv: [
|
|
1154
|
-
{
|
|
1155
|
-
ref: "Endpoint",
|
|
1156
|
-
},
|
|
1157
|
-
],
|
|
1158
|
-
},
|
|
1159
|
-
],
|
|
1160
|
-
rules: [
|
|
1161
|
-
{
|
|
1162
|
-
conditions: [
|
|
1163
|
-
{
|
|
1164
|
-
fn: "booleanEquals",
|
|
1165
|
-
argv: [
|
|
1166
|
-
{
|
|
1167
|
-
ref: "UseFIPS",
|
|
1168
|
-
},
|
|
1169
|
-
true,
|
|
1170
|
-
],
|
|
1171
|
-
},
|
|
1172
|
-
],
|
|
1173
|
-
error:
|
|
1174
|
-
"Invalid Configuration: FIPS and custom endpoint are not supported",
|
|
1175
|
-
type: "error",
|
|
1176
|
-
},
|
|
1177
|
-
{
|
|
1178
|
-
conditions: [],
|
|
1179
|
-
rules: [
|
|
1180
|
-
{
|
|
1181
|
-
conditions: [
|
|
1182
|
-
{
|
|
1183
|
-
fn: "booleanEquals",
|
|
1184
|
-
argv: [
|
|
1185
|
-
{
|
|
1186
|
-
ref: "UseDualStack",
|
|
1187
|
-
},
|
|
1188
|
-
true,
|
|
1189
|
-
],
|
|
1190
|
-
},
|
|
1191
|
-
],
|
|
1192
|
-
error:
|
|
1193
|
-
"Invalid Configuration: Dualstack and custom endpoint are not supported",
|
|
1194
|
-
type: "error",
|
|
1195
|
-
},
|
|
1196
|
-
{
|
|
1197
|
-
conditions: [],
|
|
1198
|
-
endpoint: {
|
|
1199
|
-
url: {
|
|
1200
|
-
ref: "Endpoint",
|
|
1201
|
-
},
|
|
1202
|
-
properties: {},
|
|
1203
|
-
headers: {},
|
|
1204
|
-
},
|
|
1205
|
-
type: "endpoint",
|
|
1206
|
-
},
|
|
1207
|
-
],
|
|
1208
|
-
type: "tree",
|
|
1209
|
-
},
|
|
1210
|
-
],
|
|
1211
|
-
type: "tree",
|
|
1212
|
-
},
|
|
1213
|
-
{
|
|
1214
|
-
conditions: [],
|
|
1215
|
-
rules: [
|
|
1216
|
-
{
|
|
1217
|
-
conditions: [
|
|
1218
|
-
{
|
|
1219
|
-
fn: "isSet",
|
|
1220
|
-
argv: [
|
|
1221
|
-
{
|
|
1222
|
-
ref: "Region",
|
|
1223
|
-
},
|
|
1224
|
-
],
|
|
1225
|
-
},
|
|
1226
|
-
],
|
|
1227
|
-
rules: [
|
|
1228
|
-
{
|
|
1229
|
-
conditions: [
|
|
1230
|
-
{
|
|
1231
|
-
fn: "aws.partition",
|
|
1232
|
-
argv: [
|
|
1233
|
-
{
|
|
1234
|
-
ref: "Region",
|
|
1235
|
-
},
|
|
1236
|
-
],
|
|
1237
|
-
assign: "PartitionResult",
|
|
1238
|
-
},
|
|
1239
|
-
],
|
|
1240
|
-
rules: [
|
|
1241
|
-
{
|
|
1242
|
-
conditions: [
|
|
1243
|
-
{
|
|
1244
|
-
fn: "stringEquals",
|
|
1245
|
-
argv: [
|
|
1246
|
-
{
|
|
1247
|
-
ref: "Region",
|
|
1248
|
-
},
|
|
1249
|
-
"us-gov-west-1",
|
|
1250
|
-
],
|
|
1251
|
-
},
|
|
1252
|
-
{
|
|
1253
|
-
fn: "booleanEquals",
|
|
1254
|
-
argv: [
|
|
1255
|
-
{
|
|
1256
|
-
ref: "UseFIPS",
|
|
1257
|
-
},
|
|
1258
|
-
true,
|
|
1259
|
-
],
|
|
1260
|
-
},
|
|
1261
|
-
{
|
|
1262
|
-
fn: "booleanEquals",
|
|
1263
|
-
argv: [
|
|
1264
|
-
{
|
|
1265
|
-
ref: "UseDualStack",
|
|
1266
|
-
},
|
|
1267
|
-
false,
|
|
1268
|
-
],
|
|
1269
|
-
},
|
|
1270
|
-
],
|
|
1271
|
-
endpoint: {
|
|
1272
|
-
url: "https://states.{Region}.{PartitionResult#dnsSuffix}",
|
|
1273
|
-
properties: {},
|
|
1274
|
-
headers: {},
|
|
1275
|
-
},
|
|
1276
|
-
type: "endpoint",
|
|
1277
|
-
},
|
|
1278
|
-
{
|
|
1279
|
-
conditions: [
|
|
1280
|
-
{
|
|
1281
|
-
fn: "stringEquals",
|
|
1282
|
-
argv: [
|
|
1283
|
-
{
|
|
1284
|
-
fn: "getAttr",
|
|
1285
|
-
argv: [
|
|
1286
|
-
{
|
|
1287
|
-
ref: "PartitionResult",
|
|
1288
|
-
},
|
|
1289
|
-
"name",
|
|
1290
|
-
],
|
|
1291
|
-
},
|
|
1292
|
-
"aws-us-gov",
|
|
1293
|
-
],
|
|
1294
|
-
},
|
|
1295
|
-
{
|
|
1296
|
-
fn: "booleanEquals",
|
|
1297
|
-
argv: [
|
|
1298
|
-
{
|
|
1299
|
-
ref: "UseFIPS",
|
|
1300
|
-
},
|
|
1301
|
-
false,
|
|
1302
|
-
],
|
|
1303
|
-
},
|
|
1304
|
-
{
|
|
1305
|
-
fn: "booleanEquals",
|
|
1306
|
-
argv: [
|
|
1307
|
-
{
|
|
1308
|
-
ref: "UseDualStack",
|
|
1309
|
-
},
|
|
1310
|
-
true,
|
|
1311
|
-
],
|
|
1312
|
-
},
|
|
1313
|
-
],
|
|
1314
|
-
endpoint: {
|
|
1315
|
-
url: "https://states-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
1316
|
-
properties: {},
|
|
1317
|
-
headers: {},
|
|
1318
|
-
},
|
|
1319
|
-
type: "endpoint",
|
|
1320
|
-
},
|
|
1321
|
-
{
|
|
1322
|
-
conditions: [
|
|
1323
|
-
{
|
|
1324
|
-
fn: "booleanEquals",
|
|
1325
|
-
argv: [
|
|
1326
|
-
{
|
|
1327
|
-
ref: "UseFIPS",
|
|
1328
|
-
},
|
|
1329
|
-
true,
|
|
1330
|
-
],
|
|
1331
|
-
},
|
|
1332
|
-
{
|
|
1333
|
-
fn: "booleanEquals",
|
|
1334
|
-
argv: [
|
|
1335
|
-
{
|
|
1336
|
-
ref: "UseDualStack",
|
|
1337
|
-
},
|
|
1338
|
-
true,
|
|
1339
|
-
],
|
|
1340
|
-
},
|
|
1341
|
-
],
|
|
1342
|
-
rules: [
|
|
1343
|
-
{
|
|
1344
|
-
conditions: [
|
|
1345
|
-
{
|
|
1346
|
-
fn: "booleanEquals",
|
|
1347
|
-
argv: [
|
|
1348
|
-
true,
|
|
1349
|
-
{
|
|
1350
|
-
fn: "getAttr",
|
|
1351
|
-
argv: [
|
|
1352
|
-
{
|
|
1353
|
-
ref: "PartitionResult",
|
|
1354
|
-
},
|
|
1355
|
-
"supportsFIPS",
|
|
1356
|
-
],
|
|
1357
|
-
},
|
|
1358
|
-
],
|
|
1359
|
-
},
|
|
1360
|
-
{
|
|
1361
|
-
fn: "booleanEquals",
|
|
1362
|
-
argv: [
|
|
1363
|
-
true,
|
|
1364
|
-
{
|
|
1365
|
-
fn: "getAttr",
|
|
1366
|
-
argv: [
|
|
1367
|
-
{
|
|
1368
|
-
ref: "PartitionResult",
|
|
1369
|
-
},
|
|
1370
|
-
"supportsDualStack",
|
|
1371
|
-
],
|
|
1372
|
-
},
|
|
1373
|
-
],
|
|
1374
|
-
},
|
|
1375
|
-
],
|
|
1376
|
-
rules: [
|
|
1377
|
-
{
|
|
1378
|
-
conditions: [],
|
|
1379
|
-
endpoint: {
|
|
1380
|
-
url: "https://states-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
1381
|
-
properties: {},
|
|
1382
|
-
headers: {},
|
|
1383
|
-
},
|
|
1384
|
-
type: "endpoint",
|
|
1385
|
-
},
|
|
1386
|
-
],
|
|
1387
|
-
type: "tree",
|
|
1388
|
-
},
|
|
1389
|
-
{
|
|
1390
|
-
conditions: [],
|
|
1391
|
-
error:
|
|
1392
|
-
"FIPS and DualStack are enabled, but this partition does not support one or both",
|
|
1393
|
-
type: "error",
|
|
1394
|
-
},
|
|
1395
|
-
],
|
|
1396
|
-
type: "tree",
|
|
1397
|
-
},
|
|
1398
|
-
{
|
|
1399
|
-
conditions: [
|
|
1400
|
-
{
|
|
1401
|
-
fn: "booleanEquals",
|
|
1402
|
-
argv: [
|
|
1403
|
-
{
|
|
1404
|
-
ref: "UseFIPS",
|
|
1405
|
-
},
|
|
1406
|
-
true,
|
|
1407
|
-
],
|
|
1408
|
-
},
|
|
1409
|
-
{
|
|
1410
|
-
fn: "booleanEquals",
|
|
1411
|
-
argv: [
|
|
1412
|
-
{
|
|
1413
|
-
ref: "UseDualStack",
|
|
1414
|
-
},
|
|
1415
|
-
false,
|
|
1416
|
-
],
|
|
1417
|
-
},
|
|
1418
|
-
],
|
|
1419
|
-
rules: [
|
|
1420
|
-
{
|
|
1421
|
-
conditions: [
|
|
1422
|
-
{
|
|
1423
|
-
fn: "booleanEquals",
|
|
1424
|
-
argv: [
|
|
1425
|
-
{
|
|
1426
|
-
fn: "getAttr",
|
|
1427
|
-
argv: [
|
|
1428
|
-
{
|
|
1429
|
-
ref: "PartitionResult",
|
|
1430
|
-
},
|
|
1431
|
-
"supportsFIPS",
|
|
1432
|
-
],
|
|
1433
|
-
},
|
|
1434
|
-
true,
|
|
1435
|
-
],
|
|
1436
|
-
},
|
|
1437
|
-
],
|
|
1438
|
-
rules: [
|
|
1439
|
-
{
|
|
1440
|
-
conditions: [],
|
|
1441
|
-
endpoint: {
|
|
1442
|
-
url: "https://states-fips.{Region}.{PartitionResult#dnsSuffix}",
|
|
1443
|
-
properties: {},
|
|
1444
|
-
headers: {},
|
|
1445
|
-
},
|
|
1446
|
-
type: "endpoint",
|
|
1447
|
-
},
|
|
1448
|
-
],
|
|
1449
|
-
type: "tree",
|
|
1450
|
-
},
|
|
1451
|
-
{
|
|
1452
|
-
conditions: [],
|
|
1453
|
-
error:
|
|
1454
|
-
"FIPS is enabled but this partition does not support FIPS",
|
|
1455
|
-
type: "error",
|
|
1456
|
-
},
|
|
1457
|
-
],
|
|
1458
|
-
type: "tree",
|
|
1459
|
-
},
|
|
1460
|
-
{
|
|
1461
|
-
conditions: [
|
|
1462
|
-
{
|
|
1463
|
-
fn: "booleanEquals",
|
|
1464
|
-
argv: [
|
|
1465
|
-
{
|
|
1466
|
-
ref: "UseFIPS",
|
|
1467
|
-
},
|
|
1468
|
-
false,
|
|
1469
|
-
],
|
|
1470
|
-
},
|
|
1471
|
-
{
|
|
1472
|
-
fn: "booleanEquals",
|
|
1473
|
-
argv: [
|
|
1474
|
-
{
|
|
1475
|
-
ref: "UseDualStack",
|
|
1476
|
-
},
|
|
1477
|
-
true,
|
|
1478
|
-
],
|
|
1479
|
-
},
|
|
1480
|
-
],
|
|
1481
|
-
rules: [
|
|
1482
|
-
{
|
|
1483
|
-
conditions: [
|
|
1484
|
-
{
|
|
1485
|
-
fn: "booleanEquals",
|
|
1486
|
-
argv: [
|
|
1487
|
-
true,
|
|
1488
|
-
{
|
|
1489
|
-
fn: "getAttr",
|
|
1490
|
-
argv: [
|
|
1491
|
-
{
|
|
1492
|
-
ref: "PartitionResult",
|
|
1493
|
-
},
|
|
1494
|
-
"supportsDualStack",
|
|
1495
|
-
],
|
|
1496
|
-
},
|
|
1497
|
-
],
|
|
1498
|
-
},
|
|
1499
|
-
],
|
|
1500
|
-
rules: [
|
|
1501
|
-
{
|
|
1502
|
-
conditions: [],
|
|
1503
|
-
endpoint: {
|
|
1504
|
-
url: "https://states.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
1505
|
-
properties: {},
|
|
1506
|
-
headers: {},
|
|
1507
|
-
},
|
|
1508
|
-
type: "endpoint",
|
|
1509
|
-
},
|
|
1510
|
-
],
|
|
1511
|
-
type: "tree",
|
|
1512
|
-
},
|
|
1513
|
-
{
|
|
1514
|
-
conditions: [],
|
|
1515
|
-
error:
|
|
1516
|
-
"DualStack is enabled but this partition does not support DualStack",
|
|
1517
|
-
type: "error",
|
|
1518
|
-
},
|
|
1519
|
-
],
|
|
1520
|
-
type: "tree",
|
|
1521
|
-
},
|
|
1522
|
-
{
|
|
1523
|
-
conditions: [],
|
|
1524
|
-
endpoint: {
|
|
1525
|
-
url: "https://states.{Region}.{PartitionResult#dnsSuffix}",
|
|
1526
|
-
properties: {},
|
|
1527
|
-
headers: {},
|
|
1528
|
-
},
|
|
1529
|
-
type: "endpoint",
|
|
1530
|
-
},
|
|
1531
|
-
],
|
|
1532
|
-
type: "tree",
|
|
1533
|
-
},
|
|
1534
|
-
],
|
|
1535
|
-
type: "tree",
|
|
1536
|
-
},
|
|
1537
|
-
{
|
|
1538
|
-
conditions: [],
|
|
1539
|
-
error: "Invalid Configuration: Missing Region",
|
|
1540
|
-
type: "error",
|
|
1541
|
-
},
|
|
1542
|
-
],
|
|
1543
|
-
type: "tree",
|
|
1544
|
-
},
|
|
1545
|
-
],
|
|
1546
|
-
},
|
|
1547
|
-
};
|
|
1548
|
-
|
|
1549
|
-
/** The makeStepFunctionsClient constructor supplies callable StepFunctions operations through the shared AwsClient service. Calls validate inputs and responses with the generated schemas and retain typed request, response, and provider failures. */
|
|
1550
|
-
export const makeStepFunctionsClient = Effect.gen(function* () {
|
|
1551
|
-
const aws = yield* AwsClient;
|
|
1552
|
-
const bindOperation = aws.bindOperation(stepFunctionsService);
|
|
1553
|
-
|
|
1554
|
-
/** The createStateMachine function invokes AWS CreateStateMachine through the shared client. Its Effect returns the decoded CreateStateMachineOutput result after a successful response; validation and provider failures remain in the error channel. */
|
|
1555
|
-
const createStateMachine = bindOperation(createStateMachineOperation);
|
|
1556
|
-
/** The deleteStateMachine function invokes AWS DeleteStateMachine through the shared client. Its Effect returns the decoded void result after a successful response; validation and provider failures remain in the error channel. */
|
|
1557
|
-
const deleteStateMachine = bindOperation(deleteStateMachineOperation);
|
|
1558
|
-
/** The describeStateMachine function invokes AWS DescribeStateMachine through the shared client. Its Effect returns the decoded DescribeStateMachineOutput result after a successful response; validation and provider failures remain in the error channel. */
|
|
1559
|
-
const describeStateMachine = bindOperation(describeStateMachineOperation);
|
|
1560
|
-
/** The updateStateMachine function invokes AWS UpdateStateMachine through the shared client. Its Effect returns the decoded UpdateStateMachineOutput result after a successful response; validation and provider failures remain in the error channel. */
|
|
1561
|
-
const updateStateMachine = bindOperation(updateStateMachineOperation);
|
|
1562
|
-
|
|
1563
|
-
return {
|
|
1564
|
-
createStateMachine,
|
|
1565
|
-
deleteStateMachine,
|
|
1566
|
-
describeStateMachine,
|
|
1567
|
-
updateStateMachine,
|
|
1568
|
-
};
|
|
1569
|
-
});
|
|
1570
|
-
export const stepFunctionsOperationCatalog = [
|
|
1571
|
-
{
|
|
1572
|
-
source: {
|
|
1573
|
-
provider: "AWS",
|
|
1574
|
-
service: "com.amazonaws.sfn#AWSStepFunctions",
|
|
1575
|
-
name: "CreateStateMachine.json",
|
|
1576
|
-
format: "Smithy",
|
|
1577
|
-
},
|
|
1578
|
-
version: "2016-11-23",
|
|
1579
|
-
operationId: "CreateStateMachine",
|
|
1580
|
-
method: "POST",
|
|
1581
|
-
path: "/",
|
|
1582
|
-
servers: [],
|
|
1583
|
-
parameters: [
|
|
1584
|
-
{
|
|
1585
|
-
name: "X-Amz-Target",
|
|
1586
|
-
location: "header",
|
|
1587
|
-
required: true,
|
|
1588
|
-
},
|
|
1589
|
-
],
|
|
1590
|
-
requestBody: {
|
|
1591
|
-
required: true,
|
|
1592
|
-
mediaTypes: ["application/x-amz-json-1.0"],
|
|
1593
|
-
},
|
|
1594
|
-
responses: {
|
|
1595
|
-
"200": ["application/x-amz-json-1.0"],
|
|
1596
|
-
"400": ["application/x-amz-json-1.0"],
|
|
1597
|
-
"409": ["application/x-amz-json-1.0"],
|
|
1598
|
-
},
|
|
1599
|
-
providerMetadata: {
|
|
1600
|
-
document: {
|
|
1601
|
-
"x-aws-service": stepFunctionsService,
|
|
1602
|
-
},
|
|
1603
|
-
operation: {
|
|
1604
|
-
"x-aws-idempotency-tokens": [],
|
|
1605
|
-
"x-aws-pagination": {},
|
|
1606
|
-
"x-aws-waiters": {},
|
|
1607
|
-
},
|
|
1608
|
-
},
|
|
1609
|
-
},
|
|
1610
|
-
{
|
|
1611
|
-
source: {
|
|
1612
|
-
provider: "AWS",
|
|
1613
|
-
service: "com.amazonaws.sfn#AWSStepFunctions",
|
|
1614
|
-
name: "DeleteStateMachine.json",
|
|
1615
|
-
format: "Smithy",
|
|
1616
|
-
},
|
|
1617
|
-
version: "2016-11-23",
|
|
1618
|
-
operationId: "DeleteStateMachine",
|
|
1619
|
-
method: "POST",
|
|
1620
|
-
path: "/",
|
|
1621
|
-
servers: [],
|
|
1622
|
-
parameters: [
|
|
1623
|
-
{
|
|
1624
|
-
name: "X-Amz-Target",
|
|
1625
|
-
location: "header",
|
|
1626
|
-
required: true,
|
|
1627
|
-
},
|
|
1628
|
-
],
|
|
1629
|
-
requestBody: {
|
|
1630
|
-
required: true,
|
|
1631
|
-
mediaTypes: ["application/x-amz-json-1.0"],
|
|
1632
|
-
},
|
|
1633
|
-
responses: {
|
|
1634
|
-
"200": [],
|
|
1635
|
-
"400": ["application/x-amz-json-1.0"],
|
|
1636
|
-
},
|
|
1637
|
-
providerMetadata: {
|
|
1638
|
-
document: {
|
|
1639
|
-
"x-aws-service": stepFunctionsService,
|
|
1640
|
-
},
|
|
1641
|
-
operation: {
|
|
1642
|
-
"x-aws-idempotency-tokens": [],
|
|
1643
|
-
"x-aws-pagination": {},
|
|
1644
|
-
"x-aws-waiters": {},
|
|
1645
|
-
},
|
|
1646
|
-
},
|
|
1647
|
-
},
|
|
1648
|
-
{
|
|
1649
|
-
source: {
|
|
1650
|
-
provider: "AWS",
|
|
1651
|
-
service: "com.amazonaws.sfn#AWSStepFunctions",
|
|
1652
|
-
name: "DescribeStateMachine.json",
|
|
1653
|
-
format: "Smithy",
|
|
1654
|
-
},
|
|
1655
|
-
version: "2016-11-23",
|
|
1656
|
-
operationId: "DescribeStateMachine",
|
|
1657
|
-
method: "POST",
|
|
1658
|
-
path: "/",
|
|
1659
|
-
servers: [],
|
|
1660
|
-
parameters: [
|
|
1661
|
-
{
|
|
1662
|
-
name: "X-Amz-Target",
|
|
1663
|
-
location: "header",
|
|
1664
|
-
required: true,
|
|
1665
|
-
},
|
|
1666
|
-
],
|
|
1667
|
-
requestBody: {
|
|
1668
|
-
required: true,
|
|
1669
|
-
mediaTypes: ["application/x-amz-json-1.0"],
|
|
1670
|
-
},
|
|
1671
|
-
responses: {
|
|
1672
|
-
"200": ["application/x-amz-json-1.0"],
|
|
1673
|
-
"400": ["application/x-amz-json-1.0"],
|
|
1674
|
-
},
|
|
1675
|
-
providerMetadata: {
|
|
1676
|
-
document: {
|
|
1677
|
-
"x-aws-service": stepFunctionsService,
|
|
1678
|
-
},
|
|
1679
|
-
operation: {
|
|
1680
|
-
"x-aws-idempotency-tokens": [],
|
|
1681
|
-
"x-aws-pagination": {},
|
|
1682
|
-
"x-aws-waiters": {},
|
|
1683
|
-
},
|
|
1684
|
-
},
|
|
1685
|
-
},
|
|
1686
|
-
{
|
|
1687
|
-
source: {
|
|
1688
|
-
provider: "AWS",
|
|
1689
|
-
service: "com.amazonaws.sfn#AWSStepFunctions",
|
|
1690
|
-
name: "UpdateStateMachine.json",
|
|
1691
|
-
format: "Smithy",
|
|
1692
|
-
},
|
|
1693
|
-
version: "2016-11-23",
|
|
1694
|
-
operationId: "UpdateStateMachine",
|
|
1695
|
-
method: "POST",
|
|
1696
|
-
path: "/",
|
|
1697
|
-
servers: [],
|
|
1698
|
-
parameters: [
|
|
1699
|
-
{
|
|
1700
|
-
name: "X-Amz-Target",
|
|
1701
|
-
location: "header",
|
|
1702
|
-
required: true,
|
|
1703
|
-
},
|
|
1704
|
-
],
|
|
1705
|
-
requestBody: {
|
|
1706
|
-
required: true,
|
|
1707
|
-
mediaTypes: ["application/x-amz-json-1.0"],
|
|
1708
|
-
},
|
|
1709
|
-
responses: {
|
|
1710
|
-
"200": ["application/x-amz-json-1.0"],
|
|
1711
|
-
"400": ["application/x-amz-json-1.0"],
|
|
1712
|
-
"402": ["application/x-amz-json-1.0"],
|
|
1713
|
-
"409": ["application/x-amz-json-1.0"],
|
|
1714
|
-
},
|
|
1715
|
-
providerMetadata: {
|
|
1716
|
-
document: {
|
|
1717
|
-
"x-aws-service": stepFunctionsService,
|
|
1718
|
-
},
|
|
1719
|
-
operation: {
|
|
1720
|
-
"x-aws-idempotency-tokens": [],
|
|
1721
|
-
"x-aws-pagination": {},
|
|
1722
|
-
"x-aws-waiters": {},
|
|
1723
|
-
},
|
|
1724
|
-
},
|
|
1725
|
-
},
|
|
1726
|
-
];
|