Sha256: 13129659e40f26b25edb54ee7a44025efce44b230aa06248128b119c8f36b1b7

Contents?: true

Size: 651 Bytes

Versions: 5

Compression:

Stored size: 651 Bytes

Contents

# Generate a new external ID returns "OK" response

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
datadog_api_client-2.21.0 examples/v1/aws-integration/CreateNewAWSExternalID.rb
datadog_api_client-2.20.0 examples/v1/aws-integration/CreateNewAWSExternalID.rb
datadog_api_client-2.19.0 examples/v1/aws-integration/CreateNewAWSExternalID.rb
datadog_api_client-2.18.0 examples/v1/aws-integration/CreateNewAWSExternalID.rb
datadog_api_client-2.17.0 examples/v1/aws-integration/CreateNewAWSExternalID.rb