Skip to content

Commit 6f910ba

Browse files
authored
Merge branch 'main' into cipher_suite
2 parents 21d52a1 + 4961400 commit 6f910ba

19 files changed

+387
-13
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
chmod a+x builder
9494
./builder build -p ${{ env.PACKAGE_NAME }}
9595
- name: configure AWS credentials (MQTT5)
96-
uses: aws-actions/configure-aws-credentials@v2
96+
uses: aws-actions/configure-aws-credentials@v4
9797
with:
9898
role-to-assume: ${{ env.CI_MQTT5_ROLE }}
9999
aws-region: ${{ env.AWS_DEFAULT_REGION }}
@@ -129,7 +129,7 @@ jobs:
129129
chmod a+x builder
130130
./builder build -p ${{ env.PACKAGE_NAME }}
131131
- name: configure AWS credentials (MQTT5)
132-
uses: aws-actions/configure-aws-credentials@v2
132+
uses: aws-actions/configure-aws-credentials@v4
133133
with:
134134
role-to-assume: ${{ env.CI_MQTT5_ROLE }}
135135
aws-region: ${{ env.AWS_DEFAULT_REGION }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
force: true
6969

7070
- name: configure AWS credentials (Release)
71-
uses: aws-actions/configure-aws-credentials@v2
71+
uses: aws-actions/configure-aws-credentials@v4
7272
with:
7373
role-to-assume: arn:aws:iam::180635532705:role/CI_V2_RELEASE_S3_ROLE
7474
aws-region: us-east-1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,4 @@ is provided by code that been generated from a model of the service.
9090

9191
This library is licensed under the [Apache 2.0 License](./documents/LICENSE).
9292

93-
Latest released version: v1.25.0
93+
Latest released version: v1.26.0

awsiot/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from concurrent.futures import Future
2020
from dataclasses import dataclass
2121
import json
22-
from typing import Any, Callable, Dict, Generic, Optional, Tuple, TypeVar
22+
from typing import Any, Callable, Dict, Generic, Optional, Tuple, TypeVar, Union
2323

2424
__version__ = '1.0.0-dev'
2525

@@ -37,7 +37,7 @@ class MqttServiceClient:
3737
mqtt_connection: MQTT connection to use
3838
"""
3939

40-
def __init__(self, mqtt_connection: mqtt.Connection or mqtt5.Client):
40+
def __init__(self, mqtt_connection: Union[mqtt.Connection, mqtt5.Client]):
4141
if isinstance(mqtt_connection, mqtt.Connection):
4242
self._mqtt_connection = mqtt_connection # type: mqtt.Connection
4343
elif isinstance(mqtt_connection, mqtt5.Client):

codebuild/cd/publish-to-prod-pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ phases:
1111
- sudo apt-get install python3 python3-pip -y
1212
- export PATH=$PATH:$HOME/.local/bin
1313
- python3 -m pip install --user --upgrade pip
14-
- python3 -m pip install --user --upgrade twine setuptools wheel awscli PyOpenSSL six
14+
- python3 -m pip install --user --upgrade twine awscli build setuptools
1515
- echo "\nBuild version data:"
1616
- echo "\nPython Version:"; python3 --version
1717
pre_build:
@@ -24,7 +24,7 @@ phases:
2424
build:
2525
commands:
2626
- echo Build started on `date`
27-
- python3 setup.py sdist bdist_wheel
27+
- python3 -m build
2828
- python3 -m twine upload -r pypi dist/*
2929
post_build:
3030
commands:

codebuild/cd/publish-to-test-pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ phases:
1111
- sudo apt-get install python3 python3-pip -y
1212
- export PATH=$PATH:$HOME/.local/bin
1313
- python3 -m pip install --user --upgrade pip
14-
- python3 -m pip install --user --upgrade twine setuptools wheel awscli PyOpenSSL six
14+
- python3 -m pip install --user --upgrade twine awscli build setuptools
1515
- echo "\nBuild version data:"
1616
- echo "\nPython Version:"; python3 --version
1717
pre_build:
@@ -24,7 +24,7 @@ phases:
2424
build:
2525
commands:
2626
- echo Build started on `date`
27-
- python3 setup.py sdist bdist_wheel
27+
- python3 -m build
2828
- python3 -m twine upload -r testpypi dist/*
2929
post_build:
3030
commands:

samples/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,13 @@ The sample will not run without the required arguments and will notify you of mi
8282
### Enable Logging
8383

8484
Instructions to enable logging are available in the [FAQ](../documents/FAQ.md) under [How do I enable logging](../documents/FAQ.md#how-do-i-enable-logging).
85+
86+
## ⚠️ Usage disclaimer
87+
88+
These code examples interact with services that may incur charges to your AWS account. For more information, see [AWS Pricing](https://aws.amazon.com/pricing/).
89+
90+
Additionally, example code might theoretically modify or delete existing AWS resources. As a matter of due diligence, do the following:
91+
92+
- Be aware of the resources that these examples create or delete.
93+
- Be aware of the costs that might be charged to your account as a result.
94+
- Back up your important data.

samples/greengrass/basic_discovery.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,14 @@ This sample is intended for use with the following tutorials in the AWS IoT Gree
77

88
* [Connect and test client devices](https://docs.aws.amazon.com/greengrass/v2/developerguide/client-devices-tutorial.html)
99
* [Test client device communications](https://docs.aws.amazon.com/greengrass/v2/developerguide/test-client-device-communications.html)
10-
* [Getting Started with AWS IoT Greengrass](https://docs.aws.amazon.com/greengrass/latest/developerguide/gg-gs.html)
10+
* [Getting Started with AWS IoT Greengrass](https://docs.aws.amazon.com/greengrass/latest/developerguide/gg-gs.html)
11+
12+
## ⚠️ Usage disclaimer
13+
14+
These code examples interact with services that may incur charges to your AWS account. For more information, see [AWS Pricing](https://aws.amazon.com/pricing/).
15+
16+
Additionally, example code might theoretically modify or delete existing AWS resources. As a matter of due diligence, do the following:
17+
18+
- Be aware of the resources that these examples create or delete.
19+
- Be aware of the costs that might be charged to your account as a result.
20+
- Back up your important data.

samples/greengrass/ipc_greengrass.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,13 @@ Replace the following with your information:
9797
<br />
9898

9999
Note that you will need to have the Python V2 SDK installed on the Greengrass device in order to compile the sample on the Greengrass device.
100+
101+
## ⚠️ Usage disclaimer
102+
103+
These code examples interact with services that may incur charges to your AWS account. For more information, see [AWS Pricing](https://aws.amazon.com/pricing/).
104+
105+
Additionally, example code might theoretically modify or delete existing AWS resources. As a matter of due diligence, do the following:
106+
107+
- Be aware of the resources that these examples create or delete.
108+
- Be aware of the costs that might be charged to your account as a result.
109+
- Back up your important data.

samples/mqtt/mqtt5_aws_websocket.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,13 @@ The sample will not run without the required arguments and will notify you of mi
102102

103103
## Additional Information
104104
Additional help with the MQTT5 Client can be found in the [MQTT5 Userguide](../../documents/MQTT5_Userguide.md). This guide will provide more details on MQTT5 [operations](../../documents/MQTT5_Userguide.md#optional-keyword-arguments), [lifecycle events](../../documents/MQTT5_Userguide.md#lifecycle-events), [connection methods](../../documents/MQTT5_Userguide.md#connecting-to-aws-iot-core), and other useful information.
105+
106+
## ⚠️ Usage disclaimer
107+
108+
These code examples interact with services that may incur charges to your AWS account. For more information, see [AWS Pricing](https://aws.amazon.com/pricing/).
109+
110+
Additionally, example code might theoretically modify or delete existing AWS resources. As a matter of due diligence, do the following:
111+
112+
- Be aware of the resources that these examples create or delete.
113+
- Be aware of the costs that might be charged to your account as a result.
114+
- Back up your important data.

0 commit comments

Comments
 (0)