Class: SDM::AWS

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, healthy: nil, tags: nil, secret_store_id: nil, egress_filter: nil, access_key: nil, secret_access_key: nil, healthcheck_region: nil, role_arn: nil, role_external_id: nil) ⇒ AWS

Returns a new instance of AWS.



1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
# File 'lib/models/porcelain.rb', line 1011

def initialize(
  id: nil,
  name: nil,
  healthy: nil,
  tags: nil,
  secret_store_id: nil,
  egress_filter: nil,
  access_key: nil,
  secret_access_key: nil,
  healthcheck_region: 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 tags != nil
    @tags = tags
  end
  if secret_store_id != nil
    @secret_store_id = secret_store_id
  end
  if egress_filter != nil
    @egress_filter = egress_filter
  end
  if access_key != nil
    @access_key = access_key
  end
  if secret_access_key != nil
    @secret_access_key = secret_access_key
  end
  if healthcheck_region != nil
    @healthcheck_region = healthcheck_region
  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_keyObject

Returns the value of attribute access_key.



1001
1002
1003
# File 'lib/models/porcelain.rb', line 1001

def access_key
  @access_key
end

#egress_filterObject

A filter applied to the routing logic to pin datasource to nodes.



999
1000
1001
# File 'lib/models/porcelain.rb', line 999

def egress_filter
  @egress_filter
end

#healthcheck_regionObject

Returns the value of attribute healthcheck_region.



1005
1006
1007
# File 'lib/models/porcelain.rb', line 1005

def healthcheck_region
  @healthcheck_region
end

#healthyObject

True if the datasource is reachable and the credentials are valid.



993
994
995
# File 'lib/models/porcelain.rb', line 993

def healthy
  @healthy
end

#idObject

Unique identifier of the Resource.



989
990
991
# File 'lib/models/porcelain.rb', line 989

def id
  @id
end

#nameObject

Unique human-readable name of the Resource.



991
992
993
# File 'lib/models/porcelain.rb', line 991

def name
  @name
end

#role_arnObject

Returns the value of attribute role_arn.



1007
1008
1009
# File 'lib/models/porcelain.rb', line 1007

def role_arn
  @role_arn
end

#role_external_idObject

Returns the value of attribute role_external_id.



1009
1010
1011
# File 'lib/models/porcelain.rb', line 1009

def role_external_id
  @role_external_id
end

#secret_access_keyObject

Returns the value of attribute secret_access_key.



1003
1004
1005
# File 'lib/models/porcelain.rb', line 1003

def secret_access_key
  @secret_access_key
end

#secret_store_idObject

ID of the secret store containing credentials for this resource, if any.



997
998
999
# File 'lib/models/porcelain.rb', line 997

def secret_store_id
  @secret_store_id
end

#tagsObject

Tags is a map of key, value pairs.



995
996
997
# File 'lib/models/porcelain.rb', line 995

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



1059
1060
1061
1062
1063
1064
1065
# File 'lib/models/porcelain.rb', line 1059

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