Class: AWSCDK::CodeBuild::CfnProject::ScopeConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CodeBuild::CfnProject::ScopeConfigurationProperty
- Defined in:
- code_build/cfn_project.rb
Overview
Contains configuration information about the scope for a webhook.
Instance Attribute Summary collapse
-
#domain ⇒ String?
readonly
The domain of the GitHub Enterprise organization or the GitLab Self Managed group.
-
#name ⇒ String
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.
-
#scope ⇒ String?
readonly
The type of scope for a GitHub or GitLab webhook.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, domain: nil, scope: nil) ⇒ ScopeConfigurationProperty
constructor
A new instance of ScopeConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, domain: nil, scope: nil) ⇒ ScopeConfigurationProperty
Returns a new instance of ScopeConfigurationProperty.
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
#domain ⇒ String? (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 |
#name ⇒ String (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 |
#scope ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |