nomoss 0.0.3 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +5 -15
  3. package/ROADMAP.md +2 -0
  4. package/docs/README.md +1 -1
  5. package/docs/application/aws-resource-coverage.md +26 -0
  6. package/docs/application/aws-resource-lifecycle-management.md +13 -23
  7. package/docs/application/cli-workflow.md +1 -1
  8. package/docs/application/engine-design.md +2 -2
  9. package/docs/application/generation-architecture.md +10 -45
  10. package/docs/application/resource-command-policy-stage.md +2 -2
  11. package/docs/application/resource-graph.md +1 -1
  12. package/docs/application/resource-lifecycle-tracker.md +1 -9
  13. package/docs/application/resource-mapping.md +4 -9
  14. package/docs/application/resource-operations.md +4 -2
  15. package/docs/application/tracing.md +2 -6
  16. package/docs/development/code-documentation.md +2 -0
  17. package/docs/development/effect-native-development.md +44 -0
  18. package/docs/development/linting.md +1 -1
  19. package/docs/development/review-code.md +22 -6
  20. package/docs/development/review-remediation-spec.md +28 -37
  21. package/docs/development/spec-writing.md +1 -1
  22. package/docs/development/testing.md +23 -9
  23. package/docs/operations/observability-sop.md +11 -17
  24. package/docs/operations/releasing.md +3 -1
  25. package/examples/README.md +3 -26
  26. package/examples/commands.ts +2 -36
  27. package/examples/queue/application.ts +8 -2
  28. package/examples/state-machine/application.ts +3 -1
  29. package/package.json +40 -46
  30. package/providers/aws/README.md +21 -0
  31. package/providers/aws/awsEnvironment.ts +114 -0
  32. package/providers/aws/generated/managementRegistry.ts +136 -0
  33. package/{src/providers/aws/resources/generated/native/apigatewayv2/api/index.ts → providers/aws/generated/resources/apigatewayv2/api.ts} +13 -50
  34. package/{src/providers/aws/resources/generated/native/apigatewayv2/integration/index.ts → providers/aws/generated/resources/apigatewayv2/integration.ts} +13 -37
  35. package/{src/providers/aws/resources/generated/native/apigatewayv2/route/index.ts → providers/aws/generated/resources/apigatewayv2/route.ts} +23 -40
  36. package/{src/providers/aws/resources/generated/native/apigatewayv2/stage/index.ts → providers/aws/generated/resources/apigatewayv2/stage.ts} +13 -38
  37. package/providers/aws/generated/resources/iam/accesskey.ts +184 -0
  38. package/{src/providers/aws/resources/generated/native/iam/group/index.ts → providers/aws/generated/resources/iam/group.ts} +13 -38
  39. package/{src/providers/aws/resources/generated/native/iam/grouppolicy/index.ts → providers/aws/generated/resources/iam/grouppolicy.ts} +29 -59
  40. package/{src/providers/aws/resources/generated/native/iam/instanceprofile/index.ts → providers/aws/generated/resources/iam/instanceprofile.ts} +13 -41
  41. package/{src/providers/aws/resources/generated/native/iam/managedpolicy/index.ts → providers/aws/generated/resources/iam/managedpolicy.ts} +13 -95
  42. package/providers/aws/generated/resources/iam/oidcprovider.ts +314 -0
  43. package/{src/providers/aws/resources/generated/native/iam/policy/index.ts → providers/aws/generated/resources/iam/policy.ts} +13 -28
  44. package/{src/providers/aws/resources/generated/native/iam/role/index.ts → providers/aws/generated/resources/iam/role.ts} +13 -47
  45. package/{src/providers/aws/resources/generated/native/iam/rolepolicy/index.ts → providers/aws/generated/resources/iam/rolepolicy.ts} +29 -59
  46. package/providers/aws/generated/resources/iam/samlprovider.ts +463 -0
  47. package/providers/aws/generated/resources/iam/servercertificate.ts +465 -0
  48. package/providers/aws/generated/resources/iam/servicelinkedrole.ts +187 -0
  49. package/{src/providers/aws/resources/generated/native/iam/user/index.ts → providers/aws/generated/resources/iam/user.ts} +13 -38
  50. package/{src/providers/aws/resources/generated/native/iam/userpolicy/index.ts → providers/aws/generated/resources/iam/userpolicy.ts} +29 -59
  51. package/{src/providers/aws/resources/generated/native/iam/usertogroupaddition/index.ts → providers/aws/generated/resources/iam/usertogroupaddition.ts} +13 -27
  52. package/providers/aws/generated/resources/iam/virtualmfadevice.ts +298 -0
  53. package/{src/providers/aws/resources/generated/native/kms/key/index.ts → providers/aws/generated/resources/kms/key.ts} +13 -41
  54. package/{src/providers/aws/resources/generated/native/lambda/function/index.ts → providers/aws/generated/resources/lambda/function.ts} +13 -63
  55. package/{src/providers/aws/resources/generated/native/lambda/permission/index.ts → providers/aws/generated/resources/lambda/permission.ts} +13 -55
  56. package/{src/providers/aws/resources/generated/native/s3/bucket/index.ts → providers/aws/generated/resources/s3/bucket.ts} +14 -104
  57. package/{src/providers/aws/resources/generated/native/sns/topic/index.ts → providers/aws/generated/resources/sns/topic.ts} +14 -29
  58. package/{src/providers/aws/resources/generated/native/sqs/queue/index.ts → providers/aws/generated/resources/sqs/queue.ts} +14 -38
  59. package/{src/providers/aws/resources/generated/native/stepfunctions/statemachine/index.ts → providers/aws/generated/resources/stepfunctions/statemachine.ts} +15 -58
  60. package/providers/aws/management/mappings/iam/group.ts +63 -0
  61. package/providers/aws/management/mappings/iam/iamIdentity.ts +41 -0
  62. package/providers/aws/management/mappings/iam/iamLifecycleSettings.ts +8 -0
  63. package/providers/aws/management/mappings/iam/inlinePolicies.ts +159 -0
  64. package/providers/aws/management/mappings/iam/instanceProfile.ts +77 -0
  65. package/providers/aws/management/mappings/iam/oidcProvider.ts +94 -0
  66. package/providers/aws/management/mappings/iam/role.ts +74 -0
  67. package/providers/aws/management/mappings/iam/samlProvider.ts +98 -0
  68. package/providers/aws/management/mappings/iam/serverCertificate.ts +72 -0
  69. package/providers/aws/management/mappings/iam/user.ts +61 -0
  70. package/providers/aws/management/mappings/iam/userToGroupAddition.ts +75 -0
  71. package/providers/aws/management/operations/iam/accessKey.ts +206 -0
  72. package/providers/aws/management/operations/iam/managedPolicy.ts +491 -0
  73. package/providers/aws/management/operations/iam/policy.ts +476 -0
  74. package/providers/aws/management/operations/iam/serviceLinkedRole.ts +172 -0
  75. package/providers/aws/management/operations/iam/virtualMfaDevice.ts +253 -0
  76. package/providers/aws/management/resourceAssociationConfiguration.ts +112 -0
  77. package/providers/aws/management/resourceAssociationRegistration.ts +349 -0
  78. package/providers/aws/management/resourceAssociations.ts +168 -0
  79. package/{src/providers → providers}/aws/management/resourceConfiguration.ts +24 -26
  80. package/providers/aws/management/resourceLifecycleRegistration.ts +540 -0
  81. package/providers/aws/management/resourceManagementModule.ts +31 -0
  82. package/providers/aws/management/resourceManagementRegistry.ts +62 -0
  83. package/providers/aws/management/resourceMapping.ts +84 -0
  84. package/providers/aws/management/resourceOperation.ts +134 -0
  85. package/providers/aws/management/resourceTagOperations.ts +108 -0
  86. package/providers/aws/management/resourceTiming.ts +4 -0
  87. package/providers/aws/runtime.ts +52 -0
  88. package/src/core/resource/resourceCommandPolicy.ts +20 -0
  89. package/src/core/resource/resourceLifecycle.ts +644 -0
  90. package/src/core/resource/resourceStabilization.ts +120 -0
  91. package/src/core/resource/resourceVersions.ts +102 -0
  92. package/src/core/stack/planner.ts +9 -0
  93. package/src/core/stack/resourceStackLifecycle.ts +36 -3
  94. package/src/core/state/resourceState.ts +6 -4
  95. package/src/core/state/stateStore.ts +57 -10
  96. package/src/providers/file/resourcePolicy.ts +13 -12
  97. package/src/providers/providerRuntimeLayer.ts +5 -2
  98. package/src/providers/resourceCommandPolicyLayer.ts +117 -37
  99. package/src/providers/stripe/management/resourcePolicy.ts +22 -11
  100. package/examples/http-echo/application.ts +0 -87
  101. package/src/providers/aws/client/awsClient.ts +0 -418
  102. package/src/providers/aws/client/awsClientConfig.ts +0 -133
  103. package/src/providers/aws/client/awsClientModel.ts +0 -119
  104. package/src/providers/aws/client/awsHttpOperation.ts +0 -153
  105. package/src/providers/aws/client/awsQueryOperation.ts +0 -149
  106. package/src/providers/aws/client/awsRequestSigner.ts +0 -115
  107. package/src/providers/aws/client/awsResponseDecoder.ts +0 -135
  108. package/src/providers/aws/client/awsRetryPolicy.ts +0 -62
  109. package/src/providers/aws/client/generated/apiGatewayV2.ts +0 -3025
  110. package/src/providers/aws/client/generated/cloudControl.ts +0 -5746
  111. package/src/providers/aws/client/generated/iam.ts +0 -10892
  112. package/src/providers/aws/client/generated/lambda.ts +0 -5403
  113. package/src/providers/aws/client/generated/sqs.ts +0 -3769
  114. package/src/providers/aws/client/generated/stepFunctions.ts +0 -1726
  115. package/src/providers/aws/client/openapi/cloudControl/CancelResourceRequest.json +0 -579
  116. package/src/providers/aws/client/openapi/cloudControl/CreateResource.json +0 -1019
  117. package/src/providers/aws/client/openapi/cloudControl/DeleteResource.json +0 -1018
  118. package/src/providers/aws/client/openapi/cloudControl/GetResource.json +0 -883
  119. package/src/providers/aws/client/openapi/cloudControl/GetResourceRequestStatus.json +0 -655
  120. package/src/providers/aws/client/openapi/cloudControl/ListResourceRequests.json +0 -566
  121. package/src/providers/aws/client/openapi/cloudControl/ListResources.json +0 -913
  122. package/src/providers/aws/client/openapi/cloudControl/UpdateResource.json +0 -1027
  123. package/src/providers/aws/cloudControl/client.ts +0 -69
  124. package/src/providers/aws/cloudControl/requestTracker.ts +0 -138
  125. package/src/providers/aws/cloudControl/resourceCommandPolicyLayer.ts +0 -63
  126. package/src/providers/aws/cloudControl/resourceLifecycle.ts +0 -479
  127. package/src/providers/aws/cloudControl/resources/generated/certificatemanager/certificate/index.ts +0 -179
  128. package/src/providers/aws/cloudControl/resources/generated/kms/key/index.ts +0 -362
  129. package/src/providers/aws/cloudControl/resources/generated/s3/bucket/index.ts +0 -2364
  130. package/src/providers/aws/cloudControl/resources/generated/sns/topic/index.ts +0 -326
  131. package/src/providers/aws/cloudControl/resources/generated/sqs/queue/index.ts +0 -307
  132. package/src/providers/aws/cloudControl/resources/generated/sqs/queueinlinepolicy/index.ts +0 -108
  133. package/src/providers/aws/cloudControl/runtime.ts +0 -127
  134. package/src/providers/aws/management/resourceMapping.ts +0 -343
  135. package/src/providers/aws/management/resourceOperation.ts +0 -57
  136. package/src/providers/aws/management/resourcePolicy.ts +0 -549
  137. package/src/providers/aws/management/resourceRegistration.ts +0 -294
  138. package/src/providers/aws/resources/apiGatewayV2/httpApi.ts +0 -327
  139. package/src/providers/aws/resources/generated/native/resourceCommands.ts +0 -152
  140. package/src/providers/aws/resources/iam/grant.ts +0 -150
  141. package/src/providers/aws/resources/iam/grantCommands.ts +0 -283
  142. package/src/providers/aws/resources/iam/policyDocument.ts +0 -30
  143. package/src/providers/aws/resources/iam/policyStatement.ts +0 -59
  144. package/src/providers/aws/resources/iam/role.ts +0 -426
  145. package/src/providers/aws/resources/iam/roleDeclaration.ts +0 -105
  146. package/src/providers/aws/resources/lambda/function.ts +0 -403
  147. package/src/providers/aws/resources/lambda/functionDeclaration.ts +0 -234
  148. package/src/providers/aws/resources/lambda/permission.ts +0 -363
  149. package/src/providers/aws/resources/stepFunctions/stateMachine.ts +0 -95
  150. package/src/providers/aws/runtime.ts +0 -70
@@ -9,7 +9,7 @@ import {
9
9
  ResourceReferenceSchema,
10
10
  ResourceSchemaAnnotationSchema,
11
11
  } from "nomoss/core";
12
- import { ResourceOutputBinding } from "../../../../../../../core/resource/resourceOutputBinding.js";
12
+ import { ResourceOutputBinding } from "../../../../../src/core/resource/resourceOutputBinding.js";
13
13
 
14
14
  interface FunctionScalingConfig {
15
15
  readonly MinExecutionEnvironments?: number;
@@ -1258,6 +1258,7 @@ export const AWSFunctionResourceSchema = ResourceSchemaAnnotationSchema.make({
1258
1258
  },
1259
1259
  primaryIdentifier: ["/properties/FunctionName"],
1260
1260
  });
1261
+
1261
1262
  export const AWSFunctionPropsSchema = annotateResourceSchema(
1262
1263
  Schema.Struct({
1263
1264
  FunctionScalingConfig: Schema.optionalKey(FunctionScalingConfig),
@@ -1785,7 +1786,14 @@ export const AWSFunctionRequestSchema = Schema.Struct({
1785
1786
  ),
1786
1787
  ),
1787
1788
  });
1789
+
1790
+ /**
1791
+ * The AWSFunctionRelationshipIssues array lists inputs that can use several outputs
1792
+ * from one source type. Each input retains its provider value until a reviewed
1793
+ * mapping chooses an output.
1794
+ */
1788
1795
  export const AWSFunctionRelationshipIssues = [];
1796
+
1789
1797
  export const AWSFunctionResourceTypeSchema = Schema.Struct({
1790
1798
  provider: Schema.Literal("aws"),
1791
1799
  service: Schema.Literal("lambda"),
@@ -1883,7 +1891,10 @@ export function createAWSFunctionDeclaration<Props>(
1883
1891
  return resource;
1884
1892
  }
1885
1893
 
1886
- /** The AWSFunction resource factory validates properties and registers the resource in the shared graph. Provider values become available after apply saves the resource. */
1894
+ /**
1895
+ * The AWSFunction resource factory registers a validated declaration in the
1896
+ * stack graph. Its outputs become available after apply saves the resource.
1897
+ */
1887
1898
  export const AWSFunction = Effect.fn("AWSFunction")(function* (input: {
1888
1899
  logicalId: string;
1889
1900
  props: AWSFunctionProps;
@@ -1911,64 +1922,3 @@ export const AWSFunction = Effect.fn("AWSFunction")(function* (input: {
1911
1922
 
1912
1923
  return resource;
1913
1924
  });
1914
- export const AWSFunctionOutputCatalog = [
1915
- {
1916
- source: {
1917
- provider: "AWS",
1918
- service: "CloudFormation",
1919
- name: "refs/aws-cdk-service-spec/sources/CloudFormationSchema/us-east-1/aws-lambda-function.json",
1920
- format: "CloudFormation",
1921
- },
1922
- typeName: "AWS::Lambda::Function",
1923
- resource: "function",
1924
- primaryIdentifier: ["/properties/FunctionName"],
1925
- createOnlyProperties: [
1926
- "/properties/FunctionName",
1927
- "/properties/PackageType",
1928
- "/properties/TenancyConfig",
1929
- ],
1930
- writeOnlyProperties: [
1931
- "/properties/SnapStart",
1932
- "/properties/SnapStart/ApplyOn",
1933
- "/properties/Code/ImageUri",
1934
- "/properties/Code/S3Bucket",
1935
- "/properties/Code/S3Key",
1936
- "/properties/Code/S3ObjectVersion",
1937
- "/properties/Code/ZipFile",
1938
- "/properties/Code/SourceKMSKeyArn",
1939
- "/properties/Code/S3ObjectStorageMode",
1940
- "/properties/PublishToLatestPublished",
1941
- ],
1942
- outputs: {
1943
- SnapStartResponse: {
1944
- schema: {
1945
- description: "",
1946
- $ref: "#/definitions/SnapStartResponse",
1947
- },
1948
- schemaPath: "/properties/SnapStartResponse",
1949
- valuePath: "/SnapStartResponse",
1950
- required: false,
1951
- },
1952
- Arn: {
1953
- schema: {
1954
- description: "",
1955
- type: "string",
1956
- },
1957
- schemaPath: "/properties/Arn",
1958
- valuePath: "/Arn",
1959
- required: false,
1960
- },
1961
- FunctionName: {
1962
- schema: {
1963
- minLength: 1,
1964
- description:
1965
- "The name of the Lambda function, up to 64 characters in length. If you don't specify a name, CFN generates one.\n If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.",
1966
- type: "string",
1967
- },
1968
- schemaPath: "/properties/FunctionName",
1969
- valuePath: "/FunctionName",
1970
- required: false,
1971
- },
1972
- },
1973
- },
1974
- ];
@@ -9,7 +9,7 @@ import {
9
9
  ResourceReferenceSchema,
10
10
  ResourceSchemaAnnotationSchema,
11
11
  } from "nomoss/core";
12
- import { ResourceOutputBinding } from "../../../../../../../core/resource/resourceOutputBinding.js";
12
+ import { ResourceOutputBinding } from "../../../../../src/core/resource/resourceOutputBinding.js";
13
13
 
14
14
  export interface AWSPermissionProps {
15
15
  readonly Action: string;
@@ -123,6 +123,7 @@ export const AWSPermissionResourceSchema = ResourceSchemaAnnotationSchema.make({
123
123
  },
124
124
  primaryIdentifier: ["/properties/FunctionName", "/properties/Id"],
125
125
  });
126
+
126
127
  export const AWSPermissionPropsSchema = annotateResourceSchema(
127
128
  Schema.Struct({
128
129
  Action: Schema.String.annotate({
@@ -790,7 +791,14 @@ export const AWSPermissionRequestSchema = Schema.Struct({
790
791
  ),
791
792
  ),
792
793
  });
794
+
795
+ /**
796
+ * The AWSPermissionRelationshipIssues array lists inputs that can use several outputs
797
+ * from one source type. Each input retains its provider value until a reviewed
798
+ * mapping chooses an output.
799
+ */
793
800
  export const AWSPermissionRelationshipIssues = [];
801
+
794
802
  export const AWSPermissionResourceTypeSchema = Schema.Struct({
795
803
  provider: Schema.Literal("aws"),
796
804
  service: Schema.Literal("lambda"),
@@ -870,7 +878,10 @@ export function createAWSPermissionDeclaration<Props>(
870
878
  return resource;
871
879
  }
872
880
 
873
- /** The AWSPermission resource factory validates properties and registers the resource in the shared graph. Provider values become available after apply saves the resource. */
881
+ /**
882
+ * The AWSPermission resource factory registers a validated declaration in the
883
+ * stack graph. Its outputs become available after apply saves the resource.
884
+ */
874
885
  export const AWSPermission = Effect.fn("AWSPermission")(function* (input: {
875
886
  logicalId: string;
876
887
  props: AWSPermissionProps;
@@ -900,56 +911,3 @@ export const AWSPermission = Effect.fn("AWSPermission")(function* (input: {
900
911
 
901
912
  return resource;
902
913
  });
903
- export const AWSPermissionOutputCatalog = [
904
- {
905
- source: {
906
- provider: "AWS",
907
- service: "CloudFormation",
908
- name: "refs/aws-cdk-service-spec/sources/CloudFormationSchema/us-east-1/aws-lambda-permission.json",
909
- format: "CloudFormation",
910
- },
911
- typeName: "AWS::Lambda::Permission",
912
- resource: "permission",
913
- primaryIdentifier: ["/properties/FunctionName", "/properties/Id"],
914
- createOnlyProperties: [
915
- "/properties/FunctionName",
916
- "/properties/FunctionUrlAuthType",
917
- "/properties/InvokedViaFunctionUrl",
918
- "/properties/SourceAccount",
919
- "/properties/SourceArn",
920
- "/properties/Principal",
921
- "/properties/PrincipalOrgID",
922
- "/properties/Action",
923
- "/properties/EventSourceToken",
924
- ],
925
- writeOnlyProperties: [],
926
- outputs: {
927
- Id: {
928
- schema: {
929
- description: "",
930
- type: "string",
931
- pattern: "^.*$",
932
- minLength: 1,
933
- maxLength: 256,
934
- },
935
- schemaPath: "/properties/Id",
936
- valuePath: "/Id",
937
- required: false,
938
- },
939
- FunctionName: {
940
- schema: {
941
- description:
942
- "The name or ARN of the Lambda function, version, or alias.\n **Name formats**\n + *Function name* \u2013 ``my-function`` (name-only), ``my-function:v1`` (with alias).\n + *Function ARN* \u2013 ``arn:aws:lambda:us-west-2:123456789012:function:my-function``.\n + *Partial ARN* \u2013 ``123456789012:function:my-function``.\n \n You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.",
943
- type: "string",
944
- pattern:
945
- "^(arn:(aws[a-zA-Z-]*)?:lambda:)?((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\\$LATEST|[a-zA-Z0-9-_]+))?$",
946
- minLength: 1,
947
- maxLength: 140,
948
- },
949
- schemaPath: "/properties/FunctionName",
950
- valuePath: "/FunctionName",
951
- required: true,
952
- },
953
- },
954
- },
955
- ];
@@ -9,7 +9,7 @@ import {
9
9
  ResourceReferenceSchema,
10
10
  ResourceSchemaAnnotationSchema,
11
11
  } from "nomoss/core";
12
- import { ResourceOutputBinding } from "../../../../../../../core/resource/resourceOutputBinding.js";
12
+ import { ResourceOutputBinding } from "../../../../../src/core/resource/resourceOutputBinding.js";
13
13
 
14
14
  interface AccelerateConfiguration {
15
15
  readonly AccelerationStatus: "Enabled" | "Suspended";
@@ -2802,6 +2802,7 @@ export const AWSBucketResourceSchema = ResourceSchemaAnnotationSchema.make({
2802
2802
  },
2803
2803
  primaryIdentifier: ["/properties/BucketName"],
2804
2804
  });
2805
+
2805
2806
  export const AWSBucketPropsSchema = annotateResourceSchema(
2806
2807
  Schema.Struct({
2807
2808
  AccelerateConfiguration: Schema.optionalKey(AccelerateConfiguration),
@@ -3129,6 +3130,12 @@ export const AWSBucketRequestSchema = Schema.Struct({
3129
3130
  VersioningConfiguration: Schema.optionalKey(VersioningConfiguration),
3130
3131
  WebsiteConfiguration: Schema.optionalKey(WebsiteConfiguration),
3131
3132
  });
3133
+
3134
+ /**
3135
+ * The AWSBucketRelationshipIssues array lists inputs that can use several outputs
3136
+ * from one source type. Each input retains its provider value until a reviewed
3137
+ * mapping chooses an output.
3138
+ */
3132
3139
  export const AWSBucketRelationshipIssues = [
3133
3140
  {
3134
3141
  propertyPath: [
@@ -3141,9 +3148,10 @@ export const AWSBucketRelationshipIssues = [
3141
3148
  sourceType: "AWS::KMS::Key",
3142
3149
  sourceProperties: [["Arn"], ["KeyId"]],
3143
3150
  message:
3144
- "Several source properties are permitted; an entity mapping requires a reviewed selection",
3151
+ "Choose one of the permitted source properties before using a resource reference",
3145
3152
  },
3146
3153
  ];
3154
+
3147
3155
  export const AWSBucketResourceTypeSchema = Schema.Struct({
3148
3156
  provider: Schema.Literal("aws"),
3149
3157
  service: Schema.Literal("s3"),
@@ -3284,7 +3292,10 @@ export function createAWSBucketDeclaration<Props>(
3284
3292
  return resource;
3285
3293
  }
3286
3294
 
3287
- /** The AWSBucket resource factory validates properties and registers the resource in the shared graph. Provider values become available after apply saves the resource. */
3295
+ /**
3296
+ * The AWSBucket resource factory registers a validated declaration in the
3297
+ * stack graph. Its outputs become available after apply saves the resource.
3298
+ */
3288
3299
  export const AWSBucket = Effect.fn("AWSBucket")(function* (input: {
3289
3300
  logicalId: string;
3290
3301
  props: AWSBucketProps;
@@ -3312,104 +3323,3 @@ export const AWSBucket = Effect.fn("AWSBucket")(function* (input: {
3312
3323
 
3313
3324
  return resource;
3314
3325
  });
3315
- export const AWSBucketOutputCatalog = [
3316
- {
3317
- source: {
3318
- provider: "AWS",
3319
- service: "CloudFormation",
3320
- name: "refs/aws-cdk-service-spec/sources/CloudFormationSchema/us-east-1/aws-s3-bucket.json",
3321
- format: "CloudFormation",
3322
- },
3323
- typeName: "AWS::S3::Bucket",
3324
- resource: "bucket",
3325
- primaryIdentifier: ["/properties/BucketName"],
3326
- createOnlyProperties: [
3327
- "/properties/BucketName",
3328
- "/properties/BucketNamePrefix",
3329
- "/properties/BucketNamespace",
3330
- ],
3331
- writeOnlyProperties: [
3332
- "/properties/AccessControl",
3333
- "/properties/BucketNamePrefix",
3334
- "/properties/BucketNamespace",
3335
- "/properties/MetadataConfiguration/JournalTableConfiguration/EncryptionConfiguration",
3336
- "/properties/MetadataConfiguration/InventoryTableConfiguration/EncryptionConfiguration",
3337
- "/properties/MetadataConfiguration/AnnotationTableConfiguration/EncryptionConfiguration",
3338
- "/properties/LifecycleConfiguration/Rules/*/NoncurrentVersionExpirationInDays",
3339
- "/properties/LifecycleConfiguration/Rules/*/NoncurrentVersionTransition",
3340
- "/properties/LifecycleConfiguration/Rules/*/Transition",
3341
- "/properties/ReplicationConfiguration/Rules/*/Prefix",
3342
- "/properties/LifecycleConfiguration/Rules/*/ExpiredObjectDeleteMarker",
3343
- ],
3344
- outputs: {
3345
- Arn: {
3346
- schema: {
3347
- $ref: "#/definitions/Arn",
3348
- description: "",
3349
- examples: ["arn:aws:s3:::mybucket"],
3350
- },
3351
- schemaPath: "/properties/Arn",
3352
- valuePath: "/Arn",
3353
- required: false,
3354
- },
3355
- DomainName: {
3356
- schema: {
3357
- description: "",
3358
- examples: ["mystack-mybucket-kdwwxmddtr2g.s3.amazonaws.com"],
3359
- type: "string",
3360
- },
3361
- schemaPath: "/properties/DomainName",
3362
- valuePath: "/DomainName",
3363
- required: false,
3364
- },
3365
- DualStackDomainName: {
3366
- schema: {
3367
- description: "",
3368
- examples: [
3369
- "mystack-mybucket-kdwwxmddtr2g.s3.dualstack.us-east-2.amazonaws.com",
3370
- ],
3371
- type: "string",
3372
- },
3373
- schemaPath: "/properties/DualStackDomainName",
3374
- valuePath: "/DualStackDomainName",
3375
- required: false,
3376
- },
3377
- RegionalDomainName: {
3378
- schema: {
3379
- description: "",
3380
- examples: [
3381
- "mystack-mybucket-kdwwxmddtr2g.s3.us-east-2.amazonaws.com",
3382
- ],
3383
- type: "string",
3384
- },
3385
- schemaPath: "/properties/RegionalDomainName",
3386
- valuePath: "/RegionalDomainName",
3387
- required: false,
3388
- },
3389
- WebsiteURL: {
3390
- schema: {
3391
- description: "",
3392
- examples: [
3393
- "Example (IPv4): http://mystack-mybucket-kdwwxmddtr2g.s3-website-us-east-2.amazonaws.com/",
3394
- "Example (IPv6): http://mystack-mybucket-kdwwxmddtr2g.s3.dualstack.us-east-2.amazonaws.com/",
3395
- ],
3396
- format: "uri",
3397
- type: "string",
3398
- },
3399
- schemaPath: "/properties/WebsiteURL",
3400
- valuePath: "/WebsiteURL",
3401
- required: false,
3402
- },
3403
- BucketName: {
3404
- schema: {
3405
- description:
3406
- "A name for the bucket. If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID for the bucket name. The bucket name must contain only lowercase letters, numbers, periods (.), and dashes (-) and must follow [Amazon S3 bucket restrictions and limitations](https://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html). For more information, see [Rules for naming Amazon S3 buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html) in the *Amazon S3 User Guide*. \n If you specify a name, you can't perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you need to replace the resource, specify a new name.",
3407
- type: "string",
3408
- },
3409
- schemaPath: "/properties/BucketName",
3410
- valuePath: "/BucketName",
3411
- required: false,
3412
- },
3413
- },
3414
- },
3415
- ];
@@ -9,7 +9,7 @@ import {
9
9
  ResourceReferenceSchema,
10
10
  ResourceSchemaAnnotationSchema,
11
11
  } from "nomoss/core";
12
- import { ResourceOutputBinding } from "../../../../../../../core/resource/resourceOutputBinding.js";
12
+ import { ResourceOutputBinding } from "../../../../../src/core/resource/resourceOutputBinding.js";
13
13
 
14
14
  interface Subscription {
15
15
  readonly Endpoint:
@@ -195,6 +195,7 @@ export const AWSTopicResourceSchema = ResourceSchemaAnnotationSchema.make({
195
195
  },
196
196
  primaryIdentifier: ["/properties/TopicArn"],
197
197
  });
198
+
198
199
  export const AWSTopicPropsSchema = annotateResourceSchema(
199
200
  Schema.Struct({
200
201
  DisplayName: Schema.optionalKey(
@@ -421,15 +422,22 @@ export const AWSTopicRequestSchema = Schema.Struct({
421
422
  ),
422
423
  ),
423
424
  });
425
+
426
+ /**
427
+ * The AWSTopicRelationshipIssues array lists inputs that can use several outputs
428
+ * from one source type. Each input retains its provider value until a reviewed
429
+ * mapping chooses an output.
430
+ */
424
431
  export const AWSTopicRelationshipIssues = [
425
432
  {
426
433
  propertyPath: ["KmsMasterKeyId"],
427
434
  sourceType: "AWS::KMS::Key",
428
435
  sourceProperties: [["Arn"], ["KeyId"]],
429
436
  message:
430
- "Several source properties are permitted; an entity mapping requires a reviewed selection",
437
+ "Choose one of the permitted source properties before using a resource reference",
431
438
  },
432
439
  ];
440
+
433
441
  export const AWSTopicResourceTypeSchema = Schema.Struct({
434
442
  provider: Schema.Literal("aws"),
435
443
  service: Schema.Literal("sns"),
@@ -495,7 +503,10 @@ export function createAWSTopicDeclaration<Props>(
495
503
  return resource;
496
504
  }
497
505
 
498
- /** The AWSTopic resource factory validates properties and registers the resource in the shared graph. Provider values become available after apply saves the resource. */
506
+ /**
507
+ * The AWSTopic resource factory registers a validated declaration in the
508
+ * stack graph. Its outputs become available after apply saves the resource.
509
+ */
499
510
  export const AWSTopic = Effect.fn("AWSTopic")(function* (input: {
500
511
  logicalId: string;
501
512
  props: AWSTopicProps;
@@ -523,29 +534,3 @@ export const AWSTopic = Effect.fn("AWSTopic")(function* (input: {
523
534
 
524
535
  return resource;
525
536
  });
526
- export const AWSTopicOutputCatalog = [
527
- {
528
- source: {
529
- provider: "AWS",
530
- service: "CloudFormation",
531
- name: "refs/aws-cdk-service-spec/sources/CloudFormationSchema/us-east-1/aws-sns-topic.json",
532
- format: "CloudFormation",
533
- },
534
- typeName: "AWS::SNS::Topic",
535
- resource: "topic",
536
- primaryIdentifier: ["/properties/TopicArn"],
537
- createOnlyProperties: ["/properties/TopicName", "/properties/FifoTopic"],
538
- writeOnlyProperties: [],
539
- outputs: {
540
- TopicArn: {
541
- schema: {
542
- type: "string",
543
- description: "",
544
- },
545
- schemaPath: "/properties/TopicArn",
546
- valuePath: "/TopicArn",
547
- required: false,
548
- },
549
- },
550
- },
551
- ];
@@ -9,7 +9,7 @@ import {
9
9
  ResourceReferenceSchema,
10
10
  ResourceSchemaAnnotationSchema,
11
11
  } from "nomoss/core";
12
- import { ResourceOutputBinding } from "../../../../../../../core/resource/resourceOutputBinding.js";
12
+ import { ResourceOutputBinding } from "../../../../../src/core/resource/resourceOutputBinding.js";
13
13
 
14
14
  interface Tag {
15
15
  readonly Key: string;
@@ -66,6 +66,7 @@ export const AWSQueueResourceSchema = ResourceSchemaAnnotationSchema.make({
66
66
  },
67
67
  primaryIdentifier: ["/properties/QueueUrl"],
68
68
  });
69
+
69
70
  export const AWSQueuePropsSchema = annotateResourceSchema(
70
71
  Schema.Struct({
71
72
  ContentBasedDeduplication: Schema.optionalKey(
@@ -347,15 +348,22 @@ export const AWSQueueRequestSchema = Schema.Struct({
347
348
  }).check(Schema.isInt().annotate({ expected: "an integer" })),
348
349
  ),
349
350
  });
351
+
352
+ /**
353
+ * The AWSQueueRelationshipIssues array lists inputs that can use several outputs
354
+ * from one source type. Each input retains its provider value until a reviewed
355
+ * mapping chooses an output.
356
+ */
350
357
  export const AWSQueueRelationshipIssues = [
351
358
  {
352
359
  propertyPath: ["KmsMasterKeyId"],
353
360
  sourceType: "AWS::KMS::Key",
354
361
  sourceProperties: [["Arn"], ["KeyId"]],
355
362
  message:
356
- "Several source properties are permitted; an entity mapping requires a reviewed selection",
363
+ "Choose one of the permitted source properties before using a resource reference",
357
364
  },
358
365
  ];
366
+
359
367
  export const AWSQueueResourceTypeSchema = Schema.Struct({
360
368
  provider: Schema.Literal("aws"),
361
369
  service: Schema.Literal("sqs"),
@@ -435,7 +443,10 @@ export function createAWSQueueDeclaration<Props>(
435
443
  return resource;
436
444
  }
437
445
 
438
- /** The AWSQueue resource factory validates properties and registers the resource in the shared graph. Provider values become available after apply saves the resource. */
446
+ /**
447
+ * The AWSQueue resource factory registers a validated declaration in the
448
+ * stack graph. Its outputs become available after apply saves the resource.
449
+ */
439
450
  export const AWSQueue = Effect.fn("AWSQueue")(function* (input: {
440
451
  logicalId: string;
441
452
  props: AWSQueueProps;
@@ -463,38 +474,3 @@ export const AWSQueue = Effect.fn("AWSQueue")(function* (input: {
463
474
 
464
475
  return resource;
465
476
  });
466
- export const AWSQueueOutputCatalog = [
467
- {
468
- source: {
469
- provider: "AWS",
470
- service: "CloudFormation",
471
- name: "refs/aws-cdk-service-spec/sources/CloudFormationSchema/us-east-1/aws-sqs-queue.json",
472
- format: "CloudFormation",
473
- },
474
- typeName: "AWS::SQS::Queue",
475
- resource: "queue",
476
- primaryIdentifier: ["/properties/QueueUrl"],
477
- createOnlyProperties: ["/properties/FifoQueue", "/properties/QueueName"],
478
- writeOnlyProperties: [],
479
- outputs: {
480
- QueueUrl: {
481
- schema: {
482
- type: "string",
483
- description: "",
484
- },
485
- schemaPath: "/properties/QueueUrl",
486
- valuePath: "/QueueUrl",
487
- required: false,
488
- },
489
- Arn: {
490
- schema: {
491
- type: "string",
492
- description: "",
493
- },
494
- schemaPath: "/properties/Arn",
495
- valuePath: "/Arn",
496
- required: false,
497
- },
498
- },
499
- },
500
- ];
@@ -9,7 +9,7 @@ import {
9
9
  ResourceReferenceSchema,
10
10
  ResourceSchemaAnnotationSchema,
11
11
  } from "nomoss/core";
12
- import { ResourceOutputBinding } from "../../../../../../../core/resource/resourceOutputBinding.js";
12
+ import { ResourceOutputBinding } from "../../../../../src/core/resource/resourceOutputBinding.js";
13
13
 
14
14
  interface CloudWatchLogsLogGroup {
15
15
  readonly LogGroupArn?:
@@ -299,6 +299,7 @@ export const AWSStateMachineResourceSchema =
299
299
  },
300
300
  primaryIdentifier: ["/properties/Arn"],
301
301
  });
302
+
302
303
  export const AWSStateMachinePropsSchema = annotateResourceSchema(
303
304
  Schema.Struct({
304
305
  DefinitionString: Schema.optionalKey(
@@ -565,22 +566,29 @@ export const AWSStateMachineRequestSchema = Schema.Struct({
565
566
  Definition: Schema.optionalKey(Definition),
566
567
  Tags: Schema.optionalKey(Schema.Array(TagsEntry)),
567
568
  });
569
+
570
+ /**
571
+ * The AWSStateMachineRelationshipIssues array lists inputs that can use several outputs
572
+ * from one source type. Each input retains its provider value until a reviewed
573
+ * mapping chooses an output.
574
+ */
568
575
  export const AWSStateMachineRelationshipIssues = [
569
576
  {
570
577
  propertyPath: ["DefinitionString"],
571
578
  sourceType: "AWS::Lambda::Function",
572
579
  sourceProperties: [["Arn"], ["FunctionName"]],
573
580
  message:
574
- "Several source properties are permitted; an entity mapping requires a reviewed selection",
581
+ "Choose one of the permitted source properties before using a resource reference",
575
582
  },
576
583
  {
577
584
  propertyPath: ["DefinitionString"],
578
585
  sourceType: "AWS::DynamoDB::Table",
579
586
  sourceProperties: [["Arn"], ["TableName"]],
580
587
  message:
581
- "Several source properties are permitted; an entity mapping requires a reviewed selection",
588
+ "Choose one of the permitted source properties before using a resource reference",
582
589
  },
583
590
  ];
591
+
584
592
  export const AWSStateMachineResourceTypeSchema = Schema.Struct({
585
593
  provider: Schema.Literal("aws"),
586
594
  service: Schema.Literal("stepfunctions"),
@@ -677,7 +685,10 @@ export function createAWSStateMachineDeclaration<Props>(
677
685
  return resource;
678
686
  }
679
687
 
680
- /** The AWSStateMachine resource factory validates properties and registers the resource in the shared graph. Provider values become available after apply saves the resource. */
688
+ /**
689
+ * The AWSStateMachine resource factory registers a validated declaration in the
690
+ * stack graph. Its outputs become available after apply saves the resource.
691
+ */
681
692
  export const AWSStateMachine = Effect.fn("AWSStateMachine")(function* (input: {
682
693
  logicalId: string;
683
694
  props: AWSStateMachineProps;
@@ -707,57 +718,3 @@ export const AWSStateMachine = Effect.fn("AWSStateMachine")(function* (input: {
707
718
 
708
719
  return resource;
709
720
  });
710
- export const AWSStateMachineOutputCatalog = [
711
- {
712
- source: {
713
- provider: "AWS",
714
- service: "CloudFormation",
715
- name: "refs/aws-cdk-service-spec/sources/CloudFormationSchema/us-east-1/aws-stepfunctions-statemachine.json",
716
- format: "CloudFormation",
717
- },
718
- typeName: "AWS::StepFunctions::StateMachine",
719
- resource: "statemachine",
720
- primaryIdentifier: ["/properties/Arn"],
721
- createOnlyProperties: [
722
- "/properties/StateMachineName",
723
- "/properties/StateMachineType",
724
- ],
725
- writeOnlyProperties: [
726
- "/properties/Definition",
727
- "/properties/DefinitionS3Location",
728
- "/properties/DefinitionSubstitutions",
729
- ],
730
- outputs: {
731
- Arn: {
732
- schema: {
733
- type: "string",
734
- minLength: 1,
735
- maxLength: 2048,
736
- },
737
- schemaPath: "/properties/Arn",
738
- valuePath: "/Arn",
739
- required: false,
740
- },
741
- Name: {
742
- schema: {
743
- type: "string",
744
- minLength: 1,
745
- maxLength: 80,
746
- },
747
- schemaPath: "/properties/Name",
748
- valuePath: "/Name",
749
- required: false,
750
- },
751
- StateMachineRevisionId: {
752
- schema: {
753
- type: "string",
754
- minLength: 1,
755
- maxLength: 256,
756
- },
757
- schemaPath: "/properties/StateMachineRevisionId",
758
- valuePath: "/StateMachineRevisionId",
759
- required: false,
760
- },
761
- },
762
- },
763
- ];