Class: SDM::AWSConsoleStaticKeyPair

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(access_key: nil, bind_interface: nil, egress_filter: nil, healthy: nil, id: nil, identity_alias_healthcheck_username: nil, identity_set_id: nil, name: nil, port_override: nil, proxy_cluster_id: nil, region: nil, role_arn: nil, role_external_id: nil, secret_access_key: nil, secret_store_id: nil, session_expiry: nil, subdomain: nil, tags: nil) ⇒ AWSConsoleStaticKeyPair

Returns a new instance of AWSConsoleStaticKeyPair.



682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
# File 'lib/models/porcelain.rb', line 682

def initialize(
  access_key: nil,
  bind_interface: nil,
  egress_filter: nil,
  healthy: nil,
  id: nil,
  identity_alias_healthcheck_username: nil,
  identity_set_id: nil,
  name: nil,
  port_override: nil,
  proxy_cluster_id: nil,
  region: nil,
  role_arn: nil,
  role_external_id: nil,
  secret_access_key: nil,
  secret_store_id: nil,
  session_expiry: nil,
  subdomain: nil,
  tags: nil
)
  @access_key = access_key == nil ? "" : access_key
  @bind_interface = bind_interface == nil ? "" : bind_interface
  @egress_filter = egress_filter == nil ? "" : egress_filter
  @healthy = healthy == nil ? false : healthy
  @id = id == nil ? "" : id
  @identity_alias_healthcheck_username = identity_alias_healthcheck_username == nil ? "" : identity_alias_healthcheck_username
  @identity_set_id = identity_set_id == nil ? "" : identity_set_id
  @name = name == nil ? "" : name
  @port_override = port_override == nil ? 0 : port_override
  @proxy_cluster_id = proxy_cluster_id == nil ? "" : proxy_cluster_id
  @region = region == nil ? "" : region
  @role_arn = role_arn == nil ? "" : role_arn
  @role_external_id = role_external_id == nil ? "" : role_external_id
  @secret_access_key = secret_access_key == nil ? "" : secret_access_key
  @secret_store_id = secret_store_id == nil ? "" : secret_store_id
  @session_expiry = session_expiry == nil ? 0 : session_expiry
  @subdomain = subdomain == nil ? "" : subdomain
  @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
end

Instance Attribute Details

#access_keyObject

The Access Key ID to authenticate with.



646
647
648
# File 'lib/models/porcelain.rb', line 646

def access_key
  @access_key
end

#bind_interfaceObject

The bind interface is the IP address to which the port override of a resource is bound (for example, 127.0.0.1). It is automatically generated if not provided.



648
649
650
# File 'lib/models/porcelain.rb', line 648

def bind_interface
  @bind_interface
end

#egress_filterObject

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



650
651
652
# File 'lib/models/porcelain.rb', line 650

def egress_filter
  @egress_filter
end

#healthyObject

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



652
653
654
# File 'lib/models/porcelain.rb', line 652

def healthy
  @healthy
end

#idObject

Unique identifier of the Resource.



654
655
656
# File 'lib/models/porcelain.rb', line 654

def id
  @id
end

#identity_alias_healthcheck_usernameObject

The username to use for healthchecks, when clients otherwise connect with their own identity alias username.



656
657
658
# File 'lib/models/porcelain.rb', line 656

def identity_alias_healthcheck_username
  @identity_alias_healthcheck_username
end

#identity_set_idObject

The ID of the identity set to use for identity connections.



658
659
660
# File 'lib/models/porcelain.rb', line 658

def identity_set_id
  @identity_set_id
end

#nameObject

Unique human-readable name of the Resource.



660
661
662
# File 'lib/models/porcelain.rb', line 660

def name
  @name
end

#port_overrideObject

The local port used by clients to connect to this resource.



662
663
664
# File 'lib/models/porcelain.rb', line 662

def port_override
  @port_override
end

#proxy_cluster_idObject

ID of the proxy cluster for this resource, if any.



664
665
666
# File 'lib/models/porcelain.rb', line 664

def proxy_cluster_id
  @proxy_cluster_id
end

#regionObject

The AWS region to connect to.



666
667
668
# File 'lib/models/porcelain.rb', line 666

def region
  @region
end

#role_arnObject

The role to assume after logging in.



668
669
670
# File 'lib/models/porcelain.rb', line 668

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.



670
671
672
# File 'lib/models/porcelain.rb', line 670

def role_external_id
  @role_external_id
end

#secret_access_keyObject

The Secret Access Key to authenticate with.



672
673
674
# File 'lib/models/porcelain.rb', line 672

def secret_access_key
  @secret_access_key
end

#secret_store_idObject

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



674
675
676
# File 'lib/models/porcelain.rb', line 674

def secret_store_id
  @secret_store_id
end

#session_expiryObject

The length of time in seconds AWS console sessions will live before needing to reauthenticate.



676
677
678
# File 'lib/models/porcelain.rb', line 676

def session_expiry
  @session_expiry
end

#subdomainObject

Subdomain is the local DNS address. (e.g. app-prod1 turns into app-prod1.your-org-name.sdm.network)



678
679
680
# File 'lib/models/porcelain.rb', line 678

def subdomain
  @subdomain
end

#tagsObject

Tags is a map of key, value pairs.



680
681
682
# File 'lib/models/porcelain.rb', line 680

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



722
723
724
725
726
727
728
# File 'lib/models/porcelain.rb', line 722

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