All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.deliveredtechnologies.terraform.fluent.api.TfState.groovy Maven / Gradle / Ivy

There is a newer version: 0.13-593
Show newest version
package com.deliveredtechnologies.terraform.fluent.api

class TfState extends TfShow {

    List resources

    TfState (String showJsonOutput) {
        super(showJsonOutput)
        resources = flattenModules(raw.values.root_module)
    }

    List getResourcesByType(String type) {
        resources.findAll({it.type == type})
    }

    List getResourcesBy(Closure predicate) {
        resources.findAll(predicate)
    }

    Map getOutputs() {
        raw.values.outputs
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy