AWS Security ChangesHomeSearch

AWS cli documentation change

Service: cli · 2026-07-04 · Documentation low

File: cli/latest/reference/servicecatalog/list-constraints-for-portfolio.md

Summary

Added examples section demonstrating list-constraints-for-portfolio command usage with sample outputs

Security assessment

Change provides operational examples of constraint listing. While constraints can relate to security controls, the examples show normal constraint types (LAUNCH/RESOURCE_UPDATE) without evidence of addressing specific vulnerabilities or adding new security documentation.

Diff

diff --git a/cli/latest/reference/servicecatalog/list-constraints-for-portfolio.md b/cli/latest/reference/servicecatalog/list-constraints-for-portfolio.md
index 6a46e7267..8d98d0020 100644
--- a//cli/latest/reference/servicecatalog/list-constraints-for-portfolio.md
+++ b//cli/latest/reference/servicecatalog/list-constraints-for-portfolio.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
@@ -274,0 +276,70 @@ 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_ .
+
+**Example 1: To list all constraints for a portfolio**
+
+The following `list-constraints-for-portfolio` example lists all constraints for a portfolio.
+    
+    
+    aws servicecatalog list-constraints-for-portfolio \
+        --portfolio-id port-y3fnkeslpxxxx
+    
+
+Output:
+    
+    
+    {
+        "ConstraintDetails": [
+            {
+                "ConstraintId": "cons-dgdyqdqrxxxxx",
+                "Type": "LAUNCH",
+                "Description": "Launch as local role TestLaunchRole",
+                "Owner": "123456789012",
+                "ProductId": "prod-j6pd3hf6xxxxx",
+                "PortfolioId": "port-y3fnkeslxxxxx"
+            },
+            {
+                "ConstraintId": "cons-tzxjnj4l6xxxx",
+                "Type": "RESOURCE_UPDATE",
+                "Owner": "123456789012",
+                "ProductId": "prod-sphewkokxxxxx",
+                "PortfolioId": "port-y3fnkeslxxxxx"
+            }
+        ]
+    }
+    
+
+**Example 2: To list constraints on a product**
+
+The following `list-constraints-for-portfolio` example lists constraints on a product.
+    
+    
+    aws servicecatalog list-constraints-for-portfolio \
+        --portfolio-id port-y3fnkeslxxxxx \
+        --product-id prod-j6pd3hf6xxxxx
+    
+
+Output:
+    
+    
+    {
+        "ConstraintDetails": [
+            {
+                "ConstraintId": "cons-dgdyqdqrxxxxx",
+                "Type": "LAUNCH",
+                "Description": "Launch as local role TestLaunchRole",
+                "Owner": "123456789012",
+                "ProductId": "prod-j6pd3hf6xxxxx",
+                "PortfolioId": "port-y3fnkeslxxxxx"
+            }
+        ]
+    }
+    
+
+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_.
+
@@ -380 +451 @@ NextPageToken -> (string)
-  * [AWS CLI 2.35.13 Command Reference](../../index.html) »
+  * [AWS CLI 2.35.15 Command Reference](../../index.html) »