@fy-stack/secret-construct 0.0.125 → 0.0.127
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/README.md
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Secrets Construct Documentation
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## `SecretsConstruct`
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
A construct that manages and encapsulates AWS Secrets Manager secrets. This construct implements the `Attachable` and `Grantable` interfaces.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
- **Properties**
|
|
8
|
+
- `secrets: secretsManager.Secret`
|
|
9
|
+
- The AWS Secrets Manager secret managed by this construct.
|
|
10
|
+
|
|
11
|
+
- **Constructor**
|
|
12
|
+
- `constructor(scope: Construct, id: string, props: SecretConstructProps)`
|
|
13
|
+
- Initializes the secrets construct with a unique identifier and configuration options defined by `SecretConstructProps`.
|
|
@@ -3,6 +3,10 @@ import { IGrantable } from 'aws-cdk-lib/aws-iam';
|
|
|
3
3
|
import * as secretsManager from 'aws-cdk-lib/aws-secretsmanager';
|
|
4
4
|
import { Construct } from 'constructs';
|
|
5
5
|
import type { SecretConstructProps } from './type';
|
|
6
|
+
/**
|
|
7
|
+
* A construct that manages and encapsulates AWS Secrets Manager secrets.
|
|
8
|
+
* This construct implements the {@link Attachable `Attachable`} and {@link Grantable `Grantable`} interfaces.
|
|
9
|
+
*/
|
|
6
10
|
export declare class SecretsConstruct extends Construct implements Attachable, Grantable {
|
|
7
11
|
readonly secrets: secretsManager.Secret;
|
|
8
12
|
constructor(scope: Construct, id: string, props: SecretConstructProps);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secret-construct.d.ts","sourceRoot":"","sources":["../../src/lib/secret-construct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAExD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,cAAc,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAEnD,qBAAa,gBAAiB,SAAQ,SAAU,YAAW,UAAU,EAAE,SAAS;IAC9E,SAAgB,OAAO,EAAE,cAAc,CAAC,MAAM,CAAC;gBAEnC,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,oBAAoB;IAgCrE,UAAU;;;;IAOV,SAAS,CAAC,KAAK,EAAE,UAAU;CAG5B"}
|
|
1
|
+
{"version":3,"file":"secret-construct.d.ts","sourceRoot":"","sources":["../../src/lib/secret-construct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAExD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,cAAc,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAEnD;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,SAAU,YAAW,UAAU,EAAE,SAAS;IAC9E,SAAgB,OAAO,EAAE,cAAc,CAAC,MAAM,CAAC;gBAEnC,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,oBAAoB;IAgCrE,UAAU;;;;IAOV,SAAS,CAAC,KAAK,EAAE,UAAU;CAG5B"}
|
|
@@ -5,6 +5,10 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const cdk = tslib_1.__importStar(require("aws-cdk-lib"));
|
|
6
6
|
const secretsManager = tslib_1.__importStar(require("aws-cdk-lib/aws-secretsmanager"));
|
|
7
7
|
const constructs_1 = require("constructs");
|
|
8
|
+
/**
|
|
9
|
+
* A construct that manages and encapsulates AWS Secrets Manager secrets.
|
|
10
|
+
* This construct implements the {@link Attachable `Attachable`} and {@link Grantable `Grantable`} interfaces.
|
|
11
|
+
*/
|
|
8
12
|
class SecretsConstruct extends constructs_1.Construct {
|
|
9
13
|
secrets;
|
|
10
14
|
constructor(scope, id, props) {
|
package/dist/lib/type.d.ts
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { Attachable } from '@fy-stack/types';
|
|
2
|
+
/**
|
|
3
|
+
* Interface representing the properties for the construction of secrets.
|
|
4
|
+
*/
|
|
2
5
|
export interface SecretConstructProps {
|
|
6
|
+
/**
|
|
7
|
+
* A collection of default static values to be added to the secrets created
|
|
8
|
+
* */
|
|
3
9
|
secrets?: Record<string, string | undefined>;
|
|
10
|
+
/**
|
|
11
|
+
* A collection of resources that can be attached. The keys are resource names, and the values
|
|
12
|
+
* are an instance of {@link Attachable `Attachable`}.
|
|
13
|
+
*/
|
|
4
14
|
resources?: Record<string, Attachable | undefined>;
|
|
5
15
|
}
|
|
6
16
|
//# sourceMappingURL=type.d.ts.map
|
package/dist/lib/type.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/lib/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,WAAW,oBAAoB;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/lib/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;SAEK;IACL,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IAE7C;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,SAAS,CAAC,CAAA;CACnD"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fy-stack/secret-construct",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.127",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"tslib": "^2.3.0",
|
|
6
|
-
"@fy-stack/types": "0.0.
|
|
6
|
+
"@fy-stack/types": "0.0.127"
|
|
7
7
|
},
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"aws-cdk-lib": "2.
|
|
9
|
+
"aws-cdk-lib": "2.166.0",
|
|
10
10
|
"constructs": "10.4.2"
|
|
11
11
|
},
|
|
12
12
|
"type": "commonjs",
|