Class: AWSCDK::CodeBuild::CfnProject::BuildStatusConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CodeBuild::CfnProject::BuildStatusConfigProperty
- Defined in:
- code_build/cfn_project.rb
Overview
Contains information that defines how the AWS CodeBuild build project reports the build status to the source provider.
Instance Attribute Summary collapse
-
#context ⇒ String?
readonly
Specifies the context of the build status CodeBuild sends to the source provider.
-
#target_url ⇒ String?
readonly
Specifies the target url of the build status CodeBuild sends to the source provider.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(context: nil, target_url: nil) ⇒ BuildStatusConfigProperty
constructor
A new instance of BuildStatusConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(context: nil, target_url: nil) ⇒ BuildStatusConfigProperty
Returns a new instance of BuildStatusConfigProperty.
1082 1083 1084 1085 1086 1087 |
# File 'code_build/cfn_project.rb', line 1082 def initialize(context: nil, target_url: nil) @context = context Jsii::Type.check_type(@context, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "context") unless @context.nil? @target_url = target_url Jsii::Type.check_type(@target_url, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "targetUrl") unless @target_url.nil? end |
Instance Attribute Details
#context ⇒ String? (readonly)
Specifies the context of the build status CodeBuild sends to the source provider.
The usage of this parameter depends on the source provider.
- Bitbucket - This parameter is used for the
nameparameter in the Bitbucket commit status. For more information, see build in the Bitbucket API documentation. - GitHub/GitHub Enterprise Server - This parameter is used for the
contextparameter in the GitHub commit status. For more information, see Create a commit status in the GitHub developer guide.
1098 1099 1100 |
# File 'code_build/cfn_project.rb', line 1098 def context @context end |
#target_url ⇒ String? (readonly)
Specifies the target url of the build status CodeBuild sends to the source provider.
The usage of this parameter depends on the source provider.
- Bitbucket - This parameter is used for the
urlparameter in the Bitbucket commit status. For more information, see build in the Bitbucket API documentation. - GitHub/GitHub Enterprise Server - This parameter is used for the
target_urlparameter in the GitHub commit status. For more information, see Create a commit status in the GitHub developer guide.
1108 1109 1110 |
# File 'code_build/cfn_project.rb', line 1108 def target_url @target_url end |
Class Method Details
.jsii_properties ⇒ Object
1110 1111 1112 1113 1114 1115 |
# File 'code_build/cfn_project.rb', line 1110 def self.jsii_properties { :context => "context", :target_url => "targetUrl", } end |
Instance Method Details
#to_jsii ⇒ Object
1117 1118 1119 1120 1121 1122 1123 1124 |
# File 'code_build/cfn_project.rb', line 1117 def to_jsii result = {} result.merge!({ "context" => @context, "targetUrl" => @target_url, }) result.compact end |