alchemy 2.0.0-beta.1 → 2.0.0-beta.3

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 (144) hide show
  1. package/bin/alchemy-effect.js +31 -16
  2. package/bin/alchemy-effect.js.map +1 -1
  3. package/bin/alchemy-effect.sh +2 -3
  4. package/bin/alchemy-effect.ts +3 -3
  5. package/lib/cli/index.d.ts +39 -36
  6. package/lib/cli/index.d.ts.map +1 -1
  7. package/package.json +18 -9
  8. package/src/AWS/ACM/Certificate.ts +49 -46
  9. package/src/AWS/AutoScaling/AutoScalingGroup.ts +4 -1
  10. package/src/AWS/AutoScaling/LaunchTemplate.ts +3 -1
  11. package/src/AWS/AutoScaling/ScalingPolicy.ts +4 -1
  12. package/src/AWS/CloudFront/Distribution.ts +4 -1
  13. package/src/AWS/CloudFront/Function.ts +4 -1
  14. package/src/AWS/CloudFront/Invalidation.ts +4 -1
  15. package/src/AWS/CloudFront/KeyValueStore.ts +4 -1
  16. package/src/AWS/CloudFront/KvEntries.ts +4 -1
  17. package/src/AWS/CloudFront/KvRoutesUpdate.ts +4 -1
  18. package/src/AWS/CloudFront/OriginAccessControl.ts +4 -1
  19. package/src/AWS/CloudWatch/Alarm.ts +4 -1
  20. package/src/AWS/CloudWatch/AlarmMuteRule.ts +4 -1
  21. package/src/AWS/CloudWatch/AnomalyDetector.ts +4 -1
  22. package/src/AWS/CloudWatch/CompositeAlarm.ts +4 -1
  23. package/src/AWS/CloudWatch/Dashboard.ts +4 -1
  24. package/src/AWS/CloudWatch/InsightRule.ts +4 -1
  25. package/src/AWS/CloudWatch/MetricStream.ts +4 -1
  26. package/src/AWS/DynamoDB/Table.ts +3 -1
  27. package/src/AWS/EC2/EIP.ts +4 -1
  28. package/src/AWS/EC2/EgressOnlyInternetGateway.ts +4 -1
  29. package/src/AWS/EC2/Instance.ts +3 -1
  30. package/src/AWS/EC2/InternetGateway.ts +4 -1
  31. package/src/AWS/EC2/NatGateway.ts +4 -1
  32. package/src/AWS/EC2/NetworkAcl.ts +4 -1
  33. package/src/AWS/EC2/NetworkAclAssociation.ts +4 -1
  34. package/src/AWS/EC2/NetworkAclEntry.ts +4 -1
  35. package/src/AWS/EC2/Route.ts +4 -1
  36. package/src/AWS/EC2/RouteTable.ts +4 -1
  37. package/src/AWS/EC2/RouteTableAssociation.ts +4 -1
  38. package/src/AWS/EC2/SecurityGroup.ts +4 -1
  39. package/src/AWS/EC2/SecurityGroupRule.ts +4 -1
  40. package/src/AWS/EC2/Subnet.ts +4 -1
  41. package/src/AWS/EC2/Vpc.ts +4 -1
  42. package/src/AWS/EC2/VpcEndpoint.ts +4 -1
  43. package/src/AWS/ECR/Repository.ts +4 -1
  44. package/src/AWS/ECS/Cluster.ts +4 -1
  45. package/src/AWS/ECS/Service.ts +4 -1
  46. package/src/AWS/ECS/Task.ts +3 -1
  47. package/src/AWS/EKS/AccessEntry.ts +4 -1
  48. package/src/AWS/EKS/Addon.ts +4 -1
  49. package/src/AWS/EKS/Cluster.ts +3 -1
  50. package/src/AWS/EKS/PodIdentityAssociation.ts +4 -1
  51. package/src/AWS/ELBv2/Listener.ts +4 -1
  52. package/src/AWS/ELBv2/LoadBalancer.ts +4 -1
  53. package/src/AWS/ELBv2/TargetGroup.ts +4 -1
  54. package/src/AWS/EventBridge/EventBus.ts +4 -1
  55. package/src/AWS/EventBridge/Permission.ts +4 -1
  56. package/src/AWS/EventBridge/Rule.ts +4 -1
  57. package/src/AWS/IAM/AccessKey.ts +4 -1
  58. package/src/AWS/IAM/AccountAlias.ts +4 -1
  59. package/src/AWS/IAM/AccountPasswordPolicy.ts +4 -1
  60. package/src/AWS/IAM/Group.ts +4 -1
  61. package/src/AWS/IAM/GroupMembership.ts +4 -1
  62. package/src/AWS/IAM/InstanceProfile.ts +4 -1
  63. package/src/AWS/IAM/LoginProfile.ts +4 -1
  64. package/src/AWS/IAM/OpenIDConnectProvider.ts +4 -1
  65. package/src/AWS/IAM/Policy.ts +4 -1
  66. package/src/AWS/IAM/Role.ts +4 -1
  67. package/src/AWS/IAM/SAMLProvider.ts +4 -1
  68. package/src/AWS/IAM/SSHPublicKey.ts +4 -1
  69. package/src/AWS/IAM/ServerCertificate.ts +4 -1
  70. package/src/AWS/IAM/ServiceSpecificCredential.ts +4 -1
  71. package/src/AWS/IAM/SigningCertificate.ts +4 -1
  72. package/src/AWS/IAM/User.ts +4 -1
  73. package/src/AWS/IAM/VirtualMFADevice.ts +4 -1
  74. package/src/AWS/IdentityCenter/AccountAssignment.ts +4 -1
  75. package/src/AWS/IdentityCenter/Group.ts +4 -1
  76. package/src/AWS/IdentityCenter/Instance.ts +4 -1
  77. package/src/AWS/IdentityCenter/PermissionSet.ts +4 -1
  78. package/src/AWS/Kinesis/Stream.ts +4 -1
  79. package/src/AWS/Kinesis/StreamConsumer.ts +4 -1
  80. package/src/AWS/Lambda/EventSourceMapping.ts +4 -1
  81. package/src/AWS/Lambda/Function.ts +3 -1
  82. package/src/AWS/Lambda/Permission.ts +4 -1
  83. package/src/AWS/Logs/LogGroup.ts +4 -1
  84. package/src/AWS/Organizations/Account.ts +4 -1
  85. package/src/AWS/Organizations/DelegatedAdministrator.ts +4 -1
  86. package/src/AWS/Organizations/Organization.ts +4 -1
  87. package/src/AWS/Organizations/OrganizationResourcePolicy.ts +4 -1
  88. package/src/AWS/Organizations/OrganizationalUnit.ts +4 -1
  89. package/src/AWS/Organizations/Policy.ts +4 -1
  90. package/src/AWS/Organizations/PolicyAttachment.ts +4 -1
  91. package/src/AWS/Organizations/Root.ts +4 -1
  92. package/src/AWS/Organizations/RootPolicyType.ts +4 -1
  93. package/src/AWS/Organizations/TrustedServiceAccess.ts +4 -1
  94. package/src/AWS/Providers.ts +484 -438
  95. package/src/AWS/RDS/DBCluster.ts +4 -1
  96. package/src/AWS/RDS/DBClusterEndpoint.ts +4 -1
  97. package/src/AWS/RDS/DBClusterParameterGroup.ts +4 -1
  98. package/src/AWS/RDS/DBInstance.ts +4 -1
  99. package/src/AWS/RDS/DBParameterGroup.ts +4 -1
  100. package/src/AWS/RDS/DBProxy.ts +4 -1
  101. package/src/AWS/RDS/DBProxyEndpoint.ts +4 -1
  102. package/src/AWS/RDS/DBProxyTargetGroup.ts +4 -1
  103. package/src/AWS/RDS/DBSubnetGroup.ts +4 -1
  104. package/src/AWS/Route53/Record.ts +4 -1
  105. package/src/AWS/S3/Bucket.ts +3 -1
  106. package/src/AWS/SNS/Subscription.ts +4 -1
  107. package/src/AWS/SNS/Topic.ts +4 -1
  108. package/src/AWS/SQS/Queue.ts +3 -1
  109. package/src/AWS/Scheduler/Schedule.ts +4 -1
  110. package/src/AWS/Scheduler/ScheduleGroup.ts +4 -1
  111. package/src/AWS/SecretsManager/Secret.ts +4 -1
  112. package/src/AWS/Website/AssetDeployment.ts +4 -1
  113. package/src/Apply.ts +3 -3
  114. package/src/Binding.ts +18 -17
  115. package/src/Cloudflare/Container/Container.ts +122 -0
  116. package/src/Cloudflare/Container/ContainerApplication.ts +6 -1
  117. package/src/Cloudflare/Container/ContainerBinding.ts +1 -1
  118. package/src/Cloudflare/Container/StartContainer.ts +1 -1
  119. package/src/Cloudflare/D1/D1Database.ts +27 -5
  120. package/src/Cloudflare/KV/KVNamespace.ts +32 -4
  121. package/src/Cloudflare/Providers.ts +62 -60
  122. package/src/Cloudflare/R2/R2Bucket.ts +47 -1
  123. package/src/Cloudflare/R2/R2BucketBinding.ts +26 -31
  124. package/src/Cloudflare/Website/StaticSite.ts +57 -0
  125. package/src/Cloudflare/Website/Vite.ts +52 -8
  126. package/src/Cloudflare/Workers/{DurableObject.ts → DurableObjectNamespace.ts} +242 -0
  127. package/src/Cloudflare/Workers/DynamicWorkerLoader.ts +66 -7
  128. package/src/Cloudflare/Workers/WebSocket.ts +1 -1
  129. package/src/Cloudflare/Workers/Worker.ts +315 -8
  130. package/src/Cloudflare/Workers/Workflow.ts +56 -12
  131. package/src/Cloudflare/Workers/index.ts +1 -1
  132. package/src/GitHub/Comment.ts +224 -0
  133. package/src/GitHub/Secret.ts +212 -0
  134. package/src/GitHub/Variable.ts +123 -0
  135. package/src/GitHub/index.ts +3 -0
  136. package/src/Plan.ts +595 -596
  137. package/src/Platform.ts +9 -8
  138. package/src/Provider.ts +145 -23
  139. package/src/Resource.ts +10 -3
  140. package/src/Stack.ts +1 -1
  141. package/src/Util/dedent.ts +56 -0
  142. package/src/Util/index.ts +1 -0
  143. package/src/Util/service.ts +1 -1
  144. package/src/index.ts +10 -7
@@ -2,6 +2,7 @@ import * as organizations from "@distilled.cloud/aws/organizations";
2
2
  import * as Effect from "effect/Effect";
3
3
  import * as Provider from "../../Provider.ts";
4
4
  import { Resource } from "../../Resource.ts";
5
+ import type { Providers } from "../Providers.ts";
5
6
  import type { PolicyDocument } from "../IAM/Policy.ts";
6
7
  import { retryOrganizations } from "./common.ts";
7
8
 
@@ -19,7 +20,9 @@ export interface OrganizationResourcePolicy extends Resource<
19
20
  resourcePolicyId: string;
20
21
  resourcePolicyArn: string;
21
22
  document: PolicyDocument;
22
- }
23
+ },
24
+ never,
25
+ Providers
23
26
  > {}
24
27
 
25
28
  /**
@@ -3,6 +3,7 @@ import * as Effect from "effect/Effect";
3
3
  import { isResolved } from "../../Diff.ts";
4
4
  import * as Provider from "../../Provider.ts";
5
5
  import { Resource } from "../../Resource.ts";
6
+ import type { Providers } from "../Providers.ts";
6
7
  import {
7
8
  collectPages,
8
9
  createName,
@@ -39,7 +40,9 @@ export interface OrganizationalUnit extends Resource<
39
40
  name: string;
40
41
  parentId: string | undefined;
41
42
  tags: Record<string, string>;
42
- }
43
+ },
44
+ never,
45
+ Providers
43
46
  > {}
44
47
 
45
48
  /**
@@ -3,6 +3,7 @@ import * as Effect from "effect/Effect";
3
3
  import { isResolved } from "../../Diff.ts";
4
4
  import * as Provider from "../../Provider.ts";
5
5
  import { Resource } from "../../Resource.ts";
6
+ import type { Providers } from "../Providers.ts";
6
7
  import type { PolicyDocument } from "../IAM/Policy.ts";
7
8
  import {
8
9
  collectPages,
@@ -52,7 +53,9 @@ export interface Policy extends Resource<
52
53
  awsManaged: boolean | undefined;
53
54
  document: PolicyDocument;
54
55
  tags: Record<string, string>;
55
- }
56
+ },
57
+ never,
58
+ Providers
56
59
  > {}
57
60
 
58
61
  /**
@@ -3,6 +3,7 @@ import * as Effect from "effect/Effect";
3
3
  import { isResolved } from "../../Diff.ts";
4
4
  import * as Provider from "../../Provider.ts";
5
5
  import { Resource } from "../../Resource.ts";
6
+ import type { Providers } from "../Providers.ts";
6
7
  import { collectPages, retryOrganizations } from "./common.ts";
7
8
 
8
9
  export interface PolicyAttachmentProps {
@@ -25,7 +26,9 @@ export interface PolicyAttachment extends Resource<
25
26
  targetArn: string | undefined;
26
27
  targetName: string | undefined;
27
28
  targetType: organizations.TargetType | undefined;
28
- }
29
+ },
30
+ never,
31
+ Providers
29
32
  > {}
30
33
 
31
34
  /**
@@ -3,6 +3,7 @@ import * as Effect from "effect/Effect";
3
3
  import { isResolved } from "../../Diff.ts";
4
4
  import * as Provider from "../../Provider.ts";
5
5
  import { Resource } from "../../Resource.ts";
6
+ import type { Providers } from "../Providers.ts";
6
7
  import {
7
8
  collectPages,
8
9
  readResourceTags,
@@ -38,7 +39,9 @@ export interface Root extends Resource<
38
39
  rootName: string;
39
40
  policyTypes: organizations.PolicyTypeSummary[];
40
41
  tags: Record<string, string>;
41
- }
42
+ },
43
+ never,
44
+ Providers
42
45
  > {}
43
46
 
44
47
  /**
@@ -3,6 +3,7 @@ import * as Effect from "effect/Effect";
3
3
  import { isResolved } from "../../Diff.ts";
4
4
  import * as Provider from "../../Provider.ts";
5
5
  import { Resource } from "../../Resource.ts";
6
+ import type { Providers } from "../Providers.ts";
6
7
  import { collectPages, retryOrganizations } from "./common.ts";
7
8
 
8
9
  export interface RootPolicyTypeProps {
@@ -24,7 +25,9 @@ export interface RootPolicyType extends Resource<
24
25
  rootArn: string | undefined;
25
26
  policyType: organizations.PolicyType;
26
27
  status: organizations.PolicyTypeStatus | undefined;
27
- }
28
+ },
29
+ never,
30
+ Providers
28
31
  > {}
29
32
 
30
33
  /**
@@ -3,6 +3,7 @@ import * as Effect from "effect/Effect";
3
3
  import { isResolved } from "../../Diff.ts";
4
4
  import * as Provider from "../../Provider.ts";
5
5
  import { Resource } from "../../Resource.ts";
6
+ import type { Providers } from "../Providers.ts";
6
7
  import { collectPages, retryOrganizations } from "./common.ts";
7
8
 
8
9
  export interface TrustedServiceAccessProps {
@@ -18,7 +19,9 @@ export interface TrustedServiceAccess extends Resource<
18
19
  {
19
20
  servicePrincipal: string;
20
21
  dateEnabled: Date | undefined;
21
- }
22
+ },
23
+ never,
24
+ Providers
22
25
  > {}
23
26
 
24
27
  /**