{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-service-catalog/json-schema/amazon-service-catalog-create-constraint-input-schema.json",
  "title": "CreateConstraintInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-service-catalog-constraint-api-openapi.yml#/components/schemas/CreateConstraintInput",
  "type": "object",
  "properties": {
    "AcceptLanguage": {
      "type": "string",
      "description": "The language code. jp - Japanese zh - Chinese"
    },
    "PortfolioId": {
      "type": "string",
      "description": "The portfolio identifier."
    },
    "ProductId": {
      "type": "string",
      "description": "The product identifier."
    },
    "Parameters": {
      "type": "string",
      "description": "The constraint parameters, in JSON format. The syntax depends on the constraint type as follows: LAUNCH You are required to specify either the RoleArn or the LocalRoleName but can't use both. Specify the RoleArn property as follows: {\"RoleArn\" : \"arn:aws:iam::123456789012:role/LaunchRole\"} Specify the LocalRoleName property as follows: {\"LocalRoleName\": \"SCBasicLaunchRole\"} If you specify the LocalRoleName property, when an account uses the launch constraint, the IAM role with that name in the account will be used. This allows launch-role constraints to be account-agnostic so the administrator"
    },
    "Type": {
      "type": "string",
      "description": "The type of constraint. LAUNCH NOTIFICATION RESOURCE_UPDATE STACKSET TEMPLATE"
    },
    "Description": {
      "type": "string",
      "description": "The description of the constraint."
    },
    "IdempotencyToken": {
      "type": "string",
      "description": "A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency token, the same response is returned for each repeated request."
    }
  },
  "required": [
    "PortfolioId",
    "ProductId",
    "Parameters",
    "Type",
    "IdempotencyToken"
  ]
}