Skip to content
Merged
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
8 changes: 8 additions & 0 deletions codegen-output/aws-json-1-0/src/awsjson10/aio/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ class _AsyncJSONRPC10ConfigOverrides(AsyncAwsConfigOverrides, total=False):
auth_scheme_resolver: AuthSchemeResolver | None
use_dualstack_endpoint: bool | None
use_fips_endpoint: bool | None
disable_host_prefix_injection: bool | None


@dataclass(kw_only=True, repr=False, init=False)
Expand Down Expand Up @@ -220,6 +221,12 @@ class AsyncJSONRPC10Config(AsyncAwsConfig):
header.
"""

disable_host_prefix_injection: bool | None = None
"""
Whether to skip prepending operations' modeled host prefixes to the
endpoint host.
"""

_FIELDS: ClassVar[dict[str, FieldSpec]] = {
"use_dualstack_endpoint": FieldSpec(
default=None, resolver=resolve_use_dualstack_endpoint_program
Expand All @@ -234,6 +241,7 @@ class AsyncJSONRPC10Config(AsyncAwsConfig):
"aws_session_token": FieldSpec(default=None),
"user_agent_extra": FieldSpec(default=None),
"sdk_ua_app_id": FieldSpec(default=None),
"disable_host_prefix_injection": FieldSpec(default=None),
**AsyncAwsConfig._FIELDS,
"endpoint_uri": FieldSpec(
default=None, resolver=EndpointUriResolver("json_rpc_10").program
Expand Down
8 changes: 8 additions & 0 deletions codegen-output/aws-json-1-0/src/awsjson10/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ class _JSONRPC10ConfigOverrides(AwsConfigOverrides, total=False):
auth_scheme_resolver: AuthSchemeResolver | None
use_dualstack_endpoint: bool | None
use_fips_endpoint: bool | None
disable_host_prefix_injection: bool | None


@dataclass(kw_only=True, repr=False, init=False)
Expand Down Expand Up @@ -215,6 +216,12 @@ class JSONRPC10Config(AwsConfig):
header.
"""

disable_host_prefix_injection: bool | None = None
"""
Whether to skip prepending operations' modeled host prefixes to the
endpoint host.
"""

_FIELDS: ClassVar[dict[str, FieldSpec]] = {
"use_dualstack_endpoint": FieldSpec(
default=None, resolver=resolve_use_dualstack_endpoint_program
Expand All @@ -229,6 +236,7 @@ class JSONRPC10Config(AwsConfig):
"aws_session_token": FieldSpec(default=None),
"user_agent_extra": FieldSpec(default=None),
"sdk_ua_app_id": FieldSpec(default=None),
"disable_host_prefix_injection": FieldSpec(default=None),
**AwsConfig._FIELDS,
"endpoint_uri": FieldSpec(
default=None, resolver=EndpointUriResolver("json_rpc_10").program
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ async def test_aws_json10_empty_input_and_empty_output_send_json_object_response
assert deep_equal(actual, expected)


@mark.xfail()
async def test_aws_json10_endpoint_trait_request_endpoint_operation() -> None:
"""
Operations can prepend to the given host if they define the endpoint
Expand Down Expand Up @@ -250,7 +249,6 @@ async def test_aws_json10_endpoint_trait_request_endpoint_operation() -> None:
)


@mark.xfail()
async def test_aws_json10_endpoint_trait_with_host_label_request_endpoint_with_host_label_operation() -> (
None
):
Expand Down
8 changes: 8 additions & 0 deletions codegen-output/aws-json-1-1/src/awsjson11/aio/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ class _AsyncJsonProtocolConfigOverrides(AsyncAwsConfigOverrides, total=False):
auth_scheme_resolver: AuthSchemeResolver | None
use_dualstack_endpoint: bool | None
use_fips_endpoint: bool | None
disable_host_prefix_injection: bool | None


@dataclass(kw_only=True, repr=False, init=False)
Expand Down Expand Up @@ -214,6 +215,12 @@ class AsyncJsonProtocolConfig(AsyncAwsConfig):
header.
"""

disable_host_prefix_injection: bool | None = None
"""
Whether to skip prepending operations' modeled host prefixes to the
endpoint host.
"""

_FIELDS: ClassVar[dict[str, FieldSpec]] = {
"use_dualstack_endpoint": FieldSpec(
default=None, resolver=resolve_use_dualstack_endpoint_program
Expand All @@ -228,6 +235,7 @@ class AsyncJsonProtocolConfig(AsyncAwsConfig):
"aws_session_token": FieldSpec(default=None),
"user_agent_extra": FieldSpec(default=None),
"sdk_ua_app_id": FieldSpec(default=None),
"disable_host_prefix_injection": FieldSpec(default=None),
**AsyncAwsConfig._FIELDS,
"endpoint_uri": FieldSpec(
default=None, resolver=EndpointUriResolver("json_protocol").program
Expand Down
8 changes: 8 additions & 0 deletions codegen-output/aws-json-1-1/src/awsjson11/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ class _JsonProtocolConfigOverrides(AwsConfigOverrides, total=False):
auth_scheme_resolver: AuthSchemeResolver | None
use_dualstack_endpoint: bool | None
use_fips_endpoint: bool | None
disable_host_prefix_injection: bool | None


@dataclass(kw_only=True, repr=False, init=False)
Expand Down Expand Up @@ -209,6 +210,12 @@ class JsonProtocolConfig(AwsConfig):
header.
"""

disable_host_prefix_injection: bool | None = None
"""
Whether to skip prepending operations' modeled host prefixes to the
endpoint host.
"""

_FIELDS: ClassVar[dict[str, FieldSpec]] = {
"use_dualstack_endpoint": FieldSpec(
default=None, resolver=resolve_use_dualstack_endpoint_program
Expand All @@ -223,6 +230,7 @@ class JsonProtocolConfig(AwsConfig):
"aws_session_token": FieldSpec(default=None),
"user_agent_extra": FieldSpec(default=None),
"sdk_ua_app_id": FieldSpec(default=None),
"disable_host_prefix_injection": FieldSpec(default=None),
**AwsConfig._FIELDS,
"endpoint_uri": FieldSpec(
default=None, resolver=EndpointUriResolver("json_protocol").program
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,6 @@ async def test_json_1_1_service_responds_with_no_payload_response_empty_operatio
assert deep_equal(actual, expected)


@mark.xfail()
async def test_aws_json11_endpoint_trait_request_endpoint_operation() -> None:
"""
Operations can prepend to the given host if they define the endpoint
Expand Down Expand Up @@ -541,7 +540,6 @@ async def test_aws_json11_endpoint_trait_request_endpoint_operation() -> None:
)


@mark.xfail()
async def test_aws_json11_endpoint_trait_with_host_label_request_endpoint_with_host_label_operation() -> (
None
):
Expand Down
8 changes: 8 additions & 0 deletions codegen-output/aws-query/src/awsquery/aio/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
from smithy_http.aio.aiohttp import AIOHTTPClient

from .._private.endpoints import BDD
from .._private.schemas import AWS_QUERY

Check warning on line 48 in codegen-output/aws-query/src/awsquery/aio/config.py

View workflow job for this annotation

GitHub Actions / ci (3.12)

AWS_QUERY is not defined or imported in awsquery._private.schemas
from ..auth import HTTPAuthSchemeResolver


Expand Down Expand Up @@ -200,6 +200,7 @@
auth_scheme_resolver: AuthSchemeResolver | None
use_dualstack_endpoint: bool | None
use_fips_endpoint: bool | None
disable_host_prefix_injection: bool | None


@dataclass(kw_only=True, repr=False, init=False)
Expand Down Expand Up @@ -269,6 +270,12 @@
header.
"""

disable_host_prefix_injection: bool | None = None
"""
Whether to skip prepending operations' modeled host prefixes to the
endpoint host.
"""

_FIELDS: ClassVar[dict[str, FieldSpec]] = {
"use_dualstack_endpoint": FieldSpec(
default=None, resolver=resolve_use_dualstack_endpoint_program
Expand All @@ -283,6 +290,7 @@
"aws_session_token": FieldSpec(default=None),
"user_agent_extra": FieldSpec(default=None),
"sdk_ua_app_id": FieldSpec(default=None),
"disable_host_prefix_injection": FieldSpec(default=None),
**AsyncAwsConfig._FIELDS,
"endpoint_uri": FieldSpec(
default=None, resolver=EndpointUriResolver("query_protocol").program
Expand Down
8 changes: 8 additions & 0 deletions codegen-output/aws-query/src/awsquery/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
from smithy_http.urllib3 import Urllib3HTTPClient

from ._private.endpoints import BDD
from ._private.schemas import AWS_QUERY

Check warning on line 43 in codegen-output/aws-query/src/awsquery/config.py

View workflow job for this annotation

GitHub Actions / ci (3.12)

AWS_QUERY is not defined or imported in awsquery._private.schemas
from .auth import HTTPAuthSchemeResolver


Expand Down Expand Up @@ -195,6 +195,7 @@
auth_scheme_resolver: AuthSchemeResolver | None
use_dualstack_endpoint: bool | None
use_fips_endpoint: bool | None
disable_host_prefix_injection: bool | None


@dataclass(kw_only=True, repr=False, init=False)
Expand Down Expand Up @@ -264,6 +265,12 @@
header.
"""

disable_host_prefix_injection: bool | None = None
"""
Whether to skip prepending operations' modeled host prefixes to the
endpoint host.
"""

_FIELDS: ClassVar[dict[str, FieldSpec]] = {
"use_dualstack_endpoint": FieldSpec(
default=None, resolver=resolve_use_dualstack_endpoint_program
Expand All @@ -278,6 +285,7 @@
"aws_session_token": FieldSpec(default=None),
"user_agent_extra": FieldSpec(default=None),
"sdk_ua_app_id": FieldSpec(default=None),
"disable_host_prefix_injection": FieldSpec(default=None),
**AwsConfig._FIELDS,
"endpoint_uri": FieldSpec(
default=None, resolver=EndpointUriResolver("query_protocol").program
Expand Down
2 changes: 0 additions & 2 deletions codegen-output/aws-query/tests/test_awsquery_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ async def test_query_empty_input_and_empty_output_response_empty_input_and_empty
assert deep_equal(actual, expected)


@mark.xfail()
async def test_aws_query_endpoint_trait_request_endpoint_operation() -> None:
"""
Operations can prepend to the given host if they define the endpoint
Expand Down Expand Up @@ -349,7 +348,6 @@ async def test_aws_query_endpoint_trait_request_endpoint_operation() -> None:
)


@mark.xfail()
async def test_aws_query_endpoint_trait_with_host_label_request_endpoint_with_host_label_operation() -> (
None
):
Expand Down
8 changes: 8 additions & 0 deletions codegen-output/ec2-query/src/ec2query/aio/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
from smithy_http.aio.aiohttp import AIOHTTPClient

from .._private.endpoints import BDD
from .._private.schemas import AWS_EC2

Check warning on line 48 in codegen-output/ec2-query/src/ec2query/aio/config.py

View workflow job for this annotation

GitHub Actions / ci (3.12)

AWS_EC2 is not defined or imported in ec2query._private.schemas
from ..auth import HTTPAuthSchemeResolver


Expand Down Expand Up @@ -169,6 +169,7 @@
auth_scheme_resolver: AuthSchemeResolver | None
use_dualstack_endpoint: bool | None
use_fips_endpoint: bool | None
disable_host_prefix_injection: bool | None


@dataclass(kw_only=True, repr=False, init=False)
Expand Down Expand Up @@ -238,6 +239,12 @@
header.
"""

disable_host_prefix_injection: bool | None = None
"""
Whether to skip prepending operations' modeled host prefixes to the
endpoint host.
"""

_FIELDS: ClassVar[dict[str, FieldSpec]] = {
"use_dualstack_endpoint": FieldSpec(
default=None, resolver=resolve_use_dualstack_endpoint_program
Expand All @@ -252,6 +259,7 @@
"aws_session_token": FieldSpec(default=None),
"user_agent_extra": FieldSpec(default=None),
"sdk_ua_app_id": FieldSpec(default=None),
"disable_host_prefix_injection": FieldSpec(default=None),
**AsyncAwsConfig._FIELDS,
"endpoint_uri": FieldSpec(
default=None, resolver=EndpointUriResolver("ec2_protocol").program
Expand Down
8 changes: 8 additions & 0 deletions codegen-output/ec2-query/src/ec2query/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
from smithy_http.urllib3 import Urllib3HTTPClient

from ._private.endpoints import BDD
from ._private.schemas import AWS_EC2

Check warning on line 43 in codegen-output/ec2-query/src/ec2query/config.py

View workflow job for this annotation

GitHub Actions / ci (3.12)

AWS_EC2 is not defined or imported in ec2query._private.schemas
from .auth import HTTPAuthSchemeResolver


Expand Down Expand Up @@ -164,6 +164,7 @@
auth_scheme_resolver: AuthSchemeResolver | None
use_dualstack_endpoint: bool | None
use_fips_endpoint: bool | None
disable_host_prefix_injection: bool | None


@dataclass(kw_only=True, repr=False, init=False)
Expand Down Expand Up @@ -233,6 +234,12 @@
header.
"""

disable_host_prefix_injection: bool | None = None
"""
Whether to skip prepending operations' modeled host prefixes to the
endpoint host.
"""

_FIELDS: ClassVar[dict[str, FieldSpec]] = {
"use_dualstack_endpoint": FieldSpec(
default=None, resolver=resolve_use_dualstack_endpoint_program
Expand All @@ -247,6 +254,7 @@
"aws_session_token": FieldSpec(default=None),
"user_agent_extra": FieldSpec(default=None),
"sdk_ua_app_id": FieldSpec(default=None),
"disable_host_prefix_injection": FieldSpec(default=None),
**AwsConfig._FIELDS,
"endpoint_uri": FieldSpec(
default=None, resolver=EndpointUriResolver("ec2_protocol").program
Expand Down
2 changes: 0 additions & 2 deletions codegen-output/ec2-query/tests/test_ec2query_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,6 @@ async def test_ec2_query_empty_input_and_empty_output_response_empty_input_and_e
assert deep_equal(actual, expected)


@mark.xfail()
async def test_ec2_query_endpoint_trait_request_endpoint_operation() -> None:
"""
Operations can prepend to the given host if they define the endpoint
Expand Down Expand Up @@ -337,7 +336,6 @@ async def test_ec2_query_endpoint_trait_request_endpoint_operation() -> None:
)


@mark.xfail()
async def test_ec2_query_endpoint_trait_with_host_label_request_endpoint_with_host_label_operation() -> (
None
):
Expand Down
8 changes: 8 additions & 0 deletions codegen-output/rest-json-1/src/restjson/aio/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,7 @@ class _AsyncRestJsonProtocolConfigOverrides(AsyncAwsConfigOverrides, total=False
auth_scheme_resolver: AuthSchemeResolver | None
use_dualstack_endpoint: bool | None
use_fips_endpoint: bool | None
disable_host_prefix_injection: bool | None


@dataclass(kw_only=True, repr=False, init=False)
Expand Down Expand Up @@ -699,6 +700,12 @@ class AsyncRestJsonProtocolConfig(AsyncAwsConfig):
header.
"""

disable_host_prefix_injection: bool | None = None
"""
Whether to skip prepending operations' modeled host prefixes to the
endpoint host.
"""

_FIELDS: ClassVar[dict[str, FieldSpec]] = {
"use_dualstack_endpoint": FieldSpec(
default=None, resolver=resolve_use_dualstack_endpoint_program
Expand All @@ -713,6 +720,7 @@ class AsyncRestJsonProtocolConfig(AsyncAwsConfig):
"aws_session_token": FieldSpec(default=None),
"user_agent_extra": FieldSpec(default=None),
"sdk_ua_app_id": FieldSpec(default=None),
"disable_host_prefix_injection": FieldSpec(default=None),
**AsyncAwsConfig._FIELDS,
"endpoint_uri": FieldSpec(
default=None, resolver=EndpointUriResolver("rest_json_protocol").program
Expand Down
8 changes: 8 additions & 0 deletions codegen-output/rest-json-1/src/restjson/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,7 @@ class _RestJsonProtocolConfigOverrides(AwsConfigOverrides, total=False):
auth_scheme_resolver: AuthSchemeResolver | None
use_dualstack_endpoint: bool | None
use_fips_endpoint: bool | None
disable_host_prefix_injection: bool | None


@dataclass(kw_only=True, repr=False, init=False)
Expand Down Expand Up @@ -694,6 +695,12 @@ class RestJsonProtocolConfig(AwsConfig):
header.
"""

disable_host_prefix_injection: bool | None = None
"""
Whether to skip prepending operations' modeled host prefixes to the
endpoint host.
"""

_FIELDS: ClassVar[dict[str, FieldSpec]] = {
"use_dualstack_endpoint": FieldSpec(
default=None, resolver=resolve_use_dualstack_endpoint_program
Expand All @@ -708,6 +715,7 @@ class RestJsonProtocolConfig(AwsConfig):
"aws_session_token": FieldSpec(default=None),
"user_agent_extra": FieldSpec(default=None),
"sdk_ua_app_id": FieldSpec(default=None),
"disable_host_prefix_injection": FieldSpec(default=None),
**AwsConfig._FIELDS,
"endpoint_uri": FieldSpec(
default=None, resolver=EndpointUriResolver("rest_json_protocol").program
Expand Down
2 changes: 0 additions & 2 deletions codegen-output/rest-json-1/tests/test_restjson_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -2076,7 +2076,6 @@ async def test_rest_json_empty_input_and_empty_output_json_object_output_respons
assert deep_equal(actual, expected)


@mark.xfail()
async def test_rest_json_endpoint_trait_request_endpoint_operation() -> None:
"""
Operations can prepend to the given host if they define the endpoint
Expand Down Expand Up @@ -2150,7 +2149,6 @@ async def test_rest_json_endpoint_trait_request_endpoint_operation() -> None:
)


@mark.xfail()
async def test_rest_json_endpoint_trait_with_host_label_request_endpoint_with_host_label_operation() -> (
None
):
Expand Down
8 changes: 8 additions & 0 deletions codegen-output/rest-xml/src/restxml/aio/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ class _AsyncRestXmlProtocolConfigOverrides(AsyncAwsConfigOverrides, total=False)
auth_scheme_resolver: AuthSchemeResolver | None
use_dualstack_endpoint: bool | None
use_fips_endpoint: bool | None
disable_host_prefix_injection: bool | None


@dataclass(kw_only=True, repr=False, init=False)
Expand Down Expand Up @@ -436,6 +437,12 @@ class AsyncRestXmlProtocolConfig(AsyncAwsConfig):
header.
"""

disable_host_prefix_injection: bool | None = None
"""
Whether to skip prepending operations' modeled host prefixes to the
endpoint host.
"""

_FIELDS: ClassVar[dict[str, FieldSpec]] = {
"use_dualstack_endpoint": FieldSpec(
default=None, resolver=resolve_use_dualstack_endpoint_program
Expand All @@ -450,6 +457,7 @@ class AsyncRestXmlProtocolConfig(AsyncAwsConfig):
"aws_session_token": FieldSpec(default=None),
"user_agent_extra": FieldSpec(default=None),
"sdk_ua_app_id": FieldSpec(default=None),
"disable_host_prefix_injection": FieldSpec(default=None),
**AsyncAwsConfig._FIELDS,
"endpoint_uri": FieldSpec(
default=None, resolver=EndpointUriResolver("rest_xml_protocol").program
Expand Down
Loading
Loading