{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-sso-assignment.json",
  "title": "AWSSSOAssignmentProperties",
  "description": "Resource Type definition for SSO assignmet. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-sso/aws-sso-assignment>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-sso-assignment.json",
    "sourceSha256": "507e02daa238eac9504acec0ba87b77ec3456b86fecca44cc180d373c1b5fff3"
  },
  "type": "object",
  "properties": {
    "InstanceArn": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "arn:(aws|aws-us-gov|aws-cn|aws-iso|aws-iso-b):sso:::instance/(sso)?ins-[a-zA-Z0-9-.]{16}",
          "minLength": 10,
          "maxLength": 1224
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The sso instance that the permission set is owned."
    },
    "TargetId": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "\\d{12}"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The account id to be provisioned."
    },
    "TargetType": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "AWS_ACCOUNT"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The type of resource to be provsioned to, only aws account now"
    },
    "PermissionSetArn": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "arn:(aws|aws-us-gov|aws-cn|aws-iso|aws-iso-b):sso:::permissionSet/(sso)?ins-[a-zA-Z0-9-.]{16}/ps-[a-zA-Z0-9-./]{16}",
          "minLength": 10,
          "maxLength": 1224
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The permission set that the assignemt will be assigned"
    },
    "PrincipalType": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "USER",
            "GROUP"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The assignee's type, user/group"
    },
    "PrincipalId": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^([0-9a-f]{10}-|)[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}$",
          "minLength": 1,
          "maxLength": 47
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The assignee's identifier, user id/group id"
    }
  },
  "typeName": "AWS::SSO::Assignment",
  "taggable": false,
  "primaryIdentifier": [
    "/properties/InstanceArn",
    "/properties/TargetId",
    "/properties/TargetType",
    "/properties/PermissionSetArn",
    "/properties/PrincipalType",
    "/properties/PrincipalId"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-sso/aws-sso-assignment",
  "createOnlyProperties": [
    "/properties/InstanceArn",
    "/properties/TargetId",
    "/properties/TargetType",
    "/properties/PermissionSetArn",
    "/properties/PrincipalType",
    "/properties/PrincipalId"
  ],
  "additionalProperties": false,
  "required": [
    "InstanceArn",
    "TargetId",
    "TargetType",
    "PermissionSetArn",
    "PrincipalType",
    "PrincipalId"
  ]
}
