{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-iam-role.json",
  "title": "AWSIAMRoleProperties",
  "description": "Resource Type definition for AWS::IAM::Role. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-iam.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-iam-role.json",
    "sourceSha256": "9e50d56399016c7e9e65c7a801c3b0a93b5446627820201a16fe58e367d12921"
  },
  "type": "object",
  "properties": {
    "AssumeRolePolicyDocument": {
      "description": "The trust policy that is associated with this role.",
      "type": [
        "object",
        "string"
      ]
    },
    "Description": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "A description of the role that you provide."
    },
    "ManagedPolicyArns": {
      "description": "A list of Amazon Resource Names (ARNs) of the IAM managed policies that you want to attach to the role. ",
      "type": "array",
      "uniqueItems": true,
      "insertionOrder": false,
      "items": {
        "type": "string"
      }
    },
    "MaxSessionDuration": {
      "description": "The maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default maximum of one hour is applied. This setting can have a value from 1 hour to 12 hours. ",
      "type": "integer"
    },
    "Path": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The path to the role."
    },
    "PermissionsBoundary": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The ARN of the policy used to set the permissions boundary for the role."
    },
    "Policies": {
      "description": "Adds or updates an inline policy document that is embedded in the specified IAM role. ",
      "type": "array",
      "insertionOrder": false,
      "uniqueItems": false,
      "items": {
        "$ref": "#/$defs/Policy"
      }
    },
    "RoleName": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "A name for the IAM role, up to 64 characters in length."
    },
    "Tags": {
      "description": "A list of tags that are attached to the role.",
      "type": "array",
      "uniqueItems": false,
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::IAM::Role",
  "tagging": {
    "taggable": true,
    "tagOnCreate": true,
    "tagUpdatable": true,
    "cloudFormationSystemTags": false,
    "tagProperty": "/properties/Tags"
  },
  "primaryIdentifier": [
    "/properties/RoleName"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-iam.git",
  "additionalProperties": false,
  "createOnlyProperties": [
    "/properties/Path",
    "/properties/RoleName"
  ],
  "$defs": {
    "Policy": {
      "description": "The inline policy document that is embedded in the specified IAM role.",
      "type": "object",
      "title": "AWSIAMRolePolicyDefinition",
      "properties": {
        "PolicyDocument": {
          "description": "The policy document.",
          "type": [
            "string",
            "object"
          ]
        },
        "PolicyName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The friendly name (not ARN) identifying the policy."
        }
      },
      "required": [
        "PolicyName",
        "PolicyDocument"
      ],
      "additionalProperties": false
    },
    "Tag": {
      "description": "A key-value pair to associate with a resource.",
      "type": "object",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "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 -."
        },
        "Value": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "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 -."
        }
      },
      "required": [
        "Key",
        "Value"
      ],
      "title": "AWSIAMRoleTagDefinition",
      "additionalProperties": false
    }
  },
  "required": [
    "AssumeRolePolicyDocument"
  ],
  "readOnlyProperties": [
    "/properties/Arn",
    "/properties/RoleId"
  ]
}
