src/cost/dto/fetch-resource.dto.ts
Data Transfer Object fetch resources with tags
Properties |
| config |
Type : KubecostConfig | AWSConfig | AzureConfig
|
Decorators :
@ApiProperty()
|
|
Defined in src/cost/dto/fetch-resource.dto.ts:20
|
| provider |
Type : CostProvider
|
Decorators :
@ApiProperty()
|
|
Defined in src/cost/dto/fetch-resource.dto.ts:15
|
| tagList |
Type : string[]
|
Decorators :
@ApiProperty()
|
|
Defined in src/cost/dto/fetch-resource.dto.ts:23
|
import { AWSConfig } from "../../providers/aws/aws.types";
import { KubecostConfig } from "../../providers/kubecost/kubecost.types";
import { ApiProperty } from "@nestjs/swagger";
import { IsEnum, IsNotEmpty, ValidateNested } from "class-validator";
import { CostProvider } from "../types/cost-provider.enum";
import { AzureConfig } from "../../providers/azure/azure.types";
/**
* Data Transfer Object fetch resources with tags
*/
export class FetchResourcesDto {
@ApiProperty()
@IsNotEmpty()
@IsEnum(CostProvider, { each: true })
provider: CostProvider;
@ApiProperty()
@IsNotEmpty()
@ValidateNested({ each: true })
config: KubecostConfig | AWSConfig | AzureConfig;
@ApiProperty()
tagList: string[];
}