Class: AWSCDK::SecretsManager::SecretTargetAttachmentProps

Inherits:
AttachedSecretOptions
  • Object
show all
Defined in:
secrets_manager/secret_target_attachment_props.rb

Overview

Construction properties for an AttachedSecret.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(target:, secret:) ⇒ SecretTargetAttachmentProps

Returns a new instance of SecretTargetAttachmentProps.

Parameters:



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

#secretAWSCDK::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

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



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_jsiiObject



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