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
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)

Regions provide helper methods for each service.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Region

Parameters:

  • name (String)
  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):



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

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

Instance Attribute Details

#auto_scalingAutoScaling (readonly)

Returns the current value of auto_scaling

Returns:



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

def auto_scaling
  @auto_scaling
end

#cloud_formationCloudFormation (readonly)

Returns the current value of cloud_formation

Returns:



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

def cloud_formation
  @cloud_formation
end

#cloud_frontCloudFront (readonly)

Returns the current value of cloud_front

Returns:

  • (CloudFront)

    the current value of cloud_front



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

def cloud_front
  @cloud_front
end

#cloud_searchCloudSearch (readonly)

Returns the current value of cloud_search

Returns:



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

def cloud_search
  @cloud_search
end

#cloud_trailCloudTrail (readonly)

Returns the current value of cloud_trail

Returns:

  • (CloudTrail)

    the current value of cloud_trail



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

def cloud_trail
  @cloud_trail
end

#cloud_watchCloudWatch (readonly)

Returns the current value of cloud_watch

Returns:

  • (CloudWatch)

    the current value of cloud_watch



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

def cloud_watch
  @cloud_watch
end

#configConfiguration (readonly)

Returns:



74
75
76
# File 'lib/aws/core/region.rb', line 74

def config
  @config
end

#data_pipelineDataPipeline (readonly)

Returns the current value of data_pipeline

Returns:



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

def data_pipeline
  @data_pipeline
end

#direct_connectDirectConnect (readonly)

Returns the current value of direct_connect

Returns:



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

def direct_connect
  @direct_connect
end

#dynamo_dbDynamoDB (readonly)

Returns the current value of dynamo_db

Returns:

  • (DynamoDB)

    the current value of dynamo_db



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

def dynamo_db
  @dynamo_db
end

#ec2EC2 (readonly)

Returns the current value of ec2

Returns:

  • (EC2)

    the current value of ec2



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

def ec2
  @ec2
end

#elastic_beanstalkElasticBeanstalk (readonly)

Returns the current value of elastic_beanstalk

Returns:



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

def elastic_beanstalk
  @elastic_beanstalk
end

#elastic_transcoderElasticTranscoder (readonly)

Returns the current value of elastic_transcoder

Returns:



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

def elastic_transcoder
  @elastic_transcoder
end

#elasticacheElastiCache (readonly)

Returns the current value of elasticache

Returns:



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

def elasticache
  @elasticache
end

#elbELB (readonly)

Returns the current value of elb

Returns:

  • (ELB)

    the current value of elb



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

def elb
  @elb
end

#emrEMR (readonly)

Returns the current value of emr

Returns:

  • (EMR)

    the current value of emr



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

def emr
  @emr
end

#glacierGlacier (readonly)

Returns the current value of glacier

Returns:

  • (Glacier)

    the current value of glacier



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

def glacier
  @glacier
end

#iamIAM (readonly)

Returns the current value of iam

Returns:

  • (IAM)

    the current value of iam



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

def iam
  @iam
end

#import_exportImportExport (readonly)

Returns the current value of import_export

Returns:



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

def import_export
  @import_export
end

#kinesisKinesis (readonly)

Returns the current value of kinesis

Returns:

  • (Kinesis)

    the current value of kinesis



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

def kinesis
  @kinesis
end

#nameString (readonly)

Returns The name of this region (e.g. 'us-west-1').

Returns:

  • (String)

    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_worksOpsWorks (readonly)

Returns the current value of ops_works

Returns:

  • (OpsWorks)

    the current value of ops_works



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

def ops_works
  @ops_works
end

#rdsRDS (readonly)

Returns the current value of rds

Returns:

  • (RDS)

    the current value of rds



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

def rds
  @rds
end

#redshiftRedshift (readonly)

Returns the current value of redshift

Returns:

  • (Redshift)

    the current value of redshift



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

def redshift
  @redshift
end

#route_53Route53 (readonly)

Returns the current value of route_53

Returns:

  • (Route53)

    the current value of route_53



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

def route_53
  @route_53
end

#s3S3 (readonly)

Returns the current value of s3

Returns:

  • (S3)

    the current value of s3



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

def s3
  @s3
end

#sesSimpleEmailService (readonly)

Returns the current value of ses

Returns:



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

def ses
  @ses
end

#simple_dbSimpleDB (readonly)

Returns the current value of simple_db

Returns:

  • (SimpleDB)

    the current value of simple_db



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

def simple_db
  @simple_db
end

#snsSNS (readonly)

Returns the current value of sns

Returns:

  • (SNS)

    the current value of sns



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

def sns
  @sns
end

#sqsSQS (readonly)

Returns the current value of sqs

Returns:

  • (SQS)

    the current value of sqs



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

def sqs
  @sqs
end

#storage_gatewayStorageGateway (readonly)

Returns the current value of storage_gateway

Returns:



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

def storage_gateway
  @storage_gateway
end

#stsSTS (readonly)

Returns the current value of sts

Returns:

  • (STS)

    the current value of sts



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

def sts
  @sts
end

#supportSupport (readonly)

Returns the current value of support

Returns:

  • (Support)

    the current value of support



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

def support
  @support
end

#swfSimpleWorkflow (readonly)

Returns the current value of swf

Returns:



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

def swf
  @swf
end