Skip to content

Commit

Permalink
Merge branch 'boto:develop' into s3-expires-timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgromero authored Aug 19, 2024
2 parents 567c109 + 98899c0 commit f928f61
Show file tree
Hide file tree
Showing 60 changed files with 2,919 additions and 300 deletions.
27 changes: 27 additions & 0 deletions .changes/1.34.155.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[
{
"category": "``bedrock-agent-runtime``",
"description": "Introduce model invocation output traces for orchestration traces, which contain the model's raw response and usage.",
"type": "api-change"
},
{
"category": "``cognito-idp``",
"description": "Advanced security feature updates to include password history and log export for Cognito user pools.",
"type": "api-change"
},
{
"category": "``cost-optimization-hub``",
"description": "This release adds savings percentage support to the ListRecommendationSummaries API.",
"type": "api-change"
},
{
"category": "``workspaces``",
"description": "Added support for BYOL_GRAPHICS_G4DN_WSP IngestionProcess",
"type": "api-change"
},
{
"category": "AWSCRT",
"description": "Update awscrt version to 0.21.2",
"type": "enhancement"
}
]
12 changes: 12 additions & 0 deletions .changes/1.34.156.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[
{
"category": "``appintegrations``",
"description": "Updated CreateDataIntegration and CreateDataIntegrationAssociation API to support bulk data export from Amazon Connect Customer Profiles to the customer S3 bucket.",
"type": "api-change"
},
{
"category": "``glue``",
"description": "Introducing AWS Glue Data Quality anomaly detection, a new functionality that uses ML-based solutions to detect data anomalies users have not explicitly defined rules for.",
"type": "api-change"
}
]
22 changes: 22 additions & 0 deletions .changes/1.34.157.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[
{
"category": "``cognito-idp``",
"description": "Added support for threat protection for custom authentication in Amazon Cognito user pools.",
"type": "api-change"
},
{
"category": "``connect``",
"description": "This release fixes a regression in number of access control tags that are allowed to be added to a security profile in Amazon Connect. You can now add up to four access control tags on a single security profile.",
"type": "api-change"
},
{
"category": "``ec2``",
"description": "Launch of private IPv6 addressing for VPCs and Subnets. VPC IPAM supports the planning and monitoring of private IPv6 usage.",
"type": "api-change"
},
{
"category": "``glue``",
"description": "This release adds support to retrieve the validation status when creating or updating Glue Data Catalog Views. Also added is support for BasicCatalogTarget partition keys.",
"type": "api-change"
}
]
17 changes: 17 additions & 0 deletions .changes/1.34.158.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[
{
"category": "``cognito-idp``",
"description": "Fixed a description of AdvancedSecurityAdditionalFlows in Amazon Cognito user pool configuration.",
"type": "api-change"
},
{
"category": "``connect``",
"description": "This release supports adding RoutingCriteria via UpdateContactRoutingData public API.",
"type": "api-change"
},
{
"category": "``ssm``",
"description": "Systems Manager doc-only updates for August 2024.",
"type": "api-change"
}
]
37 changes: 37 additions & 0 deletions .changes/1.34.159.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[
{
"category": "``compute-optimizer``",
"description": "Doc only update for Compute Optimizer that fixes several customer-reported issues relating to ECS finding classifications",
"type": "api-change"
},
{
"category": "``config``",
"description": "Documentation update for the OrganizationConfigRuleName regex pattern.",
"type": "api-change"
},
{
"category": "``ec2``",
"description": "This release adds new capabilities to manage On-Demand Capacity Reservations including the ability to split your reservation, move capacity between reservations, and modify the instance eligibility of your reservation.",
"type": "api-change"
},
{
"category": "``eks``",
"description": "Added support for new AL2023 GPU AMIs to the supported AMITypes.",
"type": "api-change"
},
{
"category": "``groundstation``",
"description": "Updating documentation for OEMEphemeris to link to AWS Ground Station User Guide",
"type": "api-change"
},
{
"category": "``medialive``",
"description": "AWS Elemental MediaLive now supports now supports editing the PID values for a Multiplex.",
"type": "api-change"
},
{
"category": "``sagemaker``",
"description": "Releasing large data support as part of CreateAutoMLJobV2 in SageMaker Autopilot and CreateDomain API for SageMaker Canvas.",
"type": "api-change"
}
]
27 changes: 27 additions & 0 deletions .changes/1.34.160.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[
{
"category": "``amplify``",
"description": "Add a new field \"cacheConfig\" that enables users to configure the CDN cache settings for an App",
"type": "api-change"
},
{
"category": "``appstream``",
"description": "This release includes following new APIs: CreateThemeForStack, DescribeThemeForStack, UpdateThemeForStack, DeleteThemeForStack to support custom branding programmatically.",
"type": "api-change"
},
{
"category": "``fis``",
"description": "This release adds support for additional error information on experiment failure. It adds the error code, location, and account id on relevant failures to the GetExperiment and ListExperiment API responses.",
"type": "api-change"
},
{
"category": "``glue``",
"description": "Add AttributesToGet parameter support for Glue GetTables",
"type": "api-change"
},
{
"category": "``neptune-graph``",
"description": "Amazon Neptune Analytics provides a new option for customers to load data into a graph using the RDF (Resource Description Framework) NTRIPLES format. When loading NTRIPLES files, use the value `convertToIri` for the `blankNodeHandling` parameter.",
"type": "api-change"
}
]
7 changes: 7 additions & 0 deletions .changes/1.34.161.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
{
"category": "``codebuild``",
"description": "AWS CodeBuild now supports using Secrets Manager to store git credentials and using multiple source credentials in a single project.",
"type": "api-change"
}
]
22 changes: 22 additions & 0 deletions .changes/1.34.162.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[
{
"category": "``docdb``",
"description": "This release adds Global Cluster Failover capability which enables you to change your global cluster's primary AWS region, the region that serves writes, during a regional outage. Performing a failover action preserves your Global Cluster setup.",
"type": "api-change"
},
{
"category": "``ecs``",
"description": "This release introduces a new ContainerDefinition configuration to support the customer-managed keys for ECS container restart feature.",
"type": "api-change"
},
{
"category": "``iam``",
"description": "Make the LastUsedDate field in the GetAccessKeyLastUsed response optional. This may break customers who only call the API for access keys with a valid LastUsedDate. This fixes a deserialization issue for access keys without a LastUsedDate, because the field was marked as required but could be null.",
"type": "api-change"
},
{
"category": "``s3``",
"description": "Amazon Simple Storage Service / Features : Adds support for pagination in the S3 ListBuckets API.",
"type": "api-change"
}
]
32 changes: 32 additions & 0 deletions .changes/1.35.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[
{
"category": "``batch``",
"description": "Improvements of integration between AWS Batch and EC2.",
"type": "api-change"
},
{
"category": "``inspector2``",
"description": "Update the correct format of key and values for resource tags",
"type": "api-change"
},
{
"category": "``quicksight``",
"description": "Amazon QuickSight launches Customer Managed Key (CMK) encryption for Data Source metadata",
"type": "api-change"
},
{
"category": "``sagemaker``",
"description": "Introduce Endpoint and EndpointConfig Arns in sagemaker:ListPipelineExecutionSteps API response",
"type": "api-change"
},
{
"category": "``sesv2``",
"description": "Marking use case description field of account details as deprecated.",
"type": "api-change"
},
{
"category": "signing",
"description": "Adds internal support for the new 'auth' trait to allow a priority list of auth types for a service or operation.",
"type": "feature"
}
]
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ jobs:
uses: "actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608"

- name: "Run CodeQL init"
uses: "github/codeql-action/init@b7cec7526559c32f1616476ff32d17ba4c59b2d6"
uses: "github/codeql-action/init@eb055d739abdc2e8de2e5f4ba1a8b246daa779aa"
with:
config-file: "./.github/codeql.yml"
languages: "python"

- name: "Run CodeQL autobuild"
uses: "github/codeql-action/autobuild@b7cec7526559c32f1616476ff32d17ba4c59b2d6"
uses: "github/codeql-action/autobuild@eb055d739abdc2e8de2e5f4ba1a8b246daa779aa"

- name: "Run CodeQL analyze"
uses: "github/codeql-action/analyze@b7cec7526559c32f1616476ff32d17ba4c59b2d6"
uses: "github/codeql-action/analyze@eb055d739abdc2e8de2e5f4ba1a8b246daa779aa"
82 changes: 82 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,88 @@
CHANGELOG
=========

1.35.0
======

* api-change:``batch``: Improvements of integration between AWS Batch and EC2.
* api-change:``inspector2``: Update the correct format of key and values for resource tags
* api-change:``quicksight``: Amazon QuickSight launches Customer Managed Key (CMK) encryption for Data Source metadata
* api-change:``sagemaker``: Introduce Endpoint and EndpointConfig Arns in sagemaker:ListPipelineExecutionSteps API response
* api-change:``sesv2``: Marking use case description field of account details as deprecated.
* feature:signing: Adds internal support for the new 'auth' trait to allow a priority list of auth types for a service or operation.


1.34.162
========

* api-change:``docdb``: This release adds Global Cluster Failover capability which enables you to change your global cluster's primary AWS region, the region that serves writes, during a regional outage. Performing a failover action preserves your Global Cluster setup.
* api-change:``ecs``: This release introduces a new ContainerDefinition configuration to support the customer-managed keys for ECS container restart feature.
* api-change:``iam``: Make the LastUsedDate field in the GetAccessKeyLastUsed response optional. This may break customers who only call the API for access keys with a valid LastUsedDate. This fixes a deserialization issue for access keys without a LastUsedDate, because the field was marked as required but could be null.
* api-change:``s3``: Amazon Simple Storage Service / Features : Adds support for pagination in the S3 ListBuckets API.


1.34.161
========

* api-change:``codebuild``: AWS CodeBuild now supports using Secrets Manager to store git credentials and using multiple source credentials in a single project.


1.34.160
========

* api-change:``amplify``: Add a new field "cacheConfig" that enables users to configure the CDN cache settings for an App
* api-change:``appstream``: This release includes following new APIs: CreateThemeForStack, DescribeThemeForStack, UpdateThemeForStack, DeleteThemeForStack to support custom branding programmatically.
* api-change:``fis``: This release adds support for additional error information on experiment failure. It adds the error code, location, and account id on relevant failures to the GetExperiment and ListExperiment API responses.
* api-change:``glue``: Add AttributesToGet parameter support for Glue GetTables
* api-change:``neptune-graph``: Amazon Neptune Analytics provides a new option for customers to load data into a graph using the RDF (Resource Description Framework) NTRIPLES format. When loading NTRIPLES files, use the value `convertToIri` for the `blankNodeHandling` parameter.


1.34.159
========

* api-change:``compute-optimizer``: Doc only update for Compute Optimizer that fixes several customer-reported issues relating to ECS finding classifications
* api-change:``config``: Documentation update for the OrganizationConfigRuleName regex pattern.
* api-change:``ec2``: This release adds new capabilities to manage On-Demand Capacity Reservations including the ability to split your reservation, move capacity between reservations, and modify the instance eligibility of your reservation.
* api-change:``eks``: Added support for new AL2023 GPU AMIs to the supported AMITypes.
* api-change:``groundstation``: Updating documentation for OEMEphemeris to link to AWS Ground Station User Guide
* api-change:``medialive``: AWS Elemental MediaLive now supports now supports editing the PID values for a Multiplex.
* api-change:``sagemaker``: Releasing large data support as part of CreateAutoMLJobV2 in SageMaker Autopilot and CreateDomain API for SageMaker Canvas.


1.34.158
========

* api-change:``cognito-idp``: Fixed a description of AdvancedSecurityAdditionalFlows in Amazon Cognito user pool configuration.
* api-change:``connect``: This release supports adding RoutingCriteria via UpdateContactRoutingData public API.
* api-change:``ssm``: Systems Manager doc-only updates for August 2024.


1.34.157
========

* api-change:``cognito-idp``: Added support for threat protection for custom authentication in Amazon Cognito user pools.
* api-change:``connect``: This release fixes a regression in number of access control tags that are allowed to be added to a security profile in Amazon Connect. You can now add up to four access control tags on a single security profile.
* api-change:``ec2``: Launch of private IPv6 addressing for VPCs and Subnets. VPC IPAM supports the planning and monitoring of private IPv6 usage.
* api-change:``glue``: This release adds support to retrieve the validation status when creating or updating Glue Data Catalog Views. Also added is support for BasicCatalogTarget partition keys.


1.34.156
========

* api-change:``appintegrations``: Updated CreateDataIntegration and CreateDataIntegrationAssociation API to support bulk data export from Amazon Connect Customer Profiles to the customer S3 bucket.
* api-change:``glue``: Introducing AWS Glue Data Quality anomaly detection, a new functionality that uses ML-based solutions to detect data anomalies users have not explicitly defined rules for.


1.34.155
========

* api-change:``bedrock-agent-runtime``: Introduce model invocation output traces for orchestration traces, which contain the model's raw response and usage.
* api-change:``cognito-idp``: Advanced security feature updates to include password history and log export for Cognito user pools.
* api-change:``cost-optimization-hub``: This release adds savings percentage support to the ListRecommendationSummaries API.
* api-change:``workspaces``: Added support for BYOL_GRAPHICS_G4DN_WSP IngestionProcess
* enhancement:AWSCRT: Update awscrt version to 0.21.2


1.34.154
========

Expand Down
2 changes: 1 addition & 1 deletion botocore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import os
import re

__version__ = '1.34.154'
__version__ = '1.35.0'


class NullHandler(logging.Handler):
Expand Down
3 changes: 3 additions & 0 deletions botocore/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,9 @@ def compute_client_args(
client_config.disable_request_compression
),
client_context_params=client_config.client_context_params,
sigv4a_signing_region_set=(
client_config.sigv4a_signing_region_set
),
)
self._compute_retry_config(config_kwargs)
self._compute_connect_timeout(config_kwargs)
Expand Down
27 changes: 26 additions & 1 deletion botocore/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@
urlsplit,
urlunsplit,
)
from botocore.exceptions import NoAuthTokenError, NoCredentialsError
from botocore.exceptions import (
NoAuthTokenError,
NoCredentialsError,
UnknownSignatureVersionError,
UnsupportedSignatureVersionError,
)
from botocore.utils import (
is_valid_ipv6_endpoint_url,
normalize_url_path,
Expand Down Expand Up @@ -1132,6 +1137,19 @@ def add_auth(self, request):
request.headers['Authorization'] = auth_header


def resolve_auth_type(auth_trait):
for auth_type in auth_trait:
if auth_type == 'smithy.api#noAuth':
return AUTH_TYPE_TO_SIGNATURE_VERSION[auth_type]
elif auth_type in AUTH_TYPE_TO_SIGNATURE_VERSION:
signature_version = AUTH_TYPE_TO_SIGNATURE_VERSION[auth_type]
if signature_version in AUTH_TYPE_MAPS:
return signature_version
else:
raise UnknownSignatureVersionError(signature_version=auth_type)
raise UnsupportedSignatureVersionError(signature_version=auth_trait)


AUTH_TYPE_MAPS = {
'v2': SigV2Auth,
'v3': SigV3Auth,
Expand Down Expand Up @@ -1160,3 +1178,10 @@ def add_auth(self, request):
's3v4-query': S3SigV4QueryAuth,
}
)

AUTH_TYPE_TO_SIGNATURE_VERSION = {
'aws.auth#sigv4': 'v4',
'aws.auth#sigv4a': 'v4a',
'smithy.api#httpBearerAuth': 'bearer',
'smithy.api#noAuth': 'none',
}
Loading

0 comments on commit f928f61

Please sign in to comment.