You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::CodeBuild::Types::SourceAuth

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-codebuild/lib/aws-sdk-codebuild/types.rb

Overview

Note:

When making an API call, you may pass SourceAuth data as a hash:

{
  type: "OAUTH", # required, accepts OAUTH
  resource: "String",
}

Information about the authorization settings for AWS CodeBuild to access the source code to be built.

This information is for the AWS CodeBuild console's use only. Your code should not get or set this information directly (unless the build project's source type value is GITHUB).

Instance Attribute Summary collapse

Instance Attribute Details

#resourceString

The resource value that applies to the specified authorization type.

Returns:

  • (String)


1207
1208
1209
1210
1211
# File 'gems/aws-sdk-codebuild/lib/aws-sdk-codebuild/types.rb', line 1207

class SourceAuth < Struct.new(
  :type,
  :resource)
  include Aws::Structure
end

#typeString

The authorization type to use. The only valid value is OAUTH, which represents the OAuth authorization type.

Returns:

  • (String)


1207
1208
1209
1210
1211
# File 'gems/aws-sdk-codebuild/lib/aws-sdk-codebuild/types.rb', line 1207

class SourceAuth < Struct.new(
  :type,
  :resource)
  include Aws::Structure
end