ComponentDocumentLoop

class aws_cdk.aws_imagebuilder_alpha.ComponentDocumentLoop(*, for_=None, for_each=None, name=None)

Bases: object

(experimental) The looping construct of a component defines a repeated sequence of instructions.

Parameters:
  • for – (experimental) 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.

  • for_each (Optional[Sequence[str]]) – (experimental) 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 (Optional[str]) – (experimental) The name of the loop, which can be used to reference. Default: loop

Stability:

experimental

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_imagebuilder_alpha as imagebuilder_alpha

component_document_loop = imagebuilder_alpha.ComponentDocumentLoop(
    for=imagebuilder_alpha.ComponentDocumentForLoop(
        end=123,
        start=123,
        update_by=123
    ),
    for_each=["forEach"],
    name="name"
)

Attributes

for_

(experimental) 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.

Stability:

experimental

for_each

(experimental) 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.

Stability:

experimental

name

(experimental) The name of the loop, which can be used to reference.

Default:

loop

Stability:

experimental