{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-elasticache/json-schema/amazon-elasticache-create-serverless-cache-response-schema.json",
  "title": "CreateServerlessCacheResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-elasticache-serverless-cache-api-openapi.yml#/components/schemas/CreateServerlessCacheResponse",
  "type": "object",
  "properties": {
    "ServerlessCache": {
      "$ref": "#/$defs/ServerlessCache"
    }
  },
  "$defs": {
    "CacheUsageLimits": {
      "type": "object",
      "properties": {
        "DataStorage": {
          "$ref": "#/$defs/DataStorage"
        },
        "ECPUPerSecond": {
          "$ref": "#/$defs/ECPUPerSecond"
        }
      }
    },
    "DataStorage": {
      "type": "object",
      "properties": {
        "Maximum": {
          "type": "integer",
          "description": "The upper limit for data storage the cache is set to use."
        },
        "Minimum": {
          "type": "integer",
          "description": "The lower limit for data storage the cache is set to use."
        },
        "Unit": {
          "type": "string",
          "enum": [
            "GB"
          ],
          "description": "The unit that the storage is measured in, in GB."
        }
      },
      "required": [
        "Unit"
      ]
    },
    "ECPUPerSecond": {
      "type": "object",
      "properties": {
        "Maximum": {
          "type": "integer",
          "description": "The configuration for the maximum number of ECPUs the cache can consume per second."
        },
        "Minimum": {
          "type": "integer",
          "description": "The configuration for the minimum number of ECPUs the cache should be able consume per second."
        }
      }
    },
    "Endpoint": {
      "type": "object",
      "properties": {
        "Address": {
          "type": "string",
          "description": "The DNS hostname of the cache node."
        },
        "Port": {
          "type": "integer",
          "description": "The port number that the cache engine is listening on."
        }
      }
    },
    "MigrationSummary": {
      "type": "object",
      "properties": {
        "Status": {
          "type": "string",
          "description": "The current status of the migration."
        },
        "MigrationEndpoint": {
          "$ref": "#/$defs/Endpoint"
        },
        "CutoverMode": {
          "type": "string",
          "description": "The cutover configuration for the migration."
        }
      }
    },
    "ServerlessCache": {
      "type": "object",
      "properties": {
        "ServerlessCacheName": {
          "type": "string",
          "description": "The unique identifier of the serverless cache."
        },
        "Description": {
          "type": "string",
          "description": "A description of the serverless cache."
        },
        "CreateTime": {
          "type": "string",
          "format": "date-time",
          "description": "When the serverless cache was created."
        },
        "Status": {
          "type": "string",
          "description": "The current status of the serverless cache. The allowed values are CREATING, AVAILABLE, DELETING, CREATE-FAILED and MODIFYING."
        },
        "Engine": {
          "type": "string",
          "description": "The engine the serverless cache is compatible with."
        },
        "MajorEngineVersion": {
          "type": "string",
          "description": "The version number of the engine the serverless cache is compatible with."
        },
        "FullEngineVersion": {
          "type": "string",
          "description": "The name and version number of the engine the serverless cache is compatible with."
        },
        "CacheUsageLimits": {
          "$ref": "#/$defs/CacheUsageLimits"
        },
        "KmsKeyId": {
          "type": "string",
          "description": "The ID of the Amazon Web Services Key Management Service (KMS) key that is used to encrypt data at rest in the serverless cache."
        },
        "StorageEncryptionType": {
          "type": "string",
          "enum": [
            "none",
            "sse-elasticache",
            "sse-kms"
          ],
          "description": "Indicates the type of encryption for data stored at rest in the serverless cache. Serverless caches are always encrypted at rest. The value is sse-elasticache if an ElastiCache service-managed key is used, or sse-kms if a customer-managed KMS key is used."
        },
        "SecurityGroupIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The IDs of the EC2 security groups associated with the serverless cache."
        },
        "Endpoint": {
          "$ref": "#/$defs/Endpoint"
        },
        "ReaderEndpoint": {
          "$ref": "#/$defs/Endpoint"
        },
        "ARN": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the serverless cache."
        },
        "UserGroupId": {
          "type": "string",
          "description": "The identifier of the user group associated with the serverless cache. Available for Valkey and Redis OSS only. Default is NULL."
        },
        "SubnetIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "If no subnet IDs are given and your VPC is in us-west-1, then ElastiCache will select 2 default subnets across AZs in your VPC. For all other Regions, if no subnet IDs are given then ElastiCache will select 3 default subnets across AZs in your default VPC."
        },
        "SnapshotRetentionLimit": {
          "type": "integer",
          "description": "The number of days for which ElastiCache retains automatic snapshots before deleting them. Available for Valkey, Redis OSS and Serverless Memcached only. The maximum value allowed is 35 days."
        },
        "DailySnapshotTime": {
          "type": "string",
          "description": "The daily time that a cache snapshot will be created. Default is NULL, i.e. snapshots will not be created at a specific time on a daily basis. Available for Valkey, Redis OSS and Serverless Memcached only."
        },
        "NetworkType": {
          "type": "string",
          "enum": [
            "ipv4",
            "ipv6",
            "dual_stack"
          ],
          "description": "The type of IP address protocol used by the serverless cache. Must be either ipv4 | ipv6 | dual_stack. ipv6 is only supported with IPv6-only subnets. If not specified, defaults to ipv4, unless all provided subnets are IPv6-only, in which case it defaults to ipv6."
        },
        "ConnectionType": {
          "type": "string",
          "enum": [
            "vpc",
            "public"
          ],
          "description": "The connection type for the serverless cache. Must be either vpc | public. If not specified, defaults to vpc."
        },
        "Migration": {
          "$ref": "#/$defs/MigrationSummary"
        }
      }
    }
  }
}