Adds a service JSON model to the appropriate location in ~/.aws/models. Once the model gets added, CLI commands and Boto3 clients will be immediately available for the service JSON model provided.
See ‘aws help’ for descriptions of global parameters.
add-model
--service-model <value>
[--service-name <value>]
--service-model
(string)
The contents of the service JSON model.
--service-name
(string)
Overrides the default name used by the service JSON model to generate CLI service commands and Boto3 clients.
See ‘aws help’ for descriptions of global parameters.
Note
To use the following examples, you must have the AWS CLI installed and configured. See the Getting started guide in the AWS CLI User Guide for more information.
Unless otherwise stated, all examples have unix-like quotation rules. These examples will need to be adapted to your terminal’s quoting rules. See Using quotation marks with strings in the AWS CLI User Guide .
Add a model
The following command adds a service model from a file named service.json
:
aws configure add-model --service-model file://service.json
Adding a model replaces existing commands for the service defined in the model. To leave existing commands as-is, specify a different service name to use for the new commands:
aws configure add-model --service-model file://service.json --service-name service2