Class: AWSCDK::SecretsManager::AttachedSecretOptions

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
secrets_manager/attached_secret_options.rb

Overview

Options to add a secret attachment to a secret.

Direct Known Subclasses

SecretTargetAttachmentProps

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(target:) ⇒ AttachedSecretOptions

Returns a new instance of AttachedSecretOptions.

Parameters:



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

#targetAWSCDK::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_propertiesObject



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_jsiiObject



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