Skip to content
v2.278.0

MathProperty Struct ​

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

Example ​

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
# 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
// 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();
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"
};
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 ​

attributestringattributestrattributeStringAttributestringAttribute*string required #
The name of the attribute that contains the result of the math operation.
mathstringmathstrmathStringMathstringMath*string required #
An expression that uses one or more existing attributes and must return an integer value.
namestringnamestrnameStringNamestringName*string required #
The name of the 'math' activity.