Class ResourceTerraformIterator

java.lang.Object
software.amazon.jsii.JsiiObject
com.hashicorp.cdktf.TerraformIterator
com.hashicorp.cdktf.ResourceTerraformIterator
All Implemented Interfaces:
ITerraformIterator, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.93.0 (build 1706ca5)", date="2024-01-15T15:38:01.090Z") @Stability(Experimental) public class ResourceTerraformIterator extends TerraformIterator
  • Constructor Details

    • ResourceTerraformIterator

      protected ResourceTerraformIterator(software.amazon.jsii.JsiiObjectRef objRef)
    • ResourceTerraformIterator

      protected ResourceTerraformIterator(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • ResourceTerraformIterator

      @Stability(Experimental) public ResourceTerraformIterator(@NotNull ITerraformResource element)
      Parameters:
      element - This parameter is required.
  • Method Details

    • getKey

      @Stability(Experimental) @NotNull public Object getKey()
      (experimental) Returns the current entry in the list or set that is being iterated over.

      For lists this is the same as iterator.value. If you need the index, use count via TerraformCount: https://developer.hashicorp.com/terraform/cdktf/concepts/iterators#using-count

    • getValue

      @Stability(Experimental) @NotNull public Object getValue()
      (experimental) Returns the value of the current item iterated over.