/
CfnSegmentProps.go
201 lines (198 loc) · 6.93 KB
/
CfnSegmentProps.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
package awspinpoint
// Properties for defining a `CfnSegment`.
//
// 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 attributes interface{}
// var metrics interface{}
// var tags interface{}
// var userAttributes interface{}
//
// cfnSegmentProps := &CfnSegmentProps{
// ApplicationId: jsii.String("applicationId"),
// Name: jsii.String("name"),
//
// // the properties below are optional
// Dimensions: &SegmentDimensionsProperty{
// Attributes: attributes,
// Behavior: &BehaviorProperty{
// Recency: &RecencyProperty{
// Duration: jsii.String("duration"),
// RecencyType: jsii.String("recencyType"),
// },
// },
// Demographic: &DemographicProperty{
// AppVersion: &SetDimensionProperty{
// DimensionType: jsii.String("dimensionType"),
// Values: []*string{
// jsii.String("values"),
// },
// },
// Channel: &SetDimensionProperty{
// DimensionType: jsii.String("dimensionType"),
// Values: []*string{
// jsii.String("values"),
// },
// },
// DeviceType: &SetDimensionProperty{
// DimensionType: jsii.String("dimensionType"),
// Values: []*string{
// jsii.String("values"),
// },
// },
// Make: &SetDimensionProperty{
// DimensionType: jsii.String("dimensionType"),
// Values: []*string{
// jsii.String("values"),
// },
// },
// Model: &SetDimensionProperty{
// DimensionType: jsii.String("dimensionType"),
// Values: []*string{
// jsii.String("values"),
// },
// },
// Platform: &SetDimensionProperty{
// DimensionType: jsii.String("dimensionType"),
// Values: []*string{
// jsii.String("values"),
// },
// },
// },
// Location: &LocationProperty{
// Country: &SetDimensionProperty{
// DimensionType: jsii.String("dimensionType"),
// Values: []*string{
// jsii.String("values"),
// },
// },
// GpsPoint: &GPSPointProperty{
// Coordinates: &CoordinatesProperty{
// Latitude: jsii.Number(123),
// Longitude: jsii.Number(123),
// },
// RangeInKilometers: jsii.Number(123),
// },
// },
// Metrics: metrics,
// UserAttributes: userAttributes,
// },
// SegmentGroups: &SegmentGroupsProperty{
// Groups: []interface{}{
// &GroupsProperty{
// Dimensions: []interface{}{
// &SegmentDimensionsProperty{
// Attributes: attributes,
// Behavior: &BehaviorProperty{
// Recency: &RecencyProperty{
// Duration: jsii.String("duration"),
// RecencyType: jsii.String("recencyType"),
// },
// },
// Demographic: &DemographicProperty{
// AppVersion: &SetDimensionProperty{
// DimensionType: jsii.String("dimensionType"),
// Values: []*string{
// jsii.String("values"),
// },
// },
// Channel: &SetDimensionProperty{
// DimensionType: jsii.String("dimensionType"),
// Values: []*string{
// jsii.String("values"),
// },
// },
// DeviceType: &SetDimensionProperty{
// DimensionType: jsii.String("dimensionType"),
// Values: []*string{
// jsii.String("values"),
// },
// },
// Make: &SetDimensionProperty{
// DimensionType: jsii.String("dimensionType"),
// Values: []*string{
// jsii.String("values"),
// },
// },
// Model: &SetDimensionProperty{
// DimensionType: jsii.String("dimensionType"),
// Values: []*string{
// jsii.String("values"),
// },
// },
// Platform: &SetDimensionProperty{
// DimensionType: jsii.String("dimensionType"),
// Values: []*string{
// jsii.String("values"),
// },
// },
// },
// Location: &LocationProperty{
// Country: &SetDimensionProperty{
// DimensionType: jsii.String("dimensionType"),
// Values: []*string{
// jsii.String("values"),
// },
// },
// GpsPoint: &GPSPointProperty{
// Coordinates: &CoordinatesProperty{
// Latitude: jsii.Number(123),
// Longitude: jsii.Number(123),
// },
// RangeInKilometers: jsii.Number(123),
// },
// },
// Metrics: metrics,
// UserAttributes: userAttributes,
// },
// },
// SourceSegments: []interface{}{
// &SourceSegmentsProperty{
// Id: jsii.String("id"),
//
// // the properties below are optional
// Version: jsii.Number(123),
// },
// },
// SourceType: jsii.String("sourceType"),
// Type: jsii.String("type"),
// },
// },
// Include: jsii.String("include"),
// },
// Tags: tags,
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-segment.html
//
type CfnSegmentProps struct {
// The unique identifier for the Amazon Pinpoint application that the segment is associated with.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-segment.html#cfn-pinpoint-segment-applicationid
//
ApplicationId *string `field:"required" json:"applicationId" yaml:"applicationId"`
// The name of the segment.
//
// > A segment must have a name otherwise it will not appear in the Amazon Pinpoint console.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-segment.html#cfn-pinpoint-segment-name
//
Name *string `field:"required" json:"name" yaml:"name"`
// An array that defines the dimensions for the segment.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-segment.html#cfn-pinpoint-segment-dimensions
//
Dimensions interface{} `field:"optional" json:"dimensions" yaml:"dimensions"`
// The segment group to use and the dimensions to apply to the group's base segments in order to build the segment.
//
// A segment group can consist of zero or more base segments. Your request can include only one segment group.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-segment.html#cfn-pinpoint-segment-segmentgroups
//
SegmentGroups interface{} `field:"optional" json:"segmentGroups" yaml:"segmentGroups"`
// An array of key-value pairs to apply to this resource.
//
// For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-segment.html#cfn-pinpoint-segment-tags
//
Tags interface{} `field:"optional" json:"tags" yaml:"tags"`
}