Class CfnSegment
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.pinpoint.CfnSegment
- All Implemented Interfaces:
IInspectable
,ITaggable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-11T15:56:02.543Z")
@Stability(Stable)
public class CfnSegment
extends CfnResource
implements IInspectable, ITaggable
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();
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Example:static interface
Specifies behavior-based criteria for the segment, such as how recently users have used your app.static final class
A fluent builder forCfnSegment
.static interface
Specifies the GPS coordinates of a location.static interface
Specifies demographic-based criteria, such as device platform, for the segment.static interface
Specifies the GPS coordinates of the endpoint location.static interface
An array that defines the set of segment criteria to evaluate when handling segment groups for the segment.static interface
Specifies location-based criteria, such as region or GPS coordinates, for the segment.static interface
Specifies how recently segment members were active.static interface
Specifies the dimension settings for a segment.static interface
Specifies the set of segment criteria to evaluate when handling segment groups for the segment.static interface
Specifies the dimension type and values for a segment dimension.static interface
Specifies the base segment to build the segment on.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnSegment
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnSegment
(software.amazon.jsii.JsiiObjectRef objRef) CfnSegment
(software.constructs.Construct scope, String id, CfnSegmentProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe unique identifier for the Amazon Pinpoint application that the segment is associated with.The Amazon Resource Name (ARN) of the segment.The unique identifier for the segment.An array that defines the dimensions for the segment.getName()
The name of the segment.The segment group to use and the dimensions to apply to the group's base segments in order to build the segment.getTags()
Tag Manager which manages the tags for this resource.An array of key-value pairs to apply to this resource.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.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
(IResolvable value) An array that defines the dimensions for the segment.void
An array that defines the dimensions for the segment.void
The name of 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.void
The segment group to use and the dimensions to apply to the group's base segments in order to build the segment.void
setTagsRaw
(Object value) An array of key-value pairs to apply to this resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnSegment
protected CfnSegment(software.amazon.jsii.JsiiObjectRef objRef) -
CfnSegment
protected CfnSegment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnSegment
@Stability(Stable) public CfnSegment(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnSegmentProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of the segment. -
getAttrSegmentId
The unique identifier for the segment. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getApplicationId
The unique identifier for the Amazon Pinpoint application that the segment is associated with. -
setApplicationId
The unique identifier for the Amazon Pinpoint application that the segment is associated with. -
getName
The name of the segment. -
setName
The name of the segment. -
getDimensions
An array that defines the dimensions for the segment. -
setDimensions
An array that defines the dimensions for the segment. -
setDimensions
An array that defines the dimensions for the segment. -
getSegmentGroups
The segment group to use and the dimensions to apply to the group's base segments in order to build the segment. -
setSegmentGroups
The segment group to use and the dimensions to apply to the group's base segments in order to build the segment. -
setSegmentGroups
The segment group to use and the dimensions to apply to the group's base segments in order to build the segment. -
getTagsRaw
An array of key-value pairs to apply to this resource. -
setTagsRaw
An array of key-value pairs to apply to this resource.
-