// generated from terraform resource schema
import * as cdktf from 'cdktf';
export function servicecatalogProductProvisioningArtifactParametersToTerraform(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 {
        description: cdktf.stringToTerraform(struct.description),
        disable_template_validation: cdktf.booleanToTerraform(struct.disableTemplateValidation),
        name: cdktf.stringToTerraform(struct.name),
        template_physical_id: cdktf.stringToTerraform(struct.templatePhysicalId),
        template_url: cdktf.stringToTerraform(struct.templateUrl),
        type: cdktf.stringToTerraform(struct.type),
    };
}
export class ServicecatalogProductProvisioningArtifactParametersOutputReference 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._description !== undefined) {
            hasAnyValues = true;
            internalValueResult.description = this._description;
        }
        if (this._disableTemplateValidation !== undefined) {
            hasAnyValues = true;
            internalValueResult.disableTemplateValidation = this._disableTemplateValidation;
        }
        if (this._name !== undefined) {
            hasAnyValues = true;
            internalValueResult.name = this._name;
        }
        if (this._templatePhysicalId !== undefined) {
            hasAnyValues = true;
            internalValueResult.templatePhysicalId = this._templatePhysicalId;
        }
        if (this._templateUrl !== undefined) {
            hasAnyValues = true;
            internalValueResult.templateUrl = this._templateUrl;
        }
        if (this._type !== undefined) {
            hasAnyValues = true;
            internalValueResult.type = this._type;
        }
        return hasAnyValues ? internalValueResult : undefined;
    }
    set internalValue(value) {
        if (value === undefined) {
            this.isEmptyObject = false;
            this._description = undefined;
            this._disableTemplateValidation = undefined;
            this._name = undefined;
            this._templatePhysicalId = undefined;
            this._templateUrl = undefined;
            this._type = undefined;
        }
        else {
            this.isEmptyObject = Object.keys(value).length === 0;
            this._description = value.description;
            this._disableTemplateValidation = value.disableTemplateValidation;
            this._name = value.name;
            this._templatePhysicalId = value.templatePhysicalId;
            this._templateUrl = value.templateUrl;
            this._type = value.type;
        }
    }
    // description - computed: false, optional: true, required: false
    _description;
    get description() {
        return this.getStringAttribute('description');
    }
    set description(value) {
        this._description = value;
    }
    resetDescription() {
        this._description = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get descriptionInput() {
        return this._description;
    }
    // disable_template_validation - computed: false, optional: true, required: false
    _disableTemplateValidation;
    get disableTemplateValidation() {
        return this.getBooleanAttribute('disable_template_validation');
    }
    set disableTemplateValidation(value) {
        this._disableTemplateValidation = value;
    }
    resetDisableTemplateValidation() {
        this._disableTemplateValidation = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get disableTemplateValidationInput() {
        return this._disableTemplateValidation;
    }
    // name - computed: false, optional: true, required: false
    _name;
    get name() {
        return this.getStringAttribute('name');
    }
    set name(value) {
        this._name = value;
    }
    resetName() {
        this._name = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get nameInput() {
        return this._name;
    }
    // template_physical_id - computed: false, optional: true, required: false
    _templatePhysicalId;
    get templatePhysicalId() {
        return this.getStringAttribute('template_physical_id');
    }
    set templatePhysicalId(value) {
        this._templatePhysicalId = value;
    }
    resetTemplatePhysicalId() {
        this._templatePhysicalId = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get templatePhysicalIdInput() {
        return this._templatePhysicalId;
    }
    // template_url - computed: false, optional: true, required: false
    _templateUrl;
    get templateUrl() {
        return this.getStringAttribute('template_url');
    }
    set templateUrl(value) {
        this._templateUrl = value;
    }
    resetTemplateUrl() {
        this._templateUrl = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get templateUrlInput() {
        return this._templateUrl;
    }
    // type - computed: false, optional: true, required: false
    _type;
    get type() {
        return this.getStringAttribute('type');
    }
    set type(value) {
        this._type = value;
    }
    resetType() {
        this._type = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get typeInput() {
        return this._type;
    }
}
/**
* Represents a {@link https://www.terraform.io/docs/providers/aws/r/servicecatalog_product aws_servicecatalog_product}
*/
export class ServicecatalogProduct extends cdktf.TerraformResource {
    // =================
    // STATIC PROPERTIES
    // =================
    static tfResourceType = "aws_servicecatalog_product";
    // ===========
    // INITIALIZER
    // ===========
    /**
    * Create a new {@link https://www.terraform.io/docs/providers/aws/r/servicecatalog_product aws_servicecatalog_product} 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 ServicecatalogProductConfig
    */
    constructor(scope, id, config) {
        super(scope, id, {
            terraformResourceType: 'aws_servicecatalog_product',
            terraformGeneratorMetadata: {
                providerName: 'aws'
            },
            provider: config.provider,
            dependsOn: config.dependsOn,
            count: config.count,
            lifecycle: config.lifecycle
        });
        this._acceptLanguage = config.acceptLanguage;
        this._description = config.description;
        this._distributor = config.distributor;
        this._name = config.name;
        this._owner = config.owner;
        this._supportDescription = config.supportDescription;
        this._supportEmail = config.supportEmail;
        this._supportUrl = config.supportUrl;
        this._tags = config.tags;
        this._tagsAll = config.tagsAll;
        this._type = config.type;
        this._provisioningArtifactParameters.internalValue = config.provisioningArtifactParameters;
    }
    // ==========
    // ATTRIBUTES
    // ==========
    // accept_language - computed: false, optional: true, required: false
    _acceptLanguage;
    get acceptLanguage() {
        return this.getStringAttribute('accept_language');
    }
    set acceptLanguage(value) {
        this._acceptLanguage = value;
    }
    resetAcceptLanguage() {
        this._acceptLanguage = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get acceptLanguageInput() {
        return this._acceptLanguage;
    }
    // arn - computed: true, optional: false, required: false
    get arn() {
        return this.getStringAttribute('arn');
    }
    // created_time - computed: true, optional: false, required: false
    get createdTime() {
        return this.getStringAttribute('created_time');
    }
    // description - computed: true, optional: true, required: false
    _description;
    get description() {
        return this.getStringAttribute('description');
    }
    set description(value) {
        this._description = value;
    }
    resetDescription() {
        this._description = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get descriptionInput() {
        return this._description;
    }
    // distributor - computed: true, optional: true, required: false
    _distributor;
    get distributor() {
        return this.getStringAttribute('distributor');
    }
    set distributor(value) {
        this._distributor = value;
    }
    resetDistributor() {
        this._distributor = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get distributorInput() {
        return this._distributor;
    }
    // has_default_path - computed: true, optional: false, required: false
    get hasDefaultPath() {
        return this.getBooleanAttribute('has_default_path');
    }
    // id - computed: true, optional: true, required: false
    get id() {
        return this.getStringAttribute('id');
    }
    // name - computed: false, optional: false, required: true
    _name;
    get name() {
        return this.getStringAttribute('name');
    }
    set name(value) {
        this._name = value;
    }
    // Temporarily expose input value. Use with caution.
    get nameInput() {
        return this._name;
    }
    // owner - computed: false, optional: false, required: true
    _owner;
    get owner() {
        return this.getStringAttribute('owner');
    }
    set owner(value) {
        this._owner = value;
    }
    // Temporarily expose input value. Use with caution.
    get ownerInput() {
        return this._owner;
    }
    // status - computed: true, optional: false, required: false
    get status() {
        return this.getStringAttribute('status');
    }
    // support_description - computed: true, optional: true, required: false
    _supportDescription;
    get supportDescription() {
        return this.getStringAttribute('support_description');
    }
    set supportDescription(value) {
        this._supportDescription = value;
    }
    resetSupportDescription() {
        this._supportDescription = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get supportDescriptionInput() {
        return this._supportDescription;
    }
    // support_email - computed: true, optional: true, required: false
    _supportEmail;
    get supportEmail() {
        return this.getStringAttribute('support_email');
    }
    set supportEmail(value) {
        this._supportEmail = value;
    }
    resetSupportEmail() {
        this._supportEmail = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get supportEmailInput() {
        return this._supportEmail;
    }
    // support_url - computed: true, optional: true, required: false
    _supportUrl;
    get supportUrl() {
        return this.getStringAttribute('support_url');
    }
    set supportUrl(value) {
        this._supportUrl = value;
    }
    resetSupportUrl() {
        this._supportUrl = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get supportUrlInput() {
        return this._supportUrl;
    }
    // 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;
    }
    // type - computed: false, optional: false, required: true
    _type;
    get type() {
        return this.getStringAttribute('type');
    }
    set type(value) {
        this._type = value;
    }
    // Temporarily expose input value. Use with caution.
    get typeInput() {
        return this._type;
    }
    // provisioning_artifact_parameters - computed: false, optional: false, required: true
    _provisioningArtifactParameters = new ServicecatalogProductProvisioningArtifactParametersOutputReference(this, "provisioning_artifact_parameters", true);
    get provisioningArtifactParameters() {
        return this._provisioningArtifactParameters;
    }
    putProvisioningArtifactParameters(value) {
        this._provisioningArtifactParameters.internalValue = value;
    }
    // Temporarily expose input value. Use with caution.
    get provisioningArtifactParametersInput() {
        return this._provisioningArtifactParameters.internalValue;
    }
    // =========
    // SYNTHESIS
    // =========
    synthesizeAttributes() {
        return {
            accept_language: cdktf.stringToTerraform(this._acceptLanguage),
            description: cdktf.stringToTerraform(this._description),
            distributor: cdktf.stringToTerraform(this._distributor),
            name: cdktf.stringToTerraform(this._name),
            owner: cdktf.stringToTerraform(this._owner),
            support_description: cdktf.stringToTerraform(this._supportDescription),
            support_email: cdktf.stringToTerraform(this._supportEmail),
            support_url: cdktf.stringToTerraform(this._supportUrl),
            tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._tags),
            tags_all: cdktf.hashMapper(cdktf.stringToTerraform)(this._tagsAll),
            type: cdktf.stringToTerraform(this._type),
            provisioning_artifact_parameters: servicecatalogProductProvisioningArtifactParametersToTerraform(this._provisioningArtifactParameters.internalValue),
        };
    }
}
//# sourceMappingURL=servicecatalog-product.js.map