{
  "typeName" : "AWS::Oam::Sink",
  "description" : "Resource Type definition for AWS::Oam::Sink",
  "properties" : {
    "Arn" : {
      "description" : "The Amazon resource name (ARN) of the ObservabilityAccessManager Sink",
      "type" : "string",
      "maxLength" : 2048
    },
    "Name" : {
      "description" : "The name of the ObservabilityAccessManager Sink.",
      "type" : "string",
      "minLength" : 1,
      "maxLength" : 255,
      "pattern" : "^[a-zA-Z0-9_.-]+$"
    },
    "Policy" : {
      "description" : "The policy of this ObservabilityAccessManager Sink.",
      "type" : "object"
    },
    "Tags" : {
      "description" : "Tags to apply to the sink",
      "type" : "object",
      "additionalProperties" : false,
      "patternProperties" : {
        "^(?!aws:.*).{1,128}$" : {
          "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:.",
          "pattern" : "^(?!aws:.*).{0,256}$",
          "minLength" : 0,
          "maxLength" : 256
        }
      }
    }
  },
  "tagging" : {
    "taggable" : true,
    "tagOnCreate" : true,
    "tagUpdatable" : true,
    "cloudFormationSystemTags" : true,
    "tagProperty" : "/properties/Tags",
    "permissions" : [ "oam:ListTagsForResource", "oam:UntagResource", "oam:TagResource" ]
  },
  "required" : [ "Name" ],
  "additionalProperties" : false,
  "readOnlyProperties" : [ "/properties/Arn" ],
  "createOnlyProperties" : [ "/properties/Name" ],
  "primaryIdentifier" : [ "/properties/Arn" ],
  "handlers" : {
    "create" : {
      "permissions" : [ "oam:CreateSink", "oam:PutSinkPolicy", "oam:GetSinkPolicy", "oam:GetSink", "oam:TagResource", "oam:ListTagsForResource" ]
    },
    "delete" : {
      "permissions" : [ "oam:DeleteSink", "oam:GetSinkPolicy", "oam:GetSink" ]
    },
    "list" : {
      "permissions" : [ "oam:ListSinks" ]
    },
    "read" : {
      "permissions" : [ "oam:GetSinkPolicy", "oam:GetSink", "oam:ListTagsForResource" ]
    },
    "update" : {
      "permissions" : [ "oam:PutSinkPolicy", "oam:GetSinkPolicy", "oam:GetSink", "oam:TagResource", "oam:UntagResource", "oam:ListTagsForResource" ]
    }
  }
}