aws-cdk-lib.aws_pinpoint.CfnSegmentProps

interface CfnSegmentProps

LanguageType name
.NETAmazon.CDK.AWS.Pinpoint.CfnSegmentProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awspinpoint#CfnSegmentProps
Javasoftware.amazon.awscdk.services.pinpoint.CfnSegmentProps
Pythonaws_cdk.aws_pinpoint.CfnSegmentProps
TypeScript aws-cdk-lib » aws_pinpoint » CfnSegmentProps

Properties for defining a CfnSegment.

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

NameTypeDescription
applicationIdstringThe unique identifier for the Amazon Pinpoint application that the segment is associated with.
namestringThe name of the segment.
dimensions?IResolvable | SegmentDimensionsPropertyThe criteria that define the dimensions for the segment.
segmentGroups?IResolvable | SegmentGroupsPropertyThe segment group to use and the dimensions to apply to the group's base segments in order to build the segment.
tags?anyAn 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 | SegmentDimensionsProperty (optional)

The criteria that define the dimensions for the segment.


segmentGroups?

Type: IResolvable | SegmentGroupsProperty (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 .