Class CfnInAppTemplate
Creates a message template that you can use to send in-app messages.
Inherited Members
Namespace: Amazon.CDK.AWS.Pinpoint
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnInAppTemplate : CfnResource, IInspectable, IInAppTemplateRef, IConstruct, IDependable, IEnvironmentAware, ITaggable
Syntax (vb)
Public Class CfnInAppTemplate Inherits CfnResource Implements IInspectable, IInAppTemplateRef, IConstruct, IDependable, IEnvironmentAware, ITaggable
Remarks
A message template is a set of content and settings that you can define, save, and reuse in messages for any of your Amazon Pinpoint applications. The In-App channel is unavailable in AWS GovCloud (US).
CloudformationResource: AWS::Pinpoint::InAppTemplate
ExampleMetadata: fixture=_generated
Examples
// 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 customConfig;
var tags;
var cfnInAppTemplate = new CfnInAppTemplate(this, "MyCfnInAppTemplate", new CfnInAppTemplateProps {
TemplateName = "templateName",
// the properties below are optional
Content = new [] { new InAppMessageContentProperty {
BackgroundColor = "backgroundColor",
BodyConfig = new BodyConfigProperty {
Alignment = "alignment",
Body = "body",
TextColor = "textColor"
},
HeaderConfig = new HeaderConfigProperty {
Alignment = "alignment",
Header = "header",
TextColor = "textColor"
},
ImageUrl = "imageUrl",
PrimaryBtn = 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"
}
},
SecondaryBtn = 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"
}
}
} },
CustomConfig = customConfig,
Layout = "layout",
Tags = tags,
TemplateDescription = "templateDescription"
});
Synopsis
Constructors
| CfnInAppTemplate(Construct, string, ICfnInAppTemplateProps) | Create a new |
Properties
| AttrArn | The Amazon Resource Name (ARN) of the message template. |
| CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
| CfnProperties | Creates a message template that you can use to send in-app messages. |
| CfnPropertyNames | Creates a message template that you can use to send in-app messages. |
| Content | 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. |
| CustomConfig | Custom data, in the form of key-value pairs, that is included in an in-app messaging payload. |
| InAppTemplateRef | A reference to a InAppTemplate resource. |
| Layout | A string that determines the appearance of the in-app message. |
| Tags | Tag Manager which manages the tags for this resource. |
| TagsRaw | An array of key-value pairs to apply to this resource. |
| TemplateDescription | An optional description of the in-app template. |
| TemplateName | The name of the in-app message template. |
Methods
| ArnForInAppTemplate(IInAppTemplateRef) | Creates a message template that you can use to send in-app messages. |
| FromInAppTemplateArn(Construct, string, string) | Creates a new IInAppTemplateRef from an ARN. |
| FromTemplateName(Construct, string, string) | Creates a new IInAppTemplateRef from a templateName. |
| Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
| IsCfnInAppTemplate(object) | Checks whether the given object is a CfnInAppTemplate. |
| RenderProperties(IDictionary<string, object>) | Creates a message template that you can use to send in-app messages. |
Constructors
CfnInAppTemplate(Construct, string, ICfnInAppTemplateProps)
Create a new AWS::Pinpoint::InAppTemplate.
public CfnInAppTemplate(Construct scope, string id, ICfnInAppTemplateProps props)
Parameters
- scope Construct
Scope in which this resource is defined.
- id string
Construct identifier for this resource (unique in its scope).
- props ICfnInAppTemplateProps
Resource properties.
Remarks
A message template is a set of content and settings that you can define, save, and reuse in messages for any of your Amazon Pinpoint applications. The In-App channel is unavailable in AWS GovCloud (US).
CloudformationResource: AWS::Pinpoint::InAppTemplate
ExampleMetadata: fixture=_generated
Properties
AttrArn
The Amazon Resource Name (ARN) of the message template.
public virtual string AttrArn { get; }
Property Value
Remarks
CloudformationAttribute: Arn
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
Remarks
A message template is a set of content and settings that you can define, save, and reuse in messages for any of your Amazon Pinpoint applications. The In-App channel is unavailable in AWS GovCloud (US).
CloudformationResource: AWS::Pinpoint::InAppTemplate
ExampleMetadata: fixture=_generated
CfnProperties
Creates a message template that you can use to send in-app messages.
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
Overrides
Remarks
A message template is a set of content and settings that you can define, save, and reuse in messages for any of your Amazon Pinpoint applications. The In-App channel is unavailable in AWS GovCloud (US).
CloudformationResource: AWS::Pinpoint::InAppTemplate
ExampleMetadata: fixture=_generated
CfnPropertyNames
Creates a message template that you can use to send in-app messages.
protected override IDictionary<string, string> CfnPropertyNames { get; }
Property Value
Overrides
Remarks
A message template is a set of content and settings that you can define, save, and reuse in messages for any of your Amazon Pinpoint applications. The In-App channel is unavailable in AWS GovCloud (US).
CloudformationResource: AWS::Pinpoint::InAppTemplate
ExampleMetadata: fixture=_generated
Content
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.
public virtual object? Content { get; set; }
Property Value
Remarks
Type union: either IResolvable or (either IResolvable or CfnInAppTemplate.IInAppMessageContentProperty)[]
CustomConfig
Custom data, in the form of key-value pairs, that is included in an in-app messaging payload.
public virtual object CustomConfig { get; set; }
Property Value
Remarks
A message template is a set of content and settings that you can define, save, and reuse in messages for any of your Amazon Pinpoint applications. The In-App channel is unavailable in AWS GovCloud (US).
CloudformationResource: AWS::Pinpoint::InAppTemplate
ExampleMetadata: fixture=_generated
InAppTemplateRef
A reference to a InAppTemplate resource.
public virtual IInAppTemplateReference InAppTemplateRef { get; }
Property Value
Remarks
A message template is a set of content and settings that you can define, save, and reuse in messages for any of your Amazon Pinpoint applications. The In-App channel is unavailable in AWS GovCloud (US).
CloudformationResource: AWS::Pinpoint::InAppTemplate
ExampleMetadata: fixture=_generated
Layout
A string that determines the appearance of the in-app message.
public virtual string? Layout { get; set; }
Property Value
Remarks
You can specify one of the following:.
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
Remarks
A message template is a set of content and settings that you can define, save, and reuse in messages for any of your Amazon Pinpoint applications. The In-App channel is unavailable in AWS GovCloud (US).
CloudformationResource: AWS::Pinpoint::InAppTemplate
ExampleMetadata: fixture=_generated
TagsRaw
An array of key-value pairs to apply to this resource.
public virtual object TagsRaw { get; set; }
Property Value
Remarks
A message template is a set of content and settings that you can define, save, and reuse in messages for any of your Amazon Pinpoint applications. The In-App channel is unavailable in AWS GovCloud (US).
CloudformationResource: AWS::Pinpoint::InAppTemplate
ExampleMetadata: fixture=_generated
TemplateDescription
An optional description of the in-app template.
public virtual string? TemplateDescription { get; set; }
Property Value
Remarks
A message template is a set of content and settings that you can define, save, and reuse in messages for any of your Amazon Pinpoint applications. The In-App channel is unavailable in AWS GovCloud (US).
CloudformationResource: AWS::Pinpoint::InAppTemplate
ExampleMetadata: fixture=_generated
TemplateName
The name of the in-app message template.
public virtual string TemplateName { get; set; }
Property Value
Remarks
A message template is a set of content and settings that you can define, save, and reuse in messages for any of your Amazon Pinpoint applications. The In-App channel is unavailable in AWS GovCloud (US).
CloudformationResource: AWS::Pinpoint::InAppTemplate
ExampleMetadata: fixture=_generated
Methods
ArnForInAppTemplate(IInAppTemplateRef)
Creates a message template that you can use to send in-app messages.
public static string ArnForInAppTemplate(IInAppTemplateRef resource)
Parameters
- resource IInAppTemplateRef
Returns
Remarks
A message template is a set of content and settings that you can define, save, and reuse in messages for any of your Amazon Pinpoint applications. The In-App channel is unavailable in AWS GovCloud (US).
CloudformationResource: AWS::Pinpoint::InAppTemplate
ExampleMetadata: fixture=_generated
Examples
// 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 customConfig;
var tags;
var cfnInAppTemplate = new CfnInAppTemplate(this, "MyCfnInAppTemplate", new CfnInAppTemplateProps {
TemplateName = "templateName",
// the properties below are optional
Content = new [] { new InAppMessageContentProperty {
BackgroundColor = "backgroundColor",
BodyConfig = new BodyConfigProperty {
Alignment = "alignment",
Body = "body",
TextColor = "textColor"
},
HeaderConfig = new HeaderConfigProperty {
Alignment = "alignment",
Header = "header",
TextColor = "textColor"
},
ImageUrl = "imageUrl",
PrimaryBtn = 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"
}
},
SecondaryBtn = 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"
}
}
} },
CustomConfig = customConfig,
Layout = "layout",
Tags = tags,
TemplateDescription = "templateDescription"
});
FromInAppTemplateArn(Construct, string, string)
Creates a new IInAppTemplateRef from an ARN.
public static IInAppTemplateRef FromInAppTemplateArn(Construct scope, string id, string arn)
Parameters
Returns
Remarks
A message template is a set of content and settings that you can define, save, and reuse in messages for any of your Amazon Pinpoint applications. The In-App channel is unavailable in AWS GovCloud (US).
CloudformationResource: AWS::Pinpoint::InAppTemplate
ExampleMetadata: fixture=_generated
FromTemplateName(Construct, string, string)
Creates a new IInAppTemplateRef from a templateName.
public static IInAppTemplateRef FromTemplateName(Construct scope, string id, string templateName)
Parameters
Returns
Remarks
A message template is a set of content and settings that you can define, save, and reuse in messages for any of your Amazon Pinpoint applications. The In-App channel is unavailable in AWS GovCloud (US).
CloudformationResource: AWS::Pinpoint::InAppTemplate
ExampleMetadata: fixture=_generated
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
Remarks
A message template is a set of content and settings that you can define, save, and reuse in messages for any of your Amazon Pinpoint applications. The In-App channel is unavailable in AWS GovCloud (US).
CloudformationResource: AWS::Pinpoint::InAppTemplate
ExampleMetadata: fixture=_generated
IsCfnInAppTemplate(object)
Checks whether the given object is a CfnInAppTemplate.
public static bool IsCfnInAppTemplate(object x)
Parameters
- x object
Returns
Remarks
A message template is a set of content and settings that you can define, save, and reuse in messages for any of your Amazon Pinpoint applications. The In-App channel is unavailable in AWS GovCloud (US).
CloudformationResource: AWS::Pinpoint::InAppTemplate
ExampleMetadata: fixture=_generated
RenderProperties(IDictionary<string, object>)
Creates a message template that you can use to send in-app messages.
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props IDictionary<string, object>
Returns
Overrides
Remarks
A message template is a set of content and settings that you can define, save, and reuse in messages for any of your Amazon Pinpoint applications. The In-App channel is unavailable in AWS GovCloud (US).
CloudformationResource: AWS::Pinpoint::InAppTemplate
ExampleMetadata: fixture=_generated