Class: Aws::CredentialBrokerControl::Types::ApiKeySecretInput

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-credentialbrokercontrol/lib/aws-sdk-credentialbrokercontrol/types.rb

Overview

Note:

ApiKeySecretInput is a union - when making an API calls you must set exactly one of the members.

How the provider's API key is supplied. Set exactly one member: give the key value and let the service store it in a secret it owns, or point at an AWS Secrets Manager secret you already own. Either way, reads return only the ARN of the secret, never the key.

Defined Under Namespace

Classes: ApiKey, ApiKeySecretReference, Unknown

Constant Summary collapse

SENSITIVE =
[:api_key]

Instance Attribute Summary collapse

Instance Attribute Details

#api_key ⇒ String

The API key value. The service stores it in an AWS Secrets Manager secret that the service owns. Write-only: reads return only the ARN of the secret holding it.

Returns:

  • (String)


89
90
91
92
93
94
95
96
97
98
99
100
# File 'gems/aws-sdk-credentialbrokercontrol/lib/aws-sdk-credentialbrokercontrol/types.rb', line 89

class ApiKeySecretInput < Struct.new(
  :api_key,
  :api_key_secret_reference,
  :unknown)
  SENSITIVE = [:api_key]
  include Aws::Structure
  include Aws::Structure::Union

  class ApiKey < ApiKeySecretInput; end
  class ApiKeySecretReference < ApiKeySecretInput; end
  class Unknown < ApiKeySecretInput; end
end

#api_key_secret_reference ⇒ Types::SecretReference

An AWS Secrets Manager secret you own that holds the API key. The service reads the key from your secret rather than storing a copy of its own.



89
90
91
92
93
94
95
96
97
98
99
100
# File 'gems/aws-sdk-credentialbrokercontrol/lib/aws-sdk-credentialbrokercontrol/types.rb', line 89

class ApiKeySecretInput < Struct.new(
  :api_key,
  :api_key_secret_reference,
  :unknown)
  SENSITIVE = [:api_key]
  include Aws::Structure
  include Aws::Structure::Union

  class ApiKey < ApiKeySecretInput; end
  class ApiKeySecretReference < ApiKeySecretInput; end
  class Unknown < ApiKeySecretInput; end
end

#unknown ⇒ Object

Returns the value of attribute unknown

Returns:

  • (Object) —

    the current value of unknown



89
90
91
# File 'gems/aws-sdk-credentialbrokercontrol/lib/aws-sdk-credentialbrokercontrol/types.rb', line 89

def unknown
  @unknown
end