Class: AWSCDK::B2BI::CfnProfileProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::B2BI::CfnProfileProps
- Defined in:
- b2_bi/cfn_profile_props.rb
Overview
Properties for defining a CfnProfile.
Instance Attribute Summary collapse
-
#business_name ⇒ String
readonly
Returns the name for the business associated with this profile.
- #email ⇒ String? readonly
-
#logging ⇒ String
readonly
Specifies whether or not logging is enabled for this profile.
-
#name ⇒ String
readonly
Returns the display name for profile.
-
#phone ⇒ String
readonly
Specifies the phone number associated with the profile.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
A key-value pair for a specific profile.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(business_name:, logging:, name:, phone:, email: nil, tags: nil) ⇒ CfnProfileProps
constructor
A new instance of CfnProfileProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(business_name:, logging:, name:, phone:, email: nil, tags: nil) ⇒ CfnProfileProps
Returns a new instance of CfnProfileProps.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'b2_bi/cfn_profile_props.rb', line 15 def initialize(business_name:, logging:, name:, phone:, email: nil, tags: nil) @business_name = business_name Jsii::Type.check_type(@business_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "businessName") @logging = logging Jsii::Type.check_type(@logging, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logging") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @phone = phone Jsii::Type.check_type(@phone, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "phone") @email = email Jsii::Type.check_type(@email, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "email") unless @email.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
#business_name ⇒ String (readonly)
Returns the name for the business associated with this profile.
34 35 36 |
# File 'b2_bi/cfn_profile_props.rb', line 34 def business_name @business_name end |
#email ⇒ String? (readonly)
52 53 54 |
# File 'b2_bi/cfn_profile_props.rb', line 52 def email @email end |
#logging ⇒ String (readonly)
Specifies whether or not logging is enabled for this profile.
39 40 41 |
# File 'b2_bi/cfn_profile_props.rb', line 39 def logging @logging end |
#name ⇒ String (readonly)
Returns the display name for profile.
44 45 46 |
# File 'b2_bi/cfn_profile_props.rb', line 44 def name @name end |
#phone ⇒ String (readonly)
Specifies the phone number associated with the profile.
49 50 51 |
# File 'b2_bi/cfn_profile_props.rb', line 49 def phone @phone end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
A key-value pair for a specific profile.
Tags are metadata that you can use to search for and group capabilities for various purposes.
59 60 61 |
# File 'b2_bi/cfn_profile_props.rb', line 59 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
61 62 63 64 65 66 67 68 69 70 |
# File 'b2_bi/cfn_profile_props.rb', line 61 def self.jsii_properties { :business_name => "businessName", :logging => "logging", :name => "name", :phone => "phone", :email => "email", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'b2_bi/cfn_profile_props.rb', line 72 def to_jsii result = {} result.merge!({ "businessName" => @business_name, "logging" => @logging, "name" => @name, "phone" => @phone, "email" => @email, "tags" => @tags, }) result.compact end |