Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
aws
GitHub Repository: aws/aws-cli
Path: blob/develop/awscli/__init__.py
1566 views
1
# Copyright 2012-2013 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
AWSCLI
15
----
16
A Universal Command Line Environment for Amazon Web Services.
17
"""
18
19
import os
20
21
__version__ = '1.42.25'
22
23
#
24
# Get our data path to be added to botocore's search path
25
#
26
_awscli_data_path = []
27
if 'AWS_DATA_PATH' in os.environ:
28
for path in os.environ['AWS_DATA_PATH'].split(os.pathsep):
29
path = os.path.expandvars(path)
30
path = os.path.expanduser(path)
31
_awscli_data_path.append(path)
32
_awscli_data_path.append(
33
os.path.join(os.path.dirname(os.path.abspath(__file__)), 'data')
34
)
35
os.environ['AWS_DATA_PATH'] = os.pathsep.join(_awscli_data_path)
36
37
38
EnvironmentVariables = {
39
'ca_bundle': ('ca_bundle', 'AWS_CA_BUNDLE', None, None),
40
'output': ('output', 'AWS_DEFAULT_OUTPUT', 'json', None),
41
}
42
43
44
SCALAR_TYPES = set(
45
[
46
'string',
47
'float',
48
'integer',
49
'long',
50
'boolean',
51
'double',
52
'blob',
53
'timestamp',
54
]
55
)
56
COMPLEX_TYPES = set(['structure', 'map', 'list'])
57
58