{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-quicksight/json-schema/amazon-quicksight-create-action-connector-request-schema.json",
  "title": "CreateActionConnectorRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-quicksight-action-connectors-api-openapi.yml#/components/schemas/CreateActionConnectorRequest",
  "type": "object",
  "properties": {
    "AwsAccountId": {
      "type": "string",
      "description": "The Amazon Web Services account ID associated with the action connector."
    },
    "ActionConnectorId": {
      "type": "string",
      "description": "A unique identifier for the action connector. This ID must be unique within the Amazon Web Services account. The ActionConnectorId must not start with the prefix quicksuite-"
    },
    "Name": {
      "type": "string",
      "description": "A descriptive name for the action connector."
    },
    "Type": {
      "type": "string",
      "enum": [
        "GENERIC_HTTP",
        "SERVICENOW_NOW_PLATFORM",
        "SALESFORCE_CRM",
        "MICROSOFT_OUTLOOK",
        "PAGERDUTY_ADVANCE",
        "JIRA_CLOUD",
        "ATLASSIAN_CONFLUENCE",
        "AMAZON_S3",
        "AMAZON_BEDROCK_AGENT_RUNTIME",
        "AMAZON_BEDROCK_RUNTIME",
        "AMAZON_BEDROCK_DATA_AUTOMATION_RUNTIME",
        "AMAZON_TEXTRACT",
        "AMAZON_COMPREHEND",
        "AMAZON_COMPREHEND_MEDICAL",
        "MICROSOFT_ONEDRIVE",
        "MICROSOFT_SHAREPOINT",
        "MICROSOFT_TEAMS",
        "SAP_BUSINESSPARTNER",
        "SAP_PRODUCTMASTERDATA",
        "SAP_PHYSICALINVENTORY",
        "SAP_BILLOFMATERIALS",
        "SAP_MATERIALSTOCK",
        "ZENDESK_SUITE",
        "SMARTSHEET",
        "SLACK",
        "ASANA",
        "BAMBOO_HR"
      ],
      "description": "The type of action connector."
    },
    "AuthenticationConfig": {
      "$ref": "#/$defs/AuthConfig"
    },
    "Description": {
      "type": "string",
      "description": "An optional description of the action connector."
    },
    "Permissions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ResourcePermission"
      },
      "description": "The permissions configuration that defines which users, groups, or namespaces can access this action connector and what operations they can perform."
    },
    "VpcConnectionArn": {
      "type": "string",
      "description": "The ARN of the VPC connection to use for secure connectivity to the external service."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "A list of tags to apply to the action connector for resource management and organization."
    }
  },
  "required": [
    "AwsAccountId",
    "ActionConnectorId",
    "Name",
    "Type",
    "AuthenticationConfig"
  ],
  "$defs": {
    "APIKeyConnectionMetadata": {
      "type": "object",
      "properties": {
        "BaseEndpoint": {
          "type": "string",
          "description": "The base URL endpoint for the external service."
        },
        "ApiKey": {
          "type": "string",
          "description": "The API key used for authentication."
        },
        "Email": {
          "type": "string",
          "description": "The email address associated with the API key, if required."
        }
      },
      "required": [
        "BaseEndpoint",
        "ApiKey"
      ]
    },
    "AuthConfig": {
      "type": "object",
      "properties": {
        "AuthenticationType": {
          "type": "string",
          "enum": [
            "BASIC",
            "API_KEY",
            "OAUTH2_CLIENT_CREDENTIALS",
            "NONE",
            "IAM",
            "OAUTH2_AUTHORIZATION_CODE"
          ],
          "description": "The type of authentication method."
        },
        "AuthenticationMetadata": {
          "$ref": "#/$defs/AuthenticationMetadata"
        }
      },
      "required": [
        "AuthenticationType",
        "AuthenticationMetadata"
      ]
    },
    "AuthenticationMetadata": {
      "type": "object",
      "properties": {
        "AuthorizationCodeGrantMetadata": {
          "$ref": "#/$defs/AuthorizationCodeGrantMetadata"
        },
        "ClientCredentialsGrantMetadata": {
          "$ref": "#/$defs/ClientCredentialsGrantMetadata"
        },
        "BasicAuthConnectionMetadata": {
          "$ref": "#/$defs/BasicAuthConnectionMetadata"
        },
        "ApiKeyConnectionMetadata": {
          "$ref": "#/$defs/APIKeyConnectionMetadata"
        },
        "NoneConnectionMetadata": {
          "$ref": "#/$defs/NoneConnectionMetadata"
        },
        "IamConnectionMetadata": {
          "$ref": "#/$defs/IAMConnectionMetadata"
        }
      },
      "description": "Exactly one member is set."
    },
    "AuthorizationCodeGrantCredentialsDetails": {
      "type": "object",
      "properties": {
        "AuthorizationCodeGrantDetails": {
          "$ref": "#/$defs/AuthorizationCodeGrantDetails"
        }
      },
      "description": "Exactly one member is set."
    },
    "AuthorizationCodeGrantDetails": {
      "type": "object",
      "properties": {
        "ClientId": {
          "type": "string",
          "description": "The client ID for the OAuth application."
        },
        "ClientSecret": {
          "type": "string",
          "description": "The client secret for the OAuth application."
        },
        "TokenEndpoint": {
          "type": "string",
          "description": "The token endpoint URL for obtaining access tokens."
        },
        "AuthorizationEndpoint": {
          "type": "string",
          "description": "The authorization endpoint URL for the OAuth flow."
        }
      },
      "required": [
        "ClientId",
        "ClientSecret",
        "TokenEndpoint",
        "AuthorizationEndpoint"
      ]
    },
    "AuthorizationCodeGrantMetadata": {
      "type": "object",
      "properties": {
        "BaseEndpoint": {
          "type": "string",
          "description": "The base URL endpoint for the external service."
        },
        "RedirectUrl": {
          "type": "string",
          "description": "The redirect URL for the OAuth authorization flow."
        },
        "AuthorizationCodeGrantCredentialsSource": {
          "type": "string",
          "enum": [
            "PLAIN_CREDENTIALS"
          ],
          "description": "The source of the authorization code grant credentials."
        },
        "AuthorizationCodeGrantCredentialsDetails": {
          "$ref": "#/$defs/AuthorizationCodeGrantCredentialsDetails"
        }
      },
      "required": [
        "BaseEndpoint",
        "RedirectUrl"
      ]
    },
    "BasicAuthConnectionMetadata": {
      "type": "object",
      "properties": {
        "BaseEndpoint": {
          "type": "string",
          "description": "The base URL endpoint for the external service."
        },
        "Username": {
          "type": "string",
          "description": "The username for basic authentication."
        },
        "Password": {
          "type": "string",
          "description": "The password for basic authentication."
        }
      },
      "required": [
        "BaseEndpoint",
        "Username",
        "Password"
      ]
    },
    "ClientCredentialsDetails": {
      "type": "object",
      "properties": {
        "ClientCredentialsGrantDetails": {
          "$ref": "#/$defs/ClientCredentialsGrantDetails"
        }
      },
      "description": "Exactly one member is set."
    },
    "ClientCredentialsGrantDetails": {
      "type": "object",
      "properties": {
        "ClientId": {
          "type": "string",
          "description": "The client identifier issued to the client during the registration process with the authorization server."
        },
        "ClientSecret": {
          "type": "string",
          "description": "The client secret issued to the client during the registration process with the authorization server."
        },
        "TokenEndpoint": {
          "type": "string",
          "description": "The authorization server endpoint used to obtain access tokens via the client credentials grant flow."
        }
      },
      "required": [
        "ClientId",
        "ClientSecret",
        "TokenEndpoint"
      ]
    },
    "ClientCredentialsGrantMetadata": {
      "type": "object",
      "properties": {
        "BaseEndpoint": {
          "type": "string",
          "description": "The base endpoint URL for the external service."
        },
        "ClientCredentialsSource": {
          "type": "string",
          "enum": [
            "PLAIN_CREDENTIALS"
          ],
          "description": "The source of the client credentials configuration."
        },
        "ClientCredentialsDetails": {
          "$ref": "#/$defs/ClientCredentialsDetails"
        }
      },
      "required": [
        "BaseEndpoint"
      ]
    },
    "IAMConnectionMetadata": {
      "type": "object",
      "properties": {
        "RoleArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the IAM role to assume for authentication with Amazon Web Services services. This IAM role should be in the same account as Quick Sight."
        }
      },
      "required": [
        "RoleArn"
      ]
    },
    "NoneConnectionMetadata": {
      "type": "object",
      "properties": {
        "BaseEndpoint": {
          "type": "string",
          "description": "The base endpoint URL for connections that do not require authentication."
        }
      },
      "required": [
        "BaseEndpoint"
      ]
    },
    "ResourcePermission": {
      "type": "object",
      "properties": {
        "Principal": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the principal. This can be one of the following: The ARN of an Quick Sight user or group associated with a data source or dataset. (This is common.) The ARN of an Quick Sight user, group, or namespace associated with an analysis, dashboard, template, or theme. Namespace sharing is not supported for action connectors. (This is common.) The ARN of an Amazon Web Services account root: This is an IAM ARN rather than a Quick Sight ARN. Use this option only to share resources (templates) across Amazon Web Services accounts. Account root sharing is not supported for "
        },
        "Actions": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The IAM action to grant or revoke permissions on."
        }
      },
      "required": [
        "Principal",
        "Actions"
      ]
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "Tag key."
        },
        "Value": {
          "type": "string",
          "description": "Tag value."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    }
  }
}