import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface UserRolesConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/mypurecloud/genesyscloud/1.73.0/docs/resources/user_roles#id UserRoles#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; /** * User ID that will be managed by this resource. Changing the user_id attribute will cause the roles object to be dropped and recreated with a new ID. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/mypurecloud/genesyscloud/1.73.0/docs/resources/user_roles#user_id UserRoles#user_id} */ readonly userId: string; /** * roles block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/mypurecloud/genesyscloud/1.73.0/docs/resources/user_roles#roles UserRoles#roles} */ readonly roles?: UserRolesRoles[] | cdktf.IResolvable; } export interface UserRolesRoles { /** * Division IDs applied to this resource. If not set, the home division will be used. '*' may be set for all divisions. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/mypurecloud/genesyscloud/1.73.0/docs/resources/user_roles#division_ids UserRoles#division_ids} */ readonly divisionIds?: string[]; /** * Role ID. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/mypurecloud/genesyscloud/1.73.0/docs/resources/user_roles#role_id UserRoles#role_id} */ readonly roleId: string; } export declare function userRolesRolesToTerraform(struct?: UserRolesRoles | cdktf.IResolvable): any; export declare function userRolesRolesToHclTerraform(struct?: UserRolesRoles | cdktf.IResolvable): any; export declare class UserRolesRolesOutputReference 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(): UserRolesRoles | cdktf.IResolvable | undefined; set internalValue(value: UserRolesRoles | cdktf.IResolvable | undefined); private _divisionIds?; get divisionIds(): string[]; set divisionIds(value: string[]); resetDivisionIds(): void; get divisionIdsInput(): string[]; private _roleId?; get roleId(): string; set roleId(value: string); get roleIdInput(): string; } export declare class UserRolesRolesList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: UserRolesRoles[] | 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): UserRolesRolesOutputReference; } /** * Represents a {@link https://registry.terraform.io/providers/mypurecloud/genesyscloud/1.73.0/docs/resources/user_roles genesyscloud_user_roles} */ export declare class UserRoles extends cdktf.TerraformResource { static readonly tfResourceType = "genesyscloud_user_roles"; /** * Generates CDKTF code for importing a UserRoles 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 UserRoles to import * @param importFromId The id of the existing UserRoles that should be imported. Refer to the {@link https://registry.terraform.io/providers/mypurecloud/genesyscloud/1.73.0/docs/resources/user_roles#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the UserRoles 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/mypurecloud/genesyscloud/1.73.0/docs/resources/user_roles genesyscloud_user_roles} 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 UserRolesConfig */ constructor(scope: Construct, id: string, config: UserRolesConfig); private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string; private _userId?; get userId(): string; set userId(value: string); get userIdInput(): string; private _roles; get roles(): UserRolesRolesList; putRoles(value: UserRolesRoles[] | cdktf.IResolvable): void; resetRoles(): void; get rolesInput(): any; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }