# InAppMessageButtonProperty

Specifies the configuration of a button that appears in an in-app message.

- 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 inAppMessageButtonProperty: pinpoint.CfnCampaign.InAppMessageButtonProperty = {
  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

in_app_message_button_property = pinpoint.CfnCampaign.InAppMessageButtonProperty(
    android=pinpoint.CfnCampaign.OverrideButtonConfigurationProperty(
        button_action="buttonAction",
        link="link"
    ),
    default_config=pinpoint.CfnCampaign.DefaultButtonConfigurationProperty(
        background_color="backgroundColor",
        border_radius=123,
        button_action="buttonAction",
        link="link",
        text="text",
        text_color="textColor"
    ),
    ios=pinpoint.CfnCampaign.OverrideButtonConfigurationProperty(
        button_action="buttonAction",
        link="link"
    ),
    web=pinpoint.CfnCampaign.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.*;

InAppMessageButtonProperty inAppMessageButtonProperty = InAppMessageButtonProperty.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 inAppMessageButtonProperty = new InAppMessageButtonProperty {
    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"

inAppMessageButtonProperty := &InAppMessageButtonProperty{
	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) | [CfnCampaign.OverrideButtonConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_pinpoint.CfnCampaign.OverrideButtonConfigurationProperty.html) — An object that defines the default behavior for a button in in-app messages sent to Android.

- `defaultConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCampaign.DefaultButtonConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_pinpoint.CfnCampaign.DefaultButtonConfigurationProperty.html) — An object that defines the default behavior for a button in an in-app message.

- `ios`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCampaign.OverrideButtonConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_pinpoint.CfnCampaign.OverrideButtonConfigurationProperty.html) — An object that defines the default behavior for a button in in-app messages sent to iOS devices.

- `web`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCampaign.OverrideButtonConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_pinpoint.CfnCampaign.OverrideButtonConfigurationProperty.html) — An object that defines the default behavior for a button in in-app messages for web applications.
