// generated from terraform resource schema
import * as cdktf from 'cdktf';
export class DataAwsDatapipelinePipelineDefinitionParameterObjectAttribute extends cdktf.ComplexComputedList {
    // key - computed: true, optional: false, required: false
    get key() {
        return this.getStringAttribute('key');
    }
    // string_value - computed: true, optional: false, required: false
    get stringValue() {
        return this.getStringAttribute('string_value');
    }
}
export class DataAwsDatapipelinePipelineDefinitionParameterObject extends cdktf.ComplexComputedList {
    // attribute - computed: true, optional: false, required: false
    get attribute() {
        // Getting the computed value is not yet implemented
        return cdktf.Token.asAny(cdktf.Fn.tolist(this.interpolationForAttribute('attribute')));
    }
    // id - computed: true, optional: false, required: false
    get id() {
        return this.getStringAttribute('id');
    }
}
export class DataAwsDatapipelinePipelineDefinitionPipelineObjectField extends cdktf.ComplexComputedList {
    // key - computed: true, optional: false, required: false
    get key() {
        return this.getStringAttribute('key');
    }
    // ref_value - computed: true, optional: false, required: false
    get refValue() {
        return this.getStringAttribute('ref_value');
    }
    // string_value - computed: true, optional: false, required: false
    get stringValue() {
        return this.getStringAttribute('string_value');
    }
}
export class DataAwsDatapipelinePipelineDefinitionPipelineObject extends cdktf.ComplexComputedList {
    // field - computed: true, optional: false, required: false
    get field() {
        // Getting the computed value is not yet implemented
        return cdktf.Token.asAny(cdktf.Fn.tolist(this.interpolationForAttribute('field')));
    }
    // id - computed: true, optional: false, required: false
    get id() {
        return this.getStringAttribute('id');
    }
    // name - computed: true, optional: false, required: false
    get name() {
        return this.getStringAttribute('name');
    }
}
export function dataAwsDatapipelinePipelineDefinitionParameterValueToTerraform(struct) {
    if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
        return struct;
    }
    if (cdktf.isComplexElement(struct)) {
        throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
    }
    return {};
}
/**
* Represents a {@link https://www.terraform.io/docs/providers/aws/d/datapipeline_pipeline_definition aws_datapipeline_pipeline_definition}
*/
export class DataAwsDatapipelinePipelineDefinition extends cdktf.TerraformDataSource {
    // =================
    // STATIC PROPERTIES
    // =================
    static tfResourceType = "aws_datapipeline_pipeline_definition";
    // ===========
    // INITIALIZER
    // ===========
    /**
    * Create a new {@link https://www.terraform.io/docs/providers/aws/d/datapipeline_pipeline_definition aws_datapipeline_pipeline_definition} Data Source
    *
    * @param scope The scope in which to define this construct
    * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
    * @param options DataAwsDatapipelinePipelineDefinitionConfig
    */
    constructor(scope, id, config) {
        super(scope, id, {
            terraformResourceType: 'aws_datapipeline_pipeline_definition',
            terraformGeneratorMetadata: {
                providerName: 'aws'
            },
            provider: config.provider,
            dependsOn: config.dependsOn,
            count: config.count,
            lifecycle: config.lifecycle
        });
        this._pipelineId = config.pipelineId;
        this._parameterValue = config.parameterValue;
    }
    // ==========
    // ATTRIBUTES
    // ==========
    // id - computed: true, optional: true, required: false
    get id() {
        return this.getStringAttribute('id');
    }
    // parameter_object - computed: true, optional: false, required: false
    parameterObject(index) {
        return new DataAwsDatapipelinePipelineDefinitionParameterObject(this, 'parameter_object', index, true);
    }
    // pipeline_id - computed: false, optional: false, required: true
    _pipelineId;
    get pipelineId() {
        return this.getStringAttribute('pipeline_id');
    }
    set pipelineId(value) {
        this._pipelineId = value;
    }
    // Temporarily expose input value. Use with caution.
    get pipelineIdInput() {
        return this._pipelineId;
    }
    // pipeline_object - computed: true, optional: false, required: false
    pipelineObject(index) {
        return new DataAwsDatapipelinePipelineDefinitionPipelineObject(this, 'pipeline_object', index, true);
    }
    // parameter_value - computed: false, optional: true, required: false
    _parameterValue;
    get parameterValue() {
        // Getting the computed value is not yet implemented
        return cdktf.Token.asAny(cdktf.Fn.tolist(this.interpolationForAttribute('parameter_value')));
    }
    set parameterValue(value) {
        this._parameterValue = value;
    }
    resetParameterValue() {
        this._parameterValue = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get parameterValueInput() {
        return this._parameterValue;
    }
    // =========
    // SYNTHESIS
    // =========
    synthesizeAttributes() {
        return {
            pipeline_id: cdktf.stringToTerraform(this._pipelineId),
            parameter_value: cdktf.listMapper(dataAwsDatapipelinePipelineDefinitionParameterValueToTerraform)(this._parameterValue),
        };
    }
}
//# sourceMappingURL=data-aws-datapipeline-pipeline-definition.js.map