Class: AWSCDK::OpsWorks::CfnApp::DataSourceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::OpsWorks::CfnApp::DataSourceProperty
- Defined in:
- ops_works/cfn_app.rb
Overview
Instance Attribute Summary collapse
-
#arn ⇒ String?
readonly
The data source's ARN.
-
#database_name ⇒ String?
readonly
The database name.
-
#type ⇒ String?
readonly
The data source's type,
AutoSelectOpsworksMysqlInstance,OpsworksMysqlInstance,RdsDbInstance, orNone.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(arn: nil, database_name: nil, type: nil) ⇒ DataSourceProperty
constructor
A new instance of DataSourceProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(arn: nil, database_name: nil, type: nil) ⇒ DataSourceProperty
Returns a new instance of DataSourceProperty.
643 644 645 646 647 648 649 650 |
# File 'ops_works/cfn_app.rb', line 643 def initialize(arn: nil, database_name: nil, type: nil) @arn = arn Jsii::Type.check_type(@arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "arn") unless @arn.nil? @database_name = database_name Jsii::Type.check_type(@database_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "databaseName") unless @database_name.nil? @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil? end |
Instance Attribute Details
#arn ⇒ String? (readonly)
The data source's ARN.
656 657 658 |
# File 'ops_works/cfn_app.rb', line 656 def arn @arn end |
#database_name ⇒ String? (readonly)
The database name.
661 662 663 |
# File 'ops_works/cfn_app.rb', line 661 def database_name @database_name end |
#type ⇒ String? (readonly)
The data source's type, AutoSelectOpsworksMysqlInstance , OpsworksMysqlInstance , RdsDbInstance , or None .
666 667 668 |
# File 'ops_works/cfn_app.rb', line 666 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
668 669 670 671 672 673 674 |
# File 'ops_works/cfn_app.rb', line 668 def self.jsii_properties { :arn => "arn", :database_name => "databaseName", :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
676 677 678 679 680 681 682 683 684 |
# File 'ops_works/cfn_app.rb', line 676 def to_jsii result = {} result.merge!({ "arn" => @arn, "databaseName" => @database_name, "type" => @type, }) result.compact end |