class GeoEngineer::Resources::AwsApiGatewayIntegration
AwsCloudTrail is the api_gatewat_rest_api
terrform resource,
{www.terraform.io/docs/providers/aws/r/api_gateway_integration.html}
Public Class Methods
_fetch_remote_resources(provider)
click to toggle source
# File lib/geoengineer/resources/aws_api_gateway_integration.rb, line 48 def self._fetch_remote_resources(provider) _remote_rest_api_resource_method(provider) do |rr, res, meth| api_integration = self._fetch_integration(provider, rr, res, meth) next nil if api_integration.nil? api_integration[:_terraform_id] = "agi-#{rr[:_terraform_id]}-#{res[:_terraform_id]}-#{meth}" api_integration[:_geo_id] = "#{rr[:_geo_id]}::#{res[:_geo_id]}::#{meth}" api_integration end.flatten.compact end
Public Instance Methods
to_terraform_state()
click to toggle source
Calls superclass method
GeoEngineer::Resource#to_terraform_state
# File lib/geoengineer/resources/aws_api_gateway_integration.rb, line 33 def to_terraform_state tfstate = super tfstate[:primary][:attributes] = { "rest_api_id" => _rest_api._terraform_id, "resource_id" => _resource._terraform_id, "http_method" => http_method, "integration_http_method" => integration_http_method } tfstate end