Class: AWSCDK::OpsWorks::CfnApp::DataSourceProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ops_works/cfn_app.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(arn: nil, database_name: nil, type: nil) ⇒ DataSourceProperty

Returns a new instance of DataSourceProperty.

Parameters:

  • arn (String, nil) (defaults to: nil)

    The data source's ARN.

  • database_name (String, nil) (defaults to: nil)

    The database name.

  • type (String, nil) (defaults to: nil)

    The data source's type, AutoSelectOpsworksMysqlInstance , OpsworksMysqlInstance , RdsDbInstance , or None .



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

#arnString? (readonly)

The data source's ARN.



656
657
658
# File 'ops_works/cfn_app.rb', line 656

def arn
  @arn
end

#database_nameString? (readonly)

The database name.



661
662
663
# File 'ops_works/cfn_app.rb', line 661

def database_name
  @database_name
end

#typeString? (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_propertiesObject



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_jsiiObject



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