{
  "typeName" : "AWS::Glue::IntegrationResourceProperty",
  "description" : "Resource Type definition for AWS::Glue::IntegrationResourceProperty",
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-glue.git",
  "properties" : {
    "ResourceArn" : {
      "type" : "string",
      "pattern" : "arn:aws:.*:.*:[0-9]+:.*",
      "description" : "The connection ARN of the source, or the database ARN of the target."
    },
    "ResourcePropertyArn" : {
      "type" : "string",
      "pattern" : "arn:aws:glue:.*:[0-9]+:.*",
      "description" : "The integration resource property ARN."
    },
    "SourceProcessingProperties" : {
      "type" : "object",
      "additionalProperties" : false,
      "description" : "The resource properties associated with the integration source.",
      "properties" : {
        "RoleArn" : {
          "type" : "string",
          "maxLength" : 128,
          "description" : "The IAM role to access the Glue connection."
        }
      },
      "required" : [ "RoleArn" ]
    },
    "TargetProcessingProperties" : {
      "type" : "object",
      "additionalProperties" : false,
      "description" : "The resource properties associated with the integration target.",
      "properties" : {
        "RoleArn" : {
          "type" : "string",
          "maxLength" : 128,
          "pattern" : "arn:aws:iam:.*:[0-9]+:.*",
          "description" : "The IAM role to access the Glue database."
        },
        "KmsArn" : {
          "type" : "string",
          "maxLength" : 128,
          "pattern" : "arn:aws:kms:.*:[0-9]+:.*",
          "description" : "The ARN of the KMS key used for encryption."
        },
        "ConnectionName" : {
          "type" : "string",
          "maxLength" : 128,
          "description" : "The Glue network connection to configure the Glue job running in the customer VPC."
        },
        "EventBusArn" : {
          "type" : "string",
          "maxLength" : 128,
          "description" : "The ARN of an Eventbridge event bus to receive the integration status notification."
        }
      },
      "required" : [ "RoleArn" ]
    },
    "Tags" : {
      "type" : "array",
      "maxItems" : 50,
      "uniqueItems" : true,
      "insertionOrder" : false,
      "description" : "An array of key-value pairs to apply to this resource.",
      "items" : {
        "$ref" : "#/definitions/Tag"
      }
    }
  },
  "required" : [ "ResourceArn" ],
  "definitions" : {
    "Tag" : {
      "description" : "A key-value pair to associate with a resource.",
      "type" : "object",
      "additionalProperties" : false,
      "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" ]
    }
  },
  "createOnlyProperties" : [ "/properties/ResourceArn" ],
  "primaryIdentifier" : [ "/properties/ResourceArn", "/properties/ResourcePropertyArn" ],
  "readOnlyProperties" : [ "/properties/ResourcePropertyArn" ],
  "handlers" : {
    "create" : {
      "permissions" : [ "glue:CreateIntegrationResourceProperty", "glue:GetIntegrationResourceProperty", "iam:PassRole", "glue:TagResource", "glue:GetConnections", "glue:GetConnection" ]
    },
    "read" : {
      "permissions" : [ "glue:GetIntegrationResourceProperty", "glue:GetTags" ]
    },
    "update" : {
      "permissions" : [ "glue:UpdateIntegrationResourceProperty", "glue:GetIntegrationResourceProperty", "glue:TagResource", "glue:UntagResource", "iam:PassRole" ]
    },
    "delete" : {
      "permissions" : [ "glue:UntagResource", "glue:DeleteIntegrationResourceProperty", "glue:UpdateIntegrationResourceProperty" ]
    },
    "list" : {
      "permissions" : [ "glue:ListIntegrationResourceProperties" ]
    }
  },
  "tagging" : {
    "taggable" : true,
    "tagOnCreate" : true,
    "tagUpdatable" : true,
    "cloudFormationSystemTags" : true,
    "tagProperty" : "/properties/Tags",
    "permissions" : [ "glue:TagResource", "glue:UntagResource", "glue:GetTags" ]
  },
  "additionalProperties" : false
}