Sha256: 049d880a5d88e9b0d6d54f5d4367d97eae2704f48a75c67e0136b50d158343b7

Contents?: true

Size: 884 Bytes

Versions: 41

Compression:

Stored size: 884 Bytes

Contents

require_relative '../resource'

module Convection
  module Model
    class Template
      class Resource
        ##
        # AWS::ApiGateway::RestApi
        ##
        class ApiGatewayRestApi < Resource
          type 'AWS::ApiGateway::RestApi'
          property :body, 'Body' # JSON object
          property :body_s3_location_prop, 'BodyS3Location' # S3Location
          property :clone_from, 'CloneFrom'
          property :description, 'Description'
          property :fail_on_warnings, 'FailOnWarnings'
          property :name, 'Name'
          property :parameters, 'Parameters', :type => :list # [ String, ... ]

          def body_s3_location(&block)
            b = ResourceProperty::ApiGatewayRestApiS3Location.new(self)
            b.instance_exec(&block) if block
            properties['BodyS3Location'].set(b)
          end
        end
      end
    end
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
convection-1.1.3 lib/convection/model/template/resource/aws_api_gateway_rest_api.rb