Sha256: 494427deed0d4759a20daa0ac919b8369d5d6571d60d187e9e4c92c457a57720

Contents?: true

Size: 694 Bytes

Versions: 11

Compression:

Stored size: 694 Bytes

Contents

# Create Cloud Cost Management AWS CUR config returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new

body = DatadogAPIClient::V2::AwsCURConfigPostRequest.new({
  data: DatadogAPIClient::V2::AwsCURConfigPostData.new({
    attributes: DatadogAPIClient::V2::AwsCURConfigPostRequestAttributes.new({
      account_id: "123456789123",
      bucket_name: "dd-cost-bucket",
      bucket_region: "us-east-1",
      report_name: "dd-report-name",
      report_prefix: "dd-report-prefix",
    }),
    type: DatadogAPIClient::V2::AwsCURConfigPostRequestType::AWS_CUR_CONFIG_POST_REQUEST,
  }),
})
p api_instance.create_cost_awscur_config(body)

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
datadog_api_client-2.29.1 examples/v2/cloud-cost-management/CreateCostAWSCURConfig.rb
datadog_api_client-2.28.1 examples/v2/cloud-cost-management/CreateCostAWSCURConfig.rb
datadog_api_client-2.27.1 examples/v2/cloud-cost-management/CreateCostAWSCURConfig.rb
datadog_api_client-2.26.1 examples/v2/cloud-cost-management/CreateCostAWSCURConfig.rb
datadog_api_client-2.26.0 examples/v2/cloud-cost-management/CreateCostAWSCURConfig.rb
datadog_api_client-2.25.0 examples/v2/cloud-cost-management/CreateCostAWSCURConfig.rb
datadog_api_client-2.24.0 examples/v2/cloud-cost-management/CreateCostAWSCURConfig.rb
datadog_api_client-2.22.0 examples/v2/cloud-cost-management/CreateCostAWSCURConfig.rb
datadog_api_client-2.21.0 examples/v2/cloud-cost-management/CreateCostAWSCURConfig.rb
datadog_api_client-2.20.0 examples/v2/cloud-cost-management/CreateCostAWSCURConfig.rb
datadog_api_client-2.19.0 examples/v2/cloud-cost-management/CreateCostAWSCURConfig.rb