class GeoEngineer::Resources::AwsApiGatewayIntegrationResponse
AwsCloudTrail is the api_gatewat_rest_api
terrform resource,
{www.terraform.io/docs/providers/aws/r/api_gateway_integration_response.html}
Public Class Methods
_fetch_remote_resources(provider)
click to toggle source
# File lib/geoengineer/resources/aws_api_gateway_integration_response.rb, line 54 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[:integration_responses] || {}).keys.map do |status_code| agir = {} tr_id = "agir-#{rr[:_terraform_id]}-#{res[:_terraform_id]}-#{meth}-#{status_code}" agir[:_terraform_id] = tr_id agir[:_geo_id] = "#{rr[:_geo_id]}::#{res[:_geo_id]}::#{meth}::#{status_code}" agir end 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_response.rb, line 39 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, "status_code" => status_code } tfstate end