/
awsevents_CfnEndpointProps.go
55 lines (52 loc) · 1.97 KB
/
awsevents_CfnEndpointProps.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
package awsevents
// Properties for defining a `CfnEndpoint`.
//
// 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"
//
// cfnEndpointProps := &cfnEndpointProps{
// eventBuses: []interface{}{
// &endpointEventBusProperty{
// eventBusArn: jsii.String("eventBusArn"),
// },
// },
// name: jsii.String("name"),
// routingConfig: &routingConfigProperty{
// failoverConfig: &failoverConfigProperty{
// primary: &primaryProperty{
// healthCheck: jsii.String("healthCheck"),
// },
// secondary: &secondaryProperty{
// route: jsii.String("route"),
// },
// },
// },
//
// // the properties below are optional
// description: jsii.String("description"),
// replicationConfig: &replicationConfigProperty{
// state: jsii.String("state"),
// },
// roleArn: jsii.String("roleArn"),
// }
//
type CfnEndpointProps struct {
// The event buses being used by the endpoint.
//
// *Exactly* : `2`.
EventBuses interface{} `field:"required" json:"eventBuses" yaml:"eventBuses"`
// The name of the endpoint.
Name *string `field:"required" json:"name" yaml:"name"`
// The routing configuration of the endpoint.
RoutingConfig interface{} `field:"required" json:"routingConfig" yaml:"routingConfig"`
// A description for the endpoint.
Description *string `field:"optional" json:"description" yaml:"description"`
// Whether event replication was enabled or disabled for this endpoint.
//
// The default state is `ENABLED` which means you must supply a `RoleArn` . If you don't have a `RoleArn` or you don't want event replication enabled, set the state to `DISABLED` .
ReplicationConfig interface{} `field:"optional" json:"replicationConfig" yaml:"replicationConfig"`
// The ARN of the role used by event replication for the endpoint.
RoleArn *string `field:"optional" json:"roleArn" yaml:"roleArn"`
}