{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloudwatch/json-schema/amazon-cloudwatch-create-application-request-schema.json",
  "title": "CreateApplicationRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-cloudwatch-application-api-openapi.yml#/components/schemas/CreateApplicationRequest",
  "type": "object",
  "properties": {
    "ResourceGroupName": {
      "type": "string",
      "description": "The name of the resource group."
    },
    "OpsCenterEnabled": {
      "type": "boolean",
      "description": "When set to true, creates opsItems for any problems detected on an application."
    },
    "CWEMonitorEnabled": {
      "type": "boolean",
      "description": "Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as instance terminated, failed deployment, and others."
    },
    "OpsItemSNSTopicArn": {
      "type": "string",
      "description": "The SNS topic provided to Application Insights that is associated to the created opsItem. Allows you to receive notifications for updates to the opsItem."
    },
    "SNSNotificationArn": {
      "type": "string",
      "description": "The SNS notification topic ARN."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ApplicationinsightsTag"
      },
      "description": "List of tags to add to the application. tag key (Key) and an associated tag value (Value). The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters."
    },
    "AutoConfigEnabled": {
      "type": "boolean",
      "description": "Indicates whether Application Insights automatically configures unmonitored resources in the resource group."
    },
    "AutoCreate": {
      "type": "boolean",
      "description": "Configures all of the resources in the resource group by applying the recommended configurations."
    },
    "GroupingType": {
      "type": "string",
      "enum": [
        "ACCOUNT_BASED"
      ],
      "description": "Application Insights can create applications based on a resource group or on an account. To create an account-based application using all of the resources in the account, set this parameter to ACCOUNT_BASED."
    },
    "AttachMissingPermission": {
      "type": "boolean",
      "description": "If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing."
    }
  },
  "$defs": {
    "ApplicationinsightsTag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "One part of a key-value pair that defines a tag. The maximum length of a tag key is 128 characters. The minimum length is 1 character."
        },
        "Value": {
          "type": "string",
          "description": "The optional part of a key-value pair that defines a tag. The maximum length of a tag value is 256 characters. The minimum length is 0 characters. If you don't want an application to have a specific tag value, don't specify a value for this parameter."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    }
  }
}