class Dogapi::V1::AwsIntegrationService

AwsIntegrationService for user interaction with AWS configs.

Constants

API_VERSION

Public Instance Methods

aws_integration_create(config) click to toggle source

Create an AWS integration :config => Hash: integration config. config = {

:account_id => '<AWS_ACCOUNT>',
:host_tags => ['api:example'],
:role_name => '<AWS_ROLE_NAME>'

}

Access Key/Secret Access Key based accounts (GovCloud and China only)

config = {

:access_key_id => '<AWS_ACCESS_KEY_ID>',
:host_tags => ['api:example'],
:secret_access_key => '<AWS_SECRET_ACCESS_KEY>'

}

dog = Dogapi::Client.new(api_key, app_key)

puts dog.aws_integration_create(config)

   # File lib/dogapi/v1/aws_integration.rb
37 def aws_integration_create(config)
38   request(Net::HTTP::Post, "/api/#{API_VERSION}/integration/aws", nil, config, true)
39 end
aws_integration_delete(config) click to toggle source

Delete an integration :config => Hash: integration config. config = {

:account_id => '<AWS_ACCOUNT>',
:role_name => '<AWS_ROLE_NAME>'

} Access Key/Secret Access Key based accounts (GovCloud and China only)

config = {

:access_key_id => '<AWS_ACCESS_KEY_ID>',

}

dog = Dogapi::Client.new(api_key, app_key)

puts dog.aws_integration_delete(config)

   # File lib/dogapi/v1/aws_integration.rb
56 def aws_integration_delete(config)
57   request(Net::HTTP::Delete, "/api/#{API_VERSION}/integration/aws", nil, config, true)
58 end
aws_integration_generate_external_id(config) click to toggle source

Generate new AWS external ID for a specific integrated account :config => Hash: integration config. config = {

:account_id => '<AWS_ACCOUNT>',
:role_name => '<AWS_ROLE_NAME>'

}

dog = Dogapi::Client.new(api_key, app_key)

puts dog.aws_integration_generate_external_id(config)

   # File lib/dogapi/v1/aws_integration.rb
75 def aws_integration_generate_external_id(config)
76   request(Net::HTTP::Put, "/api/#{API_VERSION}/integration/aws/generate_new_external_id", nil, config, true)
77 end
aws_integration_list() click to toggle source

Retrieve AWS integration information

   # File lib/dogapi/v1/aws_integration.rb
14 def aws_integration_list
15   request(Net::HTTP::Get, "/api/#{API_VERSION}/integration/aws", nil, nil, false)
16 end
aws_integration_list_namespaces() click to toggle source

List available AWS namespaces

   # File lib/dogapi/v1/aws_integration.rb
61 def aws_integration_list_namespaces
62   request(Net::HTTP::Get, "/api/#{API_VERSION}/integration/aws/available_namespace_rules", nil, nil, false)
63 end
aws_integration_update(config, new_config) click to toggle source

puts dog.aws_integration_update(config, new_config)

    # File lib/dogapi/v1/aws_integration.rb
108 def aws_integration_update(config, new_config)
109   request(Net::HTTP::Put, "/api/#{API_VERSION}/integration/aws", config, new_config, true)
110 end