Class: SDM::AWSStore

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
end

Instance Attribute Details

#idObject

Unique identifier of the SecretStore.



935
936
937
# File 'lib/models/porcelain.rb', line 935

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



937
938
939
# File 'lib/models/porcelain.rb', line 937

def name
  @name
end

#regionObject

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_arnObject

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_idObject

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

#tagsObject

Tags is a map of key, value pairs.



945
946
947
# File 'lib/models/porcelain.rb', line 945

def tags
  @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(options = {})
  hash = {}
  self.instance_variables.each do |var|
    hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
  end
  hash.to_json
end