Home Reference Source Test Repository
import Kanjo from 'kanjo/src/index.js'
public class | source

Kanjo

Kanjo

Constructor Summary

Public Constructor
public

constructor(account: string, bucket: string, region: string | undefined, accessKeyId: string | undefined, secretAccessKey: string | undefined)

constructor

Member Summary

Public Members
public
public

account: *

public

bucket: *

public

region: *

public

Method Summary

Public Methods
public

fetch(year: number, month: number): Promise

fetch billing data

Public Constructors

public constructor(account: string, bucket: string, region: string | undefined, accessKeyId: string | undefined, secretAccessKey: string | undefined) source

constructor

Params:

NameTypeAttributeDescription
account string

account id

bucket string

bucket name

region string | undefined

region

accessKeyId string | undefined

AWS Access key ID

secretAccessKey string | undefined

AWS Secret Access key

Public Members

public accessKeyId: * source

public account: * source

public bucket: * source

public region: * source

public secretAccessKey: * source

Public Methods

public fetch(year: number, month: number): Promise source

fetch billing data

Params:

NameTypeAttributeDescription
year number

target year

month number

target month

Return:

Promise