{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-s3objectlambda-accesspoint.json",
  "title": "AWSS3ObjectLambdaAccessPointProperties",
  "description": "The AWS::S3ObjectLambda::AccessPoint resource is an Amazon S3ObjectLambda resource type that you can use to add computation to S3 actions. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-s3objectlambda-accesspoint.json",
    "sourceSha256": "09c77d25f9e620d7621c3516609bc8cc782a5fc2cc4a27c3a781a4865df80ddf"
  },
  "type": "object",
  "properties": {
    "Name": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^[a-z0-9]([a-z0-9\\-]*[a-z0-9])?$",
          "minLength": 3,
          "maxLength": 45
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name you want to assign to this Object lambda Access Point."
    },
    "ObjectLambdaConfiguration": {
      "description": "The Object lambda Access Point Configuration that configures transformations to be applied on the objects on specified S3 Actions",
      "$ref": "#/$defs/ObjectLambdaConfiguration"
    }
  },
  "typeName": "AWS::S3ObjectLambda::AccessPoint",
  "primaryIdentifier": [
    "/properties/Name"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
  "additionalProperties": false,
  "readOnlyProperties": [
    "/properties/Arn",
    "/properties/Alias",
    "/properties/Alias/Value",
    "/properties/Alias/Status",
    "/properties/CreationDate",
    "/properties/PolicyStatus",
    "/properties/PolicyStatus/IsPublic",
    "/properties/PublicAccessBlockConfiguration"
  ],
  "required": [
    "ObjectLambdaConfiguration"
  ],
  "$defs": {
    "PublicAccessBlockConfiguration": {
      "type": "object",
      "title": "AWSS3ObjectLambdaAccessPointPublicAccessBlockConfigurationDefinition",
      "description": "The Public Access Block Configuration is used to block policies that would allow public access to this Object lambda Access Point. All public access to Object lambda Access Points are blocked by default, and any policy that would give public access to them will be also blocked. This behavior cannot be changed for Object lambda Access Points.",
      "properties": {
        "BlockPublicAcls": {
          "type": "boolean",
          "description": "Specifies whether Amazon S3 should block public access control lists (ACLs) to this object lambda access point. Setting this element to TRUE causes the following behavior:\n- PUT Bucket acl and PUT Object acl calls fail if the specified ACL is public.\n - PUT Object calls fail if the request includes a public ACL.\n. - PUT Bucket calls fail if the request includes a public ACL.\nEnabling this setting doesn't affect existing policies or ACLs."
        },
        "IgnorePublicAcls": {
          "type": "boolean",
          "description": "Specifies whether Amazon S3 should ignore public ACLs for buckets in this account. Setting this element to TRUE causes Amazon S3 to ignore all public ACLs on buckets in this account and any objects that they contain. Enabling this setting doesn't affect the persistence of any existing ACLs and doesn't prevent new public ACLs from being set."
        },
        "BlockPublicPolicy": {
          "type": "boolean",
          "description": "Specifies whether Amazon S3 should block public bucket policies for buckets in this account. Setting this element to TRUE causes Amazon S3 to reject calls to PUT Bucket policy if the specified bucket policy allows public access. Enabling this setting doesn't affect existing bucket policies."
        },
        "RestrictPublicBuckets": {
          "type": "boolean",
          "description": "Specifies whether Amazon S3 should restrict public bucket policies for this bucket. Setting this element to TRUE restricts access to this bucket to only AWS services and authorized users within this account if the bucket has a public policy.\nEnabling this setting doesn't affect previously stored bucket policies, except that public and cross-account access within any public bucket policy, including non-public delegation to specific accounts, is blocked."
        }
      },
      "additionalProperties": false
    },
    "ObjectLambdaConfiguration": {
      "type": "object",
      "title": "AWSS3ObjectLambdaAccessPointObjectLambdaConfigurationDefinition",
      "description": "Configuration to be applied to this Object lambda Access Point. It specifies Supporting Access Point, Transformation Configurations. Customers can also set if they like to enable Cloudwatch metrics for accesses to this Object lambda Access Point. Default setting for Cloudwatch metrics is disable.",
      "properties": {
        "SupportingAccessPoint": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "AllowedFeatures": {
          "type": "array",
          "insertionOrder": false,
          "uniqueItems": true,
          "items": {
            "type": "string"
          }
        },
        "CloudWatchMetricsEnabled": {
          "type": "boolean"
        },
        "TransformationConfigurations": {
          "type": "array",
          "insertionOrder": false,
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/TransformationConfiguration"
          }
        }
      },
      "required": [
        "SupportingAccessPoint",
        "TransformationConfigurations"
      ],
      "additionalProperties": false
    },
    "TransformationConfiguration": {
      "type": "object",
      "title": "AWSS3ObjectLambdaAccessPointTransformationConfigurationDefinition",
      "description": "Configuration to define what content transformation will be applied on which S3 Action.",
      "properties": {
        "Actions": {
          "type": "array",
          "insertionOrder": false,
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/Action"
          }
        },
        "ContentTransformation": {
          "type": "object",
          "oneOf": [
            {
              "required": [
                "AwsLambda"
              ],
              "properties": {
                "AwsLambda": {
                  "$ref": "#/$defs/AwsLambda"
                }
              },
              "additionalProperties": false,
              "type": "object"
            }
          ]
        }
      },
      "required": [
        "Actions",
        "ContentTransformation"
      ],
      "additionalProperties": false
    },
    "AwsLambda": {
      "type": "object",
      "title": "AWSS3ObjectLambdaAccessPointAwsLambdaDefinition",
      "properties": {
        "FunctionArn": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "FunctionPayload": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "FunctionArn"
      ],
      "additionalProperties": false
    },
    "Action": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSS3ObjectLambdaAccessPointActionDefinition"
    },
    "Alias": {
      "type": "object",
      "title": "AWSS3ObjectLambdaAccessPointAliasDefinition",
      "properties": {
        "Status": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^[A-Z]*$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The status of the Object Lambda alias."
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^[a-z0-9\\-]*$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The value of the Object Lambda alias."
        }
      },
      "required": [
        "Status",
        "Value"
      ],
      "additionalProperties": false
    },
    "PolicyStatus": {
      "type": "object",
      "title": "AWSS3ObjectLambdaAccessPointPolicyStatusDefinition",
      "properties": {
        "IsPublic": {
          "type": "boolean",
          "description": "Specifies whether the Object lambda Access Point Policy is Public or not. Object lambda Access Points are private by default."
        }
      },
      "additionalProperties": false
    }
  },
  "createOnlyProperties": [
    "/properties/Name"
  ]
}
