{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--datadog-integrations-aws.json",
  "title": "DatadogIntegrationsAWSProperties",
  "description": "Datadog AWS Integration 2.4.0. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/datadog-integrations-aws.json",
    "sourceSha256": "cc4f134671f46164dfcba93b6da7571256feb434e311b6a0394ac7f65d260339"
  },
  "type": "object",
  "properties": {
    "AccountID": {
      "oneOf": [
        {
          "type": "string",
          "dependentRequired": {
            "AccountID": [
              "RoleName"
            ]
          }
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Your AWS Account ID without dashes."
    },
    "RoleName": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Your Datadog role delegation name."
    },
    "AccessKeyID": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "If your AWS account is a GovCloud or China account, enter the corresponding Access Key ID."
    },
    "FilterTags": {
      "description": "The array of EC2 tags (in the form key:value) defines a filter that Datadog uses when collecting metrics from EC2.",
      "type": "array",
      "insertionOrder": false,
      "items": {
        "type": "string"
      }
    },
    "HostTags": {
      "description": "Array of tags (in the form key:value) to add to all hosts and metrics reporting through this integration.",
      "type": "array",
      "insertionOrder": false,
      "items": {
        "type": "string"
      }
    },
    "AccountSpecificNamespaceRules": {
      "description": "An object (in the form {\"namespace1\":true/false, \"namespace2\":true/false}) that enables or disables metric collection for specific AWS namespaces for this AWS account only.",
      "type": "object",
      "additionalProperties": false,
      "patternProperties": {
        ".*": {
          "type": "boolean"
        }
      }
    },
    "ExternalIDSecretName": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name of the AWS SecretsManager secret created in your account to hold this integration's `external_id`. Defaults to `DatadogIntegrationExternalID`. Cannot be referenced from created resource."
    },
    "MetricsCollection": {
      "description": "Enable the infrastructure monitoring Datadog product for this AWS Account. This will enable collecting all AWS metrics in your account.",
      "type": "boolean",
      "default": true
    },
    "CSPMResourceCollection": {
      "description": "Enable the compliance and security posture management Datadog product. This will enable collecting information on your AWS resources and providing security validation.",
      "type": "boolean",
      "default": false
    },
    "ResourceCollection": {
      "description": "Enable collecting information on your AWS resources for use in Datadog products such as Network Process Monitoring.",
      "type": "boolean",
      "default": false
    },
    "ExcludedRegions": {
      "description": "Array of AWS regions to exclude from metrics collection.",
      "type": "array",
      "uniqueItems": true,
      "items": {
        "type": "string"
      }
    }
  },
  "typeName": "Datadog::Integrations::AWS",
  "$defs": {
    "DatadogCredentials": {
      "description": "Credentials for the Datadog API",
      "properties": {
        "ApiKey": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Datadog API key"
        },
        "ApplicationKey": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Datadog application key"
        },
        "ApiURL": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Datadog API URL (defaults to <https://api.datadoghq.com)>"
        }
      },
      "required": [
        "ApiKey",
        "ApplicationKey"
      ],
      "type": "object",
      "title": "DatadogIntegrationsAWSDatadogCredentialsDefinition",
      "additionalProperties": false
    }
  },
  "typeConfiguration": {
    "properties": {
      "DatadogCredentials": {
        "$ref": "#/definitions/DatadogCredentials"
      }
    },
    "additionalProperties": false
  },
  "additionalProperties": false,
  "readOnlyProperties": [
    "/properties/IntegrationID"
  ],
  "required": [],
  "primaryIdentifier": [
    "/properties/IntegrationID"
  ],
  "createOnlyProperties": [
    "/properties/AccountID",
    "/properties/RoleName",
    "/properties/AccessKeyID"
  ]
}
