Class: AWSCDK::SecretsManager::SecretTargetAttachmentProps
- Inherits:
-
AttachedSecretOptions
- Object
- AttachedSecretOptions
- AWSCDK::SecretsManager::SecretTargetAttachmentProps
- Defined in:
- secrets_manager/secret_target_attachment_props.rb
Overview
Construction properties for an AttachedSecret.
Instance Attribute Summary collapse
-
#secret ⇒ AWSCDK::SecretsManager::ISecret
readonly
The secret to attach to the target.
-
#target ⇒ AWSCDK::SecretsManager::ISecretAttachmentTarget
readonly
The target to attach the secret to.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(target:, secret:) ⇒ SecretTargetAttachmentProps
constructor
A new instance of SecretTargetAttachmentProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(target:, secret:) ⇒ SecretTargetAttachmentProps
Returns a new instance of SecretTargetAttachmentProps.
9 10 11 12 13 14 |
# File 'secrets_manager/secret_target_attachment_props.rb', line 9 def initialize(target:, secret:) @target = target Jsii::Type.check_type(@target, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjcmV0c21hbmFnZXIuSVNlY3JldEF0dGFjaG1lbnRUYXJnZXQifQ==")), "target") @secret = secret Jsii::Type.check_type(@secret, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjcmV0c21hbmFnZXIuSVNlY3JldCJ9")), "secret") end |
Instance Attribute Details
#secret ⇒ AWSCDK::SecretsManager::ISecret (readonly)
The secret to attach to the target.
23 24 25 |
# File 'secrets_manager/secret_target_attachment_props.rb', line 23 def secret @secret end |
#target ⇒ AWSCDK::SecretsManager::ISecretAttachmentTarget (readonly)
The target to attach the secret to.
19 20 21 |
# File 'secrets_manager/secret_target_attachment_props.rb', line 19 def target @target end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'secrets_manager/secret_target_attachment_props.rb', line 25 def self.jsii_properties { :target => "target", :secret => "secret", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 40 |
# File 'secrets_manager/secret_target_attachment_props.rb', line 32 def to_jsii result = {} result.merge!(super) result.merge!({ "target" => @target, "secret" => @secret, }) result.compact end |