CfnSegmentPropsMixin
- class aws_cdk.mixins_preview.aws_pinpoint.mixins.CfnSegmentPropsMixin(props, *, strategy=None)
Bases:
MixinUpdates the configuration, dimension, and other settings for an existing segment.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-segment.html
- CloudformationResource:
AWS::Pinpoint::Segment
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_pinpoint import mixins as pinpoint_mixins # attributes: Any # metrics: Any # tags: Any # user_attributes: Any cfn_segment_props_mixin = pinpoint_mixins.CfnSegmentPropsMixin(pinpoint_mixins.CfnSegmentMixinProps( application_id="applicationId", dimensions=pinpoint_mixins.CfnSegmentPropsMixin.SegmentDimensionsProperty( attributes=attributes, behavior=pinpoint_mixins.CfnSegmentPropsMixin.BehaviorProperty( recency=pinpoint_mixins.CfnSegmentPropsMixin.RecencyProperty( duration="duration", recency_type="recencyType" ) ), demographic=pinpoint_mixins.CfnSegmentPropsMixin.DemographicProperty( app_version=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), channel=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), device_type=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), make=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), model=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), platform=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ) ), location=pinpoint_mixins.CfnSegmentPropsMixin.LocationProperty( country=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), gps_point=pinpoint_mixins.CfnSegmentPropsMixin.GPSPointProperty( coordinates=pinpoint_mixins.CfnSegmentPropsMixin.CoordinatesProperty( latitude=123, longitude=123 ), range_in_kilometers=123 ) ), metrics=metrics, user_attributes=user_attributes ), name="name", segment_groups=pinpoint_mixins.CfnSegmentPropsMixin.SegmentGroupsProperty( groups=[pinpoint_mixins.CfnSegmentPropsMixin.GroupsProperty( dimensions=[pinpoint_mixins.CfnSegmentPropsMixin.SegmentDimensionsProperty( attributes=attributes, behavior=pinpoint_mixins.CfnSegmentPropsMixin.BehaviorProperty( recency=pinpoint_mixins.CfnSegmentPropsMixin.RecencyProperty( duration="duration", recency_type="recencyType" ) ), demographic=pinpoint_mixins.CfnSegmentPropsMixin.DemographicProperty( app_version=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), channel=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), device_type=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), make=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), model=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), platform=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ) ), location=pinpoint_mixins.CfnSegmentPropsMixin.LocationProperty( country=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), gps_point=pinpoint_mixins.CfnSegmentPropsMixin.GPSPointProperty( coordinates=pinpoint_mixins.CfnSegmentPropsMixin.CoordinatesProperty( latitude=123, longitude=123 ), range_in_kilometers=123 ) ), metrics=metrics, user_attributes=user_attributes )], source_segments=[pinpoint_mixins.CfnSegmentPropsMixin.SourceSegmentsProperty( id="id", version=123 )], source_type="sourceType", type="type" )], include="include" ), tags=tags ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::Pinpoint::Segment.- Parameters:
props (
Union[CfnSegmentMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['applicationId', 'dimensions', 'name', 'segmentGroups', 'tags']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
BehaviorProperty
- class CfnSegmentPropsMixin.BehaviorProperty(*, recency=None)
Bases:
objectSpecifies behavior-based criteria for the segment, such as how recently users have used your app.
- Parameters:
recency (
Union[IResolvable,RecencyProperty,Dict[str,Any],None]) – Specifies how recently segment members were active.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_pinpoint import mixins as pinpoint_mixins behavior_property = pinpoint_mixins.CfnSegmentPropsMixin.BehaviorProperty( recency=pinpoint_mixins.CfnSegmentPropsMixin.RecencyProperty( duration="duration", recency_type="recencyType" ) )
Attributes
- recency
Specifies how recently segment members were active.
CoordinatesProperty
- class CfnSegmentPropsMixin.CoordinatesProperty(*, latitude=None, longitude=None)
Bases:
objectSpecifies the GPS coordinates of a location.
- Parameters:
latitude (
Union[int,float,None]) – The latitude coordinate of the location.longitude (
Union[int,float,None]) – The longitude coordinate of the location.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_pinpoint import mixins as pinpoint_mixins coordinates_property = pinpoint_mixins.CfnSegmentPropsMixin.CoordinatesProperty( latitude=123, longitude=123 )
Attributes
- latitude
The latitude coordinate of the location.
- longitude
The longitude coordinate of the location.
DemographicProperty
- class CfnSegmentPropsMixin.DemographicProperty(*, app_version=None, channel=None, device_type=None, make=None, model=None, platform=None)
Bases:
objectSpecifies demographic-based criteria, such as device platform, for the segment.
- Parameters:
app_version (
Union[IResolvable,SetDimensionProperty,Dict[str,Any],None]) – The app version criteria for the segment.channel (
Union[IResolvable,SetDimensionProperty,Dict[str,Any],None]) – The channel criteria for the segment.device_type (
Union[IResolvable,SetDimensionProperty,Dict[str,Any],None]) – The device type criteria for the segment.make (
Union[IResolvable,SetDimensionProperty,Dict[str,Any],None]) – The device make criteria for the segment.model (
Union[IResolvable,SetDimensionProperty,Dict[str,Any],None]) – The device model criteria for the segment.platform (
Union[IResolvable,SetDimensionProperty,Dict[str,Any],None]) – The device platform criteria for the segment.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_pinpoint import mixins as pinpoint_mixins demographic_property = pinpoint_mixins.CfnSegmentPropsMixin.DemographicProperty( app_version=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), channel=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), device_type=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), make=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), model=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), platform=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ) )
Attributes
- app_version
The app version criteria for the segment.
- channel
The channel criteria for the segment.
- device_type
The device type criteria for the segment.
- make
The device make criteria for the segment.
- model
The device model criteria for the segment.
- platform
The device platform criteria for the segment.
GPSPointProperty
- class CfnSegmentPropsMixin.GPSPointProperty(*, coordinates=None, range_in_kilometers=None)
Bases:
objectSpecifies the GPS coordinates of the endpoint location.
- Parameters:
coordinates (
Union[IResolvable,CoordinatesProperty,Dict[str,Any],None]) – The GPS coordinates to measure distance from.range_in_kilometers (
Union[int,float,None]) – The range, in kilometers, from the GPS coordinates.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_pinpoint import mixins as pinpoint_mixins g_pSPoint_property = pinpoint_mixins.CfnSegmentPropsMixin.GPSPointProperty( coordinates=pinpoint_mixins.CfnSegmentPropsMixin.CoordinatesProperty( latitude=123, longitude=123 ), range_in_kilometers=123 )
Attributes
- coordinates
The GPS coordinates to measure distance from.
- range_in_kilometers
The range, in kilometers, from the GPS coordinates.
GroupsProperty
- class CfnSegmentPropsMixin.GroupsProperty(*, dimensions=None, source_segments=None, source_type=None, type=None)
Bases:
objectAn array that defines the set of segment criteria to evaluate when handling segment groups for the segment.
- Parameters:
dimensions (
Union[IResolvable,Sequence[Union[IResolvable,SegmentDimensionsProperty,Dict[str,Any]]],None]) – An array that defines the dimensions to include or exclude from the segment.source_segments (
Union[IResolvable,Sequence[Union[IResolvable,SourceSegmentsProperty,Dict[str,Any]]],None]) – The base segment to build the segment on. A base segment, also called a source segment , defines the initial population of endpoints for a segment. When you add dimensions to the segment, Amazon Pinpoint filters the base segment by using the dimensions that you specify. You can specify more than one dimensional segment or only one imported segment. If you specify an imported segment, the segment size estimate that displays on the Amazon Pinpoint console indicates the size of the imported segment without any filters applied to it.source_type (
Optional[str]) – Specifies how to handle multiple base segments for the segment. For example, if you specify three base segments for the segment, whether the resulting segment is based on all, any, or none of the base segments.type (
Optional[str]) – Specifies how to handle multiple dimensions for the segment. For example, if you specify three dimensions for the segment, whether the resulting segment includes endpoints that match all, any, or none of the dimensions.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_pinpoint import mixins as pinpoint_mixins # attributes: Any # metrics: Any # user_attributes: Any groups_property = pinpoint_mixins.CfnSegmentPropsMixin.GroupsProperty( dimensions=[pinpoint_mixins.CfnSegmentPropsMixin.SegmentDimensionsProperty( attributes=attributes, behavior=pinpoint_mixins.CfnSegmentPropsMixin.BehaviorProperty( recency=pinpoint_mixins.CfnSegmentPropsMixin.RecencyProperty( duration="duration", recency_type="recencyType" ) ), demographic=pinpoint_mixins.CfnSegmentPropsMixin.DemographicProperty( app_version=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), channel=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), device_type=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), make=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), model=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), platform=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ) ), location=pinpoint_mixins.CfnSegmentPropsMixin.LocationProperty( country=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), gps_point=pinpoint_mixins.CfnSegmentPropsMixin.GPSPointProperty( coordinates=pinpoint_mixins.CfnSegmentPropsMixin.CoordinatesProperty( latitude=123, longitude=123 ), range_in_kilometers=123 ) ), metrics=metrics, user_attributes=user_attributes )], source_segments=[pinpoint_mixins.CfnSegmentPropsMixin.SourceSegmentsProperty( id="id", version=123 )], source_type="sourceType", type="type" )
Attributes
- dimensions
An array that defines the dimensions to include or exclude from the segment.
- source_segments
The base segment to build the segment on.
A base segment, also called a source segment , defines the initial population of endpoints for a segment. When you add dimensions to the segment, Amazon Pinpoint filters the base segment by using the dimensions that you specify.
You can specify more than one dimensional segment or only one imported segment. If you specify an imported segment, the segment size estimate that displays on the Amazon Pinpoint console indicates the size of the imported segment without any filters applied to it.
- source_type
Specifies how to handle multiple base segments for the segment.
For example, if you specify three base segments for the segment, whether the resulting segment is based on all, any, or none of the base segments.
- type
Specifies how to handle multiple dimensions for the segment.
For example, if you specify three dimensions for the segment, whether the resulting segment includes endpoints that match all, any, or none of the dimensions.
LocationProperty
- class CfnSegmentPropsMixin.LocationProperty(*, country=None, gps_point=None)
Bases:
objectSpecifies location-based criteria, such as region or GPS coordinates, for the segment.
- Parameters:
country (
Union[IResolvable,SetDimensionProperty,Dict[str,Any],None]) – The country or region code, in ISO 3166-1 alpha-2 format, for the segment.gps_point (
Union[IResolvable,GPSPointProperty,Dict[str,Any],None]) – The GPS point dimension for the segment.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_pinpoint import mixins as pinpoint_mixins location_property = pinpoint_mixins.CfnSegmentPropsMixin.LocationProperty( country=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), gps_point=pinpoint_mixins.CfnSegmentPropsMixin.GPSPointProperty( coordinates=pinpoint_mixins.CfnSegmentPropsMixin.CoordinatesProperty( latitude=123, longitude=123 ), range_in_kilometers=123 ) )
Attributes
- country
The country or region code, in ISO 3166-1 alpha-2 format, for the segment.
- gps_point
The GPS point dimension for the segment.
RecencyProperty
- class CfnSegmentPropsMixin.RecencyProperty(*, duration=None, recency_type=None)
Bases:
objectSpecifies how recently segment members were active.
- Parameters:
duration (
Optional[str]) – The duration to use when determining which users have been active or inactive with your app. Possible values:HR_24|DAY_7|DAY_14|DAY_30.recency_type (
Optional[str]) – The type of recency dimension to use for the segment. Valid values are:ACTIVEandINACTIVE. If the value isACTIVE, the segment includes users who have used your app within the specified duration are included in the segment. If the value isINACTIVE, the segment includes users who haven’t used your app within the specified duration are included in the segment.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_pinpoint import mixins as pinpoint_mixins recency_property = pinpoint_mixins.CfnSegmentPropsMixin.RecencyProperty( duration="duration", recency_type="recencyType" )
Attributes
- duration
The duration to use when determining which users have been active or inactive with your app.
Possible values:
HR_24|DAY_7|DAY_14|DAY_30.
- recency_type
The type of recency dimension to use for the segment.
Valid values are:
ACTIVEandINACTIVE. If the value isACTIVE, the segment includes users who have used your app within the specified duration are included in the segment. If the value isINACTIVE, the segment includes users who haven’t used your app within the specified duration are included in the segment.
SegmentDimensionsProperty
- class CfnSegmentPropsMixin.SegmentDimensionsProperty(*, attributes=None, behavior=None, demographic=None, location=None, metrics=None, user_attributes=None)
Bases:
objectSpecifies the dimension settings for a segment.
- Parameters:
attributes (
Any) – One or more custom attributes to use as criteria for the segment. For more information see AttributeDimensionbehavior (
Union[IResolvable,BehaviorProperty,Dict[str,Any],None]) – The behavior-based criteria, such as how recently users have used your app, for the segment.demographic (
Union[IResolvable,DemographicProperty,Dict[str,Any],None]) – The demographic-based criteria, such as device platform, for the segment.location (
Union[IResolvable,LocationProperty,Dict[str,Any],None]) – The location-based criteria, such as region or GPS coordinates, for the segment.metrics (
Any) – One or more custom metrics to use as criteria for the segment.user_attributes (
Any) – One or more custom user attributes to use as criteria for the segment.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_pinpoint import mixins as pinpoint_mixins # attributes: Any # metrics: Any # user_attributes: Any segment_dimensions_property = pinpoint_mixins.CfnSegmentPropsMixin.SegmentDimensionsProperty( attributes=attributes, behavior=pinpoint_mixins.CfnSegmentPropsMixin.BehaviorProperty( recency=pinpoint_mixins.CfnSegmentPropsMixin.RecencyProperty( duration="duration", recency_type="recencyType" ) ), demographic=pinpoint_mixins.CfnSegmentPropsMixin.DemographicProperty( app_version=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), channel=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), device_type=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), make=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), model=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), platform=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ) ), location=pinpoint_mixins.CfnSegmentPropsMixin.LocationProperty( country=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), gps_point=pinpoint_mixins.CfnSegmentPropsMixin.GPSPointProperty( coordinates=pinpoint_mixins.CfnSegmentPropsMixin.CoordinatesProperty( latitude=123, longitude=123 ), range_in_kilometers=123 ) ), metrics=metrics, user_attributes=user_attributes )
Attributes
- attributes
One or more custom attributes to use as criteria for the segment.
For more information see AttributeDimension
- behavior
The behavior-based criteria, such as how recently users have used your app, for the segment.
- demographic
The demographic-based criteria, such as device platform, for the segment.
- location
The location-based criteria, such as region or GPS coordinates, for the segment.
- metrics
One or more custom metrics to use as criteria for the segment.
- user_attributes
One or more custom user attributes to use as criteria for the segment.
SegmentGroupsProperty
- class CfnSegmentPropsMixin.SegmentGroupsProperty(*, groups=None, include=None)
Bases:
objectSpecifies the set of segment criteria to evaluate when handling segment groups for the segment.
- Parameters:
groups (
Union[IResolvable,Sequence[Union[IResolvable,GroupsProperty,Dict[str,Any]]],None]) – Specifies the set of segment criteria to evaluate when handling segment groups for the segment.include (
Optional[str]) – Specifies how to handle multiple segment groups for the segment. For example, if the segment includes three segment groups, whether the resulting segment includes endpoints that match all, any, or none of the segment groups.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_pinpoint import mixins as pinpoint_mixins # attributes: Any # metrics: Any # user_attributes: Any segment_groups_property = pinpoint_mixins.CfnSegmentPropsMixin.SegmentGroupsProperty( groups=[pinpoint_mixins.CfnSegmentPropsMixin.GroupsProperty( dimensions=[pinpoint_mixins.CfnSegmentPropsMixin.SegmentDimensionsProperty( attributes=attributes, behavior=pinpoint_mixins.CfnSegmentPropsMixin.BehaviorProperty( recency=pinpoint_mixins.CfnSegmentPropsMixin.RecencyProperty( duration="duration", recency_type="recencyType" ) ), demographic=pinpoint_mixins.CfnSegmentPropsMixin.DemographicProperty( app_version=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), channel=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), device_type=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), make=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), model=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), platform=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ) ), location=pinpoint_mixins.CfnSegmentPropsMixin.LocationProperty( country=pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] ), gps_point=pinpoint_mixins.CfnSegmentPropsMixin.GPSPointProperty( coordinates=pinpoint_mixins.CfnSegmentPropsMixin.CoordinatesProperty( latitude=123, longitude=123 ), range_in_kilometers=123 ) ), metrics=metrics, user_attributes=user_attributes )], source_segments=[pinpoint_mixins.CfnSegmentPropsMixin.SourceSegmentsProperty( id="id", version=123 )], source_type="sourceType", type="type" )], include="include" )
Attributes
- groups
Specifies the set of segment criteria to evaluate when handling segment groups for the segment.
- include
Specifies how to handle multiple segment groups for the segment.
For example, if the segment includes three segment groups, whether the resulting segment includes endpoints that match all, any, or none of the segment groups.
SetDimensionProperty
- class CfnSegmentPropsMixin.SetDimensionProperty(*, dimension_type=None, values=None)
Bases:
objectSpecifies the dimension type and values for a segment dimension.
- Parameters:
dimension_type (
Optional[str]) – The type of segment dimension to use. Valid values are:INCLUSIVE, endpoints that match the criteria are included in the segment; and,EXCLUSIVE, endpoints that match the criteria are excluded from the segment.values (
Optional[Sequence[str]]) – The criteria values to use for the segment dimension. Depending on the value of theDimensionTypeproperty, endpoints are included or excluded from the segment if their values match the criteria values.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_pinpoint import mixins as pinpoint_mixins set_dimension_property = pinpoint_mixins.CfnSegmentPropsMixin.SetDimensionProperty( dimension_type="dimensionType", values=["values"] )
Attributes
- dimension_type
The type of segment dimension to use.
Valid values are:
INCLUSIVE, endpoints that match the criteria are included in the segment; and,EXCLUSIVE, endpoints that match the criteria are excluded from the segment.
- values
The criteria values to use for the segment dimension.
Depending on the value of the
DimensionTypeproperty, endpoints are included or excluded from the segment if their values match the criteria values.
SourceSegmentsProperty
- class CfnSegmentPropsMixin.SourceSegmentsProperty(*, id=None, version=None)
Bases:
objectSpecifies the base segment to build the segment on.
A base segment, also called a source segment , defines the initial population of endpoints for a segment. When you add dimensions to the segment, Amazon Pinpoint filters the base segment by using the dimensions that you specify.
You can specify more than one dimensional segment or only one imported segment. If you specify an imported segment, the segment size estimate that displays on the Amazon Pinpoint console indicates the size of the imported segment without any filters applied to it.
- Parameters:
id (
Optional[str]) – The unique identifier for the source segment.version (
Union[int,float,None]) – The version number of the source segment.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_pinpoint import mixins as pinpoint_mixins source_segments_property = pinpoint_mixins.CfnSegmentPropsMixin.SourceSegmentsProperty( id="id", version=123 )
Attributes
- id
The unique identifier for the source segment.
- version
The version number of the source segment.