Sha256: 3d20e82039f22e58a4f798860a1870151aa0daca7c77b3176a9a07a4926236f1

Contents?: true

Size: 672 Bytes

Versions: 41

Compression:

Stored size: 672 Bytes

Contents

require_relative '../resource'

module Convection
  module Model
    class Template
      class Resource
        ##
        # AWS::ApiGateway::ApiKey
        ##
        class ApiGatewayApiKey < Resource
          type 'AWS::ApiGateway::ApiKey'
          property :description, 'Description'
          property :enabled, 'Enabled'
          property :name, 'Name'
          property :stage_keys, 'StageKeys', :type => :list # [ StageKey, ... ]

          def stage_key(&block)
            s = ResourceProperty::ApiGatewayApiKeyStageKey.new(self)
            s.instance_exec(&block) if block
            stage_keys << s
          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_api_key.rb