@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-25T20:11:07.478Z") @Stability(value=Stable) public class CfnInAppTemplate extends CfnResource implements IInspectable
Example:
// 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.*;
Object customConfig;
Object tags;
CfnInAppTemplate cfnInAppTemplate = CfnInAppTemplate.Builder.create(this, "MyCfnInAppTemplate")
.templateName("templateName")
// the properties below are optional
.content(List.of(InAppMessageContentProperty.builder()
.backgroundColor("backgroundColor")
.bodyConfig(BodyConfigProperty.builder()
.alignment("alignment")
.body("body")
.textColor("textColor")
.build())
.headerConfig(HeaderConfigProperty.builder()
.alignment("alignment")
.header("header")
.textColor("textColor")
.build())
.imageUrl("imageUrl")
.primaryBtn(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())
.secondaryBtn(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())
.build()))
.customConfig(customConfig)
.layout("layout")
.tags(tags)
.templateDescription("templateDescription")
.build();
| Modifier and Type | Class and Description |
|---|---|
static interface |
CfnInAppTemplate.BodyConfigProperty
Example:
|
static class |
CfnInAppTemplate.Builder
A fluent builder for
CfnInAppTemplate. |
static interface |
CfnInAppTemplate.ButtonConfigProperty
Example:
|
static interface |
CfnInAppTemplate.DefaultButtonConfigurationProperty
Example:
|
static interface |
CfnInAppTemplate.HeaderConfigProperty
Example:
|
static interface |
CfnInAppTemplate.InAppMessageContentProperty
Example:
|
static interface |
CfnInAppTemplate.OverrideButtonConfigurationProperty
Example:
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnInAppTemplate(software.constructs.Construct scope,
String id,
CfnInAppTemplateProps props)
Create a new `AWS::Pinpoint::InAppTemplate`.
|
protected |
CfnInAppTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnInAppTemplate(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrArn() |
protected Map<String,Object> |
getCfnProperties() |
Object |
getContent()
`AWS::Pinpoint::InAppTemplate.Content`.
|
Object |
getCustomConfig()
`AWS::Pinpoint::InAppTemplate.CustomConfig`.
|
String |
getLayout()
`AWS::Pinpoint::InAppTemplate.Layout`.
|
TagManager |
getTags()
`AWS::Pinpoint::InAppTemplate.Tags`.
|
String |
getTemplateDescription()
`AWS::Pinpoint::InAppTemplate.TemplateDescription`.
|
String |
getTemplateName()
`AWS::Pinpoint::InAppTemplate.TemplateName`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setContent(IResolvable value)
`AWS::Pinpoint::InAppTemplate.Content`.
|
void |
setContent(List<Object> value)
`AWS::Pinpoint::InAppTemplate.Content`.
|
void |
setCustomConfig(Object value)
`AWS::Pinpoint::InAppTemplate.CustomConfig`.
|
void |
setLayout(String value)
`AWS::Pinpoint::InAppTemplate.Layout`.
|
void |
setTemplateDescription(String value)
`AWS::Pinpoint::InAppTemplate.TemplateDescription`.
|
void |
setTemplateName(String value)
`AWS::Pinpoint::InAppTemplate.TemplateName`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnInAppTemplate(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnInAppTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnInAppTemplate(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnInAppTemplateProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @Nullable public Object getContent()
@Stability(value=Stable)
public void setContent(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setContent(@Nullable
List<Object> value)
@Stability(value=Stable) @NotNull public Object getCustomConfig()
@Stability(value=Stable)
public void setCustomConfig(@NotNull
Object value)
@Stability(value=Stable) @Nullable public String getLayout()
@Stability(value=Stable)
public void setLayout(@Nullable
String value)
@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @Nullable public String getTemplateDescription()
@Stability(value=Stable)
public void setTemplateDescription(@Nullable
String value)
@Stability(value=Stable) @NotNull public String getTemplateName()
@Stability(value=Stable)
public void setTemplateName(@NotNull
String value)
Copyright © 2021. All rights reserved.