# ButtonConfigProperty

Specifies the behavior of buttons that appear in an in-app message template.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
    }
};
```

Golang:

```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

- `android`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnInAppTemplate.OverrideButtonConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_pinpoint.CfnInAppTemplate.OverrideButtonConfigurationProperty.html) — Optional button configuration to use for in-app messages sent to Android devices.

  This button configuration overrides the default button configuration.

- `defaultConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnInAppTemplate.DefaultButtonConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_pinpoint.CfnInAppTemplate.DefaultButtonConfigurationProperty.html) — 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.

- `ios`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnInAppTemplate.OverrideButtonConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_pinpoint.CfnInAppTemplate.OverrideButtonConfigurationProperty.html) — Optional button configuration to use for in-app messages sent to iOS devices.

  This button configuration overrides the default button configuration.

- `web`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnInAppTemplate.OverrideButtonConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_pinpoint.CfnInAppTemplate.OverrideButtonConfigurationProperty.html) — Optional button configuration to use for in-app messages sent to web applications.

  This button configuration overrides the default button configuration.
