{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-transfer-family/json-schema/amazon-transfer-family-create-web-app-request-schema.json",
  "title": "CreateWebAppRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-transfer-family-createwebapp-api-openapi.yml#/components/schemas/CreateWebAppRequest",
  "type": "object",
  "properties": {
    "IdentityProviderDetails": {
      "$ref": "#/$defs/WebAppIdentityProviderDetails"
    },
    "AccessEndpoint": {
      "type": "string",
      "description": "The AccessEndpoint is the URL that you provide to your users for them to interact with the Transfer Family web app. You can specify a custom URL or use the default value. Before you enter a custom URL for this parameter, follow the steps described in Update your access endpoint with a custom URL."
    },
    "WebAppUnits": {
      "$ref": "#/$defs/WebAppUnits"
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "Key-value pairs that can be used to group and search for web apps."
    },
    "WebAppEndpointPolicy": {
      "type": "string",
      "enum": [
        "FIPS",
        "STANDARD"
      ],
      "description": "Setting for the type of endpoint policy for the web app. The default value is STANDARD. If you are creating the web app in an Amazon Web Services GovCloud (US) Region, you can set this parameter to FIPS."
    },
    "EndpointDetails": {
      "$ref": "#/$defs/WebAppEndpointDetails"
    }
  },
  "required": [
    "IdentityProviderDetails"
  ],
  "$defs": {
    "IdentityCenterConfig": {
      "type": "object",
      "properties": {
        "InstanceArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) for the IAM Identity Center used for the web app."
        },
        "Role": {
          "type": "string",
          "description": "The IAM role in IAM Identity Center used for the web app."
        }
      }
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The name assigned to the tag that you create."
        },
        "Value": {
          "type": "string",
          "description": "Contains one or more values that you assigned to the key name you create."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    },
    "WebAppEndpointDetails": {
      "type": "object",
      "properties": {
        "Vpc": {
          "$ref": "#/$defs/WebAppVpcConfig"
        }
      },
      "description": "Exactly one member is set."
    },
    "WebAppIdentityProviderDetails": {
      "type": "object",
      "properties": {
        "IdentityCenterConfig": {
          "$ref": "#/$defs/IdentityCenterConfig"
        }
      },
      "description": "Exactly one member is set."
    },
    "WebAppUnits": {
      "type": "object",
      "properties": {
        "Provisioned": {
          "type": "integer",
          "description": "An integer that represents the number of units for your desired number of concurrent connections, or the number of user sessions on your web app at the same time. Each increment allows an additional 250 concurrent sessions: a value of 1 sets the number of concurrent sessions to 250; 2 sets a value of 500, and so on."
        }
      },
      "description": "Exactly one member is set."
    },
    "WebAppVpcConfig": {
      "type": "object",
      "properties": {
        "SubnetIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of subnet IDs within the VPC where the web app endpoint will be deployed. These subnets must be in the same VPC specified in the VpcId parameter."
        },
        "VpcId": {
          "type": "string",
          "description": "The identifier of the VPC where the web app endpoint will be hosted."
        },
        "SecurityGroupIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of security group IDs that control access to the web app endpoint. These security groups determine which sources can access the endpoint based on IP addresses and port configurations."
        },
        "IpAddressType": {
          "type": "string",
          "enum": [
            "IPV4",
            "DUALSTACK"
          ],
          "description": "The IP address type for the web app's VPC endpoint. This determines whether the endpoint is accessible over IPv4 only, or over both IPv4 and IPv6."
        }
      }
    }
  }
}