// generated from terraform resource schema
import * as cdktf from 'cdktf';
export function datapipelinePipelineDefinitionParameterObjectAttributeToTerraform(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 {
        key: cdktf.stringToTerraform(struct.key),
        string_value: cdktf.stringToTerraform(struct.stringValue),
    };
}
export function datapipelinePipelineDefinitionParameterObjectToTerraform(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 {
        id: cdktf.stringToTerraform(struct.id),
        attribute: cdktf.listMapper(datapipelinePipelineDefinitionParameterObjectAttributeToTerraform)(struct.attribute),
    };
}
export function datapipelinePipelineDefinitionParameterValueToTerraform(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 {
        id: cdktf.stringToTerraform(struct.id),
        string_value: cdktf.stringToTerraform(struct.stringValue),
    };
}
export function datapipelinePipelineDefinitionPipelineObjectFieldToTerraform(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 {
        key: cdktf.stringToTerraform(struct.key),
        ref_value: cdktf.stringToTerraform(struct.refValue),
        string_value: cdktf.stringToTerraform(struct.stringValue),
    };
}
export function datapipelinePipelineDefinitionPipelineObjectToTerraform(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 {
        id: cdktf.stringToTerraform(struct.id),
        name: cdktf.stringToTerraform(struct.name),
        field: cdktf.listMapper(datapipelinePipelineDefinitionPipelineObjectFieldToTerraform)(struct.field),
    };
}
/**
* Represents a {@link https://www.terraform.io/docs/providers/aws/r/datapipeline_pipeline_definition aws_datapipeline_pipeline_definition}
*/
export class DatapipelinePipelineDefinition extends cdktf.TerraformResource {
    // =================
    // STATIC PROPERTIES
    // =================
    static tfResourceType = "aws_datapipeline_pipeline_definition";
    // ===========
    // INITIALIZER
    // ===========
    /**
    * Create a new {@link https://www.terraform.io/docs/providers/aws/r/datapipeline_pipeline_definition aws_datapipeline_pipeline_definition} Resource
    *
    * @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 DatapipelinePipelineDefinitionConfig
    */
    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._parameterObject = config.parameterObject;
        this._parameterValue = config.parameterValue;
        this._pipelineObject = config.pipelineObject;
    }
    // ==========
    // ATTRIBUTES
    // ==========
    // id - computed: true, optional: true, required: false
    get id() {
        return this.getStringAttribute('id');
    }
    // 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;
    }
    // parameter_object - computed: false, optional: true, required: false
    _parameterObject;
    get parameterObject() {
        // Getting the computed value is not yet implemented
        return cdktf.Token.asAny(cdktf.Fn.tolist(this.interpolationForAttribute('parameter_object')));
    }
    set parameterObject(value) {
        this._parameterObject = value;
    }
    resetParameterObject() {
        this._parameterObject = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get parameterObjectInput() {
        return this._parameterObject;
    }
    // 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;
    }
    // pipeline_object - computed: false, optional: false, required: true
    _pipelineObject;
    get pipelineObject() {
        // Getting the computed value is not yet implemented
        return cdktf.Token.asAny(cdktf.Fn.tolist(this.interpolationForAttribute('pipeline_object')));
    }
    set pipelineObject(value) {
        this._pipelineObject = value;
    }
    // Temporarily expose input value. Use with caution.
    get pipelineObjectInput() {
        return this._pipelineObject;
    }
    // =========
    // SYNTHESIS
    // =========
    synthesizeAttributes() {
        return {
            pipeline_id: cdktf.stringToTerraform(this._pipelineId),
            parameter_object: cdktf.listMapper(datapipelinePipelineDefinitionParameterObjectToTerraform)(this._parameterObject),
            parameter_value: cdktf.listMapper(datapipelinePipelineDefinitionParameterValueToTerraform)(this._parameterValue),
            pipeline_object: cdktf.listMapper(datapipelinePipelineDefinitionPipelineObjectToTerraform)(this._pipelineObject),
        };
    }
}
//# sourceMappingURL=datapipeline-pipeline-definition.js.map