-
Notifications
You must be signed in to change notification settings - Fork 17
/
VpcEndpointServiceProps.go
37 lines (34 loc) · 1.5 KB
/
VpcEndpointServiceProps.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package awsec2
import (
"github.com/aws/aws-cdk-go/awscdk/v2/awsiam"
)
// Construction properties for a VpcEndpointService.
//
// Example:
// // Example automatically generated from non-compiling source. May contain errors.
// var networkLoadBalancer1 networkLoadBalancer
// var networkLoadBalancer2 networkLoadBalancer
//
//
// ec2.NewVpcEndpointService(this, jsii.String("EndpointService"), &VpcEndpointServiceProps{
// VpcEndpointServiceLoadBalancers: []iVpcEndpointServiceLoadBalancer{
// networkLoadBalancer1,
// networkLoadBalancer2,
// },
// AcceptanceRequired: jsii.Boolean(true),
// AllowedPrincipals: []arnPrincipal{
// iam.NewArnPrincipal(jsii.String("arn:aws:iam::123456789012:root")),
// },
// })
//
type VpcEndpointServiceProps struct {
// One or more load balancers to host the VPC Endpoint Service.
VpcEndpointServiceLoadBalancers *[]IVpcEndpointServiceLoadBalancer `field:"required" json:"vpcEndpointServiceLoadBalancers" yaml:"vpcEndpointServiceLoadBalancers"`
// Whether requests from service consumers to connect to the service through an endpoint must be accepted.
AcceptanceRequired *bool `field:"optional" json:"acceptanceRequired" yaml:"acceptanceRequired"`
// IAM users, IAM roles, or AWS accounts to allow inbound connections from.
//
// These principals can connect to your service using VPC endpoints. Takes a
// list of one or more ArnPrincipal.
AllowedPrincipals *[]awsiam.ArnPrincipal `field:"optional" json:"allowedPrincipals" yaml:"allowedPrincipals"`
}