You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::RDS::AccountQuota

Inherits:
Object
  • Object
show all
Defined in:
gems/aws-sdk-rds/lib/aws-sdk-rds/account_quota.rb

Defined Under Namespace

Classes: Collection

Read-Only Attributes collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of AccountQuota

Overloads:

  • #initialize(name, options = {}) ⇒ AccountQuota

    Parameters:

    • name (String)

    Options Hash (options):

  • #initialize(options = {}) ⇒ AccountQuota

    Options Hash (options):

    • :name (required, String)
    • :client (Client)


19
20
21
22
23
24
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/account_quota.rb', line 19

def initialize(*args)
  options = Hash === args.last ? args.pop.dup : {}
  @name = extract_name(args, options)
  @data = options.delete(:data)
  @client = options.delete(:client) || Client.new(options)
end

Instance Method Details

#clientClient

Returns:



49
50
51
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/account_quota.rb', line 49

def client
  @client
end

#dataTypes::AccountQuota

Returns the data for this Aws::RDS::AccountQuota.

Returns:

Raises:



64
65
66
67
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/account_quota.rb', line 64

def data
  load unless @data
  @data
end

#data_loaded?Boolean

Returns true if this resource is loaded. Accessing attributes or #data on an unloaded resource will trigger a call to #load.

Returns:

  • (Boolean)

    Returns true if this resource is loaded. Accessing attributes or #data on an unloaded resource will trigger a call to #load.



72
73
74
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/account_quota.rb', line 72

def data_loaded?
  !!@data
end

#maxInteger

The maximum allowed value for the quota.

Returns:

  • (Integer)


42
43
44
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/account_quota.rb', line 42

def max
  data.max
end

#nameString Also known as: account_quota_name

Returns:

  • (String)


29
30
31
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/account_quota.rb', line 29

def name
  @name
end

#usedInteger

The amount currently used toward the quota maximum.

Returns:

  • (Integer)


36
37
38
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/account_quota.rb', line 36

def used
  data.used
end