{
  "typeName" : "AWS::IVS::PlaybackKeyPair",
  "description" : "Resource Type definition for AWS::IVS::PlaybackKeyPair",
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
  "definitions" : {
    "Tag" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Key" : {
          "type" : "string",
          "minLength" : 1,
          "maxLength" : 128
        },
        "Value" : {
          "type" : "string",
          "minLength" : 1,
          "maxLength" : 256
        }
      },
      "required" : [ "Value", "Key" ]
    }
  },
  "properties" : {
    "Name" : {
      "description" : "An arbitrary string (a nickname) assigned to a playback key pair that helps the customer identify that resource. The value does not need to be unique.",
      "type" : "string",
      "pattern" : "^[a-zA-Z0-9-_]*$",
      "minLength" : 0,
      "maxLength" : 128
    },
    "PublicKeyMaterial" : {
      "description" : "The public portion of a customer-generated key pair.",
      "type" : "string"
    },
    "Fingerprint" : {
      "description" : "Key-pair identifier.",
      "type" : "string"
    },
    "Arn" : {
      "description" : "Key-pair identifier.",
      "type" : "string",
      "pattern" : "^arn:aws:ivs:[a-z0-9-]+:[0-9]+:playback-key/[a-zA-Z0-9-]+$",
      "minLength" : 1,
      "maxLength" : 128
    },
    "Tags" : {
      "description" : "A list of key-value pairs that contain metadata for the asset model.",
      "type" : "array",
      "uniqueItems" : true,
      "insertionOrder" : false,
      "maxItems" : 50,
      "items" : {
        "$ref" : "#/definitions/Tag"
      }
    }
  },
  "additionalProperties" : false,
  "readOnlyProperties" : [ "/properties/Arn", "/properties/Fingerprint" ],
  "writeOnlyProperties" : [ "/properties/PublicKeyMaterial" ],
  "createOnlyProperties" : [ "/properties/PublicKeyMaterial", "/properties/Name" ],
  "primaryIdentifier" : [ "/properties/Arn" ],
  "handlers" : {
    "create" : {
      "permissions" : [ "ivs:ImportPlaybackKeyPair" ]
    },
    "read" : {
      "permissions" : [ "ivs:GetPlaybackKeyPair" ]
    },
    "update" : {
      "permissions" : [ "ivs:ListTagsForResource", "ivs:UntagResource", "ivs:TagResource" ]
    },
    "delete" : {
      "permissions" : [ "ivs:DeletePlaybackKeyPair" ]
    },
    "list" : {
      "permissions" : [ "ivs:ListPlaybackKeyPairs" ]
    }
  }
}