Class: Aws::Partitions::Service

Inherits:
Object
  • Object
show all
Defined in:
gems/aws-partitions/lib/aws-partitions/service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameString (readonly)

Returns The name of this service. The name is the module name as used by the AWS SDK for Ruby.

Returns:

  • (String)

    The name of this service. The name is the module name as used by the AWS SDK for Ruby.



25
26
27
# File 'gems/aws-partitions/lib/aws-partitions/service.rb', line 25

def name
  @name
end

#partition_nameString (readonly)

Returns The partition name, e.g "aws", "aws-cn", "aws-us-gov".

Returns:

  • (String)

    The partition name, e.g "aws", "aws-cn", "aws-us-gov".



28
29
30
# File 'gems/aws-partitions/lib/aws-partitions/service.rb', line 28

def partition_name
  @partition_name
end

#partition_regionString? (readonly)

Returns The global patition endpoint for this service. May be nil.

Returns:

  • (String, nil)

    The global patition endpoint for this service. May be nil.



36
37
38
# File 'gems/aws-partitions/lib/aws-partitions/service.rb', line 36

def partition_region
  @partition_region
end

#regionsSet<String> (readonly)

Returns The regions this service is available in. Regions are scoped to the partition.

Returns:

  • (Set<String>)

    The regions this service is available in. Regions are scoped to the partition.



32
33
34
# File 'gems/aws-partitions/lib/aws-partitions/service.rb', line 32

def regions
  @regions
end

Instance Method Details

#regionalized?Boolean

Returns false if the service operates with a single global endpoint for the current partition, returns true if the service is available in multiple regions.

Some services have both a partition endpoint and regional endpoints.

Returns:

  • (Boolean)


45
46
47
# File 'gems/aws-partitions/lib/aws-partitions/service.rb', line 45

def regionalized?
  @regionalized
end