@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.
- package/dist/factories/aws-client.factory.d.ts +28 -0
- package/dist/factories/aws-client.factory.js +36 -0
- package/dist/factories/aws-client.factory.js.map +1 -1
- package/dist/modules/service/aws-s3-static-website-service/aws-s3-static-website-service.module.d.ts +6 -0
- package/dist/modules/service/aws-s3-static-website-service/aws-s3-static-website-service.module.js +11 -1
- package/dist/modules/service/aws-s3-static-website-service/aws-s3-static-website-service.module.js.map +1 -1
- package/dist/modules/service/aws-s3-static-website-service/index.schema.d.ts +58 -0
- package/dist/modules/service/aws-s3-static-website-service/index.schema.js +96 -0
- package/dist/modules/service/aws-s3-static-website-service/index.schema.js.map +1 -1
- package/dist/modules/service/aws-s3-static-website-service/models/service/actions/add-aws-s3-static-website-service.model.action.js +89 -4
- package/dist/modules/service/aws-s3-static-website-service/models/service/actions/add-aws-s3-static-website-service.model.action.js.map +1 -1
- 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
- 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
- package/dist/modules/service/aws-s3-static-website-service/models/service/aws-s3-static-website-service.model.js +6 -3
- package/dist/modules/service/aws-s3-static-website-service/models/service/aws-s3-static-website-service.model.js.map +1 -1
- package/dist/resources/cloudfront-distribution/cloudfront-distribution.resource.d.ts +97 -0
- package/dist/resources/cloudfront-distribution/cloudfront-distribution.resource.js +613 -0
- package/dist/resources/cloudfront-distribution/cloudfront-distribution.resource.js.map +1 -0
- package/dist/resources/cloudfront-distribution/index.d.ts +1 -0
- package/dist/resources/cloudfront-distribution/index.js +2 -0
- package/dist/resources/cloudfront-distribution/index.js.map +1 -0
- package/dist/resources/cloudfront-distribution/index.schema.d.ts +522 -0
- package/dist/resources/cloudfront-distribution/index.schema.js +754 -0
- package/dist/resources/cloudfront-distribution/index.schema.js.map +1 -0
- package/dist/resources/cloudfront-invalidation/actions/add-cloudfront-invalidation.resource.action.d.ts +36 -0
- package/dist/resources/cloudfront-invalidation/actions/add-cloudfront-invalidation.resource.action.js +90 -0
- package/dist/resources/cloudfront-invalidation/actions/add-cloudfront-invalidation.resource.action.js.map +1 -0
- package/dist/resources/cloudfront-invalidation/actions/delete-cloudfront-invalidation.resource.action.d.ts +39 -0
- package/dist/resources/cloudfront-invalidation/actions/delete-cloudfront-invalidation.resource.action.js +69 -0
- package/dist/resources/cloudfront-invalidation/actions/delete-cloudfront-invalidation.resource.action.js.map +1 -0
- package/dist/resources/cloudfront-invalidation/actions/update-cloudfront-invalidation.resource.action.d.ts +37 -0
- package/dist/resources/cloudfront-invalidation/actions/update-cloudfront-invalidation.resource.action.js +91 -0
- package/dist/resources/cloudfront-invalidation/actions/update-cloudfront-invalidation.resource.action.js.map +1 -0
- package/dist/resources/cloudfront-invalidation/cloudfront-invalidation.resource.d.ts +62 -0
- package/dist/resources/cloudfront-invalidation/cloudfront-invalidation.resource.js +89 -0
- package/dist/resources/cloudfront-invalidation/cloudfront-invalidation.resource.js.map +1 -0
- package/dist/resources/cloudfront-invalidation/index.d.ts +5 -0
- package/dist/resources/cloudfront-invalidation/index.js +6 -0
- package/dist/resources/cloudfront-invalidation/index.js.map +1 -0
- package/dist/resources/cloudfront-invalidation/index.schema.d.ts +61 -0
- package/dist/resources/cloudfront-invalidation/index.schema.js +110 -0
- package/dist/resources/cloudfront-invalidation/index.schema.js.map +1 -0
- package/dist/resources/s3-website/index.schema.d.ts +20 -0
- package/dist/resources/s3-website/index.schema.js +38 -0
- package/dist/resources/s3-website/index.schema.js.map +1 -1
- package/dist/resources/s3-website/s3-website.resource.d.ts +20 -3
- package/dist/resources/s3-website/s3-website.resource.js +82 -26
- package/dist/resources/s3-website/s3-website.resource.js.map +1 -1
- 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
|
+
}
|