Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
aws
GitHub Repository: aws/aws-cli
Path: blob/develop/awscli/customizations/iot_data.py
1566 views
1
# Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
#
3
# Licensed under the Apache License, Version 2.0 (the "License"). You
4
# may not use this file except in compliance with the License. A copy of
5
# the License is located at
6
#
7
# http://aws.amazon.com/apache2.0/
8
#
9
# or in the "license" file accompanying this file. This file is
10
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11
# ANY KIND, either express or implied. See the License for the specific
12
# language governing permissions and limitations under the License.
13
14
15
def register_custom_endpoint_note(event_emitter):
16
event_emitter.register_last(
17
'doc-description.iot-data', add_custom_endpoint_url_note)
18
19
20
def add_custom_endpoint_url_note(help_command, **kwargs):
21
style = help_command.doc.style
22
style.start_note()
23
style.doc.writeln(
24
'For production code it is strongly recommended to use the custom endpoint '
25
'for your account (retrievable via the iot describe-endpoint command) to ensure '
26
'best availability and reachability of the service. The default endpoints '
27
'(intended for testing purposes only) can be found at '
28
'https://docs.aws.amazon.com/general/latest/gr/iot-core.html#iot-core-data-plane-endpoints'
29
)
30
style.end_note()
31
32