{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-quicksight/json-schema/amazon-quicksight-update-action-connector-request-schema.json",
  "title": "UpdateActionConnectorRequest",
  "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/UpdateActionConnectorRequest",
  "type": "object",
  "properties": {
    "AwsAccountId": {
      "type": "string",
      "description": "The Amazon Web Services account ID that contains the action connector to update."
    },
    "ActionConnectorId": {
      "type": "string",
      "description": "The unique identifier of the action connector to update."
    },
    "Name": {
      "type": "string",
      "description": "The new name for the action connector."
    },
    "AuthenticationConfig": {
      "$ref": "#/$defs/AuthConfig"
    },
    "Description": {
      "type": "string",
      "description": "The updated description of the action connector."
    },
    "VpcConnectionArn": {
      "type": "string",
      "description": "The updated ARN of the VPC connection to use for secure connectivity."
    }
  },
  "required": [
    "AwsAccountId",
    "ActionConnectorId",
    "Name",
    "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"
      ]
    }
  }
}