Skip to content
v2.273.0

ComponentDocumentLoop Struct ​

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

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 ​

The for loop iterates on a range of integers specified within a boundary outlined by the start and end of the variables.
default

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

forEachstring[]for_eachtyping.List[str]forEachList<String>ForEachstring[]ForEach*[]*string= none if `for` is provided. other…#
The forEach loop iterates on an explicit list of values, which can be strings and chained expressions.
default

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

namestringnamestrnameStringNamestringName*string= loop#
The name of the loop, which can be used to reference.