Class: AWSCDK::SecretsManager::SecretAttachmentTargetProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SecretsManager::SecretAttachmentTargetProps
- Defined in:
- secrets_manager/secret_attachment_target_props.rb
Overview
Attachment target specifications.
Instance Attribute Summary collapse
-
#target_id ⇒ String
readonly
The id of the target to attach the secret to.
-
#target_type ⇒ AWSCDK::SecretsManager::AttachmentTargetType
readonly
The type of the target to attach the secret to.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(target_id:, target_type:) ⇒ SecretAttachmentTargetProps
constructor
A new instance of SecretAttachmentTargetProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(target_id:, target_type:) ⇒ SecretAttachmentTargetProps
Returns a new instance of SecretAttachmentTargetProps.
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_id ⇒ String (readonly)
The id of the target to attach the secret to.
19 20 21 |
# File 'secrets_manager/secret_attachment_target_props.rb', line 19 def target_id @target_id end |
#target_type ⇒ AWSCDK::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_properties ⇒ Object
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_jsii ⇒ Object
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 |