Skip to content
v2.278.0

SetDimensionProperty Struct ​

Specifies the dimension type and values for a segment dimension.

Example ​

ts
// 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';
const setDimensionProperty: pinpoint.CfnSegment.SetDimensionProperty = {
  dimensionType: 'dimensionType',
  values: ['values'],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_pinpoint as pinpoint

set_dimension_property = pinpoint.CfnSegment.SetDimensionProperty(
    dimension_type="dimensionType",
    values=["values"]
)
java
// 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.*;

SetDimensionProperty setDimensionProperty = SetDimensionProperty.builder()
        .dimensionType("dimensionType")
        .values(List.of("values"))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Pinpoint;

var setDimensionProperty = new SetDimensionProperty {
    DimensionType = "dimensionType",
    Values = new [] { "values" }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

setDimensionProperty := &SetDimensionProperty{
	DimensionType: jsii.String("dimensionType"),
	Values: []*string{
		jsii.String("values"),
	},
}

Properties ​

dimensionTypeoptionalstringdimension_typeoptionalstrdimensionTypeoptionalStringDimensionTypeoptionalstringDimensionTypeoptional*string #
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.

valuesoptionalstring[]valuesoptionaltyping.List[str]valuesoptionalList<String>Valuesoptionalstring[]Valuesoptional*[]*string #
The criteria values to use for the segment dimension.

Depending on the value of the DimensionType property, endpoints are included or excluded from the segment if their values match the criteria values.