{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-s3-accesspoint.json",
  "title": "AWSS3AccessPointProperties",
  "description": "The AWS::S3::AccessPoint resource is an Amazon S3 resource type that you can use to access buckets.. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-s3>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-s3-accesspoint.json",
    "sourceSha256": "64feaba37bfb2176cdcb302c0a5382cc43d45cf0eae299c576e4e0a76eb4acc1"
  },
  "type": "object",
  "properties": {
    "Name": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^[a-z0-9]([a-z0-9\\-]*[a-z0-9])?$",
          "minLength": 3,
          "maxLength": 50
        },
        {
          "$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 Access Point. If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID for the access point name."
    },
    "Bucket": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 3,
          "maxLength": 255
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name of the bucket that you want to associate this Access Point with."
    },
    "BucketAccountId": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^\\d{12}$",
          "maxLength": 64
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The AWS account ID associated with the S3 bucket associated with this access point."
    },
    "VpcConfiguration": {
      "description": "If you include this field, Amazon S3 restricts access to this Access Point to requests from the specified Virtual Private Cloud (VPC).",
      "$ref": "#/$defs/VpcConfiguration"
    },
    "PublicAccessBlockConfiguration": {
      "description": "The PublicAccessBlock configuration that you want to apply to this Access Point. You can enable the configuration options in any combination. For more information about when Amazon S3 considers a bucket or object public, see <https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status> 'The Meaning of Public' in the Amazon Simple Storage Service Developer Guide.",
      "$ref": "#/$defs/PublicAccessBlockConfiguration"
    },
    "Policy": {
      "description": "The Access Point Policy you want to apply to this access point.",
      "type": "object"
    }
  },
  "typeName": "AWS::S3::AccessPoint",
  "$defs": {
    "VpcConfiguration": {
      "description": "The Virtual Private Cloud (VPC) configuration for a bucket access point.",
      "type": "object",
      "properties": {
        "VpcId": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 1024
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "If this field is specified, this access point will only allow connections from the specified VPC ID."
        }
      },
      "title": "AWSS3AccessPointVpcConfigurationDefinition"
    },
    "PublicAccessBlockConfiguration": {
      "type": "object",
      "properties": {
        "BlockPublicAcls": {
          "type": "boolean",
          "description": "Specifies whether Amazon S3 should block public access control lists (ACLs) for buckets in this account. 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."
        }
      },
      "title": "AWSS3AccessPointPublicAccessBlockConfigurationDefinition"
    },
    "Arn": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "the Amazon Resource Name (ARN) of the specified accesspoint.",
      "title": "AWSS3AccessPointArnDefinition"
    }
  },
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-s3",
  "additionalProperties": false,
  "primaryIdentifier": [
    "/properties/Name"
  ],
  "required": [
    "Bucket"
  ],
  "createOnlyProperties": [
    "/properties/Name",
    "/properties/Bucket",
    "/properties/BucketAccountId",
    "/properties/VpcConfiguration"
  ],
  "readOnlyProperties": [
    "/properties/Alias",
    "/properties/NetworkOrigin",
    "/properties/Arn"
  ]
}
