Module: AWSCDK::CodeBuild::IArtifacts

Included in:
Artifacts
Defined in:
code_build/i_artifacts.rb

Overview

The abstract interface of a CodeBuild build output.

Implemented by Artifacts.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.jsii_overridable_methodsObject



36
37
38
39
40
41
42
# File 'code_build/i_artifacts.rb', line 36

def self.jsii_overridable_methods
  {
    :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

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

Callback when an Artifacts class is used in a CodeBuild Project.

Parameters:

  • scope (Constructs::Construct)

    a root Construct that allows creating new Constructs.

  • project (AWSCDK::CodeBuild::IProject)

    the Project this Artifacts is used in.

Returns:



30
31
32
33
34
# File 'code_build/i_artifacts.rb', line 30

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?

The artifact identifier.

This property is required on secondary artifacts.

Returns:

  • (String, nil)


21
22
23
# File 'code_build/i_artifacts.rb', line 21

def identifier()
  jsii_get_property("identifier")
end

#typeString

The CodeBuild type of this artifact.

Returns:

  • (String)


12
13
14
# File 'code_build/i_artifacts.rb', line 12

def type()
  jsii_get_property("type")
end