{
  "typeName" : "AWS::IoT::Certificate",
  "description" : "Use the AWS::IoT::Certificate resource to declare an AWS IoT X.509 certificate.",
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
  "definitions" : { },
  "properties" : {
    "CACertificatePem" : {
      "type" : "string",
      "minLength" : 1,
      "maxLength" : 65536
    },
    "CertificatePem" : {
      "type" : "string",
      "minLength" : 1,
      "maxLength" : 65536
    },
    "CertificateSigningRequest" : {
      "type" : "string"
    },
    "CertificateMode" : {
      "type" : "string",
      "enum" : [ "DEFAULT", "SNI_ONLY" ]
    },
    "Status" : {
      "type" : "string",
      "enum" : [ "ACTIVE", "INACTIVE", "REVOKED", "PENDING_TRANSFER", "PENDING_ACTIVATION" ]
    },
    "Id" : {
      "type" : "string"
    },
    "Arn" : {
      "type" : "string"
    }
  },
  "tagging" : {
    "taggable" : false,
    "tagOnCreate" : false,
    "tagUpdatable" : false,
    "cloudFormationSystemTags" : false
  },
  "additionalProperties" : false,
  "required" : [ "Status" ],
  "createOnlyProperties" : [ "/properties/CertificateSigningRequest", "/properties/CACertificatePem", "/properties/CertificatePem", "/properties/CertificateMode" ],
  "writeOnlyProperties" : [ "/properties/CertificateSigningRequest", "/properties/CACertificatePem" ],
  "readOnlyProperties" : [ "/properties/Arn", "/properties/Id" ],
  "primaryIdentifier" : [ "/properties/Id" ],
  "handlers" : {
    "create" : {
      "permissions" : [ "iot:CreateCertificateFromCsr", "iot:RegisterCertificate", "iot:RegisterCertificateWithoutCA", "iot:DescribeCertificate", "kms:Decrypt" ]
    },
    "read" : {
      "permissions" : [ "iot:DescribeCertificate", "kms:Decrypt" ]
    },
    "update" : {
      "permissions" : [ "iot:UpdateCertificate", "iot:DescribeCertificate", "kms:Decrypt" ]
    },
    "delete" : {
      "permissions" : [ "iot:DeleteCertificate", "iot:UpdateCertificate", "iot:DescribeCertificate", "kms:Decrypt" ]
    },
    "list" : {
      "permissions" : [ "iot:ListCertificates" ]
    }
  }
}