{
  "typeName" : "AWS::SSO::InstanceAccessControlAttributeConfiguration",
  "tagging" : {
    "taggable" : false,
    "tagOnCreate" : false,
    "tagUpdatable" : false
  },
  "description" : "Resource Type definition for SSO InstanceAccessControlAttributeConfiguration",
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-sso/aws-sso-instanceaccesscontrolattributeconfiguration",
  "definitions" : {
    "AccessControlAttributeValueSource" : {
      "type" : "string",
      "minLength" : 0,
      "maxLength" : 256,
      "pattern" : "[\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@\\[\\]\\{\\}\\$\\\\\"]*"
    },
    "AccessControlAttributeValueSourceList" : {
      "type" : "array",
      "insertionOrder" : true,
      "items" : {
        "$ref" : "#/definitions/AccessControlAttributeValueSource"
      },
      "maxItems" : 1
    },
    "AccessControlAttributeValue" : {
      "type" : "object",
      "properties" : {
        "Source" : {
          "$ref" : "#/definitions/AccessControlAttributeValueSourceList"
        }
      },
      "required" : [ "Source" ],
      "additionalProperties" : false
    },
    "AccessControlAttribute" : {
      "type" : "object",
      "properties" : {
        "Key" : {
          "type" : "string",
          "pattern" : "[\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@]+",
          "minLength" : 1,
          "maxLength" : 128
        },
        "Value" : {
          "$ref" : "#/definitions/AccessControlAttributeValue"
        }
      },
      "required" : [ "Key", "Value" ],
      "additionalProperties" : false
    },
    "AccessControlAttributeList" : {
      "type" : "array",
      "insertionOrder" : false,
      "items" : {
        "$ref" : "#/definitions/AccessControlAttribute"
      },
      "maxItems" : 50
    }
  },
  "properties" : {
    "InstanceArn" : {
      "description" : "The ARN of the AWS SSO instance under which the operation will be executed.",
      "type" : "string",
      "pattern" : "arn:aws(-[a-z]{1,5}){0,3}:sso:::instance/(sso)?ins-[a-zA-Z0-9-.]{16}",
      "minLength" : 10,
      "maxLength" : 1224
    },
    "InstanceAccessControlAttributeConfiguration" : {
      "description" : "The InstanceAccessControlAttributeConfiguration property has been deprecated but is still supported for backwards compatibility purposes. We recomend that you use  AccessControlAttributes property instead.",
      "type" : "object",
      "properties" : {
        "AccessControlAttributes" : {
          "$ref" : "#/definitions/AccessControlAttributeList"
        }
      },
      "required" : [ "AccessControlAttributes" ],
      "additionalProperties" : false
    },
    "AccessControlAttributes" : {
      "$ref" : "#/definitions/AccessControlAttributeList"
    }
  },
  "additionalProperties" : false,
  "required" : [ "InstanceArn" ],
  "createOnlyProperties" : [ "/properties/InstanceArn" ],
  "primaryIdentifier" : [ "/properties/InstanceArn" ],
  "handlers" : {
    "create" : {
      "permissions" : [ "sso:CreateInstanceAccessControlAttributeConfiguration", "sso:UpdateApplicationProfileForAWSAccountInstance", "sso:DescribeInstanceAccessControlAttributeConfiguration" ]
    },
    "read" : {
      "permissions" : [ "sso:DescribeInstanceAccessControlAttributeConfiguration" ]
    },
    "update" : {
      "permissions" : [ "sso:UpdateInstanceAccessControlAttributeConfiguration", "sso:DescribeInstanceAccessControlAttributeConfiguration" ]
    },
    "delete" : {
      "permissions" : [ "sso:DeleteInstanceAccessControlAttributeConfiguration", "sso:DescribeInstanceAccessControlAttributeConfiguration" ]
    },
    "list" : {
      "handlerSchema" : {
        "properties" : {
          "InstanceArn" : {
            "$ref" : "resource-schema.json#/properties/InstanceArn"
          }
        },
        "required" : [ "InstanceArn" ]
      },
      "permissions" : [ "sso:DescribeInstanceAccessControlAttributeConfiguration" ]
    }
  },
  "deprecatedProperties" : [ "/properties/InstanceAccessControlAttributeConfiguration" ]
}