CfnSegmentMixinProps
- class aws_cdk.mixins_preview.aws_pinpoint.mixins.CfnSegmentMixinProps(*, application_id=None, dimensions=None, name=None, segment_groups=None, tags=None)
Bases:
objectProperties for CfnSegmentPropsMixin.
- Parameters:
application_id (
Optional[str]) – The unique identifier for the Amazon Pinpoint application that the segment is associated with.dimensions (
Union[IResolvable,SegmentDimensionsProperty,Dict[str,Any],None]) – An array that defines the dimensions for the segment.name (
Optional[str]) – The name of the segment. .. epigraph:: A segment must have a name otherwise it will not appear in the Amazon Pinpoint console.segment_groups (
Union[IResolvable,SegmentGroupsProperty,Dict[str,Any],None]) – 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 (
Any) – An array of key-value pairs to apply to this resource. For more information, see Tag .
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-segment.html
- 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 # tags: Any # user_attributes: Any cfn_segment_mixin_props = 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 )
Attributes
- application_id
The unique identifier for the Amazon Pinpoint application that the segment is associated with.
- dimensions
An array that defines the dimensions for the segment.
- name
The name of the segment.
A segment must have a name otherwise it will not appear in the Amazon Pinpoint console.
- segment_groups
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.