Class ComplexObject

java.lang.Object
software.amazon.jsii.JsiiObject
com.hashicorp.cdktf.ComplexObject
All Implemented Interfaces:
IInterpolatingParent, IResolvable, ITerraformAddressable, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.102.0 (build e354887)", date="2024-12-09T10:24:39.592Z") @Stability(Experimental) public class ComplexObject extends software.amazon.jsii.JsiiObject implements IInterpolatingParent, IResolvable, ITerraformAddressable
  • Constructor Details

    • ComplexObject

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

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

      @Stability(Experimental) public ComplexObject(@NotNull IInterpolatingParent terraformResource, @NotNull String terraformAttribute, @NotNull Boolean complexObjectIsFromSet, @Nullable Object complexObjectIndex)
      Parameters:
      terraformResource - This parameter is required.
      terraformAttribute - This parameter is required.
      complexObjectIsFromSet - set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. This parameter is required.
      complexObjectIndex - the index of the complex object in a list.
    • ComplexObject

      @Stability(Experimental) public ComplexObject(@NotNull IInterpolatingParent terraformResource, @NotNull String terraformAttribute, @NotNull Boolean complexObjectIsFromSet)
      Parameters:
      terraformResource - This parameter is required.
      terraformAttribute - This parameter is required.
      complexObjectIsFromSet - set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. This parameter is required.
  • Method Details

    • computeFqn

      @Stability(Experimental) @NotNull public String computeFqn()
    • getAnyMapAttribute

      @Stability(Experimental) @NotNull public Map<String,Object> getAnyMapAttribute(@NotNull String terraformAttribute)
      Parameters:
      terraformAttribute - This parameter is required.
    • getBooleanAttribute

      @Stability(Experimental) @NotNull public IResolvable getBooleanAttribute(@NotNull String terraformAttribute)
      Parameters:
      terraformAttribute - This parameter is required.
    • getBooleanMapAttribute

      @Stability(Experimental) @NotNull public Map<String,Boolean> getBooleanMapAttribute(@NotNull String terraformAttribute)
      Parameters:
      terraformAttribute - This parameter is required.
    • getListAttribute

      @Stability(Experimental) @NotNull public List<String> getListAttribute(@NotNull String terraformAttribute)
      Parameters:
      terraformAttribute - This parameter is required.
    • getNumberAttribute

      @Stability(Experimental) @NotNull public Number getNumberAttribute(@NotNull String terraformAttribute)
      Parameters:
      terraformAttribute - This parameter is required.
    • getNumberListAttribute

      @Stability(Experimental) @NotNull public List<Number> getNumberListAttribute(@NotNull String terraformAttribute)
      Parameters:
      terraformAttribute - This parameter is required.
    • getNumberMapAttribute

      @Stability(Experimental) @NotNull public Map<String,Number> getNumberMapAttribute(@NotNull String terraformAttribute)
      Parameters:
      terraformAttribute - This parameter is required.
    • getStringAttribute

      @Stability(Experimental) @NotNull public String getStringAttribute(@NotNull String terraformAttribute)
      Parameters:
      terraformAttribute - This parameter is required.
    • getStringMapAttribute

      @Stability(Experimental) @NotNull public Map<String,String> getStringMapAttribute(@NotNull String terraformAttribute)
      Parameters:
      terraformAttribute - This parameter is required.
    • interpolationAsList

      @Stability(Experimental) @NotNull protected IResolvable interpolationAsList()
    • interpolationForAttribute

      @Stability(Experimental) @NotNull public IResolvable interpolationForAttribute(@NotNull String property)
      Specified by:
      interpolationForAttribute in interface IInterpolatingParent
      Parameters:
      property - This parameter is required.
    • resolve

      @Stability(Experimental) @NotNull public Object resolve(@NotNull IResolveContext _context)
      (experimental) Produce the Token's value at resolution time.

      Specified by:
      resolve in interface IResolvable
      Parameters:
      _context - This parameter is required.
    • toString

      @Stability(Experimental) @NotNull public String toString()
      (experimental) Return a string representation of this resolvable object.

      Returns a reversible string representation.

      Specified by:
      toString in interface IResolvable
      Overrides:
      toString in class Object
    • getCreationStack

      @Stability(Experimental) @NotNull public List<String> getCreationStack()
      (experimental) The creation stack of this resolvable which will be appended to errors thrown during resolution.

      If this returns an empty array the stack will not be attached.

      Specified by:
      getCreationStack in interface IResolvable
    • getFqn

      @Stability(Experimental) @NotNull public String getFqn()
      Specified by:
      getFqn in interface ITerraformAddressable
    • getComplexObjectIsFromSet

      @Stability(Experimental) @NotNull protected Boolean getComplexObjectIsFromSet()
      (experimental) set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items.
    • setComplexObjectIsFromSet

      @Stability(Experimental) protected void setComplexObjectIsFromSet(@NotNull Boolean value)
      (experimental) set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items.
    • getTerraformAttribute

      @Stability(Experimental) @NotNull protected String getTerraformAttribute()
    • setTerraformAttribute

      @Stability(Experimental) protected void setTerraformAttribute(@NotNull String value)
    • getTerraformResource

      @Stability(Experimental) @NotNull protected IInterpolatingParent getTerraformResource()
    • setTerraformResource

      @Stability(Experimental) protected void setTerraformResource(@NotNull IInterpolatingParent value)
    • getComplexObjectIndex

      @Stability(Experimental) @Nullable protected Object getComplexObjectIndex()
      (experimental) the index of the complex object in a list.
    • setComplexObjectIndex

      @Stability(Experimental) protected void setComplexObjectIndex(@Nullable String value)
      (experimental) the index of the complex object in a list.
    • setComplexObjectIndex

      @Stability(Experimental) protected void setComplexObjectIndex(@Nullable Number value)
      (experimental) the index of the complex object in a list.