{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-s3/json-schema/amazon-s3-create-storage-lens-group-request-schema.json",
  "title": "CreateStorageLensGroupRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-s3-storagelensgroup-api-openapi.yml#/components/schemas/CreateStorageLensGroupRequest",
  "type": "object",
  "properties": {
    "AccountId": {
      "type": "string",
      "description": "The Amazon Web Services account ID that the Storage Lens group is created from and associated with."
    },
    "StorageLensGroup": {
      "$ref": "#/$defs/StorageLensGroup"
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/S3ControlTag"
      },
      "description": "The Amazon Web Services resource tags that you're adding to your Storage Lens group. This parameter is optional."
    }
  },
  "required": [
    "AccountId",
    "StorageLensGroup"
  ],
  "$defs": {
    "MatchObjectAge": {
      "type": "object",
      "properties": {
        "DaysGreaterThan": {
          "type": "integer",
          "description": "Specifies the maximum object age in days. Must be a positive whole number, greater than the minimum object age and less than or equal to 2,147,483,647."
        },
        "DaysLessThan": {
          "type": "integer",
          "description": "Specifies the minimum object age in days. The value must be a positive whole number, greater than 0 and less than or equal to 2,147,483,647."
        }
      }
    },
    "MatchObjectSize": {
      "type": "object",
      "properties": {
        "BytesGreaterThan": {
          "type": "integer",
          "description": "Specifies the minimum object size in Bytes. The value must be a positive number, greater than 0 and less than 50 TB."
        },
        "BytesLessThan": {
          "type": "integer",
          "description": "Specifies the maximum object size in Bytes. The value must be a positive number, greater than the minimum object size and less than 50 TB."
        }
      }
    },
    "S3ControlTag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The key of the key-value pair of a tag added to your Amazon Web Services resource. A tag key can be up to 128 Unicode characters in length and is case-sensitive. System created tags that begin with aws: aren’t supported."
        },
        "Value": {
          "type": "string",
          "description": "The value of the key-value pair of a tag added to your Amazon Web Services resource. A tag value can be up to 256 Unicode characters in length and is case-sensitive."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    },
    "S3Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "Key of the tag"
        },
        "Value": {
          "type": "string",
          "description": "Value of the tag"
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    },
    "StorageLensGroup": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "Contains the name of the Storage Lens group."
        },
        "Filter": {
          "$ref": "#/$defs/StorageLensGroupFilter"
        },
        "StorageLensGroupArn": {
          "type": "string",
          "description": "Contains the Amazon Resource Name (ARN) of the Storage Lens group. This property is read-only."
        }
      },
      "required": [
        "Name",
        "Filter"
      ]
    },
    "StorageLensGroupAndOperator": {
      "type": "object",
      "properties": {
        "MatchAnyPrefix": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Contains a list of prefixes. At least one prefix must be specified. Up to 10 prefixes are allowed."
        },
        "MatchAnySuffix": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Contains a list of suffixes. At least one suffix must be specified. Up to 10 suffixes are allowed."
        },
        "MatchAnyTag": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/S3Tag"
          },
          "description": "Contains the list of object tags. At least one object tag must be specified. Up to 10 object tags are allowed."
        },
        "MatchObjectAge": {
          "$ref": "#/$defs/MatchObjectAge"
        },
        "MatchObjectSize": {
          "$ref": "#/$defs/MatchObjectSize"
        }
      }
    },
    "StorageLensGroupFilter": {
      "type": "object",
      "properties": {
        "MatchAnyPrefix": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Contains a list of prefixes. At least one prefix must be specified. Up to 10 prefixes are allowed."
        },
        "MatchAnySuffix": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Contains a list of suffixes. At least one suffix must be specified. Up to 10 suffixes are allowed."
        },
        "MatchAnyTag": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/S3Tag"
          },
          "description": "Contains the list of S3 object tags. At least one object tag must be specified. Up to 10 object tags are allowed."
        },
        "MatchObjectAge": {
          "$ref": "#/$defs/MatchObjectAge"
        },
        "MatchObjectSize": {
          "$ref": "#/$defs/MatchObjectSize"
        },
        "And": {
          "$ref": "#/$defs/StorageLensGroupAndOperator"
        },
        "Or": {
          "$ref": "#/$defs/StorageLensGroupOrOperator"
        }
      }
    },
    "StorageLensGroupOrOperator": {
      "type": "object",
      "properties": {
        "MatchAnyPrefix": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Filters objects that match any of the specified prefixes."
        },
        "MatchAnySuffix": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Filters objects that match any of the specified suffixes."
        },
        "MatchAnyTag": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/S3Tag"
          },
          "description": "Filters objects that match any of the specified S3 object tags."
        },
        "MatchObjectAge": {
          "$ref": "#/$defs/MatchObjectAge"
        },
        "MatchObjectSize": {
          "$ref": "#/$defs/MatchObjectSize"
        }
      }
    }
  }
}