@jaypie/constructs 1.2.16 → 1.2.17
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/JaypieCertificate.d.ts +1 -0
- package/dist/cjs/JaypieDynamoDb.d.ts +1 -0
- package/dist/cjs/JaypieEnvSecret.d.ts +2 -1
- package/dist/cjs/index.cjs +19 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/JaypieCertificate.d.ts +1 -0
- package/dist/esm/JaypieDynamoDb.d.ts +1 -0
- package/dist/esm/JaypieEnvSecret.d.ts +2 -1
- package/dist/esm/index.js +19 -2
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -113,5 +113,6 @@ export declare class JaypieCertificate extends Construct implements acm.ICertifi
|
|
|
113
113
|
region: string;
|
|
114
114
|
};
|
|
115
115
|
applyRemovalPolicy(policy: RemovalPolicy): void;
|
|
116
|
+
get certificateRef(): acm.CertificateReference;
|
|
116
117
|
metricDaysToExpiry(props?: import("aws-cdk-lib/aws-cloudwatch").MetricOptions): import("aws-cdk-lib/aws-cloudwatch").Metric;
|
|
117
118
|
}
|
|
@@ -105,6 +105,7 @@ export declare class JaypieDynamoDb extends Construct implements dynamodb.ITable
|
|
|
105
105
|
get tableArn(): string;
|
|
106
106
|
get tableId(): string | undefined;
|
|
107
107
|
get tableName(): string;
|
|
108
|
+
get tableRef(): dynamodb.TableReference;
|
|
108
109
|
get tableStreamArn(): string | undefined;
|
|
109
110
|
get encryptionKey(): import("aws-cdk-lib/aws-kms").IKey | undefined;
|
|
110
111
|
applyRemovalPolicy(policy: RemovalPolicy): void;
|
|
@@ -25,8 +25,9 @@ export declare class JaypieEnvSecret extends Construct implements ISecret {
|
|
|
25
25
|
};
|
|
26
26
|
applyRemovalPolicy(policy: RemovalPolicy): void;
|
|
27
27
|
get secretArn(): string;
|
|
28
|
-
get secretName(): string;
|
|
29
28
|
get secretFullArn(): string | undefined;
|
|
29
|
+
get secretName(): string;
|
|
30
|
+
get secretRef(): secretsmanager.SecretReference;
|
|
30
31
|
get encryptionKey(): IKey | undefined;
|
|
31
32
|
get secretValue(): SecretValue;
|
|
32
33
|
secretValueFromJson(key: string): SecretValue;
|
package/dist/esm/index.js
CHANGED
|
@@ -967,11 +967,14 @@ class JaypieEnvSecret extends Construct {
|
|
|
967
967
|
get secretArn() {
|
|
968
968
|
return this._secret.secretArn;
|
|
969
969
|
}
|
|
970
|
+
get secretFullArn() {
|
|
971
|
+
return this._secret.secretFullArn;
|
|
972
|
+
}
|
|
970
973
|
get secretName() {
|
|
971
974
|
return this._secret.secretName;
|
|
972
975
|
}
|
|
973
|
-
get
|
|
974
|
-
return this._secret.
|
|
976
|
+
get secretRef() {
|
|
977
|
+
return this._secret.secretRef;
|
|
975
978
|
}
|
|
976
979
|
get encryptionKey() {
|
|
977
980
|
return this._secret.encryptionKey;
|
|
@@ -2128,6 +2131,9 @@ class JaypieCertificate extends Construct {
|
|
|
2128
2131
|
this.certificate.applyRemovalPolicy(policy);
|
|
2129
2132
|
}
|
|
2130
2133
|
// ICertificate implementation
|
|
2134
|
+
get certificateRef() {
|
|
2135
|
+
return this.certificate.certificateRef;
|
|
2136
|
+
}
|
|
2131
2137
|
metricDaysToExpiry(props) {
|
|
2132
2138
|
return this.certificate.metricDaysToExpiry(props);
|
|
2133
2139
|
}
|
|
@@ -2793,6 +2799,9 @@ class JaypieDynamoDb extends Construct {
|
|
|
2793
2799
|
get tableName() {
|
|
2794
2800
|
return this._table.tableName;
|
|
2795
2801
|
}
|
|
2802
|
+
get tableRef() {
|
|
2803
|
+
return this._table.tableRef;
|
|
2804
|
+
}
|
|
2796
2805
|
get tableStreamArn() {
|
|
2797
2806
|
return this._table.tableStreamArn;
|
|
2798
2807
|
}
|
|
@@ -3887,6 +3896,10 @@ class JaypieWebDeploymentBucket extends Construct {
|
|
|
3887
3896
|
new CfnOutput(this, "DestinationBucketDeployRoleArn", {
|
|
3888
3897
|
value: bucketDeployRole.roleArn,
|
|
3889
3898
|
});
|
|
3899
|
+
// Output the bucket name for workflows
|
|
3900
|
+
new CfnOutput(this, "DestinationBucketName", {
|
|
3901
|
+
value: this.bucket.bucketName,
|
|
3902
|
+
});
|
|
3890
3903
|
}
|
|
3891
3904
|
// Create CloudFront distribution and certificate if host and zone are provided
|
|
3892
3905
|
if (host && zone) {
|
|
@@ -3940,6 +3953,10 @@ class JaypieWebDeploymentBucket extends Construct {
|
|
|
3940
3953
|
});
|
|
3941
3954
|
Tags.of(record).add(CDK$2.TAG.ROLE, CDK$2.ROLE.NETWORKING);
|
|
3942
3955
|
this.distributionDomainName = this.distribution.distributionDomainName;
|
|
3956
|
+
// Output the distribution ID for cache invalidation
|
|
3957
|
+
new CfnOutput(this, "DistributionId", {
|
|
3958
|
+
value: this.distribution.distributionId,
|
|
3959
|
+
});
|
|
3943
3960
|
}
|
|
3944
3961
|
}
|
|
3945
3962
|
// Implement remaining IBucket methods by delegating to the bucket
|