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, 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.



641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
# File 'lib/models/porcelain.rb', line 641

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,
  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
  @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.



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

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.



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

def bind_interface
  @bind_interface
end

#egress_filterObject

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



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

def egress_filter
  @egress_filter
end

#healthyObject

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



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

def healthy
  @healthy
end

#idObject

Unique identifier of the Resource.



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

def id
  @id
end

#identity_alias_healthcheck_usernameObject

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



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

def identity_alias_healthcheck_username
  @identity_alias_healthcheck_username
end

#identity_set_idObject

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



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

def identity_set_id
  @identity_set_id
end

#nameObject

Unique human-readable name of the Resource.



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

def name
  @name
end

#port_overrideObject

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



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

def port_override
  @port_override
end

#regionObject

The AWS region to connect to.



625
626
627
# File 'lib/models/porcelain.rb', line 625

def region
  @region
end

#role_arnObject

The role to assume after logging in.



627
628
629
# File 'lib/models/porcelain.rb', line 627

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.



629
630
631
# File 'lib/models/porcelain.rb', line 629

def role_external_id
  @role_external_id
end

#secret_access_keyObject

The Secret Access Key to authenticate with.



631
632
633
# File 'lib/models/porcelain.rb', line 631

def secret_access_key
  @secret_access_key
end

#secret_store_idObject

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



633
634
635
# File 'lib/models/porcelain.rb', line 633

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.



635
636
637
# File 'lib/models/porcelain.rb', line 635

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)



637
638
639
# File 'lib/models/porcelain.rb', line 637

def subdomain
  @subdomain
end

#tagsObject

Tags is a map of key, value pairs.



639
640
641
# File 'lib/models/porcelain.rb', line 639

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



679
680
681
682
683
684
685
# File 'lib/models/porcelain.rb', line 679

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