CmdID

CmdID / aws / aws servicecatalog

aws servicecatalog create-constraint

Creates a constraint. AWS CLI reference

1 example 7 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

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"}'Identify
--portfolio-idThe portfolio identifier.
--product-idThe product identifier.
--typeThe type of constraint.
--parametersThe constraint parameters, in JSON format.
Its 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 in the AWS Service Catalog User Guide.

Options

7 in the AWS CLI reference
--accept-languageThe language code.
--descriptionThe description of the constraint.
--idempotency-tokenA unique identifier that you provide to ensure idempotency.
--parametersThe constraint parameters, in JSON format.
--portfolio-idThe portfolio identifier.
--product-idThe product identifier.
--typeThe type of constraint.