// generated from terraform resource schema
import * as cdktf from 'cdktf';
/**
* Represents a {@link https://www.terraform.io/docs/providers/aws/r/iot_thing_group_membership aws_iot_thing_group_membership}
*/
export class IotThingGroupMembership extends cdktf.TerraformResource {
    // =================
    // STATIC PROPERTIES
    // =================
    static tfResourceType = "aws_iot_thing_group_membership";
    // ===========
    // INITIALIZER
    // ===========
    /**
    * Create a new {@link https://www.terraform.io/docs/providers/aws/r/iot_thing_group_membership aws_iot_thing_group_membership} 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 IotThingGroupMembershipConfig
    */
    constructor(scope, id, config) {
        super(scope, id, {
            terraformResourceType: 'aws_iot_thing_group_membership',
            terraformGeneratorMetadata: {
                providerName: 'aws'
            },
            provider: config.provider,
            dependsOn: config.dependsOn,
            count: config.count,
            lifecycle: config.lifecycle
        });
        this._overrideDynamicGroup = config.overrideDynamicGroup;
        this._thingGroupName = config.thingGroupName;
        this._thingName = config.thingName;
    }
    // ==========
    // ATTRIBUTES
    // ==========
    // id - computed: true, optional: true, required: false
    get id() {
        return this.getStringAttribute('id');
    }
    // override_dynamic_group - computed: false, optional: true, required: false
    _overrideDynamicGroup;
    get overrideDynamicGroup() {
        return this.getBooleanAttribute('override_dynamic_group');
    }
    set overrideDynamicGroup(value) {
        this._overrideDynamicGroup = value;
    }
    resetOverrideDynamicGroup() {
        this._overrideDynamicGroup = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get overrideDynamicGroupInput() {
        return this._overrideDynamicGroup;
    }
    // thing_group_name - computed: false, optional: false, required: true
    _thingGroupName;
    get thingGroupName() {
        return this.getStringAttribute('thing_group_name');
    }
    set thingGroupName(value) {
        this._thingGroupName = value;
    }
    // Temporarily expose input value. Use with caution.
    get thingGroupNameInput() {
        return this._thingGroupName;
    }
    // thing_name - computed: false, optional: false, required: true
    _thingName;
    get thingName() {
        return this.getStringAttribute('thing_name');
    }
    set thingName(value) {
        this._thingName = value;
    }
    // Temporarily expose input value. Use with caution.
    get thingNameInput() {
        return this._thingName;
    }
    // =========
    // SYNTHESIS
    // =========
    synthesizeAttributes() {
        return {
            override_dynamic_group: cdktf.booleanToTerraform(this._overrideDynamicGroup),
            thing_group_name: cdktf.stringToTerraform(this._thingGroupName),
            thing_name: cdktf.stringToTerraform(this._thingName),
        };
    }
}
//# sourceMappingURL=iot-thing-group-membership.js.map