Skip to content

chore(deps): upgrade deps #1118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 31 additions & 42 deletions .eslintrc.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions .github/workflows/release.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion src/cdk-lib/bedrock/agents/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,13 @@ To deploy your agent, you need to create an alias. During alias creation, Amazon

By default, the `Agent` resource does not create any aliases, and you can use the 'DRAFT' version.

To create a new version for an existing alias, you can update the description of your agent alias and re-deploy.
To create a new version for an existing alias, you can update the description of your agent alias and re-deploy. For instance, you can use the `last_updated` attribute of the agent in the agent alias description. Thus, whenever the agent will be updated, a new version will be created automatically and the existing alias will point to that version.

```
...
description: `Updated at ${agent.lastUpdated}`
...
```

### TypeScript

Expand Down
4 changes: 2 additions & 2 deletions src/cdk-lib/bedrock/agents/agent-collaborator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export enum AgentCollaboratorType {
/**
* Supervisor router.
*/
SUPERVISOR_ROUTER = 'SUPERVISOR_ROUTER'
SUPERVISOR_ROUTER = 'SUPERVISOR_ROUTER',
}

/**
Expand All @@ -47,7 +47,7 @@ export enum RelayConversationHistoryType {
/**
* Disabling relay of conversation history to the collaborator.
*/
DISABLED = 'DISABLED'
DISABLED = 'DISABLED',
}

/******************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion src/cdk-lib/bedrock/agents/orchestration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ export enum OrchestrationType {
/**
* Custom orchestration using Lambda.
*/
CUSTOM_ORCHESTRATION = 'CUSTOM_ORCHESTRATION'
CUSTOM_ORCHESTRATION = 'CUSTOM_ORCHESTRATION',
}
2 changes: 1 addition & 1 deletion src/cdk-lib/opensearchserverless/vector-collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export enum VectorCollectionType {
* Vector search – Semantic search on vector embeddings that simplifies vector data management and powers machine learning (ML) augmented search experiences and generative AI applications,
* such as chatbots, personal assistants, and fraud detection.
*/
VECTORSEARCH = 'VECTORSEARCH'
VECTORSEARCH = 'VECTORSEARCH',
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/common/base-class/base-class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export class BaseClass extends Construct {
/**
* Default log config for all constructs
*/
fieldLogLevel:appsync.FieldLogLevel = appsync.FieldLogLevel.ALL;
fieldLogLevel: appsync.FieldLogLevel = appsync.FieldLogLevel.ALL;

/**
* Default log retention config for all constructs
Expand Down
2 changes: 1 addition & 1 deletion src/common/helpers/vpc-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export enum ServiceEndpointTypeEnum {
BEDROCK_RUNTIME = 'BEDROCK_RUNTIME',
COMPREHEND = 'COMPREHEND',
REKOGNITION = 'REKOGNITION',
APP_SYNC = 'APP_SYNC'
APP_SYNC = 'APP_SYNC',
}

export function CheckVpcProps(propsObject: VpcPropsSet | any) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export interface CustomSageMakerEndpointProps {
readonly modelId: string;
readonly endpointName: string;
readonly instanceType: SageMakerInstanceType;
readonly minCapacity?:number;
readonly maxCapacity?:number;
readonly minCapacity?: number;
readonly maxCapacity?: number;
readonly container: ContainerImage;
readonly instanceCount?: number;
readonly role?: iam.Role;
Expand Down
2 changes: 1 addition & 1 deletion test/integ/issue991.integ.snapshot/tree.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"tree-0.1","tree":{"id":"App","path":"","children":{"Claude37Test":{"id":"Claude37Test","path":"Claude37Test","children":{"Agent":{"id":"Agent","path":"Claude37Test/Agent","children":{"Role":{"id":"Role","path":"Claude37Test/Agent/Role","children":{"ImportRole":{"id":"ImportRole","path":"Claude37Test/Agent/Role/ImportRole","constructInfo":{"fqn":"aws-cdk-lib.Resource","version":"2.189.0","metadata":[]}},"Resource":{"id":"Resource","path":"Claude37Test/Agent/Role/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::IAM::Role","aws:cdk:cloudformation:props":{"assumeRolePolicyDocument":{"Statement":[{"Action":"sts:AssumeRole","Condition":{"StringEquals":{"aws:SourceAccount":{"Ref":"AWS::AccountId"}},"ArnLike":{"aws:SourceArn":{"Fn::Join":["",["arn:",{"Ref":"AWS::Partition"},":bedrock:us-east-1:",{"Ref":"AWS::AccountId"},":agent/*"]]}}},"Effect":"Allow","Principal":{"Service":"bedrock.amazonaws.com"}}],"Version":"2012-10-17"},"roleName":"AmazonBedrockExecutionRoleForAgents_Claude37TestAgent6E1B1693"}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.CfnRole","version":"2.189.0"}},"DefaultPolicy":{"id":"DefaultPolicy","path":"Claude37Test/Agent/Role/DefaultPolicy","children":{"Resource":{"id":"Resource","path":"Claude37Test/Agent/Role/DefaultPolicy/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::IAM::Policy","aws:cdk:cloudformation:props":{"policyDocument":{"Statement":[{"Action":["bedrock:InvokeModel*","bedrock:GetFoundationModel"],"Effect":"Allow","Resource":{"Fn::Join":["",["arn:",{"Ref":"AWS::Partition"},":bedrock:*::foundation-model/anthropic.claude-3-7-sonnet-20250219-v1:0"]]}},{"Action":["bedrock:GetInferenceProfile","bedrock:InvokeModel*"],"Effect":"Allow","Resource":{"Fn::Join":["",["arn:",{"Ref":"AWS::Partition"},":bedrock:",{"Ref":"AWS::Region"},":",{"Ref":"AWS::AccountId"},":inference-profile/us.anthropic.claude-3-7-sonnet-20250219-v1:0"]]}}],"Version":"2012-10-17"},"policyName":"AgentRoleDefaultPolicyA34CCA36","roles":[{"Ref":"AgentRole9D587F56"}]}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.CfnPolicy","version":"2.189.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.Policy","version":"2.189.0","metadata":[]}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.Role","version":"2.189.0","metadata":[]}},"AgentResource":{"id":"AgentResource","path":"Claude37Test/Agent/AgentResource","attributes":{"aws:cdk:cloudformation:type":"AWS::Bedrock::Agent","aws:cdk:cloudformation:props":{"actionGroups":[{"actionGroupName":"UserInputAction","actionGroupState":"DISABLED","parentActionGroupSignature":"AMAZON.UserInput","skipResourceInUseCheckOnDelete":false},{"actionGroupName":"CodeInterpreterAction","actionGroupState":"DISABLED","parentActionGroupSignature":"AMAZON.CodeInterpreter","skipResourceInUseCheckOnDelete":false}],"agentName":"test-agent-claude37","agentResourceRoleArn":{"Fn::GetAtt":["AgentRole9D587F56","Arn"]},"autoPrepare":true,"description":"Agent description.","foundationModel":{"Fn::Join":["",["arn:",{"Ref":"AWS::Partition"},":bedrock:",{"Ref":"AWS::Region"},":",{"Ref":"AWS::AccountId"},":inference-profile/us.anthropic.claude-3-7-sonnet-20250219-v1:0"]]},"idleSessionTtlInSeconds":3600,"instruction":"You're a nice agent saying Konnichiwa in Hiragana at the start of every interaction","skipResourceInUseCheckOnDelete":false}},"constructInfo":{"fqn":"aws-cdk-lib.aws_bedrock.CfnAgent","version":"2.189.0"}},"DefaultAlias":{"id":"DefaultAlias","path":"Claude37Test/Agent/DefaultAlias","constructInfo":{"fqn":"aws-cdk-lib.Resource","version":"2.189.0","metadata":[]}}},"constructInfo":{"fqn":"aws-cdk-lib.Resource","version":"2.189.0","metadata":[]}},"BootstrapVersion":{"id":"BootstrapVersion","path":"Claude37Test/BootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnParameter","version":"2.189.0"}},"CheckBootstrapVersion":{"id":"CheckBootstrapVersion","path":"Claude37Test/CheckBootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnRule","version":"2.189.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.Stack","version":"2.189.0"}},"Claude37Test-Integ":{"id":"Claude37Test-Integ","path":"Claude37Test-Integ","children":{"DefaultTest":{"id":"DefaultTest","path":"Claude37Test-Integ/DefaultTest","children":{"Default":{"id":"Default","path":"Claude37Test-Integ/DefaultTest/Default","constructInfo":{"fqn":"constructs.Construct","version":"10.3.0"}},"DeployAssert":{"id":"DeployAssert","path":"Claude37Test-Integ/DefaultTest/DeployAssert","children":{"BootstrapVersion":{"id":"BootstrapVersion","path":"Claude37Test-Integ/DefaultTest/DeployAssert/BootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnParameter","version":"2.189.0"}},"CheckBootstrapVersion":{"id":"CheckBootstrapVersion","path":"Claude37Test-Integ/DefaultTest/DeployAssert/CheckBootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnRule","version":"2.189.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.Stack","version":"2.189.0"}}},"constructInfo":{"fqn":"@aws-cdk/integ-tests-alpha.IntegTestCase","version":"2.189.0-alpha.0"}}},"constructInfo":{"fqn":"@aws-cdk/integ-tests-alpha.IntegTest","version":"2.189.0-alpha.0"}},"Tree":{"id":"Tree","path":"Tree","constructInfo":{"fqn":"constructs.Construct","version":"10.3.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.App","version":"2.189.0"}}}
{"version":"tree-0.1","tree":{"id":"App","path":"","children":{"Claude37Test":{"id":"Claude37Test","path":"Claude37Test","children":{"Agent":{"id":"Agent","path":"Claude37Test/Agent","children":{"Role":{"id":"Role","path":"Claude37Test/Agent/Role","children":{"ImportRole":{"id":"ImportRole","path":"Claude37Test/Agent/Role/ImportRole","constructInfo":{"fqn":"aws-cdk-lib.Resource","version":"2.191.0","metadata":[]}},"Resource":{"id":"Resource","path":"Claude37Test/Agent/Role/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::IAM::Role","aws:cdk:cloudformation:props":{"assumeRolePolicyDocument":{"Statement":[{"Action":"sts:AssumeRole","Condition":{"StringEquals":{"aws:SourceAccount":{"Ref":"AWS::AccountId"}},"ArnLike":{"aws:SourceArn":{"Fn::Join":["",["arn:",{"Ref":"AWS::Partition"},":bedrock:us-east-1:",{"Ref":"AWS::AccountId"},":agent/*"]]}}},"Effect":"Allow","Principal":{"Service":"bedrock.amazonaws.com"}}],"Version":"2012-10-17"},"roleName":"AmazonBedrockExecutionRoleForAgents_Claude37TestAgent6E1B1693"}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.CfnRole","version":"2.191.0"}},"DefaultPolicy":{"id":"DefaultPolicy","path":"Claude37Test/Agent/Role/DefaultPolicy","children":{"Resource":{"id":"Resource","path":"Claude37Test/Agent/Role/DefaultPolicy/Resource","attributes":{"aws:cdk:cloudformation:type":"AWS::IAM::Policy","aws:cdk:cloudformation:props":{"policyDocument":{"Statement":[{"Action":["bedrock:InvokeModel*","bedrock:GetFoundationModel"],"Effect":"Allow","Resource":{"Fn::Join":["",["arn:",{"Ref":"AWS::Partition"},":bedrock:*::foundation-model/anthropic.claude-3-7-sonnet-20250219-v1:0"]]}},{"Action":["bedrock:GetInferenceProfile","bedrock:InvokeModel*"],"Effect":"Allow","Resource":{"Fn::Join":["",["arn:",{"Ref":"AWS::Partition"},":bedrock:",{"Ref":"AWS::Region"},":",{"Ref":"AWS::AccountId"},":inference-profile/us.anthropic.claude-3-7-sonnet-20250219-v1:0"]]}}],"Version":"2012-10-17"},"policyName":"AgentRoleDefaultPolicyA34CCA36","roles":[{"Ref":"AgentRole9D587F56"}]}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.CfnPolicy","version":"2.191.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.Policy","version":"2.191.0","metadata":[]}}},"constructInfo":{"fqn":"aws-cdk-lib.aws_iam.Role","version":"2.191.0","metadata":[]}},"AgentResource":{"id":"AgentResource","path":"Claude37Test/Agent/AgentResource","attributes":{"aws:cdk:cloudformation:type":"AWS::Bedrock::Agent","aws:cdk:cloudformation:props":{"actionGroups":[{"actionGroupName":"UserInputAction","actionGroupState":"DISABLED","parentActionGroupSignature":"AMAZON.UserInput","skipResourceInUseCheckOnDelete":false},{"actionGroupName":"CodeInterpreterAction","actionGroupState":"DISABLED","parentActionGroupSignature":"AMAZON.CodeInterpreter","skipResourceInUseCheckOnDelete":false}],"agentName":"test-agent-claude37","agentResourceRoleArn":{"Fn::GetAtt":["AgentRole9D587F56","Arn"]},"autoPrepare":true,"description":"Agent description.","foundationModel":{"Fn::Join":["",["arn:",{"Ref":"AWS::Partition"},":bedrock:",{"Ref":"AWS::Region"},":",{"Ref":"AWS::AccountId"},":inference-profile/us.anthropic.claude-3-7-sonnet-20250219-v1:0"]]},"idleSessionTtlInSeconds":3600,"instruction":"You're a nice agent saying Konnichiwa in Hiragana at the start of every interaction","skipResourceInUseCheckOnDelete":false}},"constructInfo":{"fqn":"aws-cdk-lib.aws_bedrock.CfnAgent","version":"2.191.0"}},"DefaultAlias":{"id":"DefaultAlias","path":"Claude37Test/Agent/DefaultAlias","constructInfo":{"fqn":"aws-cdk-lib.Resource","version":"2.191.0","metadata":[]}}},"constructInfo":{"fqn":"aws-cdk-lib.Resource","version":"2.191.0","metadata":[]}},"BootstrapVersion":{"id":"BootstrapVersion","path":"Claude37Test/BootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnParameter","version":"2.191.0"}},"CheckBootstrapVersion":{"id":"CheckBootstrapVersion","path":"Claude37Test/CheckBootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnRule","version":"2.191.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.Stack","version":"2.191.0"}},"Claude37Test-Integ":{"id":"Claude37Test-Integ","path":"Claude37Test-Integ","children":{"DefaultTest":{"id":"DefaultTest","path":"Claude37Test-Integ/DefaultTest","children":{"Default":{"id":"Default","path":"Claude37Test-Integ/DefaultTest/Default","constructInfo":{"fqn":"constructs.Construct","version":"10.3.0"}},"DeployAssert":{"id":"DeployAssert","path":"Claude37Test-Integ/DefaultTest/DeployAssert","children":{"BootstrapVersion":{"id":"BootstrapVersion","path":"Claude37Test-Integ/DefaultTest/DeployAssert/BootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnParameter","version":"2.191.0"}},"CheckBootstrapVersion":{"id":"CheckBootstrapVersion","path":"Claude37Test-Integ/DefaultTest/DeployAssert/CheckBootstrapVersion","constructInfo":{"fqn":"aws-cdk-lib.CfnRule","version":"2.191.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.Stack","version":"2.191.0"}}},"constructInfo":{"fqn":"@aws-cdk/integ-tests-alpha.IntegTestCase","version":"2.191.0-alpha.0"}}},"constructInfo":{"fqn":"@aws-cdk/integ-tests-alpha.IntegTest","version":"2.191.0-alpha.0"}},"Tree":{"id":"Tree","path":"Tree","constructInfo":{"fqn":"constructs.Construct","version":"10.3.0"}}},"constructInfo":{"fqn":"aws-cdk-lib.App","version":"2.191.0"}}}
Loading
Loading