Skip to content
v2.278.0

AddAttributesProperty Struct ​

An activity that adds other attributes based on existing attributes in the message.

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 addAttributesProperty: iotanalytics.CfnPipeline.AddAttributesProperty = {
  attributes: {
    attributesKey: 'attributes',
  },
  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

add_attributes_property = iotanalytics.CfnPipeline.AddAttributesProperty(
    attributes={
        "attributes_key": "attributes"
    },
    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.*;

AddAttributesProperty addAttributesProperty = AddAttributesProperty.builder()
        .attributes(Map.of(
                "attributesKey", "attributes"))
        .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 addAttributesProperty = new AddAttributesProperty {
    Attributes = new Dictionary<string, string> {
        { "attributesKey", "attributes" }
    },
    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"

addAttributesProperty := &AddAttributesProperty{
	Attributes: map[string]*string{
		"attributesKey": jsii.String("attributes"),
	},
	Name: jsii.String("name"),

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

Properties ​

attributesIResolvable | { [key: string]: string }attributestyping.Union[IResolvable, typing.Mapping[str, str]]attributesIResolvableAttributesIResolvableAttributesinterface{} required #
A list of 1-50 "AttributeNameMapping" objects that map an existing attribute to a new attribute.

The existing attributes remain in the message, so if you want to remove the originals, use "RemoveAttributeActivity".

namestringnamestrnameStringNamestringName*string required #
The name of the 'addAttributes' activity.