ButtonConfigProperty Struct
Specifies the behavior of buttons that appear in an in-app message template.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_pinpoint as pinpoint } from 'aws-cdk-lib';
const buttonConfigProperty: pinpoint.CfnInAppTemplate.ButtonConfigProperty = {
android: {
buttonAction: 'buttonAction',
link: 'link',
},
defaultConfig: {
backgroundColor: 'backgroundColor',
borderRadius: 123,
buttonAction: 'buttonAction',
link: 'link',
text: 'text',
textColor: 'textColor',
},
ios: {
buttonAction: 'buttonAction',
link: 'link',
},
web: {
buttonAction: 'buttonAction',
link: 'link',
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_pinpoint as pinpoint
button_config_property = pinpoint.CfnInAppTemplate.ButtonConfigProperty(
android=pinpoint.CfnInAppTemplate.OverrideButtonConfigurationProperty(
button_action="buttonAction",
link="link"
),
default_config=pinpoint.CfnInAppTemplate.DefaultButtonConfigurationProperty(
background_color="backgroundColor",
border_radius=123,
button_action="buttonAction",
link="link",
text="text",
text_color="textColor"
),
ios=pinpoint.CfnInAppTemplate.OverrideButtonConfigurationProperty(
button_action="buttonAction",
link="link"
),
web=pinpoint.CfnInAppTemplate.OverrideButtonConfigurationProperty(
button_action="buttonAction",
link="link"
)
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.pinpoint.*;
ButtonConfigProperty buttonConfigProperty = ButtonConfigProperty.builder()
.android(OverrideButtonConfigurationProperty.builder()
.buttonAction("buttonAction")
.link("link")
.build())
.defaultConfig(DefaultButtonConfigurationProperty.builder()
.backgroundColor("backgroundColor")
.borderRadius(123)
.buttonAction("buttonAction")
.link("link")
.text("text")
.textColor("textColor")
.build())
.ios(OverrideButtonConfigurationProperty.builder()
.buttonAction("buttonAction")
.link("link")
.build())
.web(OverrideButtonConfigurationProperty.builder()
.buttonAction("buttonAction")
.link("link")
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Pinpoint;
var buttonConfigProperty = new ButtonConfigProperty {
Android = new OverrideButtonConfigurationProperty {
ButtonAction = "buttonAction",
Link = "link"
},
DefaultConfig = new DefaultButtonConfigurationProperty {
BackgroundColor = "backgroundColor",
BorderRadius = 123,
ButtonAction = "buttonAction",
Link = "link",
Text = "text",
TextColor = "textColor"
},
Ios = new OverrideButtonConfigurationProperty {
ButtonAction = "buttonAction",
Link = "link"
},
Web = new OverrideButtonConfigurationProperty {
ButtonAction = "buttonAction",
Link = "link"
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// 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"
buttonConfigProperty := &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"),
},
}
Properties
androidoptionalIResolvable | CfnInAppTemplate.androidoptionaltyping.Union[IResolvable, OverrideButtonConfigurationProperty]androidoptionalIResolvableAndroidoptionalIResolvableAndroidoptionalinterface{} #Optional button configuration to use for in-app messages sent to Android devices.
This button configuration overrides the default button configuration.
defaultConfigoptionalIResolvable | CfnInAppTemplate.default_configoptionaltyping.Union[IResolvable, DefaultButtonConfigurationProperty]defaultConfigoptionalIResolvableDefaultConfigoptionalIResolvableDefaultConfigoptionalinterface{} #Specifies the default behavior of a button that appears in an in-app message.
You can optionally add button configurations that specifically apply to iOS, Android, or web browser users.
iosoptionalIResolvable | CfnInAppTemplate.iosoptionaltyping.Union[IResolvable, OverrideButtonConfigurationProperty]iosoptionalIResolvableIosoptionalIResolvableIosoptionalinterface{} #Optional button configuration to use for in-app messages sent to iOS devices.
This button configuration overrides the default button configuration.
weboptionalIResolvable | CfnInAppTemplate.weboptionaltyping.Union[IResolvable, OverrideButtonConfigurationProperty]weboptionalIResolvableWeboptionalIResolvableWeboptionalinterface{} #Optional button configuration to use for in-app messages sent to web applications.
This button configuration overrides the default button configuration.