Class: AWS::Core::Region

Inherits:
Object
  • Object
show all
Defined in:
lib/aws/core/region.rb

Overview

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

aws = AWS.regions['us-west-1']

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, options = {}) ⇒ Region

Returns a new instance of Region.

Options Hash (options):



59
60
61
62
63
# File 'lib/aws/core/region.rb', line 59

def initialize name, options = {}
  @name = name
  @config = options[:config] || AWS.config
  @config = @config.with(:region => name)
end

Instance Attribute Details

#auto_scalingAutoScaling (readonly)



55
56
57
# File 'lib/aws/core/region.rb', line 55

def auto_scaling
  @auto_scaling
end

#cloud_formationCloudFormation (readonly)



55
56
57
# File 'lib/aws/core/region.rb', line 55

def cloud_formation
  @cloud_formation
end

#cloud_frontCloudFront (readonly)



55
56
57
# File 'lib/aws/core/region.rb', line 55

def cloud_front
  @cloud_front
end

#cloud_searchCloudSearch (readonly)



55
56
57
# File 'lib/aws/core/region.rb', line 55

def cloud_search
  @cloud_search
end

#cloud_watchCloudWatch (readonly)



55
56
57
# File 'lib/aws/core/region.rb', line 55

def cloud_watch
  @cloud_watch
end

#configConfiguration (readonly)



69
70
71
# File 'lib/aws/core/region.rb', line 69

def config
  @config
end

#data_pipelineDataPipeline (readonly)



55
56
57
# File 'lib/aws/core/region.rb', line 55

def data_pipeline
  @data_pipeline
end

#direct_connectDirectConnect (readonly)



55
56
57
# File 'lib/aws/core/region.rb', line 55

def direct_connect
  @direct_connect
end

#dynamo_dbDynamoDB (readonly)



55
56
57
# File 'lib/aws/core/region.rb', line 55

def dynamo_db
  @dynamo_db
end

#ec2EC2 (readonly)



55
56
57
# File 'lib/aws/core/region.rb', line 55

def ec2
  @ec2
end

#elastic_beanstalkElasticBeanstalk (readonly)



55
56
57
# File 'lib/aws/core/region.rb', line 55

def elastic_beanstalk
  @elastic_beanstalk
end

#elastic_transcoderElasticTranscoder (readonly)



55
56
57
# File 'lib/aws/core/region.rb', line 55

def elastic_transcoder
  @elastic_transcoder
end

#elasticacheElastiCache (readonly)



55
56
57
# File 'lib/aws/core/region.rb', line 55

def elasticache
  @elasticache
end

#elbELB (readonly)



55
56
57
# File 'lib/aws/core/region.rb', line 55

def elb
  @elb
end

#emrEMR (readonly)



55
56
57
# File 'lib/aws/core/region.rb', line 55

def emr
  @emr
end

#glacierGlacier (readonly)



55
56
57
# File 'lib/aws/core/region.rb', line 55

def glacier
  @glacier
end

#iamIAM (readonly)



55
56
57
# File 'lib/aws/core/region.rb', line 55

def iam
  @iam
end

#import_exportImportExport (readonly)



55
56
57
# File 'lib/aws/core/region.rb', line 55

def import_export
  @import_export
end

#nameString (readonly)



66
67
68
# File 'lib/aws/core/region.rb', line 66

def name
  @name
end

#ops_worksOpsWorks (readonly)



55
56
57
# File 'lib/aws/core/region.rb', line 55

def ops_works
  @ops_works
end

#rdsRDS (readonly)



55
56
57
# File 'lib/aws/core/region.rb', line 55

def rds
  @rds
end

#redshiftRedshift (readonly)



55
56
57
# File 'lib/aws/core/region.rb', line 55

def redshift
  @redshift
end

#route_53Route53 (readonly)



55
56
57
# File 'lib/aws/core/region.rb', line 55

def route_53
  @route_53
end

#s3S3 (readonly)



55
56
57
# File 'lib/aws/core/region.rb', line 55

def s3
  @s3
end

#simple_dbSimpleDB (readonly)



55
56
57
# File 'lib/aws/core/region.rb', line 55

def simple_db
  @simple_db
end

#simple_email_serviceSimpleEmailService (readonly)



55
56
57
# File 'lib/aws/core/region.rb', line 55

def simple_email_service
  @simple_email_service
end

#simple_workflowSimpleWorkflow (readonly)



55
56
57
# File 'lib/aws/core/region.rb', line 55

def simple_workflow
  @simple_workflow
end

#snsSNS (readonly)



55
56
57
# File 'lib/aws/core/region.rb', line 55

def sns
  @sns
end

#sqsSQS (readonly)



55
56
57
# File 'lib/aws/core/region.rb', line 55

def sqs
  @sqs
end

#storage_gatewayStorageGateway (readonly)



55
56
57
# File 'lib/aws/core/region.rb', line 55

def storage_gateway
  @storage_gateway
end

#stsSTS (readonly)



55
56
57
# File 'lib/aws/core/region.rb', line 55

def sts
  @sts
end