@Generated(value="jsii-pacmak/1.57.0 (build f614666)", date="2022-04-22T09:30:49.775Z") @Stability(value=Stable) public class CfnSegment extends CfnResource implements IInspectable
Updates the configuration, dimension, and other settings for an existing segment.
Example:
// 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.*; Object attributes; Object metrics; Object tags; Object userAttributes; CfnSegment cfnSegment = CfnSegment.Builder.create(this, "MyCfnSegment") .applicationId("applicationId") .name("name") // the properties below are optional .dimensions(SegmentDimensionsProperty.builder() .attributes(attributes) .behavior(BehaviorProperty.builder() .recency(RecencyProperty.builder() .duration("duration") .recencyType("recencyType") .build()) .build()) .demographic(DemographicProperty.builder() .appVersion(SetDimensionProperty.builder() .dimensionType("dimensionType") .values(List.of("values")) .build()) .channel(SetDimensionProperty.builder() .dimensionType("dimensionType") .values(List.of("values")) .build()) .deviceType(SetDimensionProperty.builder() .dimensionType("dimensionType") .values(List.of("values")) .build()) .make(SetDimensionProperty.builder() .dimensionType("dimensionType") .values(List.of("values")) .build()) .model(SetDimensionProperty.builder() .dimensionType("dimensionType") .values(List.of("values")) .build()) .platform(SetDimensionProperty.builder() .dimensionType("dimensionType") .values(List.of("values")) .build()) .build()) .location(LocationProperty.builder() .country(SetDimensionProperty.builder() .dimensionType("dimensionType") .values(List.of("values")) .build()) .gpsPoint(GPSPointProperty.builder() .coordinates(CoordinatesProperty.builder() .latitude(123) .longitude(123) .build()) .rangeInKilometers(123) .build()) .build()) .metrics(metrics) .userAttributes(userAttributes) .build()) .segmentGroups(SegmentGroupsProperty.builder() .groups(List.of(GroupsProperty.builder() .dimensions(List.of(SegmentDimensionsProperty.builder() .attributes(attributes) .behavior(BehaviorProperty.builder() .recency(RecencyProperty.builder() .duration("duration") .recencyType("recencyType") .build()) .build()) .demographic(DemographicProperty.builder() .appVersion(SetDimensionProperty.builder() .dimensionType("dimensionType") .values(List.of("values")) .build()) .channel(SetDimensionProperty.builder() .dimensionType("dimensionType") .values(List.of("values")) .build()) .deviceType(SetDimensionProperty.builder() .dimensionType("dimensionType") .values(List.of("values")) .build()) .make(SetDimensionProperty.builder() .dimensionType("dimensionType") .values(List.of("values")) .build()) .model(SetDimensionProperty.builder() .dimensionType("dimensionType") .values(List.of("values")) .build()) .platform(SetDimensionProperty.builder() .dimensionType("dimensionType") .values(List.of("values")) .build()) .build()) .location(LocationProperty.builder() .country(SetDimensionProperty.builder() .dimensionType("dimensionType") .values(List.of("values")) .build()) .gpsPoint(GPSPointProperty.builder() .coordinates(CoordinatesProperty.builder() .latitude(123) .longitude(123) .build()) .rangeInKilometers(123) .build()) .build()) .metrics(metrics) .userAttributes(userAttributes) .build())) .sourceSegments(List.of(SourceSegmentsProperty.builder() .id("id") // the properties below are optional .version(123) .build())) .sourceType("sourceType") .type("type") .build())) .include("include") .build()) .tags(tags) .build();
Modifier and Type | Class and Description |
---|---|
static interface |
CfnSegment.AttributeDimensionProperty
Specifies attribute-based criteria for including or excluding endpoints from a segment.
|
static interface |
CfnSegment.BehaviorProperty
Specifies behavior-based criteria for the segment, such as how recently users have used your app.
|
static class |
CfnSegment.Builder
A fluent builder for
CfnSegment . |
static interface |
CfnSegment.CoordinatesProperty
Specifies the GPS coordinates of a location.
|
static interface |
CfnSegment.DemographicProperty
Specifies demographic-based criteria, such as device platform, for the segment.
|
static interface |
CfnSegment.GPSPointProperty
Specifies the GPS coordinates of the endpoint location.
|
static interface |
CfnSegment.GroupsProperty
An array that defines the set of segment criteria to evaluate when handling segment groups for the segment.
|
static interface |
CfnSegment.LocationProperty
Specifies location-based criteria, such as region or GPS coordinates, for the segment.
|
static interface |
CfnSegment.RecencyProperty
Specifies how recently segment members were active.
|
static interface |
CfnSegment.SegmentDimensionsProperty
Specifies the dimension settings for a segment.
|
static interface |
CfnSegment.SegmentGroupsProperty
Specifies the set of segment criteria to evaluate when handling segment groups for the segment.
|
static interface |
CfnSegment.SetDimensionProperty
Specifies the dimension type and values for a segment dimension.
|
static interface |
CfnSegment.SourceSegmentsProperty
Specifies the base segment to build the segment on.
|
software.amazon.jsii.JsiiObject.InitializationMode
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Modifier and Type | Field and Description |
---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnSegment(software.constructs.Construct scope,
String id,
CfnSegmentProps props)
Create a new `AWS::Pinpoint::Segment`.
|
protected |
CfnSegment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnSegment(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
String |
getApplicationId()
The unique identifier for the Amazon Pinpoint application that the segment is associated with.
|
String |
getAttrArn()
The Amazon Resource Name (ARN) of the segment.
|
String |
getAttrSegmentId()
The unique identifier for the segment.
|
protected Map<String,Object> |
getCfnProperties() |
Object |
getDimensions()
The criteria that define the dimensions for the segment.
|
String |
getName()
The name of the segment.
|
Object |
getSegmentGroups()
The segment group to use and the dimensions to apply to the group's base segments in order to build the segment.
|
TagManager |
getTags()
An array of key-value pairs to apply to this resource.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setApplicationId(String value)
The unique identifier for the Amazon Pinpoint application that the segment is associated with.
|
void |
setDimensions(CfnSegment.SegmentDimensionsProperty value)
The criteria that define the dimensions for the segment.
|
void |
setDimensions(IResolvable value)
The criteria that define the dimensions for the segment.
|
void |
setName(String value)
The name of the segment.
|
void |
setSegmentGroups(CfnSegment.SegmentGroupsProperty value)
The segment group to use and the dimensions to apply to the group's base segments in order to build the segment.
|
void |
setSegmentGroups(IResolvable value)
The segment group to use and the dimensions to apply to the group's base segments in order to build the segment.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnSegment(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnSegment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) public CfnSegment(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnSegmentProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.@Stability(value=Stable) public void inspect(@NotNull TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull public String getAttrSegmentId()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties
in class CfnResource
@Stability(value=Stable) @NotNull public TagManager getTags()
For more information, see Tag .
@Stability(value=Stable) @NotNull public String getApplicationId()
@Stability(value=Stable) public void setApplicationId(@NotNull String value)
@Stability(value=Stable) @NotNull public String getName()
@Stability(value=Stable) public void setName(@NotNull String value)
@Stability(value=Stable) @Nullable public Object getDimensions()
@Stability(value=Stable) public void setDimensions(@Nullable CfnSegment.SegmentDimensionsProperty value)
@Stability(value=Stable) public void setDimensions(@Nullable IResolvable value)
@Stability(value=Stable) @Nullable public Object getSegmentGroups()
A segment group can consist of zero or more base segments. Your request can include only one segment group.
@Stability(value=Stable) public void setSegmentGroups(@Nullable CfnSegment.SegmentGroupsProperty value)
A segment group can consist of zero or more base segments. Your request can include only one segment group.
@Stability(value=Stable) public void setSegmentGroups(@Nullable IResolvable value)
A segment group can consist of zero or more base segments. Your request can include only one segment group.
Copyright © 2022. All rights reserved.