Class: AWSCDK::CodeBuild::CfnProject::ScopeConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
code_build/cfn_project.rb

Overview

Contains configuration information about the scope for a webhook.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, domain: nil, scope: nil) ⇒ ScopeConfigurationProperty

Returns a new instance of ScopeConfigurationProperty.

Parameters:

  • name (String)

    The name of either the enterprise or organization that will send webhook events to CodeBuild , depending on if the webhook is a global or organization webhook respectively.

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

    The domain of the GitHub Enterprise organization or the GitLab Self Managed group.

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

    The type of scope for a GitHub or GitLab webhook.



2127
2128
2129
2130
2131
2132
2133
2134
# File 'code_build/cfn_project.rb', line 2127

def initialize(name:, domain: nil, scope: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @domain = domain
  Jsii::Type.check_type(@domain, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domain") unless @domain.nil?
  @scope = scope
  Jsii::Type.check_type(@scope, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "scope") unless @scope.nil?
end

Instance Attribute Details

#domainString? (readonly)

The domain of the GitHub Enterprise organization or the GitLab Self Managed group.

Note that this parameter is only required if your project's source type is GITHUB_ENTERPRISE or GITLAB_SELF_MANAGED.



2147
2148
2149
# File 'code_build/cfn_project.rb', line 2147

def domain
  @domain
end

#nameString (readonly)

The name of either the enterprise or organization that will send webhook events to CodeBuild , depending on if the webhook is a global or organization webhook respectively.



2140
2141
2142
# File 'code_build/cfn_project.rb', line 2140

def name
  @name
end

#scopeString? (readonly)

The type of scope for a GitHub or GitLab webhook.

The scope default is GITHUB_ORGANIZATION.



2154
2155
2156
# File 'code_build/cfn_project.rb', line 2154

def scope
  @scope
end

Class Method Details

.jsii_propertiesObject



2156
2157
2158
2159
2160
2161
2162
# File 'code_build/cfn_project.rb', line 2156

def self.jsii_properties
  {
    :name => "name",
    :domain => "domain",
    :scope => "scope",
  }
end

Instance Method Details

#to_jsiiObject



2164
2165
2166
2167
2168
2169
2170
2171
2172
# File 'code_build/cfn_project.rb', line 2164

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "domain" => @domain,
    "scope" => @scope,
  })
  result.compact
end