{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-vpc-lattice/json-schema/amazon-vpc-lattice-create-service-network-vpc-association-request-schema.json",
  "title": "CreateServiceNetworkVpcAssociationRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-vpc-lattice-createservicenetworkvpcassociation-api-openapi.yml#/components/schemas/CreateServiceNetworkVpcAssociationRequest",
  "type": "object",
  "properties": {
    "clientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry a request that completed successfully using the same client token and parameters, the retry succeeds without performing any actions. If the parameters aren't identical, the retry fails."
    },
    "serviceNetworkIdentifier": {
      "type": "string",
      "description": "The ID or ARN of the service network. You must use an ARN if the resources are in different accounts."
    },
    "vpcIdentifier": {
      "type": "string",
      "description": "The ID of the VPC."
    },
    "privateDnsEnabled": {
      "type": "boolean",
      "description": "Indicates if private DNS is enabled for the VPC association."
    },
    "securityGroupIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The IDs of the security groups. Security groups aren't added by default. You can add a security group to apply network level controls to control which resources in a VPC are allowed to access the service network and its services. For more information, see Control traffic to resources using security groups in the Amazon VPC User Guide."
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags for the association."
    },
    "dnsOptions": {
      "$ref": "#/$defs/DnsOptions"
    }
  },
  "required": [
    "serviceNetworkIdentifier",
    "vpcIdentifier"
  ],
  "$defs": {
    "DnsOptions": {
      "type": "object",
      "properties": {
        "privateDnsPreference": {
          "type": "string",
          "description": "The preference for which private domains have a private hosted zone created for and associated with the specified VPC. Only supported when private DNS is enabled and when the VPC endpoint type is ServiceNetwork or Resource. ALL_DOMAINS - VPC Lattice provisions private hosted zones for all custom domain names. VERIFIED_DOMAINS_ONLY - VPC Lattice provisions a private hosted zone only if custom domain name has been verified by the provider. VERIFIED_DOMAINS_AND_SPECIFIED_DOMAINS - VPC Lattice provisions private hosted zones for all verified custom domain names and other domain names that the reso"
        },
        "privateDnsSpecifiedDomains": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Indicates which of the private domains to create private hosted zones for and associate with the specified VPC. Only supported when private DNS is enabled and the private DNS preference is VERIFIED_DOMAINS_AND_SPECIFIED_DOMAINS or SPECIFIED_DOMAINS_ONLY."
        }
      }
    }
  }
}