{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-resilience-hub/json-schema/amazon-resilience-hub-create-recommendation-template-request-schema.json",
  "title": "CreateRecommendationTemplateRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-resilience-hub-operations-api-openapi.yml#/components/schemas/CreateRecommendationTemplateRequest",
  "type": "object",
  "properties": {
    "recommendationIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Identifiers for the recommendations used to create a recommendation template."
    },
    "format": {
      "type": "string",
      "enum": [
        "CfnYaml",
        "CfnJson"
      ],
      "description": "The format for the recommendation template. CfnJson The template is CloudFormation JSON. CfnYaml The template is CloudFormation YAML."
    },
    "recommendationTypes": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "Alarm",
          "Sop",
          "Test"
        ]
      },
      "description": "An array of strings that specify the recommendation template type or types. Alarm The template is an AlarmRecommendation template. Sop The template is a SopRecommendation template. Test The template is a TestRecommendation template."
    },
    "assessmentArn": {
      "type": "string",
      "description": "Amazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:partition:resiliencehub:region:account:app-assessment/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide."
    },
    "name": {
      "type": "string",
      "description": "The name for the recommendation template."
    },
    "clientToken": {
      "type": "string",
      "description": "Used for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests."
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key/value pair."
    },
    "bucketName": {
      "type": "string",
      "description": "The name of the Amazon S3 bucket that will contain the recommendation template."
    }
  },
  "required": [
    "assessmentArn",
    "name"
  ]
}