2개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
3
There is a description of each of the dimensions located here: https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_GetDimensionValues.html
You are looking for RECORD_TYPE.
답변함 2년 전
0
Correct keyword to use Charge Type in boto3 is using RECORD_TYPE. For more info, click here
Example:-
Filter={
"Not":
{
'Dimensions':{
'Key': 'RECORD_TYPE',
'Values':['Credit','Refund']
}
}
},
Add the above code to your get_cost_and_usage() function and you can exclude credits.
답변함 일 년 전
관련 콘텐츠
- AWS 공식업데이트됨 2년 전
Hi Geno_E, thank you this is relly useful
So we can't use charge type in boto3 or through cost explorer api ?.
If yes , can you provide any documentation?