import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface MdbKafkaUserConfig extends cdktf.TerraformMetaArguments { /** * The ID of the Kafka cluster. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_kafka_user#cluster_id MdbKafkaUser#cluster_id} */ readonly clusterId: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_kafka_user#id MdbKafkaUser#id} * * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. * If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. */ readonly id?: string; /** * The resource name. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_kafka_user#name MdbKafkaUser#name} */ readonly name: string; /** * The password of the user. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_kafka_user#password MdbKafkaUser#password} */ readonly password: string; /** * permission block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_kafka_user#permission MdbKafkaUser#permission} */ readonly permission?: MdbKafkaUserPermission[] | cdktf.IResolvable; /** * timeouts block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_kafka_user#timeouts MdbKafkaUser#timeouts} */ readonly timeouts?: MdbKafkaUserTimeouts; } export interface MdbKafkaUserPermission { /** * Set of hosts, to which this permission grants access to. Only ip-addresses allowed as value of single host. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_kafka_user#allow_hosts MdbKafkaUser#allow_hosts} */ readonly allowHosts?: string[]; /** * The role type to grant to the topic. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_kafka_user#role MdbKafkaUser#role} */ readonly role: string; /** * The name of the topic that the permission grants access to. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_kafka_user#topic_name MdbKafkaUser#topic_name} */ readonly topicName: string; } export declare function mdbKafkaUserPermissionToTerraform(struct?: MdbKafkaUserPermission | cdktf.IResolvable): any; export declare function mdbKafkaUserPermissionToHclTerraform(struct?: MdbKafkaUserPermission | cdktf.IResolvable): any; export declare class MdbKafkaUserPermissionOutputReference extends cdktf.ComplexObject { private isEmptyObject; private resolvableValue?; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean); get internalValue(): MdbKafkaUserPermission | cdktf.IResolvable | undefined; set internalValue(value: MdbKafkaUserPermission | cdktf.IResolvable | undefined); private _allowHosts?; get allowHosts(): string[]; set allowHosts(value: string[]); resetAllowHosts(): void; get allowHostsInput(): string[]; private _role?; get role(): string; set role(value: string); get roleInput(): string; private _topicName?; get topicName(): string; set topicName(value: string); get topicNameInput(): string; } export declare class MdbKafkaUserPermissionList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: MdbKafkaUserPermission[] | cdktf.IResolvable; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean); /** * @param index the index of the item to return */ get(index: number): MdbKafkaUserPermissionOutputReference; } export interface MdbKafkaUserTimeouts { /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_kafka_user#create MdbKafkaUser#create} */ readonly create?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_kafka_user#delete MdbKafkaUser#delete} */ readonly delete?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_kafka_user#read MdbKafkaUser#read} */ readonly read?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_kafka_user#update MdbKafkaUser#update} */ readonly update?: string; } export declare function mdbKafkaUserTimeoutsToTerraform(struct?: MdbKafkaUserTimeouts | cdktf.IResolvable): any; export declare function mdbKafkaUserTimeoutsToHclTerraform(struct?: MdbKafkaUserTimeouts | cdktf.IResolvable): any; export declare class MdbKafkaUserTimeoutsOutputReference extends cdktf.ComplexObject { private isEmptyObject; private resolvableValue?; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string); get internalValue(): MdbKafkaUserTimeouts | cdktf.IResolvable | undefined; set internalValue(value: MdbKafkaUserTimeouts | cdktf.IResolvable | undefined); private _create?; get create(): string; set create(value: string); resetCreate(): void; get createInput(): string; private _delete?; get delete(): string; set delete(value: string); resetDelete(): void; get deleteInput(): string; private _read?; get read(): string; set read(value: string); resetRead(): void; get readInput(): string; private _update?; get update(): string; set update(value: string); resetUpdate(): void; get updateInput(): string; } /** * Represents a {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_kafka_user yandex_mdb_kafka_user} */ export declare class MdbKafkaUser extends cdktf.TerraformResource { static readonly tfResourceType = "yandex_mdb_kafka_user"; /** * Generates CDKTF code for importing a MdbKafkaUser resource upon running "cdktf plan " * @param scope The scope in which to define this construct * @param importToId The construct id used in the generated config for the MdbKafkaUser to import * @param importFromId The id of the existing MdbKafkaUser that should be imported. Refer to the {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_kafka_user#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the MdbKafkaUser to import is found */ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any; /** * Create a new {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_kafka_user yandex_mdb_kafka_user} 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 MdbKafkaUserConfig */ constructor(scope: Construct, id: string, config: MdbKafkaUserConfig); private _clusterId?; get clusterId(): string; set clusterId(value: string); get clusterIdInput(): string; private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string; private _name?; get name(): string; set name(value: string); get nameInput(): string; private _password?; get password(): string; set password(value: string); get passwordInput(): string; private _permission; get permission(): MdbKafkaUserPermissionList; putPermission(value: MdbKafkaUserPermission[] | cdktf.IResolvable): void; resetPermission(): void; get permissionInput(): any; private _timeouts; get timeouts(): MdbKafkaUserTimeoutsOutputReference; putTimeouts(value: MdbKafkaUserTimeouts): void; resetTimeouts(): void; get timeoutsInput(): any; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }