// generated from terraform resource schema
import * as cdktf from 'cdktf';
export class ElasticBeanstalkEnvironmentAllSettings extends cdktf.ComplexComputedList {
    // name - computed: true, optional: false, required: false
    get name() {
        return this.getStringAttribute('name');
    }
    // namespace - computed: true, optional: false, required: false
    get namespace() {
        return this.getStringAttribute('namespace');
    }
    // resource - computed: true, optional: false, required: false
    get resource() {
        return this.getStringAttribute('resource');
    }
    // value - computed: true, optional: false, required: false
    get value() {
        return this.getStringAttribute('value');
    }
}
export function elasticBeanstalkEnvironmentSettingToTerraform(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 {
        name: cdktf.stringToTerraform(struct.name),
        namespace: cdktf.stringToTerraform(struct.namespace),
        resource: cdktf.stringToTerraform(struct.resource),
        value: cdktf.stringToTerraform(struct.value),
    };
}
/**
* Represents a {@link https://www.terraform.io/docs/providers/aws/r/elastic_beanstalk_environment aws_elastic_beanstalk_environment}
*/
export class ElasticBeanstalkEnvironment extends cdktf.TerraformResource {
    // =================
    // STATIC PROPERTIES
    // =================
    static tfResourceType = "aws_elastic_beanstalk_environment";
    // ===========
    // INITIALIZER
    // ===========
    /**
    * Create a new {@link https://www.terraform.io/docs/providers/aws/r/elastic_beanstalk_environment aws_elastic_beanstalk_environment} 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 ElasticBeanstalkEnvironmentConfig
    */
    constructor(scope, id, config) {
        super(scope, id, {
            terraformResourceType: 'aws_elastic_beanstalk_environment',
            terraformGeneratorMetadata: {
                providerName: 'aws'
            },
            provider: config.provider,
            dependsOn: config.dependsOn,
            count: config.count,
            lifecycle: config.lifecycle
        });
        this._application = config.application;
        this._cnamePrefix = config.cnamePrefix;
        this._description = config.description;
        this._name = config.name;
        this._platformArn = config.platformArn;
        this._pollInterval = config.pollInterval;
        this._solutionStackName = config.solutionStackName;
        this._tags = config.tags;
        this._tagsAll = config.tagsAll;
        this._templateName = config.templateName;
        this._tier = config.tier;
        this._versionLabel = config.versionLabel;
        this._waitForReadyTimeout = config.waitForReadyTimeout;
        this._setting = config.setting;
    }
    // ==========
    // ATTRIBUTES
    // ==========
    // all_settings - computed: true, optional: false, required: false
    allSettings(index) {
        return new ElasticBeanstalkEnvironmentAllSettings(this, 'all_settings', index, true);
    }
    // application - computed: false, optional: false, required: true
    _application;
    get application() {
        return this.getStringAttribute('application');
    }
    set application(value) {
        this._application = value;
    }
    // Temporarily expose input value. Use with caution.
    get applicationInput() {
        return this._application;
    }
    // arn - computed: true, optional: false, required: false
    get arn() {
        return this.getStringAttribute('arn');
    }
    // autoscaling_groups - computed: true, optional: false, required: false
    get autoscalingGroups() {
        return this.getListAttribute('autoscaling_groups');
    }
    // cname - computed: true, optional: false, required: false
    get cname() {
        return this.getStringAttribute('cname');
    }
    // cname_prefix - computed: true, optional: true, required: false
    _cnamePrefix;
    get cnamePrefix() {
        return this.getStringAttribute('cname_prefix');
    }
    set cnamePrefix(value) {
        this._cnamePrefix = value;
    }
    resetCnamePrefix() {
        this._cnamePrefix = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get cnamePrefixInput() {
        return this._cnamePrefix;
    }
    // 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;
    }
    // endpoint_url - computed: true, optional: false, required: false
    get endpointUrl() {
        return this.getStringAttribute('endpoint_url');
    }
    // id - computed: true, optional: true, required: false
    get id() {
        return this.getStringAttribute('id');
    }
    // instances - computed: true, optional: false, required: false
    get instances() {
        return this.getListAttribute('instances');
    }
    // launch_configurations - computed: true, optional: false, required: false
    get launchConfigurations() {
        return this.getListAttribute('launch_configurations');
    }
    // load_balancers - computed: true, optional: false, required: false
    get loadBalancers() {
        return this.getListAttribute('load_balancers');
    }
    // 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;
    }
    // platform_arn - computed: true, optional: true, required: false
    _platformArn;
    get platformArn() {
        return this.getStringAttribute('platform_arn');
    }
    set platformArn(value) {
        this._platformArn = value;
    }
    resetPlatformArn() {
        this._platformArn = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get platformArnInput() {
        return this._platformArn;
    }
    // poll_interval - computed: false, optional: true, required: false
    _pollInterval;
    get pollInterval() {
        return this.getStringAttribute('poll_interval');
    }
    set pollInterval(value) {
        this._pollInterval = value;
    }
    resetPollInterval() {
        this._pollInterval = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get pollIntervalInput() {
        return this._pollInterval;
    }
    // queues - computed: true, optional: false, required: false
    get queues() {
        return this.getListAttribute('queues');
    }
    // solution_stack_name - computed: true, optional: true, required: false
    _solutionStackName;
    get solutionStackName() {
        return this.getStringAttribute('solution_stack_name');
    }
    set solutionStackName(value) {
        this._solutionStackName = value;
    }
    resetSolutionStackName() {
        this._solutionStackName = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get solutionStackNameInput() {
        return this._solutionStackName;
    }
    // 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;
    }
    // template_name - computed: false, optional: true, required: false
    _templateName;
    get templateName() {
        return this.getStringAttribute('template_name');
    }
    set templateName(value) {
        this._templateName = value;
    }
    resetTemplateName() {
        this._templateName = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get templateNameInput() {
        return this._templateName;
    }
    // tier - computed: false, optional: true, required: false
    _tier;
    get tier() {
        return this.getStringAttribute('tier');
    }
    set tier(value) {
        this._tier = value;
    }
    resetTier() {
        this._tier = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get tierInput() {
        return this._tier;
    }
    // triggers - computed: true, optional: false, required: false
    get triggers() {
        return this.getListAttribute('triggers');
    }
    // version_label - computed: true, optional: true, required: false
    _versionLabel;
    get versionLabel() {
        return this.getStringAttribute('version_label');
    }
    set versionLabel(value) {
        this._versionLabel = value;
    }
    resetVersionLabel() {
        this._versionLabel = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get versionLabelInput() {
        return this._versionLabel;
    }
    // wait_for_ready_timeout - computed: false, optional: true, required: false
    _waitForReadyTimeout;
    get waitForReadyTimeout() {
        return this.getStringAttribute('wait_for_ready_timeout');
    }
    set waitForReadyTimeout(value) {
        this._waitForReadyTimeout = value;
    }
    resetWaitForReadyTimeout() {
        this._waitForReadyTimeout = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get waitForReadyTimeoutInput() {
        return this._waitForReadyTimeout;
    }
    // setting - computed: false, optional: true, required: false
    _setting;
    get setting() {
        // Getting the computed value is not yet implemented
        return cdktf.Token.asAny(cdktf.Fn.tolist(this.interpolationForAttribute('setting')));
    }
    set setting(value) {
        this._setting = value;
    }
    resetSetting() {
        this._setting = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get settingInput() {
        return this._setting;
    }
    // =========
    // SYNTHESIS
    // =========
    synthesizeAttributes() {
        return {
            application: cdktf.stringToTerraform(this._application),
            cname_prefix: cdktf.stringToTerraform(this._cnamePrefix),
            description: cdktf.stringToTerraform(this._description),
            name: cdktf.stringToTerraform(this._name),
            platform_arn: cdktf.stringToTerraform(this._platformArn),
            poll_interval: cdktf.stringToTerraform(this._pollInterval),
            solution_stack_name: cdktf.stringToTerraform(this._solutionStackName),
            tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._tags),
            tags_all: cdktf.hashMapper(cdktf.stringToTerraform)(this._tagsAll),
            template_name: cdktf.stringToTerraform(this._templateName),
            tier: cdktf.stringToTerraform(this._tier),
            version_label: cdktf.stringToTerraform(this._versionLabel),
            wait_for_ready_timeout: cdktf.stringToTerraform(this._waitForReadyTimeout),
            setting: cdktf.listMapper(elasticBeanstalkEnvironmentSettingToTerraform)(this._setting),
        };
    }
}
//# sourceMappingURL=elastic-beanstalk-environment.js.map