Class: AWSCDK::FraudDetector::CfnEntityTypeProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::FraudDetector::CfnEntityTypeProps
- Defined in:
- fraud_detector/cfn_entity_type_props.rb
Overview
Properties for defining a CfnEntityType.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
The entity type description.
-
#name ⇒ String
readonly
The entity type name.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
A key and value pair.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, description: nil, tags: nil) ⇒ CfnEntityTypeProps
constructor
A new instance of CfnEntityTypeProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, description: nil, tags: nil) ⇒ CfnEntityTypeProps
Returns a new instance of CfnEntityTypeProps.
12 13 14 15 16 17 18 19 |
# File 'fraud_detector/cfn_entity_type_props.rb', line 12 def initialize(name:, description: nil, tags: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @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
#description ⇒ String? (readonly)
The entity type description.
32 33 34 |
# File 'fraud_detector/cfn_entity_type_props.rb', line 32 def description @description end |
#name ⇒ String (readonly)
The entity type name.
Pattern: ^[0-9a-z_-]+$
27 28 29 |
# File 'fraud_detector/cfn_entity_type_props.rb', line 27 def name @name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
A key and value pair.
37 38 39 |
# File 'fraud_detector/cfn_entity_type_props.rb', line 37 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
39 40 41 42 43 44 45 |
# File 'fraud_detector/cfn_entity_type_props.rb', line 39 def self.jsii_properties { :name => "name", :description => "description", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
47 48 49 50 51 52 53 54 55 |
# File 'fraud_detector/cfn_entity_type_props.rb', line 47 def to_jsii result = {} result.merge!({ "name" => @name, "description" => @description, "tags" => @tags, }) result.compact end |