Skip to content

(aws-bedrock-agentcore-alpha): Make physical name properties optional for all resources #36341

@mazyu36

Description

@mazyu36

Describe the feature

All AWS Bedrock AgentCore constructs currently require physical name properties to be specified. These should be made optional, allowing CDK to automatically generate unique physical names when not specified, following AWS CDK best practices.

According to the AWS CDK Best Practices guide:

"Use generated resource names, not physical names"

Use Case

Making physical names optional provides several benefits:

  1. Stack reusability: Required physical names make it difficult to deploy the same stack across multiple environments (dev, staging, production) without code changes.

  2. Avoid naming conflicts: Auto-generated names guarantee uniqueness across stacks and environments.

Proposed Solution

Make physical name properties optional in all AgentCore resource Props interfaces and auto-generate names using Names.uniqueResourceName() when not specified.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

AWS CDK Library version (aws-cdk-lib)

all

AWS CDK CLI version

all

Environment details (OS name and version, etc.)

all

Metadata

Metadata

Assignees

No one assigned

    Labels

    aws-cdk-libRelated to the aws-cdk-lib packageeffort/mediumMedium work item – several days of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions