{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-lightsail/json-schema/amazon-lightsail-put-alarm-result-schema.json",
  "title": "PutAlarmResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-lightsail-alarms-api-openapi.yml#/components/schemas/PutAlarmResult",
  "type": "object",
  "properties": {
    "operations": {
      "allOf": [
        {
          "$ref": "#/$defs/OperationList"
        }
      ],
      "description": "An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request."
    }
  },
  "$defs": {
    "IsoDate": {
      "type": "string",
      "format": "date-time"
    },
    "NonEmptyString": {
      "type": "string",
      "pattern": "\\S"
    },
    "Operation": {
      "type": "object",
      "properties": {
        "id": {
          "allOf": [
            {
              "$ref": "#/$defs/NonEmptyString"
            }
          ],
          "description": "The ID of the operation."
        },
        "resourceName": {
          "allOf": [
            {
              "$ref": "#/$defs/ResourceName"
            }
          ],
          "description": "The resource name."
        },
        "resourceType": {
          "allOf": [
            {
              "$ref": "#/$defs/ResourceType"
            }
          ],
          "description": "The resource type."
        },
        "createdAt": {
          "allOf": [
            {
              "$ref": "#/$defs/IsoDate"
            }
          ],
          "description": "The timestamp when the operation was initialized ( 1479816991.349 )."
        },
        "location": {
          "allOf": [
            {
              "$ref": "#/$defs/ResourceLocation"
            }
          ],
          "description": "The Amazon Web Services Region and Availability Zone."
        },
        "isTerminal": {
          "allOf": [
            {
              "$ref": "#/$defs/boolean"
            }
          ],
          "description": "A Boolean value indicating whether the operation is terminal."
        },
        "operationDetails": {
          "allOf": [
            {
              "$ref": "#/$defs/string"
            }
          ],
          "description": "Details about the operation ( Debian-1GB-Ohio-1 )."
        },
        "operationType": {
          "allOf": [
            {
              "$ref": "#/$defs/OperationType"
            }
          ],
          "description": "The type of operation."
        },
        "status": {
          "allOf": [
            {
              "$ref": "#/$defs/OperationStatus"
            }
          ],
          "description": "The status of the operation."
        },
        "statusChangedAt": {
          "allOf": [
            {
              "$ref": "#/$defs/IsoDate"
            }
          ],
          "description": "The timestamp when the status was changed ( 1479816991.349 )."
        },
        "errorCode": {
          "allOf": [
            {
              "$ref": "#/$defs/string"
            }
          ],
          "description": "The error code."
        },
        "errorDetails": {
          "allOf": [
            {
              "$ref": "#/$defs/string"
            }
          ],
          "description": "The error details."
        }
      },
      "description": "Describes the API operation."
    },
    "OperationList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Operation"
      }
    },
    "OperationStatus": {
      "type": "string",
      "enum": [
        "NotStarted",
        "Started",
        "Failed",
        "Completed",
        "Succeeded"
      ]
    },
    "OperationType": {
      "type": "string",
      "enum": [
        "DeleteKnownHostKeys",
        "DeleteInstance",
        "CreateInstance",
        "StopInstance",
        "StartInstance",
        "RebootInstance",
        "OpenInstancePublicPorts",
        "PutInstancePublicPorts",
        "CloseInstancePublicPorts",
        "AllocateStaticIp",
        "ReleaseStaticIp",
        "AttachStaticIp",
        "DetachStaticIp",
        "UpdateDomainEntry",
        "DeleteDomainEntry",
        "CreateDomain",
        "DeleteDomain",
        "CreateInstanceSnapshot",
        "DeleteInstanceSnapshot",
        "CreateInstancesFromSnapshot",
        "CreateLoadBalancer",
        "DeleteLoadBalancer",
        "AttachInstancesToLoadBalancer",
        "DetachInstancesFromLoadBalancer",
        "UpdateLoadBalancerAttribute",
        "CreateLoadBalancerTlsCertificate",
        "DeleteLoadBalancerTlsCertificate",
        "AttachLoadBalancerTlsCertificate",
        "CreateDisk",
        "DeleteDisk",
        "AttachDisk",
        "DetachDisk",
        "CreateDiskSnapshot",
        "DeleteDiskSnapshot",
        "CreateDiskFromSnapshot",
        "CreateRelationalDatabase",
        "UpdateRelationalDatabase",
        "DeleteRelationalDatabase",
        "CreateRelationalDatabaseFromSnapshot",
        "CreateRelationalDatabaseSnapshot",
        "DeleteRelationalDatabaseSnapshot",
        "UpdateRelationalDatabaseParameters",
        "StartRelationalDatabase",
        "RebootRelationalDatabase",
        "StopRelationalDatabase",
        "EnableAddOn",
        "DisableAddOn",
        "PutAlarm",
        "GetAlarms",
        "DeleteAlarm",
        "TestAlarm",
        "CreateContactMethod",
        "GetContactMethods",
        "SendContactMethodVerification",
        "DeleteContactMethod",
        "CreateDistribution",
        "UpdateDistribution",
        "DeleteDistribution",
        "ResetDistributionCache",
        "AttachCertificateToDistribution",
        "DetachCertificateFromDistribution",
        "UpdateDistributionBundle",
        "SetIpAddressType",
        "CreateCertificate",
        "DeleteCertificate",
        "CreateContainerService",
        "UpdateContainerService",
        "DeleteContainerService",
        "CreateContainerServiceDeployment",
        "CreateContainerServiceRegistryLogin",
        "RegisterContainerImage",
        "DeleteContainerImage",
        "CreateBucket",
        "DeleteBucket",
        "CreateBucketAccessKey",
        "DeleteBucketAccessKey",
        "UpdateBucketBundle",
        "UpdateBucket",
        "SetResourceAccessForBucket",
        "UpdateInstanceMetadataOptions",
        "StartGUISession",
        "StopGUISession",
        "SetupInstanceHttps",
        "GetProfile"
      ]
    },
    "RegionName": {
      "type": "string",
      "enum": [
        "us-east-1",
        "us-east-2",
        "us-west-1",
        "us-west-2",
        "eu-west-1",
        "eu-west-2",
        "eu-west-3",
        "eu-central-1",
        "eu-north-1",
        "eu-south-2",
        "ca-central-1",
        "ap-east-1",
        "ap-south-1",
        "ap-southeast-1",
        "ap-southeast-2",
        "ap-northeast-1",
        "ap-northeast-2",
        "ap-southeast-3",
        "ap-southeast-5",
        "sa-east-1"
      ]
    },
    "ResourceLocation": {
      "type": "object",
      "properties": {
        "availabilityZone": {
          "allOf": [
            {
              "$ref": "#/$defs/string"
            }
          ],
          "description": "The Availability Zone. Follows the format us-east-2a (case-sensitive)."
        },
        "regionName": {
          "allOf": [
            {
              "$ref": "#/$defs/RegionName"
            }
          ],
          "description": "The Amazon Web Services Region name."
        }
      },
      "description": "Describes the resource location."
    },
    "ResourceName": {
      "type": "string",
      "pattern": "^\\w[\\w\\-]*\\w$"
    },
    "ResourceType": {
      "type": "string",
      "enum": [
        "ContainerService",
        "Instance",
        "StaticIp",
        "KeyPair",
        "InstanceSnapshot",
        "Domain",
        "PeeredVpc",
        "LoadBalancer",
        "LoadBalancerTlsCertificate",
        "Disk",
        "DiskSnapshot",
        "RelationalDatabase",
        "RelationalDatabaseSnapshot",
        "ExportSnapshotRecord",
        "CloudFormationStackRecord",
        "Alarm",
        "ContactMethod",
        "Distribution",
        "Certificate",
        "Bucket"
      ]
    },
    "boolean": {
      "type": "boolean"
    },
    "string": {
      "type": "string"
    }
  }
}