How to create IAM policy to restrict user to access AWS bills from March 2023 onward? IAM User not allowed to see previous bills just allowed to see the AWS bills from march onward.
I have tried but unable to create IAM policy which specifically allow user to see the bills from March onward, below is my IAM policy.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1678707882255",
"Action": [
"billing:GetBillingData",
"billing:GetBillingDetails",
"billing:GetBillingNotifications",
"billing:GetBillingPreferences",
"billing:GetContractInformation",
"billing:GetCredits",
"billing:GetIAMAccessPreference",
"billing:GetSellerOfRecord",
"billing:ListBillingViews",
"billing:PutContractInformation",
"billing:RedeemCredits",
"billing:UpdateBillingPreferences",
"billing:UpdateIAMAccessPreference"
],
"Effect": "Deny",
"Resource": "*",
"Condition": {
"DateLessThan": {
"aws:CurrentTime": "2023-01-28T23:59:59Z"
}
}
}
]
}