# AWS::OpenSearchServerless::VpcEndpoint Amazon OpenSearchServerless vpc endpoint resource ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{
    "Type" : "AWS::OpenSearchServerless::VpcEndpoint",
    "Properties" : {
        "Name" : String,
        "SecurityGroupIds" : [ String, ... ],
        "SubnetIds" : [ String, ... ],
        "VpcId" : String
    }
}
### YAML
Type: AWS::OpenSearchServerless::VpcEndpoint
Properties:
    Name: String
    SecurityGroupIds: 
      - String
    SubnetIds: 
      - String
    VpcId: String
## Properties #### Name The name of the VPC Endpoint _Required_: Yes _Type_: String _Minimum Length_: 3 _Maximum Length_: 32 _Pattern_: ^[a-z][a-z0-9-]{2,31}$ _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) #### SecurityGroupIds The ID of one or more security groups to associate with the endpoint network interface _Required_: No _Type_: List of String _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### SubnetIds The ID of one or more subnets in which to create an endpoint network interface _Required_: No _Type_: List of String _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### VpcId The ID of the VPC in which the endpoint will be used. _Required_: Yes _Type_: String _Minimum Length_: 1 _Maximum Length_: 255 _Pattern_: ^vpc-[0-9a-z]*$ _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement) ## Return Values ### Ref When you pass the logical ID of this resource to the intrinsic `Ref` function, Ref returns the Id. ### Fn::GetAtt The `Fn::GetAtt` intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values. For more information about using the `Fn::GetAtt` intrinsic function, see [Fn::GetAtt](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getatt.html). #### Id The identifier of the VPC Endpoint