Class: AWSCDK::CodeBuild::Source
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::CodeBuild::Source
- Includes:
- ISource
- Defined in:
- code_build/source.rb
Overview
Source provider definition for a CodeBuild Project.
Class Method Summary collapse
- .bit_bucket(props) ⇒ AWSCDK::CodeBuild::ISource
- .code_commit(props) ⇒ AWSCDK::CodeBuild::ISource
- .git_hub(props) ⇒ AWSCDK::CodeBuild::ISource
- .git_hub_enterprise(props) ⇒ AWSCDK::CodeBuild::ISource
- .jsii_overridable_methods ⇒ Object
- .s3(props) ⇒ AWSCDK::CodeBuild::ISource
Instance Method Summary collapse
- #badge_supported ⇒ Boolean
-
#bind(_scope, _project) ⇒ AWSCDK::CodeBuild::SourceConfig
Called by the project when the source is added so that the source can perform binding operations on the source.
- #identifier ⇒ String?
-
#initialize(props) ⇒ Source
constructor
A new instance of Source.
- #type ⇒ String
Constructor Details
#initialize(props) ⇒ Source
Returns a new instance of Source.
10 11 12 13 14 |
# File 'code_build/source.rb', line 10 def initialize(props) props = props.is_a?(Hash) ? ::AWSCDK::CodeBuild::SourceProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29kZWJ1aWxkLlNvdXJjZVByb3BzIn0=")), "props") Jsii::Object.instance_method(:initialize).bind(self).call(props) end |
Class Method Details
.bit_bucket(props) ⇒ AWSCDK::CodeBuild::ISource
27 28 29 30 31 |
# File 'code_build/source.rb', line 27 def self.bit_bucket(props) props = props.is_a?(Hash) ? ::AWSCDK::CodeBuild::BitBucketSourceProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29kZWJ1aWxkLkJpdEJ1Y2tldFNvdXJjZVByb3BzIn0=")), "props") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_codebuild.Source", "bitBucket", [props]) end |
.code_commit(props) ⇒ AWSCDK::CodeBuild::ISource
35 36 37 38 39 |
# File 'code_build/source.rb', line 35 def self.code_commit(props) props = props.is_a?(Hash) ? ::AWSCDK::CodeBuild::CodeCommitSourceProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29kZWJ1aWxkLkNvZGVDb21taXRTb3VyY2VQcm9wcyJ9")), "props") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_codebuild.Source", "codeCommit", [props]) end |
.git_hub(props) ⇒ AWSCDK::CodeBuild::ISource
43 44 45 46 47 |
# File 'code_build/source.rb', line 43 def self.git_hub(props) props = props.is_a?(Hash) ? ::AWSCDK::CodeBuild::GitHubSourceProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29kZWJ1aWxkLkdpdEh1YlNvdXJjZVByb3BzIn0=")), "props") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_codebuild.Source", "gitHub", [props]) end |
.git_hub_enterprise(props) ⇒ AWSCDK::CodeBuild::ISource
51 52 53 54 55 |
# File 'code_build/source.rb', line 51 def self.git_hub_enterprise(props) props = props.is_a?(Hash) ? ::AWSCDK::CodeBuild::GitHubEnterpriseSourceProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29kZWJ1aWxkLkdpdEh1YkVudGVycHJpc2VTb3VyY2VQcm9wcyJ9")), "props") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_codebuild.Source", "gitHubEnterprise", [props]) end |
.jsii_overridable_methods ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'code_build/source.rb', line 16 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 |
.s3(props) ⇒ AWSCDK::CodeBuild::ISource
59 60 61 62 63 |
# File 'code_build/source.rb', line 59 def self.s3(props) props = props.is_a?(Hash) ? ::AWSCDK::CodeBuild::S3SourceProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29kZWJ1aWxkLlMzU291cmNlUHJvcHMifQ==")), "props") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_codebuild.Source", "s3", [props]) end |
Instance Method Details
#badge_supported ⇒ Boolean
66 67 68 |
# File 'code_build/source.rb', line 66 def badge_supported() jsii_get_property("badgeSupported") end |
#bind(_scope, _project) ⇒ AWSCDK::CodeBuild::SourceConfig
Called by the project when the source is added so that the source can perform binding operations on the source.
For example, it can grant permissions to the code build project to read from the S3 bucket.
88 89 90 91 92 |
# File 'code_build/source.rb', line 88 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 |
#identifier ⇒ String?
76 77 78 |
# File 'code_build/source.rb', line 76 def identifier() jsii_get_property("identifier") end |
#type ⇒ String
71 72 73 |
# File 'code_build/source.rb', line 71 def type() jsii_get_property("type") end |