@quadnix/octo-aws-cdk 0.1.0 → 0.2.0

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 (49) hide show
  1. package/dist/factories/aws-client.factory.d.ts +28 -0
  2. package/dist/factories/aws-client.factory.js +36 -0
  3. package/dist/factories/aws-client.factory.js.map +1 -1
  4. package/dist/modules/service/aws-s3-static-website-service/aws-s3-static-website-service.module.d.ts +6 -0
  5. package/dist/modules/service/aws-s3-static-website-service/aws-s3-static-website-service.module.js +11 -1
  6. package/dist/modules/service/aws-s3-static-website-service/aws-s3-static-website-service.module.js.map +1 -1
  7. package/dist/modules/service/aws-s3-static-website-service/index.schema.d.ts +58 -0
  8. package/dist/modules/service/aws-s3-static-website-service/index.schema.js +96 -0
  9. package/dist/modules/service/aws-s3-static-website-service/index.schema.js.map +1 -1
  10. package/dist/modules/service/aws-s3-static-website-service/models/service/actions/add-aws-s3-static-website-service.model.action.js +89 -4
  11. package/dist/modules/service/aws-s3-static-website-service/models/service/actions/add-aws-s3-static-website-service.model.action.js.map +1 -1
  12. package/dist/modules/service/aws-s3-static-website-service/models/service/actions/update-aws-s3-static-website-service-source-paths.model.action.js +17 -1
  13. package/dist/modules/service/aws-s3-static-website-service/models/service/actions/update-aws-s3-static-website-service-source-paths.model.action.js.map +1 -1
  14. package/dist/modules/service/aws-s3-static-website-service/models/service/aws-s3-static-website-service.model.js +6 -3
  15. package/dist/modules/service/aws-s3-static-website-service/models/service/aws-s3-static-website-service.model.js.map +1 -1
  16. package/dist/resources/cloudfront-distribution/cloudfront-distribution.resource.d.ts +97 -0
  17. package/dist/resources/cloudfront-distribution/cloudfront-distribution.resource.js +613 -0
  18. package/dist/resources/cloudfront-distribution/cloudfront-distribution.resource.js.map +1 -0
  19. package/dist/resources/cloudfront-distribution/index.d.ts +1 -0
  20. package/dist/resources/cloudfront-distribution/index.js +2 -0
  21. package/dist/resources/cloudfront-distribution/index.js.map +1 -0
  22. package/dist/resources/cloudfront-distribution/index.schema.d.ts +522 -0
  23. package/dist/resources/cloudfront-distribution/index.schema.js +754 -0
  24. package/dist/resources/cloudfront-distribution/index.schema.js.map +1 -0
  25. package/dist/resources/cloudfront-invalidation/actions/add-cloudfront-invalidation.resource.action.d.ts +36 -0
  26. package/dist/resources/cloudfront-invalidation/actions/add-cloudfront-invalidation.resource.action.js +90 -0
  27. package/dist/resources/cloudfront-invalidation/actions/add-cloudfront-invalidation.resource.action.js.map +1 -0
  28. package/dist/resources/cloudfront-invalidation/actions/delete-cloudfront-invalidation.resource.action.d.ts +39 -0
  29. package/dist/resources/cloudfront-invalidation/actions/delete-cloudfront-invalidation.resource.action.js +69 -0
  30. package/dist/resources/cloudfront-invalidation/actions/delete-cloudfront-invalidation.resource.action.js.map +1 -0
  31. package/dist/resources/cloudfront-invalidation/actions/update-cloudfront-invalidation.resource.action.d.ts +37 -0
  32. package/dist/resources/cloudfront-invalidation/actions/update-cloudfront-invalidation.resource.action.js +91 -0
  33. package/dist/resources/cloudfront-invalidation/actions/update-cloudfront-invalidation.resource.action.js.map +1 -0
  34. package/dist/resources/cloudfront-invalidation/cloudfront-invalidation.resource.d.ts +62 -0
  35. package/dist/resources/cloudfront-invalidation/cloudfront-invalidation.resource.js +89 -0
  36. package/dist/resources/cloudfront-invalidation/cloudfront-invalidation.resource.js.map +1 -0
  37. package/dist/resources/cloudfront-invalidation/index.d.ts +5 -0
  38. package/dist/resources/cloudfront-invalidation/index.js +6 -0
  39. package/dist/resources/cloudfront-invalidation/index.js.map +1 -0
  40. package/dist/resources/cloudfront-invalidation/index.schema.d.ts +61 -0
  41. package/dist/resources/cloudfront-invalidation/index.schema.js +110 -0
  42. package/dist/resources/cloudfront-invalidation/index.schema.js.map +1 -0
  43. package/dist/resources/s3-website/index.schema.d.ts +20 -0
  44. package/dist/resources/s3-website/index.schema.js +38 -0
  45. package/dist/resources/s3-website/index.schema.js.map +1 -1
  46. package/dist/resources/s3-website/s3-website.resource.d.ts +20 -3
  47. package/dist/resources/s3-website/s3-website.resource.js +82 -26
  48. package/dist/resources/s3-website/s3-website.resource.js.map +1 -1
  49. package/package.json +4 -1
@@ -0,0 +1,97 @@
1
+ import { ATerraformResource, type BaseResourceSchema, Diff, type MatchingResource, type TerraformModuleScope } from '@quadnix/octo';
2
+ import { CloudFrontDistributionSchema } from './index.schema.js';
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare class CloudFrontDistribution extends ATerraformResource<CloudFrontDistributionSchema, CloudFrontDistribution> {
7
+ parents: MatchingResource<BaseResourceSchema>[];
8
+ properties: CloudFrontDistributionSchema['properties'];
9
+ response: CloudFrontDistributionSchema['response'];
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(resourceId: string, properties: CloudFrontDistributionSchema['properties'], parents?: MatchingResource<BaseResourceSchema>[]);
14
+ /**
15
+ * A name AWS will accept, that still says which thing it belongs to.
16
+ *
17
+ * A distribution's name and an origin's are each free-form, so their join is what overflows a
18
+ * limit neither of them knew about. Cutting the tail off alone would let two origins collide, so
19
+ * what is cut is replaced by a digest of the whole name: two names that differ anywhere still
20
+ * differ here, and the same name always renders the same way.
21
+ *
22
+ * @internal
23
+ */
24
+ private static boundedName;
25
+ /**
26
+ * How a policy reference is looked up once every policy has been emitted.
27
+ *
28
+ * @internal
29
+ */
30
+ private static policyKey;
31
+ /**
32
+ * Nothing about a distribution is force-new. Origins, behaviors, aliases, the certificate, the WAF
33
+ * association - AWS edits all of them in place on a live distribution, so every change is an
34
+ * update. What is left is identity, and the distribution's name is already in the resource id, so
35
+ * only the account can move a distribution to being a different one.
36
+ *
37
+ * @internal
38
+ */
39
+ diffProperties(previous: CloudFrontDistribution): Promise<Diff[]>;
40
+ /**
41
+ * @internal
42
+ */
43
+ toHCL(terraform: TerraformModuleScope): Promise<void>;
44
+ /**
45
+ * Every managed policy a behavior names, paired with the slot it fills.
46
+ *
47
+ * @internal
48
+ */
49
+ private collectManagedPolicyReferences;
50
+ /**
51
+ * The behavior claiming everything no other behavior did.
52
+ *
53
+ * @internal
54
+ */
55
+ private getDefaultBehavior;
56
+ /**
57
+ * The behaviors matched, in order, before the default one.
58
+ *
59
+ * @internal
60
+ */
61
+ private getOrderedBehaviors;
62
+ /**
63
+ * @internal
64
+ */
65
+ private renderBehavior;
66
+ /**
67
+ * @internal
68
+ */
69
+ private renderOrigin;
70
+ /**
71
+ * One origin access control per S3 origin. It is what lets the distribution sign its requests to
72
+ * a bucket that admits nothing else.
73
+ *
74
+ * @internal
75
+ */
76
+ private renderOriginAccessControls;
77
+ /**
78
+ * Emits every policy the behaviors reach for, and returns the id expression each reference
79
+ * resolves to.
80
+ *
81
+ * A managed policy is read by name through a `data` block, so the id AWS assigns is never written
82
+ * down here. A custom policy is created, and only the behaviors of this distribution can name it.
83
+ *
84
+ * @internal
85
+ */
86
+ private renderPolicies;
87
+ /**
88
+ * Everything a distribution says about itself that terraform would only reject later, or that AWS
89
+ * would accept and then serve wrongly.
90
+ *
91
+ * @internal
92
+ * @throws If ids collide or do not resolve, if an alias has no certificate to serve it, if a
93
+ * certificate or web ACL is not one CloudFront can read, or if a CloudFront Function is bound to
94
+ * an event it cannot run on.
95
+ */
96
+ private validateReferences;
97
+ }