-
Notifications
You must be signed in to change notification settings - Fork 17
/
awspinpoint_CfnInAppTemplateProps.go
107 lines (104 loc) · 4.48 KB
/
awspinpoint_CfnInAppTemplateProps.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
package awspinpoint
// Properties for defining a `CfnInAppTemplate`.
//
// 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 customConfig interface{}
// var tags interface{}
//
// cfnInAppTemplateProps := &cfnInAppTemplateProps{
// templateName: jsii.String("templateName"),
//
// // the properties below are optional
// content: []interface{}{
// &inAppMessageContentProperty{
// backgroundColor: jsii.String("backgroundColor"),
// bodyConfig: &bodyConfigProperty{
// alignment: jsii.String("alignment"),
// body: jsii.String("body"),
// textColor: jsii.String("textColor"),
// },
// headerConfig: &headerConfigProperty{
// alignment: jsii.String("alignment"),
// header: jsii.String("header"),
// textColor: jsii.String("textColor"),
// },
// imageUrl: jsii.String("imageUrl"),
// primaryBtn: &buttonConfigProperty{
// android: &overrideButtonConfigurationProperty{
// buttonAction: jsii.String("buttonAction"),
// link: jsii.String("link"),
// },
// defaultConfig: &defaultButtonConfigurationProperty{
// backgroundColor: jsii.String("backgroundColor"),
// borderRadius: jsii.Number(123),
// buttonAction: jsii.String("buttonAction"),
// link: jsii.String("link"),
// text: jsii.String("text"),
// textColor: jsii.String("textColor"),
// },
// ios: &overrideButtonConfigurationProperty{
// buttonAction: jsii.String("buttonAction"),
// link: jsii.String("link"),
// },
// web: &overrideButtonConfigurationProperty{
// buttonAction: jsii.String("buttonAction"),
// link: jsii.String("link"),
// },
// },
// secondaryBtn: &buttonConfigProperty{
// android: &overrideButtonConfigurationProperty{
// buttonAction: jsii.String("buttonAction"),
// link: jsii.String("link"),
// },
// defaultConfig: &defaultButtonConfigurationProperty{
// backgroundColor: jsii.String("backgroundColor"),
// borderRadius: jsii.Number(123),
// buttonAction: jsii.String("buttonAction"),
// link: jsii.String("link"),
// text: jsii.String("text"),
// textColor: jsii.String("textColor"),
// },
// ios: &overrideButtonConfigurationProperty{
// buttonAction: jsii.String("buttonAction"),
// link: jsii.String("link"),
// },
// web: &overrideButtonConfigurationProperty{
// buttonAction: jsii.String("buttonAction"),
// link: jsii.String("link"),
// },
// },
// },
// },
// customConfig: customConfig,
// layout: jsii.String("layout"),
// tags: tags,
// templateDescription: jsii.String("templateDescription"),
// }
//
type CfnInAppTemplateProps struct {
// The name of the in-app message template.
TemplateName *string `field:"required" json:"templateName" yaml:"templateName"`
// An object that contains information about the content of an in-app message, including its title and body text, text colors, background colors, images, buttons, and behaviors.
Content interface{} `field:"optional" json:"content" yaml:"content"`
// Custom data, in the form of key-value pairs, that is included in an in-app messaging payload.
CustomConfig interface{} `field:"optional" json:"customConfig" yaml:"customConfig"`
// A string that determines the appearance of the in-app message. You can specify one of the following:.
//
// - `BOTTOM_BANNER` – a message that appears as a banner at the bottom of the page.
// - `TOP_BANNER` – a message that appears as a banner at the top of the page.
// - `OVERLAYS` – a message that covers entire screen.
// - `MOBILE_FEED` – a message that appears in a window in front of the page.
// - `MIDDLE_BANNER` – a message that appears as a banner in the middle of the page.
// - `CAROUSEL` – a scrollable layout of up to five unique messages.
Layout *string `field:"optional" json:"layout" yaml:"layout"`
// 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) .
Tags interface{} `field:"optional" json:"tags" yaml:"tags"`
// An optional description of the in-app template.
TemplateDescription *string `field:"optional" json:"templateDescription" yaml:"templateDescription"`
}