You are viewing documentation for version 1 of the AWS SDK for Ruby. Version 2 documentation can be found here.
Class: AWS::Core::Region
- Inherits:
-
Object
- Object
- AWS::Core::Region
- 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)
Regions provide helper methods for each service.
Instance Attribute Summary collapse
-
#auto_scaling ⇒ AutoScaling
readonly
The current value of auto_scaling.
-
#cloud_formation ⇒ CloudFormation
readonly
The current value of cloud_formation.
-
#cloud_front ⇒ CloudFront
readonly
The current value of cloud_front.
-
#cloud_search ⇒ CloudSearch
readonly
The current value of cloud_search.
-
#cloud_trail ⇒ CloudTrail
readonly
The current value of cloud_trail.
-
#cloud_watch ⇒ CloudWatch
readonly
The current value of cloud_watch.
-
#config ⇒ Configuration
readonly
-
#data_pipeline ⇒ DataPipeline
readonly
The current value of data_pipeline.
-
#direct_connect ⇒ DirectConnect
readonly
The current value of direct_connect.
-
#dynamo_db ⇒ DynamoDB
readonly
The current value of dynamo_db.
-
#ec2 ⇒ EC2
readonly
The current value of ec2.
-
#elastic_beanstalk ⇒ ElasticBeanstalk
readonly
The current value of elastic_beanstalk.
-
#elastic_transcoder ⇒ ElasticTranscoder
readonly
The current value of elastic_transcoder.
-
#elasticache ⇒ ElastiCache
readonly
The current value of elasticache.
-
#elb ⇒ ELB
readonly
The current value of elb.
-
#emr ⇒ EMR
readonly
The current value of emr.
-
#glacier ⇒ Glacier
readonly
The current value of glacier.
-
#iam ⇒ IAM
readonly
The current value of iam.
-
#import_export ⇒ ImportExport
readonly
The current value of import_export.
-
#kinesis ⇒ Kinesis
readonly
The current value of kinesis.
-
#name ⇒ String
readonly
The name of this region (e.g. 'us-west-1').
-
#ops_works ⇒ OpsWorks
readonly
The current value of ops_works.
-
#rds ⇒ RDS
readonly
The current value of rds.
-
#redshift ⇒ Redshift
readonly
The current value of redshift.
-
#route_53 ⇒ Route53
readonly
The current value of route_53.
-
#s3 ⇒ S3
readonly
The current value of s3.
-
#ses ⇒ SimpleEmailService
readonly
The current value of ses.
-
#simple_db ⇒ SimpleDB
readonly
The current value of simple_db.
-
#sns ⇒ SNS
readonly
The current value of sns.
-
#sqs ⇒ SQS
readonly
The current value of sqs.
-
#storage_gateway ⇒ StorageGateway
readonly
The current value of storage_gateway.
-
#sts ⇒ STS
readonly
The current value of sts.
-
#support ⇒ Support
readonly
The current value of support.
-
#swf ⇒ SimpleWorkflow
readonly
The current value of swf.
Instance Method Summary collapse
-
#initialize(name, options = {}) ⇒ Region
constructor
A new instance of Region.
Constructor Details
#initialize(name, options = {}) ⇒ Region
Returns a new instance of Region
64 65 66 67 68 |
# File 'lib/aws/core/region.rb', line 64 def initialize name, = {} @name = name @config = [:config] || AWS.config @config = @config.with(:region => name) end |
Instance Attribute Details
#auto_scaling ⇒ AutoScaling (readonly)
Returns the current value of auto_scaling
60 61 62 |
# File 'lib/aws/core/region.rb', line 60 def auto_scaling @auto_scaling end |
#cloud_formation ⇒ CloudFormation (readonly)
Returns the current value of cloud_formation
60 61 62 |
# File 'lib/aws/core/region.rb', line 60 def cloud_formation @cloud_formation end |
#cloud_front ⇒ CloudFront (readonly)
Returns the current value of cloud_front
60 61 62 |
# File 'lib/aws/core/region.rb', line 60 def cloud_front @cloud_front end |
#cloud_search ⇒ CloudSearch (readonly)
Returns the current value of cloud_search
60 61 62 |
# File 'lib/aws/core/region.rb', line 60 def cloud_search @cloud_search end |
#cloud_trail ⇒ CloudTrail (readonly)
Returns the current value of cloud_trail
60 61 62 |
# File 'lib/aws/core/region.rb', line 60 def cloud_trail @cloud_trail end |
#cloud_watch ⇒ CloudWatch (readonly)
Returns the current value of cloud_watch
60 61 62 |
# File 'lib/aws/core/region.rb', line 60 def cloud_watch @cloud_watch end |
#config ⇒ Configuration (readonly)
74 75 76 |
# File 'lib/aws/core/region.rb', line 74 def config @config end |
#data_pipeline ⇒ DataPipeline (readonly)
Returns the current value of data_pipeline
60 61 62 |
# File 'lib/aws/core/region.rb', line 60 def data_pipeline @data_pipeline end |
#direct_connect ⇒ DirectConnect (readonly)
Returns the current value of direct_connect
60 61 62 |
# File 'lib/aws/core/region.rb', line 60 def direct_connect @direct_connect end |
#dynamo_db ⇒ DynamoDB (readonly)
Returns the current value of dynamo_db
60 61 62 |
# File 'lib/aws/core/region.rb', line 60 def dynamo_db @dynamo_db end |
#ec2 ⇒ EC2 (readonly)
Returns the current value of ec2
60 61 62 |
# File 'lib/aws/core/region.rb', line 60 def ec2 @ec2 end |
#elastic_beanstalk ⇒ ElasticBeanstalk (readonly)
Returns the current value of elastic_beanstalk
60 61 62 |
# File 'lib/aws/core/region.rb', line 60 def elastic_beanstalk @elastic_beanstalk end |
#elastic_transcoder ⇒ ElasticTranscoder (readonly)
Returns the current value of elastic_transcoder
60 61 62 |
# File 'lib/aws/core/region.rb', line 60 def elastic_transcoder @elastic_transcoder end |
#elasticache ⇒ ElastiCache (readonly)
Returns the current value of elasticache
60 61 62 |
# File 'lib/aws/core/region.rb', line 60 def elasticache @elasticache end |
#elb ⇒ ELB (readonly)
Returns the current value of elb
60 61 62 |
# File 'lib/aws/core/region.rb', line 60 def elb @elb end |
#emr ⇒ EMR (readonly)
Returns the current value of emr
60 61 62 |
# File 'lib/aws/core/region.rb', line 60 def emr @emr end |
#glacier ⇒ Glacier (readonly)
Returns the current value of glacier
60 61 62 |
# File 'lib/aws/core/region.rb', line 60 def glacier @glacier end |
#iam ⇒ IAM (readonly)
Returns the current value of iam
60 61 62 |
# File 'lib/aws/core/region.rb', line 60 def iam @iam end |
#import_export ⇒ ImportExport (readonly)
Returns the current value of import_export
60 61 62 |
# File 'lib/aws/core/region.rb', line 60 def import_export @import_export end |
#kinesis ⇒ Kinesis (readonly)
Returns the current value of kinesis
60 61 62 |
# File 'lib/aws/core/region.rb', line 60 def kinesis @kinesis end |
#name ⇒ String (readonly)
Returns The name of this region (e.g. 'us-west-1').
71 72 73 |
# File 'lib/aws/core/region.rb', line 71 def name @name end |
#ops_works ⇒ OpsWorks (readonly)
Returns the current value of ops_works
60 61 62 |
# File 'lib/aws/core/region.rb', line 60 def ops_works @ops_works end |
#rds ⇒ RDS (readonly)
Returns the current value of rds
60 61 62 |
# File 'lib/aws/core/region.rb', line 60 def rds @rds end |
#redshift ⇒ Redshift (readonly)
Returns the current value of redshift
60 61 62 |
# File 'lib/aws/core/region.rb', line 60 def redshift @redshift end |
#route_53 ⇒ Route53 (readonly)
Returns the current value of route_53
60 61 62 |
# File 'lib/aws/core/region.rb', line 60 def route_53 @route_53 end |
#s3 ⇒ S3 (readonly)
Returns the current value of s3
60 61 62 |
# File 'lib/aws/core/region.rb', line 60 def s3 @s3 end |
#ses ⇒ SimpleEmailService (readonly)
Returns the current value of ses
60 61 62 |
# File 'lib/aws/core/region.rb', line 60 def ses @ses end |
#simple_db ⇒ SimpleDB (readonly)
Returns the current value of simple_db
60 61 62 |
# File 'lib/aws/core/region.rb', line 60 def simple_db @simple_db end |
#sns ⇒ SNS (readonly)
Returns the current value of sns
60 61 62 |
# File 'lib/aws/core/region.rb', line 60 def sns @sns end |
#sqs ⇒ SQS (readonly)
Returns the current value of sqs
60 61 62 |
# File 'lib/aws/core/region.rb', line 60 def sqs @sqs end |
#storage_gateway ⇒ StorageGateway (readonly)
Returns the current value of storage_gateway
60 61 62 |
# File 'lib/aws/core/region.rb', line 60 def storage_gateway @storage_gateway end |
#sts ⇒ STS (readonly)
Returns the current value of sts
60 61 62 |
# File 'lib/aws/core/region.rb', line 60 def sts @sts end |
#support ⇒ Support (readonly)
Returns the current value of support
60 61 62 |
# File 'lib/aws/core/region.rb', line 60 def support @support end |
#swf ⇒ SimpleWorkflow (readonly)
Returns the current value of swf
60 61 62 |
# File 'lib/aws/core/region.rb', line 60 def swf @swf end |