Class: SDM::AWSStore
- Inherits:
-
Object
- Object
- SDM::AWSStore
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Unique identifier of the SecretStore.
-
#name ⇒ Object
Unique human-readable name of the SecretStore.
-
#region ⇒ Object
The AWS region to target e.g.
-
#role_arn ⇒ Object
The role to assume after logging in.
-
#role_external_id ⇒ Object
The external ID to associate with assume role requests.
-
#tags ⇒ Object
Tags is a map of key, value pairs.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, region: nil, role_arn: nil, role_external_id: nil, tags: nil) ⇒ AWSStore
constructor
A new instance of AWSStore.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, region: nil, role_arn: nil, role_external_id: nil, tags: nil) ⇒ AWSStore
Returns a new instance of AWSStore.
1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 |
# File 'lib/models/porcelain.rb', line 1204 def initialize( id: nil, name: nil, region: nil, role_arn: nil, role_external_id: nil, tags: nil ) @id = id == nil ? "" : id @name = name == nil ? "" : name @region = region == nil ? "" : region @role_arn = role_arn == nil ? "" : role_arn @role_external_id = role_external_id == nil ? "" : role_external_id @tags = == nil ? SDM::() : end |
Instance Attribute Details
#id ⇒ Object
Unique identifier of the SecretStore.
1192 1193 1194 |
# File 'lib/models/porcelain.rb', line 1192 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
1194 1195 1196 |
# File 'lib/models/porcelain.rb', line 1194 def name @name end |
#region ⇒ Object
The AWS region to target e.g. us-east-1
1196 1197 1198 |
# File 'lib/models/porcelain.rb', line 1196 def region @region end |
#role_arn ⇒ Object
The role to assume after logging in.
1198 1199 1200 |
# File 'lib/models/porcelain.rb', line 1198 def role_arn @role_arn end |
#role_external_id ⇒ Object
The external ID to associate with assume role requests. Does nothing if a role ARN is not provided.
1200 1201 1202 |
# File 'lib/models/porcelain.rb', line 1200 def role_external_id @role_external_id end |
#tags ⇒ Object
Tags is a map of key, value pairs.
1202 1203 1204 |
# File 'lib/models/porcelain.rb', line 1202 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1220 1221 1222 1223 1224 1225 1226 |
# File 'lib/models/porcelain.rb', line 1220 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 |