Class: AWSCDK::SecretsManager::AttachedSecretOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SecretsManager::AttachedSecretOptions
- Defined in:
- secrets_manager/attached_secret_options.rb
Overview
Options to add a secret attachment to a secret.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#target ⇒ AWSCDK::SecretsManager::ISecretAttachmentTarget
readonly
The target to attach the secret to.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(target:) ⇒ AttachedSecretOptions
constructor
A new instance of AttachedSecretOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(target:) ⇒ AttachedSecretOptions
Returns a new instance of AttachedSecretOptions.
8 9 10 11 |
# File 'secrets_manager/attached_secret_options.rb', line 8 def initialize(target:) @target = target Jsii::Type.check_type(@target, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjcmV0c21hbmFnZXIuSVNlY3JldEF0dGFjaG1lbnRUYXJnZXQifQ==")), "target") end |
Instance Attribute Details
#target ⇒ AWSCDK::SecretsManager::ISecretAttachmentTarget (readonly)
The target to attach the secret to.
16 17 18 |
# File 'secrets_manager/attached_secret_options.rb', line 16 def target @target end |
Class Method Details
.jsii_properties ⇒ Object
18 19 20 21 22 |
# File 'secrets_manager/attached_secret_options.rb', line 18 def self.jsii_properties { :target => "target", } end |
Instance Method Details
#to_jsii ⇒ Object
24 25 26 27 28 29 30 |
# File 'secrets_manager/attached_secret_options.rb', line 24 def to_jsii result = {} result.merge!({ "target" => @target, }) result.compact end |