SourceAuthProperty Struct
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.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codebuild as codebuild } from 'aws-cdk-lib';
const sourceAuthProperty: codebuild.CfnProject.SourceAuthProperty = {
type: 'type',
// the properties below are optional
resource: 'resource',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_codebuild as codebuild
source_auth_property = codebuild.CfnProject.SourceAuthProperty(
type="type",
# the properties below are optional
resource="resource"
)
java
// 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();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeBuild;
var sourceAuthProperty = new SourceAuthProperty {
Type = "type",
// the properties below are optional
Resource = "resource"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
sourceAuthProperty := &SourceAuthProperty{
Type: jsii.String("type"),
// the properties below are optional
Resource: jsii.String("resource"),
}
Properties
resourceoptionalstringresourceoptionalstrresourceoptionalStringResourceoptionalstringResourceoptional*string#The resource value that applies to the specified authorization type.
The authorization type to use.
Valid options are OAUTH, CODECONNECTIONS, or SECRETS_MANAGER.