// generated from terraform resource schema
import * as cdktf from 'cdktf';
/**
* Represents a {@link https://www.terraform.io/docs/providers/aws/r/servicecatalog_portfolio_share aws_servicecatalog_portfolio_share}
*/
export class ServicecatalogPortfolioShare extends cdktf.TerraformResource {
    // =================
    // STATIC PROPERTIES
    // =================
    static tfResourceType = "aws_servicecatalog_portfolio_share";
    // ===========
    // INITIALIZER
    // ===========
    /**
    * Create a new {@link https://www.terraform.io/docs/providers/aws/r/servicecatalog_portfolio_share aws_servicecatalog_portfolio_share} 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 ServicecatalogPortfolioShareConfig
    */
    constructor(scope, id, config) {
        super(scope, id, {
            terraformResourceType: 'aws_servicecatalog_portfolio_share',
            terraformGeneratorMetadata: {
                providerName: 'aws'
            },
            provider: config.provider,
            dependsOn: config.dependsOn,
            count: config.count,
            lifecycle: config.lifecycle
        });
        this._acceptLanguage = config.acceptLanguage;
        this._portfolioId = config.portfolioId;
        this._principalId = config.principalId;
        this._shareTagOptions = config.shareTagOptions;
        this._type = config.type;
        this._waitForAcceptance = config.waitForAcceptance;
    }
    // ==========
    // 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;
    }
    // accepted - computed: true, optional: false, required: false
    get accepted() {
        return this.getBooleanAttribute('accepted');
    }
    // id - computed: true, optional: true, required: false
    get id() {
        return this.getStringAttribute('id');
    }
    // portfolio_id - computed: false, optional: false, required: true
    _portfolioId;
    get portfolioId() {
        return this.getStringAttribute('portfolio_id');
    }
    set portfolioId(value) {
        this._portfolioId = value;
    }
    // Temporarily expose input value. Use with caution.
    get portfolioIdInput() {
        return this._portfolioId;
    }
    // principal_id - computed: false, optional: false, required: true
    _principalId;
    get principalId() {
        return this.getStringAttribute('principal_id');
    }
    set principalId(value) {
        this._principalId = value;
    }
    // Temporarily expose input value. Use with caution.
    get principalIdInput() {
        return this._principalId;
    }
    // share_tag_options - computed: false, optional: true, required: false
    _shareTagOptions;
    get shareTagOptions() {
        return this.getBooleanAttribute('share_tag_options');
    }
    set shareTagOptions(value) {
        this._shareTagOptions = value;
    }
    resetShareTagOptions() {
        this._shareTagOptions = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get shareTagOptionsInput() {
        return this._shareTagOptions;
    }
    // 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;
    }
    // wait_for_acceptance - computed: false, optional: true, required: false
    _waitForAcceptance;
    get waitForAcceptance() {
        return this.getBooleanAttribute('wait_for_acceptance');
    }
    set waitForAcceptance(value) {
        this._waitForAcceptance = value;
    }
    resetWaitForAcceptance() {
        this._waitForAcceptance = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get waitForAcceptanceInput() {
        return this._waitForAcceptance;
    }
    // =========
    // SYNTHESIS
    // =========
    synthesizeAttributes() {
        return {
            accept_language: cdktf.stringToTerraform(this._acceptLanguage),
            portfolio_id: cdktf.stringToTerraform(this._portfolioId),
            principal_id: cdktf.stringToTerraform(this._principalId),
            share_tag_options: cdktf.booleanToTerraform(this._shareTagOptions),
            type: cdktf.stringToTerraform(this._type),
            wait_for_acceptance: cdktf.booleanToTerraform(this._waitForAcceptance),
        };
    }
}
//# sourceMappingURL=servicecatalog-portfolio-share.js.map