Interface CfnProject.SourceAuthProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnProject.SourceAuthProperty.Jsii$Proxy
Enclosing class:
CfnProject

@Stability(Stable) public static interface CfnProject.SourceAuthProperty extends software.amazon.jsii.JsiiSerializable
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.

SourceAuth is for use by the CodeBuild console only. Do not get or set it directly.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.codebuild.*;
 SourceAuthProperty sourceAuthProperty = SourceAuthProperty.builder()
         .type("type")
         // the properties below are optional
         .resource("resource")
         .build();
 
  • Method Details

    • getType

      @Stability(Stable) @NotNull String getType()
      The authorization type to use. The only valid value is OAUTH , which represents the OAuth authorization type.

      This data type is used by the AWS CodeBuild console only.

    • getResource

      @Stability(Stable) @Nullable default String getResource()
      The resource value that applies to the specified authorization type.

      This data type is used by the AWS CodeBuild console only.

    • builder

      @Stability(Stable) static CfnProject.SourceAuthProperty.Builder builder()
      Returns:
      a CfnProject.SourceAuthProperty.Builder of CfnProject.SourceAuthProperty