-
Notifications
You must be signed in to change notification settings - Fork 17
/
NetworkLoadBalancerProps.go
54 lines (51 loc) · 1.72 KB
/
NetworkLoadBalancerProps.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
package awsecspatterns
import (
"github.com/aws/aws-cdk-go/awscdk/v2/awsroute53"
)
// Properties to define an network load balancer.
//
// 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"
// import "github.com/aws/aws-cdk-go/awscdk"
//
// var hostedZone hostedZone
//
// networkLoadBalancerProps := &NetworkLoadBalancerProps{
// Listeners: []networkListenerProps{
// &networkListenerProps{
// Name: jsii.String("name"),
//
// // the properties below are optional
// Port: jsii.Number(123),
// },
// },
// Name: jsii.String("name"),
//
// // the properties below are optional
// DomainName: jsii.String("domainName"),
// DomainZone: hostedZone,
// PublicLoadBalancer: jsii.Boolean(false),
// }
//
type NetworkLoadBalancerProps struct {
// Listeners (at least one listener) attached to this load balancer.
// Default: - none.
//
Listeners *[]*NetworkListenerProps `field:"required" json:"listeners" yaml:"listeners"`
// Name of the load balancer.
Name *string `field:"required" json:"name" yaml:"name"`
// The domain name for the service, e.g. "api.example.com.".
// Default: - No domain name.
//
DomainName *string `field:"optional" json:"domainName" yaml:"domainName"`
// The Route53 hosted zone for the domain, e.g. "example.com.".
// Default: - No Route53 hosted domain zone.
//
DomainZone awsroute53.IHostedZone `field:"optional" json:"domainZone" yaml:"domainZone"`
// Determines whether the Load Balancer will be internet-facing.
// Default: true.
//
PublicLoadBalancer *bool `field:"optional" json:"publicLoadBalancer" yaml:"publicLoadBalancer"`
}