{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-connect-securitykey.json",
  "title": "AWSConnectSecurityKeyProperties",
  "description": "Resource Type definition for AWS::Connect::SecurityKey. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-connect>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-connect-securitykey.json",
    "sourceSha256": "767832654c67c3439dd7bf21c9b51de1f9ded74854b6389e984828d86e32410a"
  },
  "type": "object",
  "properties": {
    "Key": {
      "$ref": "#/$defs/Key"
    },
    "InstanceId": {
      "$ref": "#/$defs/InstanceId"
    }
  },
  "typeName": "AWS::Connect::SecurityKey",
  "primaryIdentifier": [
    "/properties/InstanceId",
    "/properties/AssociationId"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-connect",
  "additionalProperties": false,
  "createOnlyProperties": [
    "/properties/InstanceId",
    "/properties/Key"
  ],
  "tagging": {
    "taggable": false,
    "tagOnCreate": false,
    "tagUpdatable": false,
    "cloudFormationSystemTags": false
  },
  "$defs": {
    "Key": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 1024
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "A valid security key in PEM format.",
      "title": "AWSConnectSecurityKeyKeyDefinition"
    },
    "InstanceId": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*$",
          "minLength": 1,
          "maxLength": 100
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Amazon Connect instance identifier",
      "title": "AWSConnectSecurityKeyInstanceIdDefinition"
    },
    "AssociationId": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^[-a-z0-9]*$",
          "minLength": 1,
          "maxLength": 100
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "An associationID is automatically generated when a storage config is associated with an instance",
      "title": "AWSConnectSecurityKeyAssociationIdDefinition"
    }
  },
  "required": [
    "Key",
    "InstanceId"
  ],
  "readOnlyProperties": [
    "/properties/AssociationId"
  ]
}
