Class: Aws::CredentialBrokerControl::Types::SecretReference

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

Overview

A reference to a credential held in a Secrets Manager secret that you own and manage. Use this instead of supplying the credential directly, so the value stays in your own secret.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#json_key ⇒ String

Key to read from the secret's JSON payload. The secret value must be a JSON object, and this key must be present in it; the value stored under the key is used as the credential.

Returns:

  • (String)


2281
2282
2283
2284
2285
2286
# File 'gems/aws-sdk-credentialbrokercontrol/lib/aws-sdk-credentialbrokercontrol/types.rb', line 2281

class SecretReference < Struct.new(
  :secret_id,
  :json_key)
  SENSITIVE = []
  include Aws::Structure
end

#secret_id ⇒ String

Name or Amazon Resource Name of a secret in AWS Secrets Manager that you own. The secret must be in the same Region as the resource that references it, and its resource policy must allow this service to read it.

Returns:

  • (String)


2281
2282
2283
2284
2285
2286
# File 'gems/aws-sdk-credentialbrokercontrol/lib/aws-sdk-credentialbrokercontrol/types.rb', line 2281

class SecretReference < Struct.new(
  :secret_id,
  :json_key)
  SENSITIVE = []
  include Aws::Structure
end