UNPKG

2.35 kBTypeScriptView Raw
1import { Resource, SecretValue } from '@aws-cdk/core';
2import { Construct } from 'constructs';
3/**
4 * Creation properties for {@link GitHubSourceCredentials}.
5 */
6export interface GitHubSourceCredentialsProps {
7 /**
8 * The personal access token to use when contacting the GitHub API.
9 */
10 readonly accessToken: SecretValue;
11}
12/**
13 * The source credentials used when contacting the GitHub API.
14 *
15 * **Note**: CodeBuild only allows a single credential for GitHub
16 * to be saved in a given AWS account in a given region -
17 * any attempt to add more than one will result in an error.
18 *
19 * @resource AWS::CodeBuild::SourceCredential
20 */
21export declare class GitHubSourceCredentials extends Resource {
22 constructor(scope: Construct, id: string, props: GitHubSourceCredentialsProps);
23}
24/**
25 * Creation properties for {@link GitHubEnterpriseSourceCredentials}.
26 */
27export interface GitHubEnterpriseSourceCredentialsProps {
28 /**
29 * The personal access token to use when contacting the
30 * instance of the GitHub Enterprise API.
31 */
32 readonly accessToken: SecretValue;
33}
34/**
35 * The source credentials used when contacting the GitHub Enterprise API.
36 *
37 * **Note**: CodeBuild only allows a single credential for GitHub Enterprise
38 * to be saved in a given AWS account in a given region -
39 * any attempt to add more than one will result in an error.
40 *
41 * @resource AWS::CodeBuild::SourceCredential
42 */
43export declare class GitHubEnterpriseSourceCredentials extends Resource {
44 constructor(scope: Construct, id: string, props: GitHubEnterpriseSourceCredentialsProps);
45}
46/**
47 * Construction properties of {@link BitBucketSourceCredentials}.
48 */
49export interface BitBucketSourceCredentialsProps {
50 /** Your BitBucket username. */
51 readonly username: SecretValue;
52 /** Your BitBucket application password. */
53 readonly password: SecretValue;
54}
55/**
56 * The source credentials used when contacting the BitBucket API.
57 *
58 * **Note**: CodeBuild only allows a single credential for BitBucket
59 * to be saved in a given AWS account in a given region -
60 * any attempt to add more than one will result in an error.
61 *
62 * @resource AWS::CodeBuild::SourceCredential
63 */
64export declare class BitBucketSourceCredentials extends Resource {
65 constructor(scope: Construct, id: string, props: BitBucketSourceCredentialsProps);
66}