interface CfnSegmentProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Pinpoint.CfnSegmentProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awspinpoint#CfnSegmentProps |
Java | software.amazon.awscdk.services.pinpoint.CfnSegmentProps |
Python | aws_cdk.aws_pinpoint.CfnSegmentProps |
TypeScript | aws-cdk-lib » aws_pinpoint » CfnSegmentProps |
Properties for defining a CfnSegment
.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-segment.html
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';
declare const attributes: any;
declare const metrics: any;
declare const tags: any;
declare const userAttributes: any;
const cfnSegmentProps: pinpoint.CfnSegmentProps = {
applicationId: 'applicationId',
name: 'name',
// the properties below are optional
dimensions: {
attributes: attributes,
behavior: {
recency: {
duration: 'duration',
recencyType: 'recencyType',
},
},
demographic: {
appVersion: {
dimensionType: 'dimensionType',
values: ['values'],
},
channel: {
dimensionType: 'dimensionType',
values: ['values'],
},
deviceType: {
dimensionType: 'dimensionType',
values: ['values'],
},
make: {
dimensionType: 'dimensionType',
values: ['values'],
},
model: {
dimensionType: 'dimensionType',
values: ['values'],
},
platform: {
dimensionType: 'dimensionType',
values: ['values'],
},
},
location: {
country: {
dimensionType: 'dimensionType',
values: ['values'],
},
gpsPoint: {
coordinates: {
latitude: 123,
longitude: 123,
},
rangeInKilometers: 123,
},
},
metrics: metrics,
userAttributes: userAttributes,
},
segmentGroups: {
groups: [{
dimensions: [{
attributes: attributes,
behavior: {
recency: {
duration: 'duration',
recencyType: 'recencyType',
},
},
demographic: {
appVersion: {
dimensionType: 'dimensionType',
values: ['values'],
},
channel: {
dimensionType: 'dimensionType',
values: ['values'],
},
deviceType: {
dimensionType: 'dimensionType',
values: ['values'],
},
make: {
dimensionType: 'dimensionType',
values: ['values'],
},
model: {
dimensionType: 'dimensionType',
values: ['values'],
},
platform: {
dimensionType: 'dimensionType',
values: ['values'],
},
},
location: {
country: {
dimensionType: 'dimensionType',
values: ['values'],
},
gpsPoint: {
coordinates: {
latitude: 123,
longitude: 123,
},
rangeInKilometers: 123,
},
},
metrics: metrics,
userAttributes: userAttributes,
}],
sourceSegments: [{
id: 'id',
// the properties below are optional
version: 123,
}],
sourceType: 'sourceType',
type: 'type',
}],
include: 'include',
},
tags: tags,
};
Properties
Name | Type | Description |
---|---|---|
application | string | The unique identifier for the Amazon Pinpoint application that the segment is associated with. |
name | string | The name of the segment. |
dimensions? | IResolvable | Segment | An array that defines the dimensions for the segment. |
segment | IResolvable | Segment | The segment group to use and the dimensions to apply to the group's base segments in order to build the segment. |
tags? | any | An array of key-value pairs to apply to this resource. |
applicationId
Type:
string
The unique identifier for the Amazon Pinpoint application that the segment is associated with.
name
Type:
string
The name of the segment.
A segment must have a name otherwise it will not appear in the Amazon Pinpoint console.
dimensions?
Type:
IResolvable
|
Segment
(optional)
An array that defines the dimensions for the segment.
segmentGroups?
Type:
IResolvable
|
Segment
(optional)
The segment group to use and the dimensions to apply to the group's base segments in order to build the segment.
A segment group can consist of zero or more base segments. Your request can include only one segment group.
tags?
Type:
any
(optional)
An array of key-value pairs to apply to this resource.
For more information, see Tag .