Sha256: 822bfc9bbbdd313c7c63dcd265e983018e383e8f378350df51e217370334d9d0

Contents?: true

Size: 1.01 KB

Versions: 5

Compression:

Stored size: 1.01 KB

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'
  autoload :S3Bucket, 'jets/aws_services/s3_bucket'

  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

5 entries across 5 versions & 1 rubygems

Version Path
jets-1.8.4 lib/jets/aws_services.rb
jets-1.8.3 lib/jets/aws_services.rb
jets-1.8.2 lib/jets/aws_services.rb
jets-1.8.1 lib/jets/aws_services.rb
jets-1.8.0 lib/jets/aws_services.rb