{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-application-migration-service/json-schema/amazon-application-migration-service-network-migration-definition-schema.json",
  "title": "NetworkMigrationDefinition",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-application-migration-service-network-migration-api-openapi.yml#/components/schemas/NetworkMigrationDefinition",
  "type": "object",
  "properties": {
    "arn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the network migration definition."
    },
    "networkMigrationDefinitionID": {
      "type": "string",
      "description": "The unique identifier of the network migration definition."
    },
    "name": {
      "type": "string",
      "description": "The name of the network migration definition."
    },
    "description": {
      "type": "string",
      "description": "A description of the network migration definition."
    },
    "sourceConfigurations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SourceConfiguration"
      },
      "description": "A list of source configurations for the network migration."
    },
    "targetS3Configuration": {
      "$ref": "#/$defs/TargetS3Configuration"
    },
    "targetNetwork": {
      "$ref": "#/$defs/TargetNetwork"
    },
    "targetDeployment": {
      "type": "string",
      "description": "The target deployment configuration for the migrated network."
    },
    "vpcProvisioningStrategy": {
      "type": "string",
      "description": "Indicates whether the migration creates new target VPCs or uses existing ones. CREATE_NEW provisions new target VPCs; USE_EXISTING migrates into existing VPCs in the target account."
    },
    "cidrMappings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CidrMapping"
      },
      "description": "A list of CIDR mappings that map original source CIDR ranges to updated target CIDR ranges. CIDR mappings apply only when vpcProvisioningStrategy is set to USE_EXISTING."
    },
    "createdAt": {
      "type": "string",
      "description": "The timestamp when the network migration definition was created."
    },
    "updatedAt": {
      "type": "string",
      "description": "The timestamp when the network migration definition was last updated."
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Tags assigned to the network migration definition."
    },
    "scopeTags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Scope tags for the network migration definition."
    }
  },
  "$defs": {
    "CidrMapping": {
      "type": "object",
      "properties": {
        "originalCidr": {
          "type": "string",
          "description": "The original CIDR range in the source network."
        },
        "updatedCidr": {
          "type": "string",
          "description": "The updated CIDR range to use in the target network."
        }
      },
      "required": [
        "originalCidr",
        "updatedCidr"
      ]
    },
    "SourceConfiguration": {
      "type": "object",
      "properties": {
        "sourceEnvironment": {
          "type": "string",
          "description": "The source environment type."
        },
        "sourceS3Configuration": {
          "$ref": "#/$defs/SourceS3Configuration"
        }
      },
      "required": [
        "sourceEnvironment",
        "sourceS3Configuration"
      ]
    },
    "SourceS3Configuration": {
      "type": "object",
      "properties": {
        "s3Bucket": {
          "type": "string",
          "description": "The name of the S3 bucket containing source data."
        },
        "s3BucketOwner": {
          "type": "string",
          "description": "The AWS account ID of the S3 bucket owner."
        },
        "s3Key": {
          "type": "string",
          "description": "The S3 key (path) for the source data."
        }
      },
      "required": [
        "s3Bucket",
        "s3BucketOwner",
        "s3Key"
      ]
    },
    "TargetNetwork": {
      "type": "object",
      "properties": {
        "topology": {
          "type": "string",
          "description": "The network topology type for the target environment."
        },
        "inboundCidr": {
          "type": "string",
          "description": "The CIDR block for inbound traffic in the target network."
        },
        "outboundCidr": {
          "type": "string",
          "description": "The CIDR block for outbound traffic in the target network."
        },
        "inspectionCidr": {
          "type": "string",
          "description": "The CIDR block for inspection traffic in the target network."
        }
      },
      "required": [
        "topology"
      ]
    },
    "TargetS3Configuration": {
      "type": "object",
      "properties": {
        "s3Bucket": {
          "type": "string",
          "description": "The name of the S3 bucket for target artifacts."
        },
        "s3BucketOwner": {
          "type": "string",
          "description": "The AWS account ID of the S3 bucket owner."
        }
      },
      "required": [
        "s3Bucket",
        "s3BucketOwner"
      ]
    }
  }
}