> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# bucketAttributes()

- Package: [@gooddata/sdk-model](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/index.md)
- Kind: function
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-model/src/execution/buckets/index.ts

Gets all attributes matching the provided predicate from the bucket.

**Signature:**

```typescript
export declare function bucketAttributes(bucket: IBucket, predicate?: AttributePredicate): IAttribute[];
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| bucket | [IBucket](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.ibucket/index.md) | bucket to work with |
| predicate | [AttributePredicate](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.attributepredicate/index.md) | _(Optional)_ attribute predicate; [anyAttribute](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.anyattribute/index.md) predicate is default |

**Returns:**

[IAttribute](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iattribute/index.md)[]

empty list if none match

## Remarks

If no predicate is provided, then the function defaults to anyAttribute predicate - meaning all attributes from the bucket will be returned.
