# SetDimensionProperty

Specifies the dimension type and values for a segment dimension.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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" }
};
```

Golang:

```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

- `dimensionType`: 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.

- `values`: 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.
