{
  "description": "DBSnapshot is the Schema for the DBSnapshots API",
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
      "type": "string"
    },
    "kind": {
      "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "description": "DBSnapshotSpec defines the desired state of DBSnapshot.\n\nContains the details of an Amazon RDS DB snapshot.\n\nThis data type is used as a response element in the DescribeDBSnapshots action.",
      "properties": {
        "dbInstanceIdentifier": {
          "description": "The identifier of the DB instance that you want to create the snapshot of.\n\nConstraints:\n\n  - Must match the identifier of an existing DBInstance.",
          "type": "string"
        },
        "dbInstanceIdentifierRef": {
          "description": "AWSResourceReferenceWrapper provides a wrapper around *AWSResourceReference\ntype to provide more user friendly syntax for references using 'from' field\nEx:\nAPIIDRef:\n\n\tfrom:\n\t  name: my-api",
          "properties": {
            "from": {
              "description": "AWSResourceReference provides all the values necessary to reference another\nk8s resource for finding the identifier(Id/ARN/Name)",
              "properties": {
                "name": {
                  "type": "string"
                },
                "namespace": {
                  "type": "string"
                }
              },
              "type": "object",
              "additionalProperties": false
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "dbSnapshotIdentifier": {
          "description": "The identifier for the DB snapshot.\n\nConstraints:\n\n  - Can't be null, empty, or blank\n\n  - Must contain from 1 to 255 letters, numbers, or hyphens\n\n  - First character must be a letter\n\n  - Can't end with a hyphen or contain two consecutive hyphens\n\nExample: my-snapshot-id",
          "type": "string"
        },
        "tags": {
          "items": {
            "description": "Metadata assigned to an Amazon RDS resource consisting of a key-value pair.\n\nFor more information, see Tagging Amazon RDS resources (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html)\nin the Amazon RDS User Guide or Tagging Amazon Aurora and Amazon RDS resources\n(https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html)\nin the Amazon Aurora User Guide.",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {
                "type": "string"
              }
            },
            "type": "object",
            "additionalProperties": false
          },
          "type": "array"
        }
      },
      "required": [
        "dbSnapshotIdentifier"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "status": {
      "description": "DBSnapshotStatus defines the observed state of DBSnapshot",
      "properties": {
        "ackResourceMetadata": {
          "description": "All CRs managed by ACK have a common `Status.ACKResourceMetadata` member\nthat is used to contain resource sync state, account ownership,\nconstructed ARN for the resource",
          "properties": {
            "arn": {
              "description": "ARN is the Amazon Resource Name for the resource. This is a\nglobally-unique identifier and is set only by the ACK service controller\nonce the controller has orchestrated the creation of the resource OR\nwhen it has verified that an \"adopted\" resource (a resource where the\nARN annotation was set by the Kubernetes user on the CR) exists and\nmatches the supplied CR's Spec field values.\nhttps://github.com/aws/aws-controllers-k8s/issues/270",
              "type": "string"
            },
            "ownerAccountID": {
              "description": "OwnerAccountID is the AWS Account ID of the account that owns the\nbackend AWS service API resource.",
              "type": "string"
            },
            "region": {
              "description": "Region is the AWS region in which the resource exists or will exist.",
              "type": "string"
            }
          },
          "required": [
            "ownerAccountID",
            "region"
          ],
          "type": "object",
          "additionalProperties": false
        },
        "allocatedStorage": {
          "description": "Specifies the allocated storage size in gibibytes (GiB).",
          "format": "int64",
          "type": "integer"
        },
        "availabilityZone": {
          "description": "Specifies the name of the Availability Zone the DB instance was located in\nat the time of the DB snapshot.",
          "type": "string"
        },
        "conditions": {
          "description": "All CRs managed by ACK have a common `Status.Conditions` member that\ncontains a collection of `ackv1alpha1.Condition` objects that describe\nthe various terminal states of the CR and its backend AWS service API\nresource",
          "items": {
            "description": "Condition is the common struct used by all CRDs managed by ACK service\ncontrollers to indicate terminal states  of the CR and its backend AWS\nservice API resource",
            "properties": {
              "lastTransitionTime": {
                "description": "Last time the condition transitioned from one status to another.",
                "format": "date-time",
                "type": "string"
              },
              "message": {
                "description": "A human readable message indicating details about the transition.",
                "type": "string"
              },
              "reason": {
                "description": "The reason for the condition's last transition.",
                "type": "string"
              },
              "status": {
                "description": "Status of the condition, one of True, False, Unknown.",
                "type": "string"
              },
              "type": {
                "description": "Type is the type of the Condition",
                "type": "string"
              }
            },
            "required": [
              "status",
              "type"
            ],
            "type": "object",
            "additionalProperties": false
          },
          "type": "array"
        },
        "dbiResourceID": {
          "description": "The identifier for the source DB instance, which can't be changed and which\nis unique to an Amazon Web Services Region.",
          "type": "string"
        },
        "encrypted": {
          "description": "Indicates whether the DB snapshot is encrypted.",
          "type": "boolean"
        },
        "engine": {
          "description": "Specifies the name of the database engine.",
          "type": "string"
        },
        "iamDatabaseAuthenticationEnabled": {
          "description": "Indicates whether mapping of Amazon Web Services Identity and Access Management\n(IAM) accounts to database accounts is enabled.",
          "type": "boolean"
        },
        "instanceCreateTime": {
          "description": "Specifies the time in Coordinated Universal Time (UTC) when the DB instance,\nfrom which the snapshot was taken, was created.",
          "format": "date-time",
          "type": "string"
        },
        "iops": {
          "description": "Specifies the Provisioned IOPS (I/O operations per second) value of the DB\ninstance at the time of the snapshot.",
          "format": "int64",
          "type": "integer"
        },
        "kmsKeyID": {
          "description": "If Encrypted is true, the Amazon Web Services KMS key identifier for the\nencrypted DB snapshot.\n\nThe Amazon Web Services KMS key identifier is the key ARN, key ID, alias\nARN, or alias name for the KMS key.",
          "type": "string"
        },
        "licenseModel": {
          "description": "License model information for the restored DB instance.",
          "type": "string"
        },
        "masterUsername": {
          "description": "Provides the master username for the DB snapshot.",
          "type": "string"
        },
        "originalSnapshotCreateTime": {
          "description": "Specifies the time of the CreateDBSnapshot operation in Coordinated Universal\nTime (UTC). Doesn't change when the snapshot is copied.",
          "format": "date-time",
          "type": "string"
        },
        "percentProgress": {
          "description": "The percentage of the estimated data that has been transferred.",
          "format": "int64",
          "type": "integer"
        },
        "port": {
          "description": "Specifies the port that the database engine was listening on at the time\nof the snapshot.",
          "format": "int64",
          "type": "integer"
        },
        "processorFeatures": {
          "description": "The number of CPU cores and the number of threads per core for the DB instance\nclass of the DB instance when the DB snapshot was created.",
          "items": {
            "description": "Contains the processor features of a DB instance class.\n\nTo specify the number of CPU cores, use the coreCount feature name for the\nName parameter. To specify the number of threads per core, use the threadsPerCore\nfeature name for the Name parameter.\n\nYou can set the processor features of the DB instance class for a DB instance\nwhen you call one of the following actions:\n\n  - CreateDBInstance\n\n  - ModifyDBInstance\n\n  - RestoreDBInstanceFromDBSnapshot\n\n  - RestoreDBInstanceFromS3\n\n  - RestoreDBInstanceToPointInTime\n\nYou can view the valid processor values for a particular instance class by\ncalling the DescribeOrderableDBInstanceOptions action and specifying the\ninstance class for the DBInstanceClass parameter.\n\nIn addition, you can use the following actions for DB instance class processor\ninformation:\n\n  - DescribeDBInstances\n\n  - DescribeDBSnapshots\n\n  - DescribeValidDBInstanceModifications\n\nIf you call DescribeDBInstances, ProcessorFeature returns non-null values\nonly if the following conditions are met:\n\n  - You are accessing an Oracle DB instance.\n\n  - Your Oracle DB instance class supports configuring the number of CPU\n    cores and threads per core.\n\n  - The current number CPU cores and threads is set to a non-default value.\n\nFor more information, see Configuring the processor for a DB instance class\nin RDS for Oracle (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html#USER_ConfigureProcessor)\nin the Amazon RDS User Guide.",
            "properties": {
              "name": {
                "type": "string"
              },
              "value": {
                "type": "string"
              }
            },
            "type": "object",
            "additionalProperties": false
          },
          "type": "array"
        },
        "snapshotCreateTime": {
          "description": "Specifies when the snapshot was taken in Coordinated Universal Time (UTC).\nChanges for the copy when the snapshot is copied.",
          "format": "date-time",
          "type": "string"
        },
        "snapshotDatabaseTime": {
          "description": "The timestamp of the most recent transaction applied to the database that\nyou're backing up. Thus, if you restore a snapshot, SnapshotDatabaseTime\nis the most recent transaction in the restored DB instance. In contrast,\noriginalSnapshotCreateTime specifies the system time that the snapshot completed.\n\nIf you back up a read replica, you can determine the replica lag by comparing\nSnapshotDatabaseTime with originalSnapshotCreateTime. For example, if originalSnapshotCreateTime\nis two hours later than SnapshotDatabaseTime, then the replica lag is two\nhours.",
          "format": "date-time",
          "type": "string"
        },
        "snapshotTarget": {
          "description": "Specifies where manual snapshots are stored: Amazon Web Services Outposts\nor the Amazon Web Services Region.",
          "type": "string"
        },
        "snapshotType": {
          "description": "Provides the type of the DB snapshot.",
          "type": "string"
        },
        "sourceDBSnapshotIdentifier": {
          "description": "The DB snapshot Amazon Resource Name (ARN) that the DB snapshot was copied\nfrom. It only has a value in the case of a cross-account or cross-Region\ncopy.",
          "type": "string"
        },
        "sourceRegion": {
          "description": "The Amazon Web Services Region that the DB snapshot was created in or copied\nfrom.",
          "type": "string"
        },
        "status": {
          "description": "Specifies the status of this DB snapshot.",
          "type": "string"
        },
        "storageThroughput": {
          "description": "Specifies the storage throughput for the DB snapshot.",
          "format": "int64",
          "type": "integer"
        },
        "storageType": {
          "description": "Specifies the storage type associated with DB snapshot.",
          "type": "string"
        },
        "tagList": {
          "items": {
            "description": "Metadata assigned to an Amazon RDS resource consisting of a key-value pair.\n\nFor more information, see Tagging Amazon RDS resources (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html)\nin the Amazon RDS User Guide or Tagging Amazon Aurora and Amazon RDS resources\n(https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html)\nin the Amazon Aurora User Guide.",
            "properties": {
              "key": {
                "type": "string"
              },
              "value": {
                "type": "string"
              }
            },
            "type": "object",
            "additionalProperties": false
          },
          "type": "array"
        },
        "tdeCredentialARN": {
          "description": "The ARN from the key store with which to associate the instance for TDE encryption.",
          "type": "string"
        },
        "timezone": {
          "description": "The time zone of the DB snapshot. In most cases, the Timezone element is\nempty. Timezone content appears only for snapshots taken from Microsoft SQL\nServer DB instances that were created with a time zone specified.",
          "type": "string"
        },
        "vpcID": {
          "description": "Provides the VPC ID associated with the DB snapshot.",
          "type": "string"
        }
      },
      "type": "object",
      "additionalProperties": false
    }
  },
  "type": "object"
}
