{
  "typeName" : "AWS::ObservabilityAdmin::TelemetryPipelines",
  "description" : "Resource Type definition for AWS::ObservabilityAdmin::TelemetryPipelines",
  "definitions" : {
    "Tag" : {
      "description" : "A key-value pair to associate with a resource",
      "type" : "object",
      "properties" : {
        "Key" : {
          "type" : "string",
          "description" : "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.",
          "minLength" : 1,
          "maxLength" : 128
        },
        "Value" : {
          "type" : "string",
          "description" : "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.",
          "minLength" : 0,
          "maxLength" : 256
        }
      },
      "required" : [ "Key", "Value" ],
      "additionalProperties" : false
    },
    "TelemetryPipeline" : {
      "type" : "object",
      "properties" : {
        "CreatedTimeStamp" : {
          "type" : "number"
        },
        "LastUpdateTimeStamp" : {
          "type" : "number"
        },
        "Arn" : {
          "type" : "string",
          "maxLength" : 1011,
          "minLength" : 1,
          "pattern" : "^arn:aws([a-z0-9\\-]+)?:([a-zA-Z0-9\\-]+):([a-z0-9\\-]+)?:([0-9]{12})?:(.+)$"
        },
        "Name" : {
          "type" : "string",
          "maxLength" : 28,
          "minLength" : 3,
          "pattern" : "[a-z][a-z0-9\\-]+"
        },
        "Configuration" : {
          "$ref" : "#/definitions/TelemetryPipelineConfiguration"
        },
        "Status" : {
          "$ref" : "#/definitions/TelemetryPipelineStatus"
        },
        "StatusReason" : {
          "$ref" : "#/definitions/TelemetryPipelineStatusReason"
        },
        "Tags" : {
          "description" : "An array of key-value pairs to apply to this resource",
          "type" : "array",
          "uniqueItems" : true,
          "items" : {
            "$ref" : "#/definitions/Tag"
          }
        }
      },
      "additionalProperties" : false
    },
    "TelemetryPipelineConfiguration" : {
      "type" : "object",
      "properties" : {
        "Body" : {
          "type" : "string",
          "maxLength" : 24000,
          "minLength" : 1
        }
      },
      "required" : [ "Body" ],
      "additionalProperties" : false
    },
    "TelemetryPipelineStatus" : {
      "type" : "string",
      "enum" : [ "CREATING", "ACTIVE", "UPDATING", "DELETING", "CREATE_FAILED", "UPDATE_FAILED" ]
    },
    "TelemetryPipelineStatusReason" : {
      "type" : "object",
      "properties" : {
        "Description" : {
          "type" : "string"
        }
      },
      "additionalProperties" : false
    },
    "Unit" : {
      "type" : "object",
      "additionalProperties" : false
    }
  },
  "properties" : {
    "Arn" : {
      "type" : "string",
      "maxLength" : 1011,
      "minLength" : 1,
      "pattern" : "^arn:aws([a-z0-9\\-]+)?:([a-zA-Z0-9\\-]+):([a-z0-9\\-]+)?:([0-9]{12})?:(.+)$"
    },
    "Configuration" : {
      "$ref" : "#/definitions/TelemetryPipelineConfiguration"
    },
    "Name" : {
      "type" : "string",
      "maxLength" : 28,
      "minLength" : 3,
      "pattern" : "[a-z][a-z0-9\\-]+"
    },
    "Pipeline" : {
      "$ref" : "#/definitions/TelemetryPipeline"
    },
    "PipelineIdentifier" : {
      "type" : "string",
      "maxLength" : 512,
      "minLength" : 1
    },
    "Status" : {
      "$ref" : "#/definitions/TelemetryPipelineStatus"
    },
    "StatusReason" : {
      "$ref" : "#/definitions/TelemetryPipelineStatusReason"
    },
    "Tags" : {
      "description" : "An array of key-value pairs to apply to this resource",
      "type" : "array",
      "uniqueItems" : true,
      "items" : {
        "$ref" : "#/definitions/Tag"
      }
    }
  },
  "required" : [ "Configuration" ],
  "readOnlyProperties" : [ "/properties/Arn", "/properties/Pipeline", "/properties/PipelineIdentifier", "/properties/Status", "/properties/StatusReason" ],
  "createOnlyProperties" : [ "/properties/Name" ],
  "primaryIdentifier" : [ "/properties/PipelineIdentifier" ],
  "additionalIdentifiers" : [ [ "/properties/Name" ] ],
  "handlers" : {
    "create" : {
      "permissions" : [ "iam:PassRole", "logs:PutPipelineRule", "observabilityadmin:CreateTelemetryPipeline", "observabilityadmin:GetTelemetryPipeline", "observabilityadmin:ListTagsForResource", "observabilityadmin:TagResource" ]
    },
    "read" : {
      "permissions" : [ "observabilityadmin:GetTelemetryPipeline", "observabilityadmin:ListTagsForResource" ]
    },
    "update" : {
      "permissions" : [ "iam:PassRole", "logs:DeletePipelineRule", "logs:PutPipelineRule", "observabilityadmin:GetTelemetryPipeline", "observabilityadmin:ListTagsForResource", "observabilityadmin:TagResource", "observabilityadmin:UntagResource", "observabilityadmin:UpdateTelemetryPipeline" ]
    },
    "delete" : {
      "permissions" : [ "logs:DeletePipelineRule", "observabilityadmin:DeleteTelemetryPipeline", "observabilityadmin:GetTelemetryPipeline" ]
    },
    "list" : {
      "permissions" : [ "observabilityadmin:ListTagsForResource", "observabilityadmin:ListTelemetryPipelines" ]
    }
  },
  "tagging" : {
    "cloudFormationSystemTags" : true,
    "permissions" : [ "observabilityadmin:ListTagsForResource", "observabilityadmin:TagResource", "observabilityadmin:UntagResource" ],
    "tagOnCreate" : true,
    "tagProperty" : "/properties/Tags",
    "tagUpdatable" : true,
    "taggable" : true
  },
  "additionalProperties" : false
}