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.



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
678
679
680
681
682
683
684
685
686
687
688
# File 'lib/models/porcelain.rb', line 652

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.



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

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.



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

def bind_interface
  @bind_interface
end

#egress_filterObject

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



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

def egress_filter
  @egress_filter
end

#healthyObject

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



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

def healthy
  @healthy
end

#idObject

Unique identifier of the Resource.



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

def id
  @id
end

#identity_alias_healthcheck_usernameObject

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



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

def identity_alias_healthcheck_username
  @identity_alias_healthcheck_username
end

#identity_set_idObject

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



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

def identity_set_id
  @identity_set_id
end

#nameObject

Unique human-readable name of the Resource.



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

def name
  @name
end

#port_overrideObject

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



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

def port_override
  @port_override
end

#regionObject

The AWS region to connect to.



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

def region
  @region
end

#role_arnObject

The role to assume after logging in.



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

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.



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

def role_external_id
  @role_external_id
end

#secret_access_keyObject

The Secret Access Key to authenticate with.



642
643
644
# File 'lib/models/porcelain.rb', line 642

def secret_access_key
  @secret_access_key
end

#secret_store_idObject

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



644
645
646
# File 'lib/models/porcelain.rb', line 644

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.



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

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)



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

def subdomain
  @subdomain
end

#tagsObject

Tags is a map of key, value pairs.



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

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



690
691
692
693
694
695
696
# File 'lib/models/porcelain.rb', line 690

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