/**
 * @aurora-catalyst-generated
 * @source cliter/iam/role-account.aurora.yaml
 */
import { IamAccountDto } from '@api/iam/account';
import { IamRoleDto } from '@api/iam/role';
import { ApiProperty } from '@nestjs/swagger';

export class IamRoleAccountDto {
  @ApiProperty({
    type: String,
    description: 'Reference to the role in this account-role association',
    example: '64d0ec38-5edc-50e7-b407-a7754a950c48',
  })
  roleId: string;

  @ApiProperty({
    type: () => IamRoleDto,
    description: 'IamRole [input here api field description]',
  })
  role?: IamRoleDto;

  @ApiProperty({
    type: String,
    description: 'Reference to the account in this account-role association',
    example: '2416bff4-0667-5c51-bfa8-728f9a07454f',
  })
  accountId: string;

  @ApiProperty({
    type: () => IamAccountDto,
    description: 'IamAccount [input here api field description]',
  })
  account?: IamAccountDto;
}
