Class: AWSCDK::CodeBuild::CfnProject::SourceAuthProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CodeBuild::CfnProject::SourceAuthProperty
- Defined in:
- code_build/cfn_project.rb
Overview
SourceAuth is a property of the AWS CodeBuild Project Source property type that specifies authorization settings for AWS CodeBuild to access the source code to be built.
Instance Attribute Summary collapse
-
#resource ⇒ String?
readonly
The resource value that applies to the specified authorization type.
-
#type ⇒ String
readonly
The authorization type to use.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, resource: nil) ⇒ SourceAuthProperty
constructor
A new instance of SourceAuthProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:, resource: nil) ⇒ SourceAuthProperty
Returns a new instance of SourceAuthProperty.
2183 2184 2185 2186 2187 2188 |
# File 'code_build/cfn_project.rb', line 2183 def initialize(type:, resource: nil) @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") @resource = resource Jsii::Type.check_type(@resource, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resource") unless @resource.nil? end |
Instance Attribute Details
#resource ⇒ String? (readonly)
The resource value that applies to the specified authorization type.
2201 2202 2203 |
# File 'code_build/cfn_project.rb', line 2201 def resource @resource end |
#type ⇒ String (readonly)
The authorization type to use.
Valid options are OAUTH, CODECONNECTIONS, or SECRETS_MANAGER.
2196 2197 2198 |
# File 'code_build/cfn_project.rb', line 2196 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
2203 2204 2205 2206 2207 2208 |
# File 'code_build/cfn_project.rb', line 2203 def self.jsii_properties { :type => "type", :resource => "resource", } end |
Instance Method Details
#to_jsii ⇒ Object
2210 2211 2212 2213 2214 2215 2216 2217 |
# File 'code_build/cfn_project.rb', line 2210 def to_jsii result = {} result.merge!({ "type" => @type, "resource" => @resource, }) result.compact end |