{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-service-catalog/json-schema/amazon-service-catalog-update-provisioned-product-input-schema.json",
  "title": "UpdateProvisionedProductInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-service-catalog-provisioned-products-api-openapi.yml#/components/schemas/UpdateProvisionedProductInput",
  "type": "object",
  "properties": {
    "AcceptLanguage": {
      "type": "string",
      "description": "The language code. jp - Japanese zh - Chinese"
    },
    "ProvisionedProductName": {
      "type": "string",
      "description": "The name of the provisioned product. You cannot specify both ProvisionedProductName and ProvisionedProductId."
    },
    "ProvisionedProductId": {
      "type": "string",
      "description": "The identifier of the provisioned product. You must provide the name or ID, but not both."
    },
    "ProductId": {
      "type": "string",
      "description": "The identifier of the product. You must provide the name or ID, but not both."
    },
    "ProductName": {
      "type": "string",
      "description": "The name of the product. You must provide the name or ID, but not both."
    },
    "ProvisioningArtifactId": {
      "type": "string",
      "description": "The identifier of the provisioning artifact."
    },
    "ProvisioningArtifactName": {
      "type": "string",
      "description": "The name of the provisioning artifact. You must provide the name or ID, but not both."
    },
    "PathId": {
      "type": "string",
      "description": "The path identifier. This value is optional if the product has a default path, and required if the product has more than one path. You must provide the name or ID, but not both."
    },
    "PathName": {
      "type": "string",
      "description": "The name of the path. You must provide the name or ID, but not both."
    },
    "ProvisioningParameters": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/UpdateProvisioningParameter"
      },
      "description": "The new parameters."
    },
    "ProvisioningPreferences": {
      "$ref": "#/$defs/UpdateProvisioningPreferences"
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "One or more tags. Requires the product to have RESOURCE_UPDATE constraint with TagUpdatesOnProvisionedProduct set to ALLOWED to allow tag updates."
    },
    "UpdateToken": {
      "type": "string",
      "description": "The idempotency token that uniquely identifies the provisioning update request."
    }
  },
  "required": [
    "UpdateToken"
  ],
  "$defs": {
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The tag key."
        },
        "Value": {
          "type": "string",
          "description": "The value for this key."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    },
    "UpdateProvisioningParameter": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The parameter key."
        },
        "Value": {
          "type": "string",
          "description": "The parameter value."
        },
        "UsePreviousValue": {
          "type": "boolean",
          "description": "If set to true, Value is ignored and the previous parameter value is kept."
        }
      }
    },
    "UpdateProvisioningPreferences": {
      "type": "object",
      "properties": {
        "StackSetAccounts": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "One or more Amazon Web Services accounts that will have access to the provisioned product. Applicable only to a CFN_STACKSET provisioned product type. The Amazon Web Services accounts specified should be within the list of accounts in the STACKSET constraint. To get the list of accounts in the STACKSET constraint, use the DescribeProvisioningParameters operation. If no values are specified, the default value is all accounts from the STACKSET constraint."
        },
        "StackSetRegions": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "One or more Amazon Web Services Regions where the provisioned product will be available. Applicable only to a CFN_STACKSET provisioned product type. The specified Regions should be within the list of Regions from the STACKSET constraint. To get the list of Regions in the STACKSET constraint, use the DescribeProvisioningParameters operation. If no values are specified, the default value is all Regions from the STACKSET constraint."
        },
        "StackSetFailureToleranceCount": {
          "type": "integer",
          "description": "The number of accounts, per Region, for which this operation can fail before Service Catalog stops the operation in that Region. If the operation is stopped in a Region, Service Catalog doesn't attempt the operation in any subsequent Regions. Applicable only to a CFN_STACKSET provisioned product type. Conditional: You must specify either StackSetFailureToleranceCount or StackSetFailureTolerancePercentage, but not both. The default value is 0 if no value is specified."
        },
        "StackSetFailureTolerancePercentage": {
          "type": "integer",
          "description": "The percentage of accounts, per Region, for which this stack operation can fail before Service Catalog stops the operation in that Region. If the operation is stopped in a Region, Service Catalog doesn't attempt the operation in any subsequent Regions. When calculating the number of accounts based on the specified percentage, Service Catalog rounds down to the next whole number. Applicable only to a CFN_STACKSET provisioned product type. Conditional: You must specify either StackSetFailureToleranceCount or StackSetFailureTolerancePercentage, but not both."
        },
        "StackSetMaxConcurrencyCount": {
          "type": "integer",
          "description": "The maximum number of accounts in which to perform this operation at one time. This is dependent on the value of StackSetFailureToleranceCount. StackSetMaxConcurrentCount is at most one more than the StackSetFailureToleranceCount. Note that this setting lets you specify the maximum for operations. For large deployments, under certain circumstances the actual number of accounts acted upon concurrently may be lower due to service throttling. Applicable only to a CFN_STACKSET provisioned product type. Conditional: You must specify either StackSetMaxConcurrentCount or StackSetMaxConcurrentPercenta"
        },
        "StackSetMaxConcurrencyPercentage": {
          "type": "integer",
          "description": "The maximum percentage of accounts in which to perform this operation at one time. When calculating the number of accounts based on the specified percentage, Service Catalog rounds down to the next whole number. This is true except in cases where rounding down would result is zero. In this case, Service Catalog sets the number as 1 instead. Note that this setting lets you specify the maximum for operations. For large deployments, under certain circumstances the actual number of accounts acted upon concurrently may be lower due to service throttling. Applicable only to a CFN_STACKSET provisione"
        },
        "StackSetOperationType": {
          "type": "string",
          "enum": [
            "CREATE",
            "UPDATE",
            "DELETE"
          ],
          "description": "Determines what action Service Catalog performs to a stack set or a stack instance represented by the provisioned product. The default value is UPDATE if nothing is specified. Applicable only to a CFN_STACKSET provisioned product type. CREATE Creates a new stack instance in the stack set represented by the provisioned product. In this case, only new stack instances are created based on accounts and Regions; if new ProductId or ProvisioningArtifactID are passed, they will be ignored. UPDATE Updates the stack set represented by the provisioned product and also its stack instances. DELETE Deletes"
        }
      }
    }
  }
}