Sha256: 306e2fe0055d8653d99d3cf4c5c580e2ac310e841b7af204c0c4590ab8296c06

Contents?: true

Size: 635 Bytes

Versions: 8

Compression:

Stored size: 635 Bytes

Contents

# Create an AWS integration returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V1::AWSIntegrationAPI.new

body = DatadogAPIClient::V1::AWSAccount.new({
  account_id: "163662907100",
  account_specific_namespace_rules: {
    auto_scaling: false,
  },
  cspm_resource_collection_enabled: true,
  excluded_regions: [
    "us-east-1",
    "us-west-2",
  ],
  extended_resource_collection_enabled: true,
  filter_tags: [
    "$KEY:$VALUE",
  ],
  host_tags: [
    "$KEY:$VALUE",
  ],
  metrics_collection_enabled: false,
  role_name: "DatadogAWSIntegrationRole",
})
p api_instance.create_aws_account(body)

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
datadog_api_client-2.29.1 examples/v1/aws-integration/CreateAWSAccount.rb
datadog_api_client-2.28.1 examples/v1/aws-integration/CreateAWSAccount.rb
datadog_api_client-2.27.1 examples/v1/aws-integration/CreateAWSAccount.rb
datadog_api_client-2.26.1 examples/v1/aws-integration/CreateAWSAccount.rb
datadog_api_client-2.26.0 examples/v1/aws-integration/CreateAWSAccount.rb
datadog_api_client-2.25.0 examples/v1/aws-integration/CreateAWSAccount.rb
datadog_api_client-2.24.0 examples/v1/aws-integration/CreateAWSAccount.rb
datadog_api_client-2.22.0 examples/v1/aws-integration/CreateAWSAccount.rb