Skip to content

Commit 0c98552

Browse files
authored
2 parents fead876 + 0006613 commit 0c98552

File tree

11 files changed

+479
-13
lines changed

11 files changed

+479
-13
lines changed

CHANGELOG.v2.alpha.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## [2.214.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.213.0-alpha.0...v2.214.0-alpha.0) (2025-09-02)
6+
7+
8+
### Features
9+
10+
* **bedrock-alpha:** add guardrails l2 construct ([#34765](https://github.com/aws/aws-cdk/issues/34765)) ([b4fdb2b](https://github.com/aws/aws-cdk/commit/b4fdb2b494abf41eccab90cca0d0f64d38009fbe))
11+
* **eks-v2-alpha:** support eks with k8s 1.33 ([#34713](https://github.com/aws/aws-cdk/issues/34713)) ([c24565e](https://github.com/aws/aws-cdk/commit/c24565e015d692e9a9c5dc9703372ec51b04be6b)), closes [#34520](https://github.com/aws/aws-cdk/issues/34520) [#34911](https://github.com/aws/aws-cdk/issues/34911)
12+
* **s3tables-alpha:** add TablePolicy support to L2 construct library ([#35223](https://github.com/aws/aws-cdk/issues/35223)) ([2741dfb](https://github.com/aws/aws-cdk/commit/2741dfbf69bbfa3e4353b4b3cbb4423fddc53226)), closes [#33054](https://github.com/aws/aws-cdk/issues/33054)
13+
514
## [2.213.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.212.0-alpha.0...v2.213.0-alpha.0) (2025-08-27)
615

716

CHANGELOG.v2.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,40 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## [2.214.0](https://github.com/aws/aws-cdk/compare/v2.213.0...v2.214.0) (2025-09-02)
6+
7+
8+
### CHANGES TO L1 RESOURCES
9+
10+
* L1 resources are automatically generated from public CloudFormation Resource Schemas. They are build to closely reflect the real state of CloudFormation. Sometimes these updates can contain changes that are incompatible with previous types, but more accurately reflect reality. In this release we have changed:
11+
12+
- **aws-ecs**: AWS::ECS::Service: AvailabilityZoneRebalancing property default value changed from "ENABLED" to "DISABLED".
13+
14+
### Features
15+
16+
* **acm:** add support for ACM exportable public certificates ([#35079](https://github.com/aws/aws-cdk/issues/35079)) ([c158e80](https://github.com/aws/aws-cdk/commit/c158e806f6bf8a5a5c8464f44c8a9f9f2b3586bf)), closes [#35078](https://github.com/aws/aws-cdk/issues/35078)
17+
* **cloudwatch:** add option to show labels on pie chart ([#34745](https://github.com/aws/aws-cdk/issues/34745)) ([83f0a61](https://github.com/aws/aws-cdk/commit/83f0a61b838777ab6239bede77472f6667a0e441)), closes [#28929](https://github.com/aws/aws-cdk/issues/28929)
18+
* **cognito:** support refresh token rotation ([#34360](https://github.com/aws/aws-cdk/issues/34360)) ([74f8ad9](https://github.com/aws/aws-cdk/commit/74f8ad98c122f1c4c8f3ee10bd582feec80b55bf)), closes [#34344](https://github.com/aws/aws-cdk/issues/34344)
19+
* **core:** `DockerBuildOptions` support network param ([#34725](https://github.com/aws/aws-cdk/issues/34725)) ([bc333e2](https://github.com/aws/aws-cdk/commit/bc333e267620fa2e3b7add39c565548e778cd01f)), closes [#34514](https://github.com/aws/aws-cdk/issues/34514)
20+
* **dynamodb:** adding ContributorInsightsMode feature ([#35332](https://github.com/aws/aws-cdk/issues/35332)) ([f12ead2](https://github.com/aws/aws-cdk/commit/f12ead206b659941ef05464a708b6d23eada4ba0))
21+
* **rds:** retain automated backups for database cluster ([#35372](https://github.com/aws/aws-cdk/issues/35372)) ([2ffc666](https://github.com/aws/aws-cdk/commit/2ffc666a0e7fdcbbaa072bb9b91f19e4a80e9e46))
22+
* update L1 CloudFormation resource definitions ([#35320](https://github.com/aws/aws-cdk/issues/35320)) ([0d674e4](https://github.com/aws/aws-cdk/commit/0d674e4ac4b2f3544e917367af891bba03cf39b0))
23+
* update L1 CloudFormation resource definitions ([#35382](https://github.com/aws/aws-cdk/issues/35382)) ([8f708df](https://github.com/aws/aws-cdk/commit/8f708df13344ea4a8fd3a1b50ab2bf9dce4b556a))
24+
* **ecs:** volume initialization rate ([#34962](https://github.com/aws/aws-cdk/issues/34962)) ([b8dfbc4](https://github.com/aws/aws-cdk/commit/b8dfbc466cf8fac4641d9e8c111525e2dc7a1848))
25+
* **events:** enable customer managed keys to be used with Archive ([#35253](https://github.com/aws/aws-cdk/issues/35253)) ([9f5e507](https://github.com/aws/aws-cdk/commit/9f5e507a12fbf430307bc6aa688446ec62414abd))
26+
* **sns:** add notExistsCondition method ([#34712](https://github.com/aws/aws-cdk/issues/34712)) ([fd8677b](https://github.com/aws/aws-cdk/commit/fd8677bb93fb8776abb4510631d750bc88ff920d)), closes [#34707](https://github.com/aws/aws-cdk/issues/34707)
27+
28+
29+
### Bug Fixes
30+
31+
* lazy loading to improve startup time slows down large programs ([#35335](https://github.com/aws/aws-cdk/issues/35335)) ([6755a4e](https://github.com/aws/aws-cdk/commit/6755a4ea48f2963a4c3274e6fed938b4dc0f9f42))
32+
* **cloudwatch:** `AlarmRule.concat` cover empty operands ([#34757](https://github.com/aws/aws-cdk/issues/34757)) ([a01aa38](https://github.com/aws/aws-cdk/commit/a01aa38f044a5d3314831e0c912533917bdb8020)), closes [#34662](https://github.com/aws/aws-cdk/issues/34662)
33+
* **ecs_patterns:** openListener should be false when custom sg is provided ([#35297](https://github.com/aws/aws-cdk/issues/35297)) ([ccb1955](https://github.com/aws/aws-cdk/commit/ccb1955978e9e7851299d46f3bb4647bf4fd1a13)), closes [#35292](https://github.com/aws/aws-cdk/issues/35292) [#ffcdd2](https://github.com/aws/aws-cdk/issues/ffcdd2) [#e8f5e8](https://github.com/aws/aws-cdk/issues/e8f5e8) [#fff3e0](https://github.com/aws/aws-cdk/issues/fff3e0) [#f5f5f5](https://github.com/aws/aws-cdk/issues/f5f5f5)
34+
* **eks:** kubectlProvider should use the AmazonEC2ContainerRegistryPullOnly managed policy ([#35248](https://github.com/aws/aws-cdk/issues/35248)) ([1b6e962](https://github.com/aws/aws-cdk/commit/1b6e9628b18fe686c25f60e690193a7f0b331318)), closes [#35244](https://github.com/aws/aws-cdk/issues/35244)
35+
* **stepfunctions-tasks:** map bedrockagent service to bedrock IAM prefix ([#35147](https://github.com/aws/aws-cdk/issues/35147)) ([86638f6](https://github.com/aws/aws-cdk/commit/86638f6daca6ead382d0b9c1cf65bb04f70d4b3d)), closes [#35146](https://github.com/aws/aws-cdk/issues/35146)
36+
* stop passing the deprecated property to Cfn construct ([#35080](https://github.com/aws/aws-cdk/issues/35080)) ([a20afcd](https://github.com/aws/aws-cdk/commit/a20afcd4aaf275b01df4fc1eff930aa9dcb66d1d)), closes [#34895](https://github.com/aws/aws-cdk/issues/34895)
37+
* **s3-deployment:** intermittent CreateInvalidation and/or wait errors ([#34859](https://github.com/aws/aws-cdk/issues/34859)) ([628425c](https://github.com/aws/aws-cdk/commit/628425c9649a5ae7ca60b7ec7f9ac6237a4c1d11)), closes [#15891](https://github.com/aws/aws-cdk/issues/15891) [#15891](https://github.com/aws/aws-cdk/issues/15891)
38+
539
## [2.213.0](https://github.com/aws/aws-cdk/compare/v2.212.0...v2.213.0) (2025-08-27)
640

741

packages/@aws-cdk/aws-bedrock-alpha/bedrock/guardrails/guardrail-version.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { IResource, Resource } from 'aws-cdk-lib';
22
import { CfnGuardrailVersion } from 'aws-cdk-lib/aws-bedrock';
33
import { md5hash } from 'aws-cdk-lib/core/lib/helpers-internal';
4+
import { addConstructMetadata } from 'aws-cdk-lib/core/lib/metadata-resource';
5+
import { propertyInjectable } from 'aws-cdk-lib/core/lib/prop-injectable';
46
import { Construct } from 'constructs';
57
// Internal Libs
68
import { Guardrail, IGuardrail } from './guardrails';
@@ -89,7 +91,11 @@ export interface GuardrailVersionAttributes {
8991
* Class to create a Guardrail Version with CDK.
9092
* @cloudformationResource AWS::Bedrock::GuardrailVersion
9193
*/
94+
@propertyInjectable
9295
export class GuardrailVersion extends GuardrailVersionBase {
96+
/** Uniquely identifies this class. */
97+
public static readonly PROPERTY_INJECTION_ID: string = '@aws-cdk.aws-bedrock-alpha.GuardrailVersion';
98+
9399
/**
94100
* Import a Guardrail Version from its attributes.
95101
*/
@@ -120,6 +126,8 @@ export class GuardrailVersion extends GuardrailVersionBase {
120126
*/
121127
constructor(scope: Construct, id: string, props: GuardrailVersionProps) {
122128
super(scope, id);
129+
// Enhanced CDK Analytics Telemetry
130+
addConstructMetadata(this, props);
123131
this.guardrail = props.guardrail;
124132

125133
// Compute hash from guardrail, to recreate the resource when guardrail has changed

packages/@aws-cdk/aws-bedrock-alpha/bedrock/guardrails/guardrails.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import { Metric, MetricOptions, MetricProps } from 'aws-cdk-lib/aws-cloudwatch';
55
import * as iam from 'aws-cdk-lib/aws-iam';
66
import { IKey, Key } from 'aws-cdk-lib/aws-kms';
77
import { md5hash } from 'aws-cdk-lib/core/lib/helpers-internal';
8+
import { addConstructMetadata, MethodMetadata } from 'aws-cdk-lib/core/lib/metadata-resource';
9+
import { propertyInjectable } from 'aws-cdk-lib/core/lib/prop-injectable';
810
import { Construct } from 'constructs';
911
// Internal Libs
1012
import * as filters from './guardrail-filters';
@@ -408,7 +410,11 @@ export interface GuardrailAttributes {
408410
* Class to create a Guardrail with CDK.
409411
* @cloudformationResource AWS::Bedrock::Guardrail
410412
*/
413+
@propertyInjectable
411414
export class Guardrail extends GuardrailBase {
415+
/** Uniquely identifies this class. */
416+
public static readonly PROPERTY_INJECTION_ID: string = '@aws-cdk.aws-bedrock-alpha.Guardrail';
417+
412418
/**
413419
* Import a guardrail given its attributes
414420
*/
@@ -541,6 +547,8 @@ export class Guardrail extends GuardrailBase {
541547
super(scope, id, {
542548
physicalName: props.guardrailName,
543549
});
550+
// Enhanced CDK Analytics Telemetry
551+
addConstructMetadata(this, props);
544552

545553
// ------------------------------------------------------
546554
// Set properties or defaults
@@ -620,6 +628,7 @@ export class Guardrail extends GuardrailBase {
620628
* Adds a content filter to the guardrail.
621629
* @param filter The content filter to add.
622630
*/
631+
@MethodMetadata()
623632
public addContentFilter(filter: filters.ContentFilter): void {
624633
this.validateSingleContentFilter(filter);
625634
this.contentFilters.push(filter);
@@ -629,6 +638,7 @@ export class Guardrail extends GuardrailBase {
629638
* Adds a PII filter to the guardrail.
630639
* @param filter The PII filter to add.
631640
*/
641+
@MethodMetadata()
632642
public addPIIFilter(filter: filters.PIIFilter): void {
633643
this.validateSinglePiiFilter(filter);
634644
this.piiFilters.push(filter);
@@ -638,6 +648,7 @@ export class Guardrail extends GuardrailBase {
638648
* Adds a regex filter to the guardrail.
639649
* @param filter The regex filter to add.
640650
*/
651+
@MethodMetadata()
641652
public addRegexFilter(filter: filters.RegexFilter): void {
642653
this.validateSingleRegexFilter(filter);
643654
this.regexFilters.push(filter);
@@ -647,6 +658,7 @@ export class Guardrail extends GuardrailBase {
647658
* Adds a denied topic filter to the guardrail.
648659
* @param filter The denied topic filter to add.
649660
*/
661+
@MethodMetadata()
650662
public addDeniedTopicFilter(filter: filters.Topic): void {
651663
this.validateSingleDeniedTopic(filter);
652664
this.deniedTopics.push(filter);
@@ -656,6 +668,7 @@ export class Guardrail extends GuardrailBase {
656668
* Adds a contextual grounding filter to the guardrail.
657669
* @param filter The contextual grounding filter to add.
658670
*/
671+
@MethodMetadata()
659672
public addContextualGroundingFilter(filter: filters.ContextualGroundingFilter): void {
660673
this.validateSingleContextualGroundingFilter(filter);
661674
this.contextualGroundingFilters.push(filter);
@@ -665,6 +678,7 @@ export class Guardrail extends GuardrailBase {
665678
* Adds a word filter to the guardrail.
666679
* @param filter The word filter to add.
667680
*/
681+
@MethodMetadata()
668682
public addWordFilter(filter: filters.WordFilter): void {
669683
this.validateSingleWordFilter(filter);
670684
this.wordFilters.push(filter);
@@ -674,6 +688,7 @@ export class Guardrail extends GuardrailBase {
674688
* Adds a word filter to the guardrail.
675689
* @param filePath The location of the word filter file.
676690
*/
691+
@MethodMetadata()
677692
public addWordFilterFromFile(filePath: string,
678693
inputAction?: filters.GuardrailAction,
679694
outputAction?: filters.GuardrailAction,
@@ -688,6 +703,7 @@ export class Guardrail extends GuardrailBase {
688703
* Adds a managed word list filter to the guardrail.
689704
* @param filter The managed word list filter to add.
690705
*/
706+
@MethodMetadata()
691707
public addManagedWordListFilter(filter: filters.ManagedWordFilter): void {
692708
this.validateSingleManagedWordListFilter(filter);
693709
this.managedWordListFilters.push(filter);
@@ -698,6 +714,7 @@ export class Guardrail extends GuardrailBase {
698714
* @param description The description of the version.
699715
* @returns The guardrail version.
700716
*/
717+
@MethodMetadata()
701718
public createVersion(description?: string): string {
702719
const cfnVersion = new GuardrailVersion(this, `GuardrailVersion-${this.hash.slice(0, 16)}`, {
703720
description: description,

0 commit comments

Comments
 (0)