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
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
ResourceReferenceSchema,
|
|
10
10
|
ResourceSchemaAnnotationSchema,
|
|
11
11
|
} from "nomoss/core";
|
|
12
|
-
import { ResourceOutputBinding } from "
|
|
12
|
+
import { ResourceOutputBinding } from "../../../../../src/core/resource/resourceOutputBinding.js";
|
|
13
13
|
|
|
14
14
|
interface Policy {
|
|
15
15
|
readonly PolicyDocument:
|
|
@@ -122,6 +122,7 @@ export const AWSUserResourceSchema = ResourceSchemaAnnotationSchema.make({
|
|
|
122
122
|
},
|
|
123
123
|
primaryIdentifier: ["/properties/UserName"],
|
|
124
124
|
});
|
|
125
|
+
|
|
125
126
|
export const AWSUserPropsSchema = annotateResourceSchema(
|
|
126
127
|
Schema.Struct({
|
|
127
128
|
Path: Schema.optionalKey(
|
|
@@ -314,7 +315,14 @@ export const AWSUserRequestSchema = Schema.Struct({
|
|
|
314
315
|
}),
|
|
315
316
|
),
|
|
316
317
|
});
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* The AWSUserRelationshipIssues array lists inputs that can use several outputs
|
|
321
|
+
* from one source type. Each input retains its provider value until a reviewed
|
|
322
|
+
* mapping chooses an output.
|
|
323
|
+
*/
|
|
317
324
|
export const AWSUserRelationshipIssues = [];
|
|
325
|
+
|
|
318
326
|
export const AWSUserResourceTypeSchema = Schema.Struct({
|
|
319
327
|
provider: Schema.Literal("aws"),
|
|
320
328
|
service: Schema.Literal("iam"),
|
|
@@ -394,7 +402,10 @@ export function createAWSUserDeclaration<Props>(
|
|
|
394
402
|
return resource;
|
|
395
403
|
}
|
|
396
404
|
|
|
397
|
-
/**
|
|
405
|
+
/**
|
|
406
|
+
* The AWSUser resource factory registers a validated declaration in the
|
|
407
|
+
* stack graph. Its outputs become available after apply saves the resource.
|
|
408
|
+
*/
|
|
398
409
|
export const AWSUser = Effect.fn("AWSUser")(function* (input: {
|
|
399
410
|
logicalId: string;
|
|
400
411
|
props: AWSUserProps;
|
|
@@ -422,39 +433,3 @@ export const AWSUser = Effect.fn("AWSUser")(function* (input: {
|
|
|
422
433
|
|
|
423
434
|
return resource;
|
|
424
435
|
});
|
|
425
|
-
export const AWSUserOutputCatalog = [
|
|
426
|
-
{
|
|
427
|
-
source: {
|
|
428
|
-
provider: "AWS",
|
|
429
|
-
service: "CloudFormation",
|
|
430
|
-
name: "refs/aws-cdk-service-spec/sources/CloudFormationSchema/us-east-1/aws-iam-user.json",
|
|
431
|
-
format: "CloudFormation",
|
|
432
|
-
},
|
|
433
|
-
typeName: "AWS::IAM::User",
|
|
434
|
-
resource: "user",
|
|
435
|
-
primaryIdentifier: ["/properties/UserName"],
|
|
436
|
-
createOnlyProperties: ["/properties/UserName"],
|
|
437
|
-
writeOnlyProperties: ["/properties/LoginProfile/Password"],
|
|
438
|
-
outputs: {
|
|
439
|
-
Arn: {
|
|
440
|
-
schema: {
|
|
441
|
-
description: "",
|
|
442
|
-
type: "string",
|
|
443
|
-
},
|
|
444
|
-
schemaPath: "/properties/Arn",
|
|
445
|
-
valuePath: "/Arn",
|
|
446
|
-
required: false,
|
|
447
|
-
},
|
|
448
|
-
UserName: {
|
|
449
|
-
schema: {
|
|
450
|
-
description:
|
|
451
|
-
'The name of the user to create. Do not include the path in this value.\n This parameter allows (per its [regex pattern](https://docs.aws.amazon.com/http://wikipedia.org/wiki/regex)) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-. The user name must be unique within the account. User names are not distinguished by case. For example, you cannot create users named both "John" and "john".\n If you don\'t specify a name, CFN generates a unique physical ID and uses that ID for the user name.\n If you specify a name, you must specify the ``CAPABILITY_NAMED_IAM`` value to acknowledge your template\'s capabilities. For more information, see [Acknowledging Resources in Templates](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#using-iam-capabilities).\n Naming an IAM resource can cause an unrecoverable error if you reuse the same template in multiple Regions. To prevent this, we recommend using ``Fn::Join`` and ``AWS::Region`` to create a Region-specific name, as in the following example: ``{"Fn::Join": ["", [{"Ref": "AWS::Region"}, {"Ref": "MyResourceName"}]]}``.',
|
|
452
|
-
type: "string",
|
|
453
|
-
},
|
|
454
|
-
schemaPath: "/properties/UserName",
|
|
455
|
-
valuePath: "/UserName",
|
|
456
|
-
required: false,
|
|
457
|
-
},
|
|
458
|
-
},
|
|
459
|
-
},
|
|
460
|
-
];
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
ResourceReferenceSchema,
|
|
10
10
|
ResourceSchemaAnnotationSchema,
|
|
11
11
|
} from "nomoss/core";
|
|
12
|
-
import { ResourceOutputBinding } from "
|
|
12
|
+
import { ResourceOutputBinding } from "../../../../../src/core/resource/resourceOutputBinding.js";
|
|
13
13
|
|
|
14
14
|
export interface AWSUserPolicyProps {
|
|
15
|
-
readonly PolicyDocument
|
|
15
|
+
readonly PolicyDocument: {
|
|
16
16
|
readonly [x: string]: Schema.Json;
|
|
17
17
|
};
|
|
18
18
|
readonly PolicyName: string;
|
|
@@ -37,17 +37,16 @@ export const AWSUserPolicyResourceSchema = ResourceSchemaAnnotationSchema.make({
|
|
|
37
37
|
},
|
|
38
38
|
primaryIdentifier: ["/properties/PolicyName", "/properties/UserName"],
|
|
39
39
|
});
|
|
40
|
+
|
|
40
41
|
export const AWSUserPolicyPropsSchema = annotateResourceSchema(
|
|
41
42
|
Schema.Struct({
|
|
42
|
-
PolicyDocument: Schema.
|
|
43
|
-
Schema.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}),
|
|
50
|
-
),
|
|
43
|
+
PolicyDocument: Schema.Record(
|
|
44
|
+
Schema.String,
|
|
45
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
46
|
+
).annotate({
|
|
47
|
+
description:
|
|
48
|
+
"The policy document.\n You must provide policies in JSON format in IAM. However, for CFN templates formatted in YAML, you can provide the policy in JSON or YAML format. CFN always converts a YAML policy to JSON format before submitting it to IAM.\n The [regex pattern](https://docs.aws.amazon.com/http://wikipedia.org/wiki/regex) used to validate this parameter is a string of characters consisting of the following:\n + Any printable ASCII character ranging from the space character (``\\u0020``) through the end of the ASCII character range\n + The printable characters in the Basic Latin and Latin-1 Supplement character set (through ``\\u00FF``)\n + The special characters tab (``\\u0009``), line feed (``\\u000A``), and carriage return (``\\u000D``)",
|
|
49
|
+
}),
|
|
51
50
|
PolicyName: Schema.String.annotate({
|
|
52
51
|
description:
|
|
53
52
|
"The name of the policy document.\n This parameter allows (through its [regex pattern](https://docs.aws.amazon.com/http://wikipedia.org/wiki/regex)) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-",
|
|
@@ -97,7 +96,7 @@ export const AWSUserPolicyOutputsSchema = Schema.Struct({
|
|
|
97
96
|
});
|
|
98
97
|
|
|
99
98
|
export interface AWSUserPolicyRequest {
|
|
100
|
-
readonly PolicyDocument
|
|
99
|
+
readonly PolicyDocument: {
|
|
101
100
|
readonly [x: string]: Schema.Json;
|
|
102
101
|
};
|
|
103
102
|
readonly PolicyName: string;
|
|
@@ -105,15 +104,13 @@ export interface AWSUserPolicyRequest {
|
|
|
105
104
|
}
|
|
106
105
|
|
|
107
106
|
export const AWSUserPolicyRequestSchema = Schema.Struct({
|
|
108
|
-
PolicyDocument: Schema.
|
|
109
|
-
Schema.
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}),
|
|
116
|
-
),
|
|
107
|
+
PolicyDocument: Schema.Record(
|
|
108
|
+
Schema.String,
|
|
109
|
+
Schema.Json.annotate({ expected: "JSON value" }),
|
|
110
|
+
).annotate({
|
|
111
|
+
description:
|
|
112
|
+
"The policy document.\n You must provide policies in JSON format in IAM. However, for CFN templates formatted in YAML, you can provide the policy in JSON or YAML format. CFN always converts a YAML policy to JSON format before submitting it to IAM.\n The [regex pattern](https://docs.aws.amazon.com/http://wikipedia.org/wiki/regex) used to validate this parameter is a string of characters consisting of the following:\n + Any printable ASCII character ranging from the space character (``\\u0020``) through the end of the ASCII character range\n + The printable characters in the Basic Latin and Latin-1 Supplement character set (through ``\\u00FF``)\n + The special characters tab (``\\u0009``), line feed (``\\u000A``), and carriage return (``\\u000D``)",
|
|
113
|
+
}),
|
|
117
114
|
PolicyName: Schema.String.annotate({
|
|
118
115
|
description:
|
|
119
116
|
"The name of the policy document.\n This parameter allows (through its [regex pattern](https://docs.aws.amazon.com/http://wikipedia.org/wiki/regex)) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-",
|
|
@@ -123,7 +120,14 @@ export const AWSUserPolicyRequestSchema = Schema.Struct({
|
|
|
123
120
|
"The name of the user to associate the policy with.\n This parameter allows (through its [regex pattern](https://docs.aws.amazon.com/http://wikipedia.org/wiki/regex)) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-",
|
|
124
121
|
}),
|
|
125
122
|
});
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* The AWSUserPolicyRelationshipIssues array lists inputs that can use several outputs
|
|
126
|
+
* from one source type. Each input retains its provider value until a reviewed
|
|
127
|
+
* mapping chooses an output.
|
|
128
|
+
*/
|
|
126
129
|
export const AWSUserPolicyRelationshipIssues = [];
|
|
130
|
+
|
|
127
131
|
export const AWSUserPolicyResourceTypeSchema = Schema.Struct({
|
|
128
132
|
provider: Schema.Literal("aws"),
|
|
129
133
|
service: Schema.Literal("iam"),
|
|
@@ -203,7 +207,10 @@ export function createAWSUserPolicyDeclaration<Props>(
|
|
|
203
207
|
return resource;
|
|
204
208
|
}
|
|
205
209
|
|
|
206
|
-
/**
|
|
210
|
+
/**
|
|
211
|
+
* The AWSUserPolicy resource factory registers a validated declaration in the
|
|
212
|
+
* stack graph. Its outputs become available after apply saves the resource.
|
|
213
|
+
*/
|
|
207
214
|
export const AWSUserPolicy = Effect.fn("AWSUserPolicy")(function* (input: {
|
|
208
215
|
logicalId: string;
|
|
209
216
|
props: AWSUserPolicyProps;
|
|
@@ -233,40 +240,3 @@ export const AWSUserPolicy = Effect.fn("AWSUserPolicy")(function* (input: {
|
|
|
233
240
|
|
|
234
241
|
return resource;
|
|
235
242
|
});
|
|
236
|
-
export const AWSUserPolicyOutputCatalog = [
|
|
237
|
-
{
|
|
238
|
-
source: {
|
|
239
|
-
provider: "AWS",
|
|
240
|
-
service: "CloudFormation",
|
|
241
|
-
name: "refs/aws-cdk-service-spec/sources/CloudFormationSchema/us-east-1/aws-iam-userpolicy.json",
|
|
242
|
-
format: "CloudFormation",
|
|
243
|
-
},
|
|
244
|
-
typeName: "AWS::IAM::UserPolicy",
|
|
245
|
-
resource: "userpolicy",
|
|
246
|
-
primaryIdentifier: ["/properties/PolicyName", "/properties/UserName"],
|
|
247
|
-
createOnlyProperties: ["/properties/PolicyName", "/properties/UserName"],
|
|
248
|
-
writeOnlyProperties: [],
|
|
249
|
-
outputs: {
|
|
250
|
-
PolicyName: {
|
|
251
|
-
schema: {
|
|
252
|
-
description:
|
|
253
|
-
"The name of the policy document.\n This parameter allows (through its [regex pattern](https://docs.aws.amazon.com/http://wikipedia.org/wiki/regex)) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-",
|
|
254
|
-
type: "string",
|
|
255
|
-
},
|
|
256
|
-
schemaPath: "/properties/PolicyName",
|
|
257
|
-
valuePath: "/PolicyName",
|
|
258
|
-
required: true,
|
|
259
|
-
},
|
|
260
|
-
UserName: {
|
|
261
|
-
schema: {
|
|
262
|
-
description:
|
|
263
|
-
"The name of the user to associate the policy with.\n This parameter allows (through its [regex pattern](https://docs.aws.amazon.com/http://wikipedia.org/wiki/regex)) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-",
|
|
264
|
-
type: "string",
|
|
265
|
-
},
|
|
266
|
-
schemaPath: "/properties/UserName",
|
|
267
|
-
valuePath: "/UserName",
|
|
268
|
-
required: true,
|
|
269
|
-
},
|
|
270
|
-
},
|
|
271
|
-
},
|
|
272
|
-
];
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
ResourceReferenceSchema,
|
|
10
10
|
ResourceSchemaAnnotationSchema,
|
|
11
11
|
} from "nomoss/core";
|
|
12
|
-
import { ResourceOutputBinding } from "
|
|
12
|
+
import { ResourceOutputBinding } from "../../../../../src/core/resource/resourceOutputBinding.js";
|
|
13
13
|
|
|
14
14
|
export interface AWSUserToGroupAdditionProps {
|
|
15
15
|
readonly GroupName:
|
|
@@ -38,6 +38,7 @@ export const AWSUserToGroupAdditionResourceSchema =
|
|
|
38
38
|
stateSecretOutputKeys: [],
|
|
39
39
|
primaryIdentifier: ["/properties/Id"],
|
|
40
40
|
});
|
|
41
|
+
|
|
41
42
|
export const AWSUserToGroupAdditionPropsSchema = annotateResourceSchema(
|
|
42
43
|
Schema.Struct({
|
|
43
44
|
GroupName: Schema.Union([
|
|
@@ -105,7 +106,14 @@ export const AWSUserToGroupAdditionRequestSchema = Schema.Struct({
|
|
|
105
106
|
GroupName: Schema.String,
|
|
106
107
|
Users: Schema.Array(Schema.String),
|
|
107
108
|
});
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* The AWSUserToGroupAdditionRelationshipIssues array lists inputs that can use several outputs
|
|
112
|
+
* from one source type. Each input retains its provider value until a reviewed
|
|
113
|
+
* mapping chooses an output.
|
|
114
|
+
*/
|
|
108
115
|
export const AWSUserToGroupAdditionRelationshipIssues = [];
|
|
116
|
+
|
|
109
117
|
export const AWSUserToGroupAdditionResourceTypeSchema = Schema.Struct({
|
|
110
118
|
provider: Schema.Literal("aws"),
|
|
111
119
|
service: Schema.Literal("iam"),
|
|
@@ -170,7 +178,10 @@ export function createAWSUserToGroupAdditionDeclaration<Props>(
|
|
|
170
178
|
return resource;
|
|
171
179
|
}
|
|
172
180
|
|
|
173
|
-
/**
|
|
181
|
+
/**
|
|
182
|
+
* The AWSUserToGroupAddition resource factory registers a validated declaration in the
|
|
183
|
+
* stack graph. Its outputs become available after apply saves the resource.
|
|
184
|
+
*/
|
|
174
185
|
export const AWSUserToGroupAddition = Effect.fn("AWSUserToGroupAddition")(
|
|
175
186
|
function* (input: { logicalId: string; props: AWSUserToGroupAdditionProps }) {
|
|
176
187
|
const graph = yield* ResourceGraphBuilder;
|
|
@@ -199,28 +210,3 @@ export const AWSUserToGroupAddition = Effect.fn("AWSUserToGroupAddition")(
|
|
|
199
210
|
return resource;
|
|
200
211
|
},
|
|
201
212
|
);
|
|
202
|
-
export const AWSUserToGroupAdditionOutputCatalog = [
|
|
203
|
-
{
|
|
204
|
-
source: {
|
|
205
|
-
provider: "AWS",
|
|
206
|
-
service: "CloudFormation",
|
|
207
|
-
name: "refs/aws-cdk-service-spec/sources/CloudFormationSchema/us-east-1/aws-iam-usertogroupaddition.json",
|
|
208
|
-
format: "CloudFormation",
|
|
209
|
-
},
|
|
210
|
-
typeName: "AWS::IAM::UserToGroupAddition",
|
|
211
|
-
resource: "usertogroupaddition",
|
|
212
|
-
primaryIdentifier: ["/properties/Id"],
|
|
213
|
-
createOnlyProperties: [],
|
|
214
|
-
writeOnlyProperties: [],
|
|
215
|
-
outputs: {
|
|
216
|
-
Id: {
|
|
217
|
-
schema: {
|
|
218
|
-
type: "string",
|
|
219
|
-
},
|
|
220
|
-
schemaPath: "/properties/Id",
|
|
221
|
-
valuePath: "/Id",
|
|
222
|
-
required: false,
|
|
223
|
-
},
|
|
224
|
-
},
|
|
225
|
-
},
|
|
226
|
-
];
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
// Generated from the CloudFormation Registry resource schema. Do not edit.
|
|
2
|
+
// biome-ignore-all lint/complexity/useRegexLiterals: Preserve Effect's generated regular expressions.
|
|
3
|
+
import { Effect, Schema } from "effect";
|
|
4
|
+
import {
|
|
5
|
+
annotateResourceSchema,
|
|
6
|
+
ResourceEntity,
|
|
7
|
+
ResourceGraphBuilder,
|
|
8
|
+
type ResourceKey,
|
|
9
|
+
ResourceSchemaAnnotationSchema,
|
|
10
|
+
} from "nomoss/core";
|
|
11
|
+
import { ResourceOutputBinding } from "../../../../../src/core/resource/resourceOutputBinding.js";
|
|
12
|
+
|
|
13
|
+
interface Tag {
|
|
14
|
+
readonly Value: string;
|
|
15
|
+
readonly Key: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const Tag = Schema.Struct({
|
|
19
|
+
Value: Schema.String.annotate({
|
|
20
|
+
description:
|
|
21
|
+
"The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.",
|
|
22
|
+
})
|
|
23
|
+
.check(
|
|
24
|
+
Schema.isMinLength(1).annotate({
|
|
25
|
+
expected: "a value with a length of at least 1",
|
|
26
|
+
}),
|
|
27
|
+
)
|
|
28
|
+
.check(
|
|
29
|
+
Schema.isMaxCodePoints(256).annotate({
|
|
30
|
+
expected: "a string with at most 256 code points",
|
|
31
|
+
}),
|
|
32
|
+
),
|
|
33
|
+
Key: Schema.String.annotate({
|
|
34
|
+
description:
|
|
35
|
+
"The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.",
|
|
36
|
+
})
|
|
37
|
+
.check(
|
|
38
|
+
Schema.isMinLength(1).annotate({
|
|
39
|
+
expected: "a value with a length of at least 1",
|
|
40
|
+
}),
|
|
41
|
+
)
|
|
42
|
+
.check(
|
|
43
|
+
Schema.isMaxCodePoints(128).annotate({
|
|
44
|
+
expected: "a string with at most 128 code points",
|
|
45
|
+
}),
|
|
46
|
+
),
|
|
47
|
+
}).annotate({
|
|
48
|
+
description: "A key-value pair to associate with a resource.",
|
|
49
|
+
identifier: "Tag",
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
export interface AWSVirtualMFADeviceProps {
|
|
53
|
+
readonly VirtualMfaDeviceName?: string;
|
|
54
|
+
readonly Path?: string;
|
|
55
|
+
readonly Users: ReadonlyArray<string>;
|
|
56
|
+
readonly Tags?: ReadonlyArray<Tag>;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export const AWSVirtualMFADeviceResourceSchema =
|
|
60
|
+
ResourceSchemaAnnotationSchema.make({
|
|
61
|
+
provider: "aws",
|
|
62
|
+
service: "iam",
|
|
63
|
+
resource: "virtualmfadevice",
|
|
64
|
+
operation: "create",
|
|
65
|
+
stateSecretOutputKeys: [],
|
|
66
|
+
replacement: {
|
|
67
|
+
order: "createBeforeDestroy",
|
|
68
|
+
properties: [["VirtualMfaDeviceName"], ["Path"]],
|
|
69
|
+
},
|
|
70
|
+
primaryIdentifier: ["/properties/SerialNumber"],
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
export const AWSVirtualMFADevicePropsSchema = annotateResourceSchema(
|
|
74
|
+
Schema.Struct({
|
|
75
|
+
VirtualMfaDeviceName: Schema.optionalKey(
|
|
76
|
+
Schema.String.check(
|
|
77
|
+
Schema.isMinLength(1).annotate({
|
|
78
|
+
expected: "a value with a length of at least 1",
|
|
79
|
+
}),
|
|
80
|
+
)
|
|
81
|
+
.check(
|
|
82
|
+
Schema.isMaxCodePoints(226).annotate({
|
|
83
|
+
expected: "a string with at most 226 code points",
|
|
84
|
+
}),
|
|
85
|
+
)
|
|
86
|
+
.check(
|
|
87
|
+
Schema.isPattern(new globalThis.RegExp("[\\w+=,.@-]+", "u")).annotate(
|
|
88
|
+
{ expected: "a string matching the RegExp [\\w+=,.@-]+" },
|
|
89
|
+
),
|
|
90
|
+
),
|
|
91
|
+
),
|
|
92
|
+
Path: Schema.optionalKey(
|
|
93
|
+
Schema.String.check(
|
|
94
|
+
Schema.isMinLength(1).annotate({
|
|
95
|
+
expected: "a value with a length of at least 1",
|
|
96
|
+
}),
|
|
97
|
+
)
|
|
98
|
+
.check(
|
|
99
|
+
Schema.isMaxCodePoints(512).annotate({
|
|
100
|
+
expected: "a string with at most 512 code points",
|
|
101
|
+
}),
|
|
102
|
+
)
|
|
103
|
+
.check(
|
|
104
|
+
Schema.isPattern(
|
|
105
|
+
new globalThis.RegExp(
|
|
106
|
+
"(\\u002F)|(\\u002F[\\u0021-\\u007F]+\\u002F)",
|
|
107
|
+
"u",
|
|
108
|
+
),
|
|
109
|
+
).annotate({
|
|
110
|
+
expected:
|
|
111
|
+
"a string matching the RegExp (\\u002F)|(\\u002F[\\u0021-\\u007F]+\\u002F)",
|
|
112
|
+
}),
|
|
113
|
+
),
|
|
114
|
+
),
|
|
115
|
+
Users: Schema.Array(Schema.String),
|
|
116
|
+
Tags: Schema.optionalKey(Schema.Array(Tag)),
|
|
117
|
+
}),
|
|
118
|
+
AWSVirtualMFADeviceResourceSchema,
|
|
119
|
+
);
|
|
120
|
+
|
|
121
|
+
export interface AWSVirtualMFADeviceOutputs {
|
|
122
|
+
readonly SerialNumber?: string;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export const AWSVirtualMFADeviceOutputsSchema = Schema.Struct({
|
|
126
|
+
SerialNumber: Schema.optionalKey(
|
|
127
|
+
Schema.String.check(
|
|
128
|
+
Schema.isMinCodePoints(9).annotate({
|
|
129
|
+
expected: "a string with at least 9 code points",
|
|
130
|
+
}),
|
|
131
|
+
)
|
|
132
|
+
.check(
|
|
133
|
+
Schema.isMaxCodePoints(256).annotate({
|
|
134
|
+
expected: "a string with at most 256 code points",
|
|
135
|
+
}),
|
|
136
|
+
)
|
|
137
|
+
.check(
|
|
138
|
+
Schema.isPattern(new globalThis.RegExp("[\\w+=/:,.@-]+", "u")).annotate(
|
|
139
|
+
{ expected: "a string matching the RegExp [\\w+=/:,.@-]+" },
|
|
140
|
+
),
|
|
141
|
+
),
|
|
142
|
+
),
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
export interface AWSVirtualMFADeviceRequest {
|
|
146
|
+
readonly VirtualMfaDeviceName?: string;
|
|
147
|
+
readonly Path?: string;
|
|
148
|
+
readonly Users: ReadonlyArray<string>;
|
|
149
|
+
readonly Tags?: ReadonlyArray<Tag>;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export const AWSVirtualMFADeviceRequestSchema = Schema.Struct({
|
|
153
|
+
VirtualMfaDeviceName: Schema.optionalKey(
|
|
154
|
+
Schema.String.check(
|
|
155
|
+
Schema.isMinLength(1).annotate({
|
|
156
|
+
expected: "a value with a length of at least 1",
|
|
157
|
+
}),
|
|
158
|
+
)
|
|
159
|
+
.check(
|
|
160
|
+
Schema.isMaxCodePoints(226).annotate({
|
|
161
|
+
expected: "a string with at most 226 code points",
|
|
162
|
+
}),
|
|
163
|
+
)
|
|
164
|
+
.check(
|
|
165
|
+
Schema.isPattern(new globalThis.RegExp("[\\w+=,.@-]+", "u")).annotate({
|
|
166
|
+
expected: "a string matching the RegExp [\\w+=,.@-]+",
|
|
167
|
+
}),
|
|
168
|
+
),
|
|
169
|
+
),
|
|
170
|
+
Path: Schema.optionalKey(
|
|
171
|
+
Schema.String.check(
|
|
172
|
+
Schema.isMinLength(1).annotate({
|
|
173
|
+
expected: "a value with a length of at least 1",
|
|
174
|
+
}),
|
|
175
|
+
)
|
|
176
|
+
.check(
|
|
177
|
+
Schema.isMaxCodePoints(512).annotate({
|
|
178
|
+
expected: "a string with at most 512 code points",
|
|
179
|
+
}),
|
|
180
|
+
)
|
|
181
|
+
.check(
|
|
182
|
+
Schema.isPattern(
|
|
183
|
+
new globalThis.RegExp(
|
|
184
|
+
"(\\u002F)|(\\u002F[\\u0021-\\u007F]+\\u002F)",
|
|
185
|
+
"u",
|
|
186
|
+
),
|
|
187
|
+
).annotate({
|
|
188
|
+
expected:
|
|
189
|
+
"a string matching the RegExp (\\u002F)|(\\u002F[\\u0021-\\u007F]+\\u002F)",
|
|
190
|
+
}),
|
|
191
|
+
),
|
|
192
|
+
),
|
|
193
|
+
Users: Schema.Array(Schema.String),
|
|
194
|
+
Tags: Schema.optionalKey(Schema.Array(Tag)),
|
|
195
|
+
});
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* The AWSVirtualMFADeviceRelationshipIssues array lists inputs that can use several outputs
|
|
199
|
+
* from one source type. Each input retains its provider value until a reviewed
|
|
200
|
+
* mapping chooses an output.
|
|
201
|
+
*/
|
|
202
|
+
export const AWSVirtualMFADeviceRelationshipIssues = [];
|
|
203
|
+
|
|
204
|
+
export const AWSVirtualMFADeviceResourceTypeSchema = Schema.Struct({
|
|
205
|
+
provider: Schema.Literal("aws"),
|
|
206
|
+
service: Schema.Literal("iam"),
|
|
207
|
+
resource: Schema.Literal("virtualmfadevice"),
|
|
208
|
+
});
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* The AWSVirtualMFADeviceResource class retains its owning stack across declarations.
|
|
212
|
+
* Applied output properties are ordinary values maintained by the lifecycle.
|
|
213
|
+
*/
|
|
214
|
+
export class AWSVirtualMFADeviceResource<
|
|
215
|
+
Props = AWSVirtualMFADeviceProps,
|
|
216
|
+
> extends ResourceEntity<{
|
|
217
|
+
readonly provider: "aws";
|
|
218
|
+
readonly service: "iam";
|
|
219
|
+
readonly resource: "virtualmfadevice";
|
|
220
|
+
}> {
|
|
221
|
+
constructor(
|
|
222
|
+
key: ResourceKey,
|
|
223
|
+
readonly props: Props,
|
|
224
|
+
private readonly binding?: ResourceOutputBinding,
|
|
225
|
+
) {
|
|
226
|
+
super({
|
|
227
|
+
key,
|
|
228
|
+
resourceType: {
|
|
229
|
+
provider: "aws",
|
|
230
|
+
service: "iam",
|
|
231
|
+
resource: "virtualmfadevice",
|
|
232
|
+
},
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Successful lifecycle writes update this value for declarations owned by the stack.
|
|
238
|
+
* Reading an unavailable value throws ResourceOutputResolutionMissing.
|
|
239
|
+
*/
|
|
240
|
+
get SerialNumber(): Required<AWSVirtualMFADeviceOutputs>["SerialNumber"] {
|
|
241
|
+
const value: Required<AWSVirtualMFADeviceOutputs>["SerialNumber"] =
|
|
242
|
+
ResourceOutputBinding.value(
|
|
243
|
+
this.binding,
|
|
244
|
+
this.key,
|
|
245
|
+
"SerialNumber",
|
|
246
|
+
Schema.requiredKey(
|
|
247
|
+
AWSVirtualMFADeviceOutputsSchema.fields.SerialNumber,
|
|
248
|
+
),
|
|
249
|
+
);
|
|
250
|
+
return value;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Callers must validate properties before constructing the declaration.
|
|
256
|
+
* Compatible resources can depend on it before apply supplies provider values.
|
|
257
|
+
* Reading applied outputs requires a binding to the owning stack.
|
|
258
|
+
*/
|
|
259
|
+
export function createAWSVirtualMFADeviceDeclaration<Props>(
|
|
260
|
+
key: ResourceKey,
|
|
261
|
+
props: Props,
|
|
262
|
+
binding?: ResourceOutputBinding,
|
|
263
|
+
): AWSVirtualMFADeviceResource<Props> {
|
|
264
|
+
const resource: AWSVirtualMFADeviceResource<Props> =
|
|
265
|
+
new AWSVirtualMFADeviceResource<Props>(key, props, binding);
|
|
266
|
+
|
|
267
|
+
return resource;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* The AWSVirtualMFADevice resource factory registers a validated declaration in the
|
|
272
|
+
* stack graph. Its outputs become available after apply saves the resource.
|
|
273
|
+
*/
|
|
274
|
+
export const AWSVirtualMFADevice = Effect.fn("AWSVirtualMFADevice")(
|
|
275
|
+
function* (input: { logicalId: string; props: AWSVirtualMFADeviceProps }) {
|
|
276
|
+
const graph = yield* ResourceGraphBuilder;
|
|
277
|
+
|
|
278
|
+
const key: ResourceKey = { logicalId: input.logicalId };
|
|
279
|
+
|
|
280
|
+
const declaration = yield* graph.resource(key);
|
|
281
|
+
|
|
282
|
+
const props = yield* Schema.decodeEffect(AWSVirtualMFADevicePropsSchema)(
|
|
283
|
+
input.props,
|
|
284
|
+
);
|
|
285
|
+
|
|
286
|
+
yield* declaration.registerEntity(AWSVirtualMFADeviceResourceTypeSchema, {
|
|
287
|
+
propsSchema: AWSVirtualMFADevicePropsSchema,
|
|
288
|
+
requestSchema: AWSVirtualMFADeviceRequestSchema,
|
|
289
|
+
outputsSchema: AWSVirtualMFADeviceOutputsSchema,
|
|
290
|
+
props,
|
|
291
|
+
});
|
|
292
|
+
|
|
293
|
+
const resource: AWSVirtualMFADeviceResource =
|
|
294
|
+
createAWSVirtualMFADeviceDeclaration(key, props, declaration.outputs);
|
|
295
|
+
|
|
296
|
+
return resource;
|
|
297
|
+
},
|
|
298
|
+
);
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
type ResourceKey,
|
|
9
9
|
ResourceSchemaAnnotationSchema,
|
|
10
10
|
} from "nomoss/core";
|
|
11
|
-
import { ResourceOutputBinding } from "
|
|
11
|
+
import { ResourceOutputBinding } from "../../../../../src/core/resource/resourceOutputBinding.js";
|
|
12
12
|
|
|
13
13
|
interface Tag {
|
|
14
14
|
readonly Key: string;
|
|
@@ -98,6 +98,7 @@ export const AWSKeyResourceSchema = ResourceSchemaAnnotationSchema.make({
|
|
|
98
98
|
stateSecretOutputKeys: [],
|
|
99
99
|
primaryIdentifier: ["/properties/KeyId"],
|
|
100
100
|
});
|
|
101
|
+
|
|
101
102
|
export const AWSKeyPropsSchema = annotateResourceSchema(
|
|
102
103
|
Schema.Struct({
|
|
103
104
|
Description: Schema.optionalKey(
|
|
@@ -432,7 +433,14 @@ export const AWSKeyRequestSchema = Schema.Struct({
|
|
|
432
433
|
),
|
|
433
434
|
),
|
|
434
435
|
});
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* The AWSKeyRelationshipIssues array lists inputs that can use several outputs
|
|
439
|
+
* from one source type. Each input retains its provider value until a reviewed
|
|
440
|
+
* mapping chooses an output.
|
|
441
|
+
*/
|
|
435
442
|
export const AWSKeyRelationshipIssues = [];
|
|
443
|
+
|
|
436
444
|
export const AWSKeyResourceTypeSchema = Schema.Struct({
|
|
437
445
|
provider: Schema.Literal("aws"),
|
|
438
446
|
service: Schema.Literal("kms"),
|
|
@@ -511,7 +519,10 @@ export function createAWSKeyDeclaration<Props>(
|
|
|
511
519
|
return resource;
|
|
512
520
|
}
|
|
513
521
|
|
|
514
|
-
/**
|
|
522
|
+
/**
|
|
523
|
+
* The AWSKey resource factory registers a validated declaration in the
|
|
524
|
+
* stack graph. Its outputs become available after apply saves the resource.
|
|
525
|
+
*/
|
|
515
526
|
export const AWSKey = Effect.fn("AWSKey")(function* (input: {
|
|
516
527
|
logicalId: string;
|
|
517
528
|
props: AWSKeyProps;
|
|
@@ -539,42 +550,3 @@ export const AWSKey = Effect.fn("AWSKey")(function* (input: {
|
|
|
539
550
|
|
|
540
551
|
return resource;
|
|
541
552
|
});
|
|
542
|
-
export const AWSKeyOutputCatalog = [
|
|
543
|
-
{
|
|
544
|
-
source: {
|
|
545
|
-
provider: "AWS",
|
|
546
|
-
service: "CloudFormation",
|
|
547
|
-
name: "refs/aws-cdk-service-spec/sources/CloudFormationSchema/us-east-1/aws-kms-key.json",
|
|
548
|
-
format: "CloudFormation",
|
|
549
|
-
},
|
|
550
|
-
typeName: "AWS::KMS::Key",
|
|
551
|
-
resource: "key",
|
|
552
|
-
primaryIdentifier: ["/properties/KeyId"],
|
|
553
|
-
createOnlyProperties: [],
|
|
554
|
-
writeOnlyProperties: [
|
|
555
|
-
"/properties/PendingWindowInDays",
|
|
556
|
-
"/properties/BypassPolicyLockoutSafetyCheck",
|
|
557
|
-
"/properties/RotationPeriodInDays",
|
|
558
|
-
],
|
|
559
|
-
outputs: {
|
|
560
|
-
Arn: {
|
|
561
|
-
schema: {
|
|
562
|
-
type: "string",
|
|
563
|
-
description: "",
|
|
564
|
-
},
|
|
565
|
-
schemaPath: "/properties/Arn",
|
|
566
|
-
valuePath: "/Arn",
|
|
567
|
-
required: false,
|
|
568
|
-
},
|
|
569
|
-
KeyId: {
|
|
570
|
-
schema: {
|
|
571
|
-
type: "string",
|
|
572
|
-
description: "",
|
|
573
|
-
},
|
|
574
|
-
schemaPath: "/properties/KeyId",
|
|
575
|
-
valuePath: "/KeyId",
|
|
576
|
-
required: false,
|
|
577
|
-
},
|
|
578
|
-
},
|
|
579
|
-
},
|
|
580
|
-
];
|