import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface MdbRedisUserConfig extends cdktf.TerraformMetaArguments { /** * The ID of the cluster to which user belongs to. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_redis_user#cluster_id MdbRedisUser#cluster_id} */ readonly clusterId: string; /** * Is redis user enabled. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_redis_user#enabled MdbRedisUser#enabled} */ readonly enabled?: boolean | cdktf.IResolvable; /** * The name of the user. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_redis_user#name MdbRedisUser#name} */ readonly name: string; /** * Set of user passwords * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_redis_user#passwords MdbRedisUser#passwords} */ readonly passwords: string[]; /** * Set of permissions granted to the user. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_redis_user#permissions MdbRedisUser#permissions} */ readonly permissions?: MdbRedisUserPermissions; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_redis_user#timeouts MdbRedisUser#timeouts} */ readonly timeouts?: MdbRedisUserTimeouts; } export interface MdbRedisUserPermissions { /** * Command categories user has permissions to. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_redis_user#categories MdbRedisUser#categories} */ readonly categories?: string; /** * Commands user can execute. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_redis_user#commands MdbRedisUser#commands} */ readonly commands?: string; /** * Keys patterns user has permission to. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_redis_user#patterns MdbRedisUser#patterns} */ readonly patterns?: string; /** * Channel patterns user has permissions to. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_redis_user#pub_sub_channels MdbRedisUser#pub_sub_channels} */ readonly pubSubChannels?: string; /** * SanitizePayload parameter. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_redis_user#sanitize_payload MdbRedisUser#sanitize_payload} */ readonly sanitizePayload?: string; } export declare function mdbRedisUserPermissionsToTerraform(struct?: MdbRedisUserPermissions | cdktf.IResolvable): any; export declare function mdbRedisUserPermissionsToHclTerraform(struct?: MdbRedisUserPermissions | cdktf.IResolvable): any; export declare class MdbRedisUserPermissionsOutputReference 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(): MdbRedisUserPermissions | cdktf.IResolvable | undefined; set internalValue(value: MdbRedisUserPermissions | cdktf.IResolvable | undefined); private _categories?; get categories(): string; set categories(value: string); resetCategories(): void; get categoriesInput(): string; private _commands?; get commands(): string; set commands(value: string); resetCommands(): void; get commandsInput(): string; private _patterns?; get patterns(): string; set patterns(value: string); resetPatterns(): void; get patternsInput(): string; private _pubSubChannels?; get pubSubChannels(): string; set pubSubChannels(value: string); resetPubSubChannels(): void; get pubSubChannelsInput(): string; private _sanitizePayload?; get sanitizePayload(): string; set sanitizePayload(value: string); resetSanitizePayload(): void; get sanitizePayloadInput(): string; } export interface MdbRedisUserTimeouts { /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_redis_user#create MdbRedisUser#create} */ readonly create?: string; /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_redis_user#delete MdbRedisUser#delete} */ readonly delete?: string; /** * A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_redis_user#update MdbRedisUser#update} */ readonly update?: string; } export declare function mdbRedisUserTimeoutsToTerraform(struct?: MdbRedisUserTimeouts | cdktf.IResolvable): any; export declare function mdbRedisUserTimeoutsToHclTerraform(struct?: MdbRedisUserTimeouts | cdktf.IResolvable): any; export declare class MdbRedisUserTimeoutsOutputReference 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(): MdbRedisUserTimeouts | cdktf.IResolvable | undefined; set internalValue(value: MdbRedisUserTimeouts | 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 _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_redis_user yandex_mdb_redis_user} */ export declare class MdbRedisUser extends cdktf.TerraformResource { static readonly tfResourceType = "yandex_mdb_redis_user"; /** * Generates CDKTF code for importing a MdbRedisUser 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 MdbRedisUser to import * @param importFromId The id of the existing MdbRedisUser that should be imported. Refer to the {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/mdb_redis_user#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the MdbRedisUser 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_redis_user yandex_mdb_redis_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 MdbRedisUserConfig */ constructor(scope: Construct, id: string, config: MdbRedisUserConfig); get aclOptions(): any; private _clusterId?; get clusterId(): string; set clusterId(value: string); get clusterIdInput(): string; private _enabled?; get enabled(): boolean | cdktf.IResolvable; set enabled(value: boolean | cdktf.IResolvable); resetEnabled(): void; get enabledInput(): any; get id(): any; private _name?; get name(): string; set name(value: string); get nameInput(): string; private _passwords?; get passwords(): string[]; set passwords(value: string[]); get passwordsInput(): string[]; private _permissions; get permissions(): MdbRedisUserPermissionsOutputReference; putPermissions(value: MdbRedisUserPermissions): void; resetPermissions(): void; get permissionsInput(): any; private _timeouts; get timeouts(): MdbRedisUserTimeoutsOutputReference; putTimeouts(value: MdbRedisUserTimeouts): void; resetTimeouts(): void; get timeoutsInput(): any; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }