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.
-
#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(id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: nil, access_key: nil, secret_access_key: nil, region: nil, endpoint: nil, port_override: nil, role_arn: nil, role_external_id: nil) ⇒ DynamoDB
constructor
A new instance of DynamoDB.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: nil, access_key: nil, secret_access_key: nil, region: nil, endpoint: nil, port_override: nil, role_arn: nil, role_external_id: nil) ⇒ DynamoDB
Returns a new instance of DynamoDB.
1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 |
# File 'lib/models/porcelain.rb', line 1267 def initialize( id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: nil, access_key: nil, secret_access_key: nil, region: nil, endpoint: nil, port_override: nil, role_arn: nil, role_external_id: nil ) if id != nil @id = id end if name != nil @name = name end if healthy != nil @healthy = healthy end if != nil @tags = end if secret_store_id != nil @secret_store_id = secret_store_id end if access_key != nil @access_key = access_key end if secret_access_key != nil @secret_access_key = secret_access_key end if region != nil @region = region end if endpoint != nil @endpoint = endpoint end if port_override != nil @port_override = port_override end if role_arn != nil @role_arn = role_arn end if role_external_id != nil @role_external_id = role_external_id end end |
Instance Attribute Details
#access_key ⇒ Object
Returns the value of attribute access_key.
1253 1254 1255 |
# File 'lib/models/porcelain.rb', line 1253 def access_key @access_key end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
1259 1260 1261 |
# File 'lib/models/porcelain.rb', line 1259 def endpoint @endpoint end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
1247 1248 1249 |
# File 'lib/models/porcelain.rb', line 1247 def healthy @healthy end |
#id ⇒ Object
Unique identifier of the Resource.
1243 1244 1245 |
# File 'lib/models/porcelain.rb', line 1243 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
1245 1246 1247 |
# File 'lib/models/porcelain.rb', line 1245 def name @name end |
#port_override ⇒ Object
Returns the value of attribute port_override.
1261 1262 1263 |
# File 'lib/models/porcelain.rb', line 1261 def port_override @port_override end |
#region ⇒ Object
Returns the value of attribute region.
1257 1258 1259 |
# File 'lib/models/porcelain.rb', line 1257 def region @region end |
#role_arn ⇒ Object
Returns the value of attribute role_arn.
1263 1264 1265 |
# File 'lib/models/porcelain.rb', line 1263 def role_arn @role_arn end |
#role_external_id ⇒ Object
Returns the value of attribute role_external_id.
1265 1266 1267 |
# File 'lib/models/porcelain.rb', line 1265 def role_external_id @role_external_id end |
#secret_access_key ⇒ Object
Returns the value of attribute secret_access_key.
1255 1256 1257 |
# File 'lib/models/porcelain.rb', line 1255 def secret_access_key @secret_access_key end |
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
1251 1252 1253 |
# File 'lib/models/porcelain.rb', line 1251 def secret_store_id @secret_store_id end |
#tags ⇒ Object
Tags is a map of key, value pairs.
1249 1250 1251 |
# File 'lib/models/porcelain.rb', line 1249 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1319 1320 1321 1322 1323 1324 1325 |
# File 'lib/models/porcelain.rb', line 1319 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 |