Skip to content
Draft
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "enhancement",
"description": "Codegen sync for [smithy-python b8ecead..dc81d83](https://github.com/smithy-lang/smithy-python/commits/b8eceadb0573bd0c757def9a2b26fe7bf938b239..dc81d835f7a78e600a202d03b4c0a0cc049a5954): Add synchronous client APIs."
}
11 changes: 8 additions & 3 deletions clients/aws-sdk-api-gateway/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14"
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15"
]

dependencies = [
"smithy_aws_core[json]~=0.12.0",
"smithy_core~=0.9.0",
"smithy_http[aiohttp]~=0.6.0"
"smithy_http[aiohttp, urllib3]~=0.6.0"
]

[project.optional-dependencies]
Expand All @@ -40,7 +41,8 @@ docs = [
]
test = [
"pytest>=9.0.1,<10.0.0",
"pytest-asyncio>=1.3.0,<1.4.0"
"pytest-asyncio>=1.3.0,<1.4.0",
"smithy_test~=0.1.0"
]

[build-system]
Expand All @@ -55,6 +57,9 @@ 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"
Expand Down
31 changes: 31 additions & 0 deletions clients/aws-sdk-api-gateway/src/aws_sdk_api_gateway/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,34 @@
# 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 APIGatewayClient
from .config import APIGatewayConfig
from .aio.client import AsyncAPIGatewayClient
from .aio.config import AsyncAPIGatewayConfig

__all__ = [
"APIGatewayClient",
"APIGatewayConfig",
"AsyncAPIGatewayClient",
"AsyncAPIGatewayConfig",
]

_EXPORTS = {
"APIGatewayClient": ".client",
"APIGatewayConfig": ".config",
"AsyncAPIGatewayClient": ".aio.client",
"AsyncAPIGatewayConfig": ".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"
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.apigateway#BackplaneControlService."""

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", False, None, "AWS::Region", None),
("UseDualStack", "boolean", True, False, "AWS::UseDualStack", None),
("UseFIPS", "boolean", True, False, "AWS::UseFIPS", None),
("Endpoint", "string", False, None, "SDK::Endpoint", None),
),
functions=("aws.partition", "booleanEquals", "isSet"),
conditions=(
((2, "isSet", (0, "Endpoint")), None), # 0: isSet(Endpoint)
((2, "isSet", (0, "Region")), None), # 1: isSet(Region)
((2, "aws.partition", (0, "Region")), "PartitionResult"), # 2: PartitionResult = aws.partition(Region)
((2, "booleanEquals", (0, "UseFIPS"), True), None), # 3: booleanEquals(UseFIPS, true)
((2, "booleanEquals", (0, "UseDualStack"), True), None), # 4: booleanEquals(UseDualStack, true)
((2, "booleanEquals", (1, (0, "PartitionResult"), "supportsDualStack"), True), None), # 5: booleanEquals(PartitionResult#supportsDualStack, true)
((2, "booleanEquals", (1, (0, "PartitionResult"), "supportsFIPS"), True), None), # 6: booleanEquals(PartitionResult#supportsFIPS, true)
),
results=(
None, # 0: no match
(5, "Invalid Configuration: FIPS and custom endpoint are not supported"), # 1
(5, "Invalid Configuration: Dualstack and custom endpoint are not supported"), # 2
(6, (0, "Endpoint"), None, ()), # 3
(6, "https://apigateway-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", None, ()), # 4
(5, "FIPS and DualStack are enabled, but this partition does not support one or both"), # 5
(6, "https://apigateway-fips.{Region}.{PartitionResult#dnsSuffix}", None, ()), # 6
(5, "FIPS is enabled but this partition does not support FIPS"), # 7
(6, "https://apigateway.{Region}.{PartitionResult#dualStackDnsSuffix}", None, ()), # 8
(5, "DualStack is enabled but this partition does not support DualStack"), # 9
(6, "https://apigateway.{Region}.{PartitionResult#dnsSuffix}", None, ()), # 10
(5, "Invalid Configuration: Missing Region"), # 11
),
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, 12, 3,
1, 4, 100_000_011,
2, 5, 100_000_011,
3, 8, 6,
4, 7, 100_000_010,
5, 100_000_008, 100_000_009,
4, 10, 9,
6, 100_000_006, 100_000_007,
5, 11, 100_000_005,
6, 100_000_004, 100_000_005,
3, 100_000_001, 13,
4, 100_000_002, 100_000_003,
),
)
# fmt: on
Loading
Loading