Sha256: 3a7d0e47eb66744ce645d4fb7b0e5a04115ec33e78173e3e1825872a18b7e0c2

Contents?: true

Size: 1.24 KB

Versions: 9

Compression:

Stored size: 1.24 KB

Contents

require "aws-sdk-apigateway"
require "aws-sdk-cloudformation"
require "aws-sdk-cloudwatchlogs"
require "aws-sdk-dynamodb"
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 :GlobalMemoist, 'jets/aws_services/global_memoist'
  autoload :S3Bucket, 'jets/aws_services/s3_bucket'
  autoload :StackStatus, 'jets/aws_services/stack_status'

  include GlobalMemoist
  include StackStatus

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

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

  def dynamodb
    Aws::DynamoDB::Client.new
  end
  global_memoize :dynamodb

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

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

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

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

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

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

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
jets-1.9.1 lib/jets/aws_services.rb
jets-1.9.0 lib/jets/aws_services.rb
jets-1.8.14 lib/jets/aws_services.rb
jets-1.8.13 lib/jets/aws_services.rb
jets-1.8.12 lib/jets/aws_services.rb
jets-1.8.11 lib/jets/aws_services.rb
jets-1.8.10 lib/jets/aws_services.rb
jets-1.8.9 lib/jets/aws_services.rb
jets-1.8.8 lib/jets/aws_services.rb