aws_sdk_sagemaker_runtime_http2 0.5.0__tar.gz → 0.7.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. aws_sdk_sagemaker_runtime_http2-0.7.0/.changes/0.6.0.json +12 -0
  2. aws_sdk_sagemaker_runtime_http2-0.7.0/.changes/0.7.0.json +16 -0
  3. {aws_sdk_sagemaker_runtime_http2-0.5.0 → aws_sdk_sagemaker_runtime_http2-0.7.0}/CHANGELOG.md +15 -0
  4. {aws_sdk_sagemaker_runtime_http2-0.5.0 → aws_sdk_sagemaker_runtime_http2-0.7.0}/PKG-INFO +3 -3
  5. {aws_sdk_sagemaker_runtime_http2-0.5.0 → aws_sdk_sagemaker_runtime_http2-0.7.0}/pyproject.toml +3 -3
  6. {aws_sdk_sagemaker_runtime_http2-0.5.0 → aws_sdk_sagemaker_runtime_http2-0.7.0}/src/aws_sdk_sagemaker_runtime_http2/__init__.py +1 -1
  7. {aws_sdk_sagemaker_runtime_http2-0.5.0 → aws_sdk_sagemaker_runtime_http2-0.7.0}/src/aws_sdk_sagemaker_runtime_http2/_private/schemas.py +417 -0
  8. {aws_sdk_sagemaker_runtime_http2-0.5.0 → aws_sdk_sagemaker_runtime_http2-0.7.0}/src/aws_sdk_sagemaker_runtime_http2/auth.py +8 -6
  9. {aws_sdk_sagemaker_runtime_http2-0.5.0 → aws_sdk_sagemaker_runtime_http2-0.7.0}/src/aws_sdk_sagemaker_runtime_http2/client.py +1 -1
  10. {aws_sdk_sagemaker_runtime_http2-0.5.0 → aws_sdk_sagemaker_runtime_http2-0.7.0}/src/aws_sdk_sagemaker_runtime_http2/config.py +6 -10
  11. {aws_sdk_sagemaker_runtime_http2-0.5.0 → aws_sdk_sagemaker_runtime_http2-0.7.0}/src/aws_sdk_sagemaker_runtime_http2/models.py +6 -2
  12. {aws_sdk_sagemaker_runtime_http2-0.5.0 → aws_sdk_sagemaker_runtime_http2-0.7.0}/tests/test_protocol.py +8 -5
  13. {aws_sdk_sagemaker_runtime_http2-0.5.0 → aws_sdk_sagemaker_runtime_http2-0.7.0}/.changes/0.1.0.json +0 -0
  14. {aws_sdk_sagemaker_runtime_http2-0.5.0 → aws_sdk_sagemaker_runtime_http2-0.7.0}/.changes/0.3.0.json +0 -0
  15. {aws_sdk_sagemaker_runtime_http2-0.5.0 → aws_sdk_sagemaker_runtime_http2-0.7.0}/.changes/0.4.0.json +0 -0
  16. {aws_sdk_sagemaker_runtime_http2-0.5.0 → aws_sdk_sagemaker_runtime_http2-0.7.0}/.changes/0.5.0.json +0 -0
  17. {aws_sdk_sagemaker_runtime_http2-0.5.0 → aws_sdk_sagemaker_runtime_http2-0.7.0}/.gitignore +0 -0
  18. {aws_sdk_sagemaker_runtime_http2-0.5.0 → aws_sdk_sagemaker_runtime_http2-0.7.0}/LICENSE +0 -0
  19. {aws_sdk_sagemaker_runtime_http2-0.5.0 → aws_sdk_sagemaker_runtime_http2-0.7.0}/Makefile +0 -0
  20. {aws_sdk_sagemaker_runtime_http2-0.5.0 → aws_sdk_sagemaker_runtime_http2-0.7.0}/NOTICE +0 -0
  21. {aws_sdk_sagemaker_runtime_http2-0.5.0 → aws_sdk_sagemaker_runtime_http2-0.7.0}/README.md +0 -0
  22. {aws_sdk_sagemaker_runtime_http2-0.5.0 → aws_sdk_sagemaker_runtime_http2-0.7.0}/docs/README.md +0 -0
  23. {aws_sdk_sagemaker_runtime_http2-0.5.0 → aws_sdk_sagemaker_runtime_http2-0.7.0}/docs/hooks/copyright.py +0 -0
  24. {aws_sdk_sagemaker_runtime_http2-0.5.0 → aws_sdk_sagemaker_runtime_http2-0.7.0}/docs/index.md +0 -0
  25. {aws_sdk_sagemaker_runtime_http2-0.5.0 → aws_sdk_sagemaker_runtime_http2-0.7.0}/docs/stylesheets/extra.css +0 -0
  26. {aws_sdk_sagemaker_runtime_http2-0.5.0 → aws_sdk_sagemaker_runtime_http2-0.7.0}/mkdocs.yml +0 -0
  27. {aws_sdk_sagemaker_runtime_http2-0.5.0 → aws_sdk_sagemaker_runtime_http2-0.7.0}/scripts/docs/generate_doc_stubs.py +0 -0
  28. {aws_sdk_sagemaker_runtime_http2-0.5.0 → aws_sdk_sagemaker_runtime_http2-0.7.0}/src/aws_sdk_sagemaker_runtime_http2/_private/__init__.py +0 -0
  29. {aws_sdk_sagemaker_runtime_http2-0.5.0 → aws_sdk_sagemaker_runtime_http2-0.7.0}/src/aws_sdk_sagemaker_runtime_http2/user_agent.py +0 -0
  30. {aws_sdk_sagemaker_runtime_http2-0.5.0 → aws_sdk_sagemaker_runtime_http2-0.7.0}/tests/__init__.py +0 -0
@@ -0,0 +1,12 @@
1
+ {
2
+ "changes": [
3
+ {
4
+ "type": "dependency",
5
+ "description": "Bump `smithy-aws-core` from `~=0.5.0` to `~=0.6.0`."
6
+ },
7
+ {
8
+ "type": "dependency",
9
+ "description": "Bump `smithy-core` from `~=0.4.0` to `~=0.5.0`."
10
+ }
11
+ ]
12
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "changes": [
3
+ {
4
+ "type": "enhancement",
5
+ "description": "Re-generated with smithy-python 0.3.1"
6
+ },
7
+ {
8
+ "type": "dependency",
9
+ "description": "Bump `smithy-core` from `~=0.5.0` to `~=0.6.0`."
10
+ },
11
+ {
12
+ "type": "dependency",
13
+ "description": "Bump `smithy-aws-core` from `~=0.6.0` to `~=0.7.0`."
14
+ }
15
+ ]
16
+ }
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.7.0
4
+
5
+ ### Enhancements
6
+ * Re-generated with smithy-python 0.3.1
7
+
8
+ ### Dependencies
9
+ * Bump `smithy-core` from `~=0.5.0` to `~=0.6.0`.
10
+ * Bump `smithy-aws-core` from `~=0.6.0` to `~=0.7.0`.
11
+
12
+ ## v0.6.0
13
+
14
+ ### Dependencies
15
+ * Bump `smithy-aws-core` from `~=0.5.0` to `~=0.6.0`.
16
+ * Bump `smithy-core` from `~=0.4.0` to `~=0.5.0`.
17
+
3
18
  ## v0.5.0
4
19
 
5
20
  ### Dependencies
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aws_sdk_sagemaker_runtime_http2
3
- Version: 0.5.0
3
+ Version: 0.7.0
4
4
  Summary: aws_sdk_sagemaker_runtime_http2 client
5
5
  License: Apache-2.0
6
6
  License-File: LICENSE
@@ -18,8 +18,8 @@ Classifier: Programming Language :: Python :: 3.12
18
18
  Classifier: Programming Language :: Python :: 3.13
19
19
  Classifier: Programming Language :: Python :: 3.14
20
20
  Requires-Python: >=3.12
21
- Requires-Dist: smithy-aws-core[eventstream,json]~=0.5.0
22
- Requires-Dist: smithy-core~=0.4.0
21
+ Requires-Dist: smithy-aws-core[eventstream,json]~=0.7.0
22
+ Requires-Dist: smithy-core~=0.6.0
23
23
  Requires-Dist: smithy-http[awscrt]~=0.4.0
24
24
  Description-Content-Type: text/markdown
25
25
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  [project]
4
4
  name = "aws_sdk_sagemaker_runtime_http2"
5
- version = "0.5.0"
5
+ version = "0.7.0"
6
6
  description = "aws_sdk_sagemaker_runtime_http2 client"
7
7
  readme = "README.md"
8
8
  requires-python = ">=3.12"
@@ -23,8 +23,8 @@ classifiers = [
23
23
  ]
24
24
 
25
25
  dependencies = [
26
- "smithy_aws_core[eventstream, json]~=0.5.0",
27
- "smithy_core~=0.4.0",
26
+ "smithy_aws_core[eventstream, json]~=0.7.0",
27
+ "smithy_core~=0.6.0",
28
28
  "smithy_http[awscrt]~=0.4.0"
29
29
  ]
30
30
 
@@ -1,3 +1,3 @@
1
1
  # Code generated by smithy-python-codegen DO NOT EDIT.
2
2
 
3
- __version__: str = "0.5.0"
3
+ __version__: str = "0.7.0"
@@ -3129,6 +3129,423 @@ AMAZON_SAGE_MAKER_RUNTIME_HTTP2 = Schema(
3129
3129
  }
3130
3130
  ),
3131
3131
  ),
3132
+ Trait.new(
3133
+ id=ShapeID("smithy.rules#endpointBdd"),
3134
+ value=MappingProxyType(
3135
+ {
3136
+ "version": "1.1",
3137
+ "parameters": MappingProxyType(
3138
+ {
3139
+ "UseDualStack": MappingProxyType(
3140
+ {
3141
+ "builtIn": "AWS::UseDualStack",
3142
+ "required": True,
3143
+ "default": False,
3144
+ "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",
3145
+ "type": "boolean",
3146
+ }
3147
+ ),
3148
+ "UseFIPS": MappingProxyType(
3149
+ {
3150
+ "builtIn": "AWS::UseFIPS",
3151
+ "required": True,
3152
+ "default": False,
3153
+ "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",
3154
+ "type": "boolean",
3155
+ }
3156
+ ),
3157
+ "Endpoint": MappingProxyType(
3158
+ {
3159
+ "builtIn": "SDK::Endpoint",
3160
+ "required": False,
3161
+ "documentation": "Override the endpoint used to send this request",
3162
+ "type": "string",
3163
+ }
3164
+ ),
3165
+ "Region": MappingProxyType(
3166
+ {
3167
+ "builtIn": "AWS::Region",
3168
+ "required": False,
3169
+ "documentation": "The AWS region used to dispatch the request.",
3170
+ "type": "string",
3171
+ }
3172
+ ),
3173
+ }
3174
+ ),
3175
+ "conditions": (
3176
+ MappingProxyType(
3177
+ {
3178
+ "fn": "isSet",
3179
+ "argv": (MappingProxyType({"ref": "Endpoint"}),),
3180
+ }
3181
+ ),
3182
+ MappingProxyType(
3183
+ {
3184
+ "fn": "isSet",
3185
+ "argv": (MappingProxyType({"ref": "Region"}),),
3186
+ }
3187
+ ),
3188
+ MappingProxyType(
3189
+ {
3190
+ "fn": "aws.partition",
3191
+ "argv": (MappingProxyType({"ref": "Region"}),),
3192
+ "assign": "PartitionResult",
3193
+ }
3194
+ ),
3195
+ MappingProxyType(
3196
+ {
3197
+ "fn": "stringEquals",
3198
+ "argv": (
3199
+ MappingProxyType(
3200
+ {
3201
+ "fn": "getAttr",
3202
+ "argv": (
3203
+ MappingProxyType(
3204
+ {"ref": "PartitionResult"}
3205
+ ),
3206
+ "name",
3207
+ ),
3208
+ }
3209
+ ),
3210
+ "aws",
3211
+ ),
3212
+ }
3213
+ ),
3214
+ MappingProxyType(
3215
+ {
3216
+ "fn": "stringEquals",
3217
+ "argv": (
3218
+ MappingProxyType(
3219
+ {
3220
+ "fn": "getAttr",
3221
+ "argv": (
3222
+ MappingProxyType(
3223
+ {"ref": "PartitionResult"}
3224
+ ),
3225
+ "name",
3226
+ ),
3227
+ }
3228
+ ),
3229
+ "aws-cn",
3230
+ ),
3231
+ }
3232
+ ),
3233
+ MappingProxyType(
3234
+ {
3235
+ "fn": "stringEquals",
3236
+ "argv": (
3237
+ MappingProxyType(
3238
+ {
3239
+ "fn": "getAttr",
3240
+ "argv": (
3241
+ MappingProxyType(
3242
+ {"ref": "PartitionResult"}
3243
+ ),
3244
+ "name",
3245
+ ),
3246
+ }
3247
+ ),
3248
+ "aws-us-gov",
3249
+ ),
3250
+ }
3251
+ ),
3252
+ MappingProxyType(
3253
+ {
3254
+ "fn": "stringEquals",
3255
+ "argv": (
3256
+ MappingProxyType(
3257
+ {
3258
+ "fn": "getAttr",
3259
+ "argv": (
3260
+ MappingProxyType(
3261
+ {"ref": "PartitionResult"}
3262
+ ),
3263
+ "name",
3264
+ ),
3265
+ }
3266
+ ),
3267
+ "aws-iso",
3268
+ ),
3269
+ }
3270
+ ),
3271
+ MappingProxyType(
3272
+ {
3273
+ "fn": "stringEquals",
3274
+ "argv": (
3275
+ MappingProxyType(
3276
+ {
3277
+ "fn": "getAttr",
3278
+ "argv": (
3279
+ MappingProxyType(
3280
+ {"ref": "PartitionResult"}
3281
+ ),
3282
+ "name",
3283
+ ),
3284
+ }
3285
+ ),
3286
+ "aws-iso-b",
3287
+ ),
3288
+ }
3289
+ ),
3290
+ MappingProxyType(
3291
+ {
3292
+ "fn": "stringEquals",
3293
+ "argv": (
3294
+ MappingProxyType(
3295
+ {
3296
+ "fn": "getAttr",
3297
+ "argv": (
3298
+ MappingProxyType(
3299
+ {"ref": "PartitionResult"}
3300
+ ),
3301
+ "name",
3302
+ ),
3303
+ }
3304
+ ),
3305
+ "aws-eusc",
3306
+ ),
3307
+ }
3308
+ ),
3309
+ MappingProxyType(
3310
+ {
3311
+ "fn": "stringEquals",
3312
+ "argv": (
3313
+ MappingProxyType(
3314
+ {
3315
+ "fn": "getAttr",
3316
+ "argv": (
3317
+ MappingProxyType(
3318
+ {"ref": "PartitionResult"}
3319
+ ),
3320
+ "name",
3321
+ ),
3322
+ }
3323
+ ),
3324
+ "aws-iso-f",
3325
+ ),
3326
+ }
3327
+ ),
3328
+ MappingProxyType(
3329
+ {
3330
+ "fn": "booleanEquals",
3331
+ "argv": (MappingProxyType({"ref": "UseFIPS"}), True),
3332
+ }
3333
+ ),
3334
+ MappingProxyType(
3335
+ {
3336
+ "fn": "booleanEquals",
3337
+ "argv": (
3338
+ MappingProxyType(
3339
+ {
3340
+ "fn": "getAttr",
3341
+ "argv": (
3342
+ MappingProxyType(
3343
+ {"ref": "PartitionResult"}
3344
+ ),
3345
+ "supportsFIPS",
3346
+ ),
3347
+ }
3348
+ ),
3349
+ True,
3350
+ ),
3351
+ }
3352
+ ),
3353
+ MappingProxyType(
3354
+ {
3355
+ "fn": "booleanEquals",
3356
+ "argv": (
3357
+ MappingProxyType({"ref": "UseDualStack"}),
3358
+ True,
3359
+ ),
3360
+ }
3361
+ ),
3362
+ MappingProxyType(
3363
+ {
3364
+ "fn": "booleanEquals",
3365
+ "argv": (
3366
+ MappingProxyType(
3367
+ {
3368
+ "fn": "getAttr",
3369
+ "argv": (
3370
+ MappingProxyType(
3371
+ {"ref": "PartitionResult"}
3372
+ ),
3373
+ "supportsDualStack",
3374
+ ),
3375
+ }
3376
+ ),
3377
+ True,
3378
+ ),
3379
+ }
3380
+ ),
3381
+ ),
3382
+ "results": (
3383
+ MappingProxyType(
3384
+ {
3385
+ "conditions": (),
3386
+ "error": "Invalid Configuration: FIPS and custom endpoint are not supported",
3387
+ "type": "error",
3388
+ }
3389
+ ),
3390
+ MappingProxyType(
3391
+ {
3392
+ "conditions": (),
3393
+ "error": "Invalid Configuration: Dualstack and custom endpoint are not supported",
3394
+ "type": "error",
3395
+ }
3396
+ ),
3397
+ MappingProxyType(
3398
+ {
3399
+ "conditions": (),
3400
+ "endpoint": MappingProxyType(
3401
+ {
3402
+ "url": MappingProxyType({"ref": "Endpoint"}),
3403
+ "properties": MappingProxyType({}),
3404
+ "headers": MappingProxyType({}),
3405
+ }
3406
+ ),
3407
+ "type": "endpoint",
3408
+ }
3409
+ ),
3410
+ MappingProxyType(
3411
+ {
3412
+ "conditions": (),
3413
+ "endpoint": MappingProxyType(
3414
+ {
3415
+ "url": "https://runtime.sagemaker.{Region}.{PartitionResult#dnsSuffix}:8443",
3416
+ "properties": MappingProxyType({}),
3417
+ "headers": MappingProxyType({}),
3418
+ }
3419
+ ),
3420
+ "type": "endpoint",
3421
+ }
3422
+ ),
3423
+ MappingProxyType(
3424
+ {
3425
+ "conditions": (),
3426
+ "endpoint": MappingProxyType(
3427
+ {
3428
+ "url": "https://runtime.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}:8443",
3429
+ "properties": MappingProxyType({}),
3430
+ "headers": MappingProxyType({}),
3431
+ }
3432
+ ),
3433
+ "type": "endpoint",
3434
+ }
3435
+ ),
3436
+ MappingProxyType(
3437
+ {
3438
+ "conditions": (),
3439
+ "endpoint": MappingProxyType(
3440
+ {
3441
+ "url": "https://runtime-fips.sagemaker.{Region}.{PartitionResult#dnsSuffix}:8443",
3442
+ "properties": MappingProxyType({}),
3443
+ "headers": MappingProxyType({}),
3444
+ }
3445
+ ),
3446
+ "type": "endpoint",
3447
+ }
3448
+ ),
3449
+ MappingProxyType(
3450
+ {
3451
+ "conditions": (),
3452
+ "endpoint": MappingProxyType(
3453
+ {
3454
+ "url": "https://runtime-fips.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}:8443",
3455
+ "properties": MappingProxyType({}),
3456
+ "headers": MappingProxyType({}),
3457
+ }
3458
+ ),
3459
+ "type": "endpoint",
3460
+ }
3461
+ ),
3462
+ MappingProxyType(
3463
+ {
3464
+ "conditions": (),
3465
+ "endpoint": MappingProxyType(
3466
+ {
3467
+ "url": "https://runtime.sagemaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
3468
+ "properties": MappingProxyType({}),
3469
+ "headers": MappingProxyType({}),
3470
+ }
3471
+ ),
3472
+ "type": "endpoint",
3473
+ }
3474
+ ),
3475
+ MappingProxyType(
3476
+ {
3477
+ "conditions": (),
3478
+ "error": "FIPS and DualStack are enabled, but this partition does not support one or both",
3479
+ "type": "error",
3480
+ }
3481
+ ),
3482
+ MappingProxyType(
3483
+ {
3484
+ "conditions": (),
3485
+ "endpoint": MappingProxyType(
3486
+ {
3487
+ "url": "https://runtime.sagemaker-fips.{Region}.{PartitionResult#dnsSuffix}",
3488
+ "properties": MappingProxyType({}),
3489
+ "headers": MappingProxyType({}),
3490
+ }
3491
+ ),
3492
+ "type": "endpoint",
3493
+ }
3494
+ ),
3495
+ MappingProxyType(
3496
+ {
3497
+ "conditions": (),
3498
+ "error": "FIPS is enabled but this partition does not support FIPS",
3499
+ "type": "error",
3500
+ }
3501
+ ),
3502
+ MappingProxyType(
3503
+ {
3504
+ "conditions": (),
3505
+ "endpoint": MappingProxyType(
3506
+ {
3507
+ "url": "https://runtime.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}",
3508
+ "properties": MappingProxyType({}),
3509
+ "headers": MappingProxyType({}),
3510
+ }
3511
+ ),
3512
+ "type": "endpoint",
3513
+ }
3514
+ ),
3515
+ MappingProxyType(
3516
+ {
3517
+ "conditions": (),
3518
+ "error": "DualStack is enabled but this partition does not support DualStack",
3519
+ "type": "error",
3520
+ }
3521
+ ),
3522
+ MappingProxyType(
3523
+ {
3524
+ "conditions": (),
3525
+ "endpoint": MappingProxyType(
3526
+ {
3527
+ "url": "https://runtime.sagemaker.{Region}.{PartitionResult#dnsSuffix}",
3528
+ "properties": MappingProxyType({}),
3529
+ "headers": MappingProxyType({}),
3530
+ }
3531
+ ),
3532
+ "type": "endpoint",
3533
+ }
3534
+ ),
3535
+ MappingProxyType(
3536
+ {
3537
+ "conditions": (),
3538
+ "error": "Invalid Configuration: Missing Region",
3539
+ "type": "error",
3540
+ }
3541
+ ),
3542
+ ),
3543
+ "root": 2,
3544
+ "nodeCount": 23,
3545
+ "nodes": "/////wAAAAH/////AAAAAAAAABYAAAADAAAAAQAAAAQF9eEPAAAAAgAAAAUF9eEPAAAAAwAAABMAAAAGAAAABAAAABMAAAAHAAAABQAAABMAAAAIAAAABgAAABMAAAAJAAAABwAAABMAAAAKAAAACAAAABMAAAALAAAACQAAABMAAAAMAAAACgAAAA8AAAANAAAADAAAAA4F9eEOAAAADQX14QwF9eENAAAACwAAABEAAAAQAAAADAX14QkF9eELAAAADAAAABIF9eEKAAAADQX14QgF9eEJAAAACgAAABUAAAAUAAAADAX14QUF9eEEAAAADAX14QcF9eEGAAAACgX14QEAAAAXAAAADAX14QIF9eED",
3546
+ }
3547
+ ),
3548
+ ),
3132
3549
  Trait.new(
3133
3550
  id=ShapeID("aws.api#service"),
3134
3551
  value=MappingProxyType(
@@ -2,16 +2,18 @@
2
2
 
3
3
  from typing import Any
4
4
 
5
- from smithy_core.auth import AuthOption, AuthParams
6
- from smithy_core.interfaces.auth import AuthOption as AuthOptionProtocol
5
+ from smithy_core.auth import AuthOption as _smithy_core_auth_AuthOption, AuthParams
6
+ from smithy_core.interfaces.auth import (
7
+ AuthOption as _smithy_core_interfaces_auth_AuthOption,
8
+ )
7
9
  from smithy_core.shapes import ShapeID
8
10
 
9
11
 
10
12
  class HTTPAuthSchemeResolver:
11
13
  def resolve_auth_scheme(
12
14
  self, auth_parameters: AuthParams[Any, Any]
13
- ) -> list[AuthOptionProtocol]:
14
- auth_options: list[AuthOptionProtocol] = []
15
+ ) -> list[_smithy_core_interfaces_auth_AuthOption]:
16
+ auth_options: list[_smithy_core_interfaces_auth_AuthOption] = []
15
17
 
16
18
  if (option := _generate_sigv4_option(auth_parameters)) is not None:
17
19
  auth_options.append(option)
@@ -21,8 +23,8 @@ class HTTPAuthSchemeResolver:
21
23
 
22
24
  def _generate_sigv4_option(
23
25
  auth_params: AuthParams[Any, Any],
24
- ) -> AuthOptionProtocol | None:
25
- return AuthOption(
26
+ ) -> _smithy_core_interfaces_auth_AuthOption | None:
27
+ return _smithy_core_auth_AuthOption(
26
28
  scheme_id=ShapeID("aws.auth#sigv4"),
27
29
  identity_properties={}, # type: ignore
28
30
  signer_properties={}, # type: ignore
@@ -5,9 +5,9 @@ import logging
5
5
 
6
6
  from smithy_core.aio.client import ClientCall, RequestPipeline
7
7
  from smithy_core.aio.eventstream import DuplexEventStream
8
+ from smithy_core.aio.retries import RetryStrategyResolver
8
9
  from smithy_core.exceptions import ExpectationNotMetError
9
10
  from smithy_core.interceptors import InterceptorChain
10
- from smithy_core.retries import RetryStrategyResolver
11
11
  from smithy_core.types import TypedProperties
12
12
  from smithy_http.plugins import user_agent_plugin
13
13
 
@@ -6,19 +6,15 @@ from typing import Any, Callable, TypeAlias, Union
6
6
  from smithy_aws_core.aio.protocols import RestJsonClientProtocol
7
7
  from smithy_aws_core.auth import SigV4AuthScheme
8
8
  from smithy_aws_core.endpoints.standard_regional import (
9
- StandardRegionalEndpointsResolver as _RegionalResolver,
9
+ StandardRegionalEndpointsResolver,
10
10
  )
11
11
  from smithy_aws_core.identity import AWSCredentialsIdentity, AWSIdentityProperties
12
- from smithy_core.aio.interfaces import (
13
- ClientProtocol,
14
- ClientTransport,
15
- EndpointResolver as _EndpointResolver,
16
- )
12
+ from smithy_core.aio.interfaces import ClientProtocol, ClientTransport, EndpointResolver
17
13
  from smithy_core.aio.interfaces.auth import AuthScheme
18
14
  from smithy_core.aio.interfaces.identity import IdentityResolver
15
+ from smithy_core.aio.interfaces.retries import RetryStrategy
19
16
  from smithy_core.interceptors import Interceptor
20
17
  from smithy_core.interfaces import URI
21
- from smithy_core.interfaces.retries import RetryStrategy
22
18
  from smithy_core.retries import RetryStrategyOptions
23
19
  from smithy_core.shapes import ShapeID
24
20
  from smithy_http.aio.crt import AWSCRTHTTPClient
@@ -71,7 +67,7 @@ class Config:
71
67
  aws_session_token: str | None
72
68
  """An access key ID that identifies temporary security credentials."""
73
69
 
74
- endpoint_resolver: _EndpointResolver
70
+ endpoint_resolver: EndpointResolver
75
71
  """
76
72
  The endpoint resolver used to resolve the final endpoint per-operation
77
73
  based on the configuration.
@@ -128,7 +124,7 @@ class Config:
128
124
  | None = None,
129
125
  aws_secret_access_key: str | None = None,
130
126
  aws_session_token: str | None = None,
131
- endpoint_resolver: _EndpointResolver | None = None,
127
+ endpoint_resolver: EndpointResolver | None = None,
132
128
  endpoint_uri: str | URI | None = None,
133
129
  http_request_config: HTTPRequestConfiguration | None = None,
134
130
  interceptors: list[_ServiceInterceptor] | None = None,
@@ -147,7 +143,7 @@ class Config:
147
143
  self.aws_credentials_identity_resolver = aws_credentials_identity_resolver
148
144
  self.aws_secret_access_key = aws_secret_access_key
149
145
  self.aws_session_token = aws_session_token
150
- self.endpoint_resolver = endpoint_resolver or _RegionalResolver(
146
+ self.endpoint_resolver = endpoint_resolver or StandardRegionalEndpointsResolver(
151
147
  endpoint_prefix="runtime.sagemaker"
152
148
  )
153
149
  self.endpoint_uri = endpoint_uri
@@ -329,7 +329,9 @@ class _RequestStreamEventDeserializer:
329
329
  self._set_result(RequestStreamEventPayloadPart.deserialize(de))
330
330
 
331
331
  case _:
332
- logger.debug("Unexpected member schema: %s", schema)
332
+ self._set_result(
333
+ RequestStreamEventUnknown(tag=schema.expect_member_name())
334
+ )
333
335
 
334
336
  def _set_result(self, value: RequestStreamEvent) -> None:
335
337
  if self._result is not None:
@@ -690,7 +692,9 @@ class _ResponseStreamEventDeserializer:
690
692
  )
691
693
 
692
694
  case _:
693
- logger.debug("Unexpected member schema: %s", schema)
695
+ self._set_result(
696
+ ResponseStreamEventUnknown(tag=schema.expect_member_name())
697
+ )
694
698
 
695
699
  def _set_result(self, value: ResponseStreamEvent) -> None:
696
700
  if self._result is not None:
@@ -2,8 +2,11 @@
2
2
 
3
3
  from smithy_core.aio.utils import async_list
4
4
  from smithy_http import tuples_to_fields
5
- from smithy_http.aio import HTTPResponse as _HTTPResponse
6
- from smithy_http.aio.interfaces import HTTPRequest, HTTPResponse
5
+ from smithy_http.aio import HTTPResponse as _smithy_http_aio_HTTPResponse
6
+ from smithy_http.aio.interfaces import (
7
+ HTTPRequest,
8
+ HTTPResponse as _smithy_http_aio_interfaces_HTTPResponse,
9
+ )
7
10
  from smithy_http.interfaces import HTTPClientConfiguration, HTTPRequestConfiguration
8
11
 
9
12
  from aws_sdk_sagemaker_runtime_http2.models import ServiceError
@@ -29,7 +32,7 @@ class RequestTestHTTPClient:
29
32
  request: HTTPRequest,
30
33
  *,
31
34
  request_config: HTTPRequestConfiguration | None = None,
32
- ) -> HTTPResponse:
35
+ ) -> _smithy_http_aio_interfaces_HTTPResponse:
33
36
  # Raise the exception with the request object to bypass actual request handling
34
37
  raise TestHttpServiceError(request)
35
38
 
@@ -57,8 +60,8 @@ class ResponseTestHTTPClient:
57
60
  request: HTTPRequest,
58
61
  *,
59
62
  request_config: HTTPRequestConfiguration | None = None,
60
- ) -> _HTTPResponse:
63
+ ) -> _smithy_http_aio_HTTPResponse:
61
64
  # Pre-construct the response from the request and return it
62
- return _HTTPResponse(
65
+ return _smithy_http_aio_HTTPResponse(
63
66
  status=self.status, fields=self.fields, body=async_list([self.body])
64
67
  )