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.
947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 |
# File 'lib/models/porcelain.rb', line 947 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.
935 936 937 |
# File 'lib/models/porcelain.rb', line 935 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
937 938 939 |
# File 'lib/models/porcelain.rb', line 937 def name @name end |
#region ⇒ Object
The AWS region to target e.g. us-east-1
939 940 941 |
# File 'lib/models/porcelain.rb', line 939 def region @region end |
#role_arn ⇒ Object
The role to assume after logging in.
941 942 943 |
# File 'lib/models/porcelain.rb', line 941 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.
943 944 945 |
# File 'lib/models/porcelain.rb', line 943 def role_external_id @role_external_id end |
#tags ⇒ Object
Tags is a map of key, value pairs.
945 946 947 |
# File 'lib/models/porcelain.rb', line 945 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
963 964 965 966 967 968 969 |
# File 'lib/models/porcelain.rb', line 963 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 |