DefaultButtonConfigurationProperty Struct
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.
| 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 defaultButtonConfigurationProperty: pinpoint.CfnInAppTemplate.DefaultButtonConfigurationProperty = {
backgroundColor: 'backgroundColor',
borderRadius: 123,
buttonAction: 'buttonAction',
link: 'link',
text: 'text',
textColor: 'textColor',
};
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
default_button_configuration_property = pinpoint.CfnInAppTemplate.DefaultButtonConfigurationProperty(
background_color="backgroundColor",
border_radius=123,
button_action="buttonAction",
link="link",
text="text",
text_color="textColor"
)
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.*;
DefaultButtonConfigurationProperty defaultButtonConfigurationProperty = DefaultButtonConfigurationProperty.builder()
.backgroundColor("backgroundColor")
.borderRadius(123)
.buttonAction("buttonAction")
.link("link")
.text("text")
.textColor("textColor")
.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 defaultButtonConfigurationProperty = new DefaultButtonConfigurationProperty {
BackgroundColor = "backgroundColor",
BorderRadius = 123,
ButtonAction = "buttonAction",
Link = "link",
Text = "text",
TextColor = "textColor"
};
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"
defaultButtonConfigurationProperty := &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"),
}
Properties
backgroundColoroptionalstringbackground_coloroptionalstrbackgroundColoroptionalStringBackgroundColoroptionalstringBackgroundColoroptional*string #The background color of a button, expressed as a hex color code (such as #000000 for black).
borderRadiusoptionalnumberborder_radiusoptionalint | floatborderRadiusoptionalNumberBorderRadiusoptionaldoubleBorderRadiusoptional*float64 #The border radius of a button.
buttonActionoptionalstringbutton_actionoptionalstrbuttonActionoptionalStringButtonActionoptionalstringButtonActionoptional*string #The action that occurs when a recipient chooses a button in an in-app message.
You can specify one of the following:
LINK– A link to a web destination.DEEP_LINK– A link to a specific page in an application.CLOSE– Dismisses the message.
The destination (such as a URL) for a button.
The text that appears on a button in an in-app message.
textColoroptionalstringtext_coloroptionalstrtextColoroptionalStringTextColoroptionalstringTextColoroptional*string #The color of the body text in a button, expressed as a hex color code (such as #000000 for black).