Cost Explorer

3 resource kinds. Generated from the operator's CRD schemas.

API Group: aws.konfig.io/v1alpha1

CECostCategory # CLOUD CONTROL · AWS::CE::CostCategory

CECostCategory manages AWS::CE::CostCategory through the AWS Cloud Control API.

kubectl get cecostcategories · example on GitHub

Example

# CECostCategory — Cost Explorer
# Full-options example generated from the CRD schema. Optional fields are
# included with sample values; delete what you don't need. Field reference:
# https://konfig-konector.io/docs/costexplorer.html#cecostcategory
apiVersion: aws.konfig.io/v1alpha1
kind: CECostCategory
metadata:
  name: example-cecostcategory
  namespace: default
spec:
  defaultValue: example
  name: example-cecostcategory
  providerRef:
    name: example-cecostcategory
    region: us-east-1
  ruleVersion: CostCategoryExpression.v1
  rules: example
  splitChargeRules: example
  tags:
  - key: example
    value: example

Spec

FieldTypeRequiredDescription
defaultValuestring—The default value for the cost category
namestringyesCreate-only in AWS: changing it requires replacing the resource.
providerRefobject—ProviderRef selects the AWSProvider (account/region) this resource is reconciled against.
providerRef.namestringyesName of a cluster-scoped AWSProvider.
providerRef.regionstring—Region overrides the provider's region for this resource only.
ruleVersionenumyesAllowed: CostCategoryExpression.v1
rulesstringyesJSON array format of Expression in Billing and Cost Management API
splitChargeRulesstring—Json array format of CostCategorySplitChargeRule in Billing and Cost Management API
tagsarray<object>—Tags to assign to the cost category.
tags[].keystringyes
tags[].valuestringyes

Status

FieldTypeRequiredDescription
arnstring—Cost category ARN Read-only: reported by AWS after creation.
attemptinteger—Attempt counts failed create/delete requests; it salts the Cloud Control idempotency token so a retry is not served the cached failure.
awsProviderobject—AWSProvider confirms the account and region this resource was reconciled against.
awsProvider.accountIdstring—AccountID the resource lives in.
awsProvider.namestring—Name of the AWSProvider used; empty when the operator's own credentials were used.
awsProvider.regionstring—Region the resource lives in (empty for global services).
conditionsarray<object>—Conditions describe the current state of the resource.
conditions[].lastTransitionTimestringyeslastTransitionTime is the last time the condition transitioned from one status to another.
conditions[].messagestringyesmessage is a human readable message indicating details about the transition.
conditions[].observedGenerationinteger—observedGeneration represents the .metadata.generation that the condition was set based upon.
conditions[].reasonstringyesreason contains a programmatic identifier indicating the reason for the condition's last transition.
conditions[].statusenumyesstatus of the condition, one of True, False, Unknown. Allowed: True, False, Unknown
conditions[].typestringyestype of condition in CamelCase or in foo.example.com/CamelCase.
effectiveStartstring—Read-only: reported by AWS after creation.
identifierstring—Identifier is the Cloud Control primary identifier of the resource.
lastSyncTimestring—
observedGenerationinteger—
operationstring—Operation is the in-flight operation (CREATE, UPDATE, DELETE).
operationStatusstring—OperationStatus is the last reported operation status.
requestTokenstring—RequestToken tracks an in-flight asynchronous operation.

CostAnomalyMonitor # GA

CostAnomalyMonitor is the Schema for managing Cost Explorer anomaly monitors.

kubectl get costanomalymonitors · example on GitHub

Example

# CostAnomalyMonitor — Cost Explorer
# Full-options example generated from the CRD schema. Optional fields are
# included with sample values; delete what you don't need. Field reference:
# https://konfig-konector.io/docs/costexplorer.html#costanomalymonitor
apiVersion: aws.konfig.io/v1alpha1
kind: CostAnomalyMonitor
metadata:
  name: example-costanomalymonitor
  namespace: default
spec:
  monitorDimension: SERVICE
  monitorName: example-costanomalymonitor
  monitorType: DIMENSIONAL
  providerRef:
    name: example-costanomalymonitor
    region: us-east-1

Spec

FieldTypeRequiredDescription
monitorDimensionenum—MonitorDimension is the dimension to evaluate for DIMENSIONAL monitors. Allowed: SERVICE
monitorNamestringyesMonitorName is the name of the monitor.
monitorTypeenumyesMonitorType is DIMENSIONAL or CUSTOM. Allowed: DIMENSIONAL, CUSTOM
providerRefobject—ProviderRef selects the AWSProvider (account/region) this resource is reconciled against.
providerRef.namestringyesName of a cluster-scoped AWSProvider.
providerRef.regionstring—Region overrides the provider's region for this resource only.

Status

FieldTypeRequiredDescription
arnstring—ARN is the ARN of the anomaly monitor.
awsProviderobject—AWSProvider confirms the account and region this resource was reconciled against.
awsProvider.accountIdstring—AccountID the resource lives in.
awsProvider.namestring—Name of the AWSProvider used; empty when the operator's own credentials were used.
awsProvider.regionstring—Region the resource lives in (empty for global services).
conditionsarray<object>—Conditions describe the current state of the resource.
conditions[].lastTransitionTimestringyeslastTransitionTime is the last time the condition transitioned from one status to another.
conditions[].messagestringyesmessage is a human readable message indicating details about the transition.
conditions[].observedGenerationinteger—observedGeneration represents the .metadata.generation that the condition was set based upon.
conditions[].reasonstringyesreason contains a programmatic identifier indicating the reason for the condition's last transition.
conditions[].statusenumyesstatus of the condition, one of True, False, Unknown. Allowed: True, False, Unknown
conditions[].typestringyestype of condition in CamelCase or in foo.example.com/CamelCase.
lastSyncTimestring—LastSyncTime is when the resource was last successfully reconciled.
observedGenerationinteger—ObservedGeneration is the most recent .metadata.generation reconciled.

CostAnomalySubscription # GA

CostAnomalySubscription is the Schema for managing Cost Explorer anomaly subscriptions.

kubectl get costanomalysubscriptions · example on GitHub

Example

# CostAnomalySubscription — Cost Explorer
# Full-options example generated from the CRD schema. Optional fields are
# included with sample values; delete what you don't need. Field reference:
# https://konfig-konector.io/docs/costexplorer.html#costanomalysubscription
apiVersion: aws.konfig.io/v1alpha1
kind: CostAnomalySubscription
metadata:
  name: example-costanomalysubscription
  namespace: default
spec:
  frequency: DAILY
  monitorRefs:
  - name: example-monitorrefs
  providerRef:
    name: example-costanomalysubscription
    region: us-east-1
  subscribers:
  - address: example
    type: EMAIL
  subscriptionName: example-costanomalysubscription
  threshold: '100'

Spec

FieldTypeRequiredDescription
frequencyenumyesFrequency is how often notifications are sent. Allowed: DAILY, IMMEDIATE, WEEKLY
monitorRefsarray<object>yesMonitorRefs references the anomaly monitors this subscription alerts on.
monitorRefs[].arnstring—ARN is a direct Cost Explorer anomaly monitor ARN, bypassing CR lookup.
monitorRefs[].namestring—Name of a CostAnomalyMonitor CR in the same namespace.
providerRefobject—ProviderRef selects the AWSProvider (account/region) this resource is reconciled against.
providerRef.namestringyesName of a cluster-scoped AWSProvider.
providerRef.regionstring—Region overrides the provider's region for this resource only.
subscribersarray<object>yesSubscribers to notify about anomalies.
subscribers[].addressstringyesAddress is the email address or SNS topic ARN to notify.
subscribers[].typeenumyesType is the delivery channel. Allowed: EMAIL, SNS
subscriptionNamestringyesSubscriptionName is the name of the subscription.
thresholdstringyesThreshold is the absolute dollar impact an anomaly must exceed to trigger a notification, as a numeric string (e.g.

Status

FieldTypeRequiredDescription
arnstring—ARN is the ARN of the anomaly subscription.
awsProviderobject—AWSProvider confirms the account and region this resource was reconciled against.
awsProvider.accountIdstring—AccountID the resource lives in.
awsProvider.namestring—Name of the AWSProvider used; empty when the operator's own credentials were used.
awsProvider.regionstring—Region the resource lives in (empty for global services).
conditionsarray<object>—Conditions describe the current state of the resource.
conditions[].lastTransitionTimestringyeslastTransitionTime is the last time the condition transitioned from one status to another.
conditions[].messagestringyesmessage is a human readable message indicating details about the transition.
conditions[].observedGenerationinteger—observedGeneration represents the .metadata.generation that the condition was set based upon.
conditions[].reasonstringyesreason contains a programmatic identifier indicating the reason for the condition's last transition.
conditions[].statusenumyesstatus of the condition, one of True, False, Unknown. Allowed: True, False, Unknown
conditions[].typestringyestype of condition in CamelCase or in foo.example.com/CamelCase.
lastSyncTimestring—LastSyncTime is when the resource was last successfully reconciled.
observedGenerationinteger—ObservedGeneration is the most recent .metadata.generation reconciled.