Skip to content

Conversation

@rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Dec 24, 2025

This is the change in CDK that consumes the spec update cdklabs/awscdk-service-spec#2328.

This accounts for { Ref } not always returning what the schema says that the primary identifier of a resource is. This is not unexpected or wrong: the Registry Schema describes the behavior of Cloud Control API, and the identifier uniquely identifies a resource in an account. We do need to account for the differences though.

What we will do is:

  • Retain the CC-API fields in the reference interface if we hvae the values.
  • Fall back to the (smaller) CFN identifier fields if we don't have the values.
  • Make the CFN identifier fields win if the identifiers are equal size (in which case we probably a Name vs ARN distinction).

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

This is the change in CDK that consumes the spec update cdklabs/awscdk-service-spec#2328.

This accounts for `{ Ref }` not always returning what the schema says
that the primary identifier of a resource is. This is not unexpected or
wrong: the Registry Schema describes the behavior of Cloud Control API,
and the identifier uniquely identifies a resource in an account. We do
need to account for the differences though.

What we will do is:

- Retain the CC-API fields in the reference interface if we hvae the
  values.
- Fall back to the (smaller) CFN identifier fields if we don't have the
  values.
- Make the CFN identifier fields win if the identifiers are equal
  size (in which case we probably a Name vs ARN distinction).
@rix0rrr rix0rrr requested review from a team December 24, 2025 11:21
@github-actions github-actions bot added the p2 label Dec 24, 2025
@aws-cdk-automation aws-cdk-automation requested a review from a team December 24, 2025 11:21
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Dec 24, 2025
Copy link
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(This review is outdated)

@rix0rrr rix0rrr added the pr-linter/exempt-integ-test The PR linter will not require integ test changes label Dec 24, 2025
@aws-cdk-automation aws-cdk-automation dismissed their stale review December 24, 2025 12:34

✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contribution/core This is a PR that came from AWS. p2 pr-linter/exempt-integ-test The PR linter will not require integ test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants