AWS cli documentation change
Summary
Added examples section demonstrating constraint creation with CLI command and output format
Security assessment
The change adds usage examples without addressing vulnerabilities or weaknesses. The example shows role assignment which is standard IAM configuration, not a security fix.
Diff
diff --git a/cli/latest/reference/servicecatalog/create-constraint.md b/cli/latest/reference/servicecatalog/create-constraint.md index dc581f72b..05f8658bf 100644 --- a//cli/latest/reference/servicecatalog/create-constraint.md +++ b//cli/latest/reference/servicecatalog/create-constraint.md @@ -15 +15 @@ - * [AWS CLI 2.35.13 Command Reference](../../index.html) » + * [AWS CLI 2.35.15 Command Reference](../../index.html) » @@ -35,0 +36 @@ + * Examples @@ -347,0 +349,38 @@ The formatting style for error output. By default, errors are displayed in enhan +## Examples¶ + +### Note + +To use the following examples, you must have the AWS CLI installed and configured. See the [Getting started guide](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html) 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](https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-quoting-strings.html) in the _AWS CLI User Guide_ . + +**To create a constraints** + +The following `create-constraint` example creates a constraint. + + + aws servicecatalog create-constraint \ + --portfolio-id port-y3fnkesxxxxx \ + --product-id prod-cfrfxmraxxxxx \ + --type LAUNCH \ + --parameters '{"RoleArn" : "arn:aws:iam::123456789012:role/LaunchRole"}' + + +Output: + + + { + "ConstraintDetail": { + "ConstraintId": "cons-7tr6gei4bxxxx", + "Type": "LAUNCH", + "Owner": "123456789012", + "ProductId": "prod-cfrfxmra3xxxx", + "PortfolioId": "port-y3fnkeslpxxxx" + }, + "ConstraintParameters": "{\"RoleArn\" : \"arn:aws:iam::123456789012:role/LaunchRole\"}", + "Status": "CREATING" + } + + +For more information, see [Using AWS Service Catalog Constraints](https://docs.aws.amazon.com/servicecatalog/latest/adminguide/constraints.html) in the _AWS Service Catalog User Guide_. + @@ -454 +493 @@ Status -> (string) - * [AWS CLI 2.35.13 Command Reference](../../index.html) » + * [AWS CLI 2.35.15 Command Reference](../../index.html) »