CreateBillingView

enum_Dimension := [ "LINKED_ACCOUNT" ]

valid {
    input.Body.name == STRING
    input.Body.description == STRING
    input.Body.sourceViews[_] == STRING
    input.Body.dataFilterExpression.dimensions.key == enum_Dimension[_]
    input.Body.dataFilterExpression.dimensions.values[_] == STRING
    input.Body.dataFilterExpression.tags.key == STRING
    input.Body.dataFilterExpression.tags.values[_] == STRING
    input.Body.clientToken == STRING
    input.Body.resourceTags[_].key == STRING
    input.Body.resourceTags[_].value == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

DeleteBillingView

valid {
    input.Body.arn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

GetBillingView

valid {
    input.Body.arn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

GetResourcePolicy

valid {
    input.Body.resourceArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListBillingViews

enum_BillingViewType := [ "PRIMARY", "BILLING_GROUP", "CUSTOM" ]

valid {
    input.Body.activeTimeRange.activeAfterInclusive == TIMESTAMP
    input.Body.activeTimeRange.activeBeforeInclusive == TIMESTAMP
    input.Body.arns[_] == STRING
    input.Body.billingViewTypes[_] == enum_BillingViewType[_]
    input.Body.ownerAccountId == STRING
    input.Body.maxResults == INTEGER
    input.Body.nextToken == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListSourceViewsForBillingView

valid {
    input.Body.arn == STRING
    input.Body.maxResults == INTEGER
    input.Body.nextToken == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

ListTagsForResource

valid {
    input.Body.resourceArn == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

TagResource

valid {
    input.Body.resourceArn == STRING
    input.Body.resourceTags[_].key == STRING
    input.Body.resourceTags[_].value == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

UntagResource

valid {
    input.Body.resourceArn == STRING
    input.Body.resourceTagKeys[_] == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

UpdateBillingView

enum_Dimension := [ "LINKED_ACCOUNT" ]

valid {
    input.Body.arn == STRING
    input.Body.name == STRING
    input.Body.description == STRING
    input.Body.dataFilterExpression.dimensions.key == enum_Dimension[_]
    input.Body.dataFilterExpression.dimensions.values[_] == STRING
    input.Body.dataFilterExpression.tags.key == STRING
    input.Body.dataFilterExpression.tags.values[_] == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}