1. Packages
  2. Packages
  3. Datadog Provider
  4. API Docs
  5. aws
  6. IntegrationAccountCcmConfig
Viewing docs for Datadog v5.6.0
published on Thursday, Jun 18, 2026 by Pulumi
datadog logo
Viewing docs for Datadog v5.6.0
published on Thursday, Jun 18, 2026 by Pulumi

    Provides a Datadog IntegrationAwsAccountCcmConfig resource. This can be used to create and manage Cloud Cost Management configuration for an AWS Account Integration.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    // Create new integration_aws_account_ccm_config resource
    const foo = new datadog.aws.IntegrationAccountCcmConfig("foo", {
        awsAccountConfigId: "00000000-0000-0000-0000-000000000000",
        ccmConfig: [{
            dataExportConfigs: [{
                reportName: "cost-and-usage-report",
                reportPrefix: "reports",
                reportType: "CUR2.0",
                bucketName: "billing",
                bucketRegion: "us-east-1",
            }],
        }],
    });
    
    import pulumi
    import pulumi_datadog as datadog
    
    # Create new integration_aws_account_ccm_config resource
    foo = datadog.aws.IntegrationAccountCcmConfig("foo",
        aws_account_config_id="00000000-0000-0000-0000-000000000000",
        ccm_config=[{
            "dataExportConfigs": [{
                "reportName": "cost-and-usage-report",
                "reportPrefix": "reports",
                "reportType": "CUR2.0",
                "bucketName": "billing",
                "bucketRegion": "us-east-1",
            }],
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-datadog/sdk/v5/go/datadog/aws"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Create new integration_aws_account_ccm_config resource
    		_, err := aws.NewIntegrationAccountCcmConfig(ctx, "foo", &aws.IntegrationAccountCcmConfigArgs{
    			AwsAccountConfigId: pulumi.String("00000000-0000-0000-0000-000000000000"),
    			CcmConfig: aws.IntegrationAccountCcmConfigCcmConfigArgs{
    				map[string]interface{}{
    					"dataExportConfigs": []map[string]interface{}{
    						map[string]interface{}{
    							"reportName":   "cost-and-usage-report",
    							"reportPrefix": "reports",
    							"reportType":   "CUR2.0",
    							"bucketName":   "billing",
    							"bucketRegion": "us-east-1",
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Datadog = Pulumi.Datadog;
    
    return await Deployment.RunAsync(() => 
    {
        // Create new integration_aws_account_ccm_config resource
        var foo = new Datadog.Aws.IntegrationAccountCcmConfig("foo", new()
        {
            AwsAccountConfigId = "00000000-0000-0000-0000-000000000000",
            CcmConfig = new[]
            {
                
                {
                    { "dataExportConfigs", new[]
                    {
                        
                        {
                            { "reportName", "cost-and-usage-report" },
                            { "reportPrefix", "reports" },
                            { "reportType", "CUR2.0" },
                            { "bucketName", "billing" },
                            { "bucketRegion", "us-east-1" },
                        },
                    } },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.datadog.aws.IntegrationAccountCcmConfig;
    import com.pulumi.datadog.aws.IntegrationAccountCcmConfigArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            // Create new integration_aws_account_ccm_config resource
            var foo = new IntegrationAccountCcmConfig("foo", IntegrationAccountCcmConfigArgs.builder()
                .awsAccountConfigId("00000000-0000-0000-0000-000000000000")
                .ccmConfig(com.pulumi.datadog.aws.inputs.IntegrationAccountCcmConfigCcmConfigArgs.builder()
                    .dataExportConfigs(com.pulumi.datadog.aws.inputs.IntegrationAccountCcmConfigCcmConfigDataExportConfigArgs.builder()
                        .reportName("cost-and-usage-report")
                        .reportPrefix("reports")
                        .reportType("CUR2.0")
                        .bucketName("billing")
                        .bucketRegion("us-east-1")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      # Create new integration_aws_account_ccm_config resource
      foo:
        type: datadog:aws:IntegrationAccountCcmConfig
        properties:
          awsAccountConfigId: 00000000-0000-0000-0000-000000000000
          ccmConfig:
            - dataExportConfigs:
                - reportName: cost-and-usage-report
                  reportPrefix: reports
                  reportType: CUR2.0
                  bucketName: billing
                  bucketRegion: us-east-1
    
    pulumi {
      required_providers {
        datadog = {
          source = "pulumi/datadog"
        }
      }
    }
    
    # Create new integration_aws_account_ccm_config resource
    resource "datadog_aws_integrationaccountccmconfig" "foo" {
      aws_account_config_id = "00000000-0000-0000-0000-000000000000"
      ccm_config = [{
        "dataExportConfigs" = [{
          "reportName"   = "cost-and-usage-report"
          "reportPrefix" = "reports"
          "reportType"   = "CUR2.0"
          "bucketName"   = "billing"
          "bucketRegion" = "us-east-1"
        }]
      }]
    }
    

    Create IntegrationAccountCcmConfig Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new IntegrationAccountCcmConfig(name: string, args: IntegrationAccountCcmConfigArgs, opts?: CustomResourceOptions);
    @overload
    def IntegrationAccountCcmConfig(resource_name: str,
                                    args: IntegrationAccountCcmConfigArgs,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def IntegrationAccountCcmConfig(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    aws_account_config_id: Optional[str] = None,
                                    ccm_config: Optional[IntegrationAccountCcmConfigCcmConfigArgs] = None)
    func NewIntegrationAccountCcmConfig(ctx *Context, name string, args IntegrationAccountCcmConfigArgs, opts ...ResourceOption) (*IntegrationAccountCcmConfig, error)
    public IntegrationAccountCcmConfig(string name, IntegrationAccountCcmConfigArgs args, CustomResourceOptions? opts = null)
    public IntegrationAccountCcmConfig(String name, IntegrationAccountCcmConfigArgs args)
    public IntegrationAccountCcmConfig(String name, IntegrationAccountCcmConfigArgs args, CustomResourceOptions options)
    
    type: datadog:aws:IntegrationAccountCcmConfig
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "datadog_aws_integrationaccountccmconfig" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args IntegrationAccountCcmConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args IntegrationAccountCcmConfigArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args IntegrationAccountCcmConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IntegrationAccountCcmConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IntegrationAccountCcmConfigArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var integrationAccountCcmConfigResource = new Datadog.Aws.IntegrationAccountCcmConfig("integrationAccountCcmConfigResource", new()
    {
        AwsAccountConfigId = "string",
        CcmConfig = new Datadog.Aws.Inputs.IntegrationAccountCcmConfigCcmConfigArgs
        {
            DataExportConfigs = new[]
            {
                new Datadog.Aws.Inputs.IntegrationAccountCcmConfigCcmConfigDataExportConfigArgs
                {
                    BucketName = "string",
                    BucketRegion = "string",
                    ReportName = "string",
                    ReportPrefix = "string",
                    ReportType = "string",
                },
            },
        },
    });
    
    example, err := aws.NewIntegrationAccountCcmConfig(ctx, "integrationAccountCcmConfigResource", &aws.IntegrationAccountCcmConfigArgs{
    	AwsAccountConfigId: pulumi.String("string"),
    	CcmConfig: &aws.IntegrationAccountCcmConfigCcmConfigArgs{
    		DataExportConfigs: aws.IntegrationAccountCcmConfigCcmConfigDataExportConfigArray{
    			&aws.IntegrationAccountCcmConfigCcmConfigDataExportConfigArgs{
    				BucketName:   pulumi.String("string"),
    				BucketRegion: pulumi.String("string"),
    				ReportName:   pulumi.String("string"),
    				ReportPrefix: pulumi.String("string"),
    				ReportType:   pulumi.String("string"),
    			},
    		},
    	},
    })
    
    resource "datadog_aws_integrationaccountccmconfig" "integrationAccountCcmConfigResource" {
      aws_account_config_id = "string"
      ccm_config = {
        data_export_configs = [{
          "bucketName"   = "string"
          "bucketRegion" = "string"
          "reportName"   = "string"
          "reportPrefix" = "string"
          "reportType"   = "string"
        }]
      }
    }
    
    var integrationAccountCcmConfigResource = new IntegrationAccountCcmConfig("integrationAccountCcmConfigResource", IntegrationAccountCcmConfigArgs.builder()
        .awsAccountConfigId("string")
        .ccmConfig(IntegrationAccountCcmConfigCcmConfigArgs.builder()
            .dataExportConfigs(IntegrationAccountCcmConfigCcmConfigDataExportConfigArgs.builder()
                .bucketName("string")
                .bucketRegion("string")
                .reportName("string")
                .reportPrefix("string")
                .reportType("string")
                .build())
            .build())
        .build());
    
    integration_account_ccm_config_resource = datadog.aws.IntegrationAccountCcmConfig("integrationAccountCcmConfigResource",
        aws_account_config_id="string",
        ccm_config={
            "data_export_configs": [{
                "bucket_name": "string",
                "bucket_region": "string",
                "report_name": "string",
                "report_prefix": "string",
                "report_type": "string",
            }],
        })
    
    const integrationAccountCcmConfigResource = new datadog.aws.IntegrationAccountCcmConfig("integrationAccountCcmConfigResource", {
        awsAccountConfigId: "string",
        ccmConfig: {
            dataExportConfigs: [{
                bucketName: "string",
                bucketRegion: "string",
                reportName: "string",
                reportPrefix: "string",
                reportType: "string",
            }],
        },
    });
    
    type: datadog:aws:IntegrationAccountCcmConfig
    properties:
        awsAccountConfigId: string
        ccmConfig:
            dataExportConfigs:
                - bucketName: string
                  bucketRegion: string
                  reportName: string
                  reportPrefix: string
                  reportType: string
    

    IntegrationAccountCcmConfig Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The IntegrationAccountCcmConfig resource accepts the following input properties:

    AwsAccountConfigId string
    Unique Datadog ID of the AWS Account Integration Config.
    CcmConfig IntegrationAccountCcmConfigCcmConfig
    AwsAccountConfigId string
    Unique Datadog ID of the AWS Account Integration Config.
    CcmConfig IntegrationAccountCcmConfigCcmConfigArgs
    aws_account_config_id string
    Unique Datadog ID of the AWS Account Integration Config.
    ccm_config object
    awsAccountConfigId String
    Unique Datadog ID of the AWS Account Integration Config.
    ccmConfig IntegrationAccountCcmConfigCcmConfig
    awsAccountConfigId string
    Unique Datadog ID of the AWS Account Integration Config.
    ccmConfig IntegrationAccountCcmConfigCcmConfig
    aws_account_config_id str
    Unique Datadog ID of the AWS Account Integration Config.
    ccm_config IntegrationAccountCcmConfigCcmConfigArgs
    awsAccountConfigId String
    Unique Datadog ID of the AWS Account Integration Config.
    ccmConfig Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the IntegrationAccountCcmConfig resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing IntegrationAccountCcmConfig Resource

    Get an existing IntegrationAccountCcmConfig resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: IntegrationAccountCcmConfigState, opts?: CustomResourceOptions): IntegrationAccountCcmConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            aws_account_config_id: Optional[str] = None,
            ccm_config: Optional[IntegrationAccountCcmConfigCcmConfigArgs] = None) -> IntegrationAccountCcmConfig
    func GetIntegrationAccountCcmConfig(ctx *Context, name string, id IDInput, state *IntegrationAccountCcmConfigState, opts ...ResourceOption) (*IntegrationAccountCcmConfig, error)
    public static IntegrationAccountCcmConfig Get(string name, Input<string> id, IntegrationAccountCcmConfigState? state, CustomResourceOptions? opts = null)
    public static IntegrationAccountCcmConfig get(String name, Output<String> id, IntegrationAccountCcmConfigState state, CustomResourceOptions options)
    resources:  _:    type: datadog:aws:IntegrationAccountCcmConfig    get:      id: ${id}
    import {
      to = datadog_aws_integrationaccountccmconfig.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AwsAccountConfigId string
    Unique Datadog ID of the AWS Account Integration Config.
    CcmConfig IntegrationAccountCcmConfigCcmConfig
    AwsAccountConfigId string
    Unique Datadog ID of the AWS Account Integration Config.
    CcmConfig IntegrationAccountCcmConfigCcmConfigArgs
    aws_account_config_id string
    Unique Datadog ID of the AWS Account Integration Config.
    ccm_config object
    awsAccountConfigId String
    Unique Datadog ID of the AWS Account Integration Config.
    ccmConfig IntegrationAccountCcmConfigCcmConfig
    awsAccountConfigId string
    Unique Datadog ID of the AWS Account Integration Config.
    ccmConfig IntegrationAccountCcmConfigCcmConfig
    aws_account_config_id str
    Unique Datadog ID of the AWS Account Integration Config.
    ccm_config IntegrationAccountCcmConfigCcmConfigArgs
    awsAccountConfigId String
    Unique Datadog ID of the AWS Account Integration Config.
    ccmConfig Property Map

    Supporting Types

    IntegrationAccountCcmConfigCcmConfig, IntegrationAccountCcmConfigCcmConfigArgs

    IntegrationAccountCcmConfigCcmConfigDataExportConfig, IntegrationAccountCcmConfigCcmConfigDataExportConfigArgs

    BucketName string
    Name of the S3 bucket where the Cost and Usage Report is stored.
    BucketRegion string
    AWS region of the S3 bucket.
    ReportName string
    Name of the Cost and Usage Report.
    ReportPrefix string
    S3 prefix where the Cost and Usage Report is stored.
    ReportType string
    Type of the Cost and Usage Report.
    BucketName string
    Name of the S3 bucket where the Cost and Usage Report is stored.
    BucketRegion string
    AWS region of the S3 bucket.
    ReportName string
    Name of the Cost and Usage Report.
    ReportPrefix string
    S3 prefix where the Cost and Usage Report is stored.
    ReportType string
    Type of the Cost and Usage Report.
    bucket_name string
    Name of the S3 bucket where the Cost and Usage Report is stored.
    bucket_region string
    AWS region of the S3 bucket.
    report_name string
    Name of the Cost and Usage Report.
    report_prefix string
    S3 prefix where the Cost and Usage Report is stored.
    report_type string
    Type of the Cost and Usage Report.
    bucketName String
    Name of the S3 bucket where the Cost and Usage Report is stored.
    bucketRegion String
    AWS region of the S3 bucket.
    reportName String
    Name of the Cost and Usage Report.
    reportPrefix String
    S3 prefix where the Cost and Usage Report is stored.
    reportType String
    Type of the Cost and Usage Report.
    bucketName string
    Name of the S3 bucket where the Cost and Usage Report is stored.
    bucketRegion string
    AWS region of the S3 bucket.
    reportName string
    Name of the Cost and Usage Report.
    reportPrefix string
    S3 prefix where the Cost and Usage Report is stored.
    reportType string
    Type of the Cost and Usage Report.
    bucket_name str
    Name of the S3 bucket where the Cost and Usage Report is stored.
    bucket_region str
    AWS region of the S3 bucket.
    report_name str
    Name of the Cost and Usage Report.
    report_prefix str
    S3 prefix where the Cost and Usage Report is stored.
    report_type str
    Type of the Cost and Usage Report.
    bucketName String
    Name of the S3 bucket where the Cost and Usage Report is stored.
    bucketRegion String
    AWS region of the S3 bucket.
    reportName String
    Name of the Cost and Usage Report.
    reportPrefix String
    S3 prefix where the Cost and Usage Report is stored.
    reportType String
    Type of the Cost and Usage Report.

    Import

    The pulumi import command can be used, for example:

    $ pulumi import datadog:aws/integrationAccountCcmConfig:IntegrationAccountCcmConfig foo "<aws_account_config_id>"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Datadog pulumi/pulumi-datadog
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the datadog Terraform Provider.
    datadog logo
    Viewing docs for Datadog v5.6.0
    published on Thursday, Jun 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial