Sha256: 099a72dedcad66eee9b1bf3f3ce4757e96f62c91521c87ce2213f0b3b4445124

Contents?: true

Size: 724 Bytes

Versions: 7

Compression:

Stored size: 724 Bytes

Contents

# Update 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: false,
  excluded_regions: [
    "us-east-1",
    "us-west-2",
  ],
  extended_resource_collection_enabled: true,
  filter_tags: [
    "$KEY:$VALUE",
  ],
  host_tags: [
    "$KEY:$VALUE",
  ],
  metrics_collection_enabled: true,
  role_name: "DatadogAWSIntegrationRole",
})
opts = {
  account_id: "163662907100",
  role_name: "DatadogAWSIntegrationRole",
}
p api_instance.update_aws_account(body, opts)

Version data entries

7 entries across 7 versions & 1 rubygems

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