@jaypie/constructs 1.1.38 → 1.1.40
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/cjs/JaypieLambda.d.ts +3 -77
- package/dist/cjs/JaypieWebDeploymentBucket.d.ts +1 -0
- package/dist/cjs/helpers/__tests__/envHostname.spec.d.ts +1 -0
- package/dist/cjs/helpers/constructTagger.d.ts +4 -0
- package/dist/cjs/helpers/envHostname.d.ts +6 -0
- package/dist/cjs/helpers/index.d.ts +2 -1
- package/dist/cjs/index.cjs +164 -327
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/JaypieLambda.d.ts +3 -77
- package/dist/esm/JaypieWebDeploymentBucket.d.ts +1 -0
- package/dist/esm/helpers/__tests__/envHostname.spec.d.ts +1 -0
- package/dist/esm/helpers/constructTagger.d.ts +4 -0
- package/dist/esm/helpers/envHostname.d.ts +6 -0
- package/dist/esm/helpers/index.d.ts +2 -1
- package/dist/esm/index.js +66 -229
- package/dist/esm/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/cjs/helpers/stackTagger.d.ts +0 -4
- package/dist/esm/helpers/stackTagger.d.ts +0 -4
|
@@ -25,7 +25,7 @@ export interface JaypieLambdaProps {
|
|
|
25
25
|
[key: string]: secretsmanager.ISecret;
|
|
26
26
|
};
|
|
27
27
|
ephemeralStorageSize?: import("aws-cdk-lib").Size;
|
|
28
|
-
filesystem?: lambda.
|
|
28
|
+
filesystem?: lambda.FileSystem;
|
|
29
29
|
handler: string;
|
|
30
30
|
initialPolicy?: iam.PolicyStatement[];
|
|
31
31
|
layers?: lambda.ILayerVersion[];
|
|
@@ -60,40 +60,10 @@ export interface JaypieLambdaProps {
|
|
|
60
60
|
export declare class JaypieLambda extends Construct implements lambda.IFunction {
|
|
61
61
|
private readonly _lambda;
|
|
62
62
|
private readonly _provisioned?;
|
|
63
|
-
private readonly _code;
|
|
64
63
|
private readonly _reference;
|
|
65
|
-
private readonly _handler;
|
|
66
|
-
private readonly _memorySize;
|
|
67
|
-
private readonly _timeout;
|
|
68
|
-
private readonly _runtime;
|
|
69
|
-
private readonly _environment;
|
|
70
|
-
private readonly _vpc?;
|
|
71
|
-
private readonly _vpcSubnets?;
|
|
72
|
-
private readonly _securityGroups?;
|
|
73
|
-
private readonly _reservedConcurrentExecutions?;
|
|
74
|
-
private readonly _layers;
|
|
75
|
-
private readonly _architecture;
|
|
76
|
-
private readonly _ephemeralStorageSize?;
|
|
77
|
-
private readonly _codeSigningConfig?;
|
|
78
|
-
private readonly _filesystemConfigs?;
|
|
79
|
-
private readonly _environmentEncryption?;
|
|
80
|
-
private readonly _tracing?;
|
|
81
|
-
private readonly _profiling?;
|
|
82
|
-
private readonly _profilingGroup?;
|
|
83
|
-
private readonly _logRetentionRole?;
|
|
84
|
-
private readonly _logRetentionRetryOptions?;
|
|
85
|
-
private readonly _initialPolicy?;
|
|
86
|
-
private readonly _description?;
|
|
87
|
-
private readonly _maxEventAge?;
|
|
88
|
-
private readonly _retryAttempts?;
|
|
89
|
-
private readonly _runtimeManagementMode?;
|
|
90
|
-
private readonly _allowAllOutbound?;
|
|
91
|
-
private readonly _allowPublicSubnet?;
|
|
92
|
-
private readonly _deadLetterQueueEnabled?;
|
|
93
64
|
constructor(scope: Construct, id: string, props: JaypieLambdaProps);
|
|
94
65
|
get lambda(): lambda.Function;
|
|
95
66
|
get provisioned(): lambda.Alias | undefined;
|
|
96
|
-
get code(): lambda.Code;
|
|
97
67
|
get reference(): lambda.IFunction;
|
|
98
68
|
get functionArn(): string;
|
|
99
69
|
get functionName(): string;
|
|
@@ -110,65 +80,21 @@ export declare class JaypieLambda extends Construct implements lambda.IFunction
|
|
|
110
80
|
addFunctionUrl(options?: lambda.FunctionUrlOptions): lambda.FunctionUrl;
|
|
111
81
|
addPermission(id: string, permission: lambda.Permission): void;
|
|
112
82
|
addToRolePolicy(statement: iam.PolicyStatement): void;
|
|
113
|
-
addEnvironment(key: string, value: string, options?: lambda.EnvironmentOptions): lambda.Function;
|
|
114
83
|
configureAsyncInvoke(options: lambda.EventInvokeConfigOptions): void;
|
|
115
84
|
grantInvoke(grantee: iam.IGrantable): iam.Grant;
|
|
116
85
|
grantInvokeCompositePrincipal(compositePrincipal: iam.CompositePrincipal): iam.Grant[];
|
|
117
86
|
grantInvokeUrl(grantee: iam.IGrantable): iam.Grant;
|
|
87
|
+
grantInvokeLatestVersion(grantee: iam.IGrantable): iam.Grant;
|
|
88
|
+
grantInvokeVersion(grantee: iam.IGrantable, version: lambda.IVersion): iam.Grant;
|
|
118
89
|
metric(metricName: string, props?: cloudwatch.MetricOptions): cloudwatch.Metric;
|
|
119
90
|
metricDuration(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
|
|
120
91
|
metricErrors(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
|
|
121
92
|
metricInvocations(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
|
|
122
93
|
metricThrottles(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
|
|
123
|
-
grantInvokeLatestVersion(grantee: iam.IGrantable): iam.Grant;
|
|
124
|
-
grantInvokeVersion(grantee: iam.IGrantable, version: lambda.Version): iam.Grant;
|
|
125
94
|
get env(): {
|
|
126
95
|
account: string;
|
|
127
96
|
region: string;
|
|
128
97
|
};
|
|
129
98
|
get stack(): Stack;
|
|
130
99
|
applyRemovalPolicy(policy: RemovalPolicy): void;
|
|
131
|
-
get currentVersion(): lambda.Version;
|
|
132
|
-
get deadLetterQueue(): import("aws-cdk-lib/aws-sqs").IQueue | undefined;
|
|
133
|
-
get deadLetterTopic(): import("aws-cdk-lib/aws-sns").ITopic | undefined;
|
|
134
|
-
get logGroup(): import("aws-cdk-lib/aws-logs").ILogGroup;
|
|
135
|
-
get runtime(): lambda.Runtime;
|
|
136
|
-
get timeout(): Duration | undefined;
|
|
137
|
-
addAlias(aliasName: string, options?: lambda.AliasOptions): lambda.Alias;
|
|
138
|
-
addLayers(...layers: lambda.ILayerVersion[]): void;
|
|
139
|
-
invalidateVersionBasedOn(x: string): void;
|
|
140
|
-
metricConcurrentExecutions(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
|
|
141
|
-
metricUnreservedConcurrentExecutions(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
|
|
142
|
-
addVersion(name: string, codeSha256?: string, description?: string, provisionedExecutions?: number, asyncInvokeConfig?: lambda.EventInvokeConfigOptions): lambda.Version;
|
|
143
|
-
get memorySize(): number | undefined;
|
|
144
|
-
get handler(): string;
|
|
145
|
-
get environment(): {
|
|
146
|
-
[key: string]: string;
|
|
147
|
-
} | undefined;
|
|
148
|
-
get layers(): lambda.ILayerVersion[] | undefined;
|
|
149
|
-
get maxEventAge(): Duration | undefined;
|
|
150
|
-
get retryAttempts(): number | undefined;
|
|
151
|
-
get reservedConcurrentExecutions(): number | undefined;
|
|
152
|
-
get description(): string | undefined;
|
|
153
|
-
get initialPolicy(): iam.PolicyStatement[] | undefined;
|
|
154
|
-
get logRetentionRole(): iam.IRole | undefined;
|
|
155
|
-
get logRetentionRetryOptions(): lambda.LogRetentionRetryOptions | undefined;
|
|
156
|
-
get tracing(): lambda.Tracing | undefined;
|
|
157
|
-
get profiling(): boolean | undefined;
|
|
158
|
-
get profilingGroup(): import("aws-cdk-lib/aws-codeguruprofiler").IProfilingGroup | undefined;
|
|
159
|
-
get environmentEncryption(): import("aws-cdk-lib/aws-kms").IKey | undefined;
|
|
160
|
-
get codeSigningConfig(): lambda.ICodeSigningConfig | undefined;
|
|
161
|
-
get filesystemConfig(): lambda.FileSystemConfig | undefined;
|
|
162
|
-
get filesystemConfigs(): lambda.FileSystemConfig[] | undefined;
|
|
163
|
-
get ephemeralStorageSize(): number | undefined;
|
|
164
|
-
get runtimeManagementMode(): lambda.RuntimeManagementMode | undefined;
|
|
165
|
-
get architectureLabel(): string;
|
|
166
|
-
get vpc(): ec2.IVpc | undefined;
|
|
167
|
-
get vpcSubnets(): ec2.SubnetSelection | undefined;
|
|
168
|
-
get securityGroups(): ec2.ISecurityGroup[] | undefined;
|
|
169
|
-
get allowAllOutbound(): boolean | undefined;
|
|
170
|
-
get allowPublicSubnet(): boolean | undefined;
|
|
171
|
-
get canCreateLambdaLogGroup(): boolean;
|
|
172
|
-
get canCreatePermissions(): boolean;
|
|
173
|
-
get deadLetterQueueEnabled(): boolean | undefined;
|
|
174
100
|
}
|
|
@@ -62,6 +62,7 @@ export declare class JaypieWebDeploymentBucket extends Construct implements s3.I
|
|
|
62
62
|
grantRead(identity: any, objectsKeyPattern?: any): any;
|
|
63
63
|
grantReadWrite(identity: any, objectsKeyPattern?: any): any;
|
|
64
64
|
grantWrite(identity: any, objectsKeyPattern?: any): any;
|
|
65
|
+
grantReplicationPermission(identity: any, props: any): any;
|
|
65
66
|
s3UrlForObject(key?: string): string;
|
|
66
67
|
urlForObject(key?: string): string;
|
|
67
68
|
virtualHostedUrlForObject(key?: string, options?: s3.VirtualHostedStyleUrlOptions): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { constructEnvName } from "./constructEnvName";
|
|
2
2
|
export { constructStackName } from "./constructStackName";
|
|
3
|
+
export { constructTagger } from "./constructTagger";
|
|
4
|
+
export { envHostname } from "./envHostname";
|
|
3
5
|
export { isEnv, isProductionEnv, isSandboxEnv } from "./isEnv";
|
|
4
|
-
export { stackTagger } from "./stackTagger";
|