import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CodeBuildClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeBuildClient"; import type { ImportSourceCredentialsInput, ImportSourceCredentialsOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ImportSourceCredentialsCommand}. */ export interface ImportSourceCredentialsCommandInput extends ImportSourceCredentialsInput { } /** * @public * * The output of {@link ImportSourceCredentialsCommand}. */ export interface ImportSourceCredentialsCommandOutput extends ImportSourceCredentialsOutput, __MetadataBearer { } declare const ImportSourceCredentialsCommand_base: { new (input: ImportSourceCredentialsCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: ImportSourceCredentialsCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Imports the source repository credentials for an CodeBuild project that has its * source code stored in a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or Bitbucket repository.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CodeBuildClient, ImportSourceCredentialsCommand } from "@aws-sdk/client-codebuild"; // ES Modules import * // const { CodeBuildClient, ImportSourceCredentialsCommand } = require("@aws-sdk/client-codebuild"); // CommonJS import * // import type { CodeBuildClientConfig } from "@aws-sdk/client-codebuild"; * const config = {}; // type is CodeBuildClientConfig * const client = new CodeBuildClient(config); * const input = { // ImportSourceCredentialsInput * username: "STRING_VALUE", * token: "STRING_VALUE", // required * serverType: "GITHUB" || "BITBUCKET" || "GITHUB_ENTERPRISE" || "GITLAB" || "GITLAB_SELF_MANAGED", // required * authType: "OAUTH" || "BASIC_AUTH" || "PERSONAL_ACCESS_TOKEN" || "CODECONNECTIONS" || "SECRETS_MANAGER", // required * shouldOverwrite: true || false, * }; * const command = new ImportSourceCredentialsCommand(input); * const response = await client.send(command); * // { // ImportSourceCredentialsOutput * // arn: "STRING_VALUE", * // }; * * ``` * * @param ImportSourceCredentialsCommandInput - {@link ImportSourceCredentialsCommandInput} * @returns {@link ImportSourceCredentialsCommandOutput} * @see {@link ImportSourceCredentialsCommandInput} for command's `input` shape. * @see {@link ImportSourceCredentialsCommandOutput} for command's `response` shape. * @see {@link CodeBuildClientResolvedConfig | config} for CodeBuildClient's `config` shape. * * @throws {@link AccountLimitExceededException} (client fault) *

An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.

* * @throws {@link InvalidInputException} (client fault) *

The input value that was provided is not valid.

* * @throws {@link ResourceAlreadyExistsException} (client fault) *

The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the same * settings already exists.

* * @throws {@link CodeBuildServiceException} *

Base exception class for all service exceptions from CodeBuild service.

* * * @public */ export declare class ImportSourceCredentialsCommand extends ImportSourceCredentialsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ImportSourceCredentialsInput; output: ImportSourceCredentialsOutput; }; sdk: { input: ImportSourceCredentialsCommandInput; output: ImportSourceCredentialsCommandOutput; }; }; }