Skip to content
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

Add delimiter and reusable to arn trait #2440

Merged
merged 1 commit into from
Nov 1, 2024
Merged

Conversation

kstich
Copy link
Contributor

@kstich kstich commented Nov 1, 2024

This commit adds two fields to the aws.api#arn trait:

  • resourceDelimiter - used to define the delimiter for resource segments of absolute ARN templates.
  • reusable - indicates whether an ARN may be reused for different instances of a resource.

Note: two test files were migrated to .smithy that aren't changed otherwise. While unrelated, this is a net-positive so I've left it in.


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

@kstich kstich requested a review from hpmellema November 1, 2024 21:14
@kstich kstich requested a review from a team as a code owner November 1, 2024 21:14
@@ -151,11 +177,14 @@ public Builder toBuilder() {
.sourceLocation(getSourceLocation())
.noRegion(isNoRegion())
.noAccount(isNoAccount())
.template(getTemplate());
.absolute(isAbsolute())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a bug fix as well - absolute wasn't maintained going to the builder.

This commit adds two fields to the aws.api#arn trait:

* resourceDelimiter - used to define the delimiter for resource segments of
absolute ARN templates.
* reusable - indicates whether an ARN may be reused for different instances
of a resource.
@kstich kstich force-pushed the add_arn_trait_properties branch from 5ac578a to 3be41df Compare November 1, 2024 21:42
@kstich kstich merged commit 31f10c5 into main Nov 1, 2024
14 checks passed
@kstich kstich deleted the add_arn_trait_properties branch November 1, 2024 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants