Skip to main content

aws_account_ccm_configs

Creates, updates, deletes, gets or lists an aws_account_ccm_configs resource.

Overview

Nameaws_account_ccm_configs
TypeResource
Iddatadog.integrations.aws_account_ccm_configs

Fields

The following fields are returned by SELECT queries:

AWS CCM Config object

NameDatatypeDescription
idstringUnique 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)
attributesobjectAWS CCM Config response attributes.
typestringAWS CCM Config resource type. (ccm_config) (default: ccm_config, example: ccm_config)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_awsaccount_ccmconfigselectaws_account_config_idGet 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_ccmconfiginsertaws_account_config_id, dataCreate 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_ccmconfigupdateaws_account_config_id, dataUpdate 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_ccmconfigdeleteaws_account_config_idDelete 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.

NameDatatypeDescription
aws_account_config_idstringUnique 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.
sitestringThe 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 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 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
;

UPDATE examples

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 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
;