1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. codebuild
  6. getSourceCredential

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.79.0
published on Monday, Sep 14, 2026 by Pulumi
aws-native logo aws-native logo

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.79.0
published on Monday, Sep 14, 2026 by Pulumi

    Resource Type definition for AWS::CodeBuild::SourceCredential

    Using getSourceCredential

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getSourceCredential(args: GetSourceCredentialArgs, opts?: InvokeOptions): Promise<GetSourceCredentialResult>
    function getSourceCredentialOutput(args: GetSourceCredentialOutputArgs, opts?: InvokeOutputOptions): Output<GetSourceCredentialResult>
    def get_source_credential(arn: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetSourceCredentialResult
    def get_source_credential_output(arn: pulumi.Input[Optional[str]] = None,
                              opts: Optional[InvokeOutputOptions] = None) -> Output[GetSourceCredentialResult]
    func LookupSourceCredential(ctx *Context, args *LookupSourceCredentialArgs, opts ...InvokeOption) (*LookupSourceCredentialResult, error)
    func LookupSourceCredentialOutput(ctx *Context, args *LookupSourceCredentialOutputArgs, opts ...InvokeOption) LookupSourceCredentialResultOutput

    > Note: This function is named LookupSourceCredential in the Go SDK.

    public static class GetSourceCredential 
    {
        public static Task<GetSourceCredentialResult> InvokeAsync(GetSourceCredentialArgs args, InvokeOptions? opts = null)
        public static Output<GetSourceCredentialResult> Invoke(GetSourceCredentialInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetSourceCredentialResult> Invoke(GetSourceCredentialInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetSourceCredentialResult> getSourceCredential(GetSourceCredentialArgs args, InvokeOptions options)
    public static Output<GetSourceCredentialResult> getSourceCredential(GetSourceCredentialArgs args, InvokeOptions options)
    public static Output<GetSourceCredentialResult> getSourceCredential(GetSourceCredentialArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:codebuild:getSourceCredential
      arguments:
        # arguments dictionary
    data "aws-native_codebuild_get_source_credential" "name" {
        # arguments
    }

    The following arguments are supported:

    Arn string
    The ARN of the SourceCredential resource.
    Arn string
    The ARN of the SourceCredential resource.
    arn string
    The ARN of the SourceCredential resource.
    arn String
    The ARN of the SourceCredential resource.
    arn string
    The ARN of the SourceCredential resource.
    arn str
    The ARN of the SourceCredential resource.
    arn String
    The ARN of the SourceCredential resource.

    getSourceCredential Result

    The following output properties are available:

    Arn string
    The ARN of the SourceCredential resource.
    AuthType string
    The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, CODECONNECTIONS, or SECRETS_MANAGER.
    Arn string
    The ARN of the SourceCredential resource.
    AuthType string
    The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, CODECONNECTIONS, or SECRETS_MANAGER.
    arn string
    The ARN of the SourceCredential resource.
    auth_type string
    The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, CODECONNECTIONS, or SECRETS_MANAGER.
    arn String
    The ARN of the SourceCredential resource.
    authType String
    The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, CODECONNECTIONS, or SECRETS_MANAGER.
    arn string
    The ARN of the SourceCredential resource.
    authType string
    The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, CODECONNECTIONS, or SECRETS_MANAGER.
    arn str
    The ARN of the SourceCredential resource.
    auth_type str
    The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, CODECONNECTIONS, or SECRETS_MANAGER.
    arn String
    The ARN of the SourceCredential resource.
    authType String
    The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, CODECONNECTIONS, or SECRETS_MANAGER.

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.79.0
    published on Monday, Sep 14, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial