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, name: nil, port_override: nil, region: nil, remote_identity_group_id: nil, remote_identity_healthcheck_username: 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.



624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
# File 'lib/models/porcelain.rb', line 624

def initialize(
  access_key: nil,
  bind_interface: nil,
  egress_filter: nil,
  healthy: nil,
  id: nil,
  name: nil,
  port_override: nil,
  region: nil,
  remote_identity_group_id: nil,
  remote_identity_healthcheck_username: 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
  @name = name == nil ? "" : name
  @port_override = port_override == nil ? 0 : port_override
  @region = region == nil ? "" : region
  @remote_identity_group_id = remote_identity_group_id == nil ? "" : remote_identity_group_id
  @remote_identity_healthcheck_username = remote_identity_healthcheck_username == nil ? "" : remote_identity_healthcheck_username
  @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.



590
591
592
# File 'lib/models/porcelain.rb', line 590

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.



592
593
594
# File 'lib/models/porcelain.rb', line 592

def bind_interface
  @bind_interface
end

#egress_filterObject

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



594
595
596
# File 'lib/models/porcelain.rb', line 594

def egress_filter
  @egress_filter
end

#healthyObject

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



596
597
598
# File 'lib/models/porcelain.rb', line 596

def healthy
  @healthy
end

#idObject

Unique identifier of the Resource.



598
599
600
# File 'lib/models/porcelain.rb', line 598

def id
  @id
end

#nameObject

Unique human-readable name of the Resource.



600
601
602
# File 'lib/models/porcelain.rb', line 600

def name
  @name
end

#port_overrideObject

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



602
603
604
# File 'lib/models/porcelain.rb', line 602

def port_override
  @port_override
end

#regionObject

The AWS region to connect to.



604
605
606
# File 'lib/models/porcelain.rb', line 604

def region
  @region
end

#remote_identity_group_idObject

The ID of the remote identity group to use for remote identity connections.



606
607
608
# File 'lib/models/porcelain.rb', line 606

def remote_identity_group_id
  @remote_identity_group_id
end

#remote_identity_healthcheck_usernameObject

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



608
609
610
# File 'lib/models/porcelain.rb', line 608

def remote_identity_healthcheck_username
  @remote_identity_healthcheck_username
end

#role_arnObject

The role to assume after logging in.



610
611
612
# File 'lib/models/porcelain.rb', line 610

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.



612
613
614
# File 'lib/models/porcelain.rb', line 612

def role_external_id
  @role_external_id
end

#secret_access_keyObject

The Secret Access Key to authenticate with.



614
615
616
# File 'lib/models/porcelain.rb', line 614

def secret_access_key
  @secret_access_key
end

#secret_store_idObject

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



616
617
618
# File 'lib/models/porcelain.rb', line 616

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.



618
619
620
# File 'lib/models/porcelain.rb', line 618

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)



620
621
622
# File 'lib/models/porcelain.rb', line 620

def subdomain
  @subdomain
end

#tagsObject

Tags is a map of key, value pairs.



622
623
624
# File 'lib/models/porcelain.rb', line 622

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



662
663
664
665
666
667
668
# File 'lib/models/porcelain.rb', line 662

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