Definitions for @turbot/aws-billing

billing

{
"allOf": [
{
"$ref": "turbot#/definitions/service"
},
{
"type": "object",
"properties": {
"name": {
"const": "Billing"
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/billingAka"
}
},
"title": {
"const": "Billing"
},
"custom": {
"type": "object",
"properties": {
"aws": {
"$ref": "aws#/definitions/awsMetadata"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "Valid - All properties",
"input": {
"name": "Billing",
"turbot": {
"akas": [
"arn:aws:billing::123456789012"
],
"title": "Billing",
"custom": {
"aws": {
"accountId": 123456789012,
"partition": "aws"
}
}
}
}
}
]
}
],
".turbot": {
"uri": "tmod:@turbot/aws-billing#/definitions/billing",
"modUri": "tmod:@turbot/aws-billing"
}
}

billingAka

{
"type": "string",
"pattern": "^arn:aws(-us-gov|-cn)?:billing::[0-9]{12}$",
"tests": [
{
"description": "Base",
"input": "arn:aws:billing::123456789012"
},
{
"description": "Valid - gov partition",
"input": "arn:aws-us-gov:billing::123456786354"
},
{
"description": "Valid - china partition",
"input": "arn:aws-cn:billing::123456786354"
},
{
"description": "Invalid us gov partition",
"input": "arn:aws-cn-gov:billing::123456786354",
"expected": false
},
{
"description": "Invalid china partition",
"input": "arn:aws-us-cn:billing::123456786354",
"expected": false
},
{
"description": "Invalid service name",
"input": "arn:aws:amplifye::123456789012",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-billing#/definitions/billingAka",
"modUri": "tmod:@turbot/aws-billing"
}
}