{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-signer-signingprofile.json",
  "title": "AWSSignerSigningProfileProperties",
  "description": "A signing profile is a signing template that can be used to carry out a pre-defined signing job.. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-signer-signingprofile.json",
    "sourceSha256": "cf7098c764af40d52bc7520f73ff9fabc80a7c263888c0088dd5f12162fd9590"
  },
  "type": "object",
  "properties": {
    "SignatureValidityPeriod": {
      "description": "Signature validity period of the profile.",
      "$ref": "#/$defs/SignatureValidityPeriod"
    },
    "PlatformId": {
      "description": "The ID of the target signing platform.",
      "$ref": "#/$defs/PlatformId"
    },
    "Tags": {
      "type": "array",
      "description": "A list of tags associated with the signing profile.",
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::Signer::SigningProfile",
  "additionalIdentifiers": [
    [
      "/properties/ProfileName"
    ],
    [
      "/properties/ProfileVersionArn"
    ]
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
  "additionalProperties": false,
  "primaryIdentifier": [
    "/properties/Arn"
  ],
  "$defs": {
    "PlatformId": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "AWSLambda-SHA384-ECDSA",
            "Notation-OCI-SHA384-ECDSA"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSSignerSigningProfilePlatformIdDefinition"
    },
    "Arn": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^arn:aws(-(cn|gov))?:[a-z-]+:(([a-z]+-)+[0-9])?:([0-9]{12})?:[^.]+$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSSignerSigningProfileArnDefinition"
    },
    "ProfileVersion": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^[0-9a-zA-Z]{10}$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSSignerSigningProfileProfileVersionDefinition"
    },
    "SignatureValidityPeriod": {
      "type": "object",
      "properties": {
        "Value": {
          "type": "integer"
        },
        "Type": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "DAYS",
                "MONTHS",
                "YEARS"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "title": "AWSSignerSigningProfileSignatureValidityPeriodDefinition",
      "additionalProperties": false
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 127,
              "pattern": "^(?!aws:)[a-zA-Z+-=._:/]+$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "title": "AWSSignerSigningProfileTagDefinition",
      "additionalProperties": false
    }
  },
  "required": [
    "PlatformId"
  ],
  "createOnlyProperties": [
    "/properties/PlatformId",
    "/properties/SignatureValidityPeriod"
  ],
  "readOnlyProperties": [
    "/properties/ProfileName",
    "/properties/ProfileVersion",
    "/properties/Arn",
    "/properties/ProfileVersionArn"
  ]
}
