-
Notifications
You must be signed in to change notification settings - Fork 17
/
awsec2_InterfaceVpcEndpointService.go
100 lines (86 loc) · 2.27 KB
/
awsec2_InterfaceVpcEndpointService.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
package awsec2
import (
_init_ "github.com/aws/aws-cdk-go/awscdk/v2/jsii"
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
)
// A custom-hosted service for an interface VPC endpoint.
//
// Example:
// // Example automatically generated from non-compiling source. May contain errors.
// var vpc vpc
//
//
// ec2.NewInterfaceVpcEndpoint(this, jsii.String("VPC Endpoint"), &interfaceVpcEndpointProps{
// vpc: vpc,
// service: ec2.NewInterfaceVpcEndpointService(jsii.String("com.amazonaws.vpce.us-east-1.vpce-svc-uuddlrlrbastrtsvc"), jsii.Number(443)),
// // Choose which availability zones to place the VPC endpoint in, based on
// // available AZs
// subnets: &subnetSelection{
// availabilityZones: []*string{
// jsii.String("us-east-1a"),
// jsii.String("us-east-1c"),
// },
// },
// })
//
type InterfaceVpcEndpointService interface {
IInterfaceVpcEndpointService
// The name of the service.
Name() *string
// The port of the service.
Port() *float64
// Whether Private DNS is supported by default.
PrivateDnsDefault() *bool
}
// The jsii proxy struct for InterfaceVpcEndpointService
type jsiiProxy_InterfaceVpcEndpointService struct {
jsiiProxy_IInterfaceVpcEndpointService
}
func (j *jsiiProxy_InterfaceVpcEndpointService) Name() *string {
var returns *string
_jsii_.Get(
j,
"name",
&returns,
)
return returns
}
func (j *jsiiProxy_InterfaceVpcEndpointService) Port() *float64 {
var returns *float64
_jsii_.Get(
j,
"port",
&returns,
)
return returns
}
func (j *jsiiProxy_InterfaceVpcEndpointService) PrivateDnsDefault() *bool {
var returns *bool
_jsii_.Get(
j,
"privateDnsDefault",
&returns,
)
return returns
}
func NewInterfaceVpcEndpointService(name *string, port *float64) InterfaceVpcEndpointService {
_init_.Initialize()
if err := validateNewInterfaceVpcEndpointServiceParameters(name); err != nil {
panic(err)
}
j := jsiiProxy_InterfaceVpcEndpointService{}
_jsii_.Create(
"aws-cdk-lib.aws_ec2.InterfaceVpcEndpointService",
[]interface{}{name, port},
&j,
)
return &j
}
func NewInterfaceVpcEndpointService_Override(i InterfaceVpcEndpointService, name *string, port *float64) {
_init_.Initialize()
_jsii_.Create(
"aws-cdk-lib.aws_ec2.InterfaceVpcEndpointService",
[]interface{}{name, port},
i,
)
}