class GeoEngineer::Resources::AwsApiGatewayMethod
AwsCloudTrail is the api_gatewat_rest_api
terrform resource,
{www.terraform.io/docs/providers/aws/r/api_gateway_method.html}
Public Class Methods
_fetch_remote_resources(provider)
click to toggle source
# File lib/geoengineer/resources/aws_api_gateway_method.rb, line 49 def self._fetch_remote_resources(provider) _remote_rest_api_resource_method(provider) do |rr, res, meth| api_method = self._fetch_method(provider, rr, res, meth) next nil if api_method.nil? api_method[:_terraform_id] = "agm-#{rr[:_terraform_id]}-#{res[:_terraform_id]}-#{meth}" api_method[:_geo_id] = "#{rr[:_geo_id]}::#{res[:_geo_id]}::#{meth}" api_method 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_method.rb, line 34 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, "authorization" => authorization } tfstate end