Class: AWSCDK::SecretsManager::SecretAttachmentTargetProps

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

Overview

Attachment target specifications.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(target_id:, target_type:) ⇒ SecretAttachmentTargetProps

Returns a new instance of SecretAttachmentTargetProps.

Parameters:



9
10
11
12
13
14
# File 'secrets_manager/secret_attachment_target_props.rb', line 9

def initialize(target_id:, target_type:)
  @target_id = target_id
  Jsii::Type.check_type(@target_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "targetId")
  @target_type = target_type
  Jsii::Type.check_type(@target_type, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjcmV0c21hbmFnZXIuQXR0YWNobWVudFRhcmdldFR5cGUifQ==")), "targetType")
end

Instance Attribute Details

#target_idString (readonly)

The id of the target to attach the secret to.

Returns:

  • (String)


19
20
21
# File 'secrets_manager/secret_attachment_target_props.rb', line 19

def target_id
  @target_id
end

#target_typeAWSCDK::SecretsManager::AttachmentTargetType (readonly)

The type of the target to attach the secret to.



23
24
25
# File 'secrets_manager/secret_attachment_target_props.rb', line 23

def target_type
  @target_type
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'secrets_manager/secret_attachment_target_props.rb', line 25

def self.jsii_properties
  {
    :target_id => "targetId",
    :target_type => "targetType",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'secrets_manager/secret_attachment_target_props.rb', line 32

def to_jsii
  result = {}
  result.merge!({
    "targetId" => @target_id,
    "targetType" => @target_type,
  })
  result.compact
end