Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
aws
GitHub Repository: aws/aws-cli
Path: blob/develop/awscli/customizations/quicksight.py
1566 views
1
# Copyright 2018 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
from awscli.customizations.arguments import NestedBlobArgumentHoister
15
16
_ASSET_BUNDLE_FILE_DOCSTRING = (
17
'<p>The content of the asset bundle to be uploaded. '
18
'To specify the content of a local file use the '
19
'fileb:// prefix. Example: fileb://asset-bundle.zip</p>')
20
21
_ASSET_BUNDLE_DOCSTRING_ADDENDUM = (
22
'<p>To specify a local file use '
23
'<code>--asset-bundle-import-source-bytes</code> instead.</p>')
24
25
26
def register_quicksight_asset_bundle_customizations(cli):
27
cli.register(
28
'building-argument-table.quicksight.start-asset-bundle-import-job',
29
NestedBlobArgumentHoister(
30
source_arg='asset-bundle-import-source',
31
source_arg_blob_member='Body',
32
new_arg='asset-bundle-import-source-bytes',
33
new_arg_doc_string=_ASSET_BUNDLE_FILE_DOCSTRING,
34
doc_string_addendum=_ASSET_BUNDLE_DOCSTRING_ADDENDUM))
35
36