class GeoEngineer::Resources::AwsApiGatewayMethodResponse

AwsCloudTrail is the api_gatewat_rest_api terrform resource,

{www.terraform.io/docs/providers/aws/r/api_gateway_method_response.html}

Public Class Methods

_fetch_remote_resources(provider) click to toggle source
# File lib/geoengineer/resources/aws_api_gateway_method_response.rb, line 55
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[:method_responses] || {}).keys.map do |status_code|
      agmr = {}
      tf_id = "agmr-#{rr[:_terraform_id]}-#{res[:_terraform_id]}-#{meth}-#{status_code}"
      agmr[:_terraform_id] = tf_id
      agmr[:_geo_id] = "#{rr[:_geo_id]}::#{res[:_geo_id]}::#{meth}::#{status_code}"
      agmr
    end
  end.flatten.compact
end

Public Instance Methods

support_tags?() click to toggle source
# File lib/geoengineer/resources/aws_api_gateway_method_response.rb, line 51
def support_tags?
  false
end
to_terraform_state() click to toggle source
# File lib/geoengineer/resources/aws_api_gateway_method_response.rb, line 40
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