diff --git a/codegen-output-py/aws-query-client/.smithy-python-manifest.json b/codegen-output-py/aws-query-client/.smithy-python-manifest.json new file mode 100644 index 000000000..6b5e1c896 --- /dev/null +++ b/codegen-output-py/aws-query-client/.smithy-python-manifest.json @@ -0,0 +1,23 @@ +{ + "files": { + "README.md": "fc70510c0ee77debc118c3148080eb18d8fe4f166f07be9959f6eec6293c9f52", + "pyproject.toml": "e6514ec6e62e045cdbc32ecf7fd3706b6c25003b9855e17d6ea11f5d0eec368d", + "src/awsquery_client/__init__.py": "7efbfd2c9225bd02b9d33d99b6e044c5031f3168e867ee8bbd625a265b84653d", + "src/awsquery_client/_private/__init__.py": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "src/awsquery_client/_private/endpoints.py": "7d515fe771678e82ddbe07798d6b7e48c25c6c9bec19cec9318deb0bc5064ead", + "src/awsquery_client/_private/schemas.py": "d96130a1d54809b1ecefaf15072388d96da93f75a91bcf6169f75771e3f5f7b9", + "src/awsquery_client/_private/schemas_0.py": "96539de684f03d833c79986ea8455d88a33452a8939d0c24b2ed04297c7a0ba8", + "src/awsquery_client/_private/schemas_1.py": "86827c7b2d76df0d807fef2eaea9a2adff341e1c9654d614660390cb0a74c4a4", + "src/awsquery_client/aio/__init__.py": "5e4e7a9c5f95792a358199470b872eba950c87bbb217ef90ef0d989be262c98e", + "src/awsquery_client/aio/client.py": "07645dc1e6c8a05e262b141d580fd19b84fa1d73289f6a1c6ff9eaa6cc9a7fbe", + "src/awsquery_client/aio/config.py": "3eca00c18f5915d68e074f90664779d65196f398e93c0b702d606f2eb2c88c0c", + "src/awsquery_client/aio/user_agent.py": "5a444990482102365629342212190546cd5ad1a570875d1a5302fc1ceafe927c", + "src/awsquery_client/client.py": "35a1b0cd42558479646da34a45a24f3b1166f199e4622a0e98c03813a645ae81", + "src/awsquery_client/config.py": "da41a14dcc2dac063d6f60e522d2434af80d3671149cb6e8108d9ac89d5e1793", + "src/awsquery_client/models.py": "ba8d5724acbbfa51527fe38b734a9fe445374669c6e5bc45b68ef42729992e7a", + "src/awsquery_client/models.pyi": "8fc34c50f68078076864f73385f35c82e005bd2547c1bae448a4ed618cfa04ec", + "src/awsquery_client/py.typed": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "src/awsquery_client/user_agent.py": "519126177f5fcbef76dac9721912639178540ab8c31d2abbd7ec106557ecea2e" + }, + "version": 1 +} diff --git a/codegen-output-py/aws-query-client/README.md b/codegen-output-py/aws-query-client/README.md new file mode 100644 index 000000000..bbcaa8504 --- /dev/null +++ b/codegen-output-py/aws-query-client/README.md @@ -0,0 +1,5 @@ + + +## awsquery_client Client Package + +Python client for the aws-query projection diff --git a/codegen-output-py/aws-query-client/pyproject.toml b/codegen-output-py/aws-query-client/pyproject.toml new file mode 100644 index 000000000..dbc593d85 --- /dev/null +++ b/codegen-output-py/aws-query-client/pyproject.toml @@ -0,0 +1,38 @@ +# Code generated by smithy-python-codegen DO NOT EDIT. + +[project] +name = "awsquery_client" +version = "0.0.1" +description = "Python client for the aws-query projection" +readme = "README.md" +requires-python = ">=3.12" +keywords = ["smithy", "awsquery_client"] +license = {text = "Apache-2.0"} +dependencies = [ + "smithy-aws-core[xml]~=0.16.0", + "smithy-core~=0.13.0", + "smithy-http[aiohttp,urllib3]~=0.10.0", +] + +[build-system] +requires = [ + "hatchling", +] +build-backend = "hatchling.build" + +[tool.hatch.build.targets.wheel] +packages = [ + "src/awsquery_client", +] + +[tool.pyright] +typeCheckingMode = "strict" + +[tool.ruff] +target-version = "py312" + +[tool.ruff.lint] +ignore = ["F841"] + +[tool.ruff.format] +skip-magic-trailing-comma = true diff --git a/codegen-output-py/aws-query-client/src/awsquery_client/__init__.py b/codegen-output-py/aws-query-client/src/awsquery_client/__init__.py new file mode 100644 index 000000000..1bab6c78f --- /dev/null +++ b/codegen-output-py/aws-query-client/src/awsquery_client/__init__.py @@ -0,0 +1,30 @@ +from importlib import import_module +from typing import TYPE_CHECKING, Any + +__version__: str = "0.0.1" + +if TYPE_CHECKING: + from .aio.client import AsyncQueryProtocolClient + from .aio.config import AsyncQueryProtocolConfig + from .client import QueryProtocolClient + from .config import QueryProtocolConfig + +__all__ = [ + "AsyncQueryProtocolClient", + "AsyncQueryProtocolConfig", + "QueryProtocolClient", + "QueryProtocolConfig", +] + +_EXPORTS = { + "QueryProtocolClient": ".client", + "QueryProtocolConfig": ".config", + "AsyncQueryProtocolClient": ".aio.client", + "AsyncQueryProtocolConfig": ".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}") diff --git a/codegen-output-py/aws-query-client/src/awsquery_client/_private/__init__.py b/codegen-output-py/aws-query-client/src/awsquery_client/_private/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/codegen-output-py/aws-query-client/src/awsquery_client/_private/endpoints.py b/codegen-output-py/aws-query-client/src/awsquery_client/_private/endpoints.py new file mode 100644 index 000000000..ad3066783 --- /dev/null +++ b/codegen-output-py/aws-query-client/src/awsquery_client/_private/endpoints.py @@ -0,0 +1,27 @@ +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=( + ("endpoint", "string", False, None, "SDK::Endpoint", None), + ), + functions=("isSet",), + conditions=( + ((2, "isSet", (0, "endpoint")), None), # 0: isSet(endpoint) + ), + results=( + None, # 0: no match + (6, (0, "endpoint"), None, ()), # 1 + (5, "(default endpointRuleSet) endpoint is not set - you must configure an endpoint."), # 2 + ), + 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, 100_000_002, + ), +) +# fmt: on diff --git a/codegen-output-py/aws-query-client/src/awsquery_client/_private/schemas.py b/codegen-output-py/aws-query-client/src/awsquery_client/_private/schemas.py new file mode 100644 index 000000000..7d415bfa7 --- /dev/null +++ b/codegen-output-py/aws-query-client/src/awsquery_client/_private/schemas.py @@ -0,0 +1,171 @@ +from importlib import import_module + +_PARTITION_NAMES: tuple[tuple[str, ...], ...] = ( + ( + "COMPLEX_NESTED_ERROR_DATA", + "COMPLEX_ERROR", + "COMPLEX_MAP", + "CUSTOM_CODE_ERROR", + "DATE_TIME", + "DATETIME_OFFSETS_OUTPUT", + "DATETIME_OFFSETS_INPUT", + "DATETIME_OFFSETS", + "EMPTY_INPUT_AND_EMPTY_OUTPUT_INPUT", + "EMPTY_INPUT_AND_EMPTY_OUTPUT_OUTPUT", + "EMPTY_INPUT_AND_EMPTY_OUTPUT", + "FOO_ENUM", + "FOO_ENUM_MAP", + "FLATTENED_XML_MAP_OUTPUT", + "FLATTENED_XML_MAP_INPUT", + "FLATTENED_XML_MAP", + "FLATTENED_XML_MAP_WITH_XML_NAME_OUTPUT_MAP", + "FLATTENED_XML_MAP_WITH_XML_NAME_OUTPUT", + "FLATTENED_XML_MAP_WITH_XML_NAME_INPUT", + "FLATTENED_XML_MAP_WITH_XML_NAME", + "FLATTENED_XML_MAP_WITH_XML_NAMESPACE_OUTPUT_MAP", + "FLATTENED_XML_MAP_WITH_XML_NAMESPACE_OUTPUT", + "FLATTENED_XML_MAP_WITH_XML_NAMESPACE_INPUT", + "FLATTENED_XML_MAP_WITH_XML_NAMESPACE", + "FRACTIONAL_SECONDS_OUTPUT", + "FRACTIONAL_SECONDS_INPUT", + "FRACTIONAL_SECONDS", + "GREETING_WITH_ERRORS_OUTPUT", + "GREETING_WITH_ERRORS_INPUT", + "GREETING_WITH_ERRORS", + "IGNORES_WRAPPING_XML_NAME_OUTPUT", + "IGNORES_WRAPPING_XML_NAME_INPUT", + "IGNORES_WRAPPING_XML_NAME", + "INVALID_GREETING", + "LIST_WITH_MEMBER_NAMESPACE", + "LIST_WITH_NAMESPACE", + "LIST_WITH_XML_NAME", + "STRING_LIST", + "MAP_OF_LISTS", + "MAP_WITH_XML_NAME", + "NESTED_STRUCT_WITH_LIST", + "STRING_MAP", + "NESTED_STRUCT_WITH_MAP", + "NESTED_STRUCTURES_INPUT", + "NESTED_STRUCTURES_OUTPUT", + "NESTED_STRUCTURES", + "NO_INPUT_AND_OUTPUT_INPUT", + "NO_INPUT_AND_OUTPUT_OUTPUT", + "NO_INPUT_AND_OUTPUT", + "PUT_WITH_CONTENT_ENCODING_INPUT", + "PUT_WITH_CONTENT_ENCODING_OUTPUT", + "PUT_WITH_CONTENT_ENCODING", + "QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL_INPUT", + "QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL_OUTPUT", + "QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL", + "GREETING_LIST", + "QUERY_LISTS_INPUT", + "QUERY_LISTS_OUTPUT", + "QUERY_LISTS", + "QUERY_MAPS_INPUT", + "QUERY_MAPS_OUTPUT", + "QUERY_MAPS", + "EPOCH_SECONDS", + "QUERY_TIMESTAMPS_INPUT", + "QUERY_TIMESTAMPS_OUTPUT", + "QUERY_TIMESTAMPS", + "RECURSIVE_XML_SHAPES_OUTPUT", + "RECURSIVE_XML_SHAPES_INPUT", + "RECURSIVE_XML_SHAPES", + "RENAMED_LIST_MEMBERS", + "INTEGER_ENUM", + "SIMPLE_INPUT_PARAMS_INPUT", + "SIMPLE_INPUT_PARAMS_OUTPUT", + "SIMPLE_INPUT_PARAMS", + ), + ( + "GREETING_STRUCT", + "SIMPLE_SCALAR_XML_PROPERTIES_OUTPUT", + "SIMPLE_SCALAR_XML_PROPERTIES_INPUT", + "SIMPLE_SCALAR_XML_PROPERTIES", + "STRUCTURE_LIST_MEMBER", + "STRUCTURE_LIST", + "FOO_ENUM_LIST", + "FOO_ENUM_SET", + "XML_ENUMS_OUTPUT", + "XML_ENUMS_INPUT", + "XML_ENUMS", + "INTEGER_ENUM_LIST", + "INTEGER_ENUM_SET", + "INTEGER_ENUM_MAP", + "XML_INT_ENUMS_OUTPUT", + "XML_INT_ENUMS_INPUT", + "XML_INT_ENUMS", + "XML_MAPS_OUTPUT_MAP", + "XML_MAPS_XML_NAME_OUTPUT_MAP", + "XML_MAPS_XML_NAME_OUTPUT", + "XML_MAPS_XML_NAME_INPUT", + "XML_MAPS_XML_NAME", + "XML_NAMESPACED_LIST", + "XML_NAMESPACE_NESTED", + "XML_NAMESPACES_OUTPUT", + "XML_NAMESPACES_INPUT", + "XML_NAMESPACES", + "HTTP_DATE", + "XML_TIMESTAMPS_OUTPUT", + "XML_TIMESTAMPS_INPUT", + "XML_TIMESTAMPS", + "BOOLEAN_LIST", + "INTEGER_LIST", + "NESTED_STRING_LIST", + "STRING_SET", + "TIMESTAMP_LIST", + "ENDPOINT_OPERATION_INPUT", + "ENDPOINT_OPERATION_OUTPUT", + "ENDPOINT_OPERATION", + "ENDPOINT_WITH_HOST_LABEL_OPERATION_INPUT", + "ENDPOINT_WITH_HOST_LABEL_OPERATION_OUTPUT", + "ENDPOINT_WITH_HOST_LABEL_OPERATION", + "HOST_WITH_PATH_OPERATION_INPUT", + "HOST_WITH_PATH_OPERATION_OUTPUT", + "HOST_WITH_PATH_OPERATION", + "NO_INPUT_AND_NO_OUTPUT_INPUT", + "NO_INPUT_AND_NO_OUTPUT_OUTPUT", + "NO_INPUT_AND_NO_OUTPUT", + "XML_BLOBS_INPUT", + "XML_BLOBS_OUTPUT2", + "XML_BLOBS", + "XML_EMPTY_BLOBS_INPUT", + "XML_EMPTY_BLOBS_OUTPUT", + "XML_EMPTY_BLOBS", + "XML_EMPTY_LISTS_INPUT", + "XML_EMPTY_LISTS_OUTPUT", + "XML_EMPTY_LISTS", + "XML_EMPTY_MAPS_INPUT", + "XML_EMPTY_MAPS_OUTPUT", + "XML_EMPTY_MAPS", + "XML_LISTS_INPUT", + "XML_LISTS_OUTPUT2", + "XML_LISTS", + "XML_MAPS_INPUT", + "XML_MAPS_OUTPUT2", + "XML_MAPS", + "AWS_QUERY", + "RECURSIVE_XML_SHAPES_OUTPUT_NESTED1", + "RECURSIVE_XML_SHAPES_OUTPUT_NESTED2", + "STRUCT_ARG", + ), +) +_PARTITIONS = { + name: index for index, names in enumerate(_PARTITION_NAMES) for name in names +} +del _PARTITION_NAMES + + +def __getattr__(name: str): + try: + partition = _PARTITIONS[name] + except KeyError as error: + raise AttributeError(name) from error + module = import_module(f".schemas_{partition:01d}", __package__) + value = getattr(module, name) + globals()[name] = value + return value + + +def __dir__() -> list[str]: + return sorted({*globals(), *_PARTITIONS}) diff --git a/codegen-output-py/aws-query-client/src/awsquery_client/_private/schemas_0.py b/codegen-output-py/aws-query-client/src/awsquery_client/_private/schemas_0.py new file mode 100644 index 000000000..c4714f051 --- /dev/null +++ b/codegen-output-py/aws-query-client/src/awsquery_client/_private/schemas_0.py @@ -0,0 +1,867 @@ +from types import MappingProxyType + +from smithy_core._schema_compact import StaticOperationSchema, StaticSchema + +from . import schemas + +n0 = "aws.protocoltests.query" +_s0 = "ComplexNestedErrorData" +_s1 = "Foo" +_s2 = "ComplexError" +_s3 = "smithy.api#error" +_s4 = "client" +_s5 = "TopLevel" +_s6 = "Nested" +n1 = "aws.protocoltests.shared" +_s9 = "ComplexMap" +_s10 = "key" +_s11 = "value" +_s12 = "CustomCodeError" +_s13 = "aws.protocols#awsQueryError" +_s14 = "Message" +_s15 = "DateTime" +_s16 = "smithy.api#timestampFormat" +_s17 = "date-time" +_s18 = "DatetimeOffsetsOutput" +_s19 = "smithy.synthetic#originalShapeId" +_s20 = "aws.protocoltests.query#DatetimeOffsetsOutput" +_s21 = "smithy.api#output" +_s22 = "datetime" +_s23 = "EmptyInputAndEmptyOutputInput" +_s24 = "aws.protocoltests.query#EmptyInputAndEmptyOutputInput" +_s25 = "smithy.api#input" +_s26 = "EmptyInputAndEmptyOutputOutput" +_s27 = "aws.protocoltests.query#EmptyInputAndEmptyOutputOutput" +_s28 = "FooEnum" +_s29 = "FOO" +_s30 = "smithy.api#enumValue" +_s31 = "BAZ" +_s32 = "Baz" +_s33 = "BAR" +_s34 = "Bar" +_s35 = "ONE" +_s36 = "1" +_s37 = "ZERO" +_s38 = "0" +_s39 = "FooEnumMap" +_s40 = "FlattenedXmlMapOutput" +_s41 = "aws.protocoltests.query#FlattenedXmlMapOutput" +_s42 = "myMap" +_s43 = "smithy.api#xmlFlattened" +_s44 = "FlattenedXmlMapWithXmlNameOutputMap" +_s45 = "smithy.api#xmlName" +_s46 = "K" +_s47 = "V" +_s48 = "FlattenedXmlMapWithXmlNameOutput" +_s49 = "aws.protocoltests.query#FlattenedXmlMapWithXmlNameOutput" +_s50 = "KVP" +_s51 = "FlattenedXmlMapWithXmlNamespaceOutputMap" +_s52 = "smithy.api#xmlNamespace" +_s53 = "FlattenedXmlMapWithXmlNamespaceOutput" +_s54 = "aws.protocoltests.query#FlattenedXmlMapWithXmlNamespaceOutput" +_s55 = "FractionalSecondsOutput" +_s56 = "aws.protocoltests.query#FractionalSecondsOutput" +_s57 = "GreetingWithErrorsOutput" +_s58 = "aws.protocoltests.query#GreetingWithErrorsOutput" +_s59 = "greeting" +_s60 = "IgnoresWrappingXmlNameOutput" +_s61 = "IgnoreMe" +_s62 = "aws.protocoltests.query#IgnoresWrappingXmlNameOutput" +_s63 = "foo" +_s64 = "InvalidGreeting" +_s65 = "ListWithMemberNamespace" +_s66 = "member" +_s67 = "ListWithNamespace" +_s68 = "ListWithXmlName" +_s69 = "item" +_s70 = "StringList" +_s71 = "MapOfLists" +_s72 = "MapWithXmlName" +_s73 = "NestedStructWithList" +_s74 = "ListArg" +_s75 = "StringMap" +_s76 = "NestedStructWithMap" +_s77 = "MapArg" +_s78 = "NestedStructuresInput" +_s79 = "aws.protocoltests.query#NestedStructuresInput" +_s80 = "NoInputAndOutputInput" +_s81 = "aws.protocoltests.query#NoInputAndOutputInput" +_s82 = "NoInputAndOutputOutput" +_s83 = "aws.protocoltests.query#NoInputAndOutputOutput" +_s84 = "PutWithContentEncodingInput" +_s85 = "aws.protocoltests.query#PutWithContentEncodingInput" +_s86 = "encoding" +_s87 = "smithy.api#httpHeader" +_s88 = "Content-Encoding" +_s89 = "data" +_s90 = "QueryIdempotencyTokenAutoFillInput" +_s91 = "aws.protocoltests.query#QueryIdempotencyTokenAutoFillInput" +_s92 = "token" +_s93 = "GreetingList" +_s94 = "QueryListsInput" +_s95 = "aws.protocoltests.query#QueryListsInput" +_s96 = "ComplexListArg" +_s97 = "FlattenedListArg" +_s98 = "ListArgWithXmlNameMember" +_s99 = "FlattenedListArgWithXmlName" +_s100 = "Hi" +_s101 = "NestedWithList" +_s102 = "QueryMapsInput" +_s103 = "aws.protocoltests.query#QueryMapsInput" +_s104 = "RenamedMapArg" +_s105 = "ComplexMapArg" +_s106 = "MapWithXmlMemberName" +_s107 = "FlattenedMap" +_s108 = "FlattenedMapWithXmlName" +_s109 = "EpochSeconds" +_s110 = "epoch-seconds" +_s111 = "QueryTimestampsInput" +_s112 = "aws.protocoltests.query#QueryTimestampsInput" +_s113 = "normalFormat" +_s114 = "epochMember" +_s115 = "epochTarget" +_s116 = "RecursiveXmlShapesOutput" +_s117 = "aws.protocoltests.query#RecursiveXmlShapesOutput" +_s118 = "nested" +_s119 = "RenamedListMembers" +_s120 = "IntegerEnum" +_s121 = "A" +_s122 = "B" +_s123 = "C" +_s124 = "SimpleInputParamsInput" +_s125 = "aws.protocoltests.query#SimpleInputParamsInput" +_s126 = "Bam" +_s127 = "FloatValue" +_s128 = "Boo" +_s129 = "Qux" +_s196 = "DatetimeOffsetsInput" +_s197 = "smithy.api#Unit" +_s204 = "FlattenedXmlMapInput" +_s205 = "FlattenedXmlMapWithXmlNameInput" +_s206 = "FlattenedXmlMapWithXmlNamespaceInput" +_s207 = "FractionalSecondsInput" +_s208 = "GreetingWithErrorsInput" +_s211 = "IgnoresWrappingXmlNameInput" +_s212 = "NestedStructuresOutput" +_s215 = "PutWithContentEncodingOutput" +_s216 = "QueryIdempotencyTokenAutoFillOutput" +_s217 = "QueryListsOutput" +_s218 = "QueryMapsOutput" +_s219 = "QueryTimestampsOutput" +_s220 = "RecursiveXmlShapesInput" +_s221 = "SimpleInputParamsOutput" +_s259 = "DatetimeOffsets" +_s260 = "EmptyInputAndEmptyOutput" +_s264 = "FlattenedXmlMap" +_s265 = "FlattenedXmlMapWithXmlName" +_s266 = "FlattenedXmlMapWithXmlNamespace" +_s267 = "FractionalSeconds" +_s268 = "GreetingWithErrors" +_s270 = "IgnoresWrappingXmlName" +_s271 = "NestedStructures" +_s273 = "NoInputAndOutput" +_s274 = "PutWithContentEncoding" +_s275 = "smithy.api#requestCompression" +_s276 = "QueryIdempotencyTokenAutoFill" +_s277 = "QueryLists" +_s278 = "QueryMaps" +_s279 = "QueryTimestamps" +_s280 = "RecursiveXmlShapes" +_s281 = "SimpleInputParams" + +COMPLEX_NESTED_ERROR_DATA: StaticSchema = ( + 18, + n0, + _s0, + 0, + (_s1,), + ((3, 0),), +) + +COMPLEX_ERROR: StaticSchema = ( + 18, + n0, + _s2, + {_s3: _s4}, + (_s5, _s6), + ((3, 0), (COMPLEX_NESTED_ERROR_DATA, 0)), +) + +COMPLEX_MAP: StaticSchema = ( + 17, + n0, + _s9, + 0, + (_s10, _s11), + ((3, 0), (lambda: schemas.GREETING_STRUCT, 0)), +) + +CUSTOM_CODE_ERROR: StaticSchema = ( + 18, + n0, + _s12, + {_s13: MappingProxyType({"code": "Customized", "httpResponseCode": 402}), _s3: _s4}, + (_s14,), + ((3, 0),), +) + +DATE_TIME: StaticSchema = ( + 4, + n1, + _s15, + {_s16: _s17}, +) + +DATETIME_OFFSETS_OUTPUT: StaticSchema = ( + 18, + n0, + _s18, + {_s19: _s20, _s21: None}, + (_s22,), + ((DATE_TIME, 0),), +) + +DATETIME_OFFSETS_INPUT: StaticSchema = ( + 18, + n0, + _s196, + {_s19: _s197, _s25: None}, +) + +DATETIME_OFFSETS: StaticOperationSchema = ( + 23, + n0, + _s259, + 0, + DATETIME_OFFSETS_INPUT, + DATETIME_OFFSETS_OUTPUT, + (), +) + +EMPTY_INPUT_AND_EMPTY_OUTPUT_INPUT: StaticSchema = ( + 18, + n0, + _s23, + {_s19: _s24, _s25: None}, +) + +EMPTY_INPUT_AND_EMPTY_OUTPUT_OUTPUT: StaticSchema = ( + 18, + n0, + _s26, + {_s19: _s27, _s21: None}, +) + +EMPTY_INPUT_AND_EMPTY_OUTPUT: StaticOperationSchema = ( + 23, + n0, + _s260, + 0, + EMPTY_INPUT_AND_EMPTY_OUTPUT_INPUT, + EMPTY_INPUT_AND_EMPTY_OUTPUT_OUTPUT, + (), +) + +FOO_ENUM: StaticSchema = ( + 14, + n1, + _s28, + 0, + (_s29, _s31, _s33, _s35, _s37), + ( + (-1, {_s30: _s1}), + (-1, {_s30: _s32}), + (-1, {_s30: _s34}), + (-1, {_s30: _s36}), + (-1, {_s30: _s38}), + ), +) + +FOO_ENUM_MAP: StaticSchema = ( + 17, + n1, + _s39, + 0, + (_s10, _s11), + ((3, 0), (FOO_ENUM, 0)), +) + +FLATTENED_XML_MAP_OUTPUT: StaticSchema = ( + 18, + n0, + _s40, + {_s19: _s41, _s21: None}, + (_s42,), + ((FOO_ENUM_MAP, {_s43: None}),), +) + +FLATTENED_XML_MAP_INPUT: StaticSchema = ( + 18, + n0, + _s204, + {_s19: _s197, _s25: None}, +) + +FLATTENED_XML_MAP: StaticOperationSchema = ( + 23, + n0, + _s264, + 0, + FLATTENED_XML_MAP_INPUT, + FLATTENED_XML_MAP_OUTPUT, + (), +) + +FLATTENED_XML_MAP_WITH_XML_NAME_OUTPUT_MAP: StaticSchema = ( + 17, + n0, + _s44, + 0, + (_s10, _s11), + ((3, {_s45: _s46}), (3, {_s45: _s47})), +) + +FLATTENED_XML_MAP_WITH_XML_NAME_OUTPUT: StaticSchema = ( + 18, + n0, + _s48, + {_s19: _s49, _s21: None}, + (_s42,), + ((FLATTENED_XML_MAP_WITH_XML_NAME_OUTPUT_MAP, {_s43: None, _s45: _s50}),), +) + +FLATTENED_XML_MAP_WITH_XML_NAME_INPUT: StaticSchema = ( + 18, + n0, + _s205, + {_s19: _s197, _s25: None}, +) + +FLATTENED_XML_MAP_WITH_XML_NAME: StaticOperationSchema = ( + 23, + n0, + _s265, + 0, + FLATTENED_XML_MAP_WITH_XML_NAME_INPUT, + FLATTENED_XML_MAP_WITH_XML_NAME_OUTPUT, + (), +) + +FLATTENED_XML_MAP_WITH_XML_NAMESPACE_OUTPUT_MAP: StaticSchema = ( + 17, + n0, + _s51, + 0, + (_s10, _s11), + ( + ( + 3, + { + _s45: _s46, + _s52: MappingProxyType({"uri": "https://the-key.example.com"}), + }, + ), + ( + 3, + { + _s45: _s47, + _s52: MappingProxyType({"uri": "https://the-value.example.com"}), + }, + ), + ), +) + +FLATTENED_XML_MAP_WITH_XML_NAMESPACE_OUTPUT: StaticSchema = ( + 18, + n0, + _s53, + {_s19: _s54, _s21: None}, + (_s42,), + ( + ( + FLATTENED_XML_MAP_WITH_XML_NAMESPACE_OUTPUT_MAP, + { + _s43: None, + _s45: _s50, + _s52: MappingProxyType({"uri": "https://the-member.example.com"}), + }, + ), + ), +) + +FLATTENED_XML_MAP_WITH_XML_NAMESPACE_INPUT: StaticSchema = ( + 18, + n0, + _s206, + {_s19: _s197, _s25: None}, +) + +FLATTENED_XML_MAP_WITH_XML_NAMESPACE: StaticOperationSchema = ( + 23, + n0, + _s266, + 0, + FLATTENED_XML_MAP_WITH_XML_NAMESPACE_INPUT, + FLATTENED_XML_MAP_WITH_XML_NAMESPACE_OUTPUT, + (), +) + +FRACTIONAL_SECONDS_OUTPUT: StaticSchema = ( + 18, + n0, + _s55, + {_s19: _s56, _s21: None}, + (_s22,), + ((DATE_TIME, 0),), +) + +FRACTIONAL_SECONDS_INPUT: StaticSchema = ( + 18, + n0, + _s207, + {_s19: _s197, _s25: None}, +) + +FRACTIONAL_SECONDS: StaticOperationSchema = ( + 23, + n0, + _s267, + 0, + FRACTIONAL_SECONDS_INPUT, + FRACTIONAL_SECONDS_OUTPUT, + (), +) + +GREETING_WITH_ERRORS_OUTPUT: StaticSchema = ( + 18, + n0, + _s57, + {_s19: _s58, _s21: None}, + (_s59,), + ((3, 0),), +) + +GREETING_WITH_ERRORS_INPUT: StaticSchema = ( + 18, + n0, + _s208, + {_s19: _s197, _s25: None}, +) + +GREETING_WITH_ERRORS: StaticOperationSchema = ( + 23, + n0, + _s268, + 0, + GREETING_WITH_ERRORS_INPUT, + GREETING_WITH_ERRORS_OUTPUT, + (COMPLEX_ERROR, CUSTOM_CODE_ERROR, lambda: INVALID_GREETING), +) + +IGNORES_WRAPPING_XML_NAME_OUTPUT: StaticSchema = ( + 18, + n0, + _s60, + {_s45: _s61, _s19: _s62, _s21: None}, + (_s63,), + ((3, 0),), +) + +IGNORES_WRAPPING_XML_NAME_INPUT: StaticSchema = ( + 18, + n0, + _s211, + {_s19: _s197, _s25: None}, +) + +IGNORES_WRAPPING_XML_NAME: StaticOperationSchema = ( + 23, + n0, + _s270, + 0, + IGNORES_WRAPPING_XML_NAME_INPUT, + IGNORES_WRAPPING_XML_NAME_OUTPUT, + (), +) + +INVALID_GREETING: StaticSchema = ( + 18, + n0, + _s64, + {_s3: _s4}, + (_s14,), + ((3, 0),), +) + +LIST_WITH_MEMBER_NAMESPACE: StaticSchema = ( + 16, + n0, + _s65, + {_s52: MappingProxyType({"uri": "https://xml-list.example.com"})}, + (_s66,), + ((3, {_s52: MappingProxyType({"uri": "https://xml-member.example.com"})}),), +) + +LIST_WITH_NAMESPACE: StaticSchema = ( + 16, + n0, + _s67, + {_s52: MappingProxyType({"uri": "https://xml-list.example.com"})}, + (_s66,), + ((3, 0),), +) + +LIST_WITH_XML_NAME: StaticSchema = ( + 16, + n0, + _s68, + 0, + (_s66,), + ((3, {_s45: _s69}),), +) + +STRING_LIST: StaticSchema = ( + 16, + n1, + _s70, + 0, + (_s66,), + ((3, 0),), +) + +MAP_OF_LISTS: StaticSchema = ( + 17, + n0, + _s71, + 0, + (_s10, _s11), + ((3, 0), (STRING_LIST, 0)), +) + +MAP_WITH_XML_NAME: StaticSchema = ( + 17, + n0, + _s72, + 0, + (_s10, _s11), + ((3, {_s45: _s46}), (3, {_s45: _s47})), +) + +NESTED_STRUCT_WITH_LIST: StaticSchema = ( + 18, + n0, + _s73, + 0, + (_s74,), + ((STRING_LIST, 0),), +) + +STRING_MAP: StaticSchema = ( + 17, + n1, + _s75, + 0, + (_s10, _s11), + ((3, 0), (3, 0)), +) + +NESTED_STRUCT_WITH_MAP: StaticSchema = ( + 18, + n0, + _s76, + 0, + (_s77,), + ((STRING_MAP, 0),), +) + +NESTED_STRUCTURES_INPUT: StaticSchema = ( + 18, + n0, + _s78, + {_s19: _s79, _s25: None}, + (_s6,), + ((lambda: schemas.STRUCT_ARG, 0),), +) + +NESTED_STRUCTURES_OUTPUT: StaticSchema = ( + 18, + n0, + _s212, + {_s19: _s197, _s21: None}, +) + +NESTED_STRUCTURES: StaticOperationSchema = ( + 23, + n0, + _s271, + 0, + NESTED_STRUCTURES_INPUT, + NESTED_STRUCTURES_OUTPUT, + (), +) + +NO_INPUT_AND_OUTPUT_INPUT: StaticSchema = ( + 18, + n0, + _s80, + {_s19: _s81, _s25: None}, +) + +NO_INPUT_AND_OUTPUT_OUTPUT: StaticSchema = ( + 18, + n0, + _s82, + {_s19: _s83, _s21: None}, +) + +NO_INPUT_AND_OUTPUT: StaticOperationSchema = ( + 23, + n0, + _s273, + 0, + NO_INPUT_AND_OUTPUT_INPUT, + NO_INPUT_AND_OUTPUT_OUTPUT, + (), +) + +PUT_WITH_CONTENT_ENCODING_INPUT: StaticSchema = ( + 18, + n0, + _s84, + {_s19: _s85, _s25: None}, + (_s86, _s89), + ((3, {_s87: _s88}), (3, 0)), +) + +PUT_WITH_CONTENT_ENCODING_OUTPUT: StaticSchema = ( + 18, + n0, + _s215, + {_s19: _s197, _s21: None}, +) + +PUT_WITH_CONTENT_ENCODING: StaticOperationSchema = ( + 23, + n0, + _s274, + {_s275: MappingProxyType({"encodings": ("gzip",)})}, + PUT_WITH_CONTENT_ENCODING_INPUT, + PUT_WITH_CONTENT_ENCODING_OUTPUT, + (), +) + +QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL_INPUT: StaticSchema = ( + 18, + n0, + _s90, + {_s19: _s91, _s25: None}, + (_s92,), + ((3, 2),), +) + +QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL_OUTPUT: StaticSchema = ( + 18, + n0, + _s216, + {_s19: _s197, _s21: None}, +) + +QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL: StaticOperationSchema = ( + 23, + n0, + _s276, + 0, + QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL_INPUT, + QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL_OUTPUT, + (), +) + +GREETING_LIST: StaticSchema = ( + 16, + n1, + _s93, + 0, + (_s66,), + ((lambda: schemas.GREETING_STRUCT, 0),), +) + +QUERY_LISTS_INPUT: StaticSchema = ( + 18, + n0, + _s94, + {_s19: _s95, _s25: None}, + (_s74, _s96, _s97, _s98, _s99, _s101), + ( + (STRING_LIST, 0), + (GREETING_LIST, 0), + (STRING_LIST, {_s43: None}), + (LIST_WITH_XML_NAME, 0), + (LIST_WITH_XML_NAME, {_s43: None, _s45: _s100}), + (NESTED_STRUCT_WITH_LIST, 0), + ), +) + +QUERY_LISTS_OUTPUT: StaticSchema = ( + 18, + n0, + _s217, + {_s19: _s197, _s21: None}, +) + +QUERY_LISTS: StaticOperationSchema = ( + 23, + n0, + _s277, + 0, + QUERY_LISTS_INPUT, + QUERY_LISTS_OUTPUT, + (), +) + +QUERY_MAPS_INPUT: StaticSchema = ( + 18, + n0, + _s102, + {_s19: _s103, _s25: None}, + (_s77, _s104, _s105, _s106, _s107, _s108, _s71, _s76), + ( + (STRING_MAP, 0), + (STRING_MAP, {_s45: _s1}), + (COMPLEX_MAP, 0), + (MAP_WITH_XML_NAME, 0), + (STRING_MAP, {_s43: None}), + (MAP_WITH_XML_NAME, {_s43: None, _s45: _s100}), + (MAP_OF_LISTS, 0), + (NESTED_STRUCT_WITH_MAP, 0), + ), +) + +QUERY_MAPS_OUTPUT: StaticSchema = ( + 18, + n0, + _s218, + {_s19: _s197, _s21: None}, +) + +QUERY_MAPS: StaticOperationSchema = ( + 23, + n0, + _s278, + 0, + QUERY_MAPS_INPUT, + QUERY_MAPS_OUTPUT, + (), +) + +EPOCH_SECONDS: StaticSchema = ( + 4, + n1, + _s109, + {_s16: _s110}, +) + +QUERY_TIMESTAMPS_INPUT: StaticSchema = ( + 18, + n0, + _s111, + {_s19: _s112, _s25: None}, + (_s113, _s114, _s115), + ((4, 0), (4, {_s16: _s110}), (EPOCH_SECONDS, 0)), +) + +QUERY_TIMESTAMPS_OUTPUT: StaticSchema = ( + 18, + n0, + _s219, + {_s19: _s197, _s21: None}, +) + +QUERY_TIMESTAMPS: StaticOperationSchema = ( + 23, + n0, + _s279, + 0, + QUERY_TIMESTAMPS_INPUT, + QUERY_TIMESTAMPS_OUTPUT, + (), +) + +RECURSIVE_XML_SHAPES_OUTPUT: StaticSchema = ( + 18, + n0, + _s116, + {_s19: _s117, _s21: None}, + (_s118,), + ((lambda: schemas.RECURSIVE_XML_SHAPES_OUTPUT_NESTED1, 0),), +) + +RECURSIVE_XML_SHAPES_INPUT: StaticSchema = ( + 18, + n0, + _s220, + {_s19: _s197, _s25: None}, +) + +RECURSIVE_XML_SHAPES: StaticOperationSchema = ( + 23, + n0, + _s280, + 0, + RECURSIVE_XML_SHAPES_INPUT, + RECURSIVE_XML_SHAPES_OUTPUT, + (), +) + +RENAMED_LIST_MEMBERS: StaticSchema = ( + 16, + n0, + _s119, + 0, + (_s66,), + ((3, {_s45: _s69}),), +) + +INTEGER_ENUM: StaticSchema = ( + 15, + n1, + _s120, + 0, + (_s121, _s122, _s123), + ((-1, {_s30: 1}), (-1, {_s30: 2}), (-1, {_s30: 3})), +) + +SIMPLE_INPUT_PARAMS_INPUT: StaticSchema = ( + 18, + n0, + _s124, + {_s19: _s125, _s25: None}, + (_s1, _s34, _s32, _s126, _s127, _s128, _s129, _s28, _s120), + ( + (3, 0), + (3, 0), + (2, 0), + (7, 0), + (9, 0), + (10, 0), + (1, 0), + (FOO_ENUM, 0), + (INTEGER_ENUM, 0), + ), +) + +SIMPLE_INPUT_PARAMS_OUTPUT: StaticSchema = ( + 18, + n0, + _s221, + {_s19: _s197, _s21: None}, +) + +SIMPLE_INPUT_PARAMS: StaticOperationSchema = ( + 23, + n0, + _s281, + 0, + SIMPLE_INPUT_PARAMS_INPUT, + SIMPLE_INPUT_PARAMS_OUTPUT, + (), +) diff --git a/codegen-output-py/aws-query-client/src/awsquery_client/_private/schemas_1.py b/codegen-output-py/aws-query-client/src/awsquery_client/_private/schemas_1.py new file mode 100644 index 000000000..158799153 --- /dev/null +++ b/codegen-output-py/aws-query-client/src/awsquery_client/_private/schemas_1.py @@ -0,0 +1,875 @@ +from types import MappingProxyType + +from smithy_core._schema_compact import StaticOperationSchema, StaticSchema + +from . import schemas + +n0 = "aws.protocoltests.query" +n1 = "aws.protocoltests.shared" +_s7 = "GreetingStruct" +_s8 = "hi" +_s10 = "key" +_s11 = "value" +_s16 = "smithy.api#timestampFormat" +_s17 = "date-time" +_s19 = "smithy.synthetic#originalShapeId" +_s21 = "smithy.api#output" +_s25 = "smithy.api#input" +_s42 = "myMap" +_s43 = "smithy.api#xmlFlattened" +_s45 = "smithy.api#xmlName" +_s52 = "smithy.api#xmlNamespace" +_s63 = "foo" +_s66 = "member" +_s69 = "item" +_s89 = "data" +_s110 = "epoch-seconds" +_s118 = "nested" +_s130 = "SimpleScalarXmlPropertiesOutput" +_s131 = "aws.protocoltests.query#SimpleScalarXmlPropertiesOutput" +_s132 = "stringValue" +_s133 = "emptyStringValue" +_s134 = "trueBooleanValue" +_s135 = "falseBooleanValue" +_s136 = "byteValue" +_s137 = "shortValue" +_s138 = "integerValue" +_s139 = "longValue" +_s140 = "floatValue" +_s141 = "doubleValue" +_s142 = "DoubleDribble" +_s143 = "StructureListMember" +_s144 = "a" +_s145 = "b" +_s146 = "other" +_s147 = "StructureList" +_s148 = "FooEnumList" +_s149 = "FooEnumSet" +_s150 = "XmlEnumsOutput" +_s151 = "aws.protocoltests.query#XmlEnumsOutput" +_s152 = "fooEnum1" +_s153 = "fooEnum2" +_s154 = "fooEnum3" +_s155 = "fooEnumList" +_s156 = "fooEnumSet" +_s157 = "fooEnumMap" +_s158 = "IntegerEnumList" +_s159 = "IntegerEnumSet" +_s160 = "IntegerEnumMap" +_s161 = "XmlIntEnumsOutput" +_s162 = "aws.protocoltests.query#XmlIntEnumsOutput" +_s163 = "intEnum1" +_s164 = "intEnum2" +_s165 = "intEnum3" +_s166 = "intEnumList" +_s167 = "intEnumSet" +_s168 = "intEnumMap" +_s169 = "XmlMapsOutputMap" +_s170 = "XmlMapsXmlNameOutputMap" +_s171 = "Attribute" +_s172 = "Setting" +_s173 = "XmlMapsXmlNameOutput" +_s174 = "aws.protocoltests.query#XmlMapsXmlNameOutput" +_s175 = "XmlNamespacedList" +_s176 = "XmlNamespaceNested" +_s177 = "values" +_s178 = "XmlNamespacesOutput" +_s179 = "aws.protocoltests.query#XmlNamespacesOutput" +_s180 = "HttpDate" +_s181 = "http-date" +_s182 = "XmlTimestampsOutput" +_s183 = "aws.protocoltests.query#XmlTimestampsOutput" +_s184 = "normal" +_s185 = "dateTime" +_s186 = "dateTimeOnTarget" +_s187 = "epochSeconds" +_s188 = "epochSecondsOnTarget" +_s189 = "httpDate" +_s190 = "httpDateOnTarget" +_s191 = "BooleanList" +_s192 = "IntegerList" +_s193 = "NestedStringList" +_s194 = "StringSet" +_s195 = "TimestampList" +_s197 = "smithy.api#Unit" +_s198 = "EndpointOperationInput" +_s199 = "EndpointOperationOutput" +_s200 = "EndpointWithHostLabelOperationInput" +_s201 = "aws.protocoltests.query#HostLabelInput" +_s202 = "label" +_s203 = "EndpointWithHostLabelOperationOutput" +_s209 = "HostWithPathOperationInput" +_s210 = "HostWithPathOperationOutput" +_s213 = "NoInputAndNoOutputInput" +_s214 = "NoInputAndNoOutputOutput" +_s222 = "SimpleScalarXmlPropertiesInput" +_s223 = "XmlBlobsInput" +_s224 = "XmlBlobsOutput2" +_s225 = "aws.protocoltests.query#XmlBlobsOutput" +_s226 = "XmlEmptyBlobsInput" +_s227 = "XmlEmptyBlobsOutput" +_s228 = "XmlEmptyListsInput" +_s229 = "XmlEmptyListsOutput" +_s230 = "aws.protocoltests.query#XmlListsOutput" +_s231 = "stringList" +_s232 = "stringSet" +_s233 = "integerList" +_s234 = "booleanList" +_s235 = "timestampList" +_s236 = "enumList" +_s237 = "nestedStringList" +_s238 = "renamedListMembers" +_s239 = "renamed" +_s240 = "flattenedList" +_s241 = "flattenedList2" +_s242 = "customName" +_s243 = "flattenedListWithMemberNamespace" +_s244 = "flattenedListWithNamespace" +_s245 = "structureList" +_s246 = "myStructureList" +_s247 = "XmlEmptyMapsInput" +_s248 = "XmlEmptyMapsOutput" +_s249 = "aws.protocoltests.query#XmlMapsOutput" +_s250 = "XmlEnumsInput" +_s251 = "XmlIntEnumsInput" +_s252 = "XmlListsInput" +_s253 = "XmlListsOutput2" +_s254 = "XmlMapsInput" +_s255 = "XmlMapsOutput2" +_s256 = "XmlMapsXmlNameInput" +_s257 = "XmlNamespacesInput" +_s258 = "XmlTimestampsInput" +_s261 = "EndpointOperation" +_s262 = "smithy.api#endpoint" +_s263 = "EndpointWithHostLabelOperation" +_s269 = "HostWithPathOperation" +_s272 = "NoInputAndNoOutput" +_s282 = "SimpleScalarXmlProperties" +_s283 = "XmlBlobs" +_s284 = "XmlEmptyBlobs" +_s285 = "XmlEmptyLists" +_s286 = "XmlEmptyMaps" +_s287 = "XmlEnums" +_s288 = "XmlIntEnums" +_s289 = "XmlLists" +_s290 = "XmlMaps" +_s291 = "XmlMapsXmlName" +_s292 = "XmlNamespaces" +_s293 = "XmlTimestamps" +_s294 = "AwsQuery" +_s295 = "aws.api#service" +_s296 = "aws.auth#sigv4" +_s297 = "aws.protocols#awsQuery" +_s298 = "RecursiveXmlShapesOutputNested1" +_s299 = "RecursiveXmlShapesOutputNested2" +_s300 = "bar" +_s301 = "recursiveMember" +_s302 = "StructArg" +_s303 = "StringArg" +_s304 = "OtherArg" +_s305 = "RecursiveArg" + +GREETING_STRUCT: StaticSchema = ( + 18, + n1, + _s7, + 0, + (_s8,), + ((3, 0),), +) + +SIMPLE_SCALAR_XML_PROPERTIES_OUTPUT: StaticSchema = ( + 18, + n0, + _s130, + {_s19: _s131, _s21: None}, + (_s132, _s133, _s134, _s135, _s136, _s137, _s138, _s139, _s140, _s141), + ( + (3, 0), + (3, 0), + (2, 0), + (2, 0), + (5, 0), + (6, 0), + (7, 0), + (8, 0), + (9, 0), + (10, {_s45: _s142}), + ), +) + +SIMPLE_SCALAR_XML_PROPERTIES_INPUT: StaticSchema = ( + 18, + n0, + _s222, + {_s19: _s197, _s25: None}, +) + +SIMPLE_SCALAR_XML_PROPERTIES: StaticOperationSchema = ( + 23, + n0, + _s282, + 0, + SIMPLE_SCALAR_XML_PROPERTIES_INPUT, + SIMPLE_SCALAR_XML_PROPERTIES_OUTPUT, + (), +) + +STRUCTURE_LIST_MEMBER: StaticSchema = ( + 18, + n0, + _s143, + 0, + (_s144, _s145), + ((3, {_s45: _s11}), (3, {_s45: _s146})), +) + +STRUCTURE_LIST: StaticSchema = ( + 16, + n0, + _s147, + 0, + (_s66,), + ((STRUCTURE_LIST_MEMBER, {_s45: _s69}),), +) + +FOO_ENUM_LIST: StaticSchema = ( + 16, + n1, + _s148, + 0, + (_s66,), + ((lambda: schemas.FOO_ENUM, 0),), +) + +FOO_ENUM_SET: StaticSchema = ( + 16, + n1, + _s149, + 0, + (_s66,), + ((lambda: schemas.FOO_ENUM, 0),), +) + +XML_ENUMS_OUTPUT: StaticSchema = ( + 18, + n0, + _s150, + {_s19: _s151, _s21: None}, + (_s152, _s153, _s154, _s155, _s156, _s157), + ( + (lambda: schemas.FOO_ENUM, 0), + (lambda: schemas.FOO_ENUM, 0), + (lambda: schemas.FOO_ENUM, 0), + (FOO_ENUM_LIST, 0), + (FOO_ENUM_SET, 0), + (lambda: schemas.FOO_ENUM_MAP, 0), + ), +) + +XML_ENUMS_INPUT: StaticSchema = ( + 18, + n0, + _s250, + {_s19: _s197, _s25: None}, +) + +XML_ENUMS: StaticOperationSchema = ( + 23, + n0, + _s287, + 0, + XML_ENUMS_INPUT, + XML_ENUMS_OUTPUT, + (), +) + +INTEGER_ENUM_LIST: StaticSchema = ( + 16, + n1, + _s158, + 0, + (_s66,), + ((lambda: schemas.INTEGER_ENUM, 0),), +) + +INTEGER_ENUM_SET: StaticSchema = ( + 16, + n1, + _s159, + 0, + (_s66,), + ((lambda: schemas.INTEGER_ENUM, 0),), +) + +INTEGER_ENUM_MAP: StaticSchema = ( + 17, + n1, + _s160, + 0, + (_s10, _s11), + ((3, 0), (lambda: schemas.INTEGER_ENUM, 0)), +) + +XML_INT_ENUMS_OUTPUT: StaticSchema = ( + 18, + n0, + _s161, + {_s19: _s162, _s21: None}, + (_s163, _s164, _s165, _s166, _s167, _s168), + ( + (lambda: schemas.INTEGER_ENUM, 0), + (lambda: schemas.INTEGER_ENUM, 0), + (lambda: schemas.INTEGER_ENUM, 0), + (INTEGER_ENUM_LIST, 0), + (INTEGER_ENUM_SET, 0), + (INTEGER_ENUM_MAP, 0), + ), +) + +XML_INT_ENUMS_INPUT: StaticSchema = ( + 18, + n0, + _s251, + {_s19: _s197, _s25: None}, +) + +XML_INT_ENUMS: StaticOperationSchema = ( + 23, + n0, + _s288, + 0, + XML_INT_ENUMS_INPUT, + XML_INT_ENUMS_OUTPUT, + (), +) + +XML_MAPS_OUTPUT_MAP: StaticSchema = ( + 17, + n0, + _s169, + 0, + (_s10, _s11), + ((3, 0), (GREETING_STRUCT, 0)), +) + +XML_MAPS_XML_NAME_OUTPUT_MAP: StaticSchema = ( + 17, + n0, + _s170, + 0, + (_s10, _s11), + ((3, {_s45: _s171}), (GREETING_STRUCT, {_s45: _s172})), +) + +XML_MAPS_XML_NAME_OUTPUT: StaticSchema = ( + 18, + n0, + _s173, + {_s19: _s174, _s21: None}, + (_s42,), + ((XML_MAPS_XML_NAME_OUTPUT_MAP, 0),), +) + +XML_MAPS_XML_NAME_INPUT: StaticSchema = ( + 18, + n0, + _s256, + {_s19: _s197, _s25: None}, +) + +XML_MAPS_XML_NAME: StaticOperationSchema = ( + 23, + n0, + _s291, + 0, + XML_MAPS_XML_NAME_INPUT, + XML_MAPS_XML_NAME_OUTPUT, + (), +) + +XML_NAMESPACED_LIST: StaticSchema = ( + 16, + n0, + _s175, + 0, + (_s66,), + ((3, {_s52: MappingProxyType({"uri": "http://bux.com"})}),), +) + +XML_NAMESPACE_NESTED: StaticSchema = ( + 18, + n0, + _s176, + {_s52: MappingProxyType({"uri": "http://boo.com"})}, + (_s63, _s177), + ( + (3, {_s52: MappingProxyType({"uri": "http://baz.com", "prefix": "baz"})}), + (XML_NAMESPACED_LIST, {_s52: MappingProxyType({"uri": "http://qux.com"})}), + ), +) + +XML_NAMESPACES_OUTPUT: StaticSchema = ( + 18, + n0, + _s178, + {_s52: MappingProxyType({"uri": "http://foo.com"}), _s19: _s179, _s21: None}, + (_s118,), + ((XML_NAMESPACE_NESTED, 0),), +) + +XML_NAMESPACES_INPUT: StaticSchema = ( + 18, + n0, + _s257, + {_s19: _s197, _s25: None}, +) + +XML_NAMESPACES: StaticOperationSchema = ( + 23, + n0, + _s292, + 0, + XML_NAMESPACES_INPUT, + XML_NAMESPACES_OUTPUT, + (), +) + +HTTP_DATE: StaticSchema = ( + 4, + n1, + _s180, + {_s16: _s181}, +) + +XML_TIMESTAMPS_OUTPUT: StaticSchema = ( + 18, + n0, + _s182, + {_s19: _s183, _s21: None}, + (_s184, _s185, _s186, _s187, _s188, _s189, _s190), + ( + (4, 0), + (4, {_s16: _s17}), + (lambda: schemas.DATE_TIME, 0), + (4, {_s16: _s110}), + (lambda: schemas.EPOCH_SECONDS, 0), + (4, {_s16: _s181}), + (HTTP_DATE, 0), + ), +) + +XML_TIMESTAMPS_INPUT: StaticSchema = ( + 18, + n0, + _s258, + {_s19: _s197, _s25: None}, +) + +XML_TIMESTAMPS: StaticOperationSchema = ( + 23, + n0, + _s293, + 0, + XML_TIMESTAMPS_INPUT, + XML_TIMESTAMPS_OUTPUT, + (), +) + +BOOLEAN_LIST: StaticSchema = ( + 16, + n1, + _s191, + 0, + (_s66,), + ((2, 0),), +) + +INTEGER_LIST: StaticSchema = ( + 16, + n1, + _s192, + 0, + (_s66,), + ((7, 0),), +) + +NESTED_STRING_LIST: StaticSchema = ( + 16, + n1, + _s193, + 0, + (_s66,), + ((lambda: schemas.STRING_LIST, 0),), +) + +STRING_SET: StaticSchema = ( + 16, + n1, + _s194, + 0, + (_s66,), + ((3, 0),), +) + +TIMESTAMP_LIST: StaticSchema = ( + 16, + n1, + _s195, + 0, + (_s66,), + ((4, 0),), +) + +ENDPOINT_OPERATION_INPUT: StaticSchema = ( + 18, + n0, + _s198, + {_s19: _s197, _s25: None}, +) + +ENDPOINT_OPERATION_OUTPUT: StaticSchema = ( + 18, + n0, + _s199, + {_s19: _s197, _s21: None}, +) + +ENDPOINT_OPERATION: StaticOperationSchema = ( + 23, + n0, + _s261, + {_s262: MappingProxyType({"hostPrefix": "foo."})}, + ENDPOINT_OPERATION_INPUT, + ENDPOINT_OPERATION_OUTPUT, + (), +) + +ENDPOINT_WITH_HOST_LABEL_OPERATION_INPUT: StaticSchema = ( + 18, + n0, + _s200, + {_s19: _s201, _s25: None}, + (_s202,), + ((3, 257),), +) + +ENDPOINT_WITH_HOST_LABEL_OPERATION_OUTPUT: StaticSchema = ( + 18, + n0, + _s203, + {_s19: _s197, _s21: None}, +) + +ENDPOINT_WITH_HOST_LABEL_OPERATION: StaticOperationSchema = ( + 23, + n0, + _s263, + {_s262: MappingProxyType({"hostPrefix": "foo.{label}."})}, + ENDPOINT_WITH_HOST_LABEL_OPERATION_INPUT, + ENDPOINT_WITH_HOST_LABEL_OPERATION_OUTPUT, + (), +) + +HOST_WITH_PATH_OPERATION_INPUT: StaticSchema = ( + 18, + n0, + _s209, + {_s19: _s197, _s25: None}, +) + +HOST_WITH_PATH_OPERATION_OUTPUT: StaticSchema = ( + 18, + n0, + _s210, + {_s19: _s197, _s21: None}, +) + +HOST_WITH_PATH_OPERATION: StaticOperationSchema = ( + 23, + n0, + _s269, + 0, + HOST_WITH_PATH_OPERATION_INPUT, + HOST_WITH_PATH_OPERATION_OUTPUT, + (), +) + +NO_INPUT_AND_NO_OUTPUT_INPUT: StaticSchema = ( + 18, + n0, + _s213, + {_s19: _s197, _s25: None}, +) + +NO_INPUT_AND_NO_OUTPUT_OUTPUT: StaticSchema = ( + 18, + n0, + _s214, + {_s19: _s197, _s21: None}, +) + +NO_INPUT_AND_NO_OUTPUT: StaticOperationSchema = ( + 23, + n0, + _s272, + 0, + NO_INPUT_AND_NO_OUTPUT_INPUT, + NO_INPUT_AND_NO_OUTPUT_OUTPUT, + (), +) + +XML_BLOBS_INPUT: StaticSchema = ( + 18, + n0, + _s223, + {_s19: _s197, _s25: None}, +) + +XML_BLOBS_OUTPUT2: StaticSchema = ( + 18, + n0, + _s224, + {_s19: _s225, _s21: None}, + (_s89,), + ((1, 0),), +) + +XML_BLOBS: StaticOperationSchema = ( + 23, + n0, + _s283, + 0, + XML_BLOBS_INPUT, + XML_BLOBS_OUTPUT2, + (), +) + +XML_EMPTY_BLOBS_INPUT: StaticSchema = ( + 18, + n0, + _s226, + {_s19: _s197, _s25: None}, +) + +XML_EMPTY_BLOBS_OUTPUT: StaticSchema = ( + 18, + n0, + _s227, + {_s19: _s225, _s21: None}, + (_s89,), + ((1, 0),), +) + +XML_EMPTY_BLOBS: StaticOperationSchema = ( + 23, + n0, + _s284, + 0, + XML_EMPTY_BLOBS_INPUT, + XML_EMPTY_BLOBS_OUTPUT, + (), +) + +XML_EMPTY_LISTS_INPUT: StaticSchema = ( + 18, + n0, + _s228, + {_s19: _s197, _s25: None}, +) + +XML_EMPTY_LISTS_OUTPUT: StaticSchema = ( + 18, + n0, + _s229, + {_s19: _s230, _s21: None}, + ( + _s231, + _s232, + _s233, + _s234, + _s235, + _s236, + _s166, + _s237, + _s238, + _s240, + _s241, + _s243, + _s244, + _s245, + ), + ( + (lambda: schemas.STRING_LIST, 0), + (STRING_SET, 0), + (INTEGER_LIST, 0), + (BOOLEAN_LIST, 0), + (TIMESTAMP_LIST, 0), + (FOO_ENUM_LIST, 0), + (INTEGER_ENUM_LIST, 0), + (NESTED_STRING_LIST, 0), + (lambda: schemas.RENAMED_LIST_MEMBERS, {_s45: _s239}), + (lambda: schemas.RENAMED_LIST_MEMBERS, {_s43: None}), + (lambda: schemas.RENAMED_LIST_MEMBERS, {_s43: None, _s45: _s242}), + (lambda: schemas.LIST_WITH_MEMBER_NAMESPACE, {_s43: None}), + (lambda: schemas.LIST_WITH_NAMESPACE, {_s43: None}), + (STRUCTURE_LIST, {_s45: _s246}), + ), +) + +XML_EMPTY_LISTS: StaticOperationSchema = ( + 23, + n0, + _s285, + 0, + XML_EMPTY_LISTS_INPUT, + XML_EMPTY_LISTS_OUTPUT, + (), +) + +XML_EMPTY_MAPS_INPUT: StaticSchema = ( + 18, + n0, + _s247, + {_s19: _s197, _s25: None}, +) + +XML_EMPTY_MAPS_OUTPUT: StaticSchema = ( + 18, + n0, + _s248, + {_s19: _s249, _s21: None}, + (_s42,), + ((XML_MAPS_OUTPUT_MAP, 0),), +) + +XML_EMPTY_MAPS: StaticOperationSchema = ( + 23, + n0, + _s286, + 0, + XML_EMPTY_MAPS_INPUT, + XML_EMPTY_MAPS_OUTPUT, + (), +) + +XML_LISTS_INPUT: StaticSchema = ( + 18, + n0, + _s252, + {_s19: _s197, _s25: None}, +) + +XML_LISTS_OUTPUT2: StaticSchema = ( + 18, + n0, + _s253, + {_s19: _s230, _s21: None}, + ( + _s231, + _s232, + _s233, + _s234, + _s235, + _s236, + _s166, + _s237, + _s238, + _s240, + _s241, + _s243, + _s244, + _s245, + ), + ( + (lambda: schemas.STRING_LIST, 0), + (STRING_SET, 0), + (INTEGER_LIST, 0), + (BOOLEAN_LIST, 0), + (TIMESTAMP_LIST, 0), + (FOO_ENUM_LIST, 0), + (INTEGER_ENUM_LIST, 0), + (NESTED_STRING_LIST, 0), + (lambda: schemas.RENAMED_LIST_MEMBERS, {_s45: _s239}), + (lambda: schemas.RENAMED_LIST_MEMBERS, {_s43: None}), + (lambda: schemas.RENAMED_LIST_MEMBERS, {_s43: None, _s45: _s242}), + (lambda: schemas.LIST_WITH_MEMBER_NAMESPACE, {_s43: None}), + (lambda: schemas.LIST_WITH_NAMESPACE, {_s43: None}), + (STRUCTURE_LIST, {_s45: _s246}), + ), +) + +XML_LISTS: StaticOperationSchema = ( + 23, + n0, + _s289, + 0, + XML_LISTS_INPUT, + XML_LISTS_OUTPUT2, + (), +) + +XML_MAPS_INPUT: StaticSchema = ( + 18, + n0, + _s254, + {_s19: _s197, _s25: None}, +) + +XML_MAPS_OUTPUT2: StaticSchema = ( + 18, + n0, + _s255, + {_s19: _s249, _s21: None}, + (_s42,), + ((XML_MAPS_OUTPUT_MAP, 0),), +) + +XML_MAPS: StaticOperationSchema = ( + 23, + n0, + _s290, + 0, + XML_MAPS_INPUT, + XML_MAPS_OUTPUT2, + (), +) + +AWS_QUERY: StaticSchema = ( + 21, + n0, + _s294, + { + _s295: MappingProxyType({"sdkId": "Query Protocol"}), + _s296: MappingProxyType({"name": "awsquery"}), + _s297: None, + _s52: MappingProxyType({"uri": "https://example.com/"}), + }, +) + +RECURSIVE_XML_SHAPES_OUTPUT_NESTED1: StaticSchema = ( + 18, + n0, + _s298, + 0, + (_s63, _s118), + ((3, 0), (lambda: RECURSIVE_XML_SHAPES_OUTPUT_NESTED2, 0)), +) + +RECURSIVE_XML_SHAPES_OUTPUT_NESTED2: StaticSchema = ( + 18, + n0, + _s299, + 0, + (_s300, _s301), + ((3, 0), (RECURSIVE_XML_SHAPES_OUTPUT_NESTED1, 0)), +) + +STRUCT_ARG: StaticSchema = ( + 18, + n0, + _s302, + 0, + (_s303, _s304, _s305), + ((3, 0), (2, 0), (lambda: STRUCT_ARG, 0)), +) diff --git a/codegen-output-py/aws-query-client/src/awsquery_client/aio/__init__.py b/codegen-output-py/aws-query-client/src/awsquery_client/aio/__init__.py new file mode 100644 index 000000000..b216bf0a1 --- /dev/null +++ b/codegen-output-py/aws-query-client/src/awsquery_client/aio/__init__.py @@ -0,0 +1,19 @@ +from importlib import import_module +from typing import TYPE_CHECKING, Any + +if TYPE_CHECKING: + from .client import AsyncQueryProtocolClient + from .config import AsyncQueryProtocolConfig + +__all__ = ["AsyncQueryProtocolClient", "AsyncQueryProtocolConfig"] + +_EXPORTS = { + "AsyncQueryProtocolClient": ".client", + "AsyncQueryProtocolConfig": ".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}") diff --git a/codegen-output-py/aws-query-client/src/awsquery_client/aio/client.py b/codegen-output-py/aws-query-client/src/awsquery_client/aio/client.py new file mode 100644 index 000000000..67a39f6e4 --- /dev/null +++ b/codegen-output-py/aws-query-client/src/awsquery_client/aio/client.py @@ -0,0 +1,1209 @@ +from __future__ import annotations + +from typing import Unpack, cast, overload + +from smithy_aws_core.aio.identity.chain import AsyncIdentityChain +from smithy_aws_core.config.types import ConfigSource +from smithy_aws_core.identity.components import AWSCredentialsIdentity +from smithy_core.aio.client import AsyncClient +from smithy_http.aio.interfaces import AsyncHTTPClient +from smithy_http.plugins import user_agent_plugin + +from awsquery_client import models +from awsquery_client.aio.config import AsyncQueryProtocolConfig, Plugin +from awsquery_client.aio.user_agent import aws_user_agent_plugin + + +class AsyncQueryProtocolClient(AsyncClient[AsyncQueryProtocolConfig]): + "A query service that sends query requests and XML responses." + + _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + + @overload + async def datetime_offsets( + self, + request: models.DatetimeOffsetsInput | models.DatetimeOffsetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.DatetimeOffsetsOutput: ... + + @overload + async def datetime_offsets( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.DatetimeOffsetsInputDict], + ) -> models.DatetimeOffsetsOutput: + """ + Invokes the DatetimeOffsets operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def datetime_offsets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.DatetimeOffsetsOutput: + return await self._invoke( + self._select_input(models.DATETIME_OFFSETS, args, kwargs), + models.DATETIME_OFFSETS, + [], + plugins, + ) + + @overload + async def empty_input_and_empty_output( + self, + request: models.EmptyInputAndEmptyOutputInput + | models.EmptyInputAndEmptyOutputInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.EmptyInputAndEmptyOutputOutput: ... + + @overload + async def empty_input_and_empty_output( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.EmptyInputAndEmptyOutputInputDict], + ) -> models.EmptyInputAndEmptyOutputOutput: + """ + The example tests how requests and responses are serialized when there's + no request or response members. + + While this should be rare, code generators must support this. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def empty_input_and_empty_output( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.EmptyInputAndEmptyOutputOutput: + return await self._invoke( + self._select_input(models.EMPTY_INPUT_AND_EMPTY_OUTPUT, args, kwargs), + models.EMPTY_INPUT_AND_EMPTY_OUTPUT, + [], + plugins, + ) + + @overload + async def endpoint_operation( + self, + request: models.EndpointOperationInput | models.EndpointOperationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.EndpointOperationOutput: ... + + @overload + async def endpoint_operation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.EndpointOperationInputDict], + ) -> models.EndpointOperationOutput: + """ + Invokes the EndpointOperation operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def endpoint_operation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.EndpointOperationOutput: + return await self._invoke( + self._select_input(models.ENDPOINT_OPERATION, args, kwargs), + models.ENDPOINT_OPERATION, + [], + plugins, + ) + + @overload + async def endpoint_with_host_label_operation( + self, + request: models.EndpointWithHostLabelOperationInput + | models.EndpointWithHostLabelOperationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.EndpointWithHostLabelOperationOutput: ... + + @overload + async def endpoint_with_host_label_operation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.EndpointWithHostLabelOperationInputDict], + ) -> models.EndpointWithHostLabelOperationOutput: + """ + Invokes the EndpointWithHostLabelOperation operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def endpoint_with_host_label_operation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.EndpointWithHostLabelOperationOutput: + return await self._invoke( + self._select_input(models.ENDPOINT_WITH_HOST_LABEL_OPERATION, args, kwargs), + models.ENDPOINT_WITH_HOST_LABEL_OPERATION, + [], + plugins, + ) + + @overload + async def flattened_xml_map( + self, + request: models.FlattenedXmlMapInput | models.FlattenedXmlMapInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.FlattenedXmlMapOutput: ... + + @overload + async def flattened_xml_map( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.FlattenedXmlMapInputDict], + ) -> models.FlattenedXmlMapOutput: + """ + Flattened maps + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def flattened_xml_map( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.FlattenedXmlMapOutput: + return await self._invoke( + self._select_input(models.FLATTENED_XML_MAP, args, kwargs), + models.FLATTENED_XML_MAP, + [], + plugins, + ) + + @overload + async def flattened_xml_map_with_xml_name( + self, + request: models.FlattenedXmlMapWithXmlNameInput + | models.FlattenedXmlMapWithXmlNameInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.FlattenedXmlMapWithXmlNameOutput: ... + + @overload + async def flattened_xml_map_with_xml_name( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.FlattenedXmlMapWithXmlNameInputDict], + ) -> models.FlattenedXmlMapWithXmlNameOutput: + """ + Flattened maps with @xmlName + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def flattened_xml_map_with_xml_name( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.FlattenedXmlMapWithXmlNameOutput: + return await self._invoke( + self._select_input(models.FLATTENED_XML_MAP_WITH_XML_NAME, args, kwargs), + models.FLATTENED_XML_MAP_WITH_XML_NAME, + [], + plugins, + ) + + @overload + async def flattened_xml_map_with_xml_namespace( + self, + request: models.FlattenedXmlMapWithXmlNamespaceInput + | models.FlattenedXmlMapWithXmlNamespaceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.FlattenedXmlMapWithXmlNamespaceOutput: ... + + @overload + async def flattened_xml_map_with_xml_namespace( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.FlattenedXmlMapWithXmlNamespaceInputDict], + ) -> models.FlattenedXmlMapWithXmlNamespaceOutput: + """ + Flattened maps with @xmlNamespace and @xmlName + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def flattened_xml_map_with_xml_namespace( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.FlattenedXmlMapWithXmlNamespaceOutput: + return await self._invoke( + self._select_input( + models.FLATTENED_XML_MAP_WITH_XML_NAMESPACE, args, kwargs + ), + models.FLATTENED_XML_MAP_WITH_XML_NAMESPACE, + [], + plugins, + ) + + @overload + async def fractional_seconds( + self, + request: models.FractionalSecondsInput | models.FractionalSecondsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.FractionalSecondsOutput: ... + + @overload + async def fractional_seconds( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.FractionalSecondsInputDict], + ) -> models.FractionalSecondsOutput: + """ + Invokes the FractionalSeconds operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def fractional_seconds( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.FractionalSecondsOutput: + return await self._invoke( + self._select_input(models.FRACTIONAL_SECONDS, args, kwargs), + models.FRACTIONAL_SECONDS, + [], + plugins, + ) + + @overload + async def greeting_with_errors( + self, + request: models.GreetingWithErrorsInput | models.GreetingWithErrorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.GreetingWithErrorsOutput: ... + + @overload + async def greeting_with_errors( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.GreetingWithErrorsInputDict], + ) -> models.GreetingWithErrorsOutput: + """ + This operation has three possible return values: + + 1. A successful response in the form of GreetingWithErrorsOutput + 2. An InvalidGreeting error. + 3. A BadRequest error. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def greeting_with_errors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.GreetingWithErrorsOutput: + return await self._invoke( + self._select_input(models.GREETING_WITH_ERRORS, args, kwargs), + models.GREETING_WITH_ERRORS, + [], + plugins, + ) + + @overload + async def host_with_path_operation( + self, + request: models.HostWithPathOperationInput + | models.HostWithPathOperationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HostWithPathOperationOutput: ... + + @overload + async def host_with_path_operation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HostWithPathOperationInputDict], + ) -> models.HostWithPathOperationOutput: + """ + Invokes the HostWithPathOperation operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def host_with_path_operation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HostWithPathOperationOutput: + return await self._invoke( + self._select_input(models.HOST_WITH_PATH_OPERATION, args, kwargs), + models.HOST_WITH_PATH_OPERATION, + [], + plugins, + ) + + @overload + async def ignores_wrapping_xml_name( + self, + request: models.IgnoresWrappingXmlNameInput + | models.IgnoresWrappingXmlNameInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.IgnoresWrappingXmlNameOutput: ... + + @overload + async def ignores_wrapping_xml_name( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.IgnoresWrappingXmlNameInputDict], + ) -> models.IgnoresWrappingXmlNameOutput: + """ + The xmlName trait on the output structure is ignored in AWS Query. + + The wrapping element is always operation name + "Response", and + inside of that wrapper is another wrapper named operation name + + "Result". + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def ignores_wrapping_xml_name( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.IgnoresWrappingXmlNameOutput: + return await self._invoke( + self._select_input(models.IGNORES_WRAPPING_XML_NAME, args, kwargs), + models.IGNORES_WRAPPING_XML_NAME, + [], + plugins, + ) + + @overload + async def nested_structures( + self, + request: models.NestedStructuresInput | models.NestedStructuresInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.NestedStructuresOutput: ... + + @overload + async def nested_structures( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.NestedStructuresInputDict], + ) -> models.NestedStructuresOutput: + """ + This test serializes nested and recursive structure members. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def nested_structures( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.NestedStructuresOutput: + return await self._invoke( + self._select_input(models.NESTED_STRUCTURES, args, kwargs), + models.NESTED_STRUCTURES, + [], + plugins, + ) + + @overload + async def no_input_and_no_output( + self, + request: models.NoInputAndNoOutputInput | models.NoInputAndNoOutputInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.NoInputAndNoOutputOutput: ... + + @overload + async def no_input_and_no_output( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.NoInputAndNoOutputInputDict], + ) -> models.NoInputAndNoOutputOutput: + """ + The example tests how requests and responses are serialized when there's + no request or response payload because the operation has no input or + output. + + While this should be rare, code generators must support this. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def no_input_and_no_output( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.NoInputAndNoOutputOutput: + return await self._invoke( + self._select_input(models.NO_INPUT_AND_NO_OUTPUT, args, kwargs), + models.NO_INPUT_AND_NO_OUTPUT, + [], + plugins, + ) + + @overload + async def no_input_and_output( + self, + request: models.NoInputAndOutputInput | models.NoInputAndOutputInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.NoInputAndOutputOutput: ... + + @overload + async def no_input_and_output( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.NoInputAndOutputInputDict], + ) -> models.NoInputAndOutputOutput: + """ + The example tests how requests and responses are serialized when there's + no request payload or response members. + + While this should be rare, code generators must support this. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def no_input_and_output( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.NoInputAndOutputOutput: + return await self._invoke( + self._select_input(models.NO_INPUT_AND_OUTPUT, args, kwargs), + models.NO_INPUT_AND_OUTPUT, + [], + plugins, + ) + + @overload + async def put_with_content_encoding( + self, + request: models.PutWithContentEncodingInput + | models.PutWithContentEncodingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.PutWithContentEncodingOutput: ... + + @overload + async def put_with_content_encoding( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.PutWithContentEncodingInputDict], + ) -> models.PutWithContentEncodingOutput: + """ + Invokes the PutWithContentEncoding operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def put_with_content_encoding( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.PutWithContentEncodingOutput: + return await self._invoke( + self._select_input(models.PUT_WITH_CONTENT_ENCODING, args, kwargs), + models.PUT_WITH_CONTENT_ENCODING, + [], + plugins, + ) + + @overload + async def query_idempotency_token_auto_fill( + self, + request: models.QueryIdempotencyTokenAutoFillInput + | models.QueryIdempotencyTokenAutoFillInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.QueryIdempotencyTokenAutoFillOutput: ... + + @overload + async def query_idempotency_token_auto_fill( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.QueryIdempotencyTokenAutoFillInputDict], + ) -> models.QueryIdempotencyTokenAutoFillOutput: + """ + Automatically adds idempotency tokens. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def query_idempotency_token_auto_fill( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.QueryIdempotencyTokenAutoFillOutput: + return await self._invoke( + self._select_input(models.QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL, args, kwargs), + models.QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL, + [], + plugins, + ) + + @overload + async def query_lists( + self, + request: models.QueryListsInput | models.QueryListsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.QueryListsOutput: ... + + @overload + async def query_lists( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.QueryListsInputDict], + ) -> models.QueryListsOutput: + """ + This test serializes simple and complex lists. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def query_lists( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.QueryListsOutput: + return await self._invoke( + self._select_input(models.QUERY_LISTS, args, kwargs), + models.QUERY_LISTS, + [], + plugins, + ) + + @overload + async def query_maps( + self, + request: models.QueryMapsInput | models.QueryMapsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.QueryMapsOutput: ... + + @overload + async def query_maps( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.QueryMapsInputDict], + ) -> models.QueryMapsOutput: + """ + This test serializes simple and complex maps. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def query_maps( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.QueryMapsOutput: + return await self._invoke( + self._select_input(models.QUERY_MAPS, args, kwargs), + models.QUERY_MAPS, + [], + plugins, + ) + + @overload + async def query_timestamps( + self, + request: models.QueryTimestampsInput | models.QueryTimestampsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.QueryTimestampsOutput: ... + + @overload + async def query_timestamps( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.QueryTimestampsInputDict], + ) -> models.QueryTimestampsOutput: + """ + This test serializes timestamps. + + 1. Timestamps are serialized as RFC 3339 date-time values by default. + 2. A timestampFormat trait on a member changes the format. + 3. A timestampFormat trait on the shape targeted by the member changes + the format. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def query_timestamps( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.QueryTimestampsOutput: + return await self._invoke( + self._select_input(models.QUERY_TIMESTAMPS, args, kwargs), + models.QUERY_TIMESTAMPS, + [], + plugins, + ) + + @overload + async def recursive_xml_shapes( + self, + request: models.RecursiveXmlShapesInput | models.RecursiveXmlShapesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.RecursiveXmlShapesOutput: ... + + @overload + async def recursive_xml_shapes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.RecursiveXmlShapesInputDict], + ) -> models.RecursiveXmlShapesOutput: + """ + Recursive shapes + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def recursive_xml_shapes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.RecursiveXmlShapesOutput: + return await self._invoke( + self._select_input(models.RECURSIVE_XML_SHAPES, args, kwargs), + models.RECURSIVE_XML_SHAPES, + [], + plugins, + ) + + @overload + async def simple_input_params( + self, + request: models.SimpleInputParamsInput | models.SimpleInputParamsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.SimpleInputParamsOutput: ... + + @overload + async def simple_input_params( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.SimpleInputParamsInputDict], + ) -> models.SimpleInputParamsOutput: + """ + This test serializes strings, numbers, and boolean values. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def simple_input_params( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.SimpleInputParamsOutput: + return await self._invoke( + self._select_input(models.SIMPLE_INPUT_PARAMS, args, kwargs), + models.SIMPLE_INPUT_PARAMS, + [], + plugins, + ) + + @overload + async def simple_scalar_xml_properties( + self, + request: models.SimpleScalarXmlPropertiesInput + | models.SimpleScalarXmlPropertiesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.SimpleScalarXmlPropertiesOutput: ... + + @overload + async def simple_scalar_xml_properties( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.SimpleScalarXmlPropertiesInputDict], + ) -> models.SimpleScalarXmlPropertiesOutput: + """ + Invokes the SimpleScalarXmlProperties operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def simple_scalar_xml_properties( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.SimpleScalarXmlPropertiesOutput: + return await self._invoke( + self._select_input(models.SIMPLE_SCALAR_XML_PROPERTIES, args, kwargs), + models.SIMPLE_SCALAR_XML_PROPERTIES, + [], + plugins, + ) + + @overload + async def xml_blobs( + self, + request: models.XmlBlobsInput | models.XmlBlobsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlBlobsOutput2: ... + + @overload + async def xml_blobs( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlBlobsInputDict], + ) -> models.XmlBlobsOutput2: + """ + Blobs are base64 encoded + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_blobs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlBlobsOutput2: + return await self._invoke( + self._select_input(models.XML_BLOBS, args, kwargs), + models.XML_BLOBS, + [], + plugins, + ) + + @overload + async def xml_empty_blobs( + self, + request: models.XmlEmptyBlobsInput | models.XmlEmptyBlobsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlEmptyBlobsOutput: ... + + @overload + async def xml_empty_blobs( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlEmptyBlobsInputDict], + ) -> models.XmlEmptyBlobsOutput: + """ + Invokes the XmlEmptyBlobs operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_empty_blobs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlEmptyBlobsOutput: + return await self._invoke( + self._select_input(models.XML_EMPTY_BLOBS, args, kwargs), + models.XML_EMPTY_BLOBS, + [], + plugins, + ) + + @overload + async def xml_empty_lists( + self, + request: models.XmlEmptyListsInput | models.XmlEmptyListsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlEmptyListsOutput: ... + + @overload + async def xml_empty_lists( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlEmptyListsInputDict], + ) -> models.XmlEmptyListsOutput: + """ + Invokes the XmlEmptyLists operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_empty_lists( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlEmptyListsOutput: + return await self._invoke( + self._select_input(models.XML_EMPTY_LISTS, args, kwargs), + models.XML_EMPTY_LISTS, + [], + plugins, + ) + + @overload + async def xml_empty_maps( + self, + request: models.XmlEmptyMapsInput | models.XmlEmptyMapsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlEmptyMapsOutput: ... + + @overload + async def xml_empty_maps( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlEmptyMapsInputDict], + ) -> models.XmlEmptyMapsOutput: + """ + Invokes the XmlEmptyMaps operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_empty_maps( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlEmptyMapsOutput: + return await self._invoke( + self._select_input(models.XML_EMPTY_MAPS, args, kwargs), + models.XML_EMPTY_MAPS, + [], + plugins, + ) + + @overload + async def xml_enums( + self, + request: models.XmlEnumsInput | models.XmlEnumsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlEnumsOutput: ... + + @overload + async def xml_enums( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlEnumsInputDict], + ) -> models.XmlEnumsOutput: + """ + This example serializes enums as top level properties, in lists, sets, + and maps. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_enums( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlEnumsOutput: + return await self._invoke( + self._select_input(models.XML_ENUMS, args, kwargs), + models.XML_ENUMS, + [], + plugins, + ) + + @overload + async def xml_int_enums( + self, + request: models.XmlIntEnumsInput | models.XmlIntEnumsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlIntEnumsOutput: ... + + @overload + async def xml_int_enums( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlIntEnumsInputDict], + ) -> models.XmlIntEnumsOutput: + """ + This example serializes enums as top level properties, in lists, sets, + and maps. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_int_enums( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlIntEnumsOutput: + return await self._invoke( + self._select_input(models.XML_INT_ENUMS, args, kwargs), + models.XML_INT_ENUMS, + [], + plugins, + ) + + @overload + async def xml_lists( + self, + request: models.XmlListsInput | models.XmlListsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlListsOutput2: ... + + @overload + async def xml_lists( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlListsInputDict], + ) -> models.XmlListsOutput2: + """ + This test case serializes XML lists for the following cases for both + input and output: + + 1. Normal XML lists. + 2. Normal XML sets. + 3. XML lists of lists. + 4. XML lists with @xmlName on its members + 5. Flattened XML lists. + 6. Flattened XML lists with @xmlName. + 7. Lists of structures. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_lists( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlListsOutput2: + return await self._invoke( + self._select_input(models.XML_LISTS, args, kwargs), + models.XML_LISTS, + [], + plugins, + ) + + @overload + async def xml_maps( + self, + request: models.XmlMapsInput | models.XmlMapsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlMapsOutput2: ... + + @overload + async def xml_maps( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlMapsInputDict], + ) -> models.XmlMapsOutput2: + """ + The example tests basic map serialization. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_maps( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlMapsOutput2: + return await self._invoke( + self._select_input(models.XML_MAPS, args, kwargs), + models.XML_MAPS, + [], + plugins, + ) + + @overload + async def xml_maps_xml_name( + self, + request: models.XmlMapsXmlNameInput | models.XmlMapsXmlNameInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlMapsXmlNameOutput: ... + + @overload + async def xml_maps_xml_name( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlMapsXmlNameInputDict], + ) -> models.XmlMapsXmlNameOutput: + """ + Invokes the XmlMapsXmlName operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_maps_xml_name( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlMapsXmlNameOutput: + return await self._invoke( + self._select_input(models.XML_MAPS_XML_NAME, args, kwargs), + models.XML_MAPS_XML_NAME, + [], + plugins, + ) + + @overload + async def xml_namespaces( + self, + request: models.XmlNamespacesInput | models.XmlNamespacesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlNamespacesOutput: ... + + @overload + async def xml_namespaces( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlNamespacesInputDict], + ) -> models.XmlNamespacesOutput: + """ + Invokes the XmlNamespaces operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_namespaces( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlNamespacesOutput: + return await self._invoke( + self._select_input(models.XML_NAMESPACES, args, kwargs), + models.XML_NAMESPACES, + [], + plugins, + ) + + @overload + async def xml_timestamps( + self, + request: models.XmlTimestampsInput | models.XmlTimestampsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlTimestampsOutput: ... + + @overload + async def xml_timestamps( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlTimestampsInputDict], + ) -> models.XmlTimestampsOutput: + """ + This tests how timestamps are serialized, including using the + default format of date-time and various @timestampFormat trait + values. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_timestamps( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlTimestampsOutput: + return await self._invoke( + self._select_input(models.XML_TIMESTAMPS, args, kwargs), + models.XML_TIMESTAMPS, + [], + plugins, + ) + + async def _new_config(self) -> AsyncQueryProtocolConfig: + return await AsyncQueryProtocolConfig.resolve() + + async def _post_setup(self, config: AsyncQueryProtocolConfig) -> None: + if config.aws_credentials_identity_resolver is None: + config_context = config.resolution_context() + config_file = None + profile_name = None + if config_context is not None: + config_file = await config_context.parsed_profiles() + if config_context.profile_source is ConfigSource.OVERRIDE: + profile_name = config_context.profile_name + config.aws_credentials_identity_resolver = await AsyncIdentityChain.create( + AWSCredentialsIdentity, + config_file=config_file, + profile_name=profile_name, + region_override=config.region, + http_client=cast(AsyncHTTPClient | None, config.transport), + ) diff --git a/codegen-output-py/aws-query-client/src/awsquery_client/aio/config.py b/codegen-output-py/aws-query-client/src/awsquery_client/aio/config.py new file mode 100644 index 000000000..be8a8892a --- /dev/null +++ b/codegen-output-py/aws-query-client/src/awsquery_client/aio/config.py @@ -0,0 +1,124 @@ +from collections.abc import Callable +from dataclasses import dataclass, field +from typing import Any, ClassVar, Self, Unpack + +from smithy_aws_core.aio.auth.sigv4 import AsyncSigV4AuthScheme +from smithy_aws_core.aio.config.aws_config import ( + AsyncAwsConfig, + AsyncAwsConfigOverrides, +) +from smithy_aws_core.aio.config.filesystem import AsyncFileSystem +from smithy_aws_core.config.resolvers import EndpointUriResolver +from smithy_aws_core.config.types import FieldSpec +from smithy_aws_core.endpoints import AWS_RULES_EXTENSION +from smithy_aws_core.protocols import AwsQueryClientProtocol +from smithy_core.aio.interfaces import AsyncEndpointResolver +from smithy_core.aio.interfaces.auth import AsyncAuthScheme +from smithy_core.auth import DefaultAuthResolver +from smithy_core.endpoints import BddEndpointResolver +from smithy_core.interceptors import Interceptor +from smithy_core.interfaces import ( + ClientProtocol, + EndpointResolver, + ProtocolConstructor, + ProtocolSettings, +) +from smithy_core.interfaces.auth import AuthSchemeResolver +from smithy_core.shapes import ShapeID +from smithy_http.aio.aiohttp import AIOHTTPClient + +from awsquery_client._private.endpoints import BDD +from awsquery_client._private.schemas import AWS_QUERY + +_PROTOCOL_SETTINGS = ProtocolSettings( + namespace="aws.protocoltests.query", + service_target="AwsQuery", + version="2020-01-08", + xml_namespace="https://example.com/", + service_schema=AWS_QUERY, +) + + +class _AsyncQueryProtocolConfigOverrides(AsyncAwsConfigOverrides, total=False): + "Explicit field values AsyncQueryProtocolConfig.resolve accepts." + + endpoint_resolver: EndpointResolver | AsyncEndpointResolver | None + protocol: ( + ClientProtocol[Any, Any] | ProtocolConstructor[ClientProtocol[Any, Any]] | None + ) + auth_schemes: dict[ShapeID, AsyncAuthScheme[Any, Any, Any, Any]] | None + auth_scheme_resolver: AuthSchemeResolver | None + + +@dataclass(kw_only=True, repr=False, init=False) +class AsyncQueryProtocolConfig(AsyncAwsConfig): + "Configuration for AsyncQueryProtocolClient." + + interceptors: list[Interceptor[Any, Any, Any, Any]] = field( + default_factory=list[Interceptor[Any, Any, Any, Any]] + ) + "Hooks called during the execution of a request." + + endpoint_resolver: EndpointResolver | AsyncEndpointResolver | None = None + "Resolves the endpoint of each operation." + + protocol: ClientProtocol[Any, Any] | None = None + "Serializes requests and deserializes responses." + + auth_schemes: dict[ShapeID, AsyncAuthScheme[Any, Any, Any, Any]] | None = None + "Auth schemes by auth scheme ID." + + auth_scheme_resolver: AuthSchemeResolver | None = None + "Determines the auth scheme for each operation." + + _FIELDS: ClassVar[dict[str, FieldSpec]] = { + **AsyncAwsConfig._FIELDS, + "endpoint_uri": FieldSpec( + default=None, resolver=EndpointUriResolver("query_protocol").program + ), + "endpoint_resolver": FieldSpec( + default_factory=lambda: BddEndpointResolver( + BDD, extensions=[AWS_RULES_EXTENSION] + ) + ), + "protocol": FieldSpec( + default_factory=lambda: AwsQueryClientProtocol(_PROTOCOL_SETTINGS), + converter=lambda p: p(_PROTOCOL_SETTINGS) if isinstance(p, type) else p, + ), + "auth_schemes": FieldSpec( + default_factory=lambda: { + ShapeID("aws.auth#sigv4"): AsyncSigV4AuthScheme(service="awsquery") + } + ), + "auth_scheme_resolver": FieldSpec(default_factory=DefaultAuthResolver), + "transport": FieldSpec(default_factory=lambda: AIOHTTPClient()), + } + + def set_auth_scheme(self, scheme: AsyncAuthScheme[Any, Any, Any, Any]) -> None: + "Set an auth scheme under its scheme ID." + auth_schemes = dict(self.auth_schemes or {}) + auth_schemes[scheme.scheme_id] = scheme + self.auth_schemes = auth_schemes + + @classmethod + async def resolve( # pyright: ignore[reportIncompatibleMethodOverride] + cls, + *, + profile: str | None = None, + fs: AsyncFileSystem | None = None, + config_file_path: str | None = None, + credentials_file_path: str | None = None, + **overrides: Unpack[_AsyncQueryProtocolConfigOverrides], + ) -> Self: + "Resolve the config from overrides, the environment, and config files." + return await cls._resolve( + profile=profile, + fs=fs, + config_file_path=config_file_path, + credentials_file_path=credentials_file_path, + overrides=overrides, + ) + + +type Plugin = Callable[[AsyncQueryProtocolConfig], None] +"A callable that customizes the client configuration." diff --git a/codegen-output-py/aws-query-client/src/awsquery_client/aio/user_agent.py b/codegen-output-py/aws-query-client/src/awsquery_client/aio/user_agent.py new file mode 100644 index 000000000..ce746d3d0 --- /dev/null +++ b/codegen-output-py/aws-query-client/src/awsquery_client/aio/user_agent.py @@ -0,0 +1,16 @@ +from smithy_aws_core.interceptors.user_agent import UserAgentInterceptor + +from awsquery_client import __version__ +from awsquery_client.aio.config import AsyncQueryProtocolConfig + + +def aws_user_agent_plugin(config: AsyncQueryProtocolConfig) -> None: + "Send the AWS user agent with every request." + config.interceptors.append( + UserAgentInterceptor( + ua_suffix=config.user_agent_extra, + ua_app_id=config.sdk_ua_app_id, + sdk_version=__version__, + service_id="Query_Protocol", + ) + ) diff --git a/codegen-output-py/aws-query-client/src/awsquery_client/client.py b/codegen-output-py/aws-query-client/src/awsquery_client/client.py new file mode 100644 index 000000000..e4a884427 --- /dev/null +++ b/codegen-output-py/aws-query-client/src/awsquery_client/client.py @@ -0,0 +1,1209 @@ +from __future__ import annotations + +from typing import Unpack, cast, overload + +from smithy_aws_core.config.types import ConfigSource +from smithy_aws_core.identity.chain.resolver import IdentityChain +from smithy_aws_core.identity.components import AWSCredentialsIdentity +from smithy_core.client import Client +from smithy_http.interfaces import HTTPClient +from smithy_http.plugins import user_agent_plugin + +from awsquery_client import models +from awsquery_client.config import Plugin, QueryProtocolConfig +from awsquery_client.user_agent import aws_user_agent_plugin + + +class QueryProtocolClient(Client[QueryProtocolConfig]): + "A query service that sends query requests and XML responses." + + _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + + @overload + def datetime_offsets( + self, + request: models.DatetimeOffsetsInput | models.DatetimeOffsetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.DatetimeOffsetsOutput: ... + + @overload + def datetime_offsets( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.DatetimeOffsetsInputDict], + ) -> models.DatetimeOffsetsOutput: + """ + Invokes the DatetimeOffsets operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def datetime_offsets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.DatetimeOffsetsOutput: + return self._invoke( + self._select_input(models.DATETIME_OFFSETS, args, kwargs), + models.DATETIME_OFFSETS, + [], + plugins, + ) + + @overload + def empty_input_and_empty_output( + self, + request: models.EmptyInputAndEmptyOutputInput + | models.EmptyInputAndEmptyOutputInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.EmptyInputAndEmptyOutputOutput: ... + + @overload + def empty_input_and_empty_output( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.EmptyInputAndEmptyOutputInputDict], + ) -> models.EmptyInputAndEmptyOutputOutput: + """ + The example tests how requests and responses are serialized when there's + no request or response members. + + While this should be rare, code generators must support this. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def empty_input_and_empty_output( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.EmptyInputAndEmptyOutputOutput: + return self._invoke( + self._select_input(models.EMPTY_INPUT_AND_EMPTY_OUTPUT, args, kwargs), + models.EMPTY_INPUT_AND_EMPTY_OUTPUT, + [], + plugins, + ) + + @overload + def endpoint_operation( + self, + request: models.EndpointOperationInput | models.EndpointOperationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.EndpointOperationOutput: ... + + @overload + def endpoint_operation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.EndpointOperationInputDict], + ) -> models.EndpointOperationOutput: + """ + Invokes the EndpointOperation operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def endpoint_operation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.EndpointOperationOutput: + return self._invoke( + self._select_input(models.ENDPOINT_OPERATION, args, kwargs), + models.ENDPOINT_OPERATION, + [], + plugins, + ) + + @overload + def endpoint_with_host_label_operation( + self, + request: models.EndpointWithHostLabelOperationInput + | models.EndpointWithHostLabelOperationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.EndpointWithHostLabelOperationOutput: ... + + @overload + def endpoint_with_host_label_operation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.EndpointWithHostLabelOperationInputDict], + ) -> models.EndpointWithHostLabelOperationOutput: + """ + Invokes the EndpointWithHostLabelOperation operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def endpoint_with_host_label_operation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.EndpointWithHostLabelOperationOutput: + return self._invoke( + self._select_input(models.ENDPOINT_WITH_HOST_LABEL_OPERATION, args, kwargs), + models.ENDPOINT_WITH_HOST_LABEL_OPERATION, + [], + plugins, + ) + + @overload + def flattened_xml_map( + self, + request: models.FlattenedXmlMapInput | models.FlattenedXmlMapInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.FlattenedXmlMapOutput: ... + + @overload + def flattened_xml_map( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.FlattenedXmlMapInputDict], + ) -> models.FlattenedXmlMapOutput: + """ + Flattened maps + + :param plugins: Callables that change the configuration for this call + only. + """ + + def flattened_xml_map( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.FlattenedXmlMapOutput: + return self._invoke( + self._select_input(models.FLATTENED_XML_MAP, args, kwargs), + models.FLATTENED_XML_MAP, + [], + plugins, + ) + + @overload + def flattened_xml_map_with_xml_name( + self, + request: models.FlattenedXmlMapWithXmlNameInput + | models.FlattenedXmlMapWithXmlNameInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.FlattenedXmlMapWithXmlNameOutput: ... + + @overload + def flattened_xml_map_with_xml_name( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.FlattenedXmlMapWithXmlNameInputDict], + ) -> models.FlattenedXmlMapWithXmlNameOutput: + """ + Flattened maps with @xmlName + + :param plugins: Callables that change the configuration for this call + only. + """ + + def flattened_xml_map_with_xml_name( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.FlattenedXmlMapWithXmlNameOutput: + return self._invoke( + self._select_input(models.FLATTENED_XML_MAP_WITH_XML_NAME, args, kwargs), + models.FLATTENED_XML_MAP_WITH_XML_NAME, + [], + plugins, + ) + + @overload + def flattened_xml_map_with_xml_namespace( + self, + request: models.FlattenedXmlMapWithXmlNamespaceInput + | models.FlattenedXmlMapWithXmlNamespaceInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.FlattenedXmlMapWithXmlNamespaceOutput: ... + + @overload + def flattened_xml_map_with_xml_namespace( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.FlattenedXmlMapWithXmlNamespaceInputDict], + ) -> models.FlattenedXmlMapWithXmlNamespaceOutput: + """ + Flattened maps with @xmlNamespace and @xmlName + + :param plugins: Callables that change the configuration for this call + only. + """ + + def flattened_xml_map_with_xml_namespace( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.FlattenedXmlMapWithXmlNamespaceOutput: + return self._invoke( + self._select_input( + models.FLATTENED_XML_MAP_WITH_XML_NAMESPACE, args, kwargs + ), + models.FLATTENED_XML_MAP_WITH_XML_NAMESPACE, + [], + plugins, + ) + + @overload + def fractional_seconds( + self, + request: models.FractionalSecondsInput | models.FractionalSecondsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.FractionalSecondsOutput: ... + + @overload + def fractional_seconds( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.FractionalSecondsInputDict], + ) -> models.FractionalSecondsOutput: + """ + Invokes the FractionalSeconds operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def fractional_seconds( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.FractionalSecondsOutput: + return self._invoke( + self._select_input(models.FRACTIONAL_SECONDS, args, kwargs), + models.FRACTIONAL_SECONDS, + [], + plugins, + ) + + @overload + def greeting_with_errors( + self, + request: models.GreetingWithErrorsInput | models.GreetingWithErrorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.GreetingWithErrorsOutput: ... + + @overload + def greeting_with_errors( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.GreetingWithErrorsInputDict], + ) -> models.GreetingWithErrorsOutput: + """ + This operation has three possible return values: + + 1. A successful response in the form of GreetingWithErrorsOutput + 2. An InvalidGreeting error. + 3. A BadRequest error. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def greeting_with_errors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.GreetingWithErrorsOutput: + return self._invoke( + self._select_input(models.GREETING_WITH_ERRORS, args, kwargs), + models.GREETING_WITH_ERRORS, + [], + plugins, + ) + + @overload + def host_with_path_operation( + self, + request: models.HostWithPathOperationInput + | models.HostWithPathOperationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HostWithPathOperationOutput: ... + + @overload + def host_with_path_operation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HostWithPathOperationInputDict], + ) -> models.HostWithPathOperationOutput: + """ + Invokes the HostWithPathOperation operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def host_with_path_operation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HostWithPathOperationOutput: + return self._invoke( + self._select_input(models.HOST_WITH_PATH_OPERATION, args, kwargs), + models.HOST_WITH_PATH_OPERATION, + [], + plugins, + ) + + @overload + def ignores_wrapping_xml_name( + self, + request: models.IgnoresWrappingXmlNameInput + | models.IgnoresWrappingXmlNameInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.IgnoresWrappingXmlNameOutput: ... + + @overload + def ignores_wrapping_xml_name( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.IgnoresWrappingXmlNameInputDict], + ) -> models.IgnoresWrappingXmlNameOutput: + """ + The xmlName trait on the output structure is ignored in AWS Query. + + The wrapping element is always operation name + "Response", and + inside of that wrapper is another wrapper named operation name + + "Result". + + :param plugins: Callables that change the configuration for this call + only. + """ + + def ignores_wrapping_xml_name( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.IgnoresWrappingXmlNameOutput: + return self._invoke( + self._select_input(models.IGNORES_WRAPPING_XML_NAME, args, kwargs), + models.IGNORES_WRAPPING_XML_NAME, + [], + plugins, + ) + + @overload + def nested_structures( + self, + request: models.NestedStructuresInput | models.NestedStructuresInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.NestedStructuresOutput: ... + + @overload + def nested_structures( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.NestedStructuresInputDict], + ) -> models.NestedStructuresOutput: + """ + This test serializes nested and recursive structure members. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def nested_structures( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.NestedStructuresOutput: + return self._invoke( + self._select_input(models.NESTED_STRUCTURES, args, kwargs), + models.NESTED_STRUCTURES, + [], + plugins, + ) + + @overload + def no_input_and_no_output( + self, + request: models.NoInputAndNoOutputInput | models.NoInputAndNoOutputInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.NoInputAndNoOutputOutput: ... + + @overload + def no_input_and_no_output( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.NoInputAndNoOutputInputDict], + ) -> models.NoInputAndNoOutputOutput: + """ + The example tests how requests and responses are serialized when there's + no request or response payload because the operation has no input or + output. + + While this should be rare, code generators must support this. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def no_input_and_no_output( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.NoInputAndNoOutputOutput: + return self._invoke( + self._select_input(models.NO_INPUT_AND_NO_OUTPUT, args, kwargs), + models.NO_INPUT_AND_NO_OUTPUT, + [], + plugins, + ) + + @overload + def no_input_and_output( + self, + request: models.NoInputAndOutputInput | models.NoInputAndOutputInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.NoInputAndOutputOutput: ... + + @overload + def no_input_and_output( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.NoInputAndOutputInputDict], + ) -> models.NoInputAndOutputOutput: + """ + The example tests how requests and responses are serialized when there's + no request payload or response members. + + While this should be rare, code generators must support this. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def no_input_and_output( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.NoInputAndOutputOutput: + return self._invoke( + self._select_input(models.NO_INPUT_AND_OUTPUT, args, kwargs), + models.NO_INPUT_AND_OUTPUT, + [], + plugins, + ) + + @overload + def put_with_content_encoding( + self, + request: models.PutWithContentEncodingInput + | models.PutWithContentEncodingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.PutWithContentEncodingOutput: ... + + @overload + def put_with_content_encoding( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.PutWithContentEncodingInputDict], + ) -> models.PutWithContentEncodingOutput: + """ + Invokes the PutWithContentEncoding operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def put_with_content_encoding( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.PutWithContentEncodingOutput: + return self._invoke( + self._select_input(models.PUT_WITH_CONTENT_ENCODING, args, kwargs), + models.PUT_WITH_CONTENT_ENCODING, + [], + plugins, + ) + + @overload + def query_idempotency_token_auto_fill( + self, + request: models.QueryIdempotencyTokenAutoFillInput + | models.QueryIdempotencyTokenAutoFillInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.QueryIdempotencyTokenAutoFillOutput: ... + + @overload + def query_idempotency_token_auto_fill( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.QueryIdempotencyTokenAutoFillInputDict], + ) -> models.QueryIdempotencyTokenAutoFillOutput: + """ + Automatically adds idempotency tokens. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def query_idempotency_token_auto_fill( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.QueryIdempotencyTokenAutoFillOutput: + return self._invoke( + self._select_input(models.QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL, args, kwargs), + models.QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL, + [], + plugins, + ) + + @overload + def query_lists( + self, + request: models.QueryListsInput | models.QueryListsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.QueryListsOutput: ... + + @overload + def query_lists( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.QueryListsInputDict], + ) -> models.QueryListsOutput: + """ + This test serializes simple and complex lists. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def query_lists( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.QueryListsOutput: + return self._invoke( + self._select_input(models.QUERY_LISTS, args, kwargs), + models.QUERY_LISTS, + [], + plugins, + ) + + @overload + def query_maps( + self, + request: models.QueryMapsInput | models.QueryMapsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.QueryMapsOutput: ... + + @overload + def query_maps( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.QueryMapsInputDict], + ) -> models.QueryMapsOutput: + """ + This test serializes simple and complex maps. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def query_maps( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.QueryMapsOutput: + return self._invoke( + self._select_input(models.QUERY_MAPS, args, kwargs), + models.QUERY_MAPS, + [], + plugins, + ) + + @overload + def query_timestamps( + self, + request: models.QueryTimestampsInput | models.QueryTimestampsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.QueryTimestampsOutput: ... + + @overload + def query_timestamps( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.QueryTimestampsInputDict], + ) -> models.QueryTimestampsOutput: + """ + This test serializes timestamps. + + 1. Timestamps are serialized as RFC 3339 date-time values by default. + 2. A timestampFormat trait on a member changes the format. + 3. A timestampFormat trait on the shape targeted by the member changes + the format. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def query_timestamps( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.QueryTimestampsOutput: + return self._invoke( + self._select_input(models.QUERY_TIMESTAMPS, args, kwargs), + models.QUERY_TIMESTAMPS, + [], + plugins, + ) + + @overload + def recursive_xml_shapes( + self, + request: models.RecursiveXmlShapesInput | models.RecursiveXmlShapesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.RecursiveXmlShapesOutput: ... + + @overload + def recursive_xml_shapes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.RecursiveXmlShapesInputDict], + ) -> models.RecursiveXmlShapesOutput: + """ + Recursive shapes + + :param plugins: Callables that change the configuration for this call + only. + """ + + def recursive_xml_shapes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.RecursiveXmlShapesOutput: + return self._invoke( + self._select_input(models.RECURSIVE_XML_SHAPES, args, kwargs), + models.RECURSIVE_XML_SHAPES, + [], + plugins, + ) + + @overload + def simple_input_params( + self, + request: models.SimpleInputParamsInput | models.SimpleInputParamsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.SimpleInputParamsOutput: ... + + @overload + def simple_input_params( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.SimpleInputParamsInputDict], + ) -> models.SimpleInputParamsOutput: + """ + This test serializes strings, numbers, and boolean values. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def simple_input_params( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.SimpleInputParamsOutput: + return self._invoke( + self._select_input(models.SIMPLE_INPUT_PARAMS, args, kwargs), + models.SIMPLE_INPUT_PARAMS, + [], + plugins, + ) + + @overload + def simple_scalar_xml_properties( + self, + request: models.SimpleScalarXmlPropertiesInput + | models.SimpleScalarXmlPropertiesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.SimpleScalarXmlPropertiesOutput: ... + + @overload + def simple_scalar_xml_properties( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.SimpleScalarXmlPropertiesInputDict], + ) -> models.SimpleScalarXmlPropertiesOutput: + """ + Invokes the SimpleScalarXmlProperties operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def simple_scalar_xml_properties( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.SimpleScalarXmlPropertiesOutput: + return self._invoke( + self._select_input(models.SIMPLE_SCALAR_XML_PROPERTIES, args, kwargs), + models.SIMPLE_SCALAR_XML_PROPERTIES, + [], + plugins, + ) + + @overload + def xml_blobs( + self, + request: models.XmlBlobsInput | models.XmlBlobsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlBlobsOutput2: ... + + @overload + def xml_blobs( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlBlobsInputDict], + ) -> models.XmlBlobsOutput2: + """ + Blobs are base64 encoded + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_blobs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlBlobsOutput2: + return self._invoke( + self._select_input(models.XML_BLOBS, args, kwargs), + models.XML_BLOBS, + [], + plugins, + ) + + @overload + def xml_empty_blobs( + self, + request: models.XmlEmptyBlobsInput | models.XmlEmptyBlobsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlEmptyBlobsOutput: ... + + @overload + def xml_empty_blobs( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlEmptyBlobsInputDict], + ) -> models.XmlEmptyBlobsOutput: + """ + Invokes the XmlEmptyBlobs operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_empty_blobs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlEmptyBlobsOutput: + return self._invoke( + self._select_input(models.XML_EMPTY_BLOBS, args, kwargs), + models.XML_EMPTY_BLOBS, + [], + plugins, + ) + + @overload + def xml_empty_lists( + self, + request: models.XmlEmptyListsInput | models.XmlEmptyListsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlEmptyListsOutput: ... + + @overload + def xml_empty_lists( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlEmptyListsInputDict], + ) -> models.XmlEmptyListsOutput: + """ + Invokes the XmlEmptyLists operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_empty_lists( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlEmptyListsOutput: + return self._invoke( + self._select_input(models.XML_EMPTY_LISTS, args, kwargs), + models.XML_EMPTY_LISTS, + [], + plugins, + ) + + @overload + def xml_empty_maps( + self, + request: models.XmlEmptyMapsInput | models.XmlEmptyMapsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlEmptyMapsOutput: ... + + @overload + def xml_empty_maps( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlEmptyMapsInputDict], + ) -> models.XmlEmptyMapsOutput: + """ + Invokes the XmlEmptyMaps operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_empty_maps( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlEmptyMapsOutput: + return self._invoke( + self._select_input(models.XML_EMPTY_MAPS, args, kwargs), + models.XML_EMPTY_MAPS, + [], + plugins, + ) + + @overload + def xml_enums( + self, + request: models.XmlEnumsInput | models.XmlEnumsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlEnumsOutput: ... + + @overload + def xml_enums( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlEnumsInputDict], + ) -> models.XmlEnumsOutput: + """ + This example serializes enums as top level properties, in lists, sets, + and maps. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_enums( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlEnumsOutput: + return self._invoke( + self._select_input(models.XML_ENUMS, args, kwargs), + models.XML_ENUMS, + [], + plugins, + ) + + @overload + def xml_int_enums( + self, + request: models.XmlIntEnumsInput | models.XmlIntEnumsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlIntEnumsOutput: ... + + @overload + def xml_int_enums( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlIntEnumsInputDict], + ) -> models.XmlIntEnumsOutput: + """ + This example serializes enums as top level properties, in lists, sets, + and maps. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_int_enums( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlIntEnumsOutput: + return self._invoke( + self._select_input(models.XML_INT_ENUMS, args, kwargs), + models.XML_INT_ENUMS, + [], + plugins, + ) + + @overload + def xml_lists( + self, + request: models.XmlListsInput | models.XmlListsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlListsOutput2: ... + + @overload + def xml_lists( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlListsInputDict], + ) -> models.XmlListsOutput2: + """ + This test case serializes XML lists for the following cases for both + input and output: + + 1. Normal XML lists. + 2. Normal XML sets. + 3. XML lists of lists. + 4. XML lists with @xmlName on its members + 5. Flattened XML lists. + 6. Flattened XML lists with @xmlName. + 7. Lists of structures. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_lists( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlListsOutput2: + return self._invoke( + self._select_input(models.XML_LISTS, args, kwargs), + models.XML_LISTS, + [], + plugins, + ) + + @overload + def xml_maps( + self, + request: models.XmlMapsInput | models.XmlMapsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlMapsOutput2: ... + + @overload + def xml_maps( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlMapsInputDict], + ) -> models.XmlMapsOutput2: + """ + The example tests basic map serialization. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_maps( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlMapsOutput2: + return self._invoke( + self._select_input(models.XML_MAPS, args, kwargs), + models.XML_MAPS, + [], + plugins, + ) + + @overload + def xml_maps_xml_name( + self, + request: models.XmlMapsXmlNameInput | models.XmlMapsXmlNameInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlMapsXmlNameOutput: ... + + @overload + def xml_maps_xml_name( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlMapsXmlNameInputDict], + ) -> models.XmlMapsXmlNameOutput: + """ + Invokes the XmlMapsXmlName operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_maps_xml_name( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlMapsXmlNameOutput: + return self._invoke( + self._select_input(models.XML_MAPS_XML_NAME, args, kwargs), + models.XML_MAPS_XML_NAME, + [], + plugins, + ) + + @overload + def xml_namespaces( + self, + request: models.XmlNamespacesInput | models.XmlNamespacesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlNamespacesOutput: ... + + @overload + def xml_namespaces( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlNamespacesInputDict], + ) -> models.XmlNamespacesOutput: + """ + Invokes the XmlNamespaces operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_namespaces( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlNamespacesOutput: + return self._invoke( + self._select_input(models.XML_NAMESPACES, args, kwargs), + models.XML_NAMESPACES, + [], + plugins, + ) + + @overload + def xml_timestamps( + self, + request: models.XmlTimestampsInput | models.XmlTimestampsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlTimestampsOutput: ... + + @overload + def xml_timestamps( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlTimestampsInputDict], + ) -> models.XmlTimestampsOutput: + """ + This tests how timestamps are serialized, including using the + default format of date-time and various @timestampFormat trait + values. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_timestamps( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlTimestampsOutput: + return self._invoke( + self._select_input(models.XML_TIMESTAMPS, args, kwargs), + models.XML_TIMESTAMPS, + [], + plugins, + ) + + def _new_config(self) -> QueryProtocolConfig: + return QueryProtocolConfig.resolve() + + def _post_setup(self, config: QueryProtocolConfig) -> None: + if config.aws_credentials_identity_resolver is None: + config_context = config.resolution_context() + config_file = None + profile_name = None + if config_context is not None: + config_file = config_context.parsed_profiles() + if config_context.profile_source is ConfigSource.OVERRIDE: + profile_name = config_context.profile_name + config.aws_credentials_identity_resolver = IdentityChain.create( + AWSCredentialsIdentity, + config_file=config_file, + profile_name=profile_name, + region_override=config.region, + http_client=cast(HTTPClient | None, config.transport), + ) diff --git a/codegen-output-py/aws-query-client/src/awsquery_client/config.py b/codegen-output-py/aws-query-client/src/awsquery_client/config.py new file mode 100644 index 000000000..8e73bcef4 --- /dev/null +++ b/codegen-output-py/aws-query-client/src/awsquery_client/config.py @@ -0,0 +1,119 @@ +from collections.abc import Callable +from dataclasses import dataclass, field +from typing import Any, ClassVar, Self, Unpack + +from smithy_aws_core.auth.sigv4 import SigV4AuthScheme +from smithy_aws_core.config.aws_config import AwsConfig, AwsConfigOverrides +from smithy_aws_core.config.filesystem import FileSystem +from smithy_aws_core.config.resolvers import EndpointUriResolver +from smithy_aws_core.config.types import FieldSpec +from smithy_aws_core.endpoints import AWS_RULES_EXTENSION +from smithy_aws_core.protocols import AwsQueryClientProtocol +from smithy_core.auth import DefaultAuthResolver +from smithy_core.endpoints import BddEndpointResolver +from smithy_core.interceptors import Interceptor +from smithy_core.interfaces import ( + ClientProtocol, + EndpointResolver, + ProtocolConstructor, + ProtocolSettings, +) +from smithy_core.interfaces.auth import AuthScheme, AuthSchemeResolver +from smithy_core.shapes import ShapeID +from smithy_http.urllib3 import Urllib3HTTPClient + +from awsquery_client._private.endpoints import BDD +from awsquery_client._private.schemas import AWS_QUERY + +_PROTOCOL_SETTINGS = ProtocolSettings( + namespace="aws.protocoltests.query", + service_target="AwsQuery", + version="2020-01-08", + xml_namespace="https://example.com/", + service_schema=AWS_QUERY, +) + + +class _QueryProtocolConfigOverrides(AwsConfigOverrides, total=False): + "Explicit field values QueryProtocolConfig.resolve accepts." + + endpoint_resolver: EndpointResolver | None + protocol: ( + ClientProtocol[Any, Any] | ProtocolConstructor[ClientProtocol[Any, Any]] | None + ) + auth_schemes: dict[ShapeID, AuthScheme[Any, Any, Any, Any]] | None + auth_scheme_resolver: AuthSchemeResolver | None + + +@dataclass(kw_only=True, repr=False, init=False) +class QueryProtocolConfig(AwsConfig): + "Configuration for QueryProtocolClient." + + interceptors: list[Interceptor[Any, Any, Any, Any]] = field( + default_factory=list[Interceptor[Any, Any, Any, Any]] + ) + "Hooks called during the execution of a request." + + endpoint_resolver: EndpointResolver | None = None + "Resolves the endpoint of each operation." + + protocol: ClientProtocol[Any, Any] | None = None + "Serializes requests and deserializes responses." + + auth_schemes: dict[ShapeID, AuthScheme[Any, Any, Any, Any]] | None = None + "Auth schemes by auth scheme ID." + + auth_scheme_resolver: AuthSchemeResolver | None = None + "Determines the auth scheme for each operation." + + _FIELDS: ClassVar[dict[str, FieldSpec]] = { + **AwsConfig._FIELDS, + "endpoint_uri": FieldSpec( + default=None, resolver=EndpointUriResolver("query_protocol").program + ), + "endpoint_resolver": FieldSpec( + default_factory=lambda: BddEndpointResolver( + BDD, extensions=[AWS_RULES_EXTENSION] + ) + ), + "protocol": FieldSpec( + default_factory=lambda: AwsQueryClientProtocol(_PROTOCOL_SETTINGS), + converter=lambda p: p(_PROTOCOL_SETTINGS) if isinstance(p, type) else p, + ), + "auth_schemes": FieldSpec( + default_factory=lambda: { + ShapeID("aws.auth#sigv4"): SigV4AuthScheme(service="awsquery") + } + ), + "auth_scheme_resolver": FieldSpec(default_factory=DefaultAuthResolver), + "transport": FieldSpec(default_factory=lambda: Urllib3HTTPClient()), + } + + def set_auth_scheme(self, scheme: AuthScheme[Any, Any, Any, Any]) -> None: + "Set an auth scheme under its scheme ID." + auth_schemes = dict(self.auth_schemes or {}) + auth_schemes[scheme.scheme_id] = scheme + self.auth_schemes = auth_schemes + + @classmethod + def resolve( # pyright: ignore[reportIncompatibleMethodOverride] + cls, + *, + profile: str | None = None, + fs: FileSystem | None = None, + config_file_path: str | None = None, + credentials_file_path: str | None = None, + **overrides: Unpack[_QueryProtocolConfigOverrides], + ) -> Self: + "Resolve the config from overrides, the environment, and config files." + return cls._resolve( + profile=profile, + fs=fs, + config_file_path=config_file_path, + credentials_file_path=credentials_file_path, + overrides=overrides, + ) + + +type Plugin = Callable[[QueryProtocolConfig], None] +"A callable that customizes the client configuration." diff --git a/codegen-output-py/aws-query-client/src/awsquery_client/models.py b/codegen-output-py/aws-query-client/src/awsquery_client/models.py new file mode 100644 index 000000000..428e88186 --- /dev/null +++ b/codegen-output-py/aws-query-client/src/awsquery_client/models.py @@ -0,0 +1,349 @@ +from smithy_core._dynamic_models import ModelRegistry +from smithy_core.exceptions import ModeledError + +from ._private import schemas + + +class ServiceError(ModeledError): + """ + Base error for all errors in the service. + + Some exceptions do not extend from this class, including synthetic, + implicit, and shared exception types. + """ + + +_MODEL_INDEX = { + "ComplexError": "COMPLEX_ERROR", + "ComplexNestedErrorData": "COMPLEX_NESTED_ERROR_DATA", + "CustomCodeError": "CUSTOM_CODE_ERROR", + "DatetimeOffsetsOutput": "DATETIME_OFFSETS_OUTPUT", + "EmptyInputAndEmptyOutputInput": "EMPTY_INPUT_AND_EMPTY_OUTPUT_INPUT", + "EmptyInputAndEmptyOutputOutput": "EMPTY_INPUT_AND_EMPTY_OUTPUT_OUTPUT", + "FlattenedXmlMapOutput": "FLATTENED_XML_MAP_OUTPUT", + "FlattenedXmlMapWithXmlNameOutput": "FLATTENED_XML_MAP_WITH_XML_NAME_OUTPUT", + "FlattenedXmlMapWithXmlNamespaceOutput": "FLATTENED_XML_MAP_WITH_XML_NAMESPACE_OUTPUT", + "FractionalSecondsOutput": "FRACTIONAL_SECONDS_OUTPUT", + "GreetingWithErrorsOutput": "GREETING_WITH_ERRORS_OUTPUT", + "IgnoresWrappingXmlNameOutput": "IGNORES_WRAPPING_XML_NAME_OUTPUT", + "InvalidGreeting": "INVALID_GREETING", + "NestedStructWithList": "NESTED_STRUCT_WITH_LIST", + "NestedStructWithMap": "NESTED_STRUCT_WITH_MAP", + "NestedStructuresInput": "NESTED_STRUCTURES_INPUT", + "NoInputAndOutputInput": "NO_INPUT_AND_OUTPUT_INPUT", + "NoInputAndOutputOutput": "NO_INPUT_AND_OUTPUT_OUTPUT", + "PutWithContentEncodingInput": "PUT_WITH_CONTENT_ENCODING_INPUT", + "QueryIdempotencyTokenAutoFillInput": "QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL_INPUT", + "QueryListsInput": "QUERY_LISTS_INPUT", + "QueryMapsInput": "QUERY_MAPS_INPUT", + "QueryTimestampsInput": "QUERY_TIMESTAMPS_INPUT", + "RecursiveXmlShapesOutput": "RECURSIVE_XML_SHAPES_OUTPUT", + "RecursiveXmlShapesOutputNested1": "RECURSIVE_XML_SHAPES_OUTPUT_NESTED1", + "RecursiveXmlShapesOutputNested2": "RECURSIVE_XML_SHAPES_OUTPUT_NESTED2", + "SimpleInputParamsInput": "SIMPLE_INPUT_PARAMS_INPUT", + "SimpleScalarXmlPropertiesOutput": "SIMPLE_SCALAR_XML_PROPERTIES_OUTPUT", + "StructArg": "STRUCT_ARG", + "StructureListMember": "STRUCTURE_LIST_MEMBER", + "XmlEnumsOutput": "XML_ENUMS_OUTPUT", + "XmlIntEnumsOutput": "XML_INT_ENUMS_OUTPUT", + "XmlMapsXmlNameOutput": "XML_MAPS_XML_NAME_OUTPUT", + "XmlNamespaceNested": "XML_NAMESPACE_NESTED", + "XmlNamespacesOutput": "XML_NAMESPACES_OUTPUT", + "XmlTimestampsOutput": "XML_TIMESTAMPS_OUTPUT", + "FooEnum": "FOO_ENUM", + "GreetingStruct": "GREETING_STRUCT", + "IntegerEnum": "INTEGER_ENUM", + "DatetimeOffsetsInput": "DATETIME_OFFSETS_INPUT", + "EndpointOperationInput": "ENDPOINT_OPERATION_INPUT", + "EndpointOperationOutput": "ENDPOINT_OPERATION_OUTPUT", + "EndpointWithHostLabelOperationInput": "ENDPOINT_WITH_HOST_LABEL_OPERATION_INPUT", + "EndpointWithHostLabelOperationOutput": "ENDPOINT_WITH_HOST_LABEL_OPERATION_OUTPUT", + "FlattenedXmlMapInput": "FLATTENED_XML_MAP_INPUT", + "FlattenedXmlMapWithXmlNameInput": "FLATTENED_XML_MAP_WITH_XML_NAME_INPUT", + "FlattenedXmlMapWithXmlNamespaceInput": "FLATTENED_XML_MAP_WITH_XML_NAMESPACE_INPUT", + "FractionalSecondsInput": "FRACTIONAL_SECONDS_INPUT", + "GreetingWithErrorsInput": "GREETING_WITH_ERRORS_INPUT", + "HostWithPathOperationInput": "HOST_WITH_PATH_OPERATION_INPUT", + "HostWithPathOperationOutput": "HOST_WITH_PATH_OPERATION_OUTPUT", + "IgnoresWrappingXmlNameInput": "IGNORES_WRAPPING_XML_NAME_INPUT", + "NestedStructuresOutput": "NESTED_STRUCTURES_OUTPUT", + "NoInputAndNoOutputInput": "NO_INPUT_AND_NO_OUTPUT_INPUT", + "NoInputAndNoOutputOutput": "NO_INPUT_AND_NO_OUTPUT_OUTPUT", + "PutWithContentEncodingOutput": "PUT_WITH_CONTENT_ENCODING_OUTPUT", + "QueryIdempotencyTokenAutoFillOutput": "QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL_OUTPUT", + "QueryListsOutput": "QUERY_LISTS_OUTPUT", + "QueryMapsOutput": "QUERY_MAPS_OUTPUT", + "QueryTimestampsOutput": "QUERY_TIMESTAMPS_OUTPUT", + "RecursiveXmlShapesInput": "RECURSIVE_XML_SHAPES_INPUT", + "SimpleInputParamsOutput": "SIMPLE_INPUT_PARAMS_OUTPUT", + "SimpleScalarXmlPropertiesInput": "SIMPLE_SCALAR_XML_PROPERTIES_INPUT", + "XmlBlobsInput": "XML_BLOBS_INPUT", + "XmlBlobsOutput2": "XML_BLOBS_OUTPUT2", + "XmlEmptyBlobsInput": "XML_EMPTY_BLOBS_INPUT", + "XmlEmptyBlobsOutput": "XML_EMPTY_BLOBS_OUTPUT", + "XmlEmptyListsInput": "XML_EMPTY_LISTS_INPUT", + "XmlEmptyListsOutput": "XML_EMPTY_LISTS_OUTPUT", + "XmlEmptyMapsInput": "XML_EMPTY_MAPS_INPUT", + "XmlEmptyMapsOutput": "XML_EMPTY_MAPS_OUTPUT", + "XmlEnumsInput": "XML_ENUMS_INPUT", + "XmlIntEnumsInput": "XML_INT_ENUMS_INPUT", + "XmlListsInput": "XML_LISTS_INPUT", + "XmlListsOutput2": "XML_LISTS_OUTPUT2", + "XmlMapsInput": "XML_MAPS_INPUT", + "XmlMapsOutput2": "XML_MAPS_OUTPUT2", + "XmlMapsXmlNameInput": "XML_MAPS_XML_NAME_INPUT", + "XmlNamespacesInput": "XML_NAMESPACES_INPUT", + "XmlTimestampsInput": "XML_TIMESTAMPS_INPUT", +} + +_RENAMES: dict[str, str] = {} + +_TARGET_NAMES: dict[str, str] = {} + +_OPERATIONS: dict[str, tuple[tuple[str, ...], tuple[str, ...]]] = { + "DATETIME_OFFSETS": ( + (), + ("aws.auth#sigv4",), + ), + "EMPTY_INPUT_AND_EMPTY_OUTPUT": ( + (), + ("aws.auth#sigv4",), + ), + "ENDPOINT_OPERATION": ( + (), + ("aws.auth#sigv4",), + ), + "ENDPOINT_WITH_HOST_LABEL_OPERATION": ( + (), + ("aws.auth#sigv4",), + ), + "FLATTENED_XML_MAP": ( + (), + ("aws.auth#sigv4",), + ), + "FLATTENED_XML_MAP_WITH_XML_NAME": ( + (), + ("aws.auth#sigv4",), + ), + "FLATTENED_XML_MAP_WITH_XML_NAMESPACE": ( + (), + ("aws.auth#sigv4",), + ), + "FRACTIONAL_SECONDS": ( + (), + ("aws.auth#sigv4",), + ), + "GREETING_WITH_ERRORS": ( + ( + "aws.protocoltests.query#ComplexError", + "aws.protocoltests.query#CustomCodeError", + "aws.protocoltests.query#InvalidGreeting", + ), + ("aws.auth#sigv4",), + ), + "HOST_WITH_PATH_OPERATION": ( + (), + ("aws.auth#sigv4",), + ), + "IGNORES_WRAPPING_XML_NAME": ( + (), + ("aws.auth#sigv4",), + ), + "NESTED_STRUCTURES": ( + (), + ("aws.auth#sigv4",), + ), + "NO_INPUT_AND_NO_OUTPUT": ( + (), + ("aws.auth#sigv4",), + ), + "NO_INPUT_AND_OUTPUT": ( + (), + ("aws.auth#sigv4",), + ), + "PUT_WITH_CONTENT_ENCODING": ( + (), + ("aws.auth#sigv4",), + ), + "QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL": ( + (), + ("aws.auth#sigv4",), + ), + "QUERY_LISTS": ( + (), + ("aws.auth#sigv4",), + ), + "QUERY_MAPS": ( + (), + ("aws.auth#sigv4",), + ), + "QUERY_TIMESTAMPS": ( + (), + ("aws.auth#sigv4",), + ), + "RECURSIVE_XML_SHAPES": ( + (), + ("aws.auth#sigv4",), + ), + "SIMPLE_INPUT_PARAMS": ( + (), + ("aws.auth#sigv4",), + ), + "SIMPLE_SCALAR_XML_PROPERTIES": ( + (), + ("aws.auth#sigv4",), + ), + "XML_BLOBS": ( + (), + ("aws.auth#sigv4",), + ), + "XML_EMPTY_BLOBS": ( + (), + ("aws.auth#sigv4",), + ), + "XML_EMPTY_LISTS": ( + (), + ("aws.auth#sigv4",), + ), + "XML_EMPTY_MAPS": ( + (), + ("aws.auth#sigv4",), + ), + "XML_ENUMS": ( + (), + ("aws.auth#sigv4",), + ), + "XML_INT_ENUMS": ( + (), + ("aws.auth#sigv4",), + ), + "XML_LISTS": ( + (), + ("aws.auth#sigv4",), + ), + "XML_MAPS": ( + (), + ("aws.auth#sigv4",), + ), + "XML_MAPS_XML_NAME": ( + (), + ("aws.auth#sigv4",), + ), + "XML_NAMESPACES": ( + (), + ("aws.auth#sigv4",), + ), + "XML_TIMESTAMPS": ( + (), + ("aws.auth#sigv4",), + ), +} + +_MODEL_NAMES = tuple(_MODEL_INDEX) +__all__ = ("ServiceError", *_MODEL_NAMES, *_OPERATIONS) # pyright: ignore[reportUnsupportedDunderAll] + + +_registry = ModelRegistry( + schemas, + renames=_RENAMES, + index=_MODEL_INDEX, + target_names=_TARGET_NAMES, + shape_names=frozenset( + { + "ComplexError", + "ComplexNestedErrorData", + "CustomCodeError", + "DatetimeOffsetsInput", + "DatetimeOffsetsOutput", + "EmptyInputAndEmptyOutputInput", + "EmptyInputAndEmptyOutputOutput", + "EndpointOperationInput", + "EndpointOperationOutput", + "EndpointWithHostLabelOperationInput", + "EndpointWithHostLabelOperationOutput", + "FlattenedXmlMapInput", + "FlattenedXmlMapOutput", + "FlattenedXmlMapWithXmlNameInput", + "FlattenedXmlMapWithXmlNameOutput", + "FlattenedXmlMapWithXmlNamespaceInput", + "FlattenedXmlMapWithXmlNamespaceOutput", + "FooEnum", + "FractionalSecondsInput", + "FractionalSecondsOutput", + "GreetingStruct", + "GreetingWithErrorsInput", + "GreetingWithErrorsOutput", + "HostWithPathOperationInput", + "HostWithPathOperationOutput", + "IgnoresWrappingXmlNameInput", + "IgnoresWrappingXmlNameOutput", + "IntegerEnum", + "InvalidGreeting", + "NestedStructWithList", + "NestedStructWithMap", + "NestedStructuresInput", + "NestedStructuresOutput", + "NoInputAndNoOutputInput", + "NoInputAndNoOutputOutput", + "NoInputAndOutputInput", + "NoInputAndOutputOutput", + "PutWithContentEncodingInput", + "PutWithContentEncodingOutput", + "QueryIdempotencyTokenAutoFillInput", + "QueryIdempotencyTokenAutoFillOutput", + "QueryListsInput", + "QueryListsOutput", + "QueryMapsInput", + "QueryMapsOutput", + "QueryTimestampsInput", + "QueryTimestampsOutput", + "RecursiveXmlShapesInput", + "RecursiveXmlShapesOutput", + "RecursiveXmlShapesOutputNested1", + "RecursiveXmlShapesOutputNested2", + "SimpleInputParamsInput", + "SimpleInputParamsOutput", + "SimpleScalarXmlPropertiesInput", + "SimpleScalarXmlPropertiesOutput", + "StructArg", + "StructureListMember", + "XmlBlobsInput", + "XmlBlobsOutput2", + "XmlEmptyBlobsInput", + "XmlEmptyBlobsOutput", + "XmlEmptyListsInput", + "XmlEmptyListsOutput", + "XmlEmptyMapsInput", + "XmlEmptyMapsOutput", + "XmlEnumsInput", + "XmlEnumsOutput", + "XmlIntEnumsInput", + "XmlIntEnumsOutput", + "XmlListsInput", + "XmlListsOutput2", + "XmlMapsInput", + "XmlMapsOutput2", + "XmlMapsXmlNameInput", + "XmlMapsXmlNameOutput", + "XmlNamespaceNested", + "XmlNamespacesInput", + "XmlNamespacesOutput", + "XmlTimestampsInput", + "XmlTimestampsOutput", + } + ), + service_error="ServiceError", +) +del schemas, ModelRegistry, ModeledError + + +def __getattr__(name: str): + if (data := _OPERATIONS.get(name)) is not None: + return globals().setdefault(name, _registry.build_operation(name, *data)) + value = _registry.build(name) + globals()[name] = value + return value + + +def __dir__() -> list[str]: + return sorted({*globals(), *__all__}) diff --git a/codegen-output-py/aws-query-client/src/awsquery_client/models.pyi b/codegen-output-py/aws-query-client/src/awsquery_client/models.pyi new file mode 100644 index 000000000..53238f549 --- /dev/null +++ b/codegen-output-py/aws-query-client/src/awsquery_client/models.pyi @@ -0,0 +1,1141 @@ +from collections.abc import Mapping, Sequence +from dataclasses import dataclass +from datetime import datetime +from enum import IntEnum, StrEnum +from typing import Required, Self, TypedDict + +from smithy_core.deserializers import ShapeDeserializer +from smithy_core.exceptions import ModeledError +from smithy_core.response import ResponseMetadata +from smithy_core.schemas import APIOperation +from smithy_core.serializers import ShapeSerializer +from smithy_core.types import UnknownEnumMixin + +__all__ = [ + "DATETIME_OFFSETS", + "EMPTY_INPUT_AND_EMPTY_OUTPUT", + "ENDPOINT_OPERATION", + "ENDPOINT_WITH_HOST_LABEL_OPERATION", + "FLATTENED_XML_MAP", + "FLATTENED_XML_MAP_WITH_XML_NAME", + "FLATTENED_XML_MAP_WITH_XML_NAMESPACE", + "FRACTIONAL_SECONDS", + "GREETING_WITH_ERRORS", + "HOST_WITH_PATH_OPERATION", + "IGNORES_WRAPPING_XML_NAME", + "NESTED_STRUCTURES", + "NO_INPUT_AND_NO_OUTPUT", + "NO_INPUT_AND_OUTPUT", + "PUT_WITH_CONTENT_ENCODING", + "QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL", + "QUERY_LISTS", + "QUERY_MAPS", + "QUERY_TIMESTAMPS", + "RECURSIVE_XML_SHAPES", + "SIMPLE_INPUT_PARAMS", + "SIMPLE_SCALAR_XML_PROPERTIES", + "XML_BLOBS", + "XML_EMPTY_BLOBS", + "XML_EMPTY_LISTS", + "XML_EMPTY_MAPS", + "XML_ENUMS", + "XML_INT_ENUMS", + "XML_LISTS", + "XML_MAPS", + "XML_MAPS_XML_NAME", + "XML_NAMESPACES", + "XML_TIMESTAMPS", + "ComplexError", + "ComplexNestedErrorData", + "CustomCodeError", + "DatetimeOffsetsInput", + "DatetimeOffsetsOutput", + "EmptyInputAndEmptyOutputInput", + "EmptyInputAndEmptyOutputOutput", + "EndpointOperationInput", + "EndpointOperationOutput", + "EndpointWithHostLabelOperationInput", + "EndpointWithHostLabelOperationOutput", + "FlattenedXmlMapInput", + "FlattenedXmlMapOutput", + "FlattenedXmlMapWithXmlNameInput", + "FlattenedXmlMapWithXmlNameOutput", + "FlattenedXmlMapWithXmlNamespaceInput", + "FlattenedXmlMapWithXmlNamespaceOutput", + "FooEnum", + "FractionalSecondsInput", + "FractionalSecondsOutput", + "GreetingStruct", + "GreetingWithErrorsInput", + "GreetingWithErrorsOutput", + "HostWithPathOperationInput", + "HostWithPathOperationOutput", + "IgnoresWrappingXmlNameInput", + "IgnoresWrappingXmlNameOutput", + "IntegerEnum", + "InvalidGreeting", + "NestedStructWithList", + "NestedStructWithMap", + "NestedStructuresInput", + "NestedStructuresOutput", + "NoInputAndNoOutputInput", + "NoInputAndNoOutputOutput", + "NoInputAndOutputInput", + "NoInputAndOutputOutput", + "PutWithContentEncodingInput", + "PutWithContentEncodingOutput", + "QueryIdempotencyTokenAutoFillInput", + "QueryIdempotencyTokenAutoFillOutput", + "QueryListsInput", + "QueryListsOutput", + "QueryMapsInput", + "QueryMapsOutput", + "QueryTimestampsInput", + "QueryTimestampsOutput", + "RecursiveXmlShapesInput", + "RecursiveXmlShapesOutput", + "RecursiveXmlShapesOutputNested1", + "RecursiveXmlShapesOutputNested2", + "ServiceError", + "SimpleInputParamsInput", + "SimpleInputParamsOutput", + "SimpleScalarXmlPropertiesInput", + "SimpleScalarXmlPropertiesOutput", + "StructArg", + "StructureListMember", + "XmlBlobsInput", + "XmlBlobsOutput2", + "XmlEmptyBlobsInput", + "XmlEmptyBlobsOutput", + "XmlEmptyListsInput", + "XmlEmptyListsOutput", + "XmlEmptyMapsInput", + "XmlEmptyMapsOutput", + "XmlEnumsInput", + "XmlEnumsOutput", + "XmlIntEnumsInput", + "XmlIntEnumsOutput", + "XmlListsInput", + "XmlListsOutput2", + "XmlMapsInput", + "XmlMapsOutput2", + "XmlMapsXmlNameInput", + "XmlMapsXmlNameOutput", + "XmlNamespaceNested", + "XmlNamespacesInput", + "XmlNamespacesOutput", + "XmlTimestampsInput", + "XmlTimestampsOutput", +] + +class _SerdeShape: + def serialize(self, serializer: ShapeSerializer) -> None: ... + def serialize_members(self, serializer: ShapeSerializer) -> None: ... + @classmethod + def deserialize(cls, deserializer: ShapeDeserializer) -> Self: ... + +class ServiceError(ModeledError): + """ + Base error for all errors in the service. + + Some exceptions do not extend from this class, including synthetic, + implicit, and shared exception types. + """ + +@dataclass(kw_only=True) +class ComplexError(ServiceError, _SerdeShape): + "This error is thrown when a request is invalid." + + top_level: str | None = ... + nested: ComplexNestedErrorData | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class ComplexNestedErrorData(_SerdeShape): + "Dataclass for ComplexNestedErrorData structure." + + foo: str | None = ... + +@dataclass(kw_only=True) +class CustomCodeError(ServiceError, _SerdeShape): + "Dataclass for CustomCodeError structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class DatetimeOffsetsOutput(_SerdeShape): + "Dataclass for DatetimeOffsetsOutput structure." + + datetime_: datetime | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class EmptyInputAndEmptyOutputInput(_SerdeShape): + "Dataclass for EmptyInputAndEmptyOutputInput structure." + +class EmptyInputAndEmptyOutputInputDict(TypedDict, total=False): + "Dictionary form of `EmptyInputAndEmptyOutputInput`." + +@dataclass(kw_only=True) +class EmptyInputAndEmptyOutputOutput(_SerdeShape): + "Dataclass for EmptyInputAndEmptyOutputOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class FlattenedXmlMapOutput(_SerdeShape): + "Dataclass for FlattenedXmlMapOutput structure." + + my_map: dict[str, str] | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class FlattenedXmlMapWithXmlNameOutput(_SerdeShape): + "Dataclass for FlattenedXmlMapWithXmlNameOutput structure." + + my_map: dict[str, str] | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class FlattenedXmlMapWithXmlNamespaceOutput(_SerdeShape): + "Dataclass for FlattenedXmlMapWithXmlNamespaceOutput structure." + + my_map: dict[str, str] | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class FractionalSecondsOutput(_SerdeShape): + "Dataclass for FractionalSecondsOutput structure." + + datetime_: datetime | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class GreetingWithErrorsOutput(_SerdeShape): + "Dataclass for GreetingWithErrorsOutput structure." + + greeting: str | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class IgnoresWrappingXmlNameOutput(_SerdeShape): + "Dataclass for IgnoresWrappingXmlNameOutput structure." + + foo: str | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class InvalidGreeting(ServiceError, _SerdeShape): + "This error is thrown when an invalid greeting value is provided." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class NestedStructWithList(_SerdeShape): + "Dataclass for NestedStructWithList structure." + + list_arg: list[str] | None = ... + +class NestedStructWithListDict(TypedDict, total=False): + "Dictionary form of `NestedStructWithList`." + + list_arg: Sequence[str] | None + +@dataclass(kw_only=True) +class NestedStructWithMap(_SerdeShape): + "Dataclass for NestedStructWithMap structure." + + map_arg: dict[str, str] | None = ... + +class NestedStructWithMapDict(TypedDict, total=False): + "Dictionary form of `NestedStructWithMap`." + + map_arg: Mapping[str, str] | None + +@dataclass(kw_only=True) +class NestedStructuresInput(_SerdeShape): + "Dataclass for NestedStructuresInput structure." + + nested: StructArg | None = ... + +class NestedStructuresInputDict(TypedDict, total=False): + "Dictionary form of `NestedStructuresInput`." + + nested: StructArg | StructArgDict | None + +@dataclass(kw_only=True) +class NoInputAndOutputInput(_SerdeShape): + "Dataclass for NoInputAndOutputInput structure." + +class NoInputAndOutputInputDict(TypedDict, total=False): + "Dictionary form of `NoInputAndOutputInput`." + +@dataclass(kw_only=True) +class NoInputAndOutputOutput(_SerdeShape): + "Dataclass for NoInputAndOutputOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class PutWithContentEncodingInput(_SerdeShape): + "Dataclass for PutWithContentEncodingInput structure." + + encoding: str | None = ... + data: str | None = ... + +class PutWithContentEncodingInputDict(TypedDict, total=False): + "Dictionary form of `PutWithContentEncodingInput`." + + encoding: str | None + data: str | None + +@dataclass(kw_only=True) +class QueryIdempotencyTokenAutoFillInput(_SerdeShape): + "Dataclass for QueryIdempotencyTokenAutoFillInput structure." + + token: str | None = ... + "This field is autopopulated if not provided." + +class QueryIdempotencyTokenAutoFillInputDict(TypedDict, total=False): + "Dictionary form of `QueryIdempotencyTokenAutoFillInput`." + + token: str | None + "This field is autopopulated if not provided." + +@dataclass(kw_only=True) +class QueryListsInput(_SerdeShape): + "Dataclass for QueryListsInput structure." + + list_arg: list[str] | None = ... + complex_list_arg: list[GreetingStruct] | None = ... + flattened_list_arg: list[str] | None = ... + list_arg_with_xml_name_member: list[str] | None = ... + flattened_list_arg_with_xml_name: list[str] | None = ... + nested_with_list: NestedStructWithList | None = ... + +class QueryListsInputDict(TypedDict, total=False): + "Dictionary form of `QueryListsInput`." + + list_arg: Sequence[str] | None + complex_list_arg: Sequence[GreetingStruct | GreetingStructDict] | None + flattened_list_arg: Sequence[str] | None + list_arg_with_xml_name_member: Sequence[str] | None + flattened_list_arg_with_xml_name: Sequence[str] | None + nested_with_list: NestedStructWithList | NestedStructWithListDict | None + +@dataclass(kw_only=True) +class QueryMapsInput(_SerdeShape): + "Dataclass for QueryMapsInput structure." + + map_arg: dict[str, str] | None = ... + renamed_map_arg: dict[str, str] | None = ... + complex_map_arg: dict[str, GreetingStruct] | None = ... + map_with_xml_member_name: dict[str, str] | None = ... + flattened_map: dict[str, str] | None = ... + flattened_map_with_xml_name: dict[str, str] | None = ... + map_of_lists: dict[str, list[str]] | None = ... + nested_struct_with_map: NestedStructWithMap | None = ... + +class QueryMapsInputDict(TypedDict, total=False): + "Dictionary form of `QueryMapsInput`." + + map_arg: Mapping[str, str] | None + renamed_map_arg: Mapping[str, str] | None + complex_map_arg: Mapping[str, GreetingStruct | GreetingStructDict] | None + map_with_xml_member_name: Mapping[str, str] | None + flattened_map: Mapping[str, str] | None + flattened_map_with_xml_name: Mapping[str, str] | None + map_of_lists: Mapping[str, Sequence[str]] | None + nested_struct_with_map: NestedStructWithMap | NestedStructWithMapDict | None + +@dataclass(kw_only=True) +class QueryTimestampsInput(_SerdeShape): + "Dataclass for QueryTimestampsInput structure." + + normal_format: datetime | None = ... + epoch_member: datetime | None = ... + epoch_target: datetime | None = ... + +class QueryTimestampsInputDict(TypedDict, total=False): + "Dictionary form of `QueryTimestampsInput`." + + normal_format: datetime | None + epoch_member: datetime | None + epoch_target: datetime | None + +@dataclass(kw_only=True) +class RecursiveXmlShapesOutput(_SerdeShape): + "Dataclass for RecursiveXmlShapesOutput structure." + + nested: RecursiveXmlShapesOutputNested1 | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class RecursiveXmlShapesOutputNested1(_SerdeShape): + "Dataclass for RecursiveXmlShapesOutputNested1 structure." + + foo: str | None = ... + nested: RecursiveXmlShapesOutputNested2 | None = ... + +@dataclass(kw_only=True) +class RecursiveXmlShapesOutputNested2(_SerdeShape): + "Dataclass for RecursiveXmlShapesOutputNested2 structure." + + bar: str | None = ... + recursive_member: RecursiveXmlShapesOutputNested1 | None = ... + +@dataclass(kw_only=True) +class SimpleInputParamsInput(_SerdeShape): + "Dataclass for SimpleInputParamsInput structure." + + foo: str | None = ... + bar: str | None = ... + baz: bool | None = ... + bam: int | None = ... + float_value: float | None = ... + boo: float | None = ... + qux: bytes | None = ... + foo_enum: str | None = ... + integer_enum: int | None = ... + +class SimpleInputParamsInputDict(TypedDict, total=False): + "Dictionary form of `SimpleInputParamsInput`." + + foo: str | None + bar: str | None + baz: bool | None + bam: int | None + float_value: float | None + boo: float | None + qux: bytes | None + foo_enum: str | None + integer_enum: int | None + +@dataclass(kw_only=True) +class SimpleScalarXmlPropertiesOutput(_SerdeShape): + "Dataclass for SimpleScalarXmlPropertiesOutput structure." + + string_value: str | None = ... + empty_string_value: str | None = ... + true_boolean_value: bool | None = ... + false_boolean_value: bool | None = ... + byte_value: int | None = ... + short_value: int | None = ... + integer_value: int | None = ... + long_value: int | None = ... + float_value: float | None = ... + double_value: float | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class StructArg(_SerdeShape): + "Dataclass for StructArg structure." + + string_arg: str | None = ... + other_arg: bool | None = ... + recursive_arg: StructArg | None = ... + +class StructArgDict(TypedDict, total=False): + "Dictionary form of `StructArg`." + + string_arg: str | None + other_arg: bool | None + recursive_arg: StructArg | StructArgDict | None + +@dataclass(kw_only=True) +class StructureListMember(_SerdeShape): + "Dataclass for StructureListMember structure." + + a: str | None = ... + b: str | None = ... + +@dataclass(kw_only=True) +class XmlEnumsOutput(_SerdeShape): + "Dataclass for XmlEnumsOutput structure." + + foo_enum1: str | None = ... + foo_enum2: str | None = ... + foo_enum3: str | None = ... + foo_enum_list: list[str] | None = ... + foo_enum_set: list[str] | None = ... + foo_enum_map: dict[str, str] | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class XmlIntEnumsOutput(_SerdeShape): + "Dataclass for XmlIntEnumsOutput structure." + + int_enum1: int | None = ... + int_enum2: int | None = ... + int_enum3: int | None = ... + int_enum_list: list[int] | None = ... + int_enum_set: list[int] | None = ... + int_enum_map: dict[str, int] | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class XmlMapsXmlNameOutput(_SerdeShape): + "Dataclass for XmlMapsXmlNameOutput structure." + + my_map: dict[str, GreetingStruct] | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class XmlNamespaceNested(_SerdeShape): + "Dataclass for XmlNamespaceNested structure." + + foo: str | None = ... + values: list[str] | None = ... + +@dataclass(kw_only=True) +class XmlNamespacesOutput(_SerdeShape): + "Dataclass for XmlNamespacesOutput structure." + + nested: XmlNamespaceNested | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class XmlTimestampsOutput(_SerdeShape): + "Dataclass for XmlTimestampsOutput structure." + + normal: datetime | None = ... + date_time: datetime | None = ... + date_time_on_target: datetime | None = ... + epoch_seconds: datetime | None = ... + epoch_seconds_on_target: datetime | None = ... + http_date: datetime | None = ... + http_date_on_target: datetime | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +class FooEnum(UnknownEnumMixin, StrEnum): + FOO = "Foo" + BAZ = "Baz" + BAR = "Bar" + ONE = "1" + ZERO = "0" + +@dataclass(kw_only=True) +class GreetingStruct(_SerdeShape): + "Dataclass for GreetingStruct structure." + + hi: str | None = ... + +class GreetingStructDict(TypedDict, total=False): + "Dictionary form of `GreetingStruct`." + + hi: str | None + +class IntegerEnum(UnknownEnumMixin, IntEnum): + A = 1 + B = 2 + C = 3 + +@dataclass(kw_only=True) +class DatetimeOffsetsInput(_SerdeShape): + "Dataclass for DatetimeOffsetsInput structure." + +class DatetimeOffsetsInputDict(TypedDict, total=False): + "Dictionary form of `DatetimeOffsetsInput`." + +@dataclass(kw_only=True) +class EndpointOperationInput(_SerdeShape): + "Dataclass for EndpointOperationInput structure." + +class EndpointOperationInputDict(TypedDict, total=False): + "Dictionary form of `EndpointOperationInput`." + +@dataclass(kw_only=True) +class EndpointOperationOutput(_SerdeShape): + "Dataclass for EndpointOperationOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class EndpointWithHostLabelOperationInput(_SerdeShape): + "Dataclass for EndpointWithHostLabelOperationInput structure." + + label: str | None = ... + +class EndpointWithHostLabelOperationInputDict(TypedDict, total=False): + "Dictionary form of `EndpointWithHostLabelOperationInput`." + + label: Required[str] + +@dataclass(kw_only=True) +class EndpointWithHostLabelOperationOutput(_SerdeShape): + "Dataclass for EndpointWithHostLabelOperationOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class FlattenedXmlMapInput(_SerdeShape): + "Dataclass for FlattenedXmlMapInput structure." + +class FlattenedXmlMapInputDict(TypedDict, total=False): + "Dictionary form of `FlattenedXmlMapInput`." + +@dataclass(kw_only=True) +class FlattenedXmlMapWithXmlNameInput(_SerdeShape): + "Dataclass for FlattenedXmlMapWithXmlNameInput structure." + +class FlattenedXmlMapWithXmlNameInputDict(TypedDict, total=False): + "Dictionary form of `FlattenedXmlMapWithXmlNameInput`." + +@dataclass(kw_only=True) +class FlattenedXmlMapWithXmlNamespaceInput(_SerdeShape): + "Dataclass for FlattenedXmlMapWithXmlNamespaceInput structure." + +class FlattenedXmlMapWithXmlNamespaceInputDict(TypedDict, total=False): + "Dictionary form of `FlattenedXmlMapWithXmlNamespaceInput`." + +@dataclass(kw_only=True) +class FractionalSecondsInput(_SerdeShape): + "Dataclass for FractionalSecondsInput structure." + +class FractionalSecondsInputDict(TypedDict, total=False): + "Dictionary form of `FractionalSecondsInput`." + +@dataclass(kw_only=True) +class GreetingWithErrorsInput(_SerdeShape): + "Dataclass for GreetingWithErrorsInput structure." + +class GreetingWithErrorsInputDict(TypedDict, total=False): + "Dictionary form of `GreetingWithErrorsInput`." + +@dataclass(kw_only=True) +class HostWithPathOperationInput(_SerdeShape): + "Dataclass for HostWithPathOperationInput structure." + +class HostWithPathOperationInputDict(TypedDict, total=False): + "Dictionary form of `HostWithPathOperationInput`." + +@dataclass(kw_only=True) +class HostWithPathOperationOutput(_SerdeShape): + "Dataclass for HostWithPathOperationOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class IgnoresWrappingXmlNameInput(_SerdeShape): + "Dataclass for IgnoresWrappingXmlNameInput structure." + +class IgnoresWrappingXmlNameInputDict(TypedDict, total=False): + "Dictionary form of `IgnoresWrappingXmlNameInput`." + +@dataclass(kw_only=True) +class NestedStructuresOutput(_SerdeShape): + "Dataclass for NestedStructuresOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class NoInputAndNoOutputInput(_SerdeShape): + "Dataclass for NoInputAndNoOutputInput structure." + +class NoInputAndNoOutputInputDict(TypedDict, total=False): + "Dictionary form of `NoInputAndNoOutputInput`." + +@dataclass(kw_only=True) +class NoInputAndNoOutputOutput(_SerdeShape): + "Dataclass for NoInputAndNoOutputOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class PutWithContentEncodingOutput(_SerdeShape): + "Dataclass for PutWithContentEncodingOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class QueryIdempotencyTokenAutoFillOutput(_SerdeShape): + "Dataclass for QueryIdempotencyTokenAutoFillOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class QueryListsOutput(_SerdeShape): + "Dataclass for QueryListsOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class QueryMapsOutput(_SerdeShape): + "Dataclass for QueryMapsOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class QueryTimestampsOutput(_SerdeShape): + "Dataclass for QueryTimestampsOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class RecursiveXmlShapesInput(_SerdeShape): + "Dataclass for RecursiveXmlShapesInput structure." + +class RecursiveXmlShapesInputDict(TypedDict, total=False): + "Dictionary form of `RecursiveXmlShapesInput`." + +@dataclass(kw_only=True) +class SimpleInputParamsOutput(_SerdeShape): + "Dataclass for SimpleInputParamsOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class SimpleScalarXmlPropertiesInput(_SerdeShape): + "Dataclass for SimpleScalarXmlPropertiesInput structure." + +class SimpleScalarXmlPropertiesInputDict(TypedDict, total=False): + "Dictionary form of `SimpleScalarXmlPropertiesInput`." + +@dataclass(kw_only=True) +class XmlBlobsInput(_SerdeShape): + "Dataclass for XmlBlobsInput structure." + +class XmlBlobsInputDict(TypedDict, total=False): + "Dictionary form of `XmlBlobsInput`." + +@dataclass(kw_only=True) +class XmlBlobsOutput2(_SerdeShape): + "Dataclass for XmlBlobsOutput2 structure." + + data: bytes | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class XmlEmptyBlobsInput(_SerdeShape): + "Dataclass for XmlEmptyBlobsInput structure." + +class XmlEmptyBlobsInputDict(TypedDict, total=False): + "Dictionary form of `XmlEmptyBlobsInput`." + +@dataclass(kw_only=True) +class XmlEmptyBlobsOutput(_SerdeShape): + "Dataclass for XmlEmptyBlobsOutput structure." + + data: bytes | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class XmlEmptyListsInput(_SerdeShape): + "Dataclass for XmlEmptyListsInput structure." + +class XmlEmptyListsInputDict(TypedDict, total=False): + "Dictionary form of `XmlEmptyListsInput`." + +@dataclass(kw_only=True) +class XmlEmptyListsOutput(_SerdeShape): + "Dataclass for XmlEmptyListsOutput structure." + + string_list: list[str] | None = ... + string_set: list[str] | None = ... + integer_list: list[int] | None = ... + boolean_list: list[bool] | None = ... + timestamp_list: list[datetime] | None = ... + enum_list: list[str] | None = ... + int_enum_list: list[int] | None = ... + nested_string_list: list[list[str]] | None = ... + renamed_list_members: list[str] | None = ... + flattened_list: list[str] | None = ... + flattened_list2: list[str] | None = ... + flattened_list_with_member_namespace: list[str] | None = ... + flattened_list_with_namespace: list[str] | None = ... + structure_list: list[StructureListMember] | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class XmlEmptyMapsInput(_SerdeShape): + "Dataclass for XmlEmptyMapsInput structure." + +class XmlEmptyMapsInputDict(TypedDict, total=False): + "Dictionary form of `XmlEmptyMapsInput`." + +@dataclass(kw_only=True) +class XmlEmptyMapsOutput(_SerdeShape): + "Dataclass for XmlEmptyMapsOutput structure." + + my_map: dict[str, GreetingStruct] | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class XmlEnumsInput(_SerdeShape): + "Dataclass for XmlEnumsInput structure." + +class XmlEnumsInputDict(TypedDict, total=False): + "Dictionary form of `XmlEnumsInput`." + +@dataclass(kw_only=True) +class XmlIntEnumsInput(_SerdeShape): + "Dataclass for XmlIntEnumsInput structure." + +class XmlIntEnumsInputDict(TypedDict, total=False): + "Dictionary form of `XmlIntEnumsInput`." + +@dataclass(kw_only=True) +class XmlListsInput(_SerdeShape): + "Dataclass for XmlListsInput structure." + +class XmlListsInputDict(TypedDict, total=False): + "Dictionary form of `XmlListsInput`." + +@dataclass(kw_only=True) +class XmlListsOutput2(_SerdeShape): + "Dataclass for XmlListsOutput2 structure." + + string_list: list[str] | None = ... + string_set: list[str] | None = ... + integer_list: list[int] | None = ... + boolean_list: list[bool] | None = ... + timestamp_list: list[datetime] | None = ... + enum_list: list[str] | None = ... + int_enum_list: list[int] | None = ... + nested_string_list: list[list[str]] | None = ... + renamed_list_members: list[str] | None = ... + flattened_list: list[str] | None = ... + flattened_list2: list[str] | None = ... + flattened_list_with_member_namespace: list[str] | None = ... + flattened_list_with_namespace: list[str] | None = ... + structure_list: list[StructureListMember] | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class XmlMapsInput(_SerdeShape): + "Dataclass for XmlMapsInput structure." + +class XmlMapsInputDict(TypedDict, total=False): + "Dictionary form of `XmlMapsInput`." + +@dataclass(kw_only=True) +class XmlMapsOutput2(_SerdeShape): + "Dataclass for XmlMapsOutput2 structure." + + my_map: dict[str, GreetingStruct] | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class XmlMapsXmlNameInput(_SerdeShape): + "Dataclass for XmlMapsXmlNameInput structure." + +class XmlMapsXmlNameInputDict(TypedDict, total=False): + "Dictionary form of `XmlMapsXmlNameInput`." + +@dataclass(kw_only=True) +class XmlNamespacesInput(_SerdeShape): + "Dataclass for XmlNamespacesInput structure." + +class XmlNamespacesInputDict(TypedDict, total=False): + "Dictionary form of `XmlNamespacesInput`." + +@dataclass(kw_only=True) +class XmlTimestampsInput(_SerdeShape): + "Dataclass for XmlTimestampsInput structure." + +class XmlTimestampsInputDict(TypedDict, total=False): + "Dictionary form of `XmlTimestampsInput`." + +DATETIME_OFFSETS: APIOperation[DatetimeOffsetsInput, DatetimeOffsetsOutput] +EMPTY_INPUT_AND_EMPTY_OUTPUT: APIOperation[ + EmptyInputAndEmptyOutputInput, EmptyInputAndEmptyOutputOutput +] +ENDPOINT_OPERATION: APIOperation[EndpointOperationInput, EndpointOperationOutput] +ENDPOINT_WITH_HOST_LABEL_OPERATION: APIOperation[ + EndpointWithHostLabelOperationInput, EndpointWithHostLabelOperationOutput +] +FLATTENED_XML_MAP: APIOperation[FlattenedXmlMapInput, FlattenedXmlMapOutput] +FLATTENED_XML_MAP_WITH_XML_NAME: APIOperation[ + FlattenedXmlMapWithXmlNameInput, FlattenedXmlMapWithXmlNameOutput +] +FLATTENED_XML_MAP_WITH_XML_NAMESPACE: APIOperation[ + FlattenedXmlMapWithXmlNamespaceInput, FlattenedXmlMapWithXmlNamespaceOutput +] +FRACTIONAL_SECONDS: APIOperation[FractionalSecondsInput, FractionalSecondsOutput] +GREETING_WITH_ERRORS: APIOperation[GreetingWithErrorsInput, GreetingWithErrorsOutput] +HOST_WITH_PATH_OPERATION: APIOperation[ + HostWithPathOperationInput, HostWithPathOperationOutput +] +IGNORES_WRAPPING_XML_NAME: APIOperation[ + IgnoresWrappingXmlNameInput, IgnoresWrappingXmlNameOutput +] +NESTED_STRUCTURES: APIOperation[NestedStructuresInput, NestedStructuresOutput] +NO_INPUT_AND_NO_OUTPUT: APIOperation[NoInputAndNoOutputInput, NoInputAndNoOutputOutput] +NO_INPUT_AND_OUTPUT: APIOperation[NoInputAndOutputInput, NoInputAndOutputOutput] +PUT_WITH_CONTENT_ENCODING: APIOperation[ + PutWithContentEncodingInput, PutWithContentEncodingOutput +] +QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL: APIOperation[ + QueryIdempotencyTokenAutoFillInput, QueryIdempotencyTokenAutoFillOutput +] +QUERY_LISTS: APIOperation[QueryListsInput, QueryListsOutput] +QUERY_MAPS: APIOperation[QueryMapsInput, QueryMapsOutput] +QUERY_TIMESTAMPS: APIOperation[QueryTimestampsInput, QueryTimestampsOutput] +RECURSIVE_XML_SHAPES: APIOperation[RecursiveXmlShapesInput, RecursiveXmlShapesOutput] +SIMPLE_INPUT_PARAMS: APIOperation[SimpleInputParamsInput, SimpleInputParamsOutput] +SIMPLE_SCALAR_XML_PROPERTIES: APIOperation[ + SimpleScalarXmlPropertiesInput, SimpleScalarXmlPropertiesOutput +] +XML_BLOBS: APIOperation[XmlBlobsInput, XmlBlobsOutput2] +XML_EMPTY_BLOBS: APIOperation[XmlEmptyBlobsInput, XmlEmptyBlobsOutput] +XML_EMPTY_LISTS: APIOperation[XmlEmptyListsInput, XmlEmptyListsOutput] +XML_EMPTY_MAPS: APIOperation[XmlEmptyMapsInput, XmlEmptyMapsOutput] +XML_ENUMS: APIOperation[XmlEnumsInput, XmlEnumsOutput] +XML_INT_ENUMS: APIOperation[XmlIntEnumsInput, XmlIntEnumsOutput] +XML_LISTS: APIOperation[XmlListsInput, XmlListsOutput2] +XML_MAPS: APIOperation[XmlMapsInput, XmlMapsOutput2] +XML_MAPS_XML_NAME: APIOperation[XmlMapsXmlNameInput, XmlMapsXmlNameOutput] +XML_NAMESPACES: APIOperation[XmlNamespacesInput, XmlNamespacesOutput] +XML_TIMESTAMPS: APIOperation[XmlTimestampsInput, XmlTimestampsOutput] diff --git a/codegen-output-py/aws-query-client/src/awsquery_client/py.typed b/codegen-output-py/aws-query-client/src/awsquery_client/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/codegen-output-py/aws-query-client/src/awsquery_client/user_agent.py b/codegen-output-py/aws-query-client/src/awsquery_client/user_agent.py new file mode 100644 index 000000000..41b9dcaf5 --- /dev/null +++ b/codegen-output-py/aws-query-client/src/awsquery_client/user_agent.py @@ -0,0 +1,16 @@ +from smithy_aws_core.interceptors.user_agent import UserAgentInterceptor + +from awsquery_client import __version__ +from awsquery_client.config import QueryProtocolConfig + + +def aws_user_agent_plugin(config: QueryProtocolConfig) -> None: + "Send the AWS user agent with every request." + config.interceptors.append( + UserAgentInterceptor( + ua_suffix=config.user_agent_extra, + ua_app_id=config.sdk_ua_app_id, + sdk_version=__version__, + service_id="Query_Protocol", + ) + ) diff --git a/codegen-output-py/ec2-query-client/.smithy-python-manifest.json b/codegen-output-py/ec2-query-client/.smithy-python-manifest.json new file mode 100644 index 000000000..3fbe294b9 --- /dev/null +++ b/codegen-output-py/ec2-query-client/.smithy-python-manifest.json @@ -0,0 +1,23 @@ +{ + "files": { + "README.md": "b401cf5b1a987ae341e8467e253623fe55d261fe37ef057b5fca3f6486e24b9b", + "pyproject.toml": "d8db85e320881105db385e4aff9dc78806c1d0afce6e922fcaf481922e12bb88", + "src/ec2query_client/__init__.py": "d9acb82cf6456ae3b4f903f8288ee39e0c8d361c2ef3fe4e85b842379854bbc3", + "src/ec2query_client/_private/__init__.py": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "src/ec2query_client/_private/endpoints.py": "7d515fe771678e82ddbe07798d6b7e48c25c6c9bec19cec9318deb0bc5064ead", + "src/ec2query_client/_private/schemas.py": "087beb73e2d50bd1de8e4f08e6df98fe667fb8b7a247a41e510886f1f4e8c620", + "src/ec2query_client/_private/schemas_0.py": "fd38636fd4686fab8a18471c718b8c4afe46e8febf745b1d047dd41c0c2bf0b3", + "src/ec2query_client/_private/schemas_1.py": "9a1cf238ab2cfcb1fbab3df7acccaacd1ace61baa9de9fd4430f1f5df57649c0", + "src/ec2query_client/aio/__init__.py": "6df0f4c936c7a0cbfe94ba3b1c86421accf3f9245fa221f2c4eb614475815417", + "src/ec2query_client/aio/client.py": "a950b965fd1593e74fb424a90357a8734864e179504ae30feb62be60c6a8823e", + "src/ec2query_client/aio/config.py": "654d99f8b72ad99c00a00dcc6ec6d1f87fcdca8da79cd2a8eb695c7613d5bd6d", + "src/ec2query_client/aio/user_agent.py": "31e71334b85dd5aed20999fc242b81a701dde1f5ac05fc09240b283fa3cb2487", + "src/ec2query_client/client.py": "be75f9095f607136175c7dd8c318520825b11058e1250b37cfa2d924733e68ea", + "src/ec2query_client/config.py": "8e5d5bb897d5ff01dd29054d6d784fcc1c25a13be2a32e5c510f03cc22acb56d", + "src/ec2query_client/models.py": "5940a13b794437fdb3e2c07beed5113568acea02b15386c567cb264eaaa2d265", + "src/ec2query_client/models.pyi": "d8c4f4a7ee329c145f60143cc5714c60490c58ca65a56151d4270f69360dec4d", + "src/ec2query_client/py.typed": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "src/ec2query_client/user_agent.py": "afad584c1fe2c495213c8c13e0610ce685e47669271a2b6b83e6db80db19453a" + }, + "version": 1 +} diff --git a/codegen-output-py/ec2-query-client/README.md b/codegen-output-py/ec2-query-client/README.md new file mode 100644 index 000000000..e8354ba73 --- /dev/null +++ b/codegen-output-py/ec2-query-client/README.md @@ -0,0 +1,5 @@ + + +## ec2query_client Client Package + +Python client for the ec2-query projection diff --git a/codegen-output-py/ec2-query-client/pyproject.toml b/codegen-output-py/ec2-query-client/pyproject.toml new file mode 100644 index 000000000..46db983b5 --- /dev/null +++ b/codegen-output-py/ec2-query-client/pyproject.toml @@ -0,0 +1,38 @@ +# Code generated by smithy-python-codegen DO NOT EDIT. + +[project] +name = "ec2query_client" +version = "0.0.1" +description = "Python client for the ec2-query projection" +readme = "README.md" +requires-python = ">=3.12" +keywords = ["smithy", "ec2query_client"] +license = {text = "Apache-2.0"} +dependencies = [ + "smithy-aws-core[xml]~=0.16.0", + "smithy-core~=0.13.0", + "smithy-http[aiohttp,urllib3]~=0.10.0", +] + +[build-system] +requires = [ + "hatchling", +] +build-backend = "hatchling.build" + +[tool.hatch.build.targets.wheel] +packages = [ + "src/ec2query_client", +] + +[tool.pyright] +typeCheckingMode = "strict" + +[tool.ruff] +target-version = "py312" + +[tool.ruff.lint] +ignore = ["F841"] + +[tool.ruff.format] +skip-magic-trailing-comma = true diff --git a/codegen-output-py/ec2-query-client/src/ec2query_client/__init__.py b/codegen-output-py/ec2-query-client/src/ec2query_client/__init__.py new file mode 100644 index 000000000..b4f246960 --- /dev/null +++ b/codegen-output-py/ec2-query-client/src/ec2query_client/__init__.py @@ -0,0 +1,30 @@ +from importlib import import_module +from typing import TYPE_CHECKING, Any + +__version__: str = "0.0.1" + +if TYPE_CHECKING: + from .aio.client import AsyncEC2ProtocolClient + from .aio.config import AsyncEC2ProtocolConfig + from .client import EC2ProtocolClient + from .config import EC2ProtocolConfig + +__all__ = [ + "AsyncEC2ProtocolClient", + "AsyncEC2ProtocolConfig", + "EC2ProtocolClient", + "EC2ProtocolConfig", +] + +_EXPORTS = { + "EC2ProtocolClient": ".client", + "EC2ProtocolConfig": ".config", + "AsyncEC2ProtocolClient": ".aio.client", + "AsyncEC2ProtocolConfig": ".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}") diff --git a/codegen-output-py/ec2-query-client/src/ec2query_client/_private/__init__.py b/codegen-output-py/ec2-query-client/src/ec2query_client/_private/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/codegen-output-py/ec2-query-client/src/ec2query_client/_private/endpoints.py b/codegen-output-py/ec2-query-client/src/ec2query_client/_private/endpoints.py new file mode 100644 index 000000000..ad3066783 --- /dev/null +++ b/codegen-output-py/ec2-query-client/src/ec2query_client/_private/endpoints.py @@ -0,0 +1,27 @@ +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=( + ("endpoint", "string", False, None, "SDK::Endpoint", None), + ), + functions=("isSet",), + conditions=( + ((2, "isSet", (0, "endpoint")), None), # 0: isSet(endpoint) + ), + results=( + None, # 0: no match + (6, (0, "endpoint"), None, ()), # 1 + (5, "(default endpointRuleSet) endpoint is not set - you must configure an endpoint."), # 2 + ), + 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, 100_000_002, + ), +) +# fmt: on diff --git a/codegen-output-py/ec2-query-client/src/ec2query_client/_private/schemas.py b/codegen-output-py/ec2-query-client/src/ec2query_client/_private/schemas.py new file mode 100644 index 000000000..abba1484c --- /dev/null +++ b/codegen-output-py/ec2-query-client/src/ec2query_client/_private/schemas.py @@ -0,0 +1,137 @@ +from importlib import import_module + +_PARTITION_NAMES: tuple[tuple[str, ...], ...] = ( + ( + "COMPLEX_NESTED_ERROR_DATA", + "COMPLEX_ERROR", + "DATE_TIME", + "DATETIME_OFFSETS_OUTPUT", + "DATETIME_OFFSETS_INPUT", + "DATETIME_OFFSETS", + "EMPTY_INPUT_AND_EMPTY_OUTPUT_INPUT", + "EMPTY_INPUT_AND_EMPTY_OUTPUT_OUTPUT", + "EMPTY_INPUT_AND_EMPTY_OUTPUT", + "FRACTIONAL_SECONDS_OUTPUT", + "FRACTIONAL_SECONDS_INPUT", + "FRACTIONAL_SECONDS", + "GREETING_WITH_ERRORS_OUTPUT", + "GREETING_WITH_ERRORS_INPUT", + "GREETING_WITH_ERRORS", + "IGNORES_WRAPPING_XML_NAME_OUTPUT", + "IGNORES_WRAPPING_XML_NAME_INPUT", + "IGNORES_WRAPPING_XML_NAME", + "INVALID_GREETING", + "LIST_WITH_MEMBER_NAMESPACE", + "LIST_WITH_NAMESPACE", + "LIST_WITH_XML_NAME", + "STRING_LIST", + "NESTED_STRUCT_WITH_LIST", + "NESTED_STRUCTURES_INPUT", + "NESTED_STRUCTURES_OUTPUT", + "NESTED_STRUCTURES", + "NO_INPUT_AND_OUTPUT_OUTPUT", + "NO_INPUT_AND_OUTPUT_INPUT", + "NO_INPUT_AND_OUTPUT", + "PUT_WITH_CONTENT_ENCODING_INPUT", + "PUT_WITH_CONTENT_ENCODING_OUTPUT", + "PUT_WITH_CONTENT_ENCODING", + "QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL_INPUT", + "QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL_OUTPUT", + "QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL", + "GREETING_STRUCT", + "GREETING_LIST", + "QUERY_LISTS_INPUT", + "QUERY_LISTS_OUTPUT", + "QUERY_LISTS", + "EPOCH_SECONDS", + "QUERY_TIMESTAMPS_INPUT", + "QUERY_TIMESTAMPS_OUTPUT", + "QUERY_TIMESTAMPS", + "RECURSIVE_XML_SHAPES_OUTPUT", + "RECURSIVE_XML_SHAPES_INPUT", + "RECURSIVE_XML_SHAPES", + "RENAMED_LIST_MEMBERS", + "FOO_ENUM", + "SIMPLE_INPUT_PARAMS_INPUT", + "SIMPLE_INPUT_PARAMS_OUTPUT", + "SIMPLE_INPUT_PARAMS", + "SIMPLE_SCALAR_XML_PROPERTIES_OUTPUT", + "SIMPLE_SCALAR_XML_PROPERTIES_INPUT", + "SIMPLE_SCALAR_XML_PROPERTIES", + "STRUCTURE_LIST_MEMBER", + ), + ( + "STRUCTURE_LIST", + "FOO_ENUM_LIST", + "FOO_ENUM_SET", + "FOO_ENUM_MAP", + "XML_ENUMS_OUTPUT", + "XML_ENUMS_INPUT", + "XML_ENUMS", + "INTEGER_ENUM", + "INTEGER_ENUM_LIST", + "INTEGER_ENUM_SET", + "INTEGER_ENUM_MAP", + "XML_INT_ENUMS_OUTPUT", + "XML_INT_ENUMS_INPUT", + "XML_INT_ENUMS", + "XML_NAMESPACED_LIST", + "XML_NAMESPACE_NESTED", + "XML_NAMESPACES_OUTPUT", + "XML_NAMESPACES_INPUT", + "XML_NAMESPACES", + "HTTP_DATE", + "XML_TIMESTAMPS_OUTPUT", + "XML_TIMESTAMPS_INPUT", + "XML_TIMESTAMPS", + "BOOLEAN_LIST", + "INTEGER_LIST", + "NESTED_STRING_LIST", + "STRING_SET", + "TIMESTAMP_LIST", + "ENDPOINT_OPERATION_INPUT", + "ENDPOINT_OPERATION_OUTPUT", + "ENDPOINT_OPERATION", + "ENDPOINT_WITH_HOST_LABEL_OPERATION_INPUT", + "ENDPOINT_WITH_HOST_LABEL_OPERATION_OUTPUT", + "ENDPOINT_WITH_HOST_LABEL_OPERATION", + "HOST_WITH_PATH_OPERATION_INPUT", + "HOST_WITH_PATH_OPERATION_OUTPUT", + "HOST_WITH_PATH_OPERATION", + "XML_BLOBS_INPUT", + "XML_BLOBS_OUTPUT2", + "XML_BLOBS", + "XML_EMPTY_BLOBS_INPUT", + "XML_EMPTY_BLOBS_OUTPUT", + "XML_EMPTY_BLOBS", + "XML_EMPTY_LISTS_INPUT", + "XML_EMPTY_LISTS_OUTPUT", + "XML_EMPTY_LISTS", + "XML_LISTS_INPUT", + "XML_LISTS_OUTPUT2", + "XML_LISTS", + "AWS_EC2", + "RECURSIVE_XML_SHAPES_OUTPUT_NESTED1", + "RECURSIVE_XML_SHAPES_OUTPUT_NESTED2", + "STRUCT_ARG", + ), +) +_PARTITIONS = { + name: index for index, names in enumerate(_PARTITION_NAMES) for name in names +} +del _PARTITION_NAMES + + +def __getattr__(name: str): + try: + partition = _PARTITIONS[name] + except KeyError as error: + raise AttributeError(name) from error + module = import_module(f".schemas_{partition:01d}", __package__) + value = getattr(module, name) + globals()[name] = value + return value + + +def __dir__() -> list[str]: + return sorted({*globals(), *_PARTITIONS}) diff --git a/codegen-output-py/ec2-query-client/src/ec2query_client/_private/schemas_0.py b/codegen-output-py/ec2-query-client/src/ec2query_client/_private/schemas_0.py new file mode 100644 index 000000000..6ad27b2ca --- /dev/null +++ b/codegen-output-py/ec2-query-client/src/ec2query_client/_private/schemas_0.py @@ -0,0 +1,704 @@ +from types import MappingProxyType + +from smithy_core._schema_compact import StaticOperationSchema, StaticSchema + +from . import schemas + +n0 = "aws.protocoltests.ec2" +_s0 = "ComplexNestedErrorData" +_s1 = "Foo" +_s2 = "ComplexError" +_s3 = "smithy.api#error" +_s4 = "client" +_s5 = "TopLevel" +_s6 = "Nested" +n1 = "aws.protocoltests.shared" +_s7 = "DateTime" +_s8 = "smithy.api#timestampFormat" +_s9 = "date-time" +_s10 = "DatetimeOffsetsOutput" +_s11 = "smithy.synthetic#originalShapeId" +_s12 = "aws.protocoltests.ec2#DatetimeOffsetsOutput" +_s13 = "smithy.api#output" +_s14 = "datetime" +_s15 = "EmptyInputAndEmptyOutputInput" +_s16 = "aws.protocoltests.ec2#EmptyInputAndEmptyOutputInput" +_s17 = "smithy.api#input" +_s18 = "EmptyInputAndEmptyOutputOutput" +_s19 = "aws.protocoltests.ec2#EmptyInputAndEmptyOutputOutput" +_s20 = "FractionalSecondsOutput" +_s21 = "aws.protocoltests.ec2#FractionalSecondsOutput" +_s22 = "GreetingWithErrorsOutput" +_s23 = "aws.protocoltests.ec2#GreetingWithErrorsOutput" +_s24 = "greeting" +_s25 = "IgnoresWrappingXmlNameOutput" +_s26 = "smithy.api#xmlName" +_s27 = "IgnoreMe" +_s28 = "aws.protocoltests.ec2#IgnoresWrappingXmlNameOutput" +_s29 = "foo" +_s30 = "InvalidGreeting" +_s31 = "Message" +_s32 = "ListWithMemberNamespace" +_s33 = "smithy.api#xmlNamespace" +_s34 = "member" +_s35 = "ListWithNamespace" +_s36 = "ListWithXmlName" +_s37 = "item" +_s38 = "StringList" +_s39 = "NestedStructWithList" +_s40 = "ListArg" +_s41 = "NestedStructuresInput" +_s42 = "aws.protocoltests.ec2#NestedStructuresInput" +_s43 = "NoInputAndOutputOutput" +_s44 = "aws.protocoltests.ec2#NoInputAndOutputOutput" +_s45 = "PutWithContentEncodingInput" +_s46 = "aws.protocoltests.ec2#PutWithContentEncodingInput" +_s47 = "encoding" +_s48 = "smithy.api#httpHeader" +_s49 = "Content-Encoding" +_s50 = "data" +_s51 = "QueryIdempotencyTokenAutoFillInput" +_s52 = "aws.protocoltests.ec2#QueryIdempotencyTokenAutoFillInput" +_s53 = "token" +_s54 = "GreetingStruct" +_s55 = "hi" +_s56 = "GreetingList" +_s57 = "QueryListsInput" +_s58 = "aws.protocoltests.ec2#QueryListsInput" +_s59 = "ComplexListArg" +_s60 = "ListArgWithXmlNameMember" +_s61 = "ListArgWithXmlName" +_s62 = "Hi" +_s63 = "NestedWithList" +_s64 = "EpochSeconds" +_s65 = "epoch-seconds" +_s66 = "QueryTimestampsInput" +_s67 = "aws.protocoltests.ec2#QueryTimestampsInput" +_s68 = "normalFormat" +_s69 = "epochMember" +_s70 = "epochTarget" +_s71 = "RecursiveXmlShapesOutput" +_s72 = "aws.protocoltests.ec2#RecursiveXmlShapesOutput" +_s73 = "nested" +_s74 = "RenamedListMembers" +_s75 = "FooEnum" +_s76 = "FOO" +_s77 = "smithy.api#enumValue" +_s78 = "BAZ" +_s79 = "Baz" +_s80 = "BAR" +_s81 = "Bar" +_s82 = "ONE" +_s83 = "1" +_s84 = "ZERO" +_s85 = "0" +_s86 = "SimpleInputParamsInput" +_s87 = "aws.protocoltests.ec2#SimpleInputParamsInput" +_s88 = "Bam" +_s89 = "FloatValue" +_s90 = "Boo" +_s91 = "Qux" +_s92 = "HasQueryName" +_s93 = "aws.protocols#ec2QueryName" +_s94 = "HasQueryAndXmlName" +_s95 = "hasQueryAndXmlName" +_s96 = "UsesXmlName" +_s97 = "usesXmlName" +_s98 = "DistinctQueryName" +_s99 = "QueryName" +_s100 = "DistinctQueryAndXmlName" +_s101 = "queryAndXmlName" +_s102 = "xmlAndQueryName" +_s103 = "DistinctXmlName" +_s104 = "xmlNameOnly" +_s105 = "SimpleScalarXmlPropertiesOutput" +_s106 = "aws.protocoltests.ec2#SimpleScalarXmlPropertiesOutput" +_s107 = "stringValue" +_s108 = "emptyStringValue" +_s109 = "trueBooleanValue" +_s110 = "falseBooleanValue" +_s111 = "byteValue" +_s112 = "shortValue" +_s113 = "integerValue" +_s114 = "longValue" +_s115 = "floatValue" +_s116 = "doubleValue" +_s117 = "DoubleDribble" +_s118 = "StructureListMember" +_s119 = "a" +_s120 = "value" +_s121 = "b" +_s122 = "other" +_s172 = "DatetimeOffsetsInput" +_s173 = "smithy.api#Unit" +_s180 = "FractionalSecondsInput" +_s181 = "GreetingWithErrorsInput" +_s184 = "IgnoresWrappingXmlNameInput" +_s185 = "NestedStructuresOutput" +_s186 = "NoInputAndOutputInput" +_s187 = "PutWithContentEncodingOutput" +_s188 = "QueryIdempotencyTokenAutoFillOutput" +_s189 = "QueryListsOutput" +_s190 = "QueryTimestampsOutput" +_s191 = "RecursiveXmlShapesInput" +_s192 = "SimpleInputParamsOutput" +_s193 = "SimpleScalarXmlPropertiesInput" +_s225 = "DatetimeOffsets" +_s226 = "EmptyInputAndEmptyOutput" +_s230 = "FractionalSeconds" +_s231 = "GreetingWithErrors" +_s233 = "IgnoresWrappingXmlName" +_s234 = "NestedStructures" +_s235 = "NoInputAndOutput" +_s236 = "PutWithContentEncoding" +_s237 = "smithy.api#requestCompression" +_s238 = "QueryIdempotencyTokenAutoFill" +_s239 = "QueryLists" +_s240 = "QueryTimestamps" +_s241 = "RecursiveXmlShapes" +_s242 = "SimpleInputParams" +_s243 = "SimpleScalarXmlProperties" + +COMPLEX_NESTED_ERROR_DATA: StaticSchema = ( + 18, + n0, + _s0, + 0, + (_s1,), + ((3, 0),), +) + +COMPLEX_ERROR: StaticSchema = ( + 18, + n0, + _s2, + {_s3: _s4}, + (_s5, _s6), + ((3, 0), (COMPLEX_NESTED_ERROR_DATA, 0)), +) + +DATE_TIME: StaticSchema = ( + 4, + n1, + _s7, + {_s8: _s9}, +) + +DATETIME_OFFSETS_OUTPUT: StaticSchema = ( + 18, + n0, + _s10, + {_s11: _s12, _s13: None}, + (_s14,), + ((DATE_TIME, 0),), +) + +DATETIME_OFFSETS_INPUT: StaticSchema = ( + 18, + n0, + _s172, + {_s11: _s173, _s17: None}, +) + +DATETIME_OFFSETS: StaticOperationSchema = ( + 23, + n0, + _s225, + 0, + DATETIME_OFFSETS_INPUT, + DATETIME_OFFSETS_OUTPUT, + (), +) + +EMPTY_INPUT_AND_EMPTY_OUTPUT_INPUT: StaticSchema = ( + 18, + n0, + _s15, + {_s11: _s16, _s17: None}, +) + +EMPTY_INPUT_AND_EMPTY_OUTPUT_OUTPUT: StaticSchema = ( + 18, + n0, + _s18, + {_s11: _s19, _s13: None}, +) + +EMPTY_INPUT_AND_EMPTY_OUTPUT: StaticOperationSchema = ( + 23, + n0, + _s226, + 0, + EMPTY_INPUT_AND_EMPTY_OUTPUT_INPUT, + EMPTY_INPUT_AND_EMPTY_OUTPUT_OUTPUT, + (), +) + +FRACTIONAL_SECONDS_OUTPUT: StaticSchema = ( + 18, + n0, + _s20, + {_s11: _s21, _s13: None}, + (_s14,), + ((DATE_TIME, 0),), +) + +FRACTIONAL_SECONDS_INPUT: StaticSchema = ( + 18, + n0, + _s180, + {_s11: _s173, _s17: None}, +) + +FRACTIONAL_SECONDS: StaticOperationSchema = ( + 23, + n0, + _s230, + 0, + FRACTIONAL_SECONDS_INPUT, + FRACTIONAL_SECONDS_OUTPUT, + (), +) + +GREETING_WITH_ERRORS_OUTPUT: StaticSchema = ( + 18, + n0, + _s22, + {_s11: _s23, _s13: None}, + (_s24,), + ((3, 0),), +) + +GREETING_WITH_ERRORS_INPUT: StaticSchema = ( + 18, + n0, + _s181, + {_s11: _s173, _s17: None}, +) + +GREETING_WITH_ERRORS: StaticOperationSchema = ( + 23, + n0, + _s231, + 0, + GREETING_WITH_ERRORS_INPUT, + GREETING_WITH_ERRORS_OUTPUT, + (COMPLEX_ERROR, lambda: INVALID_GREETING), +) + +IGNORES_WRAPPING_XML_NAME_OUTPUT: StaticSchema = ( + 18, + n0, + _s25, + {_s26: _s27, _s11: _s28, _s13: None}, + (_s29,), + ((3, 0),), +) + +IGNORES_WRAPPING_XML_NAME_INPUT: StaticSchema = ( + 18, + n0, + _s184, + {_s11: _s173, _s17: None}, +) + +IGNORES_WRAPPING_XML_NAME: StaticOperationSchema = ( + 23, + n0, + _s233, + 0, + IGNORES_WRAPPING_XML_NAME_INPUT, + IGNORES_WRAPPING_XML_NAME_OUTPUT, + (), +) + +INVALID_GREETING: StaticSchema = ( + 18, + n0, + _s30, + {_s3: _s4}, + (_s31,), + ((3, 0),), +) + +LIST_WITH_MEMBER_NAMESPACE: StaticSchema = ( + 16, + n0, + _s32, + {_s33: MappingProxyType({"uri": "https://xml-list.example.com"})}, + (_s34,), + ((3, {_s33: MappingProxyType({"uri": "https://xml-member.example.com"})}),), +) + +LIST_WITH_NAMESPACE: StaticSchema = ( + 16, + n0, + _s35, + {_s33: MappingProxyType({"uri": "https://xml-list.example.com"})}, + (_s34,), + ((3, 0),), +) + +LIST_WITH_XML_NAME: StaticSchema = ( + 16, + n0, + _s36, + 0, + (_s34,), + ((3, {_s26: _s37}),), +) + +STRING_LIST: StaticSchema = ( + 16, + n1, + _s38, + 0, + (_s34,), + ((3, 0),), +) + +NESTED_STRUCT_WITH_LIST: StaticSchema = ( + 18, + n0, + _s39, + 0, + (_s40,), + ((STRING_LIST, 0),), +) + +NESTED_STRUCTURES_INPUT: StaticSchema = ( + 18, + n0, + _s41, + {_s11: _s42, _s17: None}, + (_s6,), + ((lambda: schemas.STRUCT_ARG, 0),), +) + +NESTED_STRUCTURES_OUTPUT: StaticSchema = ( + 18, + n0, + _s185, + {_s11: _s173, _s13: None}, +) + +NESTED_STRUCTURES: StaticOperationSchema = ( + 23, + n0, + _s234, + 0, + NESTED_STRUCTURES_INPUT, + NESTED_STRUCTURES_OUTPUT, + (), +) + +NO_INPUT_AND_OUTPUT_OUTPUT: StaticSchema = ( + 18, + n0, + _s43, + {_s11: _s44, _s13: None}, +) + +NO_INPUT_AND_OUTPUT_INPUT: StaticSchema = ( + 18, + n0, + _s186, + {_s11: _s173, _s17: None}, +) + +NO_INPUT_AND_OUTPUT: StaticOperationSchema = ( + 23, + n0, + _s235, + 0, + NO_INPUT_AND_OUTPUT_INPUT, + NO_INPUT_AND_OUTPUT_OUTPUT, + (), +) + +PUT_WITH_CONTENT_ENCODING_INPUT: StaticSchema = ( + 18, + n0, + _s45, + {_s11: _s46, _s17: None}, + (_s47, _s50), + ((3, {_s48: _s49}), (3, 0)), +) + +PUT_WITH_CONTENT_ENCODING_OUTPUT: StaticSchema = ( + 18, + n0, + _s187, + {_s11: _s173, _s13: None}, +) + +PUT_WITH_CONTENT_ENCODING: StaticOperationSchema = ( + 23, + n0, + _s236, + {_s237: MappingProxyType({"encodings": ("gzip",)})}, + PUT_WITH_CONTENT_ENCODING_INPUT, + PUT_WITH_CONTENT_ENCODING_OUTPUT, + (), +) + +QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL_INPUT: StaticSchema = ( + 18, + n0, + _s51, + {_s11: _s52, _s17: None}, + (_s53,), + ((3, 2),), +) + +QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL_OUTPUT: StaticSchema = ( + 18, + n0, + _s188, + {_s11: _s173, _s13: None}, +) + +QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL: StaticOperationSchema = ( + 23, + n0, + _s238, + 0, + QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL_INPUT, + QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL_OUTPUT, + (), +) + +GREETING_STRUCT: StaticSchema = ( + 18, + n1, + _s54, + 0, + (_s55,), + ((3, 0),), +) + +GREETING_LIST: StaticSchema = ( + 16, + n1, + _s56, + 0, + (_s34,), + ((GREETING_STRUCT, 0),), +) + +QUERY_LISTS_INPUT: StaticSchema = ( + 18, + n0, + _s57, + {_s11: _s58, _s17: None}, + (_s40, _s59, _s60, _s61, _s63), + ( + (STRING_LIST, 0), + (GREETING_LIST, 0), + (LIST_WITH_XML_NAME, 0), + (LIST_WITH_XML_NAME, {_s26: _s62}), + (NESTED_STRUCT_WITH_LIST, 0), + ), +) + +QUERY_LISTS_OUTPUT: StaticSchema = ( + 18, + n0, + _s189, + {_s11: _s173, _s13: None}, +) + +QUERY_LISTS: StaticOperationSchema = ( + 23, + n0, + _s239, + 0, + QUERY_LISTS_INPUT, + QUERY_LISTS_OUTPUT, + (), +) + +EPOCH_SECONDS: StaticSchema = ( + 4, + n1, + _s64, + {_s8: _s65}, +) + +QUERY_TIMESTAMPS_INPUT: StaticSchema = ( + 18, + n0, + _s66, + {_s11: _s67, _s17: None}, + (_s68, _s69, _s70), + ((4, 0), (4, {_s8: _s65}), (EPOCH_SECONDS, 0)), +) + +QUERY_TIMESTAMPS_OUTPUT: StaticSchema = ( + 18, + n0, + _s190, + {_s11: _s173, _s13: None}, +) + +QUERY_TIMESTAMPS: StaticOperationSchema = ( + 23, + n0, + _s240, + 0, + QUERY_TIMESTAMPS_INPUT, + QUERY_TIMESTAMPS_OUTPUT, + (), +) + +RECURSIVE_XML_SHAPES_OUTPUT: StaticSchema = ( + 18, + n0, + _s71, + {_s11: _s72, _s13: None}, + (_s73,), + ((lambda: schemas.RECURSIVE_XML_SHAPES_OUTPUT_NESTED1, 0),), +) + +RECURSIVE_XML_SHAPES_INPUT: StaticSchema = ( + 18, + n0, + _s191, + {_s11: _s173, _s17: None}, +) + +RECURSIVE_XML_SHAPES: StaticOperationSchema = ( + 23, + n0, + _s241, + 0, + RECURSIVE_XML_SHAPES_INPUT, + RECURSIVE_XML_SHAPES_OUTPUT, + (), +) + +RENAMED_LIST_MEMBERS: StaticSchema = ( + 16, + n0, + _s74, + 0, + (_s34,), + ((3, {_s26: _s37}),), +) + +FOO_ENUM: StaticSchema = ( + 14, + n1, + _s75, + 0, + (_s76, _s78, _s80, _s82, _s84), + ( + (-1, {_s77: _s1}), + (-1, {_s77: _s79}), + (-1, {_s77: _s81}), + (-1, {_s77: _s83}), + (-1, {_s77: _s85}), + ), +) + +SIMPLE_INPUT_PARAMS_INPUT: StaticSchema = ( + 18, + n0, + _s86, + {_s11: _s87, _s17: None}, + ( + _s1, + _s81, + _s79, + _s88, + _s89, + _s90, + _s91, + _s75, + _s92, + _s94, + _s96, + _s98, + _s100, + _s103, + ), + ( + (3, 0), + (3, 0), + (2, 0), + (7, 0), + (9, 0), + (10, 0), + (1, 0), + (FOO_ENUM, 0), + (3, {_s93: _s92}), + (3, {_s93: _s94, _s26: _s95}), + (3, {_s26: _s97}), + (3, {_s93: _s99}), + (3, {_s93: _s101, _s26: _s102}), + (3, {_s26: _s104}), + ), +) + +SIMPLE_INPUT_PARAMS_OUTPUT: StaticSchema = ( + 18, + n0, + _s192, + {_s11: _s173, _s13: None}, +) + +SIMPLE_INPUT_PARAMS: StaticOperationSchema = ( + 23, + n0, + _s242, + 0, + SIMPLE_INPUT_PARAMS_INPUT, + SIMPLE_INPUT_PARAMS_OUTPUT, + (), +) + +SIMPLE_SCALAR_XML_PROPERTIES_OUTPUT: StaticSchema = ( + 18, + n0, + _s105, + {_s11: _s106, _s13: None}, + (_s107, _s108, _s109, _s110, _s111, _s112, _s113, _s114, _s115, _s116), + ( + (3, {_s93: _s27}), + (3, 0), + (2, 0), + (2, 0), + (5, 0), + (6, 0), + (7, 0), + (8, 0), + (9, 0), + (10, {_s26: _s117}), + ), +) + +SIMPLE_SCALAR_XML_PROPERTIES_INPUT: StaticSchema = ( + 18, + n0, + _s193, + {_s11: _s173, _s17: None}, +) + +SIMPLE_SCALAR_XML_PROPERTIES: StaticOperationSchema = ( + 23, + n0, + _s243, + 0, + SIMPLE_SCALAR_XML_PROPERTIES_INPUT, + SIMPLE_SCALAR_XML_PROPERTIES_OUTPUT, + (), +) + +STRUCTURE_LIST_MEMBER: StaticSchema = ( + 18, + n0, + _s118, + 0, + (_s119, _s121), + ((3, {_s26: _s120}), (3, {_s26: _s122})), +) diff --git a/codegen-output-py/ec2-query-client/src/ec2query_client/_private/schemas_1.py b/codegen-output-py/ec2-query-client/src/ec2query_client/_private/schemas_1.py new file mode 100644 index 000000000..a4b3faddf --- /dev/null +++ b/codegen-output-py/ec2-query-client/src/ec2query_client/_private/schemas_1.py @@ -0,0 +1,684 @@ +from types import MappingProxyType + +from smithy_core._schema_compact import StaticOperationSchema, StaticSchema + +from . import schemas + +n0 = "aws.protocoltests.ec2" +n1 = "aws.protocoltests.shared" +_s8 = "smithy.api#timestampFormat" +_s9 = "date-time" +_s11 = "smithy.synthetic#originalShapeId" +_s13 = "smithy.api#output" +_s17 = "smithy.api#input" +_s26 = "smithy.api#xmlName" +_s29 = "foo" +_s33 = "smithy.api#xmlNamespace" +_s34 = "member" +_s37 = "item" +_s50 = "data" +_s65 = "epoch-seconds" +_s73 = "nested" +_s77 = "smithy.api#enumValue" +_s120 = "value" +_s123 = "StructureList" +_s124 = "FooEnumList" +_s125 = "FooEnumSet" +_s126 = "FooEnumMap" +_s127 = "key" +_s128 = "XmlEnumsOutput" +_s129 = "aws.protocoltests.ec2#XmlEnumsOutput" +_s130 = "fooEnum1" +_s131 = "fooEnum2" +_s132 = "fooEnum3" +_s133 = "fooEnumList" +_s134 = "fooEnumSet" +_s135 = "fooEnumMap" +_s136 = "IntegerEnum" +_s137 = "A" +_s138 = "B" +_s139 = "C" +_s140 = "IntegerEnumList" +_s141 = "IntegerEnumSet" +_s142 = "IntegerEnumMap" +_s143 = "XmlIntEnumsOutput" +_s144 = "aws.protocoltests.ec2#XmlIntEnumsOutput" +_s145 = "intEnum1" +_s146 = "intEnum2" +_s147 = "intEnum3" +_s148 = "intEnumList" +_s149 = "intEnumSet" +_s150 = "intEnumMap" +_s151 = "XmlNamespacedList" +_s152 = "XmlNamespaceNested" +_s153 = "values" +_s154 = "XmlNamespacesOutput" +_s155 = "aws.protocoltests.ec2#XmlNamespacesOutput" +_s156 = "HttpDate" +_s157 = "http-date" +_s158 = "XmlTimestampsOutput" +_s159 = "aws.protocoltests.ec2#XmlTimestampsOutput" +_s160 = "normal" +_s161 = "dateTime" +_s162 = "dateTimeOnTarget" +_s163 = "epochSeconds" +_s164 = "epochSecondsOnTarget" +_s165 = "httpDate" +_s166 = "httpDateOnTarget" +_s167 = "BooleanList" +_s168 = "IntegerList" +_s169 = "NestedStringList" +_s170 = "StringSet" +_s171 = "TimestampList" +_s173 = "smithy.api#Unit" +_s174 = "EndpointOperationInput" +_s175 = "EndpointOperationOutput" +_s176 = "EndpointWithHostLabelOperationInput" +_s177 = "aws.protocoltests.ec2#HostLabelInput" +_s178 = "label" +_s179 = "EndpointWithHostLabelOperationOutput" +_s182 = "HostWithPathOperationInput" +_s183 = "HostWithPathOperationOutput" +_s194 = "XmlBlobsInput" +_s195 = "XmlBlobsOutput2" +_s196 = "aws.protocoltests.ec2#XmlBlobsOutput" +_s197 = "XmlEmptyBlobsInput" +_s198 = "XmlEmptyBlobsOutput" +_s199 = "XmlEmptyListsInput" +_s200 = "XmlEmptyListsOutput" +_s201 = "aws.protocoltests.ec2#XmlListsOutput" +_s202 = "stringList" +_s203 = "stringSet" +_s204 = "integerList" +_s205 = "booleanList" +_s206 = "timestampList" +_s207 = "enumList" +_s208 = "nestedStringList" +_s209 = "renamedListMembers" +_s210 = "renamed" +_s211 = "flattenedList" +_s212 = "smithy.api#xmlFlattened" +_s213 = "flattenedList2" +_s214 = "customName" +_s215 = "flattenedListWithMemberNamespace" +_s216 = "flattenedListWithNamespace" +_s217 = "structureList" +_s218 = "myStructureList" +_s219 = "XmlEnumsInput" +_s220 = "XmlIntEnumsInput" +_s221 = "XmlListsInput" +_s222 = "XmlListsOutput2" +_s223 = "XmlNamespacesInput" +_s224 = "XmlTimestampsInput" +_s227 = "EndpointOperation" +_s228 = "smithy.api#endpoint" +_s229 = "EndpointWithHostLabelOperation" +_s232 = "HostWithPathOperation" +_s244 = "XmlBlobs" +_s245 = "XmlEmptyBlobs" +_s246 = "XmlEmptyLists" +_s247 = "XmlEnums" +_s248 = "XmlIntEnums" +_s249 = "XmlLists" +_s250 = "XmlNamespaces" +_s251 = "XmlTimestamps" +_s252 = "AwsEc2" +_s253 = "aws.api#service" +_s254 = "aws.auth#sigv4" +_s255 = "aws.protocols#ec2Query" +_s256 = "RecursiveXmlShapesOutputNested1" +_s257 = "RecursiveXmlShapesOutputNested2" +_s258 = "bar" +_s259 = "recursiveMember" +_s260 = "StructArg" +_s261 = "StringArg" +_s262 = "OtherArg" +_s263 = "RecursiveArg" + +STRUCTURE_LIST: StaticSchema = ( + 16, + n0, + _s123, + 0, + (_s34,), + ((lambda: schemas.STRUCTURE_LIST_MEMBER, {_s26: _s37}),), +) + +FOO_ENUM_LIST: StaticSchema = ( + 16, + n1, + _s124, + 0, + (_s34,), + ((lambda: schemas.FOO_ENUM, 0),), +) + +FOO_ENUM_SET: StaticSchema = ( + 16, + n1, + _s125, + 0, + (_s34,), + ((lambda: schemas.FOO_ENUM, 0),), +) + +FOO_ENUM_MAP: StaticSchema = ( + 17, + n1, + _s126, + 0, + (_s127, _s120), + ((3, 0), (lambda: schemas.FOO_ENUM, 0)), +) + +XML_ENUMS_OUTPUT: StaticSchema = ( + 18, + n0, + _s128, + {_s11: _s129, _s13: None}, + (_s130, _s131, _s132, _s133, _s134, _s135), + ( + (lambda: schemas.FOO_ENUM, 0), + (lambda: schemas.FOO_ENUM, 0), + (lambda: schemas.FOO_ENUM, 0), + (FOO_ENUM_LIST, 0), + (FOO_ENUM_SET, 0), + (FOO_ENUM_MAP, 0), + ), +) + +XML_ENUMS_INPUT: StaticSchema = ( + 18, + n0, + _s219, + {_s11: _s173, _s17: None}, +) + +XML_ENUMS: StaticOperationSchema = ( + 23, + n0, + _s247, + 0, + XML_ENUMS_INPUT, + XML_ENUMS_OUTPUT, + (), +) + +INTEGER_ENUM: StaticSchema = ( + 15, + n1, + _s136, + 0, + (_s137, _s138, _s139), + ((-1, {_s77: 1}), (-1, {_s77: 2}), (-1, {_s77: 3})), +) + +INTEGER_ENUM_LIST: StaticSchema = ( + 16, + n1, + _s140, + 0, + (_s34,), + ((INTEGER_ENUM, 0),), +) + +INTEGER_ENUM_SET: StaticSchema = ( + 16, + n1, + _s141, + 0, + (_s34,), + ((INTEGER_ENUM, 0),), +) + +INTEGER_ENUM_MAP: StaticSchema = ( + 17, + n1, + _s142, + 0, + (_s127, _s120), + ((3, 0), (INTEGER_ENUM, 0)), +) + +XML_INT_ENUMS_OUTPUT: StaticSchema = ( + 18, + n0, + _s143, + {_s11: _s144, _s13: None}, + (_s145, _s146, _s147, _s148, _s149, _s150), + ( + (INTEGER_ENUM, 0), + (INTEGER_ENUM, 0), + (INTEGER_ENUM, 0), + (INTEGER_ENUM_LIST, 0), + (INTEGER_ENUM_SET, 0), + (INTEGER_ENUM_MAP, 0), + ), +) + +XML_INT_ENUMS_INPUT: StaticSchema = ( + 18, + n0, + _s220, + {_s11: _s173, _s17: None}, +) + +XML_INT_ENUMS: StaticOperationSchema = ( + 23, + n0, + _s248, + 0, + XML_INT_ENUMS_INPUT, + XML_INT_ENUMS_OUTPUT, + (), +) + +XML_NAMESPACED_LIST: StaticSchema = ( + 16, + n0, + _s151, + 0, + (_s34,), + ((3, {_s33: MappingProxyType({"uri": "http://bux.com"})}),), +) + +XML_NAMESPACE_NESTED: StaticSchema = ( + 18, + n0, + _s152, + {_s33: MappingProxyType({"uri": "http://foo.com"})}, + (_s29, _s153), + ( + (3, {_s33: MappingProxyType({"uri": "http://baz.com", "prefix": "baz"})}), + (XML_NAMESPACED_LIST, {_s33: MappingProxyType({"uri": "http://qux.com"})}), + ), +) + +XML_NAMESPACES_OUTPUT: StaticSchema = ( + 18, + n0, + _s154, + {_s33: MappingProxyType({"uri": "http://foo.com"}), _s11: _s155, _s13: None}, + (_s73,), + ((XML_NAMESPACE_NESTED, 0),), +) + +XML_NAMESPACES_INPUT: StaticSchema = ( + 18, + n0, + _s223, + {_s11: _s173, _s17: None}, +) + +XML_NAMESPACES: StaticOperationSchema = ( + 23, + n0, + _s250, + 0, + XML_NAMESPACES_INPUT, + XML_NAMESPACES_OUTPUT, + (), +) + +HTTP_DATE: StaticSchema = ( + 4, + n1, + _s156, + {_s8: _s157}, +) + +XML_TIMESTAMPS_OUTPUT: StaticSchema = ( + 18, + n0, + _s158, + {_s11: _s159, _s13: None}, + (_s160, _s161, _s162, _s163, _s164, _s165, _s166), + ( + (4, 0), + (4, {_s8: _s9}), + (lambda: schemas.DATE_TIME, 0), + (4, {_s8: _s65}), + (lambda: schemas.EPOCH_SECONDS, 0), + (4, {_s8: _s157}), + (HTTP_DATE, 0), + ), +) + +XML_TIMESTAMPS_INPUT: StaticSchema = ( + 18, + n0, + _s224, + {_s11: _s173, _s17: None}, +) + +XML_TIMESTAMPS: StaticOperationSchema = ( + 23, + n0, + _s251, + 0, + XML_TIMESTAMPS_INPUT, + XML_TIMESTAMPS_OUTPUT, + (), +) + +BOOLEAN_LIST: StaticSchema = ( + 16, + n1, + _s167, + 0, + (_s34,), + ((2, 0),), +) + +INTEGER_LIST: StaticSchema = ( + 16, + n1, + _s168, + 0, + (_s34,), + ((7, 0),), +) + +NESTED_STRING_LIST: StaticSchema = ( + 16, + n1, + _s169, + 0, + (_s34,), + ((lambda: schemas.STRING_LIST, 0),), +) + +STRING_SET: StaticSchema = ( + 16, + n1, + _s170, + 0, + (_s34,), + ((3, 0),), +) + +TIMESTAMP_LIST: StaticSchema = ( + 16, + n1, + _s171, + 0, + (_s34,), + ((4, 0),), +) + +ENDPOINT_OPERATION_INPUT: StaticSchema = ( + 18, + n0, + _s174, + {_s11: _s173, _s17: None}, +) + +ENDPOINT_OPERATION_OUTPUT: StaticSchema = ( + 18, + n0, + _s175, + {_s11: _s173, _s13: None}, +) + +ENDPOINT_OPERATION: StaticOperationSchema = ( + 23, + n0, + _s227, + {_s228: MappingProxyType({"hostPrefix": "foo."})}, + ENDPOINT_OPERATION_INPUT, + ENDPOINT_OPERATION_OUTPUT, + (), +) + +ENDPOINT_WITH_HOST_LABEL_OPERATION_INPUT: StaticSchema = ( + 18, + n0, + _s176, + {_s11: _s177, _s17: None}, + (_s178,), + ((3, 257),), +) + +ENDPOINT_WITH_HOST_LABEL_OPERATION_OUTPUT: StaticSchema = ( + 18, + n0, + _s179, + {_s11: _s173, _s13: None}, +) + +ENDPOINT_WITH_HOST_LABEL_OPERATION: StaticOperationSchema = ( + 23, + n0, + _s229, + {_s228: MappingProxyType({"hostPrefix": "foo.{label}."})}, + ENDPOINT_WITH_HOST_LABEL_OPERATION_INPUT, + ENDPOINT_WITH_HOST_LABEL_OPERATION_OUTPUT, + (), +) + +HOST_WITH_PATH_OPERATION_INPUT: StaticSchema = ( + 18, + n0, + _s182, + {_s11: _s173, _s17: None}, +) + +HOST_WITH_PATH_OPERATION_OUTPUT: StaticSchema = ( + 18, + n0, + _s183, + {_s11: _s173, _s13: None}, +) + +HOST_WITH_PATH_OPERATION: StaticOperationSchema = ( + 23, + n0, + _s232, + 0, + HOST_WITH_PATH_OPERATION_INPUT, + HOST_WITH_PATH_OPERATION_OUTPUT, + (), +) + +XML_BLOBS_INPUT: StaticSchema = ( + 18, + n0, + _s194, + {_s11: _s173, _s17: None}, +) + +XML_BLOBS_OUTPUT2: StaticSchema = ( + 18, + n0, + _s195, + {_s11: _s196, _s13: None}, + (_s50,), + ((1, 0),), +) + +XML_BLOBS: StaticOperationSchema = ( + 23, + n0, + _s244, + 0, + XML_BLOBS_INPUT, + XML_BLOBS_OUTPUT2, + (), +) + +XML_EMPTY_BLOBS_INPUT: StaticSchema = ( + 18, + n0, + _s197, + {_s11: _s173, _s17: None}, +) + +XML_EMPTY_BLOBS_OUTPUT: StaticSchema = ( + 18, + n0, + _s198, + {_s11: _s196, _s13: None}, + (_s50,), + ((1, 0),), +) + +XML_EMPTY_BLOBS: StaticOperationSchema = ( + 23, + n0, + _s245, + 0, + XML_EMPTY_BLOBS_INPUT, + XML_EMPTY_BLOBS_OUTPUT, + (), +) + +XML_EMPTY_LISTS_INPUT: StaticSchema = ( + 18, + n0, + _s199, + {_s11: _s173, _s17: None}, +) + +XML_EMPTY_LISTS_OUTPUT: StaticSchema = ( + 18, + n0, + _s200, + {_s11: _s201, _s13: None}, + ( + _s202, + _s203, + _s204, + _s205, + _s206, + _s207, + _s148, + _s208, + _s209, + _s211, + _s213, + _s215, + _s216, + _s217, + ), + ( + (lambda: schemas.STRING_LIST, 0), + (STRING_SET, 0), + (INTEGER_LIST, 0), + (BOOLEAN_LIST, 0), + (TIMESTAMP_LIST, 0), + (FOO_ENUM_LIST, 0), + (INTEGER_ENUM_LIST, 0), + (NESTED_STRING_LIST, 0), + (lambda: schemas.RENAMED_LIST_MEMBERS, {_s26: _s210}), + (lambda: schemas.RENAMED_LIST_MEMBERS, {_s212: None}), + (lambda: schemas.RENAMED_LIST_MEMBERS, {_s212: None, _s26: _s214}), + (lambda: schemas.LIST_WITH_MEMBER_NAMESPACE, {_s212: None}), + (lambda: schemas.LIST_WITH_NAMESPACE, {_s212: None}), + (STRUCTURE_LIST, {_s26: _s218}), + ), +) + +XML_EMPTY_LISTS: StaticOperationSchema = ( + 23, + n0, + _s246, + 0, + XML_EMPTY_LISTS_INPUT, + XML_EMPTY_LISTS_OUTPUT, + (), +) + +XML_LISTS_INPUT: StaticSchema = ( + 18, + n0, + _s221, + {_s11: _s173, _s17: None}, +) + +XML_LISTS_OUTPUT2: StaticSchema = ( + 18, + n0, + _s222, + {_s11: _s201, _s13: None}, + ( + _s202, + _s203, + _s204, + _s205, + _s206, + _s207, + _s148, + _s208, + _s209, + _s211, + _s213, + _s215, + _s216, + _s217, + ), + ( + (lambda: schemas.STRING_LIST, 0), + (STRING_SET, 0), + (INTEGER_LIST, 0), + (BOOLEAN_LIST, 0), + (TIMESTAMP_LIST, 0), + (FOO_ENUM_LIST, 0), + (INTEGER_ENUM_LIST, 0), + (NESTED_STRING_LIST, 0), + (lambda: schemas.RENAMED_LIST_MEMBERS, {_s26: _s210}), + (lambda: schemas.RENAMED_LIST_MEMBERS, {_s212: None}), + (lambda: schemas.RENAMED_LIST_MEMBERS, {_s212: None, _s26: _s214}), + (lambda: schemas.LIST_WITH_MEMBER_NAMESPACE, {_s212: None}), + (lambda: schemas.LIST_WITH_NAMESPACE, {_s212: None}), + (STRUCTURE_LIST, {_s26: _s218}), + ), +) + +XML_LISTS: StaticOperationSchema = ( + 23, + n0, + _s249, + 0, + XML_LISTS_INPUT, + XML_LISTS_OUTPUT2, + (), +) + +AWS_EC2: StaticSchema = ( + 21, + n0, + _s252, + { + _s253: MappingProxyType({"sdkId": "EC2 Protocol"}), + _s254: MappingProxyType({"name": "ec2query"}), + _s255: None, + _s33: MappingProxyType({"uri": "https://example.com/"}), + }, +) + +RECURSIVE_XML_SHAPES_OUTPUT_NESTED1: StaticSchema = ( + 18, + n0, + _s256, + 0, + (_s29, _s73), + ((3, 0), (lambda: RECURSIVE_XML_SHAPES_OUTPUT_NESTED2, 0)), +) + +RECURSIVE_XML_SHAPES_OUTPUT_NESTED2: StaticSchema = ( + 18, + n0, + _s257, + 0, + (_s258, _s259), + ((3, 0), (RECURSIVE_XML_SHAPES_OUTPUT_NESTED1, 0)), +) + +STRUCT_ARG: StaticSchema = ( + 18, + n0, + _s260, + 0, + (_s261, _s262, _s263), + ((3, 0), (2, 0), (lambda: STRUCT_ARG, 0)), +) diff --git a/codegen-output-py/ec2-query-client/src/ec2query_client/aio/__init__.py b/codegen-output-py/ec2-query-client/src/ec2query_client/aio/__init__.py new file mode 100644 index 000000000..ae8d36a98 --- /dev/null +++ b/codegen-output-py/ec2-query-client/src/ec2query_client/aio/__init__.py @@ -0,0 +1,19 @@ +from importlib import import_module +from typing import TYPE_CHECKING, Any + +if TYPE_CHECKING: + from .client import AsyncEC2ProtocolClient + from .config import AsyncEC2ProtocolConfig + +__all__ = ["AsyncEC2ProtocolClient", "AsyncEC2ProtocolConfig"] + +_EXPORTS = { + "AsyncEC2ProtocolClient": ".client", + "AsyncEC2ProtocolConfig": ".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}") diff --git a/codegen-output-py/ec2-query-client/src/ec2query_client/aio/client.py b/codegen-output-py/ec2-query-client/src/ec2query_client/aio/client.py new file mode 100644 index 000000000..b782ff3ba --- /dev/null +++ b/codegen-output-py/ec2-query-client/src/ec2query_client/aio/client.py @@ -0,0 +1,928 @@ +from __future__ import annotations + +from typing import Unpack, cast, overload + +from smithy_aws_core.aio.identity.chain import AsyncIdentityChain +from smithy_aws_core.config.types import ConfigSource +from smithy_aws_core.identity.components import AWSCredentialsIdentity +from smithy_core.aio.client import AsyncClient +from smithy_http.aio.interfaces import AsyncHTTPClient +from smithy_http.plugins import user_agent_plugin + +from ec2query_client import models +from ec2query_client.aio.config import AsyncEC2ProtocolConfig, Plugin +from ec2query_client.aio.user_agent import aws_user_agent_plugin + + +class AsyncEC2ProtocolClient(AsyncClient[AsyncEC2ProtocolConfig]): + "An EC2 query service that sends query requests and XML responses." + + _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + + @overload + async def datetime_offsets( + self, + request: models.DatetimeOffsetsInput | models.DatetimeOffsetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.DatetimeOffsetsOutput: ... + + @overload + async def datetime_offsets( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.DatetimeOffsetsInputDict], + ) -> models.DatetimeOffsetsOutput: + """ + Invokes the DatetimeOffsets operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def datetime_offsets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.DatetimeOffsetsOutput: + return await self._invoke( + self._select_input(models.DATETIME_OFFSETS, args, kwargs), + models.DATETIME_OFFSETS, + [], + plugins, + ) + + @overload + async def empty_input_and_empty_output( + self, + request: models.EmptyInputAndEmptyOutputInput + | models.EmptyInputAndEmptyOutputInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.EmptyInputAndEmptyOutputOutput: ... + + @overload + async def empty_input_and_empty_output( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.EmptyInputAndEmptyOutputInputDict], + ) -> models.EmptyInputAndEmptyOutputOutput: + """ + The example tests how requests and responses are serialized when there's + no request or response members. + + While this should be rare, code generators must support this. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def empty_input_and_empty_output( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.EmptyInputAndEmptyOutputOutput: + return await self._invoke( + self._select_input(models.EMPTY_INPUT_AND_EMPTY_OUTPUT, args, kwargs), + models.EMPTY_INPUT_AND_EMPTY_OUTPUT, + [], + plugins, + ) + + @overload + async def endpoint_operation( + self, + request: models.EndpointOperationInput | models.EndpointOperationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.EndpointOperationOutput: ... + + @overload + async def endpoint_operation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.EndpointOperationInputDict], + ) -> models.EndpointOperationOutput: + """ + Invokes the EndpointOperation operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def endpoint_operation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.EndpointOperationOutput: + return await self._invoke( + self._select_input(models.ENDPOINT_OPERATION, args, kwargs), + models.ENDPOINT_OPERATION, + [], + plugins, + ) + + @overload + async def endpoint_with_host_label_operation( + self, + request: models.EndpointWithHostLabelOperationInput + | models.EndpointWithHostLabelOperationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.EndpointWithHostLabelOperationOutput: ... + + @overload + async def endpoint_with_host_label_operation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.EndpointWithHostLabelOperationInputDict], + ) -> models.EndpointWithHostLabelOperationOutput: + """ + Invokes the EndpointWithHostLabelOperation operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def endpoint_with_host_label_operation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.EndpointWithHostLabelOperationOutput: + return await self._invoke( + self._select_input(models.ENDPOINT_WITH_HOST_LABEL_OPERATION, args, kwargs), + models.ENDPOINT_WITH_HOST_LABEL_OPERATION, + [], + plugins, + ) + + @overload + async def fractional_seconds( + self, + request: models.FractionalSecondsInput | models.FractionalSecondsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.FractionalSecondsOutput: ... + + @overload + async def fractional_seconds( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.FractionalSecondsInputDict], + ) -> models.FractionalSecondsOutput: + """ + Invokes the FractionalSeconds operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def fractional_seconds( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.FractionalSecondsOutput: + return await self._invoke( + self._select_input(models.FRACTIONAL_SECONDS, args, kwargs), + models.FRACTIONAL_SECONDS, + [], + plugins, + ) + + @overload + async def greeting_with_errors( + self, + request: models.GreetingWithErrorsInput | models.GreetingWithErrorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.GreetingWithErrorsOutput: ... + + @overload + async def greeting_with_errors( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.GreetingWithErrorsInputDict], + ) -> models.GreetingWithErrorsOutput: + """ + This operation has three possible return values: + + 1. A successful response in the form of GreetingWithErrorsOutput + 2. An InvalidGreeting error. + 3. A BadRequest error. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def greeting_with_errors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.GreetingWithErrorsOutput: + return await self._invoke( + self._select_input(models.GREETING_WITH_ERRORS, args, kwargs), + models.GREETING_WITH_ERRORS, + [], + plugins, + ) + + @overload + async def host_with_path_operation( + self, + request: models.HostWithPathOperationInput + | models.HostWithPathOperationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HostWithPathOperationOutput: ... + + @overload + async def host_with_path_operation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HostWithPathOperationInputDict], + ) -> models.HostWithPathOperationOutput: + """ + Invokes the HostWithPathOperation operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def host_with_path_operation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HostWithPathOperationOutput: + return await self._invoke( + self._select_input(models.HOST_WITH_PATH_OPERATION, args, kwargs), + models.HOST_WITH_PATH_OPERATION, + [], + plugins, + ) + + @overload + async def ignores_wrapping_xml_name( + self, + request: models.IgnoresWrappingXmlNameInput + | models.IgnoresWrappingXmlNameInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.IgnoresWrappingXmlNameOutput: ... + + @overload + async def ignores_wrapping_xml_name( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.IgnoresWrappingXmlNameInputDict], + ) -> models.IgnoresWrappingXmlNameOutput: + """ + The xmlName trait on the output structure is ignored in AWS Query. + + The wrapping element is always operation name + "Response". + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def ignores_wrapping_xml_name( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.IgnoresWrappingXmlNameOutput: + return await self._invoke( + self._select_input(models.IGNORES_WRAPPING_XML_NAME, args, kwargs), + models.IGNORES_WRAPPING_XML_NAME, + [], + plugins, + ) + + @overload + async def nested_structures( + self, + request: models.NestedStructuresInput | models.NestedStructuresInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.NestedStructuresOutput: ... + + @overload + async def nested_structures( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.NestedStructuresInputDict], + ) -> models.NestedStructuresOutput: + """ + This test serializes nested and recursive structure members. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def nested_structures( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.NestedStructuresOutput: + return await self._invoke( + self._select_input(models.NESTED_STRUCTURES, args, kwargs), + models.NESTED_STRUCTURES, + [], + plugins, + ) + + @overload + async def no_input_and_output( + self, + request: models.NoInputAndOutputInput | models.NoInputAndOutputInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.NoInputAndOutputOutput: ... + + @overload + async def no_input_and_output( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.NoInputAndOutputInputDict], + ) -> models.NoInputAndOutputOutput: + """ + The example tests how requests and responses are serialized when there's + no request payload or response members. + + While this should be rare, code generators must support this. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def no_input_and_output( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.NoInputAndOutputOutput: + return await self._invoke( + self._select_input(models.NO_INPUT_AND_OUTPUT, args, kwargs), + models.NO_INPUT_AND_OUTPUT, + [], + plugins, + ) + + @overload + async def put_with_content_encoding( + self, + request: models.PutWithContentEncodingInput + | models.PutWithContentEncodingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.PutWithContentEncodingOutput: ... + + @overload + async def put_with_content_encoding( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.PutWithContentEncodingInputDict], + ) -> models.PutWithContentEncodingOutput: + """ + Invokes the PutWithContentEncoding operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def put_with_content_encoding( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.PutWithContentEncodingOutput: + return await self._invoke( + self._select_input(models.PUT_WITH_CONTENT_ENCODING, args, kwargs), + models.PUT_WITH_CONTENT_ENCODING, + [], + plugins, + ) + + @overload + async def query_idempotency_token_auto_fill( + self, + request: models.QueryIdempotencyTokenAutoFillInput + | models.QueryIdempotencyTokenAutoFillInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.QueryIdempotencyTokenAutoFillOutput: ... + + @overload + async def query_idempotency_token_auto_fill( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.QueryIdempotencyTokenAutoFillInputDict], + ) -> models.QueryIdempotencyTokenAutoFillOutput: + """ + Automatically adds idempotency tokens. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def query_idempotency_token_auto_fill( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.QueryIdempotencyTokenAutoFillOutput: + return await self._invoke( + self._select_input(models.QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL, args, kwargs), + models.QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL, + [], + plugins, + ) + + @overload + async def query_lists( + self, + request: models.QueryListsInput | models.QueryListsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.QueryListsOutput: ... + + @overload + async def query_lists( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.QueryListsInputDict], + ) -> models.QueryListsOutput: + """ + This test serializes simple and complex lists. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def query_lists( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.QueryListsOutput: + return await self._invoke( + self._select_input(models.QUERY_LISTS, args, kwargs), + models.QUERY_LISTS, + [], + plugins, + ) + + @overload + async def query_timestamps( + self, + request: models.QueryTimestampsInput | models.QueryTimestampsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.QueryTimestampsOutput: ... + + @overload + async def query_timestamps( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.QueryTimestampsInputDict], + ) -> models.QueryTimestampsOutput: + """ + This test serializes timestamps. + + 1. Timestamps are serialized as RFC 3339 date-time values by default. + 2. A timestampFormat trait on a member changes the format. + 3. A timestampFormat trait on the shape targeted by the member changes + the format. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def query_timestamps( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.QueryTimestampsOutput: + return await self._invoke( + self._select_input(models.QUERY_TIMESTAMPS, args, kwargs), + models.QUERY_TIMESTAMPS, + [], + plugins, + ) + + @overload + async def recursive_xml_shapes( + self, + request: models.RecursiveXmlShapesInput | models.RecursiveXmlShapesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.RecursiveXmlShapesOutput: ... + + @overload + async def recursive_xml_shapes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.RecursiveXmlShapesInputDict], + ) -> models.RecursiveXmlShapesOutput: + """ + Recursive shapes + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def recursive_xml_shapes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.RecursiveXmlShapesOutput: + return await self._invoke( + self._select_input(models.RECURSIVE_XML_SHAPES, args, kwargs), + models.RECURSIVE_XML_SHAPES, + [], + plugins, + ) + + @overload + async def simple_input_params( + self, + request: models.SimpleInputParamsInput | models.SimpleInputParamsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.SimpleInputParamsOutput: ... + + @overload + async def simple_input_params( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.SimpleInputParamsInputDict], + ) -> models.SimpleInputParamsOutput: + """ + This test serializes strings, numbers, and boolean values. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def simple_input_params( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.SimpleInputParamsOutput: + return await self._invoke( + self._select_input(models.SIMPLE_INPUT_PARAMS, args, kwargs), + models.SIMPLE_INPUT_PARAMS, + [], + plugins, + ) + + @overload + async def simple_scalar_xml_properties( + self, + request: models.SimpleScalarXmlPropertiesInput + | models.SimpleScalarXmlPropertiesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.SimpleScalarXmlPropertiesOutput: ... + + @overload + async def simple_scalar_xml_properties( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.SimpleScalarXmlPropertiesInputDict], + ) -> models.SimpleScalarXmlPropertiesOutput: + """ + Invokes the SimpleScalarXmlProperties operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def simple_scalar_xml_properties( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.SimpleScalarXmlPropertiesOutput: + return await self._invoke( + self._select_input(models.SIMPLE_SCALAR_XML_PROPERTIES, args, kwargs), + models.SIMPLE_SCALAR_XML_PROPERTIES, + [], + plugins, + ) + + @overload + async def xml_blobs( + self, + request: models.XmlBlobsInput | models.XmlBlobsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlBlobsOutput2: ... + + @overload + async def xml_blobs( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlBlobsInputDict], + ) -> models.XmlBlobsOutput2: + """ + Blobs are base64 encoded + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_blobs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlBlobsOutput2: + return await self._invoke( + self._select_input(models.XML_BLOBS, args, kwargs), + models.XML_BLOBS, + [], + plugins, + ) + + @overload + async def xml_empty_blobs( + self, + request: models.XmlEmptyBlobsInput | models.XmlEmptyBlobsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlEmptyBlobsOutput: ... + + @overload + async def xml_empty_blobs( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlEmptyBlobsInputDict], + ) -> models.XmlEmptyBlobsOutput: + """ + Invokes the XmlEmptyBlobs operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_empty_blobs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlEmptyBlobsOutput: + return await self._invoke( + self._select_input(models.XML_EMPTY_BLOBS, args, kwargs), + models.XML_EMPTY_BLOBS, + [], + plugins, + ) + + @overload + async def xml_empty_lists( + self, + request: models.XmlEmptyListsInput | models.XmlEmptyListsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlEmptyListsOutput: ... + + @overload + async def xml_empty_lists( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlEmptyListsInputDict], + ) -> models.XmlEmptyListsOutput: + """ + Invokes the XmlEmptyLists operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_empty_lists( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlEmptyListsOutput: + return await self._invoke( + self._select_input(models.XML_EMPTY_LISTS, args, kwargs), + models.XML_EMPTY_LISTS, + [], + plugins, + ) + + @overload + async def xml_enums( + self, + request: models.XmlEnumsInput | models.XmlEnumsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlEnumsOutput: ... + + @overload + async def xml_enums( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlEnumsInputDict], + ) -> models.XmlEnumsOutput: + """ + This example serializes enums as top level properties, in lists, sets, + and maps. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_enums( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlEnumsOutput: + return await self._invoke( + self._select_input(models.XML_ENUMS, args, kwargs), + models.XML_ENUMS, + [], + plugins, + ) + + @overload + async def xml_int_enums( + self, + request: models.XmlIntEnumsInput | models.XmlIntEnumsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlIntEnumsOutput: ... + + @overload + async def xml_int_enums( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlIntEnumsInputDict], + ) -> models.XmlIntEnumsOutput: + """ + This example serializes intEnums as top level properties, in lists, + sets, and maps. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_int_enums( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlIntEnumsOutput: + return await self._invoke( + self._select_input(models.XML_INT_ENUMS, args, kwargs), + models.XML_INT_ENUMS, + [], + plugins, + ) + + @overload + async def xml_lists( + self, + request: models.XmlListsInput | models.XmlListsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlListsOutput2: ... + + @overload + async def xml_lists( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlListsInputDict], + ) -> models.XmlListsOutput2: + """ + This test case serializes XML lists for the following cases for both + input and output: + + 1. Normal XML lists. + 2. Normal XML sets. + 3. XML lists of lists. + 4. XML lists with @xmlName on its members + 5. Flattened XML lists. + 6. Flattened XML lists with @xmlName. + 7. Flattened XML lists with @xmlNamespace. + 8. Lists of structures. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_lists( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlListsOutput2: + return await self._invoke( + self._select_input(models.XML_LISTS, args, kwargs), + models.XML_LISTS, + [], + plugins, + ) + + @overload + async def xml_namespaces( + self, + request: models.XmlNamespacesInput | models.XmlNamespacesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlNamespacesOutput: ... + + @overload + async def xml_namespaces( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlNamespacesInputDict], + ) -> models.XmlNamespacesOutput: + """ + Invokes the XmlNamespaces operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_namespaces( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlNamespacesOutput: + return await self._invoke( + self._select_input(models.XML_NAMESPACES, args, kwargs), + models.XML_NAMESPACES, + [], + plugins, + ) + + @overload + async def xml_timestamps( + self, + request: models.XmlTimestampsInput | models.XmlTimestampsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlTimestampsOutput: ... + + @overload + async def xml_timestamps( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlTimestampsInputDict], + ) -> models.XmlTimestampsOutput: + """ + This tests how timestamps are serialized, including using the + default format of date-time and various @timestampFormat trait + values. + + :param plugins: Callables that change the configuration for this call + only. + """ + + async def xml_timestamps( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlTimestampsOutput: + return await self._invoke( + self._select_input(models.XML_TIMESTAMPS, args, kwargs), + models.XML_TIMESTAMPS, + [], + plugins, + ) + + async def _new_config(self) -> AsyncEC2ProtocolConfig: + return await AsyncEC2ProtocolConfig.resolve() + + async def _post_setup(self, config: AsyncEC2ProtocolConfig) -> None: + if config.aws_credentials_identity_resolver is None: + config_context = config.resolution_context() + config_file = None + profile_name = None + if config_context is not None: + config_file = await config_context.parsed_profiles() + if config_context.profile_source is ConfigSource.OVERRIDE: + profile_name = config_context.profile_name + config.aws_credentials_identity_resolver = await AsyncIdentityChain.create( + AWSCredentialsIdentity, + config_file=config_file, + profile_name=profile_name, + region_override=config.region, + http_client=cast(AsyncHTTPClient | None, config.transport), + ) diff --git a/codegen-output-py/ec2-query-client/src/ec2query_client/aio/config.py b/codegen-output-py/ec2-query-client/src/ec2query_client/aio/config.py new file mode 100644 index 000000000..62343e28a --- /dev/null +++ b/codegen-output-py/ec2-query-client/src/ec2query_client/aio/config.py @@ -0,0 +1,124 @@ +from collections.abc import Callable +from dataclasses import dataclass, field +from typing import Any, ClassVar, Self, Unpack + +from smithy_aws_core.aio.auth.sigv4 import AsyncSigV4AuthScheme +from smithy_aws_core.aio.config.aws_config import ( + AsyncAwsConfig, + AsyncAwsConfigOverrides, +) +from smithy_aws_core.aio.config.filesystem import AsyncFileSystem +from smithy_aws_core.config.resolvers import EndpointUriResolver +from smithy_aws_core.config.types import FieldSpec +from smithy_aws_core.endpoints import AWS_RULES_EXTENSION +from smithy_aws_core.protocols import Ec2QueryClientProtocol +from smithy_core.aio.interfaces import AsyncEndpointResolver +from smithy_core.aio.interfaces.auth import AsyncAuthScheme +from smithy_core.auth import DefaultAuthResolver +from smithy_core.endpoints import BddEndpointResolver +from smithy_core.interceptors import Interceptor +from smithy_core.interfaces import ( + ClientProtocol, + EndpointResolver, + ProtocolConstructor, + ProtocolSettings, +) +from smithy_core.interfaces.auth import AuthSchemeResolver +from smithy_core.shapes import ShapeID +from smithy_http.aio.aiohttp import AIOHTTPClient + +from ec2query_client._private.endpoints import BDD +from ec2query_client._private.schemas import AWS_EC2 + +_PROTOCOL_SETTINGS = ProtocolSettings( + namespace="aws.protocoltests.ec2", + service_target="AwsEc2", + version="2020-01-08", + xml_namespace="https://example.com/", + service_schema=AWS_EC2, +) + + +class _AsyncEC2ProtocolConfigOverrides(AsyncAwsConfigOverrides, total=False): + "Explicit field values AsyncEC2ProtocolConfig.resolve accepts." + + endpoint_resolver: EndpointResolver | AsyncEndpointResolver | None + protocol: ( + ClientProtocol[Any, Any] | ProtocolConstructor[ClientProtocol[Any, Any]] | None + ) + auth_schemes: dict[ShapeID, AsyncAuthScheme[Any, Any, Any, Any]] | None + auth_scheme_resolver: AuthSchemeResolver | None + + +@dataclass(kw_only=True, repr=False, init=False) +class AsyncEC2ProtocolConfig(AsyncAwsConfig): + "Configuration for AsyncEC2ProtocolClient." + + interceptors: list[Interceptor[Any, Any, Any, Any]] = field( + default_factory=list[Interceptor[Any, Any, Any, Any]] + ) + "Hooks called during the execution of a request." + + endpoint_resolver: EndpointResolver | AsyncEndpointResolver | None = None + "Resolves the endpoint of each operation." + + protocol: ClientProtocol[Any, Any] | None = None + "Serializes requests and deserializes responses." + + auth_schemes: dict[ShapeID, AsyncAuthScheme[Any, Any, Any, Any]] | None = None + "Auth schemes by auth scheme ID." + + auth_scheme_resolver: AuthSchemeResolver | None = None + "Determines the auth scheme for each operation." + + _FIELDS: ClassVar[dict[str, FieldSpec]] = { + **AsyncAwsConfig._FIELDS, + "endpoint_uri": FieldSpec( + default=None, resolver=EndpointUriResolver("ec2_protocol").program + ), + "endpoint_resolver": FieldSpec( + default_factory=lambda: BddEndpointResolver( + BDD, extensions=[AWS_RULES_EXTENSION] + ) + ), + "protocol": FieldSpec( + default_factory=lambda: Ec2QueryClientProtocol(_PROTOCOL_SETTINGS), + converter=lambda p: p(_PROTOCOL_SETTINGS) if isinstance(p, type) else p, + ), + "auth_schemes": FieldSpec( + default_factory=lambda: { + ShapeID("aws.auth#sigv4"): AsyncSigV4AuthScheme(service="ec2query") + } + ), + "auth_scheme_resolver": FieldSpec(default_factory=DefaultAuthResolver), + "transport": FieldSpec(default_factory=lambda: AIOHTTPClient()), + } + + def set_auth_scheme(self, scheme: AsyncAuthScheme[Any, Any, Any, Any]) -> None: + "Set an auth scheme under its scheme ID." + auth_schemes = dict(self.auth_schemes or {}) + auth_schemes[scheme.scheme_id] = scheme + self.auth_schemes = auth_schemes + + @classmethod + async def resolve( # pyright: ignore[reportIncompatibleMethodOverride] + cls, + *, + profile: str | None = None, + fs: AsyncFileSystem | None = None, + config_file_path: str | None = None, + credentials_file_path: str | None = None, + **overrides: Unpack[_AsyncEC2ProtocolConfigOverrides], + ) -> Self: + "Resolve the config from overrides, the environment, and config files." + return await cls._resolve( + profile=profile, + fs=fs, + config_file_path=config_file_path, + credentials_file_path=credentials_file_path, + overrides=overrides, + ) + + +type Plugin = Callable[[AsyncEC2ProtocolConfig], None] +"A callable that customizes the client configuration." diff --git a/codegen-output-py/ec2-query-client/src/ec2query_client/aio/user_agent.py b/codegen-output-py/ec2-query-client/src/ec2query_client/aio/user_agent.py new file mode 100644 index 000000000..9d26fb6d8 --- /dev/null +++ b/codegen-output-py/ec2-query-client/src/ec2query_client/aio/user_agent.py @@ -0,0 +1,16 @@ +from smithy_aws_core.interceptors.user_agent import UserAgentInterceptor + +from ec2query_client import __version__ +from ec2query_client.aio.config import AsyncEC2ProtocolConfig + + +def aws_user_agent_plugin(config: AsyncEC2ProtocolConfig) -> None: + "Send the AWS user agent with every request." + config.interceptors.append( + UserAgentInterceptor( + ua_suffix=config.user_agent_extra, + ua_app_id=config.sdk_ua_app_id, + sdk_version=__version__, + service_id="EC2_Protocol", + ) + ) diff --git a/codegen-output-py/ec2-query-client/src/ec2query_client/client.py b/codegen-output-py/ec2-query-client/src/ec2query_client/client.py new file mode 100644 index 000000000..af7709766 --- /dev/null +++ b/codegen-output-py/ec2-query-client/src/ec2query_client/client.py @@ -0,0 +1,928 @@ +from __future__ import annotations + +from typing import Unpack, cast, overload + +from smithy_aws_core.config.types import ConfigSource +from smithy_aws_core.identity.chain.resolver import IdentityChain +from smithy_aws_core.identity.components import AWSCredentialsIdentity +from smithy_core.client import Client +from smithy_http.interfaces import HTTPClient +from smithy_http.plugins import user_agent_plugin + +from ec2query_client import models +from ec2query_client.config import EC2ProtocolConfig, Plugin +from ec2query_client.user_agent import aws_user_agent_plugin + + +class EC2ProtocolClient(Client[EC2ProtocolConfig]): + "An EC2 query service that sends query requests and XML responses." + + _client_plugins = (aws_user_agent_plugin, user_agent_plugin) + + @overload + def datetime_offsets( + self, + request: models.DatetimeOffsetsInput | models.DatetimeOffsetsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.DatetimeOffsetsOutput: ... + + @overload + def datetime_offsets( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.DatetimeOffsetsInputDict], + ) -> models.DatetimeOffsetsOutput: + """ + Invokes the DatetimeOffsets operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def datetime_offsets( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.DatetimeOffsetsOutput: + return self._invoke( + self._select_input(models.DATETIME_OFFSETS, args, kwargs), + models.DATETIME_OFFSETS, + [], + plugins, + ) + + @overload + def empty_input_and_empty_output( + self, + request: models.EmptyInputAndEmptyOutputInput + | models.EmptyInputAndEmptyOutputInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.EmptyInputAndEmptyOutputOutput: ... + + @overload + def empty_input_and_empty_output( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.EmptyInputAndEmptyOutputInputDict], + ) -> models.EmptyInputAndEmptyOutputOutput: + """ + The example tests how requests and responses are serialized when there's + no request or response members. + + While this should be rare, code generators must support this. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def empty_input_and_empty_output( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.EmptyInputAndEmptyOutputOutput: + return self._invoke( + self._select_input(models.EMPTY_INPUT_AND_EMPTY_OUTPUT, args, kwargs), + models.EMPTY_INPUT_AND_EMPTY_OUTPUT, + [], + plugins, + ) + + @overload + def endpoint_operation( + self, + request: models.EndpointOperationInput | models.EndpointOperationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.EndpointOperationOutput: ... + + @overload + def endpoint_operation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.EndpointOperationInputDict], + ) -> models.EndpointOperationOutput: + """ + Invokes the EndpointOperation operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def endpoint_operation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.EndpointOperationOutput: + return self._invoke( + self._select_input(models.ENDPOINT_OPERATION, args, kwargs), + models.ENDPOINT_OPERATION, + [], + plugins, + ) + + @overload + def endpoint_with_host_label_operation( + self, + request: models.EndpointWithHostLabelOperationInput + | models.EndpointWithHostLabelOperationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.EndpointWithHostLabelOperationOutput: ... + + @overload + def endpoint_with_host_label_operation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.EndpointWithHostLabelOperationInputDict], + ) -> models.EndpointWithHostLabelOperationOutput: + """ + Invokes the EndpointWithHostLabelOperation operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def endpoint_with_host_label_operation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.EndpointWithHostLabelOperationOutput: + return self._invoke( + self._select_input(models.ENDPOINT_WITH_HOST_LABEL_OPERATION, args, kwargs), + models.ENDPOINT_WITH_HOST_LABEL_OPERATION, + [], + plugins, + ) + + @overload + def fractional_seconds( + self, + request: models.FractionalSecondsInput | models.FractionalSecondsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.FractionalSecondsOutput: ... + + @overload + def fractional_seconds( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.FractionalSecondsInputDict], + ) -> models.FractionalSecondsOutput: + """ + Invokes the FractionalSeconds operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def fractional_seconds( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.FractionalSecondsOutput: + return self._invoke( + self._select_input(models.FRACTIONAL_SECONDS, args, kwargs), + models.FRACTIONAL_SECONDS, + [], + plugins, + ) + + @overload + def greeting_with_errors( + self, + request: models.GreetingWithErrorsInput | models.GreetingWithErrorsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.GreetingWithErrorsOutput: ... + + @overload + def greeting_with_errors( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.GreetingWithErrorsInputDict], + ) -> models.GreetingWithErrorsOutput: + """ + This operation has three possible return values: + + 1. A successful response in the form of GreetingWithErrorsOutput + 2. An InvalidGreeting error. + 3. A BadRequest error. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def greeting_with_errors( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.GreetingWithErrorsOutput: + return self._invoke( + self._select_input(models.GREETING_WITH_ERRORS, args, kwargs), + models.GREETING_WITH_ERRORS, + [], + plugins, + ) + + @overload + def host_with_path_operation( + self, + request: models.HostWithPathOperationInput + | models.HostWithPathOperationInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.HostWithPathOperationOutput: ... + + @overload + def host_with_path_operation( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.HostWithPathOperationInputDict], + ) -> models.HostWithPathOperationOutput: + """ + Invokes the HostWithPathOperation operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def host_with_path_operation( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.HostWithPathOperationOutput: + return self._invoke( + self._select_input(models.HOST_WITH_PATH_OPERATION, args, kwargs), + models.HOST_WITH_PATH_OPERATION, + [], + plugins, + ) + + @overload + def ignores_wrapping_xml_name( + self, + request: models.IgnoresWrappingXmlNameInput + | models.IgnoresWrappingXmlNameInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.IgnoresWrappingXmlNameOutput: ... + + @overload + def ignores_wrapping_xml_name( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.IgnoresWrappingXmlNameInputDict], + ) -> models.IgnoresWrappingXmlNameOutput: + """ + The xmlName trait on the output structure is ignored in AWS Query. + + The wrapping element is always operation name + "Response". + + :param plugins: Callables that change the configuration for this call + only. + """ + + def ignores_wrapping_xml_name( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.IgnoresWrappingXmlNameOutput: + return self._invoke( + self._select_input(models.IGNORES_WRAPPING_XML_NAME, args, kwargs), + models.IGNORES_WRAPPING_XML_NAME, + [], + plugins, + ) + + @overload + def nested_structures( + self, + request: models.NestedStructuresInput | models.NestedStructuresInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.NestedStructuresOutput: ... + + @overload + def nested_structures( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.NestedStructuresInputDict], + ) -> models.NestedStructuresOutput: + """ + This test serializes nested and recursive structure members. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def nested_structures( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.NestedStructuresOutput: + return self._invoke( + self._select_input(models.NESTED_STRUCTURES, args, kwargs), + models.NESTED_STRUCTURES, + [], + plugins, + ) + + @overload + def no_input_and_output( + self, + request: models.NoInputAndOutputInput | models.NoInputAndOutputInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.NoInputAndOutputOutput: ... + + @overload + def no_input_and_output( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.NoInputAndOutputInputDict], + ) -> models.NoInputAndOutputOutput: + """ + The example tests how requests and responses are serialized when there's + no request payload or response members. + + While this should be rare, code generators must support this. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def no_input_and_output( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.NoInputAndOutputOutput: + return self._invoke( + self._select_input(models.NO_INPUT_AND_OUTPUT, args, kwargs), + models.NO_INPUT_AND_OUTPUT, + [], + plugins, + ) + + @overload + def put_with_content_encoding( + self, + request: models.PutWithContentEncodingInput + | models.PutWithContentEncodingInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.PutWithContentEncodingOutput: ... + + @overload + def put_with_content_encoding( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.PutWithContentEncodingInputDict], + ) -> models.PutWithContentEncodingOutput: + """ + Invokes the PutWithContentEncoding operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def put_with_content_encoding( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.PutWithContentEncodingOutput: + return self._invoke( + self._select_input(models.PUT_WITH_CONTENT_ENCODING, args, kwargs), + models.PUT_WITH_CONTENT_ENCODING, + [], + plugins, + ) + + @overload + def query_idempotency_token_auto_fill( + self, + request: models.QueryIdempotencyTokenAutoFillInput + | models.QueryIdempotencyTokenAutoFillInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.QueryIdempotencyTokenAutoFillOutput: ... + + @overload + def query_idempotency_token_auto_fill( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.QueryIdempotencyTokenAutoFillInputDict], + ) -> models.QueryIdempotencyTokenAutoFillOutput: + """ + Automatically adds idempotency tokens. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def query_idempotency_token_auto_fill( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.QueryIdempotencyTokenAutoFillOutput: + return self._invoke( + self._select_input(models.QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL, args, kwargs), + models.QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL, + [], + plugins, + ) + + @overload + def query_lists( + self, + request: models.QueryListsInput | models.QueryListsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.QueryListsOutput: ... + + @overload + def query_lists( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.QueryListsInputDict], + ) -> models.QueryListsOutput: + """ + This test serializes simple and complex lists. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def query_lists( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.QueryListsOutput: + return self._invoke( + self._select_input(models.QUERY_LISTS, args, kwargs), + models.QUERY_LISTS, + [], + plugins, + ) + + @overload + def query_timestamps( + self, + request: models.QueryTimestampsInput | models.QueryTimestampsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.QueryTimestampsOutput: ... + + @overload + def query_timestamps( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.QueryTimestampsInputDict], + ) -> models.QueryTimestampsOutput: + """ + This test serializes timestamps. + + 1. Timestamps are serialized as RFC 3339 date-time values by default. + 2. A timestampFormat trait on a member changes the format. + 3. A timestampFormat trait on the shape targeted by the member changes + the format. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def query_timestamps( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.QueryTimestampsOutput: + return self._invoke( + self._select_input(models.QUERY_TIMESTAMPS, args, kwargs), + models.QUERY_TIMESTAMPS, + [], + plugins, + ) + + @overload + def recursive_xml_shapes( + self, + request: models.RecursiveXmlShapesInput | models.RecursiveXmlShapesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.RecursiveXmlShapesOutput: ... + + @overload + def recursive_xml_shapes( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.RecursiveXmlShapesInputDict], + ) -> models.RecursiveXmlShapesOutput: + """ + Recursive shapes + + :param plugins: Callables that change the configuration for this call + only. + """ + + def recursive_xml_shapes( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.RecursiveXmlShapesOutput: + return self._invoke( + self._select_input(models.RECURSIVE_XML_SHAPES, args, kwargs), + models.RECURSIVE_XML_SHAPES, + [], + plugins, + ) + + @overload + def simple_input_params( + self, + request: models.SimpleInputParamsInput | models.SimpleInputParamsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.SimpleInputParamsOutput: ... + + @overload + def simple_input_params( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.SimpleInputParamsInputDict], + ) -> models.SimpleInputParamsOutput: + """ + This test serializes strings, numbers, and boolean values. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def simple_input_params( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.SimpleInputParamsOutput: + return self._invoke( + self._select_input(models.SIMPLE_INPUT_PARAMS, args, kwargs), + models.SIMPLE_INPUT_PARAMS, + [], + plugins, + ) + + @overload + def simple_scalar_xml_properties( + self, + request: models.SimpleScalarXmlPropertiesInput + | models.SimpleScalarXmlPropertiesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.SimpleScalarXmlPropertiesOutput: ... + + @overload + def simple_scalar_xml_properties( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.SimpleScalarXmlPropertiesInputDict], + ) -> models.SimpleScalarXmlPropertiesOutput: + """ + Invokes the SimpleScalarXmlProperties operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def simple_scalar_xml_properties( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.SimpleScalarXmlPropertiesOutput: + return self._invoke( + self._select_input(models.SIMPLE_SCALAR_XML_PROPERTIES, args, kwargs), + models.SIMPLE_SCALAR_XML_PROPERTIES, + [], + plugins, + ) + + @overload + def xml_blobs( + self, + request: models.XmlBlobsInput | models.XmlBlobsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlBlobsOutput2: ... + + @overload + def xml_blobs( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlBlobsInputDict], + ) -> models.XmlBlobsOutput2: + """ + Blobs are base64 encoded + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_blobs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlBlobsOutput2: + return self._invoke( + self._select_input(models.XML_BLOBS, args, kwargs), + models.XML_BLOBS, + [], + plugins, + ) + + @overload + def xml_empty_blobs( + self, + request: models.XmlEmptyBlobsInput | models.XmlEmptyBlobsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlEmptyBlobsOutput: ... + + @overload + def xml_empty_blobs( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlEmptyBlobsInputDict], + ) -> models.XmlEmptyBlobsOutput: + """ + Invokes the XmlEmptyBlobs operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_empty_blobs( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlEmptyBlobsOutput: + return self._invoke( + self._select_input(models.XML_EMPTY_BLOBS, args, kwargs), + models.XML_EMPTY_BLOBS, + [], + plugins, + ) + + @overload + def xml_empty_lists( + self, + request: models.XmlEmptyListsInput | models.XmlEmptyListsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlEmptyListsOutput: ... + + @overload + def xml_empty_lists( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlEmptyListsInputDict], + ) -> models.XmlEmptyListsOutput: + """ + Invokes the XmlEmptyLists operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_empty_lists( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlEmptyListsOutput: + return self._invoke( + self._select_input(models.XML_EMPTY_LISTS, args, kwargs), + models.XML_EMPTY_LISTS, + [], + plugins, + ) + + @overload + def xml_enums( + self, + request: models.XmlEnumsInput | models.XmlEnumsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlEnumsOutput: ... + + @overload + def xml_enums( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlEnumsInputDict], + ) -> models.XmlEnumsOutput: + """ + This example serializes enums as top level properties, in lists, sets, + and maps. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_enums( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlEnumsOutput: + return self._invoke( + self._select_input(models.XML_ENUMS, args, kwargs), + models.XML_ENUMS, + [], + plugins, + ) + + @overload + def xml_int_enums( + self, + request: models.XmlIntEnumsInput | models.XmlIntEnumsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlIntEnumsOutput: ... + + @overload + def xml_int_enums( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlIntEnumsInputDict], + ) -> models.XmlIntEnumsOutput: + """ + This example serializes intEnums as top level properties, in lists, + sets, and maps. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_int_enums( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlIntEnumsOutput: + return self._invoke( + self._select_input(models.XML_INT_ENUMS, args, kwargs), + models.XML_INT_ENUMS, + [], + plugins, + ) + + @overload + def xml_lists( + self, + request: models.XmlListsInput | models.XmlListsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlListsOutput2: ... + + @overload + def xml_lists( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlListsInputDict], + ) -> models.XmlListsOutput2: + """ + This test case serializes XML lists for the following cases for both + input and output: + + 1. Normal XML lists. + 2. Normal XML sets. + 3. XML lists of lists. + 4. XML lists with @xmlName on its members + 5. Flattened XML lists. + 6. Flattened XML lists with @xmlName. + 7. Flattened XML lists with @xmlNamespace. + 8. Lists of structures. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_lists( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlListsOutput2: + return self._invoke( + self._select_input(models.XML_LISTS, args, kwargs), + models.XML_LISTS, + [], + plugins, + ) + + @overload + def xml_namespaces( + self, + request: models.XmlNamespacesInput | models.XmlNamespacesInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlNamespacesOutput: ... + + @overload + def xml_namespaces( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlNamespacesInputDict], + ) -> models.XmlNamespacesOutput: + """ + Invokes the XmlNamespaces operation. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_namespaces( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlNamespacesOutput: + return self._invoke( + self._select_input(models.XML_NAMESPACES, args, kwargs), + models.XML_NAMESPACES, + [], + plugins, + ) + + @overload + def xml_timestamps( + self, + request: models.XmlTimestampsInput | models.XmlTimestampsInputDict, + /, + *, + plugins: list[Plugin] | None = None, + ) -> models.XmlTimestampsOutput: ... + + @overload + def xml_timestamps( + self, + /, + *, + plugins: list[Plugin] | None = None, + **kwargs: Unpack[models.XmlTimestampsInputDict], + ) -> models.XmlTimestampsOutput: + """ + This tests how timestamps are serialized, including using the + default format of date-time and various @timestampFormat trait + values. + + :param plugins: Callables that change the configuration for this call + only. + """ + + def xml_timestamps( + self, /, *args: object, plugins: list[Plugin] | None = None, **kwargs: object + ) -> models.XmlTimestampsOutput: + return self._invoke( + self._select_input(models.XML_TIMESTAMPS, args, kwargs), + models.XML_TIMESTAMPS, + [], + plugins, + ) + + def _new_config(self) -> EC2ProtocolConfig: + return EC2ProtocolConfig.resolve() + + def _post_setup(self, config: EC2ProtocolConfig) -> None: + if config.aws_credentials_identity_resolver is None: + config_context = config.resolution_context() + config_file = None + profile_name = None + if config_context is not None: + config_file = config_context.parsed_profiles() + if config_context.profile_source is ConfigSource.OVERRIDE: + profile_name = config_context.profile_name + config.aws_credentials_identity_resolver = IdentityChain.create( + AWSCredentialsIdentity, + config_file=config_file, + profile_name=profile_name, + region_override=config.region, + http_client=cast(HTTPClient | None, config.transport), + ) diff --git a/codegen-output-py/ec2-query-client/src/ec2query_client/config.py b/codegen-output-py/ec2-query-client/src/ec2query_client/config.py new file mode 100644 index 000000000..543befbb2 --- /dev/null +++ b/codegen-output-py/ec2-query-client/src/ec2query_client/config.py @@ -0,0 +1,119 @@ +from collections.abc import Callable +from dataclasses import dataclass, field +from typing import Any, ClassVar, Self, Unpack + +from smithy_aws_core.auth.sigv4 import SigV4AuthScheme +from smithy_aws_core.config.aws_config import AwsConfig, AwsConfigOverrides +from smithy_aws_core.config.filesystem import FileSystem +from smithy_aws_core.config.resolvers import EndpointUriResolver +from smithy_aws_core.config.types import FieldSpec +from smithy_aws_core.endpoints import AWS_RULES_EXTENSION +from smithy_aws_core.protocols import Ec2QueryClientProtocol +from smithy_core.auth import DefaultAuthResolver +from smithy_core.endpoints import BddEndpointResolver +from smithy_core.interceptors import Interceptor +from smithy_core.interfaces import ( + ClientProtocol, + EndpointResolver, + ProtocolConstructor, + ProtocolSettings, +) +from smithy_core.interfaces.auth import AuthScheme, AuthSchemeResolver +from smithy_core.shapes import ShapeID +from smithy_http.urllib3 import Urllib3HTTPClient + +from ec2query_client._private.endpoints import BDD +from ec2query_client._private.schemas import AWS_EC2 + +_PROTOCOL_SETTINGS = ProtocolSettings( + namespace="aws.protocoltests.ec2", + service_target="AwsEc2", + version="2020-01-08", + xml_namespace="https://example.com/", + service_schema=AWS_EC2, +) + + +class _EC2ProtocolConfigOverrides(AwsConfigOverrides, total=False): + "Explicit field values EC2ProtocolConfig.resolve accepts." + + endpoint_resolver: EndpointResolver | None + protocol: ( + ClientProtocol[Any, Any] | ProtocolConstructor[ClientProtocol[Any, Any]] | None + ) + auth_schemes: dict[ShapeID, AuthScheme[Any, Any, Any, Any]] | None + auth_scheme_resolver: AuthSchemeResolver | None + + +@dataclass(kw_only=True, repr=False, init=False) +class EC2ProtocolConfig(AwsConfig): + "Configuration for EC2ProtocolClient." + + interceptors: list[Interceptor[Any, Any, Any, Any]] = field( + default_factory=list[Interceptor[Any, Any, Any, Any]] + ) + "Hooks called during the execution of a request." + + endpoint_resolver: EndpointResolver | None = None + "Resolves the endpoint of each operation." + + protocol: ClientProtocol[Any, Any] | None = None + "Serializes requests and deserializes responses." + + auth_schemes: dict[ShapeID, AuthScheme[Any, Any, Any, Any]] | None = None + "Auth schemes by auth scheme ID." + + auth_scheme_resolver: AuthSchemeResolver | None = None + "Determines the auth scheme for each operation." + + _FIELDS: ClassVar[dict[str, FieldSpec]] = { + **AwsConfig._FIELDS, + "endpoint_uri": FieldSpec( + default=None, resolver=EndpointUriResolver("ec2_protocol").program + ), + "endpoint_resolver": FieldSpec( + default_factory=lambda: BddEndpointResolver( + BDD, extensions=[AWS_RULES_EXTENSION] + ) + ), + "protocol": FieldSpec( + default_factory=lambda: Ec2QueryClientProtocol(_PROTOCOL_SETTINGS), + converter=lambda p: p(_PROTOCOL_SETTINGS) if isinstance(p, type) else p, + ), + "auth_schemes": FieldSpec( + default_factory=lambda: { + ShapeID("aws.auth#sigv4"): SigV4AuthScheme(service="ec2query") + } + ), + "auth_scheme_resolver": FieldSpec(default_factory=DefaultAuthResolver), + "transport": FieldSpec(default_factory=lambda: Urllib3HTTPClient()), + } + + def set_auth_scheme(self, scheme: AuthScheme[Any, Any, Any, Any]) -> None: + "Set an auth scheme under its scheme ID." + auth_schemes = dict(self.auth_schemes or {}) + auth_schemes[scheme.scheme_id] = scheme + self.auth_schemes = auth_schemes + + @classmethod + def resolve( # pyright: ignore[reportIncompatibleMethodOverride] + cls, + *, + profile: str | None = None, + fs: FileSystem | None = None, + config_file_path: str | None = None, + credentials_file_path: str | None = None, + **overrides: Unpack[_EC2ProtocolConfigOverrides], + ) -> Self: + "Resolve the config from overrides, the environment, and config files." + return cls._resolve( + profile=profile, + fs=fs, + config_file_path=config_file_path, + credentials_file_path=credentials_file_path, + overrides=overrides, + ) + + +type Plugin = Callable[[EC2ProtocolConfig], None] +"A callable that customizes the client configuration." diff --git a/codegen-output-py/ec2-query-client/src/ec2query_client/models.py b/codegen-output-py/ec2-query-client/src/ec2query_client/models.py new file mode 100644 index 000000000..c92e1b43a --- /dev/null +++ b/codegen-output-py/ec2-query-client/src/ec2query_client/models.py @@ -0,0 +1,277 @@ +from smithy_core._dynamic_models import ModelRegistry +from smithy_core.exceptions import ModeledError + +from ._private import schemas + + +class ServiceError(ModeledError): + """ + Base error for all errors in the service. + + Some exceptions do not extend from this class, including synthetic, + implicit, and shared exception types. + """ + + +_MODEL_INDEX = { + "ComplexError": "COMPLEX_ERROR", + "ComplexNestedErrorData": "COMPLEX_NESTED_ERROR_DATA", + "DatetimeOffsetsOutput": "DATETIME_OFFSETS_OUTPUT", + "EmptyInputAndEmptyOutputInput": "EMPTY_INPUT_AND_EMPTY_OUTPUT_INPUT", + "EmptyInputAndEmptyOutputOutput": "EMPTY_INPUT_AND_EMPTY_OUTPUT_OUTPUT", + "FractionalSecondsOutput": "FRACTIONAL_SECONDS_OUTPUT", + "GreetingWithErrorsOutput": "GREETING_WITH_ERRORS_OUTPUT", + "IgnoresWrappingXmlNameOutput": "IGNORES_WRAPPING_XML_NAME_OUTPUT", + "InvalidGreeting": "INVALID_GREETING", + "NestedStructWithList": "NESTED_STRUCT_WITH_LIST", + "NestedStructuresInput": "NESTED_STRUCTURES_INPUT", + "NoInputAndOutputOutput": "NO_INPUT_AND_OUTPUT_OUTPUT", + "PutWithContentEncodingInput": "PUT_WITH_CONTENT_ENCODING_INPUT", + "QueryIdempotencyTokenAutoFillInput": "QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL_INPUT", + "QueryListsInput": "QUERY_LISTS_INPUT", + "QueryTimestampsInput": "QUERY_TIMESTAMPS_INPUT", + "RecursiveXmlShapesOutput": "RECURSIVE_XML_SHAPES_OUTPUT", + "RecursiveXmlShapesOutputNested1": "RECURSIVE_XML_SHAPES_OUTPUT_NESTED1", + "RecursiveXmlShapesOutputNested2": "RECURSIVE_XML_SHAPES_OUTPUT_NESTED2", + "SimpleInputParamsInput": "SIMPLE_INPUT_PARAMS_INPUT", + "SimpleScalarXmlPropertiesOutput": "SIMPLE_SCALAR_XML_PROPERTIES_OUTPUT", + "StructArg": "STRUCT_ARG", + "StructureListMember": "STRUCTURE_LIST_MEMBER", + "XmlEnumsOutput": "XML_ENUMS_OUTPUT", + "XmlIntEnumsOutput": "XML_INT_ENUMS_OUTPUT", + "XmlNamespaceNested": "XML_NAMESPACE_NESTED", + "XmlNamespacesOutput": "XML_NAMESPACES_OUTPUT", + "XmlTimestampsOutput": "XML_TIMESTAMPS_OUTPUT", + "FooEnum": "FOO_ENUM", + "GreetingStruct": "GREETING_STRUCT", + "IntegerEnum": "INTEGER_ENUM", + "DatetimeOffsetsInput": "DATETIME_OFFSETS_INPUT", + "EndpointOperationInput": "ENDPOINT_OPERATION_INPUT", + "EndpointOperationOutput": "ENDPOINT_OPERATION_OUTPUT", + "EndpointWithHostLabelOperationInput": "ENDPOINT_WITH_HOST_LABEL_OPERATION_INPUT", + "EndpointWithHostLabelOperationOutput": "ENDPOINT_WITH_HOST_LABEL_OPERATION_OUTPUT", + "FractionalSecondsInput": "FRACTIONAL_SECONDS_INPUT", + "GreetingWithErrorsInput": "GREETING_WITH_ERRORS_INPUT", + "HostWithPathOperationInput": "HOST_WITH_PATH_OPERATION_INPUT", + "HostWithPathOperationOutput": "HOST_WITH_PATH_OPERATION_OUTPUT", + "IgnoresWrappingXmlNameInput": "IGNORES_WRAPPING_XML_NAME_INPUT", + "NestedStructuresOutput": "NESTED_STRUCTURES_OUTPUT", + "NoInputAndOutputInput": "NO_INPUT_AND_OUTPUT_INPUT", + "PutWithContentEncodingOutput": "PUT_WITH_CONTENT_ENCODING_OUTPUT", + "QueryIdempotencyTokenAutoFillOutput": "QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL_OUTPUT", + "QueryListsOutput": "QUERY_LISTS_OUTPUT", + "QueryTimestampsOutput": "QUERY_TIMESTAMPS_OUTPUT", + "RecursiveXmlShapesInput": "RECURSIVE_XML_SHAPES_INPUT", + "SimpleInputParamsOutput": "SIMPLE_INPUT_PARAMS_OUTPUT", + "SimpleScalarXmlPropertiesInput": "SIMPLE_SCALAR_XML_PROPERTIES_INPUT", + "XmlBlobsInput": "XML_BLOBS_INPUT", + "XmlBlobsOutput2": "XML_BLOBS_OUTPUT2", + "XmlEmptyBlobsInput": "XML_EMPTY_BLOBS_INPUT", + "XmlEmptyBlobsOutput": "XML_EMPTY_BLOBS_OUTPUT", + "XmlEmptyListsInput": "XML_EMPTY_LISTS_INPUT", + "XmlEmptyListsOutput": "XML_EMPTY_LISTS_OUTPUT", + "XmlEnumsInput": "XML_ENUMS_INPUT", + "XmlIntEnumsInput": "XML_INT_ENUMS_INPUT", + "XmlListsInput": "XML_LISTS_INPUT", + "XmlListsOutput2": "XML_LISTS_OUTPUT2", + "XmlNamespacesInput": "XML_NAMESPACES_INPUT", + "XmlTimestampsInput": "XML_TIMESTAMPS_INPUT", +} + +_RENAMES: dict[str, str] = {} + +_TARGET_NAMES: dict[str, str] = {} + +_OPERATIONS: dict[str, tuple[tuple[str, ...], tuple[str, ...]]] = { + "DATETIME_OFFSETS": ( + (), + ("aws.auth#sigv4",), + ), + "EMPTY_INPUT_AND_EMPTY_OUTPUT": ( + (), + ("aws.auth#sigv4",), + ), + "ENDPOINT_OPERATION": ( + (), + ("aws.auth#sigv4",), + ), + "ENDPOINT_WITH_HOST_LABEL_OPERATION": ( + (), + ("aws.auth#sigv4",), + ), + "FRACTIONAL_SECONDS": ( + (), + ("aws.auth#sigv4",), + ), + "GREETING_WITH_ERRORS": ( + ("aws.protocoltests.ec2#ComplexError", "aws.protocoltests.ec2#InvalidGreeting"), + ("aws.auth#sigv4",), + ), + "HOST_WITH_PATH_OPERATION": ( + (), + ("aws.auth#sigv4",), + ), + "IGNORES_WRAPPING_XML_NAME": ( + (), + ("aws.auth#sigv4",), + ), + "NESTED_STRUCTURES": ( + (), + ("aws.auth#sigv4",), + ), + "NO_INPUT_AND_OUTPUT": ( + (), + ("aws.auth#sigv4",), + ), + "PUT_WITH_CONTENT_ENCODING": ( + (), + ("aws.auth#sigv4",), + ), + "QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL": ( + (), + ("aws.auth#sigv4",), + ), + "QUERY_LISTS": ( + (), + ("aws.auth#sigv4",), + ), + "QUERY_TIMESTAMPS": ( + (), + ("aws.auth#sigv4",), + ), + "RECURSIVE_XML_SHAPES": ( + (), + ("aws.auth#sigv4",), + ), + "SIMPLE_INPUT_PARAMS": ( + (), + ("aws.auth#sigv4",), + ), + "SIMPLE_SCALAR_XML_PROPERTIES": ( + (), + ("aws.auth#sigv4",), + ), + "XML_BLOBS": ( + (), + ("aws.auth#sigv4",), + ), + "XML_EMPTY_BLOBS": ( + (), + ("aws.auth#sigv4",), + ), + "XML_EMPTY_LISTS": ( + (), + ("aws.auth#sigv4",), + ), + "XML_ENUMS": ( + (), + ("aws.auth#sigv4",), + ), + "XML_INT_ENUMS": ( + (), + ("aws.auth#sigv4",), + ), + "XML_LISTS": ( + (), + ("aws.auth#sigv4",), + ), + "XML_NAMESPACES": ( + (), + ("aws.auth#sigv4",), + ), + "XML_TIMESTAMPS": ( + (), + ("aws.auth#sigv4",), + ), +} + +_MODEL_NAMES = tuple(_MODEL_INDEX) +__all__ = ("ServiceError", *_MODEL_NAMES, *_OPERATIONS) # pyright: ignore[reportUnsupportedDunderAll] + + +_registry = ModelRegistry( + schemas, + renames=_RENAMES, + index=_MODEL_INDEX, + target_names=_TARGET_NAMES, + shape_names=frozenset( + { + "ComplexError", + "ComplexNestedErrorData", + "DatetimeOffsetsInput", + "DatetimeOffsetsOutput", + "EmptyInputAndEmptyOutputInput", + "EmptyInputAndEmptyOutputOutput", + "EndpointOperationInput", + "EndpointOperationOutput", + "EndpointWithHostLabelOperationInput", + "EndpointWithHostLabelOperationOutput", + "FooEnum", + "FractionalSecondsInput", + "FractionalSecondsOutput", + "GreetingStruct", + "GreetingWithErrorsInput", + "GreetingWithErrorsOutput", + "HostWithPathOperationInput", + "HostWithPathOperationOutput", + "IgnoresWrappingXmlNameInput", + "IgnoresWrappingXmlNameOutput", + "IntegerEnum", + "InvalidGreeting", + "NestedStructWithList", + "NestedStructuresInput", + "NestedStructuresOutput", + "NoInputAndOutputInput", + "NoInputAndOutputOutput", + "PutWithContentEncodingInput", + "PutWithContentEncodingOutput", + "QueryIdempotencyTokenAutoFillInput", + "QueryIdempotencyTokenAutoFillOutput", + "QueryListsInput", + "QueryListsOutput", + "QueryTimestampsInput", + "QueryTimestampsOutput", + "RecursiveXmlShapesInput", + "RecursiveXmlShapesOutput", + "RecursiveXmlShapesOutputNested1", + "RecursiveXmlShapesOutputNested2", + "SimpleInputParamsInput", + "SimpleInputParamsOutput", + "SimpleScalarXmlPropertiesInput", + "SimpleScalarXmlPropertiesOutput", + "StructArg", + "StructureListMember", + "XmlBlobsInput", + "XmlBlobsOutput2", + "XmlEmptyBlobsInput", + "XmlEmptyBlobsOutput", + "XmlEmptyListsInput", + "XmlEmptyListsOutput", + "XmlEnumsInput", + "XmlEnumsOutput", + "XmlIntEnumsInput", + "XmlIntEnumsOutput", + "XmlListsInput", + "XmlListsOutput2", + "XmlNamespaceNested", + "XmlNamespacesInput", + "XmlNamespacesOutput", + "XmlTimestampsInput", + "XmlTimestampsOutput", + } + ), + service_error="ServiceError", +) +del schemas, ModelRegistry, ModeledError + + +def __getattr__(name: str): + if (data := _OPERATIONS.get(name)) is not None: + return globals().setdefault(name, _registry.build_operation(name, *data)) + value = _registry.build(name) + globals()[name] = value + return value + + +def __dir__() -> list[str]: + return sorted({*globals(), *__all__}) diff --git a/codegen-output-py/ec2-query-client/src/ec2query_client/models.pyi b/codegen-output-py/ec2-query-client/src/ec2query_client/models.pyi new file mode 100644 index 000000000..6d6838b93 --- /dev/null +++ b/codegen-output-py/ec2-query-client/src/ec2query_client/models.pyi @@ -0,0 +1,903 @@ +from collections.abc import Sequence +from dataclasses import dataclass +from datetime import datetime +from enum import IntEnum, StrEnum +from typing import Required, Self, TypedDict + +from smithy_core.deserializers import ShapeDeserializer +from smithy_core.exceptions import ModeledError +from smithy_core.response import ResponseMetadata +from smithy_core.schemas import APIOperation +from smithy_core.serializers import ShapeSerializer +from smithy_core.types import UnknownEnumMixin + +__all__ = [ + "DATETIME_OFFSETS", + "EMPTY_INPUT_AND_EMPTY_OUTPUT", + "ENDPOINT_OPERATION", + "ENDPOINT_WITH_HOST_LABEL_OPERATION", + "FRACTIONAL_SECONDS", + "GREETING_WITH_ERRORS", + "HOST_WITH_PATH_OPERATION", + "IGNORES_WRAPPING_XML_NAME", + "NESTED_STRUCTURES", + "NO_INPUT_AND_OUTPUT", + "PUT_WITH_CONTENT_ENCODING", + "QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL", + "QUERY_LISTS", + "QUERY_TIMESTAMPS", + "RECURSIVE_XML_SHAPES", + "SIMPLE_INPUT_PARAMS", + "SIMPLE_SCALAR_XML_PROPERTIES", + "XML_BLOBS", + "XML_EMPTY_BLOBS", + "XML_EMPTY_LISTS", + "XML_ENUMS", + "XML_INT_ENUMS", + "XML_LISTS", + "XML_NAMESPACES", + "XML_TIMESTAMPS", + "ComplexError", + "ComplexNestedErrorData", + "DatetimeOffsetsInput", + "DatetimeOffsetsOutput", + "EmptyInputAndEmptyOutputInput", + "EmptyInputAndEmptyOutputOutput", + "EndpointOperationInput", + "EndpointOperationOutput", + "EndpointWithHostLabelOperationInput", + "EndpointWithHostLabelOperationOutput", + "FooEnum", + "FractionalSecondsInput", + "FractionalSecondsOutput", + "GreetingStruct", + "GreetingWithErrorsInput", + "GreetingWithErrorsOutput", + "HostWithPathOperationInput", + "HostWithPathOperationOutput", + "IgnoresWrappingXmlNameInput", + "IgnoresWrappingXmlNameOutput", + "IntegerEnum", + "InvalidGreeting", + "NestedStructWithList", + "NestedStructuresInput", + "NestedStructuresOutput", + "NoInputAndOutputInput", + "NoInputAndOutputOutput", + "PutWithContentEncodingInput", + "PutWithContentEncodingOutput", + "QueryIdempotencyTokenAutoFillInput", + "QueryIdempotencyTokenAutoFillOutput", + "QueryListsInput", + "QueryListsOutput", + "QueryTimestampsInput", + "QueryTimestampsOutput", + "RecursiveXmlShapesInput", + "RecursiveXmlShapesOutput", + "RecursiveXmlShapesOutputNested1", + "RecursiveXmlShapesOutputNested2", + "ServiceError", + "SimpleInputParamsInput", + "SimpleInputParamsOutput", + "SimpleScalarXmlPropertiesInput", + "SimpleScalarXmlPropertiesOutput", + "StructArg", + "StructureListMember", + "XmlBlobsInput", + "XmlBlobsOutput2", + "XmlEmptyBlobsInput", + "XmlEmptyBlobsOutput", + "XmlEmptyListsInput", + "XmlEmptyListsOutput", + "XmlEnumsInput", + "XmlEnumsOutput", + "XmlIntEnumsInput", + "XmlIntEnumsOutput", + "XmlListsInput", + "XmlListsOutput2", + "XmlNamespaceNested", + "XmlNamespacesInput", + "XmlNamespacesOutput", + "XmlTimestampsInput", + "XmlTimestampsOutput", +] + +class _SerdeShape: + def serialize(self, serializer: ShapeSerializer) -> None: ... + def serialize_members(self, serializer: ShapeSerializer) -> None: ... + @classmethod + def deserialize(cls, deserializer: ShapeDeserializer) -> Self: ... + +class ServiceError(ModeledError): + """ + Base error for all errors in the service. + + Some exceptions do not extend from this class, including synthetic, + implicit, and shared exception types. + """ + +@dataclass(kw_only=True) +class ComplexError(ServiceError, _SerdeShape): + "This error is thrown when a request is invalid." + + top_level: str | None = ... + nested: ComplexNestedErrorData | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class ComplexNestedErrorData(_SerdeShape): + "Dataclass for ComplexNestedErrorData structure." + + foo: str | None = ... + +@dataclass(kw_only=True) +class DatetimeOffsetsOutput(_SerdeShape): + "Dataclass for DatetimeOffsetsOutput structure." + + datetime_: datetime | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class EmptyInputAndEmptyOutputInput(_SerdeShape): + "Dataclass for EmptyInputAndEmptyOutputInput structure." + +class EmptyInputAndEmptyOutputInputDict(TypedDict, total=False): + "Dictionary form of `EmptyInputAndEmptyOutputInput`." + +@dataclass(kw_only=True) +class EmptyInputAndEmptyOutputOutput(_SerdeShape): + "Dataclass for EmptyInputAndEmptyOutputOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class FractionalSecondsOutput(_SerdeShape): + "Dataclass for FractionalSecondsOutput structure." + + datetime_: datetime | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class GreetingWithErrorsOutput(_SerdeShape): + "Dataclass for GreetingWithErrorsOutput structure." + + greeting: str | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class IgnoresWrappingXmlNameOutput(_SerdeShape): + "Dataclass for IgnoresWrappingXmlNameOutput structure." + + foo: str | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class InvalidGreeting(ServiceError, _SerdeShape): + "This error is thrown when an invalid greeting value is provided." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class NestedStructWithList(_SerdeShape): + "Dataclass for NestedStructWithList structure." + + list_arg: list[str] | None = ... + +class NestedStructWithListDict(TypedDict, total=False): + "Dictionary form of `NestedStructWithList`." + + list_arg: Sequence[str] | None + +@dataclass(kw_only=True) +class NestedStructuresInput(_SerdeShape): + "Dataclass for NestedStructuresInput structure." + + nested: StructArg | None = ... + +class NestedStructuresInputDict(TypedDict, total=False): + "Dictionary form of `NestedStructuresInput`." + + nested: StructArg | StructArgDict | None + +@dataclass(kw_only=True) +class NoInputAndOutputOutput(_SerdeShape): + "Dataclass for NoInputAndOutputOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class PutWithContentEncodingInput(_SerdeShape): + "Dataclass for PutWithContentEncodingInput structure." + + encoding: str | None = ... + data: str | None = ... + +class PutWithContentEncodingInputDict(TypedDict, total=False): + "Dictionary form of `PutWithContentEncodingInput`." + + encoding: str | None + data: str | None + +@dataclass(kw_only=True) +class QueryIdempotencyTokenAutoFillInput(_SerdeShape): + "Dataclass for QueryIdempotencyTokenAutoFillInput structure." + + token: str | None = ... + "This field is autopopulated if not provided." + +class QueryIdempotencyTokenAutoFillInputDict(TypedDict, total=False): + "Dictionary form of `QueryIdempotencyTokenAutoFillInput`." + + token: str | None + "This field is autopopulated if not provided." + +@dataclass(kw_only=True) +class QueryListsInput(_SerdeShape): + "Dataclass for QueryListsInput structure." + + list_arg: list[str] | None = ... + complex_list_arg: list[GreetingStruct] | None = ... + list_arg_with_xml_name_member: list[str] | None = ... + list_arg_with_xml_name: list[str] | None = ... + nested_with_list: NestedStructWithList | None = ... + +class QueryListsInputDict(TypedDict, total=False): + "Dictionary form of `QueryListsInput`." + + list_arg: Sequence[str] | None + complex_list_arg: Sequence[GreetingStruct | GreetingStructDict] | None + list_arg_with_xml_name_member: Sequence[str] | None + list_arg_with_xml_name: Sequence[str] | None + nested_with_list: NestedStructWithList | NestedStructWithListDict | None + +@dataclass(kw_only=True) +class QueryTimestampsInput(_SerdeShape): + "Dataclass for QueryTimestampsInput structure." + + normal_format: datetime | None = ... + epoch_member: datetime | None = ... + epoch_target: datetime | None = ... + +class QueryTimestampsInputDict(TypedDict, total=False): + "Dictionary form of `QueryTimestampsInput`." + + normal_format: datetime | None + epoch_member: datetime | None + epoch_target: datetime | None + +@dataclass(kw_only=True) +class RecursiveXmlShapesOutput(_SerdeShape): + "Dataclass for RecursiveXmlShapesOutput structure." + + nested: RecursiveXmlShapesOutputNested1 | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class RecursiveXmlShapesOutputNested1(_SerdeShape): + "Dataclass for RecursiveXmlShapesOutputNested1 structure." + + foo: str | None = ... + nested: RecursiveXmlShapesOutputNested2 | None = ... + +@dataclass(kw_only=True) +class RecursiveXmlShapesOutputNested2(_SerdeShape): + "Dataclass for RecursiveXmlShapesOutputNested2 structure." + + bar: str | None = ... + recursive_member: RecursiveXmlShapesOutputNested1 | None = ... + +@dataclass(kw_only=True) +class SimpleInputParamsInput(_SerdeShape): + "Dataclass for SimpleInputParamsInput structure." + + foo: str | None = ... + bar: str | None = ... + baz: bool | None = ... + bam: int | None = ... + float_value: float | None = ... + boo: float | None = ... + qux: bytes | None = ... + foo_enum: str | None = ... + has_query_name: str | None = ... + has_query_and_xml_name: str | None = ... + uses_xml_name: str | None = ... + distinct_query_name: str | None = ... + distinct_query_and_xml_name: str | None = ... + distinct_xml_name: str | None = ... + +class SimpleInputParamsInputDict(TypedDict, total=False): + "Dictionary form of `SimpleInputParamsInput`." + + foo: str | None + bar: str | None + baz: bool | None + bam: int | None + float_value: float | None + boo: float | None + qux: bytes | None + foo_enum: str | None + has_query_name: str | None + has_query_and_xml_name: str | None + uses_xml_name: str | None + distinct_query_name: str | None + distinct_query_and_xml_name: str | None + distinct_xml_name: str | None + +@dataclass(kw_only=True) +class SimpleScalarXmlPropertiesOutput(_SerdeShape): + "Dataclass for SimpleScalarXmlPropertiesOutput structure." + + string_value: str | None = ... + empty_string_value: str | None = ... + true_boolean_value: bool | None = ... + false_boolean_value: bool | None = ... + byte_value: int | None = ... + short_value: int | None = ... + integer_value: int | None = ... + long_value: int | None = ... + float_value: float | None = ... + double_value: float | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class StructArg(_SerdeShape): + "Dataclass for StructArg structure." + + string_arg: str | None = ... + other_arg: bool | None = ... + recursive_arg: StructArg | None = ... + +class StructArgDict(TypedDict, total=False): + "Dictionary form of `StructArg`." + + string_arg: str | None + other_arg: bool | None + recursive_arg: StructArg | StructArgDict | None + +@dataclass(kw_only=True) +class StructureListMember(_SerdeShape): + "Dataclass for StructureListMember structure." + + a: str | None = ... + b: str | None = ... + +@dataclass(kw_only=True) +class XmlEnumsOutput(_SerdeShape): + "Dataclass for XmlEnumsOutput structure." + + foo_enum1: str | None = ... + foo_enum2: str | None = ... + foo_enum3: str | None = ... + foo_enum_list: list[str] | None = ... + foo_enum_set: list[str] | None = ... + foo_enum_map: dict[str, str] | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class XmlIntEnumsOutput(_SerdeShape): + "Dataclass for XmlIntEnumsOutput structure." + + int_enum1: int | None = ... + int_enum2: int | None = ... + int_enum3: int | None = ... + int_enum_list: list[int] | None = ... + int_enum_set: list[int] | None = ... + int_enum_map: dict[str, int] | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class XmlNamespaceNested(_SerdeShape): + "Dataclass for XmlNamespaceNested structure." + + foo: str | None = ... + values: list[str] | None = ... + +@dataclass(kw_only=True) +class XmlNamespacesOutput(_SerdeShape): + "Dataclass for XmlNamespacesOutput structure." + + nested: XmlNamespaceNested | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class XmlTimestampsOutput(_SerdeShape): + "Dataclass for XmlTimestampsOutput structure." + + normal: datetime | None = ... + date_time: datetime | None = ... + date_time_on_target: datetime | None = ... + epoch_seconds: datetime | None = ... + epoch_seconds_on_target: datetime | None = ... + http_date: datetime | None = ... + http_date_on_target: datetime | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +class FooEnum(UnknownEnumMixin, StrEnum): + FOO = "Foo" + BAZ = "Baz" + BAR = "Bar" + ONE = "1" + ZERO = "0" + +@dataclass(kw_only=True) +class GreetingStruct(_SerdeShape): + "Dataclass for GreetingStruct structure." + + hi: str | None = ... + +class GreetingStructDict(TypedDict, total=False): + "Dictionary form of `GreetingStruct`." + + hi: str | None + +class IntegerEnum(UnknownEnumMixin, IntEnum): + A = 1 + B = 2 + C = 3 + +@dataclass(kw_only=True) +class DatetimeOffsetsInput(_SerdeShape): + "Dataclass for DatetimeOffsetsInput structure." + +class DatetimeOffsetsInputDict(TypedDict, total=False): + "Dictionary form of `DatetimeOffsetsInput`." + +@dataclass(kw_only=True) +class EndpointOperationInput(_SerdeShape): + "Dataclass for EndpointOperationInput structure." + +class EndpointOperationInputDict(TypedDict, total=False): + "Dictionary form of `EndpointOperationInput`." + +@dataclass(kw_only=True) +class EndpointOperationOutput(_SerdeShape): + "Dataclass for EndpointOperationOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class EndpointWithHostLabelOperationInput(_SerdeShape): + "Dataclass for EndpointWithHostLabelOperationInput structure." + + label: str | None = ... + +class EndpointWithHostLabelOperationInputDict(TypedDict, total=False): + "Dictionary form of `EndpointWithHostLabelOperationInput`." + + label: Required[str] + +@dataclass(kw_only=True) +class EndpointWithHostLabelOperationOutput(_SerdeShape): + "Dataclass for EndpointWithHostLabelOperationOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class FractionalSecondsInput(_SerdeShape): + "Dataclass for FractionalSecondsInput structure." + +class FractionalSecondsInputDict(TypedDict, total=False): + "Dictionary form of `FractionalSecondsInput`." + +@dataclass(kw_only=True) +class GreetingWithErrorsInput(_SerdeShape): + "Dataclass for GreetingWithErrorsInput structure." + +class GreetingWithErrorsInputDict(TypedDict, total=False): + "Dictionary form of `GreetingWithErrorsInput`." + +@dataclass(kw_only=True) +class HostWithPathOperationInput(_SerdeShape): + "Dataclass for HostWithPathOperationInput structure." + +class HostWithPathOperationInputDict(TypedDict, total=False): + "Dictionary form of `HostWithPathOperationInput`." + +@dataclass(kw_only=True) +class HostWithPathOperationOutput(_SerdeShape): + "Dataclass for HostWithPathOperationOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class IgnoresWrappingXmlNameInput(_SerdeShape): + "Dataclass for IgnoresWrappingXmlNameInput structure." + +class IgnoresWrappingXmlNameInputDict(TypedDict, total=False): + "Dictionary form of `IgnoresWrappingXmlNameInput`." + +@dataclass(kw_only=True) +class NestedStructuresOutput(_SerdeShape): + "Dataclass for NestedStructuresOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class NoInputAndOutputInput(_SerdeShape): + "Dataclass for NoInputAndOutputInput structure." + +class NoInputAndOutputInputDict(TypedDict, total=False): + "Dictionary form of `NoInputAndOutputInput`." + +@dataclass(kw_only=True) +class PutWithContentEncodingOutput(_SerdeShape): + "Dataclass for PutWithContentEncodingOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class QueryIdempotencyTokenAutoFillOutput(_SerdeShape): + "Dataclass for QueryIdempotencyTokenAutoFillOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class QueryListsOutput(_SerdeShape): + "Dataclass for QueryListsOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class QueryTimestampsOutput(_SerdeShape): + "Dataclass for QueryTimestampsOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class RecursiveXmlShapesInput(_SerdeShape): + "Dataclass for RecursiveXmlShapesInput structure." + +class RecursiveXmlShapesInputDict(TypedDict, total=False): + "Dictionary form of `RecursiveXmlShapesInput`." + +@dataclass(kw_only=True) +class SimpleInputParamsOutput(_SerdeShape): + "Dataclass for SimpleInputParamsOutput structure." + + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class SimpleScalarXmlPropertiesInput(_SerdeShape): + "Dataclass for SimpleScalarXmlPropertiesInput structure." + +class SimpleScalarXmlPropertiesInputDict(TypedDict, total=False): + "Dictionary form of `SimpleScalarXmlPropertiesInput`." + +@dataclass(kw_only=True) +class XmlBlobsInput(_SerdeShape): + "Dataclass for XmlBlobsInput structure." + +class XmlBlobsInputDict(TypedDict, total=False): + "Dictionary form of `XmlBlobsInput`." + +@dataclass(kw_only=True) +class XmlBlobsOutput2(_SerdeShape): + "Dataclass for XmlBlobsOutput2 structure." + + data: bytes | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class XmlEmptyBlobsInput(_SerdeShape): + "Dataclass for XmlEmptyBlobsInput structure." + +class XmlEmptyBlobsInputDict(TypedDict, total=False): + "Dictionary form of `XmlEmptyBlobsInput`." + +@dataclass(kw_only=True) +class XmlEmptyBlobsOutput(_SerdeShape): + "Dataclass for XmlEmptyBlobsOutput structure." + + data: bytes | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class XmlEmptyListsInput(_SerdeShape): + "Dataclass for XmlEmptyListsInput structure." + +class XmlEmptyListsInputDict(TypedDict, total=False): + "Dictionary form of `XmlEmptyListsInput`." + +@dataclass(kw_only=True) +class XmlEmptyListsOutput(_SerdeShape): + "Dataclass for XmlEmptyListsOutput structure." + + string_list: list[str] | None = ... + string_set: list[str] | None = ... + integer_list: list[int] | None = ... + boolean_list: list[bool] | None = ... + timestamp_list: list[datetime] | None = ... + enum_list: list[str] | None = ... + int_enum_list: list[int] | None = ... + nested_string_list: list[list[str]] | None = ... + renamed_list_members: list[str] | None = ... + flattened_list: list[str] | None = ... + flattened_list2: list[str] | None = ... + flattened_list_with_member_namespace: list[str] | None = ... + flattened_list_with_namespace: list[str] | None = ... + structure_list: list[StructureListMember] | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class XmlEnumsInput(_SerdeShape): + "Dataclass for XmlEnumsInput structure." + +class XmlEnumsInputDict(TypedDict, total=False): + "Dictionary form of `XmlEnumsInput`." + +@dataclass(kw_only=True) +class XmlIntEnumsInput(_SerdeShape): + "Dataclass for XmlIntEnumsInput structure." + +class XmlIntEnumsInputDict(TypedDict, total=False): + "Dictionary form of `XmlIntEnumsInput`." + +@dataclass(kw_only=True) +class XmlListsInput(_SerdeShape): + "Dataclass for XmlListsInput structure." + +class XmlListsInputDict(TypedDict, total=False): + "Dictionary form of `XmlListsInput`." + +@dataclass(kw_only=True) +class XmlListsOutput2(_SerdeShape): + "Dataclass for XmlListsOutput2 structure." + + string_list: list[str] | None = ... + string_set: list[str] | None = ... + integer_list: list[int] | None = ... + boolean_list: list[bool] | None = ... + timestamp_list: list[datetime] | None = ... + enum_list: list[str] | None = ... + int_enum_list: list[int] | None = ... + nested_string_list: list[list[str]] | None = ... + renamed_list_members: list[str] | None = ... + flattened_list: list[str] | None = ... + flattened_list2: list[str] | None = ... + flattened_list_with_member_namespace: list[str] | None = ... + flattened_list_with_namespace: list[str] | None = ... + structure_list: list[StructureListMember] | None = ... + response_metadata: ResponseMetadata = ... + """ + Metadata about the response that produced this output. + + Use this to recover the request identifiers a service's support team + needs in order to investigate a call. Members of the metadata are + individually optional. + """ + +@dataclass(kw_only=True) +class XmlNamespacesInput(_SerdeShape): + "Dataclass for XmlNamespacesInput structure." + +class XmlNamespacesInputDict(TypedDict, total=False): + "Dictionary form of `XmlNamespacesInput`." + +@dataclass(kw_only=True) +class XmlTimestampsInput(_SerdeShape): + "Dataclass for XmlTimestampsInput structure." + +class XmlTimestampsInputDict(TypedDict, total=False): + "Dictionary form of `XmlTimestampsInput`." + +DATETIME_OFFSETS: APIOperation[DatetimeOffsetsInput, DatetimeOffsetsOutput] +EMPTY_INPUT_AND_EMPTY_OUTPUT: APIOperation[ + EmptyInputAndEmptyOutputInput, EmptyInputAndEmptyOutputOutput +] +ENDPOINT_OPERATION: APIOperation[EndpointOperationInput, EndpointOperationOutput] +ENDPOINT_WITH_HOST_LABEL_OPERATION: APIOperation[ + EndpointWithHostLabelOperationInput, EndpointWithHostLabelOperationOutput +] +FRACTIONAL_SECONDS: APIOperation[FractionalSecondsInput, FractionalSecondsOutput] +GREETING_WITH_ERRORS: APIOperation[GreetingWithErrorsInput, GreetingWithErrorsOutput] +HOST_WITH_PATH_OPERATION: APIOperation[ + HostWithPathOperationInput, HostWithPathOperationOutput +] +IGNORES_WRAPPING_XML_NAME: APIOperation[ + IgnoresWrappingXmlNameInput, IgnoresWrappingXmlNameOutput +] +NESTED_STRUCTURES: APIOperation[NestedStructuresInput, NestedStructuresOutput] +NO_INPUT_AND_OUTPUT: APIOperation[NoInputAndOutputInput, NoInputAndOutputOutput] +PUT_WITH_CONTENT_ENCODING: APIOperation[ + PutWithContentEncodingInput, PutWithContentEncodingOutput +] +QUERY_IDEMPOTENCY_TOKEN_AUTO_FILL: APIOperation[ + QueryIdempotencyTokenAutoFillInput, QueryIdempotencyTokenAutoFillOutput +] +QUERY_LISTS: APIOperation[QueryListsInput, QueryListsOutput] +QUERY_TIMESTAMPS: APIOperation[QueryTimestampsInput, QueryTimestampsOutput] +RECURSIVE_XML_SHAPES: APIOperation[RecursiveXmlShapesInput, RecursiveXmlShapesOutput] +SIMPLE_INPUT_PARAMS: APIOperation[SimpleInputParamsInput, SimpleInputParamsOutput] +SIMPLE_SCALAR_XML_PROPERTIES: APIOperation[ + SimpleScalarXmlPropertiesInput, SimpleScalarXmlPropertiesOutput +] +XML_BLOBS: APIOperation[XmlBlobsInput, XmlBlobsOutput2] +XML_EMPTY_BLOBS: APIOperation[XmlEmptyBlobsInput, XmlEmptyBlobsOutput] +XML_EMPTY_LISTS: APIOperation[XmlEmptyListsInput, XmlEmptyListsOutput] +XML_ENUMS: APIOperation[XmlEnumsInput, XmlEnumsOutput] +XML_INT_ENUMS: APIOperation[XmlIntEnumsInput, XmlIntEnumsOutput] +XML_LISTS: APIOperation[XmlListsInput, XmlListsOutput2] +XML_NAMESPACES: APIOperation[XmlNamespacesInput, XmlNamespacesOutput] +XML_TIMESTAMPS: APIOperation[XmlTimestampsInput, XmlTimestampsOutput] diff --git a/codegen-output-py/ec2-query-client/src/ec2query_client/py.typed b/codegen-output-py/ec2-query-client/src/ec2query_client/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/codegen-output-py/ec2-query-client/src/ec2query_client/user_agent.py b/codegen-output-py/ec2-query-client/src/ec2query_client/user_agent.py new file mode 100644 index 000000000..e33f24d79 --- /dev/null +++ b/codegen-output-py/ec2-query-client/src/ec2query_client/user_agent.py @@ -0,0 +1,16 @@ +from smithy_aws_core.interceptors.user_agent import UserAgentInterceptor + +from ec2query_client import __version__ +from ec2query_client.config import EC2ProtocolConfig + + +def aws_user_agent_plugin(config: EC2ProtocolConfig) -> None: + "Send the AWS user agent with every request." + config.interceptors.append( + UserAgentInterceptor( + ua_suffix=config.user_agent_extra, + ua_app_id=config.sdk_ua_app_id, + sdk_version=__version__, + service_id="EC2_Protocol", + ) + ) diff --git a/designs/codegen/client.md b/designs/codegen/client.md index 9d41930ce..aca0be6e6 100644 --- a/designs/codegen/client.md +++ b/designs/codegen/client.md @@ -173,7 +173,7 @@ A protocol registry maps modeled protocol IDs to protocol contributions. A contribution provides sync/async protocol and transport references and their dependencies. RPCv2 CBOR and RPCv2 JSON are built in. The CLI uses `smithy_python.aws.AWS_PROTOCOLS`, which adds AWS restJson1, awsJson1_0, -awsJson1_1 and restXml. Tests can inject a +awsJson1_1, restXml, awsQuery and ec2Query. Tests can inject a registry. The plan keeps the registry's protocol traits in the service schema, even when the model omits their definitions. @@ -192,12 +192,16 @@ The contributions use these runtime protocols: | `aws.protocols#awsJson1_0` | `AwsJson10ClientProtocol` | `AsyncAwsJson10ClientProtocol` | `smithy-aws-core[json]` | | `aws.protocols#awsJson1_1` | `AwsJson11ClientProtocol` | `AsyncAwsJson11ClientProtocol` | `smithy-aws-core[json]` | | `aws.protocols#restXml` | `RestXmlClientProtocol` | `AsyncRestXmlClientProtocol` | `smithy-aws-core[xml]` | +| `aws.protocols#awsQuery` | `AwsQueryClientProtocol` | `AwsQueryClientProtocol` | `smithy-aws-core[xml]` | +| `aws.protocols#ec2Query` | `Ec2QueryClientProtocol` | `Ec2QueryClientProtocol` | `smithy-aws-core[xml]` | The AWS protocols come from `smithy-aws-core`, as in the Java generator. Schemas keep `aws.protocols#awsQueryCompatible` and `awsQueryError`, which the runtime reads for query compatibility, and `aws.customizations#s3UnwrappedXmlOutput`, which restXml reads. `ProtocolSettings` carries the service's `xmlNamespace` -URI, which restXml applies to payloads that don't declare their own. +URI, which restXml applies to payloads that don't declare their own. The query +protocols have no event streams, so async clients use the sync protocols, and +they read the service version from `ProtocolSettings`. All also use: * `ProtocolSettings` with the service namespace, target, version, and schema. diff --git a/designs/codegen/snapshots.md b/designs/codegen/snapshots.md index c4e6c7223..7a1ccd0f7 100644 --- a/designs/codegen/snapshots.md +++ b/designs/codegen/snapshots.md @@ -64,6 +64,8 @@ projections, generated with the public `client` command. | --- | --- | ---: | ---: | | `aws-json-1-0-client` | `awsjson10_client` | 16 | 67 | | `aws-json-1-1-client` | `awsjson11_client` | 18 | 118 | +| `aws-query-client` | `awsquery_client` | 33 | 77 | +| `ec2-query-client` | `ec2query_client` | 25 | 59 | | `query-compatible-aws-json-1-0-client` | `querycompatible_awsjson10_client` | 1 | 3 | | `rest-json-1-client` | `restjson_client` | 103 | 236 | | `rest-xml-client` | `restxml_client` | 65 | 178 | diff --git a/packages/smithy-python/.changes/next-release/smithy-python-feature-022ae7587e1e4ea9ac476b363df4400a.json b/packages/smithy-python/.changes/next-release/smithy-python-feature-022ae7587e1e4ea9ac476b363df4400a.json new file mode 100644 index 000000000..d74bd3ced --- /dev/null +++ b/packages/smithy-python/.changes/next-release/smithy-python-feature-022ae7587e1e4ea9ac476b363df4400a.json @@ -0,0 +1,4 @@ +{ + "type": "feature", + "description": "Added `aws.protocols#awsQuery` and `aws.protocols#ec2Query` support to generated clients, using the `smithy-aws-core` query protocols." +} \ No newline at end of file diff --git a/packages/smithy-python/src/smithy_python/aws/__init__.py b/packages/smithy-python/src/smithy_python/aws/__init__.py index c9c5b4454..10edab0f2 100644 --- a/packages/smithy-python/src/smithy_python/aws/__init__.py +++ b/packages/smithy-python/src/smithy_python/aws/__init__.py @@ -8,7 +8,7 @@ auth and the default AWS credentials chain. AWS services, and services whose rules use AWS functions or built-ins, resolve endpoints with the AWS rules extension. Clients may also use the AWS protocols ``aws.protocols#restJson1``, -``awsJson1_0``, ``awsJson1_1`` and ``restXml``. +``awsJson1_0``, ``awsJson1_1``, ``restXml``, ``awsQuery`` and ``ec2Query``. """ from __future__ import annotations @@ -18,7 +18,15 @@ from ._config import AwsConfigIntegration from ._dependencies import SMITHY_AWS_CORE from ._endpoints import AwsEndpointsIntegration -from ._protocols import AWS_JSON_10, AWS_JSON_11, AWS_PROTOCOLS, REST_JSON, REST_XML +from ._protocols import ( + AWS_JSON_10, + AWS_JSON_11, + AWS_PROTOCOLS, + AWS_QUERY, + EC2_QUERY, + REST_JSON, + REST_XML, +) from ._sigv4 import AwsSigV4Integration __all__ = [ @@ -26,6 +34,8 @@ "AWS_JSON_10", "AWS_JSON_11", "AWS_PROTOCOLS", + "AWS_QUERY", + "EC2_QUERY", "REST_JSON", "REST_XML", "SMITHY_AWS_CORE", diff --git a/packages/smithy-python/src/smithy_python/aws/_protocols.py b/packages/smithy-python/src/smithy_python/aws/_protocols.py index 2dadea360..2ab4582b1 100644 --- a/packages/smithy-python/src/smithy_python/aws/_protocols.py +++ b/packages/smithy-python/src/smithy_python/aws/_protocols.py @@ -66,12 +66,42 @@ def _aws(name: str, module: str, extra: str) -> TypeReference: ) """The ``aws.protocols#restXml`` contribution.""" +# The query protocols have no event streams, so async clients use the sync +# protocols, as in the Java generator. +_AWS_QUERY_PROTOCOL: Final = _aws("AwsQueryClientProtocol", "protocols", "xml") +_EC2_QUERY_PROTOCOL: Final = _aws("Ec2QueryClientProtocol", "protocols", "xml") + +AWS_QUERY: Final = ProtocolContribution( + protocol_id=_model.ShapeId("aws.protocols", "awsQuery"), + protocol=_AWS_QUERY_PROTOCOL, + async_protocol=_AWS_QUERY_PROTOCOL, + transport=RPCV2_CBOR.transport, + async_transport=RPCV2_CBOR.async_transport, +) +"""The ``aws.protocols#awsQuery`` contribution.""" + +EC2_QUERY: Final = ProtocolContribution( + protocol_id=_model.ShapeId("aws.protocols", "ec2Query"), + protocol=_EC2_QUERY_PROTOCOL, + async_protocol=_EC2_QUERY_PROTOCOL, + transport=RPCV2_CBOR.transport, + async_transport=RPCV2_CBOR.async_transport, +) +"""The ``aws.protocols#ec2Query`` contribution.""" + AWS_PROTOCOLS: Final[Mapping[_model.ShapeId, ProtocolContribution]] = MappingProxyType( { **DEFAULT_PROTOCOLS, **{ contribution.protocol_id: contribution - for contribution in (REST_JSON, AWS_JSON_10, AWS_JSON_11, REST_XML) + for contribution in ( + REST_JSON, + AWS_JSON_10, + AWS_JSON_11, + REST_XML, + AWS_QUERY, + EC2_QUERY, + ) }, } ) diff --git a/packages/smithy-python/tests/unit/test_client_generation.py b/packages/smithy-python/tests/unit/test_client_generation.py index cb9e66777..cd7035e69 100644 --- a/packages/smithy-python/tests/unit/test_client_generation.py +++ b/packages/smithy-python/tests/unit/test_client_generation.py @@ -744,6 +744,33 @@ def test_aws_json_services_use_the_aws_core_protocol( ) +@pytest.mark.parametrize( + ("trait", "protocol"), + [("awsQuery", "AwsQueryClientProtocol"), ("ec2Query", "Ec2QueryClientProtocol")], +) +def test_query_services_use_the_aws_core_protocol( + tmp_path: Path, trait: str, protocol: str +) -> None: + shapes = _shapes() + shapes["example#Greeter"]["traits"] = {f"aws.protocols#{trait}": {}} + model = load_model({"smithy": "2.0", "shapes": shapes}) + settings = ClientSettings("greeter_query", "1.0.0", None) + generator = ClientGenerator( + ClientPlan.from_model(model, settings, protocols=_aws.AWS_PROTOCOLS), + protocols=_aws.AWS_PROTOCOLS, + ) + context = generator.context() + generator.generate(context) + context.files.commit(tmp_path) + source = tmp_path / "src/greeter_query" + # Async clients use the sync protocol, since query has no event streams. + for path in ("config.py", "aio/config.py"): + assert f" {protocol}(_PROTOCOL_SETTINGS)" in (source / path).read_text() + assert ( + '"smithy-aws-core[xml]~=0.16.0",' in (tmp_path / "pyproject.toml").read_text() + ) + + def test_rest_xml_services_use_the_aws_core_protocol(tmp_path: Path) -> None: shapes = _shapes() shapes["example#Greeter"]["traits"] = { diff --git a/scripts/api-snapshot/api-rex.json b/scripts/api-snapshot/api-rex.json index 28481e84e..9184afab1 100644 --- a/scripts/api-snapshot/api-rex.json +++ b/scripts/api-snapshot/api-rex.json @@ -1331,9 +1331,11 @@ "smithy_python.aws": { "AWS_JSON_10": "rex-ProtocolContribution", "AWS_JSON_11": "rex-ProtocolContribution", + "AWS_QUERY": "rex-ProtocolContribution", "AwsConfigIntegration": "rex-class", "AwsEndpointsIntegration": "rex-class", "AwsSigV4Integration": "rex-class", + "EC2_QUERY": "rex-ProtocolContribution", "REST_JSON": "rex-ProtocolContribution", "REST_XML": "rex-ProtocolContribution", "SMITHY_AWS_CORE": "rex-Dependency" diff --git a/scripts/codegen-output-py/client-projections.json b/scripts/codegen-output-py/client-projections.json index c913928b1..512708676 100644 --- a/scripts/codegen-output-py/client-projections.json +++ b/scripts/codegen-output-py/client-projections.json @@ -13,6 +13,20 @@ "service": "aws.protocoltests.json#JsonProtocol", "version": "0.0.1" }, + "aws-query-client": { + "description": "Python client for the aws-query projection", + "model": "models/aws-query.json", + "package": "awsquery_client", + "service": "aws.protocoltests.query#AwsQuery", + "version": "0.0.1" + }, + "ec2-query-client": { + "description": "Python client for the ec2-query projection", + "model": "models/ec2-query.json", + "package": "ec2query_client", + "service": "aws.protocoltests.ec2#AwsEc2", + "version": "0.0.1" + }, "features-client": { "description": "Python client for the client features fixture", "model": "models/features.json", diff --git a/scripts/codegen-output-py/models/provenance.json b/scripts/codegen-output-py/models/provenance.json index 3565eaef1..7bdc4b693 100644 --- a/scripts/codegen-output-py/models/provenance.json +++ b/scripts/codegen-output-py/models/provenance.json @@ -11,11 +11,13 @@ }, "aws-query": { "assembled_sha256": "62332fc9f42c8d044f0dd59376ed922236b8ac19a6ac1b5c8d08a3856208a726", - "fixture_sha256": "9d436d4769afe29f40faac4846682cf6127daafe5648819f37e6d1265112ad77" + "fixture_sha256": "9d436d4769afe29f40faac4846682cf6127daafe5648819f37e6d1265112ad77", + "vectors_sha256": "d78dae3fc2108aac7d39a3b49d4919ab6bc959def9b953c264bca6c004b57017" }, "ec2-query": { "assembled_sha256": "d9e345e3801c0ddcde7d24d8e8348bf10251fbb67b85b7908046a1e26abe1d46", - "fixture_sha256": "7761c1333e4113092f7e92f98a08a384d596df6c23040261e55b76e5fabb36fe" + "fixture_sha256": "7761c1333e4113092f7e92f98a08a384d596df6c23040261e55b76e5fabb36fe", + "vectors_sha256": "c4086fcfec09c199f0447569140a1e36ef543cdabfe71ce585205025a2f34faf" }, "my-handwritten-json-model": { "assembled_sha256": "fa5bb874b59e09d79b06797012b70f7f0763dd2d93551e8f3f9611508d53d560", diff --git a/scripts/codegen-output-py/models/vectors/aws-query.json b/scripts/codegen-output-py/models/vectors/aws-query.json new file mode 100644 index 000000000..09f50cbd3 --- /dev/null +++ b/scripts/codegen-output-py/models/vectors/aws-query.json @@ -0,0 +1,1512 @@ +{ + "aws.protocoltests.query#ComplexError": { + "responses": [ + { + "id": "QueryComplexError", + "protocol": "aws.protocols#awsQuery", + "params": { + "TopLevel": "Top level", + "Nested": { + "Foo": "bar" + } + }, + "code": 400, + "headers": { + "Content-Type": "text/xml" + }, + "body": "\n \n Sender\n ComplexError\n Top level\n \n bar\n \n \n foo-id\n\n", + "bodyMediaType": "application/xml", + "vendorParamsShape": "aws.protocoltests.config#ErrorCodeParams", + "vendorParams": { + "code": "ComplexError", + "type": "Sender" + } + } + ] + }, + "aws.protocoltests.query#CustomCodeError": { + "responses": [ + { + "id": "QueryCustomizedError", + "documentation": "Parses customized XML errors", + "protocol": "aws.protocols#awsQuery", + "params": { + "Message": "Hi" + }, + "code": 402, + "headers": { + "Content-Type": "text/xml" + }, + "body": "\n \n Sender\n Customized\n Hi\n \n foo-id\n\n", + "bodyMediaType": "application/xml", + "vendorParamsShape": "aws.protocoltests.config#ErrorCodeParams", + "vendorParams": { + "code": "Customized", + "type": "Sender" + } + } + ] + }, + "aws.protocoltests.query#DatetimeOffsets": { + "responses": [ + { + "id": "AwsQueryDateTimeWithNegativeOffset", + "documentation": "Ensures that clients can correctly parse datetime (timestamps) with offsets", + "protocol": "aws.protocols#awsQuery", + "code": 200, + "body": "\n \n 2019-12-16T22:48:18-01:00\n \n\n", + "params": { + "datetime": 1576540098 + }, + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml" + }, + "appliesTo": "client" + }, + { + "id": "AwsQueryDateTimeWithPositiveOffset", + "documentation": "Ensures that clients can correctly parse datetime (timestamps) with offsets", + "protocol": "aws.protocols#awsQuery", + "code": 200, + "body": "\n \n 2019-12-17T00:48:18+01:00\n \n\n", + "params": { + "datetime": 1576540098 + }, + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml" + }, + "appliesTo": "client" + } + ] + }, + "aws.protocoltests.query#EmptyInputAndEmptyOutput": { + "requests": [ + { + "id": "QueryEmptyInputAndEmptyOutput", + "documentation": "Empty input serializes no extra query params", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "body": "Action=EmptyInputAndEmptyOutput&Version=2020-01-08", + "bodyMediaType": "application/x-www-form-urlencoded" + } + ], + "responses": [ + { + "id": "QueryEmptyInputAndEmptyOutput", + "documentation": "Empty output", + "protocol": "aws.protocols#awsQuery", + "code": 200 + } + ] + }, + "aws.protocoltests.query#EndpointOperation": { + "requests": [ + { + "id": "AwsQueryEndpointTrait", + "documentation": "Operations can prepend to the given host if they define the\nendpoint trait.", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "body": "Action=EndpointOperation&Version=2020-01-08", + "bodyMediaType": "application/x-www-form-urlencoded", + "host": "example.com", + "resolvedHost": "foo.example.com" + } + ] + }, + "aws.protocoltests.query#EndpointWithHostLabelOperation": { + "requests": [ + { + "id": "AwsQueryEndpointTraitWithHostLabel", + "documentation": "Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input.", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "body": "Action=EndpointWithHostLabelOperation&Version=2020-01-08&label=bar", + "bodyMediaType": "application/x-www-form-urlencoded", + "host": "example.com", + "resolvedHost": "foo.bar.example.com", + "params": { + "label": "bar" + } + } + ] + }, + "aws.protocoltests.query#FlattenedXmlMap": { + "responses": [ + { + "id": "QueryQueryFlattenedXmlMap", + "documentation": "Serializes flattened XML maps in responses", + "protocol": "aws.protocols#awsQuery", + "code": 200, + "body": "\n \n \n foo\n Foo\n \n \n baz\n Baz\n \n \n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml" + }, + "params": { + "myMap": { + "foo": "Foo", + "baz": "Baz" + } + } + } + ] + }, + "aws.protocoltests.query#FlattenedXmlMapWithXmlName": { + "responses": [ + { + "id": "QueryQueryFlattenedXmlMapWithXmlName", + "documentation": "Serializes flattened XML maps in responses that have xmlName on members", + "protocol": "aws.protocols#awsQuery", + "code": 200, + "body": "\n \n \n a\n A\n \n \n b\n B\n \n \n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml" + }, + "params": { + "myMap": { + "a": "A", + "b": "B" + } + } + } + ] + }, + "aws.protocoltests.query#FlattenedXmlMapWithXmlNamespace": { + "responses": [ + { + "id": "QueryQueryFlattenedXmlMapWithXmlNamespace", + "documentation": "Serializes flattened XML maps in responses that have xmlNamespace and xmlName on members", + "protocol": "aws.protocols#awsQuery", + "code": 200, + "body": "\n \n \n a\n A\n \n \n b\n B\n \n \n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml" + }, + "params": { + "myMap": { + "a": "A", + "b": "B" + } + } + } + ] + }, + "aws.protocoltests.query#FractionalSeconds": { + "responses": [ + { + "id": "AwsQueryDateTimeWithFractionalSeconds", + "documentation": "Ensures that clients can correctly parse datetime timestamps with fractional seconds", + "protocol": "aws.protocols#awsQuery", + "code": 200, + "body": "\n \n 2000-01-02T20:34:56.123Z\n \n\n", + "params": { + "datetime": 946845296.123 + }, + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml" + }, + "appliesTo": "client" + } + ] + }, + "aws.protocoltests.query#GreetingWithErrors": { + "responses": [ + { + "id": "QueryGreetingWithErrors", + "documentation": "Ensures that operations with errors successfully know how to deserialize the successful response", + "protocol": "aws.protocols#awsQuery", + "code": 200, + "headers": { + "Content-Type": "text/xml" + }, + "body": "\n \n Hello\n \n\n", + "bodyMediaType": "application/xml", + "params": { + "greeting": "Hello" + } + } + ] + }, + "aws.protocoltests.query#HostWithPathOperation": { + "requests": [ + { + "id": "QueryHostWithPath", + "documentation": "Custom endpoints supplied by users can have paths", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/custom/", + "body": "Action=HostWithPathOperation&Version=2020-01-08", + "host": "example.com/custom", + "appliesTo": "client" + } + ] + }, + "aws.protocoltests.query#IgnoresWrappingXmlName": { + "responses": [ + { + "id": "QueryIgnoresWrappingXmlName", + "documentation": "The xmlName trait on the output structure is ignored in AWS Query", + "protocol": "aws.protocols#awsQuery", + "code": 200, + "body": "\n \n bar\n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml" + }, + "params": { + "foo": "bar" + } + } + ] + }, + "aws.protocoltests.query#InvalidGreeting": { + "responses": [ + { + "id": "QueryInvalidGreetingError", + "documentation": "Parses simple XML errors", + "protocol": "aws.protocols#awsQuery", + "params": { + "Message": "Hi" + }, + "code": 400, + "headers": { + "Content-Type": "text/xml" + }, + "body": "\n \n Sender\n InvalidGreeting\n Hi\n \n foo-id\n\n", + "bodyMediaType": "application/xml", + "vendorParamsShape": "aws.protocoltests.config#ErrorCodeParams", + "vendorParams": { + "code": "InvalidGreeting", + "type": "Sender" + } + } + ] + }, + "aws.protocoltests.query#NestedStructures": { + "requests": [ + { + "id": "NestedStructures", + "documentation": "Serializes nested structures using dots", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "requireHeaders": [ + "Content-Length" + ], + "body": "Action=NestedStructures&Version=2020-01-08&Nested.StringArg=foo&Nested.OtherArg=true&Nested.RecursiveArg.StringArg=baz", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "Nested": { + "StringArg": "foo", + "OtherArg": true, + "RecursiveArg": { + "StringArg": "baz" + } + } + } + } + ] + }, + "aws.protocoltests.query#NoInputAndNoOutput": { + "requests": [ + { + "id": "QueryNoInputAndNoOutput", + "documentation": "No input serializes no additional query params", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "body": "Action=NoInputAndNoOutput&Version=2020-01-08", + "bodyMediaType": "application/x-www-form-urlencoded" + } + ], + "responses": [ + { + "id": "QueryNoInputAndNoOutput", + "documentation": "Empty output. Note that no assertion is made on the output body itself.", + "protocol": "aws.protocols#awsQuery", + "code": 200 + }, + { + "id": "QueryNoInputAndNoOutputWithResponseMetadata", + "documentation": "Empty output, but the server returns ResponseMetadata.", + "protocol": "aws.protocols#awsQuery", + "code": 200, + "body": "\n \n abc-123\n \n\n" + } + ] + }, + "aws.protocoltests.query#NoInputAndOutput": { + "requests": [ + { + "id": "QueryNoInputAndOutput", + "documentation": "No input serializes no payload", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "body": "Action=NoInputAndOutput&Version=2020-01-08", + "bodyMediaType": "application/x-www-form-urlencoded" + } + ], + "responses": [ + { + "id": "QueryNoInputAndOutput", + "documentation": "Empty output", + "protocol": "aws.protocols#awsQuery", + "code": 200 + } + ] + }, + "aws.protocoltests.query#PutWithContentEncoding": { + "requests": [ + { + "id": "SDKAppliedContentEncoding_awsQuery", + "documentation": "Compression algorithm encoding is appended to the Content-Encoding header.", + "protocol": "aws.protocols#awsQuery", + "params": { + "data": "RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgqTF8\n5HYcoqINTRxuAwGuRUMoNO473QT0BtCQoKUkAyVaypG0hBZdGNoJhunBfW0d3HWTYlzz9pXElyZhq3C1\n2PDB17GEoOYXmTxDecysmPOdo5z6T0HFhujfeJFIQQ8dirmXcG4F3v0bZdf6AZ3jsiVh6RnEXIPxPbOi\ngIXDWTMUr4Pg3f2LdYCM01eAb2qTdgsEN0MUDhEIfn68I2tnWvcozyUFpg1ez6pyWP8ssWVfFrckREIM\nMb0cTUVqSVSM8bnFiF9SoXM6ZoGMKfX1mT708OYk7SqZ1JlCTkecDJDoR5ED2q2MWKUGR6jjnEV0GtD8\nWJO6AcF0DptY9Hk16Bav3z6c5FeBvrGDrxTFVgRUk8SychzjrcqJ4qskwN8rL3zslC0oqobQRnLFOvwJ\nprSzBIwdH2yAuxokXAdVRa1u9NGNRvfWJfKkwbbVz8yV76RUF9KNhAUmwyYDrLnxNj8ROl8B7dv8Gans\n7Bit52wcdiJyjBW1pAodB7zqqVwtBx5RaSpF7kEMXexYXp9N0J1jlXzdeg5Wgg4pO7TJNr2joiPVAiFf\nefwMMCNBkYx2z7cRxVxCJZMXXzxSKMGgdTN24bJ5UgE0TxyV52RC0wGWG49S1x5jGrvmxKCIgYPs0w3Z\n0I3XcdB0WEj4x4xRztB9Cx2Mc4qFYQdzS9kOioAgNBti1rBySZ8lFZM2zqxvBsJTTJsmcKPr1crqiXjM\noVWdM4ObOO6QA7Pu4c1hT68CrTmbcecjFcxHkgsqdixnFtN6keMGL9Z2YMjZOjYYzbUEwLJqUVWalkIB\nBkgBRqZp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zDybX468aoRoks654jjmRY5zi1oB8TcMdC2c3sicNaqfeuhd\nH1nPX7l4RpdqWMR7gGx9slXtG8S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n" + }, + "method": "POST", + "uri": "/", + "headers": { + "Content-Encoding": "gzip" + } + }, + { + "id": "SDKAppendsGzipAndIgnoresHttpProvidedEncoding_awsQuery", + "documentation": "Compression algorithm encoding is appended to the Content-Encoding header, and the\nuser-provided content-encoding is NOT in the Content-Encoding header since HTTP binding\ntraits are ignored in the awsQuery protocol.\n", + "protocol": "aws.protocols#awsQuery", + "params": { + "encoding": "cust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S3KxpOi4qCD7yg3saD66nun4dzksQURoTUdXyrJR5UpHsfIlTF1aJa\nMdXyQtQnrkl00TeghQd00rRFZsCnhi0qrCSKiBfB2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n" + }, + "method": "POST", + "uri": "/", + "headers": { + "Content-Encoding": "gzip" + } + } + ] + }, + "aws.protocoltests.query#QueryIdempotencyTokenAutoFill": { + "requests": [ + { + "id": "QueryProtocolIdempotencyTokenAutoFill", + "documentation": "Automatically adds idempotency token when not set", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "requireHeaders": [ + "Content-Length" + ], + "body": "Action=QueryIdempotencyTokenAutoFill&Version=2020-01-08&token=00000000-0000-4000-8000-000000000000", + "bodyMediaType": "application/x-www-form-urlencoded", + "appliesTo": "client" + }, + { + "id": "QueryProtocolIdempotencyTokenAutoFillIsSet", + "documentation": "Uses the given idempotency token as-is", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "requireHeaders": [ + "Content-Length" + ], + "body": "Action=QueryIdempotencyTokenAutoFill&Version=2020-01-08&token=00000000-0000-4000-8000-000000000123", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "token": "00000000-0000-4000-8000-000000000123" + }, + "appliesTo": "client" + } + ] + }, + "aws.protocoltests.query#QueryLists": { + "requests": [ + { + "id": "QueryLists", + "documentation": "Serializes query lists", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "body": "Action=QueryLists&Version=2020-01-08&ListArg.member.1=foo&ListArg.member.2=bar&ListArg.member.3=baz&ComplexListArg.member.1.hi=hello&ComplexListArg.member.2.hi=hola", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "ListArg": [ + "foo", + "bar", + "baz" + ], + "ComplexListArg": [ + { + "hi": "hello" + }, + { + "hi": "hola" + } + ] + } + }, + { + "id": "EmptyQueryLists", + "documentation": "Serializes empty query lists", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "body": "Action=QueryLists&Version=2020-01-08&ListArg=", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "ListArg": [] + } + }, + { + "id": "FlattenedQueryLists", + "documentation": "Flattens query lists by repeating the member name and removing the member element", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "body": "Action=QueryLists&Version=2020-01-08&FlattenedListArg.1=A&FlattenedListArg.2=B", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "FlattenedListArg": [ + "A", + "B" + ] + } + }, + { + "id": "QueryListArgWithXmlNameMember", + "documentation": "Changes the member of lists using xmlName trait", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "body": "Action=QueryLists&Version=2020-01-08&ListArgWithXmlNameMember.item.1=A&ListArgWithXmlNameMember.item.2=B", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "ListArgWithXmlNameMember": [ + "A", + "B" + ] + } + }, + { + "id": "QueryFlattenedListArgWithXmlName", + "documentation": "Changes the name of flattened lists using xmlName trait on the structure member", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "body": "Action=QueryLists&Version=2020-01-08&Hi.1=A&Hi.2=B", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "FlattenedListArgWithXmlName": [ + "A", + "B" + ] + } + }, + { + "id": "QueryNestedStructWithList", + "documentation": "Nested structure with a list member", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "body": "Action=QueryLists&Version=2020-01-08&NestedWithList.ListArg.member.1=A&NestedWithList.ListArg.member.2=B", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "NestedWithList": { + "ListArg": [ + "A", + "B" + ] + } + } + } + ] + }, + "aws.protocoltests.query#QueryMaps": { + "requests": [ + { + "id": "QuerySimpleQueryMaps", + "documentation": "Serializes query maps", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "body": "Action=QueryMaps&Version=2020-01-08&MapArg.entry.1.key=bar&MapArg.entry.1.value=Bar&MapArg.entry.2.key=foo&MapArg.entry.2.value=Foo", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "MapArg": { + "bar": "Bar", + "foo": "Foo" + } + } + }, + { + "id": "QuerySimpleQueryMapsWithXmlName", + "documentation": "Serializes query maps and uses xmlName", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "body": "Action=QueryMaps&Version=2020-01-08&Foo.entry.1.key=foo&Foo.entry.1.value=Foo", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "RenamedMapArg": { + "foo": "Foo" + } + } + }, + { + "id": "QueryComplexQueryMaps", + "documentation": "Serializes complex query maps", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "body": "Action=QueryMaps&Version=2020-01-08&ComplexMapArg.entry.1.key=bar&ComplexMapArg.entry.1.value.hi=Bar&ComplexMapArg.entry.2.key=foo&ComplexMapArg.entry.2.value.hi=Foo", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "ComplexMapArg": { + "bar": { + "hi": "Bar" + }, + "foo": { + "hi": "Foo" + } + } + } + }, + { + "id": "QueryEmptyQueryMaps", + "documentation": "Does not serialize empty query maps", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "body": "Action=QueryMaps&Version=2020-01-08", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "MapArg": {} + } + }, + { + "id": "QueryQueryMapWithMemberXmlName", + "documentation": "Serializes query maps where the member has an xmlName trait", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "body": "Action=QueryMaps&Version=2020-01-08&MapWithXmlMemberName.entry.1.K=bar&MapWithXmlMemberName.entry.1.V=Bar&MapWithXmlMemberName.entry.2.K=foo&MapWithXmlMemberName.entry.2.V=Foo", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "MapWithXmlMemberName": { + "bar": "Bar", + "foo": "Foo" + } + } + }, + { + "id": "QueryFlattenedQueryMaps", + "documentation": "Serializes flattened query maps", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "body": "Action=QueryMaps&Version=2020-01-08&FlattenedMap.1.key=bar&FlattenedMap.1.value=Bar&FlattenedMap.2.key=foo&FlattenedMap.2.value=Foo", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "FlattenedMap": { + "bar": "Bar", + "foo": "Foo" + } + } + }, + { + "id": "QueryFlattenedQueryMapsWithXmlName", + "documentation": "Serializes flattened query maps that use an xmlName", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "body": "Action=QueryMaps&Version=2020-01-08&Hi.1.K=bar&Hi.1.V=Bar&Hi.2.K=foo&Hi.2.V=Foo", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "FlattenedMapWithXmlName": { + "bar": "Bar", + "foo": "Foo" + } + } + }, + { + "id": "QueryQueryMapOfLists", + "documentation": "Serializes query map of lists", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "body": "Action=QueryMaps&Version=2020-01-08&MapOfLists.entry.1.key=bar&MapOfLists.entry.1.value.member.1=C&MapOfLists.entry.1.value.member.2=D&MapOfLists.entry.2.key=foo&MapOfLists.entry.2.value.member.1=A&MapOfLists.entry.2.value.member.2=B", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "MapOfLists": { + "bar": [ + "C", + "D" + ], + "foo": [ + "A", + "B" + ] + } + } + }, + { + "id": "QueryNestedStructWithMap", + "documentation": "Serializes nested struct with map member", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "body": "Action=QueryMaps&Version=2020-01-08&NestedStructWithMap.MapArg.entry.1.key=bar&NestedStructWithMap.MapArg.entry.1.value=Bar&NestedStructWithMap.MapArg.entry.2.key=foo&NestedStructWithMap.MapArg.entry.2.value=Foo", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "NestedStructWithMap": { + "MapArg": { + "bar": "Bar", + "foo": "Foo" + } + } + } + } + ] + }, + "aws.protocoltests.query#QueryTimestamps": { + "requests": [ + { + "id": "QueryTimestampsInput", + "documentation": "Serializes timestamps", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "requireHeaders": [ + "Content-Length" + ], + "body": "Action=QueryTimestamps&Version=2020-01-08&normalFormat=2015-01-25T08%3A00%3A00Z&epochMember=1422172800&epochTarget=1422172800", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "normalFormat": 1422172800, + "epochMember": 1422172800, + "epochTarget": 1422172800 + } + } + ] + }, + "aws.protocoltests.query#RecursiveXmlShapes": { + "responses": [ + { + "id": "QueryRecursiveShapes", + "documentation": "Serializes recursive structures", + "protocol": "aws.protocols#awsQuery", + "code": 200, + "body": "\n \n \n Foo1\n \n Bar1\n \n Foo2\n \n Bar2\n \n \n \n \n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml" + }, + "params": { + "nested": { + "foo": "Foo1", + "nested": { + "bar": "Bar1", + "recursiveMember": { + "foo": "Foo2", + "nested": { + "bar": "Bar2" + } + } + } + } + } + } + ] + }, + "aws.protocoltests.query#SimpleInputParams": { + "requests": [ + { + "id": "QuerySimpleInputParamsStrings", + "documentation": "Serializes strings", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "requireHeaders": [ + "Content-Length" + ], + "body": "Action=SimpleInputParams&Version=2020-01-08&Foo=val1&Bar=val2", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "Foo": "val1", + "Bar": "val2" + } + }, + { + "id": "QuerySimpleInputParamsStringAndBooleanTrue", + "documentation": "Serializes booleans that are true", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "requireHeaders": [ + "Content-Length" + ], + "body": "Action=SimpleInputParams&Version=2020-01-08&Foo=val1&Baz=true", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "Foo": "val1", + "Baz": true + } + }, + { + "id": "QuerySimpleInputParamsStringsAndBooleanFalse", + "documentation": "Serializes booleans that are false", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "requireHeaders": [ + "Content-Length" + ], + "body": "Action=SimpleInputParams&Version=2020-01-08&Baz=false", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "Baz": false + } + }, + { + "id": "QuerySimpleInputParamsInteger", + "documentation": "Serializes integers", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "requireHeaders": [ + "Content-Length" + ], + "body": "Action=SimpleInputParams&Version=2020-01-08&Bam=10", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "Bam": 10 + } + }, + { + "id": "QuerySimpleInputParamsFloat", + "documentation": "Serializes floats", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "requireHeaders": [ + "Content-Length" + ], + "body": "Action=SimpleInputParams&Version=2020-01-08&Boo=10.8", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "Boo": 10.8 + } + }, + { + "id": "QuerySimpleInputParamsBlob", + "documentation": "Blobs are base64 encoded in the query string", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "requireHeaders": [ + "Content-Length" + ], + "body": "Action=SimpleInputParams&Version=2020-01-08&Qux=dmFsdWU%3D", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "Qux": "value" + } + }, + { + "id": "QueryEnums", + "documentation": "Serializes enums in the query string", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "requireHeaders": [ + "Content-Length" + ], + "body": "Action=SimpleInputParams&Version=2020-01-08&FooEnum=Foo", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "FooEnum": "Foo" + } + }, + { + "id": "QueryIntEnums", + "documentation": "Serializes intEnums in the query string", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "requireHeaders": [ + "Content-Length" + ], + "body": "Action=SimpleInputParams&Version=2020-01-08&IntegerEnum=1", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "IntegerEnum": 1 + } + }, + { + "id": "AwsQuerySupportsNaNFloatInputs", + "documentation": "Supports handling NaN float values.", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/", + "body": "Action=SimpleInputParams&Version=2020-01-08&FloatValue=NaN&Boo=NaN", + "bodyMediaType": "application/x-www-form-urlencoded", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "requireHeaders": [ + "Content-Length" + ], + "params": { + "FloatValue": "NaN", + "Boo": "NaN" + } + }, + { + "id": "AwsQuerySupportsInfinityFloatInputs", + "documentation": "Supports handling Infinity float values.", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/", + "body": "Action=SimpleInputParams&Version=2020-01-08&FloatValue=Infinity&Boo=Infinity", + "bodyMediaType": "application/x-www-form-urlencoded", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "requireHeaders": [ + "Content-Length" + ], + "params": { + "FloatValue": "Infinity", + "Boo": "Infinity" + } + }, + { + "id": "AwsQuerySupportsNegativeInfinityFloatInputs", + "documentation": "Supports handling -Infinity float values.", + "protocol": "aws.protocols#awsQuery", + "method": "POST", + "uri": "/", + "body": "Action=SimpleInputParams&Version=2020-01-08&FloatValue=-Infinity&Boo=-Infinity", + "bodyMediaType": "application/x-www-form-urlencoded", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "requireHeaders": [ + "Content-Length" + ], + "params": { + "FloatValue": "-Infinity", + "Boo": "-Infinity" + } + } + ] + }, + "aws.protocoltests.query#SimpleScalarXmlProperties": { + "responses": [ + { + "id": "QuerySimpleScalarProperties", + "documentation": "Serializes simple scalar properties", + "protocol": "aws.protocols#awsQuery", + "code": 200, + "body": "\n \n string\n \n true\n false\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml" + }, + "params": { + "stringValue": "string", + "emptyStringValue": "", + "trueBooleanValue": true, + "falseBooleanValue": false, + "byteValue": 1, + "shortValue": 2, + "integerValue": 3, + "longValue": 4, + "floatValue": 5.5, + "doubleValue": 6.5 + } + }, + { + "id": "AwsQuerySupportsNaNFloatOutputs", + "documentation": "Supports handling NaN float values.", + "protocol": "aws.protocols#awsQuery", + "code": 200, + "body": "\n \n NaN\n NaN\n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml" + }, + "params": { + "floatValue": "NaN", + "doubleValue": "NaN" + } + }, + { + "id": "AwsQuerySupportsInfinityFloatOutputs", + "documentation": "Supports handling Infinity float values.", + "protocol": "aws.protocols#awsQuery", + "code": 200, + "body": "\n \n Infinity\n Infinity\n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml" + }, + "params": { + "floatValue": "Infinity", + "doubleValue": "Infinity" + } + }, + { + "id": "AwsQuerySupportsNegativeInfinityFloatOutputs", + "documentation": "Supports handling -Infinity float values.", + "protocol": "aws.protocols#awsQuery", + "code": 200, + "body": "\n \n -Infinity\n -Infinity\n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml" + }, + "params": { + "floatValue": "-Infinity", + "doubleValue": "-Infinity" + } + } + ] + }, + "aws.protocoltests.query#XmlBlobs": { + "responses": [ + { + "id": "QueryXmlBlobs", + "documentation": "Blobs are base64 encoded", + "protocol": "aws.protocols#awsQuery", + "code": 200, + "body": "\n \n dmFsdWU=\n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml" + }, + "params": { + "data": "value" + } + } + ] + }, + "aws.protocoltests.query#XmlEmptyBlobs": { + "responses": [ + { + "id": "QueryXmlEmptyBlobs", + "documentation": "Empty blobs are deserialized as empty string", + "protocol": "aws.protocols#awsQuery", + "code": 200, + "body": "\n \n \n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml" + }, + "params": { + "data": "" + }, + "appliesTo": "client" + }, + { + "id": "QueryXmlEmptySelfClosedBlobs", + "documentation": "Empty self closed blobs are deserialized as empty string", + "protocol": "aws.protocols#awsQuery", + "code": 200, + "body": "\n \n \n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml" + }, + "params": { + "data": "" + }, + "appliesTo": "client" + } + ] + }, + "aws.protocoltests.query#XmlEmptyLists": { + "responses": [ + { + "id": "QueryXmlEmptyLists", + "documentation": "Deserializes empty XML lists", + "protocol": "aws.protocols#awsQuery", + "code": 200, + "body": "\n \n \n \n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml" + }, + "params": { + "stringList": [], + "stringSet": [] + }, + "appliesTo": "client" + } + ] + }, + "aws.protocoltests.query#XmlEmptyMaps": { + "responses": [ + { + "id": "QueryXmlEmptyMaps", + "documentation": "Deserializes Empty XML maps", + "protocol": "aws.protocols#awsQuery", + "code": 200, + "body": "\n \n \n \n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml" + }, + "params": { + "myMap": {} + }, + "appliesTo": "client" + }, + { + "id": "QueryXmlEmptySelfClosedMaps", + "documentation": "Deserializes Self-Closed XML maps", + "protocol": "aws.protocols#awsQuery", + "code": 200, + "body": "\n \n \n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml" + }, + "params": { + "myMap": {} + }, + "appliesTo": "client" + } + ] + }, + "aws.protocoltests.query#XmlEnums": { + "responses": [ + { + "id": "QueryXmlEnums", + "documentation": "Serializes simple scalar properties", + "protocol": "aws.protocols#awsQuery", + "code": 200, + "body": "\n \n Foo\n 0\n 1\n \n Foo\n 0\n \n \n Foo\n 0\n \n \n \n hi\n Foo\n \n \n zero\n 0\n \n \n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml" + }, + "params": { + "fooEnum1": "Foo", + "fooEnum2": "0", + "fooEnum3": "1", + "fooEnumList": [ + "Foo", + "0" + ], + "fooEnumSet": [ + "Foo", + "0" + ], + "fooEnumMap": { + "hi": "Foo", + "zero": "0" + } + } + } + ] + }, + "aws.protocoltests.query#XmlIntEnums": { + "responses": [ + { + "id": "QueryXmlIntEnums", + "documentation": "Serializes simple scalar properties", + "protocol": "aws.protocols#awsQuery", + "code": 200, + "body": "\n \n 1\n 2\n 3\n \n 1\n 2\n \n \n 1\n 2\n \n \n \n a\n 1\n \n \n b\n 2\n \n \n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml" + }, + "params": { + "intEnum1": 1, + "intEnum2": 2, + "intEnum3": 3, + "intEnumList": [ + 1, + 2 + ], + "intEnumSet": [ + 1, + 2 + ], + "intEnumMap": { + "a": 1, + "b": 2 + } + } + } + ] + }, + "aws.protocoltests.query#XmlLists": { + "responses": [ + { + "id": "QueryXmlLists", + "documentation": "Tests for XML list serialization", + "protocol": "aws.protocols#awsQuery", + "code": 200, + "body": "\n \n \n foo\n bar\n \n \n foo\n bar\n \n \n 1\n 2\n \n \n true\n false\n \n \n 2014-04-29T18:30:38Z\n 2014-04-29T18:30:38Z\n \n \n Foo\n 0\n \n \n 1\n 2\n \n \n \n foo\n bar\n \n \n baz\n qux\n \n \n \n foo\n bar\n \n hi\n bye\n yep\n nope\n a\n b\n a\n b\n \n \n 1\n 2\n \n \n 3\n 4\n \n \n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml" + }, + "params": { + "stringList": [ + "foo", + "bar" + ], + "stringSet": [ + "foo", + "bar" + ], + "integerList": [ + 1, + 2 + ], + "booleanList": [ + true, + false + ], + "timestampList": [ + 1398796238, + 1398796238 + ], + "enumList": [ + "Foo", + "0" + ], + "intEnumList": [ + 1, + 2 + ], + "nestedStringList": [ + [ + "foo", + "bar" + ], + [ + "baz", + "qux" + ] + ], + "renamedListMembers": [ + "foo", + "bar" + ], + "flattenedList": [ + "hi", + "bye" + ], + "flattenedList2": [ + "yep", + "nope" + ], + "flattenedListWithMemberNamespace": [ + "a", + "b" + ], + "flattenedListWithNamespace": [ + "a", + "b" + ], + "structureList": [ + { + "a": "1", + "b": "2" + }, + { + "a": "3", + "b": "4" + } + ] + } + } + ] + }, + "aws.protocoltests.query#XmlMaps": { + "responses": [ + { + "id": "QueryXmlMaps", + "documentation": "Tests for XML map serialization", + "protocol": "aws.protocols#awsQuery", + "code": 200, + "body": "\n \n \n \n foo\n \n there\n \n \n \n baz\n \n bye\n \n \n \n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml" + }, + "params": { + "myMap": { + "foo": { + "hi": "there" + }, + "baz": { + "hi": "bye" + } + } + } + } + ] + }, + "aws.protocoltests.query#XmlMapsXmlName": { + "responses": [ + { + "id": "QueryQueryXmlMapsXmlName", + "documentation": "Serializes XML lists", + "protocol": "aws.protocols#awsQuery", + "code": 200, + "body": "\n \n \n \n foo\n \n there\n \n \n \n baz\n \n bye\n \n \n \n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml" + }, + "params": { + "myMap": { + "foo": { + "hi": "there" + }, + "baz": { + "hi": "bye" + } + } + } + } + ] + }, + "aws.protocoltests.query#XmlNamespaces": { + "responses": [ + { + "id": "QueryXmlNamespaces", + "documentation": "Serializes XML namespaces", + "protocol": "aws.protocols#awsQuery", + "code": 200, + "body": "\n \n \n Foo\n \n Bar\n Baz\n \n \n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml" + }, + "params": { + "nested": { + "foo": "Foo", + "values": [ + "Bar", + "Baz" + ] + } + } + } + ] + }, + "aws.protocoltests.query#XmlTimestamps": { + "responses": [ + { + "id": "QueryXmlTimestamps", + "documentation": "Tests how normal timestamps are serialized", + "protocol": "aws.protocols#awsQuery", + "code": 200, + "body": "\n \n 2014-04-29T18:30:38Z\n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml" + }, + "params": { + "normal": 1398796238 + } + }, + { + "id": "QueryXmlTimestampsWithDateTimeFormat", + "documentation": "Ensures that the timestampFormat of date-time works like normal timestamps", + "protocol": "aws.protocols#awsQuery", + "code": 200, + "body": "\n \n 2014-04-29T18:30:38Z\n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml" + }, + "params": { + "dateTime": 1398796238 + } + }, + { + "id": "QueryXmlTimestampsWithDateTimeOnTargetFormat", + "documentation": "Ensures that the timestampFormat of date-time on the target shape works like normal timestamps", + "protocol": "aws.protocols#awsQuery", + "code": 200, + "body": "\n \n 2014-04-29T18:30:38Z\n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml" + }, + "params": { + "dateTimeOnTarget": 1398796238 + } + }, + { + "id": "QueryXmlTimestampsWithEpochSecondsFormat", + "documentation": "Ensures that the timestampFormat of epoch-seconds works", + "protocol": "aws.protocols#awsQuery", + "code": 200, + "body": "\n \n 1398796238\n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml" + }, + "params": { + "epochSeconds": 1398796238 + } + }, + { + "id": "QueryXmlTimestampsWithEpochSecondsOnTargetFormat", + "documentation": "Ensures that the timestampFormat of epoch-seconds on the target shape works", + "protocol": "aws.protocols#awsQuery", + "code": 200, + "body": "\n \n 1398796238\n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml" + }, + "params": { + "epochSecondsOnTarget": 1398796238 + } + }, + { + "id": "QueryXmlTimestampsWithHttpDateFormat", + "documentation": "Ensures that the timestampFormat of http-date works", + "protocol": "aws.protocols#awsQuery", + "code": 200, + "body": "\n \n Tue, 29 Apr 2014 18:30:38 GMT\n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml" + }, + "params": { + "httpDate": 1398796238 + } + }, + { + "id": "QueryXmlTimestampsWithHttpDateOnTargetFormat", + "documentation": "Ensures that the timestampFormat of http-date on the target shape works", + "protocol": "aws.protocols#awsQuery", + "code": 200, + "body": "\n \n Tue, 29 Apr 2014 18:30:38 GMT\n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml" + }, + "params": { + "httpDateOnTarget": 1398796238 + } + } + ] + } +} diff --git a/scripts/codegen-output-py/models/vectors/ec2-query.json b/scripts/codegen-output-py/models/vectors/ec2-query.json new file mode 100644 index 000000000..4fa9274e9 --- /dev/null +++ b/scripts/codegen-output-py/models/vectors/ec2-query.json @@ -0,0 +1,1183 @@ +{ + "aws.protocoltests.ec2#ComplexError": { + "responses": [ + { + "id": "Ec2ComplexError", + "protocol": "aws.protocols#ec2Query", + "params": { + "TopLevel": "Top level", + "Nested": { + "Foo": "bar" + } + }, + "code": 400, + "headers": { + "Content-Type": "text/xml;charset=UTF-8" + }, + "body": "\n \n \n ComplexError\n Hi\n Top level\n \n bar\n \n \n \n foo-id\n\n", + "bodyMediaType": "application/xml", + "vendorParamsShape": "aws.protocoltests.config#ErrorCodeParams", + "vendorParams": { + "code": "ComplexError" + } + } + ] + }, + "aws.protocoltests.ec2#DatetimeOffsets": { + "responses": [ + { + "id": "Ec2QueryDateTimeWithNegativeOffset", + "documentation": "Ensures that clients can correctly parse datetime (timestamps) with offsets", + "protocol": "aws.protocols#ec2Query", + "code": 200, + "body": "\n 2019-12-16T22:48:18-01:00\n requestid\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml;charset=UTF-8" + }, + "params": { + "datetime": 1576540098 + } + }, + { + "id": "Ec2QueryDateTimeWithPositiveOffset", + "documentation": "Ensures that clients can correctly parse datetime (timestamps) with offsets", + "protocol": "aws.protocols#ec2Query", + "code": 200, + "body": "\n 2019-12-17T00:48:18+01:00\n requestid\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml;charset=UTF-8" + }, + "params": { + "datetime": 1576540098 + } + } + ] + }, + "aws.protocoltests.ec2#EmptyInputAndEmptyOutput": { + "requests": [ + { + "id": "Ec2QueryEmptyInputAndEmptyOutput", + "documentation": "Empty input serializes no extra query params", + "protocol": "aws.protocols#ec2Query", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "body": "Action=EmptyInputAndEmptyOutput&Version=2020-01-08", + "bodyMediaType": "application/x-www-form-urlencoded" + } + ], + "responses": [ + { + "id": "Ec2QueryEmptyInputAndEmptyOutput", + "documentation": "Empty output", + "protocol": "aws.protocols#ec2Query", + "code": 200, + "headers": { + "Content-Type": "text/xml;charset=UTF-8" + }, + "body": "\n requestid\n\n", + "bodyMediaType": "application/xml" + } + ] + }, + "aws.protocoltests.ec2#EndpointOperation": { + "requests": [ + { + "id": "Ec2QueryEndpointTrait", + "documentation": "Operations can prepend to the given host if they define the\nendpoint trait.", + "protocol": "aws.protocols#ec2Query", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "body": "Action=EndpointOperation&Version=2020-01-08", + "bodyMediaType": "application/x-www-form-urlencoded", + "host": "example.com", + "resolvedHost": "foo.example.com" + } + ] + }, + "aws.protocoltests.ec2#EndpointWithHostLabelOperation": { + "requests": [ + { + "id": "Ec2QueryEndpointTraitWithHostLabel", + "documentation": "Operations can prepend to the given host if they define the\nendpoint trait, and can use the host label trait to define\nfurther customization based on user input.", + "protocol": "aws.protocols#ec2Query", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "body": "Action=EndpointWithHostLabelOperation&Version=2020-01-08&Label=bar", + "bodyMediaType": "application/x-www-form-urlencoded", + "host": "example.com", + "resolvedHost": "foo.bar.example.com", + "params": { + "label": "bar" + } + } + ] + }, + "aws.protocoltests.ec2#FractionalSeconds": { + "responses": [ + { + "id": "Ec2QueryDateTimeWithFractionalSeconds", + "documentation": "Ensures that clients can correctly parse datetime timestamps with fractional seconds", + "protocol": "aws.protocols#ec2Query", + "code": 200, + "body": "\n 2000-01-02T20:34:56.123Z\n requestid\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml;charset=UTF-8" + }, + "params": { + "datetime": 946845296.123 + } + } + ] + }, + "aws.protocoltests.ec2#GreetingWithErrors": { + "responses": [ + { + "id": "Ec2GreetingWithErrors", + "documentation": "Ensures that operations with errors successfully know how to deserialize the successful response", + "protocol": "aws.protocols#ec2Query", + "code": 200, + "headers": { + "Content-Type": "text/xml;charset=UTF-8" + }, + "body": "\n Hello\n requestid\n\n", + "bodyMediaType": "application/xml", + "params": { + "greeting": "Hello" + } + } + ] + }, + "aws.protocoltests.ec2#HostWithPathOperation": { + "requests": [ + { + "id": "Ec2QueryHostWithPath", + "documentation": "Custom endpoints supplied by users can have paths", + "protocol": "aws.protocols#ec2Query", + "method": "POST", + "uri": "/custom/", + "body": "Action=HostWithPathOperation&Version=2020-01-08", + "host": "example.com/custom", + "appliesTo": "client" + } + ] + }, + "aws.protocoltests.ec2#IgnoresWrappingXmlName": { + "responses": [ + { + "id": "Ec2IgnoresWrappingXmlName", + "documentation": "The xmlName trait on the output structure is ignored in the ec2 protocol", + "protocol": "aws.protocols#ec2Query", + "code": 200, + "body": "\n bar\n requestid\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml;charset=UTF-8" + }, + "params": { + "foo": "bar" + } + } + ] + }, + "aws.protocoltests.ec2#InvalidGreeting": { + "responses": [ + { + "id": "Ec2InvalidGreetingError", + "documentation": "Parses simple XML errors", + "protocol": "aws.protocols#ec2Query", + "code": 400, + "headers": { + "Content-Type": "text/xml;charset=UTF-8" + }, + "body": "\n \n \n InvalidGreeting\n Hi\n \n \n foo-id\n\n", + "bodyMediaType": "application/xml", + "params": { + "Message": "Hi" + }, + "vendorParamsShape": "aws.protocoltests.config#ErrorCodeParams", + "vendorParams": { + "code": "InvalidGreeting" + } + } + ] + }, + "aws.protocoltests.ec2#NestedStructures": { + "requests": [ + { + "id": "Ec2NestedStructures", + "documentation": "Serializes nested structures using dots", + "protocol": "aws.protocols#ec2Query", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "requireHeaders": [ + "Content-Length" + ], + "body": "Action=NestedStructures&Version=2020-01-08&Nested.StringArg=foo&Nested.OtherArg=true&Nested.RecursiveArg.StringArg=baz", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "Nested": { + "StringArg": "foo", + "OtherArg": true, + "RecursiveArg": { + "StringArg": "baz" + } + } + } + } + ] + }, + "aws.protocoltests.ec2#NoInputAndOutput": { + "requests": [ + { + "id": "Ec2QueryNoInputAndOutput", + "documentation": "No input serializes no payload", + "protocol": "aws.protocols#ec2Query", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "body": "Action=NoInputAndOutput&Version=2020-01-08", + "bodyMediaType": "application/x-www-form-urlencoded" + } + ], + "responses": [ + { + "id": "Ec2QueryNoInputAndOutput", + "documentation": "Empty output", + "protocol": "aws.protocols#ec2Query", + "code": 200, + "headers": { + "Content-Type": "text/xml;charset=UTF-8" + }, + "body": "\n requestid\n\n", + "bodyMediaType": "application/xml" + } + ] + }, + "aws.protocoltests.ec2#PutWithContentEncoding": { + "requests": [ + { + "id": "SDKAppliedContentEncoding_ec2Query", + "documentation": "Compression algorithm encoding is appended to the Content-Encoding header.", + "protocol": "aws.protocols#ec2Query", + "params": { + "data": "RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1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2EVrd9RPpbgwJGZHuIQecdBmNetc2ylSEClqVBPR\nGOPPIxrnswEZjmnS0jxKW9VSM1QVxSPJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n" + }, + "method": "POST", + "uri": "/", + "headers": { + "Content-Encoding": "gzip" + } + }, + { + "id": "SDKAppendsGzipAndIgnoresHttpProvidedEncoding_ec2Query", + "documentation": "Compression algorithm encoding is appended to the Content-Encoding header, and the\nuser-provided content-encoding is NOT in the Content-Encoding header since HTTP binding\ntraits are ignored in the ec2Query protocol.\n", + "protocol": "aws.protocols#ec2Query", + "params": { + "encoding": "custom", + "data": "RjCEL3kBwqPivZUXGiyA5JCujtWgJAkKRlnTEsNYfBRGOS0f7LT6R3bCSOXeJ4auSHzQ4BEZZTklUyj5\n1HEojihShQC2jkQJrNdGOZNSW49yRO0XbnGmeczUHbZqZRelLFKW4xjru9uTuB8lFCtwoGgciFsgq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PJnPFswCqT95SoKD6CP4xdX28WIUGiNaIKodXXJHEIsXBCxLsr\nPwWPCtoplC6hhpKmW5dQo92iCTyY2KioKzO8XR6FKm6qonMKVEwQNtlYE9c97KMtEnp25VOdMP46SQXS\nYsSVp7vm8LP87VYI8SOKcW3s2oedYFtt45rvDzoTF0GmS6wELQ9uo98HhjQAI1Dt91cgjJOwygNmLoZE\nX5K2zQiNA163uMCl5xzaBqY4YTL0wgALg3IFdYSp0RFYLWdt6IxoGI1tnoxcjlUEPo5eGIc3mS3SmaLn\nOdumfUQQ4Jgmgaa5anUVQsfBDrlAN5oaX7O0JO71SSPSWiHBsT9WIPy2J1Cace9ZZLRxblFPSXcvsuHh\nhvnhWQltEDAe7MgvkFQ8lGVFa8jhzijoF9kLmMhMILSzYnfXnZPNP7TlAAwlLHK1RqlpHskJqb6CPpGP\nQvOAhEMsM3zJ2KejZx0esxkjxA0ZufVvGAMN3vTUMplQaF4RiQkp9fzBXf3CMk01dWjOMMIEXTeKzIQe\nEcffzjixWU9FpAyGp2rVl4ETRgqljOGw4UgK31r0ZIEGnH0xGz1FtbW1OcQM008JVujRqulCucEMmntr\n" + }, + "method": "POST", + "uri": "/", + "headers": { + "Content-Encoding": "gzip" + } + } + ] + }, + "aws.protocoltests.ec2#QueryIdempotencyTokenAutoFill": { + "requests": [ + { + "id": "Ec2ProtocolIdempotencyTokenAutoFill", + "documentation": "Automatically adds idempotency token when not set", + "protocol": "aws.protocols#ec2Query", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "requireHeaders": [ + "Content-Length" + ], + "body": "Action=QueryIdempotencyTokenAutoFill&Version=2020-01-08&Token=00000000-0000-4000-8000-000000000000", + "bodyMediaType": "application/x-www-form-urlencoded", + "appliesTo": "client" + }, + { + "id": "Ec2ProtocolIdempotencyTokenAutoFillIsSet", + "documentation": "Uses the given idempotency token as-is", + "protocol": "aws.protocols#ec2Query", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "requireHeaders": [ + "Content-Length" + ], + "body": "Action=QueryIdempotencyTokenAutoFill&Version=2020-01-08&Token=00000000-0000-4000-8000-000000000123", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "token": "00000000-0000-4000-8000-000000000123" + }, + "appliesTo": "client" + } + ] + }, + "aws.protocoltests.ec2#QueryLists": { + "requests": [ + { + "id": "Ec2Lists", + "documentation": "Serializes query lists. All EC2 lists are flattened.", + "protocol": "aws.protocols#ec2Query", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "body": "Action=QueryLists&Version=2020-01-08&ListArg.1=foo&ListArg.2=bar&ListArg.3=baz&ComplexListArg.1.Hi=hello&ComplexListArg.2.Hi=hola", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "ListArg": [ + "foo", + "bar", + "baz" + ], + "ComplexListArg": [ + { + "hi": "hello" + }, + { + "hi": "hola" + } + ] + } + }, + { + "id": "Ec2EmptyQueryLists", + "documentation": "Does not serialize empty query lists.", + "protocol": "aws.protocols#ec2Query", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "body": "Action=QueryLists&Version=2020-01-08", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "ListArg": [] + } + }, + { + "id": "Ec2ListArgWithXmlNameMember", + "documentation": "An xmlName trait in the member of a list has no effect on the list serialization.", + "protocol": "aws.protocols#ec2Query", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "body": "Action=QueryLists&Version=2020-01-08&ListArgWithXmlNameMember.1=A&ListArgWithXmlNameMember.2=B", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "ListArgWithXmlNameMember": [ + "A", + "B" + ] + } + }, + { + "id": "Ec2ListMemberWithXmlName", + "documentation": "Changes the name of the list using the xmlName trait", + "protocol": "aws.protocols#ec2Query", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "body": "Action=QueryLists&Version=2020-01-08&Hi.1=A&Hi.2=B", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "ListArgWithXmlName": [ + "A", + "B" + ] + } + }, + { + "id": "Ec2ListNestedStructWithList", + "documentation": "Nested structure with a list member", + "protocol": "aws.protocols#ec2Query", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "body": "Action=QueryLists&Version=2020-01-08&NestedWithList.ListArg.1=A&NestedWithList.ListArg.2=B", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "NestedWithList": { + "ListArg": [ + "A", + "B" + ] + } + } + } + ] + }, + "aws.protocoltests.ec2#QueryTimestamps": { + "requests": [ + { + "id": "Ec2TimestampsInput", + "documentation": "Serializes timestamps", + "protocol": "aws.protocols#ec2Query", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "requireHeaders": [ + "Content-Length" + ], + "body": "Action=QueryTimestamps&Version=2020-01-08&NormalFormat=2015-01-25T08%3A00%3A00Z&EpochMember=1422172800&EpochTarget=1422172800", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "normalFormat": 1422172800, + "epochMember": 1422172800, + "epochTarget": 1422172800 + } + } + ] + }, + "aws.protocoltests.ec2#RecursiveXmlShapes": { + "responses": [ + { + "id": "Ec2RecursiveShapes", + "documentation": "Serializes recursive structures", + "protocol": "aws.protocols#ec2Query", + "code": 200, + "body": "\n \n Foo1\n \n Bar1\n \n Foo2\n \n Bar2\n \n \n \n \n requestid\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml;charset=UTF-8" + }, + "params": { + "nested": { + "foo": "Foo1", + "nested": { + "bar": "Bar1", + "recursiveMember": { + "foo": "Foo2", + "nested": { + "bar": "Bar2" + } + } + } + } + } + } + ] + }, + "aws.protocoltests.ec2#SimpleInputParams": { + "requests": [ + { + "id": "Ec2SimpleInputParamsStrings", + "documentation": "Serializes strings", + "protocol": "aws.protocols#ec2Query", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "requireHeaders": [ + "Content-Length" + ], + "body": "Action=SimpleInputParams&Version=2020-01-08&Foo=val1&Bar=val2", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "Foo": "val1", + "Bar": "val2" + } + }, + { + "id": "Ec2SimpleInputParamsStringAndBooleanTrue", + "documentation": "Serializes booleans that are true", + "protocol": "aws.protocols#ec2Query", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "requireHeaders": [ + "Content-Length" + ], + "body": "Action=SimpleInputParams&Version=2020-01-08&Foo=val1&Baz=true", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "Foo": "val1", + "Baz": true + } + }, + { + "id": "Ec2SimpleInputParamsStringsAndBooleanFalse", + "documentation": "Serializes booleans that are false", + "protocol": "aws.protocols#ec2Query", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "requireHeaders": [ + "Content-Length" + ], + "body": "Action=SimpleInputParams&Version=2020-01-08&Baz=false", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "Baz": false + } + }, + { + "id": "Ec2SimpleInputParamsInteger", + "documentation": "Serializes integers", + "protocol": "aws.protocols#ec2Query", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "requireHeaders": [ + "Content-Length" + ], + "body": "Action=SimpleInputParams&Version=2020-01-08&Bam=10", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "Bam": 10 + } + }, + { + "id": "Ec2SimpleInputParamsFloat", + "documentation": "Serializes floats", + "protocol": "aws.protocols#ec2Query", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "requireHeaders": [ + "Content-Length" + ], + "body": "Action=SimpleInputParams&Version=2020-01-08&Boo=10.8", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "Boo": 10.8 + } + }, + { + "id": "Ec2SimpleInputParamsBlob", + "documentation": "Blobs are base64 encoded in the query string", + "protocol": "aws.protocols#ec2Query", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "requireHeaders": [ + "Content-Length" + ], + "body": "Action=SimpleInputParams&Version=2020-01-08&Qux=dmFsdWU%3D", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "Qux": "value" + } + }, + { + "id": "Ec2Enums", + "documentation": "Serializes enums in the query string", + "protocol": "aws.protocols#ec2Query", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "requireHeaders": [ + "Content-Length" + ], + "body": "Action=SimpleInputParams&Version=2020-01-08&FooEnum=Foo", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "FooEnum": "Foo" + } + }, + { + "id": "Ec2Query", + "documentation": "Serializes query using ec2QueryName trait.", + "protocol": "aws.protocols#ec2Query", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "requireHeaders": [ + "Content-Length" + ], + "body": "Action=SimpleInputParams&Version=2020-01-08&HasQueryName=Hi", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "HasQueryName": "Hi" + } + }, + { + "id": "Ec2QueryIsPreferred", + "documentation": "ec2QueryName trait is preferred over xmlName.", + "protocol": "aws.protocols#ec2Query", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "requireHeaders": [ + "Content-Length" + ], + "body": "Action=SimpleInputParams&Version=2020-01-08&HasQueryAndXmlName=Hi", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "HasQueryAndXmlName": "Hi" + } + }, + { + "id": "Ec2XmlNameIsUppercased", + "documentation": "xmlName is used with the ec2 protocol, but the first character is uppercased", + "protocol": "aws.protocols#ec2Query", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "requireHeaders": [ + "Content-Length" + ], + "body": "Action=SimpleInputParams&Version=2020-01-08&UsesXmlName=Hi", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "UsesXmlName": "Hi" + } + }, + { + "id": "Ec2QueryNameDistinctFromXmlNameAndMemberName", + "documentation": "ec2QueryName trait takes precedence when xmlName, default name, and ec2QueryName all have distinct values.", + "protocol": "aws.protocols#ec2Query", + "method": "POST", + "uri": "/", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "requireHeaders": [ + "Content-Length" + ], + "body": "Action=SimpleInputParams&Version=2020-01-08&QueryName=value1&queryAndXmlName=value2&XmlNameOnly=value3", + "bodyMediaType": "application/x-www-form-urlencoded", + "params": { + "DistinctQueryName": "value1", + "DistinctQueryAndXmlName": "value2", + "DistinctXmlName": "value3" + }, + "tags": [ + "skip-legacy-conversion" + ] + }, + { + "id": "Ec2QuerySupportsNaNFloatInputs", + "documentation": "Supports handling NaN float values.", + "protocol": "aws.protocols#ec2Query", + "method": "POST", + "uri": "/", + "body": "Action=SimpleInputParams&Version=2020-01-08&FloatValue=NaN&Boo=NaN", + "bodyMediaType": "application/x-www-form-urlencoded", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "requireHeaders": [ + "Content-Length" + ], + "params": { + "FloatValue": "NaN", + "Boo": "NaN" + } + }, + { + "id": "Ec2QuerySupportsInfinityFloatInputs", + "documentation": "Supports handling Infinity float values.", + "protocol": "aws.protocols#ec2Query", + "method": "POST", + "uri": "/", + "body": "Action=SimpleInputParams&Version=2020-01-08&FloatValue=Infinity&Boo=Infinity", + "bodyMediaType": "application/x-www-form-urlencoded", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "requireHeaders": [ + "Content-Length" + ], + "params": { + "FloatValue": "Infinity", + "Boo": "Infinity" + } + }, + { + "id": "Ec2QuerySupportsNegativeInfinityFloatInputs", + "documentation": "Supports handling -Infinity float values.", + "protocol": "aws.protocols#ec2Query", + "method": "POST", + "uri": "/", + "body": "Action=SimpleInputParams&Version=2020-01-08&FloatValue=-Infinity&Boo=-Infinity", + "bodyMediaType": "application/x-www-form-urlencoded", + "headers": { + "Content-Type": "application/x-www-form-urlencoded" + }, + "requireHeaders": [ + "Content-Length" + ], + "params": { + "FloatValue": "-Infinity", + "Boo": "-Infinity" + } + } + ] + }, + "aws.protocoltests.ec2#SimpleScalarXmlProperties": { + "responses": [ + { + "id": "Ec2SimpleScalarProperties", + "documentation": "Serializes simple scalar properties", + "protocol": "aws.protocols#ec2Query", + "code": 200, + "body": "\n string\n \n true\n false\n 1\n 2\n 3\n 4\n 5.5\n 6.5\n requestid\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml;charset=UTF-8" + }, + "params": { + "stringValue": "string", + "emptyStringValue": "", + "trueBooleanValue": true, + "falseBooleanValue": false, + "byteValue": 1, + "shortValue": 2, + "integerValue": 3, + "longValue": 4, + "floatValue": 5.5, + "doubleValue": 6.5 + } + }, + { + "id": "Ec2QuerySupportsNaNFloatOutputs", + "documentation": "Supports handling NaN float values.", + "protocol": "aws.protocols#ec2Query", + "code": 200, + "body": "\n NaN\n NaN\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml;charset=UTF-8" + }, + "params": { + "floatValue": "NaN", + "doubleValue": "NaN" + } + }, + { + "id": "Ec2QuerySupportsInfinityFloatOutputs", + "documentation": "Supports handling Infinity float values.", + "protocol": "aws.protocols#ec2Query", + "code": 200, + "body": "\n Infinity\n Infinity\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml;charset=UTF-8" + }, + "params": { + "floatValue": "Infinity", + "doubleValue": "Infinity" + } + }, + { + "id": "Ec2QuerySupportsNegativeInfinityFloatOutputs", + "documentation": "Supports handling -Infinity float values.", + "protocol": "aws.protocols#ec2Query", + "code": 200, + "body": "\n -Infinity\n -Infinity\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml;charset=UTF-8" + }, + "params": { + "floatValue": "-Infinity", + "doubleValue": "-Infinity" + } + } + ] + }, + "aws.protocoltests.ec2#XmlBlobs": { + "responses": [ + { + "id": "Ec2XmlBlobs", + "documentation": "Blobs are base64 encoded", + "protocol": "aws.protocols#ec2Query", + "code": 200, + "body": "\n dmFsdWU=\n requestid\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml;charset=UTF-8" + }, + "params": { + "data": "value" + } + } + ] + }, + "aws.protocoltests.ec2#XmlEmptyBlobs": { + "responses": [ + { + "id": "Ec2XmlEmptyBlobs", + "documentation": "Empty blobs are deserialized as empty string", + "protocol": "aws.protocols#ec2Query", + "code": 200, + "body": "\n \n requestid\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml;charset=UTF-8" + }, + "params": { + "data": "" + }, + "appliesTo": "client" + }, + { + "id": "Ec2XmlEmptySelfClosedBlobs", + "documentation": "Empty self closed blobs are deserialized as empty string", + "protocol": "aws.protocols#ec2Query", + "code": 200, + "body": "\n \n requestid\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml;charset=UTF-8" + }, + "params": { + "data": "" + }, + "appliesTo": "client" + } + ] + }, + "aws.protocoltests.ec2#XmlEmptyLists": { + "responses": [ + { + "id": "Ec2XmlEmptyLists", + "documentation": "Deserializes empty XML lists", + "protocol": "aws.protocols#ec2Query", + "code": 200, + "body": "\n \n \n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml" + }, + "params": { + "stringList": [], + "stringSet": [] + }, + "appliesTo": "client" + } + ] + }, + "aws.protocoltests.ec2#XmlEnums": { + "responses": [ + { + "id": "Ec2XmlEnums", + "documentation": "Serializes simple scalar properties", + "protocol": "aws.protocols#ec2Query", + "code": 200, + "body": "\n Foo\n 0\n 1\n \n Foo\n 0\n \n \n Foo\n 0\n \n \n \n hi\n Foo\n \n \n zero\n 0\n \n \n requestid\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml;charset=UTF-8" + }, + "params": { + "fooEnum1": "Foo", + "fooEnum2": "0", + "fooEnum3": "1", + "fooEnumList": [ + "Foo", + "0" + ], + "fooEnumSet": [ + "Foo", + "0" + ], + "fooEnumMap": { + "hi": "Foo", + "zero": "0" + } + } + } + ] + }, + "aws.protocoltests.ec2#XmlIntEnums": { + "responses": [ + { + "id": "Ec2XmlIntEnums", + "documentation": "Serializes simple scalar properties", + "protocol": "aws.protocols#ec2Query", + "code": 200, + "body": "\n 1\n 2\n 3\n \n 1\n 2\n \n \n 1\n 2\n \n \n \n a\n 1\n \n \n b\n 2\n \n \n requestid\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml;charset=UTF-8" + }, + "params": { + "intEnum1": 1, + "intEnum2": 2, + "intEnum3": 3, + "intEnumList": [ + 1, + 2 + ], + "intEnumSet": [ + 1, + 2 + ], + "intEnumMap": { + "a": 1, + "b": 2 + } + } + } + ] + }, + "aws.protocoltests.ec2#XmlLists": { + "responses": [ + { + "id": "Ec2XmlLists", + "documentation": "Tests for XML list serialization", + "protocol": "aws.protocols#ec2Query", + "code": 200, + "body": "\n \n foo\n bar\n \n \n foo\n bar\n \n \n 1\n 2\n \n \n true\n false\n \n \n 2014-04-29T18:30:38Z\n 2014-04-29T18:30:38Z\n \n \n Foo\n 0\n \n \n 1\n 2\n \n \n \n foo\n bar\n \n \n baz\n qux\n \n \n \n foo\n bar\n \n hi\n bye\n yep\n nope\n a\n b\n a\n b\n \n \n 1\n 2\n \n \n 3\n 4\n \n \n requestid\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml;charset=UTF-8" + }, + "params": { + "stringList": [ + "foo", + "bar" + ], + "stringSet": [ + "foo", + "bar" + ], + "integerList": [ + 1, + 2 + ], + "booleanList": [ + true, + false + ], + "timestampList": [ + 1398796238, + 1398796238 + ], + "enumList": [ + "Foo", + "0" + ], + "intEnumList": [ + 1, + 2 + ], + "nestedStringList": [ + [ + "foo", + "bar" + ], + [ + "baz", + "qux" + ] + ], + "renamedListMembers": [ + "foo", + "bar" + ], + "flattenedList": [ + "hi", + "bye" + ], + "flattenedList2": [ + "yep", + "nope" + ], + "flattenedListWithMemberNamespace": [ + "a", + "b" + ], + "flattenedListWithNamespace": [ + "a", + "b" + ], + "structureList": [ + { + "a": "1", + "b": "2" + }, + { + "a": "3", + "b": "4" + } + ] + } + } + ] + }, + "aws.protocoltests.ec2#XmlNamespaces": { + "responses": [ + { + "id": "Ec2XmlNamespaces", + "documentation": "Serializes XML namespaces", + "protocol": "aws.protocols#ec2Query", + "code": 200, + "body": "\n \n Foo\n \n Bar\n Baz\n \n \n requestid\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml;charset=UTF-8" + }, + "params": { + "nested": { + "foo": "Foo", + "values": [ + "Bar", + "Baz" + ] + } + } + } + ] + }, + "aws.protocoltests.ec2#XmlTimestamps": { + "responses": [ + { + "id": "Ec2XmlTimestamps", + "documentation": "Tests how normal timestamps are serialized", + "protocol": "aws.protocols#ec2Query", + "code": 200, + "body": "\n 2014-04-29T18:30:38Z\n requestid\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml;charset=UTF-8" + }, + "params": { + "normal": 1398796238 + } + }, + { + "id": "Ec2XmlTimestampsWithDateTimeFormat", + "documentation": "Ensures that the timestampFormat of date-time works like normal timestamps", + "protocol": "aws.protocols#ec2Query", + "code": 200, + "body": "\n 2014-04-29T18:30:38Z\n requestid\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml;charset=UTF-8" + }, + "params": { + "dateTime": 1398796238 + } + }, + { + "id": "Ec2XmlTimestampsWithDateTimeOnTargetFormat", + "documentation": "Ensures that the timestampFormat of date-time on the target shape works like normal timestamps", + "protocol": "aws.protocols#ec2Query", + "code": 200, + "body": "\n 2014-04-29T18:30:38Z\n requestid\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml;charset=UTF-8" + }, + "params": { + "dateTimeOnTarget": 1398796238 + } + }, + { + "id": "Ec2XmlTimestampsWithEpochSecondsFormat", + "documentation": "Ensures that the timestampFormat of epoch-seconds works", + "protocol": "aws.protocols#ec2Query", + "code": 200, + "body": "\n 1398796238\n requestid\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml;charset=UTF-8" + }, + "params": { + "epochSeconds": 1398796238 + } + }, + { + "id": "Ec2XmlTimestampsWithEpochSecondsOnTargetFormat", + "documentation": "Ensures that the timestampFormat of epoch-seconds on the target shape works", + "protocol": "aws.protocols#ec2Query", + "code": 200, + "body": "\n 1398796238\n requestid\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml;charset=UTF-8" + }, + "params": { + "epochSecondsOnTarget": 1398796238 + } + }, + { + "id": "Ec2XmlTimestampsWithHttpDateFormat", + "documentation": "Ensures that the timestampFormat of http-date works", + "protocol": "aws.protocols#ec2Query", + "code": 200, + "body": "\n Tue, 29 Apr 2014 18:30:38 GMT\n requestid\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml;charset=UTF-8" + }, + "params": { + "httpDate": 1398796238 + } + }, + { + "id": "Ec2XmlTimestampsWithHttpDateOnTargetFormat", + "documentation": "Ensures that the timestampFormat of http-date on the target shape works", + "protocol": "aws.protocols#ec2Query", + "code": 200, + "body": "\n Tue, 29 Apr 2014 18:30:38 GMT\n requestid\n\n", + "bodyMediaType": "application/xml", + "headers": { + "Content-Type": "text/xml;charset=UTF-8" + }, + "params": { + "httpDateOnTarget": 1398796238 + } + } + ] + } +} diff --git a/scripts/codegen-output-py/pyrightconfig.json b/scripts/codegen-output-py/pyrightconfig.json index 7c0dc1d2a..81f8d1a99 100644 --- a/scripts/codegen-output-py/pyrightconfig.json +++ b/scripts/codegen-output-py/pyrightconfig.json @@ -12,7 +12,9 @@ "../../codegen-output-py/aws-json-1-0/src", "../../codegen-output-py/aws-json-1-1-client/src", "../../codegen-output-py/aws-json-1-1/src", + "../../codegen-output-py/aws-query-client/src", "../../codegen-output-py/aws-query/src", + "../../codegen-output-py/ec2-query-client/src", "../../codegen-output-py/ec2-query/src", "../../codegen-output-py/features-client/src", "../../codegen-output-py/my-handwritten-json-model/src", diff --git a/scripts/codegen-output-py/tests/test_client_protocol_vectors.py b/scripts/codegen-output-py/tests/test_client_protocol_vectors.py index 72f9d74d2..afdf1debd 100644 --- a/scripts/codegen-output-py/tests/test_client_protocol_vectors.py +++ b/scripts/codegen-output-py/tests/test_client_protocol_vectors.py @@ -76,6 +76,10 @@ "SDKAppendedGzipAfterProvidedEncoding_restJson1", "SDKAppliedContentEncoding_restXml", "SDKAppendedGzipAfterProvidedEncoding_restXml", + "SDKAppliedContentEncoding_awsQuery", + "SDKAppendsGzipAndIgnoresHttpProvidedEncoding_awsQuery", + "SDKAppliedContentEncoding_ec2Query", + "SDKAppendsGzipAndIgnoresHttpProvidedEncoding_ec2Query", "RpcV2CborClientPopulatesDefaultValuesInInput", "RpcV2CborClientSkipsTopLevelDefaultValuesInInput", "RpcV2CborClientUsesExplicitlyProvidedMemberValuesOverDefaults", @@ -580,5 +584,6 @@ def test_every_client_vector_is_collected() -> None: # response vectors, and rpcv2Json has 34 and 39. restJson1 has 244, less the 8 # of the streaming operations the client omits. awsJson1_0 has 67, awsJson1_1 # has 118, and the query-compatible awsJson1_0 service has 3. restXml has - # 178, and the restXml service with a namespace has 2. - assert len(list(_vectors())) == 72 + 73 + 236 + 67 + 118 + 3 + 178 + 2 + # 178, and the restXml service with a namespace has 2. awsQuery has 77, and + # ec2Query has 59. + assert len(list(_vectors())) == (72 + 73 + 236 + 67 + 118 + 3 + 178 + 2 + 77 + 59)