{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-rolesanywhere-trustanchor.json",
  "title": "AWSRolesAnywhereTrustAnchorProperties",
  "description": "Definition of AWS::RolesAnywhere::TrustAnchor Resource Type.. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-rolesanywhere-trustanchor.json",
    "sourceSha256": "80cfd0290b5c75e1d8ed92aad87b80daaf0a1a2b53f9a2fff5b462b2b9367335"
  },
  "type": "object",
  "properties": {
    "Enabled": {
      "type": "boolean"
    },
    "Name": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Source": {
      "$ref": "#/$defs/Source"
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "maxItems": 200,
      "minItems": 0
    }
  },
  "typeName": "AWS::RolesAnywhere::TrustAnchor",
  "$defs": {
    "Source": {
      "type": "object",
      "properties": {
        "SourceType": {
          "$ref": "#/$defs/TrustAnchorType"
        },
        "SourceData": {
          "$ref": "#/$defs/SourceData"
        }
      },
      "title": "AWSRolesAnywhereTrustAnchorSourceDefinition",
      "additionalProperties": false
    },
    "SourceData": {
      "oneOf": [
        {
          "type": "object",
          "title": "X509CertificateData",
          "properties": {
            "X509CertificateData": {
              "type": "string"
            }
          },
          "required": [
            "X509CertificateData"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "title": "AcmPcaArn",
          "properties": {
            "AcmPcaArn": {
              "type": "string"
            }
          },
          "required": [
            "AcmPcaArn"
          ],
          "additionalProperties": false
        }
      ],
      "title": "AWSRolesAnywhereTrustAnchorSourceDataDefinition"
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 128,
              "minLength": 1
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 256,
              "minLength": 0
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Key",
        "Value"
      ],
      "title": "AWSRolesAnywhereTrustAnchorTagDefinition",
      "additionalProperties": false
    },
    "TrustAnchorType": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "AWS_ACM_PCA",
            "CERTIFICATE_BUNDLE",
            "SELF_SIGNED_REPOSITORY"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSRolesAnywhereTrustAnchorTrustAnchorTypeDefinition"
    }
  },
  "additionalProperties": false,
  "primaryIdentifier": [
    "/properties/TrustAnchorId"
  ],
  "tagging": {
    "taggable": true,
    "tagOnCreate": true,
    "tagUpdatable": true,
    "cloudFormationSystemTags": true,
    "tagProperty": "/properties/Tags"
  },
  "required": [
    "Name",
    "Source"
  ],
  "readOnlyProperties": [
    "/properties/TrustAnchorId",
    "/properties/TrustAnchorArn"
  ]
}
