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
7 changes: 6 additions & 1 deletion codegen-output/aws-json-1-0/src/awsjson10/aio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@

from .. import models as _models
from .config import AsyncJSONRPC10Config, Plugin
from .retry_headers import aws_retry_headers_plugin
from .user_agent import aws_user_agent_plugin

from typing import TYPE_CHECKING

if TYPE_CHECKING:
from ..models import (

Check warning on line 23 in codegen-output/aws-json-1-0/src/awsjson10/aio/client.py

View workflow job for this annotation

GitHub Actions / ci (3.12)

QueryIncompatibleOperationOutput is not defined or imported in awsjson10.models

Check warning on line 23 in codegen-output/aws-json-1-0/src/awsjson10/aio/client.py

View workflow job for this annotation

GitHub Actions / ci (3.12)

PutWithContentEncodingOutput is not defined or imported in awsjson10.models

Check warning on line 23 in codegen-output/aws-json-1-0/src/awsjson10/aio/client.py

View workflow job for this annotation

GitHub Actions / ci (3.12)

NoInputAndNoOutputOutput is not defined or imported in awsjson10.models

Check warning on line 23 in codegen-output/aws-json-1-0/src/awsjson10/aio/client.py

View workflow job for this annotation

GitHub Actions / ci (3.12)

HostWithPathOperationOutput is not defined or imported in awsjson10.models

Check warning on line 23 in codegen-output/aws-json-1-0/src/awsjson10/aio/client.py

View workflow job for this annotation

GitHub Actions / ci (3.12)

EndpointWithHostLabelOperationOutput is not defined or imported in awsjson10.models

Check warning on line 23 in codegen-output/aws-json-1-0/src/awsjson10/aio/client.py

View workflow job for this annotation

GitHub Actions / ci (3.12)

EndpointOperationOutput is not defined or imported in awsjson10.models
ContentTypeParametersOutput,
EmptyInputAndEmptyOutputOutput,
EndpointOperationOutput,
Expand All @@ -45,7 +46,11 @@
class AsyncJSONRPC10Client(AsyncClient[AsyncJSONRPC10Config]):
"""Client for JsonRpc10"""

_client_plugins = (aws_user_agent_plugin, user_agent_plugin)
_client_plugins = (
aws_user_agent_plugin,
aws_retry_headers_plugin,
user_agent_plugin,
)

@_overload
async def content_type_parameters(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Code generated by smithy-python-codegen DO NOT EDIT.

from smithy_aws_core.interceptors.retry_headers import RetryHeadersInterceptor

from .config import AsyncJSONRPC10Config


def aws_retry_headers_plugin(config: AsyncJSONRPC10Config) -> None:
config.interceptors.append(RetryHeadersInterceptor())
7 changes: 6 additions & 1 deletion codegen-output/aws-json-1-0/src/awsjson10/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

from . import models as _models
from .config import JSONRPC10Config, Plugin
from .retry_headers import aws_retry_headers_plugin
from .user_agent import aws_user_agent_plugin

from typing import TYPE_CHECKING
Expand Down Expand Up @@ -45,7 +46,11 @@
class JSONRPC10Client(Client[JSONRPC10Config]):
"""Client for JsonRpc10"""

_client_plugins = (aws_user_agent_plugin, user_agent_plugin)
_client_plugins = (
aws_user_agent_plugin,
aws_retry_headers_plugin,
user_agent_plugin,
)

@_overload
def content_type_parameters(
Expand Down
9 changes: 9 additions & 0 deletions codegen-output/aws-json-1-0/src/awsjson10/retry_headers.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Code generated by smithy-python-codegen DO NOT EDIT.

from smithy_aws_core.interceptors.retry_headers import RetryHeadersInterceptor

from .config import JSONRPC10Config


def aws_retry_headers_plugin(config: JSONRPC10Config) -> None:
config.interceptors.append(RetryHeadersInterceptor())
7 changes: 6 additions & 1 deletion codegen-output/aws-json-1-1/src/awsjson11/aio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

from .. import models as _models
from .config import AsyncJsonProtocolConfig, Plugin
from .retry_headers import aws_retry_headers_plugin
from .user_agent import aws_user_agent_plugin

from typing import TYPE_CHECKING
Expand Down Expand Up @@ -47,7 +48,11 @@
class AsyncJsonProtocolClient(AsyncClient[AsyncJsonProtocolConfig]):
"""Client for JsonProtocol"""

_client_plugins = (aws_user_agent_plugin, user_agent_plugin)
_client_plugins = (
aws_user_agent_plugin,
aws_retry_headers_plugin,
user_agent_plugin,
)

@_overload
async def content_type_parameters(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Code generated by smithy-python-codegen DO NOT EDIT.

from smithy_aws_core.interceptors.retry_headers import RetryHeadersInterceptor

from .config import AsyncJsonProtocolConfig


def aws_retry_headers_plugin(config: AsyncJsonProtocolConfig) -> None:
config.interceptors.append(RetryHeadersInterceptor())
7 changes: 6 additions & 1 deletion codegen-output/aws-json-1-1/src/awsjson11/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

from . import models as _models
from .config import JsonProtocolConfig, Plugin
from .retry_headers import aws_retry_headers_plugin
from .user_agent import aws_user_agent_plugin

from typing import TYPE_CHECKING
Expand Down Expand Up @@ -47,7 +48,11 @@
class JsonProtocolClient(Client[JsonProtocolConfig]):
"""Client for JsonProtocol"""

_client_plugins = (aws_user_agent_plugin, user_agent_plugin)
_client_plugins = (
aws_user_agent_plugin,
aws_retry_headers_plugin,
user_agent_plugin,
)

@_overload
def content_type_parameters(
Expand Down
9 changes: 9 additions & 0 deletions codegen-output/aws-json-1-1/src/awsjson11/retry_headers.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Code generated by smithy-python-codegen DO NOT EDIT.

from smithy_aws_core.interceptors.retry_headers import RetryHeadersInterceptor

from .config import JsonProtocolConfig


def aws_retry_headers_plugin(config: JsonProtocolConfig) -> None:
config.interceptors.append(RetryHeadersInterceptor())
7 changes: 6 additions & 1 deletion codegen-output/aws-query/src/awsquery/aio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

from .. import models as _models
from .config import AsyncQueryProtocolConfig, Plugin
from .retry_headers import aws_retry_headers_plugin
from .user_agent import aws_user_agent_plugin

from typing import TYPE_CHECKING
Expand Down Expand Up @@ -62,7 +63,11 @@
class AsyncQueryProtocolClient(AsyncClient[AsyncQueryProtocolConfig]):
"""A query service that sends query requests and XML responses."""

_client_plugins = (aws_user_agent_plugin, user_agent_plugin)
_client_plugins = (
aws_user_agent_plugin,
aws_retry_headers_plugin,
user_agent_plugin,
)

@_overload
async def datetime_offsets(
Expand Down
9 changes: 9 additions & 0 deletions codegen-output/aws-query/src/awsquery/aio/retry_headers.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Code generated by smithy-python-codegen DO NOT EDIT.

from smithy_aws_core.interceptors.retry_headers import RetryHeadersInterceptor

from .config import AsyncQueryProtocolConfig


def aws_retry_headers_plugin(config: AsyncQueryProtocolConfig) -> None:
config.interceptors.append(RetryHeadersInterceptor())
7 changes: 6 additions & 1 deletion codegen-output/aws-query/src/awsquery/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

from . import models as _models
from .config import Plugin, QueryProtocolConfig
from .retry_headers import aws_retry_headers_plugin
from .user_agent import aws_user_agent_plugin

from typing import TYPE_CHECKING
Expand Down Expand Up @@ -62,7 +63,11 @@
class QueryProtocolClient(Client[QueryProtocolConfig]):
"""A query service that sends query requests and XML responses."""

_client_plugins = (aws_user_agent_plugin, user_agent_plugin)
_client_plugins = (
aws_user_agent_plugin,
aws_retry_headers_plugin,
user_agent_plugin,
)

@_overload
def datetime_offsets(
Expand Down
9 changes: 9 additions & 0 deletions codegen-output/aws-query/src/awsquery/retry_headers.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Code generated by smithy-python-codegen DO NOT EDIT.

from smithy_aws_core.interceptors.retry_headers import RetryHeadersInterceptor

from .config import QueryProtocolConfig


def aws_retry_headers_plugin(config: QueryProtocolConfig) -> None:
config.interceptors.append(RetryHeadersInterceptor())
7 changes: 6 additions & 1 deletion codegen-output/ec2-query/src/ec2query/aio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

from .. import models as _models
from .config import AsyncEC2ProtocolConfig, Plugin
from .retry_headers import aws_retry_headers_plugin
from .user_agent import aws_user_agent_plugin

from typing import TYPE_CHECKING
Expand Down Expand Up @@ -54,7 +55,11 @@
class AsyncEC2ProtocolClient(AsyncClient[AsyncEC2ProtocolConfig]):
"""An EC2 query service that sends query requests and XML responses."""

_client_plugins = (aws_user_agent_plugin, user_agent_plugin)
_client_plugins = (
aws_user_agent_plugin,
aws_retry_headers_plugin,
user_agent_plugin,
)

@_overload
async def datetime_offsets(
Expand Down
9 changes: 9 additions & 0 deletions codegen-output/ec2-query/src/ec2query/aio/retry_headers.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Code generated by smithy-python-codegen DO NOT EDIT.

from smithy_aws_core.interceptors.retry_headers import RetryHeadersInterceptor

from .config import AsyncEC2ProtocolConfig


def aws_retry_headers_plugin(config: AsyncEC2ProtocolConfig) -> None:
config.interceptors.append(RetryHeadersInterceptor())
7 changes: 6 additions & 1 deletion codegen-output/ec2-query/src/ec2query/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

from . import models as _models
from .config import EC2ProtocolConfig, Plugin
from .retry_headers import aws_retry_headers_plugin
from .user_agent import aws_user_agent_plugin

from typing import TYPE_CHECKING
Expand Down Expand Up @@ -54,7 +55,11 @@
class EC2ProtocolClient(Client[EC2ProtocolConfig]):
"""An EC2 query service that sends query requests and XML responses."""

_client_plugins = (aws_user_agent_plugin, user_agent_plugin)
_client_plugins = (
aws_user_agent_plugin,
aws_retry_headers_plugin,
user_agent_plugin,
)

@_overload
def datetime_offsets(
Expand Down
9 changes: 9 additions & 0 deletions codegen-output/ec2-query/src/ec2query/retry_headers.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Code generated by smithy-python-codegen DO NOT EDIT.

from smithy_aws_core.interceptors.retry_headers import RetryHeadersInterceptor

from .config import EC2ProtocolConfig


def aws_retry_headers_plugin(config: EC2ProtocolConfig) -> None:
config.interceptors.append(RetryHeadersInterceptor())
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

from .. import models as _models
from .config import AsyncNonQueryCompatibleRpcV2ProtocolConfig, Plugin
from .retry_headers import aws_retry_headers_plugin
from .user_agent import aws_user_agent_plugin

from typing import TYPE_CHECKING
Expand All @@ -30,7 +31,11 @@ class AsyncNonQueryCompatibleRpcV2ProtocolClient(
):
"""Client for NonQueryCompatibleRpcV2Protocol"""

_client_plugins = (aws_user_agent_plugin, user_agent_plugin)
_client_plugins = (
aws_user_agent_plugin,
aws_retry_headers_plugin,
user_agent_plugin,
)

@_overload
async def non_query_compatible_operation(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Code generated by smithy-python-codegen DO NOT EDIT.

from smithy_aws_core.interceptors.retry_headers import RetryHeadersInterceptor

from .config import AsyncNonQueryCompatibleRpcV2ProtocolConfig


def aws_retry_headers_plugin(
config: AsyncNonQueryCompatibleRpcV2ProtocolConfig,
) -> None:
config.interceptors.append(RetryHeadersInterceptor())
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

from . import models as _models
from .config import NonQueryCompatibleRpcV2ProtocolConfig, Plugin
from .retry_headers import aws_retry_headers_plugin
from .user_agent import aws_user_agent_plugin

from typing import TYPE_CHECKING
Expand All @@ -30,7 +31,11 @@ class NonQueryCompatibleRpcV2ProtocolClient(
):
"""Client for NonQueryCompatibleRpcV2Protocol"""

_client_plugins = (aws_user_agent_plugin, user_agent_plugin)
_client_plugins = (
aws_user_agent_plugin,
aws_retry_headers_plugin,
user_agent_plugin,
)

@_overload
def non_query_compatible_operation(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Code generated by smithy-python-codegen DO NOT EDIT.

from smithy_aws_core.interceptors.retry_headers import RetryHeadersInterceptor

from .config import NonQueryCompatibleRpcV2ProtocolConfig


def aws_retry_headers_plugin(config: NonQueryCompatibleRpcV2ProtocolConfig) -> None:
config.interceptors.append(RetryHeadersInterceptor())
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

from .. import models as _models
from .config import AsyncQueryCompatibleJSONRPC10Config, Plugin
from .retry_headers import aws_retry_headers_plugin
from .user_agent import aws_user_agent_plugin

from typing import TYPE_CHECKING
Expand All @@ -30,7 +31,11 @@ class AsyncQueryCompatibleJSONRPC10Client(
):
"""Client for QueryCompatibleJsonRpc10"""

_client_plugins = (aws_user_agent_plugin, user_agent_plugin)
_client_plugins = (
aws_user_agent_plugin,
aws_retry_headers_plugin,
user_agent_plugin,
)

@_overload
async def query_compatible_operation(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Code generated by smithy-python-codegen DO NOT EDIT.

from smithy_aws_core.interceptors.retry_headers import RetryHeadersInterceptor

from .config import AsyncQueryCompatibleJSONRPC10Config


def aws_retry_headers_plugin(config: AsyncQueryCompatibleJSONRPC10Config) -> None:
config.interceptors.append(RetryHeadersInterceptor())
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

from . import models as _models
from .config import Plugin, QueryCompatibleJSONRPC10Config
from .retry_headers import aws_retry_headers_plugin
from .user_agent import aws_user_agent_plugin

from typing import TYPE_CHECKING
Expand All @@ -28,7 +29,11 @@
class QueryCompatibleJSONRPC10Client(Client[QueryCompatibleJSONRPC10Config]):
"""Client for QueryCompatibleJsonRpc10"""

_client_plugins = (aws_user_agent_plugin, user_agent_plugin)
_client_plugins = (
aws_user_agent_plugin,
aws_retry_headers_plugin,
user_agent_plugin,
)

@_overload
def query_compatible_operation(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Code generated by smithy-python-codegen DO NOT EDIT.

from smithy_aws_core.interceptors.retry_headers import RetryHeadersInterceptor

from .config import QueryCompatibleJSONRPC10Config


def aws_retry_headers_plugin(config: QueryCompatibleJSONRPC10Config) -> None:
config.interceptors.append(RetryHeadersInterceptor())
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

from .. import models as _models
from .config import AsyncQueryCompatibleRpcV2ProtocolConfig, Plugin
from .retry_headers import aws_retry_headers_plugin
from .user_agent import aws_user_agent_plugin

from typing import TYPE_CHECKING
Expand All @@ -30,7 +31,11 @@ class AsyncQueryCompatibleRpcV2ProtocolClient(
):
"""Client for QueryCompatibleRpcV2Protocol"""

_client_plugins = (aws_user_agent_plugin, user_agent_plugin)
_client_plugins = (
aws_user_agent_plugin,
aws_retry_headers_plugin,
user_agent_plugin,
)

@_overload
async def query_compatible_operation(
Expand Down
Loading
Loading