CfnApplicationSettingsProps
Properties for defining a CfnApplicationSettings.
| Source |
|---|
Example
// 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 cfnApplicationSettingsProps: pinpoint.CfnApplicationSettingsProps = {
applicationId: 'applicationId',
// the properties below are optional
campaignHook: {
lambdaFunctionName: 'lambdaFunctionName',
mode: 'mode',
webUrl: 'webUrl',
},
cloudWatchMetricsEnabled: false,
limits: {
daily: 123,
maximumDuration: 123,
messagesPerSecond: 123,
total: 123,
},
quietTime: {
end: 'end',
start: 'start',
},
};
# 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
cfn_application_settings_props = pinpoint.CfnApplicationSettingsProps(
application_id="applicationId",
# the properties below are optional
campaign_hook=pinpoint.CfnApplicationSettings.CampaignHookProperty(
lambda_function_name="lambdaFunctionName",
mode="mode",
web_url="webUrl"
),
cloud_watch_metrics_enabled=False,
limits=pinpoint.CfnApplicationSettings.LimitsProperty(
daily=123,
maximum_duration=123,
messages_per_second=123,
total=123
),
quiet_time=pinpoint.CfnApplicationSettings.QuietTimeProperty(
end="end",
start="start"
)
)
// 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.*;
CfnApplicationSettingsProps cfnApplicationSettingsProps = CfnApplicationSettingsProps.builder()
.applicationId("applicationId")
// the properties below are optional
.campaignHook(CampaignHookProperty.builder()
.lambdaFunctionName("lambdaFunctionName")
.mode("mode")
.webUrl("webUrl")
.build())
.cloudWatchMetricsEnabled(false)
.limits(LimitsProperty.builder()
.daily(123)
.maximumDuration(123)
.messagesPerSecond(123)
.total(123)
.build())
.quietTime(QuietTimeProperty.builder()
.end("end")
.start("start")
.build())
.build();
// 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 cfnApplicationSettingsProps = new CfnApplicationSettingsProps {
ApplicationId = "applicationId",
// the properties below are optional
CampaignHook = new CampaignHookProperty {
LambdaFunctionName = "lambdaFunctionName",
Mode = "mode",
WebUrl = "webUrl"
},
CloudWatchMetricsEnabled = false,
Limits = new LimitsProperty {
Daily = 123,
MaximumDuration = 123,
MessagesPerSecond = 123,
Total = 123
},
QuietTime = new QuietTimeProperty {
End = "end",
Start = "start"
}
};
// 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"
cfnApplicationSettingsProps := &CfnApplicationSettingsProps{
ApplicationId: jsii.String("applicationId"),
// the properties below are optional
CampaignHook: &CampaignHookProperty{
LambdaFunctionName: jsii.String("lambdaFunctionName"),
Mode: jsii.String("mode"),
WebUrl: jsii.String("webUrl"),
},
CloudWatchMetricsEnabled: jsii.Boolean(false),
Limits: &LimitsProperty{
Daily: jsii.Number(123),
MaximumDuration: jsii.Number(123),
MessagesPerSecond: jsii.Number(123),
Total: jsii.Number(123),
},
QuietTime: &QuietTimeProperty{
End: jsii.String("end"),
Start: jsii.String("start"),
},
}
Properties
applicationIdstringapplication_idstrapplicationIdStringApplicationIdstringApplicationId*string required #campaignHookoptionalIResolvable | CfnApplicationSettings.campaign_hookoptionaltyping.Union[IResolvable, CampaignHookProperty]campaignHookoptionalIResolvableCampaignHookoptionalIResolvableCampaignHookoptionalinterface{} #To override these settings for a specific campaign, use the Campaign resource to define custom Lambda function settings for the campaign.
cloudWatchMetricsEnabledoptionalboolean | IResolvablecloud_watch_metrics_enabledoptionaltyping.Union[bool, IResolvable]cloudWatchMetricsEnabledoptionalBooleanCloudWatchMetricsEnabledoptionalboolCloudWatchMetricsEnabledoptionalinterface{} #limitsoptionalIResolvable | CfnApplicationSettings.limitsoptionaltyping.Union[IResolvable, LimitsProperty]limitsoptionalIResolvableLimitsoptionalIResolvableLimitsoptionalinterface{} #To override these limits for a specific campaign, use the Campaign resource to define custom limits for the campaign.
quietTimeoptionalIResolvable | CfnApplicationSettings.quiet_timeoptionaltyping.Union[IResolvable, QuietTimeProperty]quietTimeoptionalIResolvableQuietTimeoptionalIResolvableQuietTimeoptionalinterface{} #notes
Quiet time is a specific time range when campaigns don't send messages to endpoints, if all the following conditions are met:
The
EndpointDemographic.Timezoneproperty of the endpoint is set to a valid value.The current time in the endpoint's time zone is later than or equal to the time specified by the
QuietTime.Startproperty for the application (or a campaign that has custom quiet time settings).The current time in the endpoint's time zone is earlier than or equal to the time specified by the
QuietTime.Endproperty for the application (or a campaign that has custom quiet time settings).
If any of the preceding conditions isn't met, the endpoint will receive messages from a campaign, even if quiet time is enabled.
To override the default quiet time settings for a specific campaign, use the Campaign resource to define a custom quiet time for the campaign.