Skip to content

Commit

Permalink
Merge branch 'release-1.31.71'
Browse files Browse the repository at this point in the history
* release-1.31.71:
  Bumping version to 1.31.71
  Update to latest models
  Add generic support for client context params (#3037)
  • Loading branch information
aws-sdk-python-automation committed Oct 25, 2023
2 parents 0470cdf + 722d559 commit 934fc9a
Show file tree
Hide file tree
Showing 17 changed files with 408 additions and 102 deletions.
22 changes: 22 additions & 0 deletions .changes/1.31.71.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[
{
"category": "Configuration",
"description": "Adds client context params support to ``Config``.",
"type": "enhancement"
},
{
"category": "``connectcases``",
"description": "Increase maximum length of CommentBody to 3000, and increase maximum length of StringValue to 1500",
"type": "api-change"
},
{
"category": "``groundstation``",
"description": "This release will allow KMS alias names to be used when creating Mission Profiles",
"type": "api-change"
},
{
"category": "``iam``",
"description": "Updates to GetAccessKeyLastUsed action to replace NoSuchEntity error with AccessDeniedException error.",
"type": "api-change"
}
]
9 changes: 9 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
CHANGELOG
=========

1.31.71
=======

* enhancement:Configuration: Adds client context params support to ``Config``.
* api-change:``connectcases``: Increase maximum length of CommentBody to 3000, and increase maximum length of StringValue to 1500
* api-change:``groundstation``: This release will allow KMS alias names to be used when creating Mission Profiles
* api-change:``iam``: Updates to GetAccessKeyLastUsed action to replace NoSuchEntity error with AccessDeniedException error.


1.31.70
=======

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.31.70'
__version__ = '1.31.71'


class NullHandler(logging.Handler):
Expand Down
19 changes: 11 additions & 8 deletions botocore/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ def compute_client_args(
disable_request_compression=(
client_config.disable_request_compression
),
client_context_params=client_config.client_context_params,
)
self._compute_retry_config(config_kwargs)
self._compute_connect_timeout(config_kwargs)
Expand Down Expand Up @@ -641,14 +642,16 @@ def _build_endpoint_resolver(
client_endpoint_url=endpoint_url,
legacy_endpoint_url=endpoint.host,
)
# botocore does not support client context parameters generically
# for every service. Instead, the s3 config section entries are
# available as client context parameters. In the future, endpoint
# rulesets of services other than s3/s3control may require client
# context parameters.
client_context = (
s3_config_raw if self._is_s3_service(service_name_raw) else {}
)
# Client context params for s3 conflict with the available settings
# in the `s3` parameter on the `Config` object. If the same parameter
# is set in both places, the value in the `s3` parameter takes priority.
if client_config is not None:
client_context = client_config.client_context_params or {}
else:
client_context = {}
if self._is_s3_service(service_name_raw):
client_context.update(s3_config_raw)

sig_version = (
client_config.signature_version
if client_config is not None
Expand Down
10 changes: 10 additions & 0 deletions botocore/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,15 @@ class Config:
:param disable_request_compression: Disables request body compression if
set to True.
Defaults to None.
:type client_context_params: dict
:param client_context_params: A dictionary of parameters specific to
individual services. If available, valid parameters can be found in
the ``Client Context Parameters`` section of the service client's
documentation. Invalid parameters or ones that are not used by the
specified service will be ignored.
Defaults to None.
"""

Expand Down Expand Up @@ -247,6 +256,7 @@ class Config:
('tcp_keepalive', None),
('request_min_compression_size_bytes', None),
('disable_request_compression', None),
('client_context_params', None),
]
)

Expand Down
64 changes: 32 additions & 32 deletions botocore/data/connectcases/2022-10-03/endpoint-rule-set-1.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
]
}
],
"type": "tree",
"rules": [
{
"conditions": [
Expand All @@ -59,7 +58,6 @@
},
{
"conditions": [],
"type": "tree",
"rules": [
{
"conditions": [
Expand Down Expand Up @@ -87,13 +85,14 @@
},
"type": "endpoint"
}
]
],
"type": "tree"
}
]
],
"type": "tree"
},
{
"conditions": [],
"type": "tree",
"rules": [
{
"conditions": [
Expand All @@ -106,7 +105,6 @@
]
}
],
"type": "tree",
"rules": [
{
"conditions": [
Expand All @@ -120,7 +118,6 @@
"assign": "PartitionResult"
}
],
"type": "tree",
"rules": [
{
"conditions": [
Expand All @@ -143,7 +140,6 @@
]
}
],
"type": "tree",
"rules": [
{
"conditions": [
Expand Down Expand Up @@ -178,11 +174,9 @@
]
}
],
"type": "tree",
"rules": [
{
"conditions": [],
"type": "tree",
"rules": [
{
"conditions": [],
Expand All @@ -193,16 +187,19 @@
},
"type": "endpoint"
}
]
],
"type": "tree"
}
]
],
"type": "tree"
},
{
"conditions": [],
"error": "FIPS and DualStack are enabled, but this partition does not support one or both",
"type": "error"
}
]
],
"type": "tree"
},
{
"conditions": [
Expand All @@ -216,14 +213,12 @@
]
}
],
"type": "tree",
"rules": [
{
"conditions": [
{
"fn": "booleanEquals",
"argv": [
true,
{
"fn": "getAttr",
"argv": [
Expand All @@ -232,15 +227,14 @@
},
"supportsFIPS"
]
}
},
true
]
}
],
"type": "tree",
"rules": [
{
"conditions": [],
"type": "tree",
"rules": [
{
"conditions": [],
Expand All @@ -251,16 +245,19 @@
},
"type": "endpoint"
}
]
],
"type": "tree"
}
]
],
"type": "tree"
},
{
"conditions": [],
"error": "FIPS is enabled but this partition does not support FIPS",
"type": "error"
}
]
],
"type": "tree"
},
{
"conditions": [
Expand All @@ -274,7 +271,6 @@
]
}
],
"type": "tree",
"rules": [
{
"conditions": [
Expand All @@ -294,11 +290,9 @@
]
}
],
"type": "tree",
"rules": [
{
"conditions": [],
"type": "tree",
"rules": [
{
"conditions": [],
Expand All @@ -309,20 +303,22 @@
},
"type": "endpoint"
}
]
],
"type": "tree"
}
]
],
"type": "tree"
},
{
"conditions": [],
"error": "DualStack is enabled but this partition does not support DualStack",
"type": "error"
}
]
],
"type": "tree"
},
{
"conditions": [],
"type": "tree",
"rules": [
{
"conditions": [],
Expand All @@ -333,18 +329,22 @@
},
"type": "endpoint"
}
]
],
"type": "tree"
}
]
],
"type": "tree"
}
]
],
"type": "tree"
},
{
"conditions": [],
"error": "Invalid Configuration: Missing Region",
"type": "error"
}
]
],
"type": "tree"
}
]
}
10 changes: 5 additions & 5 deletions botocore/data/connectcases/2022-10-03/service-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
{"shape":"AccessDeniedException"},
{"shape":"ConflictException"}
],
"documentation":"<p>Creates a case in the specified Cases domain. Case system and custom fields are taken as an array id/value pairs with a declared data types.</p> <note> <p>The following fields are required when creating a case:</p> <pre><code> &lt;ul&gt; &lt;li&gt; &lt;p&gt; &lt;code&gt;customer_id&lt;/code&gt; - You must provide the full customer profile ARN in this format: &lt;code&gt;arn:aws:profile:your AWS Region:your AWS account ID:domains/profiles domain name/profiles/profile ID&lt;/code&gt; &lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;code&gt;title&lt;/code&gt; &lt;/p&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/note&gt; </code></pre>",
"documentation":"<p>Creates a case in the specified Cases domain. Case system and custom fields are taken as an array id/value pairs with a declared data types.</p> <p>The following fields are required when creating a case:</p> <pre><code> &lt;ul&gt; &lt;li&gt; &lt;p&gt; &lt;code&gt;customer_id&lt;/code&gt; - You must provide the full customer profile ARN in this format: &lt;code&gt;arn:aws:profile:your_AWS_Region:your_AWS_account ID:domains/your_profiles_domain_name/profiles/profile_ID&lt;/code&gt; &lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt; &lt;code&gt;title&lt;/code&gt; &lt;/p&gt; &lt;/li&gt; &lt;/ul&gt; </code></pre>",
"idempotent":true
},
"CreateDomain":{
Expand Down Expand Up @@ -425,7 +425,7 @@
{"shape":"ThrottlingException"},
{"shape":"AccessDeniedException"}
],
"documentation":"<p>API for adding case event publishing configuration</p>"
"documentation":"<p>Adds case event publishing configuration. For a complete list of fields you can add to the event message, see <a href=\"https://docs.aws.amazon.com/connect/latest/adminguide/case-fields.html\">Create case fields</a> in the <i>Amazon Connect Administrator Guide</i> </p>"
},
"SearchCases":{
"name":"SearchCases",
Expand Down Expand Up @@ -805,7 +805,7 @@
},
"CommentBody":{
"type":"string",
"max":1000,
"max":3000,
"min":1
},
"CommentBodyTextType":{
Expand Down Expand Up @@ -1576,7 +1576,7 @@
},
"FieldValueUnionStringValueString":{
"type":"string",
"max":500,
"max":1500,
"min":0
},
"GetCaseEventConfigurationRequest":{
Expand Down Expand Up @@ -2891,7 +2891,7 @@
"members":{
"content":{
"shape":"LayoutContent",
"documentation":"<p>Information about which fields will be present in the layout, the order of the fields, and a read-only attribute of the field. </p>"
"documentation":"<p>Information about which fields will be present in the layout, the order of the fields.</p>"
},
"domainId":{
"shape":"DomainId",
Expand Down
Loading

0 comments on commit 934fc9a

Please sign in to comment.