p6-cdk-s3-protector 0.0.5 → 0.0.6

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/.jsii CHANGED
@@ -3951,6 +3951,6 @@
3951
3951
  "symbolId": "src/p6cdks3protector:P6CDKS3Protector"
3952
3952
  }
3953
3953
  },
3954
- "version": "0.0.5",
3955
- "fingerprint": "oNaq+pf+if6XgZ6y3rAgFazglbDijnwMx+8kd2Wyo9g="
3954
+ "version": "0.0.6",
3955
+ "fingerprint": "DwlIwsYIvqTAgokJkcYsKnv/cMCsnmaPY19efKclE0o="
3956
3956
  }
package/diff.txt ADDED
File without changes
@@ -31,7 +31,7 @@ const lambdajs = __importStar(require("aws-cdk-lib/aws-lambda-nodejs"));
31
31
  const cr = __importStar(require("aws-cdk-lib/custom-resources"));
32
32
  const floyd = __importStar(require("cdk-iam-floyd"));
33
33
  class P6CDKS3Protector extends cdk.Resource {
34
- static [JSII_RTTI_SYMBOL_1] = { fqn: "p6-cdk-s3-protector.P6CDKS3Protector", version: "0.0.5" };
34
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "p6-cdk-s3-protector.P6CDKS3Protector", version: "0.0.6" };
35
35
  constructor(scope, id) {
36
36
  super(scope, id);
37
37
  const policy = new floyd.Statement.S3().allow().toPutObject().toPutObjectAcl();
package/package.json CHANGED
@@ -25,7 +25,7 @@
25
25
  "jsii:pacmak:go": "yarn jsii-pacmak --verbose --targets go",
26
26
  "jsii:pacmak:java": "yarn jsii-pacmak --verbose --targets java",
27
27
  "jsii:pacmak:js": "yarn jsii-pacmak --verbose --targets js",
28
- "jsii:pacmak:parallel": "yarn jsii-pacmak --verbose --parallel --targets dotnet,go,java,js,python",
28
+ "jsii:pacmak:parallel": "yarn jsii-pacmak --verbose --parallel --targets dotnet,go,js,python",
29
29
  "jsii:pacmak:py": "yarn jsii-pacmak --verbose --targets python",
30
30
  "lint:fix": "yarn eslint . --fix",
31
31
  "lint": "yarn eslint .",
@@ -47,6 +47,9 @@
47
47
  "email": "pgollucci@p6m7g8.com",
48
48
  "organization": true
49
49
  },
50
+ "engines": {
51
+ "node": ">= 22.10.0"
52
+ },
50
53
  "devDependencies": {
51
54
  "@antfu/eslint-config": "^3.8.0",
52
55
  "@types/aws-lambda": "^8.10.145",
@@ -109,7 +112,7 @@
109
112
  "main": "lib/index.js",
110
113
  "types": "lib/index.d.ts",
111
114
  "license": "Apache-2.0",
112
- "version": "0.0.5",
115
+ "version": "0.0.6",
113
116
  "jsii": {
114
117
  "outdir": "dist",
115
118
  "tsc": {
@@ -1,202 +0,0 @@
1
-
2
- Apache License
3
- Version 2.0, January 2004
4
- http://www.apache.org/licenses/
5
-
6
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
-
8
- 1. Definitions.
9
-
10
- "License" shall mean the terms and conditions for use, reproduction,
11
- and distribution as defined by Sections 1 through 9 of this document.
12
-
13
- "Licensor" shall mean the copyright owner or entity authorized by
14
- the copyright owner that is granting the License.
15
-
16
- "Legal Entity" shall mean the union of the acting entity and all
17
- other entities that control, are controlled by, or are under common
18
- control with that entity. For the purposes of this definition,
19
- "control" means (i) the power, direct or indirect, to cause the
20
- direction or management of such entity, whether by contract or
21
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
- outstanding shares, or (iii) beneficial ownership of such entity.
23
-
24
- "You" (or "Your") shall mean an individual or Legal Entity
25
- exercising permissions granted by this License.
26
-
27
- "Source" form shall mean the preferred form for making modifications,
28
- including but not limited to software source code, documentation
29
- source, and configuration files.
30
-
31
- "Object" form shall mean any form resulting from mechanical
32
- transformation or translation of a Source form, including but
33
- not limited to compiled object code, generated documentation,
34
- and conversions to other media types.
35
-
36
- "Work" shall mean the work of authorship, whether in Source or
37
- Object form, made available under the License, as indicated by a
38
- copyright notice that is included in or attached to the work
39
- (an example is provided in the Appendix below).
40
-
41
- "Derivative Works" shall mean any work, whether in Source or Object
42
- form, that is based on (or derived from) the Work and for which the
43
- editorial revisions, annotations, elaborations, or other modifications
44
- represent, as a whole, an original work of authorship. For the purposes
45
- of this License, Derivative Works shall not include works that remain
46
- separable from, or merely link (or bind by name) to the interfaces of,
47
- the Work and Derivative Works thereof.
48
-
49
- "Contribution" shall mean any work of authorship, including
50
- the original version of the Work and any modifications or additions
51
- to that Work or Derivative Works thereof, that is intentionally
52
- submitted to Licensor for inclusion in the Work by the copyright owner
53
- or by an individual or Legal Entity authorized to submit on behalf of
54
- the copyright owner. For the purposes of this definition, "submitted"
55
- means any form of electronic, verbal, or written communication sent
56
- to the Licensor or its representatives, including but not limited to
57
- communication on electronic mailing lists, source code control systems,
58
- and issue tracking systems that are managed by, or on behalf of, the
59
- Licensor for the purpose of discussing and improving the Work, but
60
- excluding communication that is conspicuously marked or otherwise
61
- designated in writing by the copyright owner as "Not a Contribution."
62
-
63
- "Contributor" shall mean Licensor and any individual or Legal Entity
64
- on behalf of whom a Contribution has been received by Licensor and
65
- subsequently incorporated within the Work.
66
-
67
- 2. Grant of Copyright License. Subject to the terms and conditions of
68
- this License, each Contributor hereby grants to You a perpetual,
69
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
- copyright license to reproduce, prepare Derivative Works of,
71
- publicly display, publicly perform, sublicense, and distribute the
72
- Work and such Derivative Works in Source or Object form.
73
-
74
- 3. Grant of Patent License. Subject to the terms and conditions of
75
- this License, each Contributor hereby grants to You a perpetual,
76
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
- (except as stated in this section) patent license to make, have made,
78
- use, offer to sell, sell, import, and otherwise transfer the Work,
79
- where such license applies only to those patent claims licensable
80
- by such Contributor that are necessarily infringed by their
81
- Contribution(s) alone or by combination of their Contribution(s)
82
- with the Work to which such Contribution(s) was submitted. If You
83
- institute patent litigation against any entity (including a
84
- cross-claim or counterclaim in a lawsuit) alleging that the Work
85
- or a Contribution incorporated within the Work constitutes direct
86
- or contributory patent infringement, then any patent licenses
87
- granted to You under this License for that Work shall terminate
88
- as of the date such litigation is filed.
89
-
90
- 4. Redistribution. You may reproduce and distribute copies of the
91
- Work or Derivative Works thereof in any medium, with or without
92
- modifications, and in Source or Object form, provided that You
93
- meet the following conditions:
94
-
95
- (a) You must give any other recipients of the Work or
96
- Derivative Works a copy of this License; and
97
-
98
- (b) You must cause any modified files to carry prominent notices
99
- stating that You changed the files; and
100
-
101
- (c) You must retain, in the Source form of any Derivative Works
102
- that You distribute, all copyright, patent, trademark, and
103
- attribution notices from the Source form of the Work,
104
- excluding those notices that do not pertain to any part of
105
- the Derivative Works; and
106
-
107
- (d) If the Work includes a "NOTICE" text file as part of its
108
- distribution, then any Derivative Works that You distribute must
109
- include a readable copy of the attribution notices contained
110
- within such NOTICE file, excluding those notices that do not
111
- pertain to any part of the Derivative Works, in at least one
112
- of the following places: within a NOTICE text file distributed
113
- as part of the Derivative Works; within the Source form or
114
- documentation, if provided along with the Derivative Works; or,
115
- within a display generated by the Derivative Works, if and
116
- wherever such third-party notices normally appear. The contents
117
- of the NOTICE file are for informational purposes only and
118
- do not modify the License. You may add Your own attribution
119
- notices within Derivative Works that You distribute, alongside
120
- or as an addendum to the NOTICE text from the Work, provided
121
- that such additional attribution notices cannot be construed
122
- as modifying the License.
123
-
124
- You may add Your own copyright statement to Your modifications and
125
- may provide additional or different license terms and conditions
126
- for use, reproduction, or distribution of Your modifications, or
127
- for any such Derivative Works as a whole, provided Your use,
128
- reproduction, and distribution of the Work otherwise complies with
129
- the conditions stated in this License.
130
-
131
- 5. Submission of Contributions. Unless You explicitly state otherwise,
132
- any Contribution intentionally submitted for inclusion in the Work
133
- by You to the Licensor shall be under the terms and conditions of
134
- this License, without any additional terms or conditions.
135
- Notwithstanding the above, nothing herein shall supersede or modify
136
- the terms of any separate license agreement you may have executed
137
- with Licensor regarding such Contributions.
138
-
139
- 6. Trademarks. This License does not grant permission to use the trade
140
- names, trademarks, service marks, or product names of the Licensor,
141
- except as required for reasonable and customary use in describing the
142
- origin of the Work and reproducing the content of the NOTICE file.
143
-
144
- 7. Disclaimer of Warranty. Unless required by applicable law or
145
- agreed to in writing, Licensor provides the Work (and each
146
- Contributor provides its Contributions) on an "AS IS" BASIS,
147
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
- implied, including, without limitation, any warranties or conditions
149
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
- PARTICULAR PURPOSE. You are solely responsible for determining the
151
- appropriateness of using or redistributing the Work and assume any
152
- risks associated with Your exercise of permissions under this License.
153
-
154
- 8. Limitation of Liability. In no event and under no legal theory,
155
- whether in tort (including negligence), contract, or otherwise,
156
- unless required by applicable law (such as deliberate and grossly
157
- negligent acts) or agreed to in writing, shall any Contributor be
158
- liable to You for damages, including any direct, indirect, special,
159
- incidental, or consequential damages of any character arising as a
160
- result of this License or out of the use or inability to use the
161
- Work (including but not limited to damages for loss of goodwill,
162
- work stoppage, computer failure or malfunction, or any and all
163
- other commercial damages or losses), even if such Contributor
164
- has been advised of the possibility of such damages.
165
-
166
- 9. Accepting Warranty or Additional Liability. While redistributing
167
- the Work or Derivative Works thereof, You may choose to offer,
168
- and charge a fee for, acceptance of support, warranty, indemnity,
169
- or other liability obligations and/or rights consistent with this
170
- License. However, in accepting such obligations, You may act only
171
- on Your own behalf and on Your sole responsibility, not on behalf
172
- of any other Contributor, and only if You agree to indemnify,
173
- defend, and hold each Contributor harmless for any liability
174
- incurred by, or claims asserted against, such Contributor by reason
175
- of your accepting any such warranty or additional liability.
176
-
177
- END OF TERMS AND CONDITIONS
178
-
179
- APPENDIX: How to apply the Apache License to your work.
180
-
181
- To apply the Apache License to your work, attach the following
182
- boilerplate notice, with the fields enclosed by brackets "[]"
183
- replaced with your own identifying information. (Don't include
184
- the brackets!) The text should be enclosed in the appropriate
185
- comment syntax for the file format. We also recommend that a
186
- file or class name and description of purpose be included on the
187
- same "printed page" as the copyright notice for easier
188
- identification within third-party archives.
189
-
190
- Copyright 2017 Philip M. Gollucci
191
-
192
- Licensed under the Apache License, Version 2.0 (the "License");
193
- you may not use this file except in compliance with the License.
194
- You may obtain a copy of the License at
195
-
196
- http://www.apache.org/licenses/LICENSE-2.0
197
-
198
- Unless required by applicable law or agreed to in writing, software
199
- distributed under the License is distributed on an "AS IS" BASIS,
200
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
- See the License for the specific language governing permissions and
202
- limitations under the License.
@@ -1,277 +0,0 @@
1
- package p6cdks3protector
2
-
3
- import (
4
- _jsii_ "github.com/aws/jsii-runtime-go/runtime"
5
- _init_ "github.com/p6m7g8/p6-cdk-s3-protector/p6cdks3protector/jsii"
6
-
7
- "github.com/aws/aws-cdk-go/awscdk/v2"
8
- "github.com/aws/constructs-go/constructs/v10"
9
- "github.com/p6m7g8/p6-cdk-s3-protector/p6cdks3protector/internal"
10
- )
11
-
12
- type P6CDKS3Protector interface {
13
- awscdk.Resource
14
- // The environment this resource belongs to.
15
- //
16
- // For resources that are created and managed by the CDK
17
- // (generally, those created by creating new class instances like Role, Bucket, etc.),
18
- // this is always the same as the environment of the stack they belong to;
19
- // however, for imported resources
20
- // (those obtained from static methods like fromRoleArn, fromBucketName, etc.),
21
- // that might be different than the stack they were imported into.
22
- Env() *awscdk.ResourceEnvironment
23
- // The tree node.
24
- Node() constructs.Node
25
- // Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
26
- //
27
- // This value will resolve to one of the following:
28
- // - a concrete value (e.g. `"my-awesome-bucket"`)
29
- // - `undefined`, when a name should be generated by CloudFormation
30
- // - a concrete name generated automatically during synthesis, in
31
- // cross-environment scenarios.
32
- PhysicalName() *string
33
- // The stack in which this resource is defined.
34
- Stack() awscdk.Stack
35
- // Apply the given removal policy to this resource.
36
- //
37
- // The Removal Policy controls what happens to this resource when it stops
38
- // being managed by CloudFormation, either because you've removed it from the
39
- // CDK application or because you've made a change that requires the resource
40
- // to be replaced.
41
- //
42
- // The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
43
- // account for data recovery and cleanup later (`RemovalPolicy.RETAIN`).
44
- ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
45
- GeneratePhysicalName() *string
46
- // Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. `bucket.bucketArn`).
47
- //
48
- // Normally, this token will resolve to `arnAttr`, but if the resource is
49
- // referenced across environments, `arnComponents` will be used to synthesize
50
- // a concrete ARN with the resource's physical name. Make sure to reference
51
- // `this.physicalName` in `arnComponents`.
52
- GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
53
- // Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. `bucket.bucketName`).
54
- //
55
- // Normally, this token will resolve to `nameAttr`, but if the resource is
56
- // referenced across environments, it will be resolved to `this.physicalName`,
57
- // which will be a concrete name.
58
- GetResourceNameAttribute(nameAttr *string) *string
59
- // Returns a string representation of this construct.
60
- ToString() *string
61
- }
62
-
63
- // The jsii proxy struct for P6CDKS3Protector
64
- type jsiiProxy_P6CDKS3Protector struct {
65
- internal.Type__awscdkResource
66
- }
67
-
68
- func (j *jsiiProxy_P6CDKS3Protector) Env() *awscdk.ResourceEnvironment {
69
- var returns *awscdk.ResourceEnvironment
70
- _jsii_.Get(
71
- j,
72
- "env",
73
- &returns,
74
- )
75
- return returns
76
- }
77
-
78
- func (j *jsiiProxy_P6CDKS3Protector) Node() constructs.Node {
79
- var returns constructs.Node
80
- _jsii_.Get(
81
- j,
82
- "node",
83
- &returns,
84
- )
85
- return returns
86
- }
87
-
88
- func (j *jsiiProxy_P6CDKS3Protector) PhysicalName() *string {
89
- var returns *string
90
- _jsii_.Get(
91
- j,
92
- "physicalName",
93
- &returns,
94
- )
95
- return returns
96
- }
97
-
98
- func (j *jsiiProxy_P6CDKS3Protector) Stack() awscdk.Stack {
99
- var returns awscdk.Stack
100
- _jsii_.Get(
101
- j,
102
- "stack",
103
- &returns,
104
- )
105
- return returns
106
- }
107
-
108
-
109
- func NewP6CDKS3Protector(scope constructs.Construct, id *string) P6CDKS3Protector {
110
- _init_.Initialize()
111
-
112
- if err := validateNewP6CDKS3ProtectorParameters(scope, id); err != nil {
113
- panic(err)
114
- }
115
- j := jsiiProxy_P6CDKS3Protector{}
116
-
117
- _jsii_.Create(
118
- "p6-cdk-s3-protector.P6CDKS3Protector",
119
- []interface{}{scope, id},
120
- &j,
121
- )
122
-
123
- return &j
124
- }
125
-
126
- func NewP6CDKS3Protector_Override(p P6CDKS3Protector, scope constructs.Construct, id *string) {
127
- _init_.Initialize()
128
-
129
- _jsii_.Create(
130
- "p6-cdk-s3-protector.P6CDKS3Protector",
131
- []interface{}{scope, id},
132
- p,
133
- )
134
- }
135
-
136
- // Checks if `x` is a construct.
137
- //
138
- // Use this method instead of `instanceof` to properly detect `Construct`
139
- // instances, even when the construct library is symlinked.
140
- //
141
- // Explanation: in JavaScript, multiple copies of the `constructs` library on
142
- // disk are seen as independent, completely different libraries. As a
143
- // consequence, the class `Construct` in each copy of the `constructs` library
144
- // is seen as a different class, and an instance of one class will not test as
145
- // `instanceof` the other class. `npm install` will not create installations
146
- // like this, but users may manually symlink construct libraries together or
147
- // use a monorepo tool: in those cases, multiple copies of the `constructs`
148
- // library can be accidentally installed, and `instanceof` will behave
149
- // unpredictably. It is safest to avoid using `instanceof`, and using
150
- // this type-testing method instead.
151
- //
152
- // Returns: true if `x` is an object created from a class which extends `Construct`.
153
- func P6CDKS3Protector_IsConstruct(x interface{}) *bool {
154
- _init_.Initialize()
155
-
156
- if err := validateP6CDKS3Protector_IsConstructParameters(x); err != nil {
157
- panic(err)
158
- }
159
- var returns *bool
160
-
161
- _jsii_.StaticInvoke(
162
- "p6-cdk-s3-protector.P6CDKS3Protector",
163
- "isConstruct",
164
- []interface{}{x},
165
- &returns,
166
- )
167
-
168
- return returns
169
- }
170
-
171
- // Returns true if the construct was created by CDK, and false otherwise.
172
- func P6CDKS3Protector_IsOwnedResource(construct constructs.IConstruct) *bool {
173
- _init_.Initialize()
174
-
175
- if err := validateP6CDKS3Protector_IsOwnedResourceParameters(construct); err != nil {
176
- panic(err)
177
- }
178
- var returns *bool
179
-
180
- _jsii_.StaticInvoke(
181
- "p6-cdk-s3-protector.P6CDKS3Protector",
182
- "isOwnedResource",
183
- []interface{}{construct},
184
- &returns,
185
- )
186
-
187
- return returns
188
- }
189
-
190
- // Check whether the given construct is a Resource.
191
- func P6CDKS3Protector_IsResource(construct constructs.IConstruct) *bool {
192
- _init_.Initialize()
193
-
194
- if err := validateP6CDKS3Protector_IsResourceParameters(construct); err != nil {
195
- panic(err)
196
- }
197
- var returns *bool
198
-
199
- _jsii_.StaticInvoke(
200
- "p6-cdk-s3-protector.P6CDKS3Protector",
201
- "isResource",
202
- []interface{}{construct},
203
- &returns,
204
- )
205
-
206
- return returns
207
- }
208
-
209
- func (p *jsiiProxy_P6CDKS3Protector) ApplyRemovalPolicy(policy awscdk.RemovalPolicy) {
210
- if err := p.validateApplyRemovalPolicyParameters(policy); err != nil {
211
- panic(err)
212
- }
213
- _jsii_.InvokeVoid(
214
- p,
215
- "applyRemovalPolicy",
216
- []interface{}{policy},
217
- )
218
- }
219
-
220
- func (p *jsiiProxy_P6CDKS3Protector) GeneratePhysicalName() *string {
221
- var returns *string
222
-
223
- _jsii_.Invoke(
224
- p,
225
- "generatePhysicalName",
226
- nil, // no parameters
227
- &returns,
228
- )
229
-
230
- return returns
231
- }
232
-
233
- func (p *jsiiProxy_P6CDKS3Protector) GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string {
234
- if err := p.validateGetResourceArnAttributeParameters(arnAttr, arnComponents); err != nil {
235
- panic(err)
236
- }
237
- var returns *string
238
-
239
- _jsii_.Invoke(
240
- p,
241
- "getResourceArnAttribute",
242
- []interface{}{arnAttr, arnComponents},
243
- &returns,
244
- )
245
-
246
- return returns
247
- }
248
-
249
- func (p *jsiiProxy_P6CDKS3Protector) GetResourceNameAttribute(nameAttr *string) *string {
250
- if err := p.validateGetResourceNameAttributeParameters(nameAttr); err != nil {
251
- panic(err)
252
- }
253
- var returns *string
254
-
255
- _jsii_.Invoke(
256
- p,
257
- "getResourceNameAttribute",
258
- []interface{}{nameAttr},
259
- &returns,
260
- )
261
-
262
- return returns
263
- }
264
-
265
- func (p *jsiiProxy_P6CDKS3Protector) ToString() *string {
266
- var returns *string
267
-
268
- _jsii_.Invoke(
269
- p,
270
- "toString",
271
- nil, // no parameters
272
- &returns,
273
- )
274
-
275
- return returns
276
- }
277
-
@@ -1,80 +0,0 @@
1
- //go:build !no_runtime_type_checking
2
-
3
- package p6cdks3protector
4
-
5
- import (
6
- "fmt"
7
-
8
- _jsii_ "github.com/aws/jsii-runtime-go/runtime"
9
-
10
- "github.com/aws/aws-cdk-go/awscdk/v2"
11
- "github.com/aws/constructs-go/constructs/v10"
12
- )
13
-
14
- func (p *jsiiProxy_P6CDKS3Protector) validateApplyRemovalPolicyParameters(policy awscdk.RemovalPolicy) error {
15
- if policy == "" {
16
- return fmt.Errorf("parameter policy is required, but nil was provided")
17
- }
18
-
19
- return nil
20
- }
21
-
22
- func (p *jsiiProxy_P6CDKS3Protector) validateGetResourceArnAttributeParameters(arnAttr *string, arnComponents *awscdk.ArnComponents) error {
23
- if arnAttr == nil {
24
- return fmt.Errorf("parameter arnAttr is required, but nil was provided")
25
- }
26
-
27
- if arnComponents == nil {
28
- return fmt.Errorf("parameter arnComponents is required, but nil was provided")
29
- }
30
- if err := _jsii_.ValidateStruct(arnComponents, func() string { return "parameter arnComponents" }); err != nil {
31
- return err
32
- }
33
-
34
- return nil
35
- }
36
-
37
- func (p *jsiiProxy_P6CDKS3Protector) validateGetResourceNameAttributeParameters(nameAttr *string) error {
38
- if nameAttr == nil {
39
- return fmt.Errorf("parameter nameAttr is required, but nil was provided")
40
- }
41
-
42
- return nil
43
- }
44
-
45
- func validateP6CDKS3Protector_IsConstructParameters(x interface{}) error {
46
- if x == nil {
47
- return fmt.Errorf("parameter x is required, but nil was provided")
48
- }
49
-
50
- return nil
51
- }
52
-
53
- func validateP6CDKS3Protector_IsOwnedResourceParameters(construct constructs.IConstruct) error {
54
- if construct == nil {
55
- return fmt.Errorf("parameter construct is required, but nil was provided")
56
- }
57
-
58
- return nil
59
- }
60
-
61
- func validateP6CDKS3Protector_IsResourceParameters(construct constructs.IConstruct) error {
62
- if construct == nil {
63
- return fmt.Errorf("parameter construct is required, but nil was provided")
64
- }
65
-
66
- return nil
67
- }
68
-
69
- func validateNewP6CDKS3ProtectorParameters(scope constructs.Construct, id *string) error {
70
- if scope == nil {
71
- return fmt.Errorf("parameter scope is required, but nil was provided")
72
- }
73
-
74
- if id == nil {
75
- return fmt.Errorf("parameter id is required, but nil was provided")
76
- }
77
-
78
- return nil
79
- }
80
-
@@ -1,34 +0,0 @@
1
- //go:build no_runtime_type_checking
2
-
3
- package p6cdks3protector
4
-
5
- // Building without runtime type checking enabled, so all the below just return nil
6
-
7
- func (p *jsiiProxy_P6CDKS3Protector) validateApplyRemovalPolicyParameters(policy awscdk.RemovalPolicy) error {
8
- return nil
9
- }
10
-
11
- func (p *jsiiProxy_P6CDKS3Protector) validateGetResourceArnAttributeParameters(arnAttr *string, arnComponents *awscdk.ArnComponents) error {
12
- return nil
13
- }
14
-
15
- func (p *jsiiProxy_P6CDKS3Protector) validateGetResourceNameAttributeParameters(nameAttr *string) error {
16
- return nil
17
- }
18
-
19
- func validateP6CDKS3Protector_IsConstructParameters(x interface{}) error {
20
- return nil
21
- }
22
-
23
- func validateP6CDKS3Protector_IsOwnedResourceParameters(construct constructs.IConstruct) error {
24
- return nil
25
- }
26
-
27
- func validateP6CDKS3Protector_IsResourceParameters(construct constructs.IConstruct) error {
28
- return nil
29
- }
30
-
31
- func validateNewP6CDKS3ProtectorParameters(scope constructs.Construct, id *string) error {
32
- return nil
33
- }
34
-
@@ -1,28 +0,0 @@
1
- AWS CDK: A real-time S3 Protector
2
-
3
- # P6CDKS3Protector
4
-
5
- ## LICENSE
6
-
7
- [![License](https://img.shields.io/badge/License-Apache%202.0-yellowgreen.svg)](https://opensource.org/licenses/Apache-2.0)
8
-
9
- ## Other
10
-
11
- [![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/p6m7g8/p6-cdk-s3-protector) ![Sonarcloud Status](https://sonarcloud.io/api/project_badges/measure?project=p6m7g8_p6-cdk-s3-protector&metric=alert_status) ![GitHub commit activity](https://img.shields.io/github/commit-activity/y/p6m7g8/p6-cdk-s3-protector) ![GitHub commit activity](https://img.shields.io/github/commit-activity/m/p6m7g8/p6-cdk-s3-protector)
12
-
13
- ## Usage
14
-
15
- ```go
16
- ...
17
- import { P6CDKS3Protector } from 'p6-cdk-s3-protector'
18
-
19
- new P6CDKS3Protector(this, 'p6CDKS3Protector')
20
- ```
21
-
22
- ## Architecture
23
-
24
- ![./assets/diagram.png](./assets/diagram.png)
25
-
26
- ## Author
27
-
28
- Philip M. Gollucci [pgollucci@p6m7g8.com](mailto:pgollucci@p6m7g8.com)
@@ -1,13 +0,0 @@
1
- module github.com/p6m7g8/p6-cdk-s3-protector/p6cdks3protector
2
-
3
- go 1.18
4
-
5
- require (
6
- github.com/aws/jsii-runtime-go v1.104.0
7
- github.com/aws/aws-cdk-go/awscdk/v2 v2.164.1
8
- github.com/aws/constructs-go/constructs/v10 v10.4.2
9
- github.com/cdklabs/awscdk-asset-awscli-go/awscliv1/v2 v2.2.209 // indirect
10
- github.com/cdklabs/awscdk-asset-kubectl-go/kubectlv20/v2 v2.1.3 // indirect
11
- github.com/cdklabs/awscdk-asset-node-proxy-agent-go/nodeproxyagentv6/v2 v2.1.0 // indirect
12
- github.com/cdklabs/cloud-assembly-schema-go/awscdkcloudassemblyschema/v38 v38.0.1 // indirect
13
- )
@@ -1,5 +0,0 @@
1
- package internal
2
- import (
3
- "github.com/aws/aws-cdk-go/awscdk/v2"
4
- )
5
- type Type__awscdkResource = awscdk.Resource
@@ -1,28 +0,0 @@
1
- // Package jsii contains the functionaility needed for jsii packages to
2
- // initialize their dependencies and themselves. Users should never need to use this package
3
- // directly. If you find you need to - please report a bug at
4
- // https://github.com/aws/jsii/issues/new/choose
5
- package jsii
6
-
7
- import (
8
- _ "embed"
9
-
10
- _jsii_ "github.com/aws/jsii-runtime-go/runtime"
11
-
12
- awscdk "github.com/aws/aws-cdk-go/awscdk/v2/jsii"
13
- constructs "github.com/aws/constructs-go/constructs/v10/jsii"
14
- )
15
-
16
- //go:embed p6-cdk-s3-protector-0.0.3.tgz
17
- var tarball []byte
18
-
19
- // Initialize loads the necessary packages in the @jsii/kernel to support the enclosing module.
20
- // The implementation is idempotent (and hence safe to be called over and over).
21
- func Initialize() {
22
- // Ensure all dependencies are initialized
23
- awscdk.Initialize()
24
- constructs.Initialize()
25
-
26
- // Load this library into the kernel
27
- _jsii_.Load("p6-cdk-s3-protector", "0.0.3", tarball)
28
- }
@@ -1,31 +0,0 @@
1
- // AWS CDK: A Real-Time S3 Protector
2
- package p6cdks3protector
3
-
4
- import (
5
- "reflect"
6
-
7
- _jsii_ "github.com/aws/jsii-runtime-go/runtime"
8
- )
9
-
10
- func init() {
11
- _jsii_.RegisterClass(
12
- "p6-cdk-s3-protector.P6CDKS3Protector",
13
- reflect.TypeOf((*P6CDKS3Protector)(nil)).Elem(),
14
- []_jsii_.Member{
15
- _jsii_.MemberMethod{JsiiMethod: "applyRemovalPolicy", GoMethod: "ApplyRemovalPolicy"},
16
- _jsii_.MemberProperty{JsiiProperty: "env", GoGetter: "Env"},
17
- _jsii_.MemberMethod{JsiiMethod: "generatePhysicalName", GoMethod: "GeneratePhysicalName"},
18
- _jsii_.MemberMethod{JsiiMethod: "getResourceArnAttribute", GoMethod: "GetResourceArnAttribute"},
19
- _jsii_.MemberMethod{JsiiMethod: "getResourceNameAttribute", GoMethod: "GetResourceNameAttribute"},
20
- _jsii_.MemberProperty{JsiiProperty: "node", GoGetter: "Node"},
21
- _jsii_.MemberProperty{JsiiProperty: "physicalName", GoGetter: "PhysicalName"},
22
- _jsii_.MemberProperty{JsiiProperty: "stack", GoGetter: "Stack"},
23
- _jsii_.MemberMethod{JsiiMethod: "toString", GoMethod: "ToString"},
24
- },
25
- func() interface{} {
26
- j := jsiiProxy_P6CDKS3Protector{}
27
- _jsii_.InitJsiiProxy(&j.Type__awscdkResource)
28
- return &j
29
- },
30
- )
31
- }
@@ -1 +0,0 @@
1
- 0.0.3