Class: AWSCDK::Wisdom::CfnAssistantAssociationProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
wisdom/cfn_assistant_association_props.rb

Overview

Properties for defining a CfnAssistantAssociation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(assistant_id:, association:, association_type:, tags: nil) ⇒ CfnAssistantAssociationProps

Returns a new instance of CfnAssistantAssociationProps.

Parameters:



13
14
15
16
17
18
19
20
21
22
# File 'wisdom/cfn_assistant_association_props.rb', line 13

def initialize(assistant_id:, association:, association_type:, tags: nil)
  @assistant_id = assistant_id
  Jsii::Type.check_type(@assistant_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "assistantId")
  @association = association.is_a?(Hash) ? ::AWSCDK::Wisdom::CfnAssistantAssociation::AssociationDataProperty.new(**association.transform_keys(&:to_sym)) : association
  Jsii::Type.check_type(@association, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c193aXNkb20uQ2ZuQXNzaXN0YW50QXNzb2NpYXRpb24uQXNzb2NpYXRpb25EYXRhUHJvcGVydHkifV19fQ==")), "association")
  @association_type = association_type
  Jsii::Type.check_type(@association_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "associationType")
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#assistant_idString (readonly)

The identifier of the Wisdom assistant.



28
29
30
# File 'wisdom/cfn_assistant_association_props.rb', line 28

def assistant_id
  @assistant_id
end

#association_typeString (readonly)

The type of association.



38
39
40
# File 'wisdom/cfn_assistant_association_props.rb', line 38

def association_type
  @association_type
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

The tags used to organize, track, or control access for this resource.



43
44
45
# File 'wisdom/cfn_assistant_association_props.rb', line 43

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



45
46
47
48
49
50
51
52
# File 'wisdom/cfn_assistant_association_props.rb', line 45

def self.jsii_properties
  {
    :assistant_id => "assistantId",
    :association => "association",
    :association_type => "associationType",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



54
55
56
57
58
59
60
61
62
63
# File 'wisdom/cfn_assistant_association_props.rb', line 54

def to_jsii
  result = {}
  result.merge!({
    "assistantId" => @assistant_id,
    "association" => @association,
    "associationType" => @association_type,
    "tags" => @tags,
  })
  result.compact
end