// generated from terraform resource schema
import * as cdktf from 'cdktf';
export class DataAwsEc2ClientVpnEndpointAuthenticationOptions extends cdktf.ComplexComputedList {
    // active_directory_id - computed: true, optional: false, required: false
    get activeDirectoryId() {
        return this.getStringAttribute('active_directory_id');
    }
    // root_certificate_chain_arn - computed: true, optional: false, required: false
    get rootCertificateChainArn() {
        return this.getStringAttribute('root_certificate_chain_arn');
    }
    // saml_provider_arn - computed: true, optional: false, required: false
    get samlProviderArn() {
        return this.getStringAttribute('saml_provider_arn');
    }
    // self_service_saml_provider_arn - computed: true, optional: false, required: false
    get selfServiceSamlProviderArn() {
        return this.getStringAttribute('self_service_saml_provider_arn');
    }
    // type - computed: true, optional: false, required: false
    get type() {
        return this.getStringAttribute('type');
    }
}
export class DataAwsEc2ClientVpnEndpointClientConnectOptions extends cdktf.ComplexComputedList {
    // enabled - computed: true, optional: false, required: false
    get enabled() {
        return this.getBooleanAttribute('enabled');
    }
    // lambda_function_arn - computed: true, optional: false, required: false
    get lambdaFunctionArn() {
        return this.getStringAttribute('lambda_function_arn');
    }
}
export class DataAwsEc2ClientVpnEndpointClientLoginBannerOptions extends cdktf.ComplexComputedList {
    // banner_text - computed: true, optional: false, required: false
    get bannerText() {
        return this.getStringAttribute('banner_text');
    }
    // enabled - computed: true, optional: false, required: false
    get enabled() {
        return this.getBooleanAttribute('enabled');
    }
}
export class DataAwsEc2ClientVpnEndpointConnectionLogOptions extends cdktf.ComplexComputedList {
    // cloudwatch_log_group - computed: true, optional: false, required: false
    get cloudwatchLogGroup() {
        return this.getStringAttribute('cloudwatch_log_group');
    }
    // cloudwatch_log_stream - computed: true, optional: false, required: false
    get cloudwatchLogStream() {
        return this.getStringAttribute('cloudwatch_log_stream');
    }
    // enabled - computed: true, optional: false, required: false
    get enabled() {
        return this.getBooleanAttribute('enabled');
    }
}
export function dataAwsEc2ClientVpnEndpointFilterToTerraform(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),
        values: cdktf.listMapper(cdktf.stringToTerraform)(struct.values),
    };
}
/**
* Represents a {@link https://www.terraform.io/docs/providers/aws/d/ec2_client_vpn_endpoint aws_ec2_client_vpn_endpoint}
*/
export class DataAwsEc2ClientVpnEndpoint extends cdktf.TerraformDataSource {
    // =================
    // STATIC PROPERTIES
    // =================
    static tfResourceType = "aws_ec2_client_vpn_endpoint";
    // ===========
    // INITIALIZER
    // ===========
    /**
    * Create a new {@link https://www.terraform.io/docs/providers/aws/d/ec2_client_vpn_endpoint aws_ec2_client_vpn_endpoint} Data Source
    *
    * @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 DataAwsEc2ClientVpnEndpointConfig = {}
    */
    constructor(scope, id, config = {}) {
        super(scope, id, {
            terraformResourceType: 'aws_ec2_client_vpn_endpoint',
            terraformGeneratorMetadata: {
                providerName: 'aws'
            },
            provider: config.provider,
            dependsOn: config.dependsOn,
            count: config.count,
            lifecycle: config.lifecycle
        });
        this._clientVpnEndpointId = config.clientVpnEndpointId;
        this._tags = config.tags;
        this._filter = config.filter;
    }
    // ==========
    // ATTRIBUTES
    // ==========
    // arn - computed: true, optional: false, required: false
    get arn() {
        return this.getStringAttribute('arn');
    }
    // authentication_options - computed: true, optional: false, required: false
    authenticationOptions(index) {
        return new DataAwsEc2ClientVpnEndpointAuthenticationOptions(this, 'authentication_options', index, false);
    }
    // client_cidr_block - computed: true, optional: false, required: false
    get clientCidrBlock() {
        return this.getStringAttribute('client_cidr_block');
    }
    // client_connect_options - computed: true, optional: false, required: false
    clientConnectOptions(index) {
        return new DataAwsEc2ClientVpnEndpointClientConnectOptions(this, 'client_connect_options', index, false);
    }
    // client_login_banner_options - computed: true, optional: false, required: false
    clientLoginBannerOptions(index) {
        return new DataAwsEc2ClientVpnEndpointClientLoginBannerOptions(this, 'client_login_banner_options', index, false);
    }
    // client_vpn_endpoint_id - computed: true, optional: true, required: false
    _clientVpnEndpointId;
    get clientVpnEndpointId() {
        return this.getStringAttribute('client_vpn_endpoint_id');
    }
    set clientVpnEndpointId(value) {
        this._clientVpnEndpointId = value;
    }
    resetClientVpnEndpointId() {
        this._clientVpnEndpointId = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get clientVpnEndpointIdInput() {
        return this._clientVpnEndpointId;
    }
    // connection_log_options - computed: true, optional: false, required: false
    connectionLogOptions(index) {
        return new DataAwsEc2ClientVpnEndpointConnectionLogOptions(this, 'connection_log_options', index, false);
    }
    // description - computed: true, optional: false, required: false
    get description() {
        return this.getStringAttribute('description');
    }
    // dns_name - computed: true, optional: false, required: false
    get dnsName() {
        return this.getStringAttribute('dns_name');
    }
    // dns_servers - computed: true, optional: false, required: false
    get dnsServers() {
        return this.getListAttribute('dns_servers');
    }
    // id - computed: true, optional: true, required: false
    get id() {
        return this.getStringAttribute('id');
    }
    // security_group_ids - computed: true, optional: false, required: false
    get securityGroupIds() {
        return this.getListAttribute('security_group_ids');
    }
    // self_service_portal - computed: true, optional: false, required: false
    get selfServicePortal() {
        return this.getStringAttribute('self_service_portal');
    }
    // server_certificate_arn - computed: true, optional: false, required: false
    get serverCertificateArn() {
        return this.getStringAttribute('server_certificate_arn');
    }
    // session_timeout_hours - computed: true, optional: false, required: false
    get sessionTimeoutHours() {
        return this.getNumberAttribute('session_timeout_hours');
    }
    // split_tunnel - computed: true, optional: false, required: false
    get splitTunnel() {
        return this.getBooleanAttribute('split_tunnel');
    }
    // tags - computed: true, 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;
    }
    // transport_protocol - computed: true, optional: false, required: false
    get transportProtocol() {
        return this.getStringAttribute('transport_protocol');
    }
    // vpc_id - computed: true, optional: false, required: false
    get vpcId() {
        return this.getStringAttribute('vpc_id');
    }
    // vpn_port - computed: true, optional: false, required: false
    get vpnPort() {
        return this.getNumberAttribute('vpn_port');
    }
    // filter - computed: false, optional: true, required: false
    _filter;
    get filter() {
        // Getting the computed value is not yet implemented
        return cdktf.Token.asAny(cdktf.Fn.tolist(this.interpolationForAttribute('filter')));
    }
    set filter(value) {
        this._filter = value;
    }
    resetFilter() {
        this._filter = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get filterInput() {
        return this._filter;
    }
    // =========
    // SYNTHESIS
    // =========
    synthesizeAttributes() {
        return {
            client_vpn_endpoint_id: cdktf.stringToTerraform(this._clientVpnEndpointId),
            tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._tags),
            filter: cdktf.listMapper(dataAwsEc2ClientVpnEndpointFilterToTerraform)(this._filter),
        };
    }
}
//# sourceMappingURL=data-aws-ec2-client-vpn-endpoint.js.map