Compute Optimizer
1 resource kind. Generated from the operator's CRD schemas.
API Group:
aws.konfig.io/v1alpha1
ComputeOptimizerAutomationRule # CLOUD CONTROL · AWS::ComputeOptimizer::AutomationRule
ComputeOptimizerAutomationRule manages AWS::ComputeOptimizer::AutomationRule through the AWS Cloud Control API.
kubectl get computeoptimizerautomationrules · example on GitHub
Example
# ComputeOptimizerAutomationRule — Compute Optimizer
# 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/computeoptimizer.html#computeoptimizerautomationrule
apiVersion: aws.konfig.io/v1alpha1
kind: ComputeOptimizerAutomationRule
metadata:
name: example-computeoptimizerautomationrule
namespace: default
spec:
criteria:
ebsVolumeSizeInGib:
- comparison: StringEquals
values:
- 1
ebsVolumeType:
- comparison: StringEquals
values:
- example
estimatedMonthlySavings:
- comparison: StringEquals
values:
- 1
lookBackPeriodInDays:
- comparison: StringEquals
values:
- 1
region:
- comparison: StringEquals
values:
- example
resourceArn:
- comparison: StringEquals
values:
- example
resourceTag:
- comparison: StringEquals
key: example
values:
- example
restartNeeded:
- comparison: StringEquals
values:
- example
description: Managed by konfig-konector
name: example-computeoptimizerautomationrule
organizationConfiguration:
accountIds:
- example
ruleApplyOrder: BeforeAccountRules
priority: example
providerRef:
name: example-computeoptimizerautomationrule
region: us-east-1
recommendedActionTypes:
- example
ruleType: AccountRule
schedule:
executionWindowInMinutes: 60
scheduleExpression: example
scheduleExpressionTimezone: example
status: Active
tags:
- key: example
value: example
Spec
| Field | Type | Required | Description |
|---|---|---|---|
criteria | object | — | Filter criteria that specify which recommended actions qualify for implementation. |
criteria.ebsVolumeSizeInGib | array<object> | — | |
criteria.ebsVolumeSizeInGib[].comparison | enum | — | Allowed: StringEquals, StringNotEquals, StringEqualsIgnoreCase, StringNotEqualsIgnoreCase, StringLike, StringNotLike, NumericEquals, NumericNotEquals… |
criteria.ebsVolumeSizeInGib[].values | array<integer> | — | |
criteria.ebsVolumeType | array<object> | — | |
criteria.ebsVolumeType[].comparison | enum | — | Allowed: StringEquals, StringNotEquals, StringEqualsIgnoreCase, StringNotEqualsIgnoreCase, StringLike, StringNotLike, NumericEquals, NumericNotEquals… |
criteria.ebsVolumeType[].values | array<string> | — | |
criteria.estimatedMonthlySavings | array<object> | — | |
criteria.estimatedMonthlySavings[].comparison | enum | — | Allowed: StringEquals, StringNotEquals, StringEqualsIgnoreCase, StringNotEqualsIgnoreCase, StringLike, StringNotLike, NumericEquals, NumericNotEquals… |
criteria.estimatedMonthlySavings[].values | array<number> | — | |
criteria.lookBackPeriodInDays | array<object> | — | |
criteria.lookBackPeriodInDays[].comparison | enum | — | Allowed: StringEquals, StringNotEquals, StringEqualsIgnoreCase, StringNotEqualsIgnoreCase, StringLike, StringNotLike, NumericEquals, NumericNotEquals… |
criteria.lookBackPeriodInDays[].values | array<integer> | — | |
criteria.region | array<object> | — | |
criteria.region[].comparison | enum | — | Allowed: StringEquals, StringNotEquals, StringEqualsIgnoreCase, StringNotEqualsIgnoreCase, StringLike, StringNotLike, NumericEquals, NumericNotEquals… |
criteria.region[].values | array<string> | — | |
criteria.resourceArn | array<object> | — | |
criteria.resourceArn[].comparison | enum | — | Allowed: StringEquals, StringNotEquals, StringEqualsIgnoreCase, StringNotEqualsIgnoreCase, StringLike, StringNotLike, NumericEquals, NumericNotEquals… |
criteria.resourceArn[].values | array<string> | — | |
criteria.resourceTag | array<object> | — | |
criteria.resourceTag[].comparison | enum | — | Allowed: StringEquals, StringNotEquals, StringEqualsIgnoreCase, StringNotEqualsIgnoreCase, StringLike, StringNotLike, NumericEquals, NumericNotEquals… |
criteria.resourceTag[].key | string | — | |
criteria.resourceTag[].values | array<string> | — | |
criteria.restartNeeded | array<object> | — | |
criteria.restartNeeded[].comparison | enum | — | Allowed: StringEquals, StringNotEquals, StringEqualsIgnoreCase, StringNotEqualsIgnoreCase, StringLike, StringNotLike, NumericEquals, NumericNotEquals… |
criteria.restartNeeded[].values | array<string> | — | |
description | string | — | The description of the automation rule. |
name | string | yes | The name of the automation rule. |
organizationConfiguration | object | — | Organization configuration for organization rules, including rule apply order and account scope. |
organizationConfiguration.accountIds | array<string> | — | List of account IDs where the organization rule applies |
organizationConfiguration.ruleApplyOrder | enum | — | When the rule should be applied relative to account rules Allowed: BeforeAccountRules, AfterAccountRules |
priority | string | — | Rule priority within its group |
providerRef | object | — | ProviderRef selects the AWSProvider (account/region) this resource is reconciled against. |
providerRef.name | string | yes | Name of a cluster-scoped AWSProvider. |
providerRef.region | string | — | Region overrides the provider's region for this resource only. |
recommendedActionTypes | array<string> | yes | The types of recommended actions this rule will implement. |
ruleType | enum | yes | The type of automation rule. Allowed: AccountRule, OrganizationRule |
schedule | object | yes | The schedule configuration for when the rule runs. |
schedule.executionWindowInMinutes | integer | — | Execution window duration in minutes |
schedule.scheduleExpression | string | — | Schedule expression (e.g., cron or rate expression) |
schedule.scheduleExpressionTimezone | string | — | IANA timezone identifier |
status | enum | yes | The status of the automation rule. Allowed: Active, Inactive |
tags | array<object> | — | Tags associated with the automation rule. |
tags[].key | string | yes | |
tags[].value | string | yes |
Status
| Field | Type | Required | Description |
|---|---|---|---|
accountId | string | — | The AWS account ID that owns the automation rule. |
attempt | integer | — | Attempt counts failed create/delete requests; it salts the Cloud Control idempotency token so a retry is not served the cached failure. |
awsProvider | object | — | AWSProvider confirms the account and region this resource was reconciled against. |
awsProvider.accountId | string | — | AccountID the resource lives in. |
awsProvider.name | string | — | Name of the AWSProvider used; empty when the operator's own credentials were used. |
awsProvider.region | string | — | Region the resource lives in (empty for global services). |
conditions | array<object> | — | Conditions describe the current state of the resource. |
conditions[].lastTransitionTime | string | yes | lastTransitionTime is the last time the condition transitioned from one status to another. |
conditions[].message | string | yes | message is a human readable message indicating details about the transition. |
conditions[].observedGeneration | integer | — | observedGeneration represents the .metadata.generation that the condition was set based upon. |
conditions[].reason | string | yes | reason contains a programmatic identifier indicating the reason for the condition's last transition. |
conditions[].status | enum | yes | status of the condition, one of True, False, Unknown. Allowed: True, False, Unknown |
conditions[].type | string | yes | type of condition in CamelCase or in foo.example.com/CamelCase. |
createdTimestamp | string | — | The timestamp when the automation rule was created. |
identifier | string | — | Identifier is the Cloud Control primary identifier of the resource. |
lastSyncTime | string | — | |
lastUpdatedTimestamp | string | — | The timestamp when the automation rule was last updated. |
observedGeneration | integer | — | |
operation | string | — | Operation is the in-flight operation (CREATE, UPDATE, DELETE). |
operationStatus | string | — | OperationStatus is the last reported operation status. |
requestToken | string | — | RequestToken tracks an in-flight asynchronous operation. |
ruleArn | string | — | The Amazon Resource Name (ARN) of the automation rule. |
ruleId | string | — | The unique identifier of the automation rule. |
ruleRevision | string | — | The revision number of the automation rule. |