# AddAttributesProperty

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

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

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

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

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

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

## Properties

- `attributes`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: string } (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".

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

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