Class: AWSCDK::Wisdom::CfnAssistantAssociationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Wisdom::CfnAssistantAssociationProps
- Defined in:
- wisdom/cfn_assistant_association_props.rb
Overview
Properties for defining a CfnAssistantAssociation.
Instance Attribute Summary collapse
-
#assistant_id ⇒ String
readonly
The identifier of the Wisdom assistant.
-
#association ⇒ AWSCDK::IResolvable, AWSCDK::Wisdom::CfnAssistantAssociation::AssociationDataProperty
readonly
The identifier of the associated resource.
-
#association_type ⇒ String
readonly
The type of association.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags used to organize, track, or control access for this resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(assistant_id:, association:, association_type:, tags: nil) ⇒ CfnAssistantAssociationProps
constructor
A new instance of CfnAssistantAssociationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(assistant_id:, association:, association_type:, tags: nil) ⇒ CfnAssistantAssociationProps
Returns a new instance of CfnAssistantAssociationProps.
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 = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#assistant_id ⇒ String (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 ⇒ AWSCDK::IResolvable, AWSCDK::Wisdom::CfnAssistantAssociation::AssociationDataProperty (readonly)
The identifier of the associated resource.
33 34 35 |
# File 'wisdom/cfn_assistant_association_props.rb', line 33 def association @association end |
#association_type ⇒ String (readonly)
The type of association.
38 39 40 |
# File 'wisdom/cfn_assistant_association_props.rb', line 38 def association_type @association_type end |
#tags ⇒ Array<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 end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |