# MathProperty

An activity that computes an arithmetic expression using the message's attributes.

- 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_iotanalytics as iotanalytics } from 'aws-cdk-lib';
const mathProperty: iotanalytics.CfnPipeline.MathProperty = {
  attribute: 'attribute',
  math: 'math',
  name: 'name',

  // the properties below are optional
  next: 'next',
};
```

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_iotanalytics as iotanalytics

math_property = iotanalytics.CfnPipeline.MathProperty(
    attribute="attribute",
    math="math",
    name="name",

    # the properties below are optional
    next="next"
)
```

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.iotanalytics.*;

MathProperty mathProperty = MathProperty.builder()
        .attribute("attribute")
        .math("math")
        .name("name")

        // the properties below are optional
        .next("next")
        .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.IoTAnalytics;

var mathProperty = new MathProperty {
    Attribute = "attribute",
    Math = "math",
    Name = "name",

    // the properties below are optional
    Next = "next"
};
```

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"

mathProperty := &MathProperty{
	Attribute: jsii.String("attribute"),
	Math: jsii.String("math"),
	Name: jsii.String("name"),

	// the properties below are optional
	Next: jsii.String("next"),
}
```

## Properties

- `attribute`: string (required) — The name of the attribute that contains the result of the math operation.

- `math`: string (required) — An expression that uses one or more existing attributes and must return an integer value.

- `name`: string (required) — The name of the 'math' activity.

- `next`: string — The next activity in the pipeline.
