@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.
@@ -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;
@@ -999,11 +999,14 @@ class JaypieEnvSecret extends constructs.Construct {
999
999
  get secretArn() {
1000
1000
  return this._secret.secretArn;
1001
1001
  }
1002
+ get secretFullArn() {
1003
+ return this._secret.secretFullArn;
1004
+ }
1002
1005
  get secretName() {
1003
1006
  return this._secret.secretName;
1004
1007
  }
1005
- get secretFullArn() {
1006
- return this._secret.secretFullArn;
1008
+ get secretRef() {
1009
+ return this._secret.secretRef;
1007
1010
  }
1008
1011
  get encryptionKey() {
1009
1012
  return this._secret.encryptionKey;
@@ -2160,6 +2163,9 @@ class JaypieCertificate extends constructs.Construct {
2160
2163
  this.certificate.applyRemovalPolicy(policy);
2161
2164
  }
2162
2165
  // ICertificate implementation
2166
+ get certificateRef() {
2167
+ return this.certificate.certificateRef;
2168
+ }
2163
2169
  metricDaysToExpiry(props) {
2164
2170
  return this.certificate.metricDaysToExpiry(props);
2165
2171
  }
@@ -2825,6 +2831,9 @@ class JaypieDynamoDb extends constructs.Construct {
2825
2831
  get tableName() {
2826
2832
  return this._table.tableName;
2827
2833
  }
2834
+ get tableRef() {
2835
+ return this._table.tableRef;
2836
+ }
2828
2837
  get tableStreamArn() {
2829
2838
  return this._table.tableStreamArn;
2830
2839
  }
@@ -3919,6 +3928,10 @@ class JaypieWebDeploymentBucket extends constructs.Construct {
3919
3928
  new cdk.CfnOutput(this, "DestinationBucketDeployRoleArn", {
3920
3929
  value: bucketDeployRole.roleArn,
3921
3930
  });
3931
+ // Output the bucket name for workflows
3932
+ new cdk.CfnOutput(this, "DestinationBucketName", {
3933
+ value: this.bucket.bucketName,
3934
+ });
3922
3935
  }
3923
3936
  // Create CloudFront distribution and certificate if host and zone are provided
3924
3937
  if (host && zone) {
@@ -3972,6 +3985,10 @@ class JaypieWebDeploymentBucket extends constructs.Construct {
3972
3985
  });
3973
3986
  cdk.Tags.of(record).add(CDK$2.TAG.ROLE, CDK$2.ROLE.NETWORKING);
3974
3987
  this.distributionDomainName = this.distribution.distributionDomainName;
3988
+ // Output the distribution ID for cache invalidation
3989
+ new cdk.CfnOutput(this, "DistributionId", {
3990
+ value: this.distribution.distributionId,
3991
+ });
3975
3992
  }
3976
3993
  }
3977
3994
  // Implement remaining IBucket methods by delegating to the bucket