Class: AWSCDK::CodeBuild::CfnProject::BuildStatusConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(context: nil, target_url: nil) ⇒ BuildStatusConfigProperty

Returns a new instance of BuildStatusConfigProperty.

Parameters:

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

    Specifies the context of the build status CodeBuild sends to the source provider.

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

    Specifies the target url of the build status CodeBuild sends to the source provider.



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

#contextString? (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 name parameter 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 context parameter 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_urlString? (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 url parameter 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_url parameter 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_propertiesObject



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_jsiiObject



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