Class: AWSCDK::CodeBuild::CfnProject::SourceAuthProperty

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, resource: nil) ⇒ SourceAuthProperty

Returns a new instance of SourceAuthProperty.

Parameters:

  • type (String)

    The authorization type to use.

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

    The resource value that applies to the specified authorization type.



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

#resourceString? (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

#typeString (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_propertiesObject



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_jsiiObject



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