# ComponentDocumentLoop

The looping construct of a component defines a repeated sequence of instructions.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/component.ts`](https://github.com/aws/aws-cdk/blob/v2.273.0-alpha.0/packages/@aws-cdk/aws-imagebuilder-alpha/lib/component.ts#L291)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as imagebuilder_alpha from '@aws-cdk/aws-imagebuilder-alpha';
const componentDocumentLoop: imagebuilder_alpha.ComponentDocumentLoop = {
  for: {
    end: 123,
    start: 123,
    updateBy: 123,
  },
  forEach: ['forEach'],
  name: 'name',
};
```

## Properties

- `for`: [ComponentDocumentForLoop](/cdk/api/v2/docs/@aws-cdk_aws-imagebuilder-alpha.ComponentDocumentForLoop.html) = none if `forEach` is provided. otherwise, `for` is required. — The for loop iterates on a range of integers specified within a boundary outlined by the start and end of the variables.

  **Default:** none if `forEach` is provided. otherwise, `for` is required.

- `forEach`: string[] = none if `for` is provided. otherwise, `forEach` is required. — The forEach loop iterates on an explicit list of values, which can be strings and chained expressions.

  **Default:** none if `for` is provided. otherwise, `forEach` is required.

- `name`: string = loop — The name of the loop, which can be used to reference.
