{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-lambda/json-schema/aws-lambda-create-code-signing-config-request-schema.json",
  "title": "CreateCodeSigningConfigRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-lambda-code-signing-config-api-openapi.yml#/components/schemas/CreateCodeSigningConfigRequest",
  "type": "object",
  "properties": {
    "Description": {
      "type": "string",
      "description": "Descriptive name for this code signing configuration."
    },
    "AllowedPublishers": {
      "$ref": "#/$defs/AllowedPublishers"
    },
    "CodeSigningPolicies": {
      "$ref": "#/$defs/CodeSigningPolicies"
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "A list of tags to add to the code signing configuration."
    }
  },
  "required": [
    "AllowedPublishers"
  ],
  "$defs": {
    "AllowedPublishers": {
      "type": "object",
      "properties": {
        "SigningProfileVersionArns": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The Amazon Resource Name (ARN) for each of the signing profiles. A signing profile defines a trusted user who can sign a code package."
        }
      },
      "required": [
        "SigningProfileVersionArns"
      ]
    },
    "CodeSigningPolicies": {
      "type": "object",
      "properties": {
        "UntrustedArtifactOnDeployment": {
          "type": "string",
          "enum": [
            "Warn",
            "Enforce"
          ],
          "description": "Code signing configuration policy for deployment validation failure. If you set the policy to Enforce, Lambda blocks the deployment request if signature validation checks fail. If you set the policy to Warn, Lambda allows the deployment and issues a new Amazon CloudWatch metric (SignatureValidationErrors) and also stores the warning in the CloudTrail log. Default value: Warn"
        }
      }
    }
  }
}