// generated from terraform resource schema
import * as cdktf from 'cdktf';
export class DataAwsLaunchTemplateBlockDeviceMappingsEbs extends cdktf.ComplexComputedList {
    // delete_on_termination - computed: true, optional: false, required: false
    get deleteOnTermination() {
        return this.getStringAttribute('delete_on_termination');
    }
    // encrypted - computed: true, optional: false, required: false
    get encrypted() {
        return this.getStringAttribute('encrypted');
    }
    // iops - computed: true, optional: false, required: false
    get iops() {
        return this.getNumberAttribute('iops');
    }
    // kms_key_id - computed: true, optional: false, required: false
    get kmsKeyId() {
        return this.getStringAttribute('kms_key_id');
    }
    // snapshot_id - computed: true, optional: false, required: false
    get snapshotId() {
        return this.getStringAttribute('snapshot_id');
    }
    // throughput - computed: true, optional: false, required: false
    get throughput() {
        return this.getNumberAttribute('throughput');
    }
    // volume_size - computed: true, optional: false, required: false
    get volumeSize() {
        return this.getNumberAttribute('volume_size');
    }
    // volume_type - computed: true, optional: false, required: false
    get volumeType() {
        return this.getStringAttribute('volume_type');
    }
}
export class DataAwsLaunchTemplateBlockDeviceMappings extends cdktf.ComplexComputedList {
    // device_name - computed: true, optional: false, required: false
    get deviceName() {
        return this.getStringAttribute('device_name');
    }
    // ebs - computed: true, optional: false, required: false
    get ebs() {
        // Getting the computed value is not yet implemented
        return this.interpolationForAttribute('ebs');
    }
    // no_device - computed: true, optional: false, required: false
    get noDevice() {
        return this.getStringAttribute('no_device');
    }
    // virtual_name - computed: true, optional: false, required: false
    get virtualName() {
        return this.getStringAttribute('virtual_name');
    }
}
export class DataAwsLaunchTemplateCreditSpecification extends cdktf.ComplexComputedList {
    // cpu_credits - computed: true, optional: false, required: false
    get cpuCredits() {
        return this.getStringAttribute('cpu_credits');
    }
}
export class DataAwsLaunchTemplateElasticGpuSpecifications extends cdktf.ComplexComputedList {
    // type - computed: true, optional: false, required: false
    get type() {
        return this.getStringAttribute('type');
    }
}
export class DataAwsLaunchTemplateEnclaveOptions extends cdktf.ComplexComputedList {
    // enabled - computed: true, optional: false, required: false
    get enabled() {
        return this.getBooleanAttribute('enabled');
    }
}
export class DataAwsLaunchTemplateHibernationOptions extends cdktf.ComplexComputedList {
    // configured - computed: true, optional: false, required: false
    get configured() {
        return this.getBooleanAttribute('configured');
    }
}
export class DataAwsLaunchTemplateIamInstanceProfile extends cdktf.ComplexComputedList {
    // arn - computed: true, optional: false, required: false
    get arn() {
        return this.getStringAttribute('arn');
    }
    // name - computed: true, optional: false, required: false
    get name() {
        return this.getStringAttribute('name');
    }
}
export class DataAwsLaunchTemplateInstanceMarketOptionsSpotOptions extends cdktf.ComplexComputedList {
    // block_duration_minutes - computed: true, optional: false, required: false
    get blockDurationMinutes() {
        return this.getNumberAttribute('block_duration_minutes');
    }
    // instance_interruption_behavior - computed: true, optional: false, required: false
    get instanceInterruptionBehavior() {
        return this.getStringAttribute('instance_interruption_behavior');
    }
    // max_price - computed: true, optional: false, required: false
    get maxPrice() {
        return this.getStringAttribute('max_price');
    }
    // spot_instance_type - computed: true, optional: false, required: false
    get spotInstanceType() {
        return this.getStringAttribute('spot_instance_type');
    }
    // valid_until - computed: true, optional: false, required: false
    get validUntil() {
        return this.getStringAttribute('valid_until');
    }
}
export class DataAwsLaunchTemplateInstanceMarketOptions extends cdktf.ComplexComputedList {
    // market_type - computed: true, optional: false, required: false
    get marketType() {
        return this.getStringAttribute('market_type');
    }
    // spot_options - computed: true, optional: false, required: false
    get spotOptions() {
        // Getting the computed value is not yet implemented
        return this.interpolationForAttribute('spot_options');
    }
}
export class DataAwsLaunchTemplateMetadataOptions extends cdktf.ComplexComputedList {
    // http_endpoint - computed: true, optional: false, required: false
    get httpEndpoint() {
        return this.getStringAttribute('http_endpoint');
    }
    // http_protocol_ipv6 - computed: true, optional: false, required: false
    get httpProtocolIpv6() {
        return this.getStringAttribute('http_protocol_ipv6');
    }
    // http_put_response_hop_limit - computed: true, optional: false, required: false
    get httpPutResponseHopLimit() {
        return this.getNumberAttribute('http_put_response_hop_limit');
    }
    // http_tokens - computed: true, optional: false, required: false
    get httpTokens() {
        return this.getStringAttribute('http_tokens');
    }
    // instance_metadata_tags - computed: true, optional: false, required: false
    get instanceMetadataTags() {
        return this.getStringAttribute('instance_metadata_tags');
    }
}
export class DataAwsLaunchTemplateMonitoring extends cdktf.ComplexComputedList {
    // enabled - computed: true, optional: false, required: false
    get enabled() {
        return this.getBooleanAttribute('enabled');
    }
}
export class DataAwsLaunchTemplateNetworkInterfaces extends cdktf.ComplexComputedList {
    // associate_carrier_ip_address - computed: true, optional: false, required: false
    get associateCarrierIpAddress() {
        return this.getStringAttribute('associate_carrier_ip_address');
    }
    // associate_public_ip_address - computed: true, optional: false, required: false
    get associatePublicIpAddress() {
        return this.getStringAttribute('associate_public_ip_address');
    }
    // delete_on_termination - computed: true, optional: false, required: false
    get deleteOnTermination() {
        return this.getStringAttribute('delete_on_termination');
    }
    // description - computed: true, optional: false, required: false
    get description() {
        return this.getStringAttribute('description');
    }
    // device_index - computed: true, optional: false, required: false
    get deviceIndex() {
        return this.getNumberAttribute('device_index');
    }
    // interface_type - computed: true, optional: false, required: false
    get interfaceType() {
        return this.getStringAttribute('interface_type');
    }
    // ipv4_address_count - computed: true, optional: false, required: false
    get ipv4AddressCount() {
        return this.getNumberAttribute('ipv4_address_count');
    }
    // ipv4_addresses - computed: true, optional: false, required: false
    get ipv4Addresses() {
        return cdktf.Fn.tolist(this.getListAttribute('ipv4_addresses'));
    }
    // ipv6_address_count - computed: true, optional: false, required: false
    get ipv6AddressCount() {
        return this.getNumberAttribute('ipv6_address_count');
    }
    // ipv6_addresses - computed: true, optional: false, required: false
    get ipv6Addresses() {
        return cdktf.Fn.tolist(this.getListAttribute('ipv6_addresses'));
    }
    // network_card_index - computed: true, optional: false, required: false
    get networkCardIndex() {
        return this.getNumberAttribute('network_card_index');
    }
    // network_interface_id - computed: true, optional: false, required: false
    get networkInterfaceId() {
        return this.getStringAttribute('network_interface_id');
    }
    // private_ip_address - computed: true, optional: false, required: false
    get privateIpAddress() {
        return this.getStringAttribute('private_ip_address');
    }
    // security_groups - computed: true, optional: false, required: false
    get securityGroups() {
        return cdktf.Fn.tolist(this.getListAttribute('security_groups'));
    }
    // subnet_id - computed: true, optional: false, required: false
    get subnetId() {
        return this.getStringAttribute('subnet_id');
    }
}
export class DataAwsLaunchTemplatePlacement extends cdktf.ComplexComputedList {
    // affinity - computed: true, optional: false, required: false
    get affinity() {
        return this.getStringAttribute('affinity');
    }
    // availability_zone - computed: true, optional: false, required: false
    get availabilityZone() {
        return this.getStringAttribute('availability_zone');
    }
    // group_name - computed: true, optional: false, required: false
    get groupName() {
        return this.getStringAttribute('group_name');
    }
    // host_id - computed: true, optional: false, required: false
    get hostId() {
        return this.getStringAttribute('host_id');
    }
    // host_resource_group_arn - computed: true, optional: false, required: false
    get hostResourceGroupArn() {
        return this.getStringAttribute('host_resource_group_arn');
    }
    // partition_number - computed: true, optional: false, required: false
    get partitionNumber() {
        return this.getNumberAttribute('partition_number');
    }
    // spread_domain - computed: true, optional: false, required: false
    get spreadDomain() {
        return this.getStringAttribute('spread_domain');
    }
    // tenancy - computed: true, optional: false, required: false
    get tenancy() {
        return this.getStringAttribute('tenancy');
    }
}
export class DataAwsLaunchTemplateTagSpecifications extends cdktf.ComplexComputedList {
    // resource_type - computed: true, optional: false, required: false
    get resourceType() {
        return this.getStringAttribute('resource_type');
    }
    // tags - computed: true, optional: false, required: false
    get tags() {
        return this.getStringMapAttribute('tags');
    }
}
export function dataAwsLaunchTemplateFilterToTerraform(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/launch_template aws_launch_template}
*/
export class DataAwsLaunchTemplate extends cdktf.TerraformDataSource {
    // =================
    // STATIC PROPERTIES
    // =================
    static tfResourceType = "aws_launch_template";
    // ===========
    // INITIALIZER
    // ===========
    /**
    * Create a new {@link https://www.terraform.io/docs/providers/aws/d/launch_template aws_launch_template} 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 DataAwsLaunchTemplateConfig = {}
    */
    constructor(scope, id, config = {}) {
        super(scope, id, {
            terraformResourceType: 'aws_launch_template',
            terraformGeneratorMetadata: {
                providerName: 'aws'
            },
            provider: config.provider,
            dependsOn: config.dependsOn,
            count: config.count,
            lifecycle: config.lifecycle
        });
        this._name = config.name;
        this._tags = config.tags;
        this._filter = config.filter;
    }
    // ==========
    // ATTRIBUTES
    // ==========
    // arn - computed: true, optional: false, required: false
    get arn() {
        return this.getStringAttribute('arn');
    }
    // block_device_mappings - computed: true, optional: false, required: false
    blockDeviceMappings(index) {
        return new DataAwsLaunchTemplateBlockDeviceMappings(this, 'block_device_mappings', index, false);
    }
    // credit_specification - computed: true, optional: false, required: false
    creditSpecification(index) {
        return new DataAwsLaunchTemplateCreditSpecification(this, 'credit_specification', index, false);
    }
    // default_version - computed: true, optional: false, required: false
    get defaultVersion() {
        return this.getNumberAttribute('default_version');
    }
    // description - computed: true, optional: false, required: false
    get description() {
        return this.getStringAttribute('description');
    }
    // disable_api_termination - computed: true, optional: false, required: false
    get disableApiTermination() {
        return this.getBooleanAttribute('disable_api_termination');
    }
    // ebs_optimized - computed: true, optional: false, required: false
    get ebsOptimized() {
        return this.getStringAttribute('ebs_optimized');
    }
    // elastic_gpu_specifications - computed: true, optional: false, required: false
    elasticGpuSpecifications(index) {
        return new DataAwsLaunchTemplateElasticGpuSpecifications(this, 'elastic_gpu_specifications', index, false);
    }
    // enclave_options - computed: true, optional: false, required: false
    enclaveOptions(index) {
        return new DataAwsLaunchTemplateEnclaveOptions(this, 'enclave_options', index, false);
    }
    // hibernation_options - computed: true, optional: false, required: false
    hibernationOptions(index) {
        return new DataAwsLaunchTemplateHibernationOptions(this, 'hibernation_options', index, false);
    }
    // iam_instance_profile - computed: true, optional: false, required: false
    iamInstanceProfile(index) {
        return new DataAwsLaunchTemplateIamInstanceProfile(this, 'iam_instance_profile', index, false);
    }
    // id - computed: true, optional: true, required: false
    get id() {
        return this.getStringAttribute('id');
    }
    // image_id - computed: true, optional: false, required: false
    get imageId() {
        return this.getStringAttribute('image_id');
    }
    // instance_initiated_shutdown_behavior - computed: true, optional: false, required: false
    get instanceInitiatedShutdownBehavior() {
        return this.getStringAttribute('instance_initiated_shutdown_behavior');
    }
    // instance_market_options - computed: true, optional: false, required: false
    instanceMarketOptions(index) {
        return new DataAwsLaunchTemplateInstanceMarketOptions(this, 'instance_market_options', index, false);
    }
    // instance_type - computed: true, optional: false, required: false
    get instanceType() {
        return this.getStringAttribute('instance_type');
    }
    // kernel_id - computed: true, optional: false, required: false
    get kernelId() {
        return this.getStringAttribute('kernel_id');
    }
    // key_name - computed: true, optional: false, required: false
    get keyName() {
        return this.getStringAttribute('key_name');
    }
    // latest_version - computed: true, optional: false, required: false
    get latestVersion() {
        return this.getNumberAttribute('latest_version');
    }
    // metadata_options - computed: true, optional: false, required: false
    metadataOptions(index) {
        return new DataAwsLaunchTemplateMetadataOptions(this, 'metadata_options', index, false);
    }
    // monitoring - computed: true, optional: false, required: false
    monitoring(index) {
        return new DataAwsLaunchTemplateMonitoring(this, 'monitoring', index, false);
    }
    // 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;
    }
    // network_interfaces - computed: true, optional: false, required: false
    networkInterfaces(index) {
        return new DataAwsLaunchTemplateNetworkInterfaces(this, 'network_interfaces', index, false);
    }
    // placement - computed: true, optional: false, required: false
    placement(index) {
        return new DataAwsLaunchTemplatePlacement(this, 'placement', index, false);
    }
    // ram_disk_id - computed: true, optional: false, required: false
    get ramDiskId() {
        return this.getStringAttribute('ram_disk_id');
    }
    // security_group_names - computed: true, optional: false, required: false
    get securityGroupNames() {
        return cdktf.Fn.tolist(this.getListAttribute('security_group_names'));
    }
    // tag_specifications - computed: true, optional: false, required: false
    tagSpecifications(index) {
        return new DataAwsLaunchTemplateTagSpecifications(this, 'tag_specifications', index, false);
    }
    // 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;
    }
    // user_data - computed: true, optional: false, required: false
    get userData() {
        return this.getStringAttribute('user_data');
    }
    // vpc_security_group_ids - computed: true, optional: false, required: false
    get vpcSecurityGroupIds() {
        return cdktf.Fn.tolist(this.getListAttribute('vpc_security_group_ids'));
    }
    // 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 {
            name: cdktf.stringToTerraform(this._name),
            tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._tags),
            filter: cdktf.listMapper(dataAwsLaunchTemplateFilterToTerraform)(this._filter),
        };
    }
}
//# sourceMappingURL=data-aws-launch-template.js.map