{
 "additionalIdentifiers": [
  [
   "/properties/BrowserArn"
  ]
 ],
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/Name",
  "/properties/Description",
  "/properties/NetworkConfiguration",
  "/properties/RecordingConfig",
  "/properties/BrowserSigning",
  "/properties/ExecutionRoleArn"
 ],
 "definitions": {
  "BrowserArn": {
   "pattern": "^arn:aws(-[^:]+)?:bedrock-agentcore:[a-z0-9-]+:(aws|[0-9]{12}):browser(-custom)?\\/(aws\\.browser\\.v1|[a-zA-Z][a-zA-Z0-9_]{0,47}-[a-zA-Z0-9]{10})$",
   "type": "string"
  },
  "BrowserId": {
   "pattern": "^(aws\\.browser\\.v1|[a-zA-Z][a-zA-Z0-9_]{0,47}-[a-zA-Z0-9]{10})$",
   "type": "string"
  },
  "BrowserNetworkConfiguration": {
   "additionalProperties": false,
   "properties": {
    "NetworkMode": {
     "$ref": "#/definitions/BrowserNetworkMode",
     "default": "PUBLIC"
    },
    "VpcConfig": {
     "$ref": "#/definitions/VpcConfig"
    }
   },
   "required": [
    "NetworkMode"
   ],
   "type": "object"
  },
  "BrowserNetworkMode": {
   "enum": [
    "PUBLIC",
    "VPC"
   ],
   "type": "string"
  },
  "BrowserSigning": {
   "additionalProperties": false,
   "properties": {
    "Enabled": {
     "default": false,
     "type": "boolean"
    }
   },
   "type": "object"
  },
  "BrowserStatus": {
   "enum": [
    "CREATING",
    "CREATE_FAILED",
    "READY",
    "DELETING",
    "DELETE_FAILED",
    "DELETED"
   ],
   "type": "string"
  },
  "BrowserSummaries": {
   "items": {
    "$ref": "#/definitions/BrowserSummary"
   },
   "type": "array"
  },
  "BrowserSummary": {
   "additionalProperties": false,
   "properties": {
    "BrowserArn": {
     "$ref": "#/definitions/BrowserArn"
    },
    "BrowserId": {
     "$ref": "#/definitions/BrowserId"
    },
    "CreatedAt": {
     "format": "date-time",
     "type": "string"
    },
    "Description": {
     "type": "string"
    },
    "LastUpdatedAt": {
     "format": "date-time",
     "type": "string"
    },
    "Name": {
     "type": "string"
    },
    "Status": {
     "$ref": "#/definitions/BrowserStatus"
    }
   },
   "required": [
    "BrowserId",
    "BrowserArn",
    "Status",
    "CreatedAt"
   ],
   "type": "object"
  },
  "RecordingConfig": {
   "additionalProperties": false,
   "properties": {
    "Enabled": {
     "default": false,
     "type": "boolean"
    },
    "S3Location": {
     "$ref": "#/definitions/S3Location"
    }
   },
   "type": "object"
  },
  "RoleArn": {
   "pattern": "^arn:aws(-[a-z]+)*:iam::[0-9]{12}:role/.+$",
   "type": "string"
  },
  "S3Location": {
   "additionalProperties": false,
   "properties": {
    "Bucket": {
     "pattern": "^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$",
     "type": "string"
    },
    "Prefix": {
     "minLength": 1,
     "type": "string"
    }
   },
   "required": [
    "Bucket",
    "Prefix"
   ],
   "type": "object"
  },
  "SecurityGroupId": {
   "format": "AWS::EC2::SecurityGroup.Id",
   "pattern": "^sg-[0-9a-zA-Z]{8,17}$",
   "type": "string"
  },
  "SecurityGroups": {
   "format": "AWS::EC2::SecurityGroup.Ids",
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/SecurityGroupId"
   },
   "maxItems": 16,
   "minItems": 1,
   "type": "array"
  },
  "SubnetId": {
   "format": "AWS::EC2::Subnet.Id",
   "pattern": "^subnet-[0-9a-zA-Z]{8,17}$",
   "type": "string"
  },
  "Subnets": {
   "format": "AWS::EC2::Subnet.Ids",
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/SubnetId"
   },
   "maxItems": 16,
   "minItems": 1,
   "type": "array"
  },
  "TagsMap": {
   "additionalProperties": false,
   "patternProperties": {
    "^[a-zA-Z0-9\\s._:/=+@-]*$": {
     "maxLength": 256,
     "minLength": 0,
     "pattern": "^[a-zA-Z0-9\\s._:/=+@-]*$",
     "type": "string"
    }
   },
   "type": "object"
  },
  "VpcConfig": {
   "additionalProperties": false,
   "properties": {
    "SecurityGroups": {
     "$ref": "#/definitions/SecurityGroups"
    },
    "Subnets": {
     "$ref": "#/definitions/Subnets"
    }
   },
   "required": [
    "SecurityGroups",
    "Subnets"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/BrowserId"
 ],
 "properties": {
  "BrowserArn": {
   "$ref": "#/definitions/BrowserArn"
  },
  "BrowserId": {
   "$ref": "#/definitions/BrowserId"
  },
  "BrowserSigning": {
   "$ref": "#/definitions/BrowserSigning"
  },
  "CreatedAt": {
   "format": "date-time",
   "type": "string"
  },
  "Description": {
   "type": "string"
  },
  "ExecutionRoleArn": {
   "$ref": "#/definitions/RoleArn"
  },
  "FailureReason": {
   "type": "string"
  },
  "LastUpdatedAt": {
   "format": "date-time",
   "type": "string"
  },
  "Name": {
   "type": "string"
  },
  "NetworkConfiguration": {
   "$ref": "#/definitions/BrowserNetworkConfiguration"
  },
  "RecordingConfig": {
   "$ref": "#/definitions/RecordingConfig"
  },
  "Status": {
   "$ref": "#/definitions/BrowserStatus"
  },
  "Tags": {
   "$ref": "#/definitions/TagsMap"
  }
 },
 "readOnlyProperties": [
  "/properties/BrowserId",
  "/properties/BrowserArn",
  "/properties/Status",
  "/properties/FailureReason",
  "/properties/CreatedAt",
  "/properties/LastUpdatedAt"
 ],
 "required": [
  "Name",
  "NetworkConfiguration"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
 "tagging": {
  "cloudFormationSystemTags": false,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::BedrockAgentCore::BrowserCustom"
}
