aws_account_ccm_configs
Creates, updates, deletes, gets or lists an aws_account_ccm_configs resource.
Overview
| Name | aws_account_ccm_configs |
| Type | Resource |
| Id | datadog.integrations.aws_account_ccm_configs |
Fields
The following fields are returned by SELECT queries:
- get_awsaccount_ccmconfig
AWS CCM Config object
| Name | Datatype | Description |
|---|---|---|
id | string | Unique Datadog ID of the AWS Account Integration Config. To get the config ID for an account, use the [List all AWS integrations](https://docs.datadoghq.com/api/latest/aws-integration/#list-all-aws-integrations) endpoint and query by AWS Account ID. (example: 00000000-abcd-0001-0000-000000000000) |
attributes | object | AWS CCM Config response attributes. |
type | string | AWS CCM Config resource type. (ccm_config) (default: ccm_config, example: ccm_config) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_awsaccount_ccmconfig | select | aws_account_config_id | Get the Cloud Cost Management config for an AWS Account Integration Config using Cost and Usage Report<br />(CUR) 2.0 by config ID. | |
create_awsaccount_ccmconfig | insert | aws_account_config_id, data | Create the Cloud Cost Management config for an AWS Account Integration Config using Cost and Usage Report<br />(CUR) 2.0 by config ID. | |
update_awsaccount_ccmconfig | update | aws_account_config_id, data | Update the Cloud Cost Management config for an AWS Account Integration Config using Cost and Usage Report<br />(CUR) 2.0 by config ID. | |
delete_awsaccount_ccmconfig | delete | aws_account_config_id | Delete the Cloud Cost Management config for an AWS Account Integration Config using Cost and Usage Report<br />(CUR) 2.0 by config ID. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
aws_account_config_id | string | Unique Datadog ID of the AWS Account Integration Config. To get the config ID for an account, use the [List all AWS integrations](https://docs.datadoghq.com/api/latest/aws-integration/#list-all-aws-integrations) endpoint and query by AWS Account ID. |
site | string | The Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both. |
SELECT examples
- get_awsaccount_ccmconfig
Get the Cloud Cost Management config for an AWS Account Integration Config using Cost and Usage Report<br />(CUR) 2.0 by config ID.
SELECT
id,
attributes,
type
FROM datadog.integrations.aws_account_ccm_configs
WHERE aws_account_config_id = '{{ aws_account_config_id }}' -- required
;
INSERT examples
- create_awsaccount_ccmconfig
- Manifest
Create the Cloud Cost Management config for an AWS Account Integration Config using Cost and Usage Report<br />(CUR) 2.0 by config ID.
INSERT INTO datadog.integrations.aws_account_ccm_configs (
data,
aws_account_config_id
)
SELECT
'{{ data }}' /* required */,
'{{ aws_account_config_id }}'
RETURNING
data
;
# Description fields are for documentation purposes
- name: aws_account_ccm_configs
props:
- name: aws_account_config_id
value: "{{ aws_account_config_id }}"
description: Required parameter for the aws_account_ccm_configs resource.
- name: data
description: |
AWS CCM Config Create/Update Request data.
value:
attributes:
ccm_config:
data_export_configs:
- bucket_name: "{{ bucket_name }}"
bucket_region: "{{ bucket_region }}"
report_name: "{{ report_name }}"
report_prefix: "{{ report_prefix }}"
report_type: "{{ report_type }}"
type: "{{ type }}"
UPDATE examples
- update_awsaccount_ccmconfig
Update the Cloud Cost Management config for an AWS Account Integration Config using Cost and Usage Report<br />(CUR) 2.0 by config ID.
UPDATE datadog.integrations.aws_account_ccm_configs
SET
data = '{{ data }}'
WHERE
aws_account_config_id = '{{ aws_account_config_id }}' --required
AND data = '{{ data }}' --required
RETURNING
data;
DELETE examples
- delete_awsaccount_ccmconfig
Delete the Cloud Cost Management config for an AWS Account Integration Config using Cost and Usage Report<br />(CUR) 2.0 by config ID.
DELETE FROM datadog.integrations.aws_account_ccm_configs
WHERE aws_account_config_id = '{{ aws_account_config_id }}' --required
;