class MSS::Core::Region

Represents an MSS region. A region has a name and provides access to service interface objects.

mss = MSS.regions['us-west-1']

mss.dynamo_db.tables.map(&:name)
mss.ec2.instances.map(&:id)

Regions provide helper methods for each service.

@attr_reader [AutoScaling] auto_scaling @attr_reader [CloudFormation] cloud_formation @attr_reader [CloudFront] cloud_front @attr_reader [CloudSearch] cloud_search @attr_reader [CloudTrail] cloud_trail @attr_reader [CloudWatch] cloud_watch @attr_reader [DataPipeline] data_pipeline @attr_reader [DirectConnect] direct_connect @attr_reader [DynamoDB] dynamo_db @attr_reader [EC2] ec2 @attr_reader [ElasticBeanstalk] elastic_beanstalk @attr_reader [ElasticTranscoder] elastic_transcoder @attr_reader [ElastiCache] elasticache @attr_reader [ELB] elb @attr_reader [EMR] emr @attr_reader [Glacier] glacier @attr_reader [IAM] iam @attr_reader [ImportExport] import_export @attr_reader [Kinesis] kinesis @attr_reader [OpsWorks] ops_works @attr_reader [RDS] rds @attr_reader [Redshift] redshift @attr_reader [Route53] route_53 @attr_reader [S3] s3 @attr_reader [SimpleEmailService] ses @attr_reader [SimpleDB] simple_db @attr_reader [SNS] sns @attr_reader [SQS] sqs @attr_reader [StorageGateway] storage_gateway @attr_reader [STS] sts @attr_reader [Support] support @attr_reader [SimpleWorkflow] swf

Attributes

config[R]

@return [Configuration]

name[R]

@return [String] The name of this region (e.g. 'us-west-1').

Public Class Methods

new(name, options = {}) click to toggle source

@param [String] name @option options [Configuration] :config (MSS.config)

# File lib/mss/core/region.rb, line 63
def initialize name, options = {}
  @name = name
  @config = options[:config] || MSS.config
  @config = @config.with(:region => name)
end