{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-systems-manager/json-schema/amazon-systems-manager-create-cloud-connector-request-schema.json",
  "title": "CreateCloudConnectorRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-systems-manager-cloud-connector-api-openapi.yml#/components/schemas/CreateCloudConnectorRequest",
  "type": "object",
  "properties": {
    "DisplayName": {
      "type": "string",
      "description": "A friendly name for the cloud connector."
    },
    "RoleArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the IAM role that the cloud connector uses to communicate with the third-party cloud environment."
    },
    "Description": {
      "type": "string",
      "description": "A description for the cloud connector."
    },
    "Configuration": {
      "$ref": "#/$defs/CloudConnectorConfiguration"
    },
    "ConfigConnectorArn": {
      "type": "string",
      "description": "The ARN of the Amazon Web Services Config connector associated with this cloud connector."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment."
    }
  },
  "required": [
    "DisplayName",
    "RoleArn",
    "Configuration",
    "ConfigConnectorArn"
  ],
  "$defs": {
    "AzureConfiguration": {
      "type": "object",
      "properties": {
        "TenantId": {
          "type": "string",
          "description": "The ID of the Azure tenant."
        },
        "TenantDisplayName": {
          "type": "string",
          "description": "The display name of the Azure tenant."
        },
        "ApplicationId": {
          "type": "string",
          "description": "The ID of the Azure application registration used for authentication."
        },
        "ApplicationDisplayName": {
          "type": "string",
          "description": "The display name of the Azure application registration."
        },
        "Targets": {
          "$ref": "#/$defs/ConfigurationTargets"
        }
      },
      "required": [
        "TenantId",
        "ApplicationId"
      ]
    },
    "AzureSubscription": {
      "type": "object",
      "properties": {
        "Id": {
          "type": "string",
          "description": "The ID of the Azure subscription."
        },
        "DisplayName": {
          "type": "string",
          "description": "The display name of the Azure subscription."
        }
      },
      "required": [
        "Id"
      ]
    },
    "CloudConnectorConfiguration": {
      "type": "object",
      "properties": {
        "AzureConfiguration": {
          "$ref": "#/$defs/AzureConfiguration"
        }
      },
      "description": "Exactly one member is set."
    },
    "ConfigurationTargets": {
      "type": "object",
      "properties": {
        "Subscriptions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AzureSubscription"
          },
          "description": "A list of Azure subscriptions to target."
        }
      },
      "description": "Exactly one member is set."
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The name of the tag."
        },
        "Value": {
          "type": "string",
          "description": "The value of the tag."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    }
  }
}