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.
-
#egress_filter ⇒ Object
A filter applied to the routing logic to pin datasource to nodes.
-
#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(access_key: nil, egress_filter: nil, endpoint: nil, healthy: nil, id: nil, name: nil, port_override: nil, region: nil, role_arn: nil, role_external_id: nil, secret_access_key: nil, secret_store_id: nil, tags: nil) ⇒ DynamoDB
constructor
A new instance of DynamoDB.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(access_key: nil, egress_filter: nil, endpoint: nil, healthy: nil, id: nil, name: nil, port_override: nil, region: nil, role_arn: nil, role_external_id: nil, secret_access_key: nil, secret_store_id: nil, tags: nil) ⇒ DynamoDB
Returns a new instance of DynamoDB.
2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 |
# File 'lib/models/porcelain.rb', line 2833 def initialize( access_key: nil, egress_filter: nil, endpoint: nil, healthy: nil, id: nil, name: nil, port_override: nil, region: nil, role_arn: nil, role_external_id: nil, secret_access_key: nil, secret_store_id: nil, tags: nil ) if access_key != nil @access_key = access_key end if egress_filter != nil @egress_filter = egress_filter end if endpoint != nil @endpoint = endpoint end if healthy != nil @healthy = healthy end if id != nil @id = id end if name != nil @name = name end if port_override != nil @port_override = port_override end if region != nil @region = region end if role_arn != nil @role_arn = role_arn end if role_external_id != nil @role_external_id = role_external_id end if secret_access_key != nil @secret_access_key = secret_access_key end if secret_store_id != nil @secret_store_id = secret_store_id end if != nil @tags = end end |
Instance Attribute Details
#access_key ⇒ Object
Returns the value of attribute access_key.
2807 2808 2809 |
# File 'lib/models/porcelain.rb', line 2807 def access_key @access_key end |
#egress_filter ⇒ Object
A filter applied to the routing logic to pin datasource to nodes.
2809 2810 2811 |
# File 'lib/models/porcelain.rb', line 2809 def egress_filter @egress_filter end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
2811 2812 2813 |
# File 'lib/models/porcelain.rb', line 2811 def endpoint @endpoint end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
2813 2814 2815 |
# File 'lib/models/porcelain.rb', line 2813 def healthy @healthy end |
#id ⇒ Object
Unique identifier of the Resource.
2815 2816 2817 |
# File 'lib/models/porcelain.rb', line 2815 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
2817 2818 2819 |
# File 'lib/models/porcelain.rb', line 2817 def name @name end |
#port_override ⇒ Object
Returns the value of attribute port_override.
2819 2820 2821 |
# File 'lib/models/porcelain.rb', line 2819 def port_override @port_override end |
#region ⇒ Object
Returns the value of attribute region.
2821 2822 2823 |
# File 'lib/models/porcelain.rb', line 2821 def region @region end |
#role_arn ⇒ Object
Returns the value of attribute role_arn.
2823 2824 2825 |
# File 'lib/models/porcelain.rb', line 2823 def role_arn @role_arn end |
#role_external_id ⇒ Object
Returns the value of attribute role_external_id.
2825 2826 2827 |
# File 'lib/models/porcelain.rb', line 2825 def role_external_id @role_external_id end |
#secret_access_key ⇒ Object
Returns the value of attribute secret_access_key.
2827 2828 2829 |
# File 'lib/models/porcelain.rb', line 2827 def secret_access_key @secret_access_key end |
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
2829 2830 2831 |
# File 'lib/models/porcelain.rb', line 2829 def secret_store_id @secret_store_id end |
#tags ⇒ Object
Tags is a map of key, value pairs.
2831 2832 2833 |
# File 'lib/models/porcelain.rb', line 2831 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
2889 2890 2891 2892 2893 2894 2895 |
# File 'lib/models/porcelain.rb', line 2889 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 |