Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ public List<RuntimeClientPlugin> getClientPlugins(GenerationContext context) {
.namespace("smithy_core.aio.interfaces.identity", ".")
.build())
.addReference(Symbol.builder()
.addDependency(AwsPythonDependency.SMITHY_AWS_CORE)
.addDependency(AwsPythonDependency.SMITHY_AWS_CORE
.withOptionalDependencies("assume-role"))
.name("AWSCredentialsIdentity")
.namespace("smithy_aws_core.identity", ".")
.build())
Expand Down Expand Up @@ -152,7 +153,8 @@ public Symbol getAuthSchemeSymbol(GenerationContext context) {
return Symbol.builder()
.name("SigV4AuthScheme")
.namespace("smithy_aws_core.auth", ".")
.addDependency(AwsPythonDependency.SMITHY_AWS_CORE)
.addDependency(AwsPythonDependency.SMITHY_AWS_CORE
.withOptionalDependencies("assume-role"))
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ private static List<String> getOptionalDependencies(SymbolDependency dependency)
})
.orElse(Collections.emptyList());
try {
return optionals;
return optionals.stream().sorted().toList();
} catch (Exception e) {
return Collections.emptyList();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "feature",
"description": "Added support for Assume Role credential resolution."
}
3 changes: 3 additions & 0 deletions packages/smithy-aws-core/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ json = [
xml = [
"smithy-xml~=0.1.0"
]
assume-role = [
"smithy-aws-core[xml]"
]

[tool.hatch.build]
exclude = [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Code generated by smithy-python-codegen DO NOT EDIT.

__version__: str = "0.1.0"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Code generated by smithy-python-codegen DO NOT EDIT.
Loading
Loading