Class: SDM::DynamoDB
- Inherits:
-
Object
- Object
- SDM::DynamoDB
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#access_key ⇒ Object
Returns the value of attribute access_key.
-
#egress_filter ⇒ Object
A filter applied to the routing logic to pin datasource to nodes.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
-
#id ⇒ Object
Unique identifier of the Resource.
-
#name ⇒ Object
Unique human-readable name of the Resource.
-
#port_override ⇒ Object
Returns the value of attribute port_override.
-
#region ⇒ Object
Returns the value of attribute region.
-
#role_arn ⇒ Object
Returns the value of attribute role_arn.
-
#role_external_id ⇒ Object
Returns the value of attribute role_external_id.
-
#secret_access_key ⇒ Object
Returns the value of attribute secret_access_key.
-
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
-
#tags ⇒ Object
Tags is a map of key, value pairs.
Instance Method Summary collapse
-
#initialize(access_key: nil, egress_filter: nil, endpoint: nil, healthy: nil, id: nil, name: nil, port_override: nil, region: nil, role_arn: nil, role_external_id: nil, secret_access_key: nil, secret_store_id: nil, tags: nil) ⇒ DynamoDB
constructor
A new instance of DynamoDB.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(access_key: nil, egress_filter: nil, endpoint: nil, healthy: nil, id: nil, name: nil, port_override: nil, region: nil, role_arn: nil, role_external_id: nil, secret_access_key: nil, secret_store_id: nil, tags: nil) ⇒ DynamoDB
Returns a new instance of DynamoDB.
2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 |
# File 'lib/models/porcelain.rb', line 2427 def initialize( access_key: nil, egress_filter: nil, endpoint: nil, healthy: nil, id: nil, name: nil, port_override: nil, region: nil, role_arn: nil, role_external_id: nil, secret_access_key: nil, secret_store_id: nil, tags: nil ) if access_key != nil @access_key = access_key end if egress_filter != nil @egress_filter = egress_filter end if endpoint != nil @endpoint = endpoint end if healthy != nil @healthy = healthy end if id != nil @id = id end if name != nil @name = name end if port_override != nil @port_override = port_override end if region != nil @region = region end if role_arn != nil @role_arn = role_arn end if role_external_id != nil @role_external_id = role_external_id end if secret_access_key != nil @secret_access_key = secret_access_key end if secret_store_id != nil @secret_store_id = secret_store_id end if != nil @tags = end end |
Instance Attribute Details
#access_key ⇒ Object
Returns the value of attribute access_key.
2401 2402 2403 |
# File 'lib/models/porcelain.rb', line 2401 def access_key @access_key end |
#egress_filter ⇒ Object
A filter applied to the routing logic to pin datasource to nodes.
2403 2404 2405 |
# File 'lib/models/porcelain.rb', line 2403 def egress_filter @egress_filter end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
2405 2406 2407 |
# File 'lib/models/porcelain.rb', line 2405 def endpoint @endpoint end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
2407 2408 2409 |
# File 'lib/models/porcelain.rb', line 2407 def healthy @healthy end |
#id ⇒ Object
Unique identifier of the Resource.
2409 2410 2411 |
# File 'lib/models/porcelain.rb', line 2409 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
2411 2412 2413 |
# File 'lib/models/porcelain.rb', line 2411 def name @name end |
#port_override ⇒ Object
Returns the value of attribute port_override.
2413 2414 2415 |
# File 'lib/models/porcelain.rb', line 2413 def port_override @port_override end |
#region ⇒ Object
Returns the value of attribute region.
2415 2416 2417 |
# File 'lib/models/porcelain.rb', line 2415 def region @region end |
#role_arn ⇒ Object
Returns the value of attribute role_arn.
2417 2418 2419 |
# File 'lib/models/porcelain.rb', line 2417 def role_arn @role_arn end |
#role_external_id ⇒ Object
Returns the value of attribute role_external_id.
2419 2420 2421 |
# File 'lib/models/porcelain.rb', line 2419 def role_external_id @role_external_id end |
#secret_access_key ⇒ Object
Returns the value of attribute secret_access_key.
2421 2422 2423 |
# File 'lib/models/porcelain.rb', line 2421 def secret_access_key @secret_access_key end |
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
2423 2424 2425 |
# File 'lib/models/porcelain.rb', line 2423 def secret_store_id @secret_store_id end |
#tags ⇒ Object
Tags is a map of key, value pairs.
2425 2426 2427 |
# File 'lib/models/porcelain.rb', line 2425 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
2483 2484 2485 2486 2487 2488 2489 |
# File 'lib/models/porcelain.rb', line 2483 def to_json( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |