AWS CLI version 2, the latest major version of AWS CLI, is now stable and recommended for general use. To view this page for the AWS CLI version 2, click here. For more information see the AWS CLI version 2 installation instructions and migration guide.
[ aws . servicecatalog ]
update-product
[--accept-language <value>]
--id <value>
[--name <value>]
[--owner <value>]
[--description <value>]
[--distributor <value>]
[--support-description <value>]
[--support-email <value>]
[--support-url <value>]
[--add-tags <value>]
[--remove-tags <value>]
[--source-connection <value>]
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]
[--debug]
[--endpoint-url <value>]
[--no-verify-ssl]
[--no-paginate]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--no-sign-request]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]
--accept-language
(string)
The language code.
jp
- Japanesezh
- Chinese
--id
(string)
The product identifier.
--name
(string)
The updated product name.
--owner
(string)
The updated owner of the product.
--description
(string)
The updated description of the product.
--distributor
(string)
The updated distributor of the product.
--support-description
(string)
The updated support description for the product.
--support-email
(string)
The updated support email for the product.
--support-url
(string)
The updated support URL for the product.
--add-tags
(list)
The tags to add to the product.
(structure)
Information about a tag. A tag is a key-value pair. Tags are propagated to the resources created when provisioning a product.
Key -> (string)
The tag key.Value -> (string)
The value for this key.
Shorthand Syntax:
Key=string,Value=string ...
JSON Syntax:
[
{
"Key": "string",
"Value": "string"
}
...
]
--remove-tags
(list)
The tags to remove from the product.
(string)
Syntax:
"string" "string" ...
--source-connection
(structure)
Specifies connection details for the updated product and syncs the product to the connection source artifact. This automatically manages the product's artifacts based on changes to the source. The
SourceConnection
parameter consists of the following sub-fields.
Type
ConnectionParamters
Type -> (string)
The only supportedSourceConnection
type is Codestar.ConnectionParameters -> (structure)
The connection details based on the connection
Type
.CodeStar -> (structure)
Provides
ConnectionType
details.ConnectionArn -> (string)
The CodeStar ARN, which is the connection between Service Catalog and the external repository.Repository -> (string)
The specific repository where the product’s artifact-to-be-synced resides, formatted as "Account/Repo."Branch -> (string)
The specific branch where the artifact resides.ArtifactPath -> (string)
The absolute path wehre the artifact resides within the repo and branch, formatted as "folder/file.json."
Shorthand Syntax:
Type=string,ConnectionParameters={CodeStar={ConnectionArn=string,Repository=string,Branch=string,ArtifactPath=string}}
JSON Syntax:
{
"Type": "CODESTAR",
"ConnectionParameters": {
"CodeStar": {
"ConnectionArn": "string",
"Repository": "string",
"Branch": "string",
"ArtifactPath": "string"
}
}
}
--cli-input-json
(string)
Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton
. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally.
--generate-cli-skeleton
(string)
Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input
, prints a sample input JSON that can be used as an argument for --cli-input-json
. If provided with the value output
, it validates the command inputs and returns a sample output JSON for that command.
--debug
(boolean)
Turn on debug logging.
--endpoint-url
(string)
Override command's default URL with the given URL.
--no-verify-ssl
(boolean)
By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.
--no-paginate
(boolean)
Disable automatic pagination. If automatic pagination is disabled, the AWS CLI will only make one call, for the first page of results.
--output
(string)
The formatting style for command output.
--query
(string)
A JMESPath query to use in filtering the response data.
--profile
(string)
Use a specific profile from your credential file.
--region
(string)
The region to use. Overrides config/env settings.
--version
(string)
Display the version of this tool.
--color
(string)
Turn on/off color output.
--no-sign-request
(boolean)
Do not sign requests. Credentials will not be loaded if this argument is provided.
--ca-bundle
(string)
The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings.
--cli-read-timeout
(int)
The maximum socket read time in seconds. If the value is set to 0, the socket read will be blocking and not timeout. The default value is 60 seconds.
--cli-connect-timeout
(int)
The maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not timeout. The default value is 60 seconds.
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 .
To update a product
The following update-product
example updates the name and owner of the specified product.
aws servicecatalog update-product \
--id prod-os6abc7drqlt2 \
--name "New product name" \
--owner "Updated product owner"
Output:
{
"Tags": [
{
"Value": "iad",
"Key": "region"
}
],
"ProductViewDetail": {
"ProductViewSummary": {
"Owner": "Updated product owner",
"ProductId": "prod-os6abc7drqlt2",
"Distributor": "test-distributor",
"SupportUrl": "https://aws.amazon.com",
"Name": "New product name",
"ShortDescription": "test-description",
"HasDefaultPath": false,
"Id": "prodview-6abcdgrfhvidy",
"SupportDescription": "test-support",
"SupportEmail": "test@amazon.com",
"Type": "CLOUD_FORMATION_TEMPLATE"
},
"Status": "CREATED",
"ProductARN": "arn:aws:catalog:us-west-2:123456789012:product/prod-os6abc7drqlt2",
"CreatedTime": 1577136255.0
}
}
ProductViewDetail -> (structure)
Information about the product view.
ProductViewSummary -> (structure)
Summary information about the product view.
Id -> (string)
The product view identifier.ProductId -> (string)
The product identifier.Name -> (string)
The name of the product.Owner -> (string)
The owner of the product. Contact the product administrator for the significance of this value.ShortDescription -> (string)
Short description of the product.Type -> (string)
The product type. Contact the product administrator for the significance of this value. If this value isMARKETPLACE
, the product was created by Amazon Web Services Marketplace.Distributor -> (string)
The distributor of the product. Contact the product administrator for the significance of this value.HasDefaultPath -> (boolean)
Indicates whether the product has a default path. If the product does not have a default path, call ListLaunchPaths to disambiguate between paths. Otherwise, ListLaunchPaths is not required, and the output of ProductViewSummary can be used directly with DescribeProvisioningParameters .SupportEmail -> (string)
The email contact information to obtain support for this Product.SupportDescription -> (string)
The description of the support for this Product.SupportUrl -> (string)
The URL information to obtain support for this Product.Status -> (string)
The status of the product.
AVAILABLE
- The product is ready for use.CREATING
- Product creation has started; the product is not ready for use.FAILED
- An action failed.ProductARN -> (string)
The ARN of the product.CreatedTime -> (timestamp)
The UTC time stamp of the creation time.SourceConnection -> (structure)
A top level
ProductViewDetail
response containing details about the product’s connection. Service Catalog returns this field for theCreateProduct
,UpdateProduct
,DescribeProductAsAdmin
, andSearchProductAsAdmin
APIs. This response contains the same fields as theConnectionParameters
request, with the addition of theLastSync
response.Type -> (string)
The only supportedSourceConnection
type is Codestar.ConnectionParameters -> (structure)
The connection details based on the connection
Type
.CodeStar -> (structure)
Provides
ConnectionType
details.ConnectionArn -> (string)
The CodeStar ARN, which is the connection between Service Catalog and the external repository.Repository -> (string)
The specific repository where the product’s artifact-to-be-synced resides, formatted as "Account/Repo."Branch -> (string)
The specific branch where the artifact resides.ArtifactPath -> (string)
The absolute path wehre the artifact resides within the repo and branch, formatted as "folder/file.json."LastSync -> (structure)
Provides details about the product's connection sync and contains the following sub-fields.
LastSyncTime
LastSyncStatus
LastSyncStatusMessage
LastSuccessfulSyncTime
LastSuccessfulSyncProvisioningArtifactID
LastSyncTime -> (timestamp)
The time of the last attempted sync from the repository to the Service Catalog product.LastSyncStatus -> (string)
The current status of the sync. Responses includeSUCCEEDED
orFAILED
.LastSyncStatusMessage -> (string)
The sync's status message.LastSuccessfulSyncTime -> (timestamp)
The time of the latest successful sync from the source repo artifact to the Service Catalog product.LastSuccessfulSyncProvisioningArtifactId -> (string)
The ProvisioningArtifactID of the ProvisioningArtifact created from the latest successful sync.
Tags -> (list)
Information about the tags associated with the product.
(structure)
Information about a tag. A tag is a key-value pair. Tags are propagated to the resources created when provisioning a product.
Key -> (string)
The tag key.Value -> (string)
The value for this key.