---
title: Attributes
description: Attributes define a set of properties on source code elements.
url: https://docs.influxdata.com/flux/v0/spec/attributes/
estimated_tokens: 145
product: Flux
version: v0
publisher: InfluxData
canonical: https://docs.influxdata.com/flux/v0/spec/attributes/
date: '2023-09-12T23:33:31-06:00'
lastmod: '2023-09-12T23:33:31-06:00'
---

Attributes define a set of properties on source code elements.

```js
Attributes             = { Attribute } .
Attribute              = "@" identifier AttributeParameters .
AttributeParameters    = "(" [ AttributeParameterList [ "," ] ] ")" .
AttributeParameterList = AttributeParameter { "," AttributeParameter } .
AttributeParameter     = PrimaryExpression
```

The runtime specifies the set of defined attributes and their meaning.

##### Example attributes

```js
@edition("2022.1")
package main
```

[Packages](/flux/v0/spec/packages/)[Statements](/flux/v0/spec/statements/)
