Sha256: 8285d7d50f1ce19045d2af0eef182e5f1076a21e784e2a31c8d24a6d92ce9342

Contents?: true

Size: 981 Bytes

Versions: 38

Compression:

Stored size: 981 Bytes

Contents

require "aws-sdk-apigateway"
require "aws-sdk-cloudformation"
require "aws-sdk-cloudwatchlogs"
require "aws-sdk-lambda"
require "aws-sdk-s3"
require "aws-sdk-sts"
# Not used in Jets internally but convenient for shared resources
require "aws-sdk-sns"
require "aws-sdk-sqs"

module Jets::AwsServices
  autoload :StackStatus, 'jets/aws_services/stack_status'
  include StackStatus
  extend Memoist

  def apigateway
    Aws::APIGateway::Client.new
  end
  memoize :apigateway

  def cfn
    Aws::CloudFormation::Client.new
  end
  memoize :cfn

  def lambda
    Aws::Lambda::Client.new
  end
  memoize :lambda

  def logs
    Aws::CloudWatchLogs::Client.new
  end
  memoize :logs

  def s3
    Aws::S3::Client.new
  end
  memoize :s3

  def s3_resource
    Aws::S3::Resource.new
  end
  memoize :s3_resource

  def sns
    Aws::SNS::Client.new
  end
  memoize :sns

  def sqs
    Aws::SQS::Client.new
  end
  memoize :sqs

  def sts
    Aws::STS::Client.new
  end
  memoize :sts
end

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
jets-1.7.2 lib/jets/aws_services.rb
jets-1.7.1 lib/jets/aws_services.rb
jets-1.7.0 lib/jets/aws_services.rb
jets-fs-1.6.10 lib/jets/aws_services.rb
jets-1.6.9 lib/jets/aws_services.rb
jets-1.6.8 lib/jets/aws_services.rb
jets-1.6.7 lib/jets/aws_services.rb
jets-1.6.6 lib/jets/aws_services.rb
jets-1.6.5 lib/jets/aws_services.rb
jets-1.6.4 lib/jets/aws_services.rb
jets-1.6.3 lib/jets/aws_services.rb
jets-1.6.2 lib/jets/aws_services.rb
jets-1.6.1 lib/jets/aws_services.rb
jets-1.6.0 lib/jets/aws_services.rb
jets-1.5.10 lib/jets/aws_services.rb
jets-1.5.9 lib/jets/aws_services.rb
jets-1.5.8 lib/jets/aws_services.rb
jets-1.5.7 lib/jets/aws_services.rb
jets-1.5.6 lib/jets/aws_services.rb
jets-1.5.5 lib/jets/aws_services.rb