Module: AWSCDK::CodeBuild::ISource

Included in:
Source
Defined in:
code_build/i_source.rb

Overview

The abstract interface of a CodeBuild source.

Implemented by Source.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.jsii_overridable_methodsObject



33
34
35
36
37
38
39
40
# File 'code_build/i_source.rb', line 33

def self.jsii_overridable_methods
  {
    :badge_supported => { kind: :property, name: "badgeSupported", is_optional: false },
    :type => { kind: :property, name: "type", is_optional: false },
    :identifier => { kind: :property, name: "identifier", is_optional: true },
    :bind => { kind: :method, name: "bind", is_optional: false },
  }
end

Instance Method Details

#badge_supportedBoolean

Returns:

  • (Boolean)


10
11
12
# File 'code_build/i_source.rb', line 10

def badge_supported()
  jsii_get_property("badgeSupported")
end

#bind(scope, project) ⇒ AWSCDK::CodeBuild::SourceConfig

Parameters:

Returns:



27
28
29
30
31
# File 'code_build/i_source.rb', line 27

def bind(scope, project)
  Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope")
  Jsii::Type.check_type(project, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29kZWJ1aWxkLklQcm9qZWN0In0=")), "project")
  jsii_call_method("bind", [scope, project])
end

#identifierString?

Returns:

  • (String, nil)


20
21
22
# File 'code_build/i_source.rb', line 20

def identifier()
  jsii_get_property("identifier")
end

#typeString

Returns:

  • (String)


15
16
17
# File 'code_build/i_source.rb', line 15

def type()
  jsii_get_property("type")
end