2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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.
répondu il y a 2 ans
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.
répondu il y a un an
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- demandé il y a 6 mois
- demandé il y a 2 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an
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?