{
 "additionalIdentifiers": [
  [
   "/properties/Name"
  ]
 ],
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/Type",
  "/properties/Name",
  "/properties/IamIdentityCenterOptions/InstanceArn"
 ],
 "definitions": {
  "IamFederationConfigOptions": {
   "additionalProperties": false,
   "properties": {
    "GroupAttribute": {
     "maxLength": 64,
     "minLength": 1,
     "pattern": "^[A-Za-z][A-Za-z0-9_.:/=+\\-@]*$",
     "type": "string"
    },
    "UserAttribute": {
     "maxLength": 64,
     "minLength": 1,
     "pattern": "^[A-Za-z][A-Za-z0-9_.:/=+\\-@]*$",
     "type": "string"
    }
   },
   "type": "object"
  },
  "IamIdentityCenterApplicationArn": {
   "type": "string"
  },
  "IamIdentityCenterConfigOptions": {
   "additionalProperties": false,
   "properties": {
    "ApplicationArn": {
     "$ref": "#/definitions/IamIdentityCenterApplicationArn"
    },
    "ApplicationDescription": {
     "type": "string"
    },
    "ApplicationName": {
     "type": "string"
    },
    "GroupAttribute": {
     "$ref": "#/definitions/IamIdentityCenterGroupAttribute"
    },
    "InstanceArn": {
     "$ref": "#/definitions/IamIdentityCenterInstanceArn"
    },
    "UserAttribute": {
     "$ref": "#/definitions/IamIdentityCenterUserAttribute"
    }
   },
   "required": [
    "InstanceArn"
   ],
   "type": "object"
  },
  "IamIdentityCenterGroupAttribute": {
   "type": "string"
  },
  "IamIdentityCenterInstanceArn": {
   "maxLength": 1224,
   "minLength": 10,
   "pattern": "^arn:(aws|aws-us-gov|aws-cn|aws-iso|aws-iso-b):sso:::instance/(sso)?ins-[a-zA-Z0-9-.]{16}$",
   "type": "string"
  },
  "IamIdentityCenterUserAttribute": {
   "type": "string"
  },
  "SamlConfigOptions": {
   "additionalProperties": false,
   "properties": {
    "GroupAttribute": {
     "maxLength": 2048,
     "minLength": 1,
     "pattern": "[\\w+=,.@-]+",
     "type": "string"
    },
    "Metadata": {
     "maxLength": 51200,
     "minLength": 1,
     "pattern": "[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u00A1-\\u00FF]+",
     "type": "string"
    },
    "OpenSearchServerlessEntityId": {
     "maxLength": 1024,
     "minLength": 1,
     "pattern": "^aws:opensearch:[0-9]{12}:*",
     "type": "string"
    },
    "SessionTimeout": {
     "type": "integer"
    },
    "UserAttribute": {
     "maxLength": 2048,
     "minLength": 1,
     "pattern": "[\\w+=,.@-]+",
     "type": "string"
    }
   },
   "required": [
    "Metadata"
   ],
   "type": "object"
  },
  "SecurityConfigType": {
   "enum": [
    "saml",
    "iamidentitycenter",
    "iamfederation"
   ],
   "type": "string"
  }
 },
 "primaryIdentifier": [
  "/properties/Id"
 ],
 "properties": {
  "Description": {
   "maxLength": 1000,
   "minLength": 1,
   "type": "string"
  },
  "IamFederationOptions": {
   "$ref": "#/definitions/IamFederationConfigOptions"
  },
  "IamIdentityCenterOptions": {
   "$ref": "#/definitions/IamIdentityCenterConfigOptions"
  },
  "Id": {
   "maxLength": 100,
   "minLength": 1,
   "type": "string"
  },
  "Name": {
   "maxLength": 32,
   "minLength": 3,
   "pattern": "^[a-z][a-z0-9-]{2,31}$",
   "type": "string"
  },
  "SamlOptions": {
   "$ref": "#/definitions/SamlConfigOptions"
  },
  "Type": {
   "$ref": "#/definitions/SecurityConfigType"
  }
 },
 "readOnlyProperties": [
  "/properties/Id",
  "/properties/IamIdentityCenterOptions/ApplicationArn",
  "/properties/IamIdentityCenterOptions/ApplicationName",
  "/properties/IamIdentityCenterOptions/ApplicationDescription"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-opensearchserverless",
 "tagging": {
  "cloudFormationSystemTags": false,
  "tagOnCreate": false,
  "tagUpdatable": false,
  "taggable": false
 },
 "typeName": "AWS::OpenSearchServerless::SecurityConfig",
 "writeOnlyProperties": [
  "/properties/Name"
 ]
}
