// generated from terraform resource schema
import * as cdktf from 'cdktf';
export function sagemakerProjectServiceCatalogProvisioningDetailsProvisioningParameterToTerraform(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),
        value: cdktf.stringToTerraform(struct.value),
    };
}
export function sagemakerProjectServiceCatalogProvisioningDetailsToTerraform(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 {
        path_id: cdktf.stringToTerraform(struct.pathId),
        product_id: cdktf.stringToTerraform(struct.productId),
        provisioning_artifact_id: cdktf.stringToTerraform(struct.provisioningArtifactId),
        provisioning_parameter: cdktf.listMapper(sagemakerProjectServiceCatalogProvisioningDetailsProvisioningParameterToTerraform)(struct.provisioningParameter),
    };
}
export class SagemakerProjectServiceCatalogProvisioningDetailsOutputReference extends cdktf.ComplexObject {
    isEmptyObject = false;
    /**
    * @param terraformResource The parent resource
    * @param terraformAttribute The attribute on the parent resource this class is referencing
    * @param isSingleItem True if this is a block, false if it's a list
    */
    constructor(terraformResource, terraformAttribute, isSingleItem) {
        super(terraformResource, terraformAttribute, isSingleItem);
    }
    get internalValue() {
        let hasAnyValues = this.isEmptyObject;
        const internalValueResult = {};
        if (this._pathId !== undefined) {
            hasAnyValues = true;
            internalValueResult.pathId = this._pathId;
        }
        if (this._productId !== undefined) {
            hasAnyValues = true;
            internalValueResult.productId = this._productId;
        }
        if (this._provisioningArtifactId !== undefined) {
            hasAnyValues = true;
            internalValueResult.provisioningArtifactId = this._provisioningArtifactId;
        }
        if (this._provisioningParameter !== undefined) {
            hasAnyValues = true;
            internalValueResult.provisioningParameter = this._provisioningParameter;
        }
        return hasAnyValues ? internalValueResult : undefined;
    }
    set internalValue(value) {
        if (value === undefined) {
            this.isEmptyObject = false;
            this._pathId = undefined;
            this._productId = undefined;
            this._provisioningArtifactId = undefined;
            this._provisioningParameter = undefined;
        }
        else {
            this.isEmptyObject = Object.keys(value).length === 0;
            this._pathId = value.pathId;
            this._productId = value.productId;
            this._provisioningArtifactId = value.provisioningArtifactId;
            this._provisioningParameter = value.provisioningParameter;
        }
    }
    // path_id - computed: false, optional: true, required: false
    _pathId;
    get pathId() {
        return this.getStringAttribute('path_id');
    }
    set pathId(value) {
        this._pathId = value;
    }
    resetPathId() {
        this._pathId = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get pathIdInput() {
        return this._pathId;
    }
    // product_id - computed: false, optional: false, required: true
    _productId;
    get productId() {
        return this.getStringAttribute('product_id');
    }
    set productId(value) {
        this._productId = value;
    }
    // Temporarily expose input value. Use with caution.
    get productIdInput() {
        return this._productId;
    }
    // provisioning_artifact_id - computed: true, optional: true, required: false
    _provisioningArtifactId;
    get provisioningArtifactId() {
        return this.getStringAttribute('provisioning_artifact_id');
    }
    set provisioningArtifactId(value) {
        this._provisioningArtifactId = value;
    }
    resetProvisioningArtifactId() {
        this._provisioningArtifactId = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get provisioningArtifactIdInput() {
        return this._provisioningArtifactId;
    }
    // provisioning_parameter - computed: false, optional: true, required: false
    _provisioningParameter;
    get provisioningParameter() {
        // Getting the computed value is not yet implemented
        return this.interpolationForAttribute('provisioning_parameter');
    }
    set provisioningParameter(value) {
        this._provisioningParameter = value;
    }
    resetProvisioningParameter() {
        this._provisioningParameter = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get provisioningParameterInput() {
        return this._provisioningParameter;
    }
}
/**
* Represents a {@link https://www.terraform.io/docs/providers/aws/r/sagemaker_project aws_sagemaker_project}
*/
export class SagemakerProject extends cdktf.TerraformResource {
    // =================
    // STATIC PROPERTIES
    // =================
    static tfResourceType = "aws_sagemaker_project";
    // ===========
    // INITIALIZER
    // ===========
    /**
    * Create a new {@link https://www.terraform.io/docs/providers/aws/r/sagemaker_project aws_sagemaker_project} 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 SagemakerProjectConfig
    */
    constructor(scope, id, config) {
        super(scope, id, {
            terraformResourceType: 'aws_sagemaker_project',
            terraformGeneratorMetadata: {
                providerName: 'aws'
            },
            provider: config.provider,
            dependsOn: config.dependsOn,
            count: config.count,
            lifecycle: config.lifecycle
        });
        this._projectDescription = config.projectDescription;
        this._projectName = config.projectName;
        this._tags = config.tags;
        this._tagsAll = config.tagsAll;
        this._serviceCatalogProvisioningDetails.internalValue = config.serviceCatalogProvisioningDetails;
    }
    // ==========
    // ATTRIBUTES
    // ==========
    // arn - computed: true, optional: false, required: false
    get arn() {
        return this.getStringAttribute('arn');
    }
    // id - computed: true, optional: true, required: false
    get id() {
        return this.getStringAttribute('id');
    }
    // project_description - computed: false, optional: true, required: false
    _projectDescription;
    get projectDescription() {
        return this.getStringAttribute('project_description');
    }
    set projectDescription(value) {
        this._projectDescription = value;
    }
    resetProjectDescription() {
        this._projectDescription = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get projectDescriptionInput() {
        return this._projectDescription;
    }
    // project_id - computed: true, optional: false, required: false
    get projectId() {
        return this.getStringAttribute('project_id');
    }
    // project_name - computed: false, optional: false, required: true
    _projectName;
    get projectName() {
        return this.getStringAttribute('project_name');
    }
    set projectName(value) {
        this._projectName = value;
    }
    // Temporarily expose input value. Use with caution.
    get projectNameInput() {
        return this._projectName;
    }
    // tags - computed: false, optional: true, required: false
    _tags;
    get tags() {
        return this.getStringMapAttribute('tags');
    }
    set tags(value) {
        this._tags = value;
    }
    resetTags() {
        this._tags = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get tagsInput() {
        return this._tags;
    }
    // tags_all - computed: true, optional: true, required: false
    _tagsAll;
    get tagsAll() {
        return this.getStringMapAttribute('tags_all');
    }
    set tagsAll(value) {
        this._tagsAll = value;
    }
    resetTagsAll() {
        this._tagsAll = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get tagsAllInput() {
        return this._tagsAll;
    }
    // service_catalog_provisioning_details - computed: false, optional: false, required: true
    _serviceCatalogProvisioningDetails = new SagemakerProjectServiceCatalogProvisioningDetailsOutputReference(this, "service_catalog_provisioning_details", true);
    get serviceCatalogProvisioningDetails() {
        return this._serviceCatalogProvisioningDetails;
    }
    putServiceCatalogProvisioningDetails(value) {
        this._serviceCatalogProvisioningDetails.internalValue = value;
    }
    // Temporarily expose input value. Use with caution.
    get serviceCatalogProvisioningDetailsInput() {
        return this._serviceCatalogProvisioningDetails.internalValue;
    }
    // =========
    // SYNTHESIS
    // =========
    synthesizeAttributes() {
        return {
            project_description: cdktf.stringToTerraform(this._projectDescription),
            project_name: cdktf.stringToTerraform(this._projectName),
            tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._tags),
            tags_all: cdktf.hashMapper(cdktf.stringToTerraform)(this._tagsAll),
            service_catalog_provisioning_details: sagemakerProjectServiceCatalogProvisioningDetailsToTerraform(this._serviceCatalogProvisioningDetails.internalValue),
        };
    }
}
//# sourceMappingURL=sagemaker-project.js.map