{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-license-manager/json-schema/amazon-license-manager-stop-product-subscription-request-schema.json",
  "title": "StopProductSubscriptionRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-license-manager-user-api-openapi.yml#/components/schemas/StopProductSubscriptionRequest",
  "type": "object",
  "properties": {
    "Username": {
      "type": "string",
      "description": "The user name from the identity provider for the user."
    },
    "IdentityProvider": {
      "$ref": "#/$defs/IdentityProvider"
    },
    "Product": {
      "type": "string",
      "description": "The name of the user-based subscription product. Valid values: VISUAL_STUDIO_ENTERPRISE | VISUAL_STUDIO_PROFESSIONAL | OFFICE_PROFESSIONAL_PLUS | OFFICE_STANDARD | REMOTE_DESKTOP_SERVICES"
    },
    "ProductUserArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the product user."
    },
    "Domain": {
      "type": "string",
      "description": "The domain name of the Active Directory that contains the user for whom to stop the product subscription."
    }
  },
  "$defs": {
    "ActiveDirectoryIdentityProvider": {
      "type": "object",
      "properties": {
        "DirectoryId": {
          "type": "string",
          "description": "The directory ID for an Active Directory identity provider."
        },
        "ActiveDirectorySettings": {
          "$ref": "#/$defs/ActiveDirectorySettings"
        },
        "ActiveDirectoryType": {
          "type": "string",
          "description": "The type of Active Directory – either a self-managed Active Directory or an Amazon Web Services Managed Active Directory."
        },
        "IsSharedActiveDirectory": {
          "type": "boolean",
          "description": "Whether this directory is shared from an Amazon Web Services Managed Active Directory. The default value is false."
        }
      }
    },
    "ActiveDirectorySettings": {
      "type": "object",
      "properties": {
        "DomainName": {
          "type": "string",
          "description": "The domain name for the Active Directory."
        },
        "DomainIpv4List": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of domain IPv4 addresses that are used for the Active Directory."
        },
        "DomainIpv6List": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of domain IPv6 addresses that are used for the Active Directory."
        },
        "DomainCredentialsProvider": {
          "$ref": "#/$defs/CredentialsProvider"
        },
        "DomainNetworkSettings": {
          "$ref": "#/$defs/DomainNetworkSettings"
        }
      }
    },
    "CredentialsProvider": {
      "type": "object",
      "properties": {
        "SecretsManagerCredentialsProvider": {
          "$ref": "#/$defs/SecretsManagerCredentialsProvider"
        }
      },
      "description": "Exactly one member is set."
    },
    "DomainNetworkSettings": {
      "type": "object",
      "properties": {
        "Subnets": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Contains a list of subnets that apply for the Active Directory domain."
        }
      },
      "required": [
        "Subnets"
      ]
    },
    "IdentityProvider": {
      "type": "object",
      "properties": {
        "ActiveDirectoryIdentityProvider": {
          "$ref": "#/$defs/ActiveDirectoryIdentityProvider"
        }
      },
      "description": "Exactly one member is set."
    },
    "SecretsManagerCredentialsProvider": {
      "type": "object",
      "properties": {
        "SecretId": {
          "type": "string",
          "description": "The ID of the Secrets Manager secret that contains credentials."
        }
      }
    }
  }
}