Repository navigation
Sync AWS service models and add new clients #125
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| <!-- Code generated by smithy-python-codegen DO NOT EDIT. --> | ||
|
|
||
| ## AWS Certificate Manager Client | ||
|
|
||
| aws_sdk_acm client | ||
|
|
||
| ### Documentation | ||
|
|
||
| You can use Certificate Manager (ACM) to manage SSL/TLS certificates for | ||
| your Amazon Web Services-based websites and applications. For more | ||
| information about using ACM, see the [Certificate Manager User | ||
| Guide](https://docs.aws.amazon.com/acm/latest/userguide/). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
| # Code generated by smithy-python-codegen DO NOT EDIT. | ||
|
|
||
| [project] | ||
| name = "aws_sdk_acm" | ||
| version = "0.12.0" | ||
| description = "aws_sdk_acm client" | ||
| readme = "README.md" | ||
| requires-python = ">=3.12" | ||
| keywords = ["smithy", "aws_sdk_acm"] | ||
| license = {text = "Apache-2.0"} | ||
| classifiers = [ | ||
| "Development Status :: 2 - Pre-Alpha", | ||
| "Intended Audience :: Developers", | ||
| "Intended Audience :: System Administrators", | ||
| "Natural Language :: English", | ||
| "License :: OSI Approved :: Apache Software License", | ||
| "Programming Language :: Python", | ||
| "Programming Language :: Python :: 3", | ||
| "Programming Language :: Python :: 3 :: Only", | ||
| "Programming Language :: Python :: 3.12", | ||
| "Programming Language :: Python :: 3.13", | ||
| "Programming Language :: Python :: 3.14", | ||
| "Programming Language :: Python :: 3.15" | ||
| ] | ||
|
|
||
| dependencies = [ | ||
| "smithy_aws_core[json]~=0.13.0", | ||
| "smithy_core~=0.10.0", | ||
| "smithy_http[aiohttp, urllib3]~=0.7.0" | ||
| ] | ||
|
|
||
| [project.optional-dependencies] | ||
| awscrt = [ | ||
| "smithy_http[awscrt]~=0.7.0" | ||
| ] | ||
|
|
||
| [dependency-groups] | ||
| test = [ | ||
| "pytest>=9.0.1,<10.0.0", | ||
| "pytest-asyncio>=1.3.0,<1.4.0", | ||
| "smithy_test~=0.2.0" | ||
| ] | ||
|
|
||
| [build-system] | ||
| requires = ["hatchling"] | ||
| build-backend = "hatchling.build" | ||
|
|
||
| [tool.pyright] | ||
| typeCheckingMode = "strict" | ||
| reportPrivateUsage = false | ||
| reportUnusedFunction = false | ||
| reportUnusedVariable = false | ||
| reportUnnecessaryComparison = false | ||
| reportUnusedClass = false | ||
| enableExperimentalFeatures = true | ||
| # models.py is the dynamic runtime; models.pyi carries the typed | ||
| # surface for consumers, so don't type-check the implementation body. | ||
| exclude = ["**/models.py"] | ||
|
|
||
| [tool.ruff] | ||
| target-version = "py312" | ||
|
|
||
| [tool.ruff.lint] | ||
| ignore = ["F841"] | ||
|
|
||
| [tool.ruff.format] | ||
| skip-magic-trailing-comma = true | ||
|
|
||
| [tool.pytest.ini_options] | ||
| python_classes = ["!Test"] | ||
| asyncio_mode = "auto" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| # Code generated by smithy-python-codegen DO NOT EDIT. | ||
|
|
||
| from importlib import import_module | ||
| from typing import Any, TYPE_CHECKING | ||
|
|
||
|
|
||
| if TYPE_CHECKING: | ||
| from .client import ACMClient | ||
| from .config import ACMConfig | ||
| from .aio.client import AsyncACMClient | ||
| from .aio.config import AsyncACMConfig | ||
|
|
||
| __all__ = ["ACMClient", "ACMConfig", "AsyncACMClient", "AsyncACMConfig"] | ||
|
|
||
| _EXPORTS = { | ||
| "ACMClient": ".client", | ||
| "ACMConfig": ".config", | ||
| "AsyncACMClient": ".aio.client", | ||
| "AsyncACMConfig": ".aio.config", | ||
| } | ||
|
|
||
|
|
||
| def __getattr__(name: str) -> Any: | ||
| if name in _EXPORTS: | ||
| return getattr(import_module(_EXPORTS[name], __name__), name) | ||
| raise AttributeError(f"module {__name__!r} has no attribute {name!r}") | ||
|
|
||
|
|
||
| __version__: str = "0.12.0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| # Code generated by smithy-python-codegen DO NOT EDIT. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| # Code generated by smithy-python-codegen DO NOT EDIT. | ||
|
|
||
| """Endpoint BDD for com.amazonaws.acm#CertificateManager.""" | ||
|
|
||
| from smithy_core.endpoints import EndpointBdd | ||
|
|
||
| # fmt: off | ||
| # Tags: ref=0, attr=1, call=2, list=3, map=4, error=5, endpoint=6. | ||
| BDD = EndpointBdd( | ||
| # (name, type, required, default, builtin, client_context_attribute) | ||
| parameters=( | ||
| ("Region", "string", True, None, "AWS::Region", None), | ||
| ("Endpoint", "string", False, None, "SDK::Endpoint", None), | ||
| ("UseFIPS", "boolean", True, False, "AWS::UseFIPS", None), | ||
| ("UseDualStack", "boolean", True, False, "AWS::UseDualStack", None), | ||
| ("ServiceType", "string", True, None, None, "service_type"), | ||
| ), | ||
| functions=("aws.partition", "booleanEquals", "isSet", "stringEquals"), | ||
| conditions=( | ||
| ((2, "isSet", (0, "Endpoint")), None), # 0: isSet(Endpoint) | ||
| ((2, "aws.partition", (0, "Region")), "PartitionResult"), # 1: PartitionResult = aws.partition(Region) | ||
| ((2, "stringEquals", (0, "ServiceType"), "ACM-ACME"), None), # 2: stringEquals(ServiceType, "ACM-ACME") | ||
| ((2, "booleanEquals", (0, "UseFIPS"), True), None), # 3: booleanEquals(UseFIPS, true) | ||
| ((2, "stringEquals", (1, (0, "PartitionResult"), "name"), "aws"), None), # 4: stringEquals(PartitionResult#name, "aws") | ||
| ((2, "booleanEquals", (0, "UseDualStack"), True), None), # 5: booleanEquals(UseDualStack, true) | ||
| ((2, "stringEquals", (1, (0, "PartitionResult"), "name"), "aws-us-gov"), None), # 6: stringEquals(PartitionResult#name, "aws-us-gov") | ||
| ), | ||
| results=( | ||
| None, # 0: no match | ||
| (6, "{Endpoint}", None, ()), # 1 | ||
| (5, "FIPS endpoints are not available for ACME operations"), # 2 | ||
| (6, "https://acm-acme.{Region}.{PartitionResult#dualStackDnsSuffix}", None, ()), # 3 | ||
| (5, "ACME operations are only available in the aws and aws-us-gov partitions"), # 4 | ||
| (6, "https://acm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", None, ()), # 5 | ||
| (6, "https://acm.{Region}.amazonaws.com", None, ()), # 6 | ||
| (6, "https://acm-fips.{Region}.{PartitionResult#dnsSuffix}", None, ()), # 7 | ||
| (6, "https://acm.{Region}.{PartitionResult#dualStackDnsSuffix}", None, ()), # 8 | ||
| (6, "https://acm.{Region}.{PartitionResult#dnsSuffix}", None, ()), # 9 | ||
| (5, "Region must be set to resolve an endpoint."), # 10 | ||
| ), | ||
| root=2, | ||
| # (condition, high, low); 1 and -1 are terminals, a negative reference is a | ||
| # complement edge, and 100_000_000 + k is result k. | ||
| nodes=( | ||
| -1, 1, -1, | ||
| 0, 100_000_001, 3, | ||
| 1, 4, 100_000_010, | ||
| 2, 9, 5, | ||
| 3, 7, 6, | ||
| 5, 100_000_008, 100_000_009, | ||
| 5, 100_000_005, 8, | ||
| 6, 100_000_006, 100_000_007, | ||
| 3, 12, 10, | ||
| 4, 100_000_003, 11, | ||
| 6, 100_000_003, 100_000_004, | ||
| 4, 100_000_002, 13, | ||
| 6, 100_000_002, 100_000_004, | ||
| ), | ||
| ) | ||
| # fmt: on |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does our release pipeline still replace the client READMEs with a filled out template? I'm not sure if that was removed when we internalized client gen.
If not, can we start using a template to create READMEs similar to existing clients: https://github.com/aws/aws-sdk-python/blob/develop/clients/aws-sdk-dynamodb/README.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the smithy-python generator should take over writing readmes, and the overlays eventually removed