package awsec2 // Properties for defining a `CfnVPCEndpoint`. // // Example: // // The code below shows an example of how to instantiate this type. // // The values are placeholders you should change. // import "github.com/aws/aws-cdk-go/awscdk" // // var policyDocument interface{} // // cfnVPCEndpointProps := &CfnVPCEndpointProps{ // ServiceName: jsii.String("serviceName"), // VpcId: jsii.String("vpcId"), // // // the properties below are optional // PolicyDocument: policyDocument, // PrivateDnsEnabled: jsii.Boolean(false), // RouteTableIds: []*string{ // jsii.String("routeTableIds"), // }, // SecurityGroupIds: []*string{ // jsii.String("securityGroupIds"), // }, // SubnetIds: []*string{ // jsii.String("subnetIds"), // }, // VpcEndpointType: jsii.String("vpcEndpointType"), // } // // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html // type CfnVPCEndpointProps struct { // The name of the endpoint service. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-servicename // ServiceName *string `field:"required" json:"serviceName" yaml:"serviceName"` // The ID of the VPC. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-vpcid // VpcId *string `field:"required" json:"vpcId" yaml:"vpcId"` // An endpoint policy, which controls access to the service from the VPC. // // The default endpoint policy allows full access to the service. Endpoint policies are supported only for gateway and interface endpoints. // // For CloudFormation templates in YAML, you can provide the policy in JSON or YAML format. AWS CloudFormation converts YAML policies to JSON format before calling the API to create or modify the VPC endpoint. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-policydocument // PolicyDocument interface{} `field:"optional" json:"policyDocument" yaml:"policyDocument"` // Indicate whether to associate a private hosted zone with the specified VPC. // // The private hosted zone contains a record set for the default public DNS name for the service for the Region (for example, `kinesis.us-east-1.amazonaws.com` ), which resolves to the private IP addresses of the endpoint network interfaces in the VPC. This enables you to make requests to the default public DNS name for the service instead of the public DNS names that are automatically generated by the VPC endpoint service. // // To use a private hosted zone, you must set the following VPC attributes to `true` : `enableDnsHostnames` and `enableDnsSupport` . // // This property is supported only for interface endpoints. // // Default: `false`. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-privatednsenabled // PrivateDnsEnabled interface{} `field:"optional" json:"privateDnsEnabled" yaml:"privateDnsEnabled"` // The IDs of the route tables. // // Routing is supported only for gateway endpoints. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-routetableids // RouteTableIds *[]*string `field:"optional" json:"routeTableIds" yaml:"routeTableIds"` // The IDs of the security groups to associate with the endpoint network interfaces. // // If this parameter is not specified, we use the default security group for the VPC. Security groups are supported only for interface endpoints. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-securitygroupids // SecurityGroupIds *[]*string `field:"optional" json:"securityGroupIds" yaml:"securityGroupIds"` // The IDs of the subnets in which to create endpoint network interfaces. // // You must specify this property for an interface endpoint or a Gateway Load Balancer endpoint. You can't specify this property for a gateway endpoint. For a Gateway Load Balancer endpoint, you can specify only one subnet. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-subnetids // SubnetIds *[]*string `field:"optional" json:"subnetIds" yaml:"subnetIds"` // The type of endpoint. // // Default: Gateway. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-vpcendpointtype // VpcEndpointType *string `field:"optional" json:"vpcEndpointType" yaml:"vpcEndpointType"` }