UNPKG

103 kBTypeScriptView Raw
1import * as cdk from '@aws-cdk/core';
2import * as cfn_parse from '@aws-cdk/core/lib/helpers-internal';
3/**
4 * Properties for defining a `CfnProject`
5 *
6 * @struct
7 * @stability external
8 *
9 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html
10 */
11export interface CfnProjectProps {
12 /**
13 * `Artifacts` is a property of the [AWS::CodeBuild::Project](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html) resource that specifies output settings for artifacts generated by an AWS CodeBuild build.
14 *
15 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-artifacts
16 */
17 readonly artifacts: CfnProject.ArtifactsProperty | cdk.IResolvable;
18 /**
19 * The build environment settings for the project, such as the environment type or the environment variables to use for the build environment.
20 *
21 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-environment
22 */
23 readonly environment: CfnProject.EnvironmentProperty | cdk.IResolvable;
24 /**
25 * The ARN of the IAM role that enables AWS CodeBuild to interact with dependent AWS services on behalf of the AWS account.
26 *
27 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-servicerole
28 */
29 readonly serviceRole: string;
30 /**
31 * The source code settings for the project, such as the source code's repository type and location.
32 *
33 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-source
34 */
35 readonly source: CfnProject.SourceProperty | cdk.IResolvable;
36 /**
37 * Indicates whether AWS CodeBuild generates a publicly accessible URL for your project's build badge. For more information, see [Build Badges Sample](https://docs.aws.amazon.com/codebuild/latest/userguide/sample-build-badges.html) in the *AWS CodeBuild User Guide* .
38 *
39 * > Including build badges with your project is currently not supported if the source type is CodePipeline. If you specify `CODEPIPELINE` for the `Source` property, do not specify the `BadgeEnabled` property.
40 *
41 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-badgeenabled
42 */
43 readonly badgeEnabled?: boolean | cdk.IResolvable;
44 /**
45 * A `ProjectBuildBatchConfig` object that defines the batch build options for the project.
46 *
47 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-buildbatchconfig
48 */
49 readonly buildBatchConfig?: CfnProject.ProjectBuildBatchConfigProperty | cdk.IResolvable;
50 /**
51 * Settings that AWS CodeBuild uses to store and reuse build dependencies.
52 *
53 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-cache
54 */
55 readonly cache?: CfnProject.ProjectCacheProperty | cdk.IResolvable;
56 /**
57 * The maximum number of concurrent builds that are allowed for this project.
58 *
59 * New builds are only started if the current number of builds is less than or equal to this limit. If the current build count meets this limit, new builds are throttled and are not run.
60 *
61 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-concurrentbuildlimit
62 */
63 readonly concurrentBuildLimit?: number;
64 /**
65 * A description that makes the build project easy to identify.
66 *
67 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-description
68 */
69 readonly description?: string;
70 /**
71 * The AWS Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts.
72 *
73 * > You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.
74 *
75 * You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format `alias/<alias-name>` ). If you don't specify a value, CodeBuild uses the managed CMK for Amazon Simple Storage Service (Amazon S3).
76 *
77 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-encryptionkey
78 */
79 readonly encryptionKey?: string;
80 /**
81 * An array of `ProjectFileSystemLocation` objects for a CodeBuild build project. A `ProjectFileSystemLocation` object specifies the `identifier` , `location` , `mountOptions` , `mountPoint` , and `type` of a file system created using Amazon Elastic File System.
82 *
83 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-filesystemlocations
84 */
85 readonly fileSystemLocations?: Array<CfnProject.ProjectFileSystemLocationProperty | cdk.IResolvable> | cdk.IResolvable;
86 /**
87 * Information about logs for the build project. A project can create logs in CloudWatch Logs, an S3 bucket, or both.
88 *
89 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-logsconfig
90 */
91 readonly logsConfig?: CfnProject.LogsConfigProperty | cdk.IResolvable;
92 /**
93 * The name of the build project. The name must be unique across all of the projects in your AWS account .
94 *
95 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-name
96 */
97 readonly name?: string;
98 /**
99 * The number of minutes a build is allowed to be queued before it times out.
100 *
101 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-queuedtimeoutinminutes
102 */
103 readonly queuedTimeoutInMinutes?: number;
104 /**
105 * The ARN of the IAM role that enables CodeBuild to access the CloudWatch Logs and Amazon S3 artifacts for the project's builds.
106 *
107 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-resourceaccessrole
108 */
109 readonly resourceAccessRole?: string;
110 /**
111 * A list of `Artifacts` objects. Each artifacts object specifies output settings that the project generates during a build.
112 *
113 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-secondaryartifacts
114 */
115 readonly secondaryArtifacts?: Array<CfnProject.ArtifactsProperty | cdk.IResolvable> | cdk.IResolvable;
116 /**
117 * An array of `ProjectSource` objects.
118 *
119 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-secondarysources
120 */
121 readonly secondarySources?: Array<CfnProject.SourceProperty | cdk.IResolvable> | cdk.IResolvable;
122 /**
123 * An array of `ProjectSourceVersion` objects. If `secondarySourceVersions` is specified at the build level, then they take over these `secondarySourceVersions` (at the project level).
124 *
125 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-secondarysourceversions
126 */
127 readonly secondarySourceVersions?: Array<CfnProject.ProjectSourceVersionProperty | cdk.IResolvable> | cdk.IResolvable;
128 /**
129 * A version of the build input to be built for this project. If not specified, the latest version is used. If specified, it must be one of:
130 *
131 * - For CodeCommit: the commit ID, branch, or Git tag to use.
132 * - For GitHub: the commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format `pr/pull-request-ID` (for example `pr/25` ). If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.
133 * - For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.
134 * - For Amazon S3: the version ID of the object that represents the build input ZIP file to use.
135 *
136 * If `sourceVersion` is specified at the build level, then that version takes precedence over this `sourceVersion` (at the project level).
137 *
138 * For more information, see [Source Version Sample with CodeBuild](https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html) in the *AWS CodeBuild User Guide* .
139 *
140 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-sourceversion
141 */
142 readonly sourceVersion?: string;
143 /**
144 * An arbitrary set of tags (key-value pairs) for the AWS CodeBuild project.
145 *
146 * These tags are available for use by AWS services that support AWS CodeBuild build project tags.
147 *
148 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-tags
149 */
150 readonly tags?: cdk.CfnTag[];
151 /**
152 * How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait before timing out any related build that did not get marked as completed. The default is 60 minutes.
153 *
154 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-timeoutinminutes
155 */
156 readonly timeoutInMinutes?: number;
157 /**
158 * For an existing AWS CodeBuild build project that has its source code stored in a GitHub repository, enables AWS CodeBuild to begin automatically rebuilding the source code every time a code change is pushed to the repository.
159 *
160 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-triggers
161 */
162 readonly triggers?: CfnProject.ProjectTriggersProperty | cdk.IResolvable;
163 /**
164 * Specifies the visibility of the project's builds. Possible values are:
165 *
166 * - **PUBLIC_READ** - The project builds are visible to the public.
167 * - **PRIVATE** - The project builds are not visible to the public.
168 *
169 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-visibility
170 */
171 readonly visibility?: string;
172 /**
173 * `VpcConfig` specifies settings that enable AWS CodeBuild to access resources in an Amazon VPC. For more information, see [Use AWS CodeBuild with Amazon Virtual Private Cloud](https://docs.aws.amazon.com/codebuild/latest/userguide/vpc-support.html) in the *AWS CodeBuild User Guide* .
174 *
175 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-vpcconfig
176 */
177 readonly vpcConfig?: CfnProject.VpcConfigProperty | cdk.IResolvable;
178}
179/**
180 * A CloudFormation `AWS::CodeBuild::Project`
181 *
182 * The `AWS::CodeBuild::Project` resource configures how AWS CodeBuild builds your source code. For example, it tells CodeBuild where to get the source code and which build environment to use.
183 *
184 * > To unset or remove a project value via CFN, explicitly provide the attribute with value as empty input.
185 *
186 * @cloudformationResource AWS::CodeBuild::Project
187 * @stability external
188 *
189 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html
190 */
191export declare class CfnProject extends cdk.CfnResource implements cdk.IInspectable {
192 /**
193 * The CloudFormation resource type name for this resource class.
194 */
195 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CodeBuild::Project";
196 /**
197 * A factory method that creates a new instance of this class from an object
198 * containing the CloudFormation properties of this resource.
199 * Used in the @aws-cdk/cloudformation-include module.
200 *
201 * @internal
202 */
203 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnProject;
204 /**
205 * The ARN of the AWS CodeBuild project, such as `arn:aws:codebuild:us-west-2:123456789012:project/myProjectName` .
206 * @cloudformationAttribute Arn
207 */
208 readonly attrArn: string;
209 /**
210 * `Artifacts` is a property of the [AWS::CodeBuild::Project](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html) resource that specifies output settings for artifacts generated by an AWS CodeBuild build.
211 *
212 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-artifacts
213 */
214 artifacts: CfnProject.ArtifactsProperty | cdk.IResolvable;
215 /**
216 * The build environment settings for the project, such as the environment type or the environment variables to use for the build environment.
217 *
218 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-environment
219 */
220 environment: CfnProject.EnvironmentProperty | cdk.IResolvable;
221 /**
222 * The ARN of the IAM role that enables AWS CodeBuild to interact with dependent AWS services on behalf of the AWS account.
223 *
224 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-servicerole
225 */
226 serviceRole: string;
227 /**
228 * The source code settings for the project, such as the source code's repository type and location.
229 *
230 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-source
231 */
232 source: CfnProject.SourceProperty | cdk.IResolvable;
233 /**
234 * Indicates whether AWS CodeBuild generates a publicly accessible URL for your project's build badge. For more information, see [Build Badges Sample](https://docs.aws.amazon.com/codebuild/latest/userguide/sample-build-badges.html) in the *AWS CodeBuild User Guide* .
235 *
236 * > Including build badges with your project is currently not supported if the source type is CodePipeline. If you specify `CODEPIPELINE` for the `Source` property, do not specify the `BadgeEnabled` property.
237 *
238 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-badgeenabled
239 */
240 badgeEnabled: boolean | cdk.IResolvable | undefined;
241 /**
242 * A `ProjectBuildBatchConfig` object that defines the batch build options for the project.
243 *
244 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-buildbatchconfig
245 */
246 buildBatchConfig: CfnProject.ProjectBuildBatchConfigProperty | cdk.IResolvable | undefined;
247 /**
248 * Settings that AWS CodeBuild uses to store and reuse build dependencies.
249 *
250 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-cache
251 */
252 cache: CfnProject.ProjectCacheProperty | cdk.IResolvable | undefined;
253 /**
254 * The maximum number of concurrent builds that are allowed for this project.
255 *
256 * New builds are only started if the current number of builds is less than or equal to this limit. If the current build count meets this limit, new builds are throttled and are not run.
257 *
258 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-concurrentbuildlimit
259 */
260 concurrentBuildLimit: number | undefined;
261 /**
262 * A description that makes the build project easy to identify.
263 *
264 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-description
265 */
266 description: string | undefined;
267 /**
268 * The AWS Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts.
269 *
270 * > You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.
271 *
272 * You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format `alias/<alias-name>` ). If you don't specify a value, CodeBuild uses the managed CMK for Amazon Simple Storage Service (Amazon S3).
273 *
274 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-encryptionkey
275 */
276 encryptionKey: string | undefined;
277 /**
278 * An array of `ProjectFileSystemLocation` objects for a CodeBuild build project. A `ProjectFileSystemLocation` object specifies the `identifier` , `location` , `mountOptions` , `mountPoint` , and `type` of a file system created using Amazon Elastic File System.
279 *
280 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-filesystemlocations
281 */
282 fileSystemLocations: Array<CfnProject.ProjectFileSystemLocationProperty | cdk.IResolvable> | cdk.IResolvable | undefined;
283 /**
284 * Information about logs for the build project. A project can create logs in CloudWatch Logs, an S3 bucket, or both.
285 *
286 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-logsconfig
287 */
288 logsConfig: CfnProject.LogsConfigProperty | cdk.IResolvable | undefined;
289 /**
290 * The name of the build project. The name must be unique across all of the projects in your AWS account .
291 *
292 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-name
293 */
294 name: string | undefined;
295 /**
296 * The number of minutes a build is allowed to be queued before it times out.
297 *
298 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-queuedtimeoutinminutes
299 */
300 queuedTimeoutInMinutes: number | undefined;
301 /**
302 * The ARN of the IAM role that enables CodeBuild to access the CloudWatch Logs and Amazon S3 artifacts for the project's builds.
303 *
304 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-resourceaccessrole
305 */
306 resourceAccessRole: string | undefined;
307 /**
308 * A list of `Artifacts` objects. Each artifacts object specifies output settings that the project generates during a build.
309 *
310 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-secondaryartifacts
311 */
312 secondaryArtifacts: Array<CfnProject.ArtifactsProperty | cdk.IResolvable> | cdk.IResolvable | undefined;
313 /**
314 * An array of `ProjectSource` objects.
315 *
316 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-secondarysources
317 */
318 secondarySources: Array<CfnProject.SourceProperty | cdk.IResolvable> | cdk.IResolvable | undefined;
319 /**
320 * An array of `ProjectSourceVersion` objects. If `secondarySourceVersions` is specified at the build level, then they take over these `secondarySourceVersions` (at the project level).
321 *
322 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-secondarysourceversions
323 */
324 secondarySourceVersions: Array<CfnProject.ProjectSourceVersionProperty | cdk.IResolvable> | cdk.IResolvable | undefined;
325 /**
326 * A version of the build input to be built for this project. If not specified, the latest version is used. If specified, it must be one of:
327 *
328 * - For CodeCommit: the commit ID, branch, or Git tag to use.
329 * - For GitHub: the commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format `pr/pull-request-ID` (for example `pr/25` ). If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.
330 * - For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.
331 * - For Amazon S3: the version ID of the object that represents the build input ZIP file to use.
332 *
333 * If `sourceVersion` is specified at the build level, then that version takes precedence over this `sourceVersion` (at the project level).
334 *
335 * For more information, see [Source Version Sample with CodeBuild](https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html) in the *AWS CodeBuild User Guide* .
336 *
337 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-sourceversion
338 */
339 sourceVersion: string | undefined;
340 /**
341 * An arbitrary set of tags (key-value pairs) for the AWS CodeBuild project.
342 *
343 * These tags are available for use by AWS services that support AWS CodeBuild build project tags.
344 *
345 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-tags
346 */
347 readonly tags: cdk.TagManager;
348 /**
349 * How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait before timing out any related build that did not get marked as completed. The default is 60 minutes.
350 *
351 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-timeoutinminutes
352 */
353 timeoutInMinutes: number | undefined;
354 /**
355 * For an existing AWS CodeBuild build project that has its source code stored in a GitHub repository, enables AWS CodeBuild to begin automatically rebuilding the source code every time a code change is pushed to the repository.
356 *
357 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-triggers
358 */
359 triggers: CfnProject.ProjectTriggersProperty | cdk.IResolvable | undefined;
360 /**
361 * Specifies the visibility of the project's builds. Possible values are:
362 *
363 * - **PUBLIC_READ** - The project builds are visible to the public.
364 * - **PRIVATE** - The project builds are not visible to the public.
365 *
366 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-visibility
367 */
368 visibility: string | undefined;
369 /**
370 * `VpcConfig` specifies settings that enable AWS CodeBuild to access resources in an Amazon VPC. For more information, see [Use AWS CodeBuild with Amazon Virtual Private Cloud](https://docs.aws.amazon.com/codebuild/latest/userguide/vpc-support.html) in the *AWS CodeBuild User Guide* .
371 *
372 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-vpcconfig
373 */
374 vpcConfig: CfnProject.VpcConfigProperty | cdk.IResolvable | undefined;
375 /**
376 * Create a new `AWS::CodeBuild::Project`.
377 *
378 * @param scope - scope in which this resource is defined
379 * @param id - scoped id of the resource
380 * @param props - resource properties
381 */
382 constructor(scope: cdk.Construct, id: string, props: CfnProjectProps);
383 /**
384 * Examines the CloudFormation resource and discloses attributes.
385 *
386 * @param inspector - tree inspector to collect and process attributes
387 *
388 */
389 inspect(inspector: cdk.TreeInspector): void;
390 protected get cfnProperties(): {
391 [key: string]: any;
392 };
393 protected renderProperties(props: {
394 [key: string]: any;
395 }): {
396 [key: string]: any;
397 };
398}
399export declare namespace CfnProject {
400 /**
401 * `Artifacts` is a property of the [AWS::CodeBuild::Project](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html) resource that specifies output settings for artifacts generated by an AWS CodeBuild build.
402 *
403 * @struct
404 * @stability external
405 *
406 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-artifacts.html
407 */
408 interface ArtifactsProperty {
409 /**
410 * An identifier for this artifact definition.
411 *
412 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-artifacts.html#cfn-codebuild-project-artifacts-artifactidentifier
413 */
414 readonly artifactIdentifier?: string;
415 /**
416 * Set to true if you do not want your output artifacts encrypted. This option is valid only if your artifacts type is Amazon Simple Storage Service (Amazon S3). If this is set with another artifacts type, an `invalidInputException` is thrown.
417 *
418 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-artifacts.html#cfn-codebuild-project-artifacts-encryptiondisabled
419 */
420 readonly encryptionDisabled?: boolean | cdk.IResolvable;
421 /**
422 * Information about the build output artifact location:
423 *
424 * - If `type` is set to `CODEPIPELINE` , AWS CodePipeline ignores this value if specified. This is because CodePipeline manages its build output locations instead of CodeBuild .
425 * - If `type` is set to `NO_ARTIFACTS` , this value is ignored if specified, because no build output is produced.
426 * - If `type` is set to `S3` , this is the name of the output bucket.
427 *
428 * If you specify `CODEPIPELINE` or `NO_ARTIFACTS` for the `Type` property, don't specify this property. For all of the other types, you must specify this property.
429 *
430 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-artifacts.html#cfn-codebuild-project-artifacts-location
431 */
432 readonly location?: string;
433 /**
434 * Along with `path` and `namespaceType` , the pattern that AWS CodeBuild uses to name and store the output artifact:
435 *
436 * - If `type` is set to `CODEPIPELINE` , AWS CodePipeline ignores this value if specified. This is because CodePipeline manages its build output names instead of AWS CodeBuild .
437 * - If `type` is set to `NO_ARTIFACTS` , this value is ignored if specified, because no build output is produced.
438 * - If `type` is set to `S3` , this is the name of the output artifact object. If you set the name to be a forward slash ("/"), the artifact is stored in the root of the output bucket.
439 *
440 * For example:
441 *
442 * - If `path` is set to `MyArtifacts` , `namespaceType` is set to `BUILD_ID` , and `name` is set to `MyArtifact.zip` , then the output artifact is stored in `MyArtifacts/ *build-ID* /MyArtifact.zip` .
443 * - If `path` is empty, `namespaceType` is set to `NONE` , and `name` is set to " `/` ", the output artifact is stored in the root of the output bucket.
444 * - If `path` is set to `MyArtifacts` , `namespaceType` is set to `BUILD_ID` , and `name` is set to " `/` ", the output artifact is stored in `MyArtifacts/ *build-ID*` .
445 *
446 * If you specify `CODEPIPELINE` or `NO_ARTIFACTS` for the `Type` property, don't specify this property. For all of the other types, you must specify this property.
447 *
448 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-artifacts.html#cfn-codebuild-project-artifacts-name
449 */
450 readonly name?: string;
451 /**
452 * Along with `path` and `name` , the pattern that AWS CodeBuild uses to determine the name and location to store the output artifact:
453 *
454 * - If `type` is set to `CODEPIPELINE` , CodePipeline ignores this value if specified. This is because CodePipeline manages its build output names instead of AWS CodeBuild .
455 * - If `type` is set to `NO_ARTIFACTS` , this value is ignored if specified, because no build output is produced.
456 * - If `type` is set to `S3` , valid values include:
457 *
458 * - `BUILD_ID` : Include the build ID in the location of the build output artifact.
459 * - `NONE` : Do not include the build ID. This is the default if `namespaceType` is not specified.
460 *
461 * For example, if `path` is set to `MyArtifacts` , `namespaceType` is set to `BUILD_ID` , and `name` is set to `MyArtifact.zip` , the output artifact is stored in `MyArtifacts/<build-ID>/MyArtifact.zip` .
462 *
463 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-artifacts.html#cfn-codebuild-project-artifacts-namespacetype
464 */
465 readonly namespaceType?: string;
466 /**
467 * If set to true a name specified in the buildspec file overrides the artifact name. The name specified in a buildspec file is calculated at build time and uses the Shell command language. For example, you can append a date and time to your artifact name so that it is always unique.
468 *
469 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-artifacts.html#cfn-codebuild-project-artifacts-overrideartifactname
470 */
471 readonly overrideArtifactName?: boolean | cdk.IResolvable;
472 /**
473 * The type of build output artifact to create:
474 *
475 * - If `type` is set to `CODEPIPELINE` , CodePipeline ignores this value if specified. This is because CodePipeline manages its build output artifacts instead of AWS CodeBuild .
476 * - If `type` is set to `NO_ARTIFACTS` , this value is ignored if specified, because no build output is produced.
477 * - If `type` is set to `S3` , valid values include:
478 *
479 * - `NONE` : AWS CodeBuild creates in the output bucket a folder that contains the build output. This is the default if `packaging` is not specified.
480 * - `ZIP` : AWS CodeBuild creates in the output bucket a ZIP file that contains the build output.
481 *
482 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-artifacts.html#cfn-codebuild-project-artifacts-packaging
483 */
484 readonly packaging?: string;
485 /**
486 * Along with `namespaceType` and `name` , the pattern that AWS CodeBuild uses to name and store the output artifact:
487 *
488 * - If `type` is set to `CODEPIPELINE` , CodePipeline ignores this value if specified. This is because CodePipeline manages its build output names instead of AWS CodeBuild .
489 * - If `type` is set to `NO_ARTIFACTS` , this value is ignored if specified, because no build output is produced.
490 * - If `type` is set to `S3` , this is the path to the output artifact. If `path` is not specified, `path` is not used.
491 *
492 * For example, if `path` is set to `MyArtifacts` , `namespaceType` is set to `NONE` , and `name` is set to `MyArtifact.zip` , the output artifact is stored in the output bucket at `MyArtifacts/MyArtifact.zip` .
493 *
494 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-artifacts.html#cfn-codebuild-project-artifacts-path
495 */
496 readonly path?: string;
497 /**
498 * The type of build output artifact. Valid values include:
499 *
500 * - `CODEPIPELINE` : The build project has build output generated through CodePipeline.
501 *
502 * > The `CODEPIPELINE` type is not supported for `secondaryArtifacts` .
503 * - `NO_ARTIFACTS` : The build project does not produce any build output.
504 * - `S3` : The build project stores build output in Amazon S3.
505 *
506 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-artifacts.html#cfn-codebuild-project-artifacts-type
507 */
508 readonly type: string;
509 }
510}
511export declare namespace CfnProject {
512 /**
513 * Specifies restrictions for the batch build.
514 *
515 * @struct
516 * @stability external
517 *
518 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-batchrestrictions.html
519 */
520 interface BatchRestrictionsProperty {
521 /**
522 * An array of strings that specify the compute types that are allowed for the batch build. See [Build environment compute types](https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html) in the *AWS CodeBuild User Guide* for these values.
523 *
524 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-batchrestrictions.html#cfn-codebuild-project-batchrestrictions-computetypesallowed
525 */
526 readonly computeTypesAllowed?: string[];
527 /**
528 * Specifies the maximum number of builds allowed.
529 *
530 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-batchrestrictions.html#cfn-codebuild-project-batchrestrictions-maximumbuildsallowed
531 */
532 readonly maximumBuildsAllowed?: number;
533 }
534}
535export declare namespace CfnProject {
536 /**
537 * Contains information that defines how the AWS CodeBuild build project reports the build status to the source provider.
538 *
539 * @struct
540 * @stability external
541 *
542 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-buildstatusconfig.html
543 */
544 interface BuildStatusConfigProperty {
545 /**
546 * Specifies the context of the build status CodeBuild sends to the source provider. The usage of this parameter depends on the source provider.
547 *
548 * - **Bitbucket** - This parameter is used for the `name` parameter in the Bitbucket commit status. For more information, see [build](https://docs.aws.amazon.com/https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/commit/%7Bnode%7D/statuses/build) in the Bitbucket API documentation.
549 * - **GitHub/GitHub Enterprise Server** - This parameter is used for the `context` parameter in the GitHub commit status. For more information, see [Create a commit status](https://docs.aws.amazon.com/https://developer.github.com/v3/repos/statuses/#create-a-commit-status) in the GitHub developer guide.
550 *
551 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-buildstatusconfig.html#cfn-codebuild-project-buildstatusconfig-context
552 */
553 readonly context?: string;
554 /**
555 * Specifies the target url of the build status CodeBuild sends to the source provider. The usage of this parameter depends on the source provider.
556 *
557 * - **Bitbucket** - This parameter is used for the `url` parameter in the Bitbucket commit status. For more information, see [build](https://docs.aws.amazon.com/https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/commit/%7Bnode%7D/statuses/build) in the Bitbucket API documentation.
558 * - **GitHub/GitHub Enterprise Server** - This parameter is used for the `target_url` parameter in the GitHub commit status. For more information, see [Create a commit status](https://docs.aws.amazon.com/https://developer.github.com/v3/repos/statuses/#create-a-commit-status) in the GitHub developer guide.
559 *
560 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-buildstatusconfig.html#cfn-codebuild-project-buildstatusconfig-targeturl
561 */
562 readonly targetUrl?: string;
563 }
564}
565export declare namespace CfnProject {
566 /**
567 * `CloudWatchLogs` is a property of the [AWS CodeBuild Project LogsConfig](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-logsconfig.html) property type that specifies settings for CloudWatch logs generated by an AWS CodeBuild build.
568 *
569 * @struct
570 * @stability external
571 *
572 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-cloudwatchlogsconfig.html
573 */
574 interface CloudWatchLogsConfigProperty {
575 /**
576 * The group name of the logs in CloudWatch Logs. For more information, see [Working with Log Groups and Log Streams](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html) .
577 *
578 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-cloudwatchlogsconfig.html#cfn-codebuild-project-cloudwatchlogsconfig-groupname
579 */
580 readonly groupName?: string;
581 /**
582 * The current status of the logs in CloudWatch Logs for a build project. Valid values are:
583 *
584 * - `ENABLED` : CloudWatch Logs are enabled for this build project.
585 * - `DISABLED` : CloudWatch Logs are not enabled for this build project.
586 *
587 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-cloudwatchlogsconfig.html#cfn-codebuild-project-cloudwatchlogsconfig-status
588 */
589 readonly status: string;
590 /**
591 * The prefix of the stream name of the CloudWatch Logs. For more information, see [Working with Log Groups and Log Streams](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html) .
592 *
593 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-cloudwatchlogsconfig.html#cfn-codebuild-project-cloudwatchlogsconfig-streamname
594 */
595 readonly streamName?: string;
596 }
597}
598export declare namespace CfnProject {
599 /**
600 * `Environment` is a property of the [AWS::CodeBuild::Project](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html) resource that specifies the environment for an AWS CodeBuild project.
601 *
602 * @struct
603 * @stability external
604 *
605 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environment.html
606 */
607 interface EnvironmentProperty {
608 /**
609 * The ARN of the Amazon S3 bucket, path prefix, and object key that contains the PEM-encoded certificate for the build project. For more information, see [certificate](https://docs.aws.amazon.com/codebuild/latest/userguide/create-project-cli.html#cli.environment.certificate) in the *AWS CodeBuild User Guide* .
610 *
611 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environment.html#cfn-codebuild-project-environment-certificate
612 */
613 readonly certificate?: string;
614 /**
615 * The type of compute environment. This determines the number of CPU cores and memory the build environment uses. Available values include:
616 *
617 * - `BUILD_GENERAL1_SMALL` : Use up to 3 GB memory and 2 vCPUs for builds.
618 * - `BUILD_GENERAL1_MEDIUM` : Use up to 7 GB memory and 4 vCPUs for builds.
619 * - `BUILD_GENERAL1_LARGE` : Use up to 15 GB memory and 8 vCPUs for builds.
620 *
621 * For more information, see [Build Environment Compute Types](https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html) in the *AWS CodeBuild User Guide.*
622 *
623 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environment.html#cfn-codebuild-project-environment-computetype
624 */
625 readonly computeType: string;
626 /**
627 * A set of environment variables to make available to builds for this build project.
628 *
629 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environment.html#cfn-codebuild-project-environment-environmentvariables
630 */
631 readonly environmentVariables?: Array<CfnProject.EnvironmentVariableProperty | cdk.IResolvable> | cdk.IResolvable;
632 /**
633 * The image tag or image digest that identifies the Docker image to use for this build project. Use the following formats:
634 *
635 * - For an image tag: `<registry>/<repository>:<tag>` . For example, in the Docker repository that CodeBuild uses to manage its Docker images, this would be `aws/codebuild/standard:4.0` .
636 * - For an image digest: `<registry>/<repository>@<digest>` . For example, to specify an image with the digest "sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0382cfbdbf," use `<registry>/<repository>@sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0382cfbdbf` .
637 *
638 * For more information, see [Docker images provided by CodeBuild](https://docs.aws.amazon.com//codebuild/latest/userguide/build-env-ref-available.html) in the *AWS CodeBuild user guide* .
639 *
640 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environment.html#cfn-codebuild-project-environment-image
641 */
642 readonly image: string;
643 /**
644 * The type of credentials AWS CodeBuild uses to pull images in your build. There are two valid values:
645 *
646 * - `CODEBUILD` specifies that AWS CodeBuild uses its own credentials. This requires that you modify your ECR repository policy to trust AWS CodeBuild service principal.
647 * - `SERVICE_ROLE` specifies that AWS CodeBuild uses your build project's service role.
648 *
649 * When you use a cross-account or private registry image, you must use SERVICE_ROLE credentials. When you use an AWS CodeBuild curated image, you must use CODEBUILD credentials.
650 *
651 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environment.html#cfn-codebuild-project-environment-imagepullcredentialstype
652 */
653 readonly imagePullCredentialsType?: string;
654 /**
655 * Enables running the Docker daemon inside a Docker container. Set to true only if the build project is used to build Docker images. Otherwise, a build that attempts to interact with the Docker daemon fails. The default setting is `false` .
656 *
657 * You can initialize the Docker daemon during the install phase of your build by adding one of the following sets of commands to the install phase of your buildspec file:
658 *
659 * If the operating system's base image is Ubuntu Linux:
660 *
661 * `- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --storage-driver=overlay&`
662 *
663 * `- timeout 15 sh -c "until docker info; do echo .; sleep 1; done"`
664 *
665 * If the operating system's base image is Alpine Linux and the previous command does not work, add the `-t` argument to `timeout` :
666 *
667 * `- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --storage-driver=overlay&`
668 *
669 * `- timeout -t 15 sh -c "until docker info; do echo .; sleep 1; done"`
670 *
671 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environment.html#cfn-codebuild-project-environment-privilegedmode
672 */
673 readonly privilegedMode?: boolean | cdk.IResolvable;
674 /**
675 * `RegistryCredential` is a property of the [AWS::CodeBuild::Project Environment](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-environment) property that specifies information about credentials that provide access to a private Docker registry. When this is set:
676 *
677 * - `imagePullCredentialsType` must be set to `SERVICE_ROLE` .
678 * - images cannot be curated or an Amazon ECR image.
679 *
680 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environment.html#cfn-codebuild-project-environment-registrycredential
681 */
682 readonly registryCredential?: CfnProject.RegistryCredentialProperty | cdk.IResolvable;
683 /**
684 * The type of build environment to use for related builds.
685 *
686 * - The environment type `ARM_CONTAINER` is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Sydney), and EU (Frankfurt).
687 * - The environment type `LINUX_CONTAINER` with compute type `build.general1.2xlarge` is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Canada (Central), EU (Ireland), EU (London), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Seoul), Asia Pacific (Singapore), Asia Pacific (Sydney), China (Beijing), and China (Ningxia).
688 * - The environment type `LINUX_GPU_CONTAINER` is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Canada (Central), EU (Ireland), EU (London), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Seoul), Asia Pacific (Singapore), Asia Pacific (Sydney) , China (Beijing), and China (Ningxia).
689 *
690 * - The environment types `WINDOWS_CONTAINER` and `WINDOWS_SERVER_2019_CONTAINER` are available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), and EU (Ireland).
691 *
692 * For more information, see [Build environment compute types](https://docs.aws.amazon.com//codebuild/latest/userguide/build-env-ref-compute-types.html) in the *AWS CodeBuild user guide* .
693 *
694 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environment.html#cfn-codebuild-project-environment-type
695 */
696 readonly type: string;
697 }
698}
699export declare namespace CfnProject {
700 /**
701 * `EnvironmentVariable` is a property of the [AWS CodeBuild Project Environment](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environment.html) property type that specifies the name and value of an environment variable for an AWS CodeBuild project environment. When you use the environment to run a build, these variables are available for your builds to use. `EnvironmentVariable` contains a list of `EnvironmentVariable` property types.
702 *
703 * @struct
704 * @stability external
705 *
706 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environmentvariable.html
707 */
708 interface EnvironmentVariableProperty {
709 /**
710 * The name or key of the environment variable.
711 *
712 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environmentvariable.html#cfn-codebuild-project-environmentvariable-name
713 */
714 readonly name: string;
715 /**
716 * The type of environment variable. Valid values include:
717 *
718 * - `PARAMETER_STORE` : An environment variable stored in Systems Manager Parameter Store. For environment variables of this type, specify the name of the parameter as the `value` of the EnvironmentVariable. The parameter value will be substituted for the name at runtime. You can also define Parameter Store environment variables in the buildspec. To learn how to do so, see [env/parameter-store](https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec.env.parameter-store) in the *AWS CodeBuild User Guide* .
719 * - `PLAINTEXT` : An environment variable in plain text format. This is the default value.
720 * - `SECRETS_MANAGER` : An environment variable stored in AWS Secrets Manager . For environment variables of this type, specify the name of the secret as the `value` of the EnvironmentVariable. The secret value will be substituted for the name at runtime. You can also define AWS Secrets Manager environment variables in the buildspec. To learn how to do so, see [env/secrets-manager](https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec.env.secrets-manager) in the *AWS CodeBuild User Guide* .
721 *
722 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environmentvariable.html#cfn-codebuild-project-environmentvariable-type
723 */
724 readonly type?: string;
725 /**
726 * The value of the environment variable.
727 *
728 * > We strongly discourage the use of `PLAINTEXT` environment variables to store sensitive values, especially AWS secret key IDs and secret access keys. `PLAINTEXT` environment variables can be displayed in plain text using the AWS CodeBuild console and the AWS CLI . For sensitive values, we recommend you use an environment variable of type `PARAMETER_STORE` or `SECRETS_MANAGER` .
729 *
730 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environmentvariable.html#cfn-codebuild-project-environmentvariable-value
731 */
732 readonly value: string;
733 }
734}
735export declare namespace CfnProject {
736 /**
737 * `GitSubmodulesConfig` is a property of the [AWS CodeBuild Project Source](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html) property type that specifies information about the Git submodules configuration for the build project.
738 *
739 * @struct
740 * @stability external
741 *
742 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-gitsubmodulesconfig.html
743 */
744 interface GitSubmodulesConfigProperty {
745 /**
746 * Set to true to fetch Git submodules for your AWS CodeBuild build project.
747 *
748 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-gitsubmodulesconfig.html#cfn-codebuild-project-gitsubmodulesconfig-fetchsubmodules
749 */
750 readonly fetchSubmodules: boolean | cdk.IResolvable;
751 }
752}
753export declare namespace CfnProject {
754 /**
755 * `LogsConfig` is a property of the [AWS CodeBuild Project](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html) resource that specifies information about logs for a build project. These can be logs in Amazon CloudWatch Logs, built in a specified S3 bucket, or both.
756 *
757 * @struct
758 * @stability external
759 *
760 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-logsconfig.html
761 */
762 interface LogsConfigProperty {
763 /**
764 * Information about CloudWatch Logs for a build project. CloudWatch Logs are enabled by default.
765 *
766 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-logsconfig.html#cfn-codebuild-project-logsconfig-cloudwatchlogs
767 */
768 readonly cloudWatchLogs?: CfnProject.CloudWatchLogsConfigProperty | cdk.IResolvable;
769 /**
770 * Information about logs built to an S3 bucket for a build project. S3 logs are not enabled by default.
771 *
772 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-logsconfig.html#cfn-codebuild-project-logsconfig-s3logs
773 */
774 readonly s3Logs?: CfnProject.S3LogsConfigProperty | cdk.IResolvable;
775 }
776}
777export declare namespace CfnProject {
778 /**
779 * Contains configuration information about a batch build project.
780 *
781 * @struct
782 * @stability external
783 *
784 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectbuildbatchconfig.html
785 */
786 interface ProjectBuildBatchConfigProperty {
787 /**
788 * Specifies how build status reports are sent to the source provider for the batch build. This property is only used when the source provider for your project is Bitbucket, GitHub, or GitHub Enterprise, and your project is configured to report build statuses to the source provider.
789 *
790 * - **REPORT_AGGREGATED_BATCH** - (Default) Aggregate all of the build statuses into a single status report.
791 * - **REPORT_INDIVIDUAL_BUILDS** - Send a separate status report for each individual build.
792 *
793 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectbuildbatchconfig.html#cfn-codebuild-project-projectbuildbatchconfig-batchreportmode
794 */
795 readonly batchReportMode?: string;
796 /**
797 * Specifies if the build artifacts for the batch build should be combined into a single artifact location.
798 *
799 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectbuildbatchconfig.html#cfn-codebuild-project-projectbuildbatchconfig-combineartifacts
800 */
801 readonly combineArtifacts?: boolean | cdk.IResolvable;
802 /**
803 * A `BatchRestrictions` object that specifies the restrictions for the batch build.
804 *
805 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectbuildbatchconfig.html#cfn-codebuild-project-projectbuildbatchconfig-restrictions
806 */
807 readonly restrictions?: CfnProject.BatchRestrictionsProperty | cdk.IResolvable;
808 /**
809 * Specifies the service role ARN for the batch build project.
810 *
811 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectbuildbatchconfig.html#cfn-codebuild-project-projectbuildbatchconfig-servicerole
812 */
813 readonly serviceRole?: string;
814 /**
815 * Specifies the maximum amount of time, in minutes, that the batch build must be completed in.
816 *
817 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectbuildbatchconfig.html#cfn-codebuild-project-projectbuildbatchconfig-timeoutinmins
818 */
819 readonly timeoutInMins?: number;
820 }
821}
822export declare namespace CfnProject {
823 /**
824 * `ProjectCache` is a property of the [AWS CodeBuild Project](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html) resource that specifies information about the cache for the build project. If `ProjectCache` is not specified, then both of its properties default to `NO_CACHE` .
825 *
826 * @struct
827 * @stability external
828 *
829 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectcache.html
830 */
831 interface ProjectCacheProperty {
832 /**
833 * Information about the cache location:
834 *
835 * - `NO_CACHE` or `LOCAL` : This value is ignored.
836 * - `S3` : This is the S3 bucket name/prefix.
837 *
838 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectcache.html#cfn-codebuild-project-projectcache-location
839 */
840 readonly location?: string;
841 /**
842 * An array of strings that specify the local cache modes. You can use one or more local cache modes at the same time. This is only used for `LOCAL` cache types.
843 *
844 * Possible values are:
845 *
846 * - **LOCAL_SOURCE_CACHE** - Caches Git metadata for primary and secondary sources. After the cache is created, subsequent builds pull only the change between commits. This mode is a good choice for projects with a clean working directory and a source that is a large Git repository. If you choose this option and your project does not use a Git repository (GitHub, GitHub Enterprise, or Bitbucket), the option is ignored.
847 * - **LOCAL_DOCKER_LAYER_CACHE** - Caches existing Docker layers. This mode is a good choice for projects that build or pull large Docker images. It can prevent the performance issues caused by pulling large Docker images down from the network.
848 *
849 * > - You can use a Docker layer cache in the Linux environment only.
850 * > - The `privileged` flag must be set so that your project has the required Docker permissions.
851 * > - You should consider the security implications before you use a Docker layer cache.
852 * - **LOCAL_CUSTOM_CACHE** - Caches directories you specify in the buildspec file. This mode is a good choice if your build scenario is not suited to one of the other three local cache modes. If you use a custom cache:
853 *
854 * - Only directories can be specified for caching. You cannot specify individual files.
855 * - Symlinks are used to reference cached directories.
856 * - Cached directories are linked to your build before it downloads its project sources. Cached items are overridden if a source item has the same name. Directories are specified using cache paths in the buildspec file.
857 *
858 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectcache.html#cfn-codebuild-project-projectcache-modes
859 */
860 readonly modes?: string[];
861 /**
862 * The type of cache used by the build project. Valid values include:
863 *
864 * - `NO_CACHE` : The build project does not use any cache.
865 * - `S3` : The build project reads and writes from and to S3.
866 * - `LOCAL` : The build project stores a cache locally on a build host that is only available to that build host.
867 *
868 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectcache.html#cfn-codebuild-project-projectcache-type
869 */
870 readonly type: string;
871 }
872}
873export declare namespace CfnProject {
874 /**
875 * Information about a file system created by Amazon Elastic File System (EFS). For more information, see [What Is Amazon Elastic File System?](https://docs.aws.amazon.com/efs/latest/ug/whatisefs.html)
876 *
877 * @struct
878 * @stability external
879 *
880 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectfilesystemlocation.html
881 */
882 interface ProjectFileSystemLocationProperty {
883 /**
884 * The name used to access a file system created by Amazon EFS. CodeBuild creates an environment variable by appending the `identifier` in all capital letters to `CODEBUILD_` . For example, if you specify `my_efs` for `identifier` , a new environment variable is create named `CODEBUILD_MY_EFS` .
885 *
886 * The `identifier` is used to mount your file system.
887 *
888 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectfilesystemlocation.html#cfn-codebuild-project-projectfilesystemlocation-identifier
889 */
890 readonly identifier: string;
891 /**
892 * A string that specifies the location of the file system created by Amazon EFS. Its format is `efs-dns-name:/directory-path` . You can find the DNS name of file system when you view it in the Amazon EFS console. The directory path is a path to a directory in the file system that CodeBuild mounts. For example, if the DNS name of a file system is `fs-abcd1234.efs.us-west-2.amazonaws.com` , and its mount directory is `my-efs-mount-directory` , then the `location` is `fs-abcd1234.efs.us-west-2.amazonaws.com:/my-efs-mount-directory` .
893 *
894 * The directory path in the format `efs-dns-name:/directory-path` is optional. If you do not specify a directory path, the location is only the DNS name and CodeBuild mounts the entire file system.
895 *
896 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectfilesystemlocation.html#cfn-codebuild-project-projectfilesystemlocation-location
897 */
898 readonly location: string;
899 /**
900 * The mount options for a file system created by Amazon EFS. The default mount options used by CodeBuild are `nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2` . For more information, see [Recommended NFS Mount Options](https://docs.aws.amazon.com/efs/latest/ug/mounting-fs-nfs-mount-settings.html) .
901 *
902 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectfilesystemlocation.html#cfn-codebuild-project-projectfilesystemlocation-mountoptions
903 */
904 readonly mountOptions?: string;
905 /**
906 * The location in the container where you mount the file system.
907 *
908 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectfilesystemlocation.html#cfn-codebuild-project-projectfilesystemlocation-mountpoint
909 */
910 readonly mountPoint: string;
911 /**
912 * The type of the file system. The one supported type is `EFS` .
913 *
914 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectfilesystemlocation.html#cfn-codebuild-project-projectfilesystemlocation-type
915 */
916 readonly type: string;
917 }
918}
919export declare namespace CfnProject {
920 /**
921 * A source identifier and its corresponding version.
922 *
923 * @struct
924 * @stability external
925 *
926 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectsourceversion.html
927 */
928 interface ProjectSourceVersionProperty {
929 /**
930 * An identifier for a source in the build project. The identifier can only contain alphanumeric characters and underscores, and must be less than 128 characters in length.
931 *
932 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectsourceversion.html#cfn-codebuild-project-projectsourceversion-sourceidentifier
933 */
934 readonly sourceIdentifier: string;
935 /**
936 * The source version for the corresponding source identifier. If specified, must be one of:
937 *
938 * - For CodeCommit: the commit ID, branch, or Git tag to use.
939 * - For GitHub: the commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format `pr/pull-request-ID` (for example, `pr/25` ). If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.
940 * - For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.
941 * - For Amazon S3: the version ID of the object that represents the build input ZIP file to use.
942 *
943 * For more information, see [Source Version Sample with CodeBuild](https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html) in the *AWS CodeBuild User Guide* .
944 *
945 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectsourceversion.html#cfn-codebuild-project-projectsourceversion-sourceversion
946 */
947 readonly sourceVersion?: string;
948 }
949}
950export declare namespace CfnProject {
951 /**
952 * `ProjectTriggers` is a property of the [AWS CodeBuild Project](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html) resource that specifies webhooks that trigger an AWS CodeBuild build.
953 *
954 * > The Webhook feature isn't available in AWS CloudFormation for GitHub Enterprise projects. Use the AWS CLI or AWS CodeBuild console to create the webhook.
955 *
956 * @struct
957 * @stability external
958 *
959 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projecttriggers.html
960 */
961 interface ProjectTriggersProperty {
962 /**
963 * Specifies the type of build this webhook will trigger. Allowed values are:
964 *
965 * - **BUILD** - A single build
966 * - **BUILD_BATCH** - A batch build
967 *
968 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projecttriggers.html#cfn-codebuild-project-projecttriggers-buildtype
969 */
970 readonly buildType?: string;
971 /**
972 * A list of lists of `WebhookFilter` objects used to determine which webhook events are triggered. At least one `WebhookFilter` in the array must specify `EVENT` as its type.
973 *
974 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projecttriggers.html#cfn-codebuild-project-projecttriggers-filtergroups
975 */
976 readonly filterGroups?: Array<Array<CfnProject.WebhookFilterProperty | cdk.IResolvable> | cdk.IResolvable | cdk.IResolvable> | cdk.IResolvable;
977 /**
978 * Specifies whether or not to begin automatically rebuilding the source code every time a code change is pushed to the repository.
979 *
980 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projecttriggers.html#cfn-codebuild-project-projecttriggers-webhook
981 */
982 readonly webhook?: boolean | cdk.IResolvable;
983 }
984}
985export declare namespace CfnProject {
986 /**
987 * `RegistryCredential` is a property of the [AWS CodeBuild Project Environment](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environment.html) property type that specifies information about credentials that provide access to a private Docker registry. When this is set:
988 *
989 * - `imagePullCredentialsType` must be set to `SERVICE_ROLE` .
990 * - images cannot be curated or an Amazon ECR image.
991 *
992 * For more information, see [Private Registry with AWS Secrets Manager Sample for AWS CodeBuild](https://docs.aws.amazon.com/codebuild/latest/userguide/sample-private-registry.html) .
993 *
994 * @struct
995 * @stability external
996 *
997 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-registrycredential.html
998 */
999 interface RegistryCredentialProperty {
1000 /**
1001 * The Amazon Resource Name (ARN) or name of credentials created using AWS Secrets Manager .
1002 *
1003 * > The `credential` can use the name of the credentials only if they exist in your current AWS Region .
1004 *
1005 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-registrycredential.html#cfn-codebuild-project-registrycredential-credential
1006 */
1007 readonly credential: string;
1008 /**
1009 * The service that created the credentials to access a private Docker registry. The valid value, SECRETS_MANAGER, is for AWS Secrets Manager .
1010 *
1011 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-registrycredential.html#cfn-codebuild-project-registrycredential-credentialprovider
1012 */
1013 readonly credentialProvider: string;
1014 }
1015}
1016export declare namespace CfnProject {
1017 /**
1018 * `S3Logs` is a property of the [AWS CodeBuild Project LogsConfig](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-logsconfig.html) property type that specifies settings for logs generated by an AWS CodeBuild build in an S3 bucket.
1019 *
1020 * @struct
1021 * @stability external
1022 *
1023 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-s3logsconfig.html
1024 */
1025 interface S3LogsConfigProperty {
1026 /**
1027 * Set to true if you do not want your S3 build log output encrypted. By default S3 build logs are encrypted.
1028 *
1029 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-s3logsconfig.html#cfn-codebuild-project-s3logsconfig-encryptiondisabled
1030 */
1031 readonly encryptionDisabled?: boolean | cdk.IResolvable;
1032 /**
1033 * The ARN of an S3 bucket and the path prefix for S3 logs. If your Amazon S3 bucket name is `my-bucket` , and your path prefix is `build-log` , then acceptable formats are `my-bucket/build-log` or `arn:aws:s3:::my-bucket/build-log` .
1034 *
1035 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-s3logsconfig.html#cfn-codebuild-project-s3logsconfig-location
1036 */
1037 readonly location?: string;
1038 /**
1039 * The current status of the S3 build logs. Valid values are:
1040 *
1041 * - `ENABLED` : S3 build logs are enabled for this build project.
1042 * - `DISABLED` : S3 build logs are not enabled for this build project.
1043 *
1044 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-s3logsconfig.html#cfn-codebuild-project-s3logsconfig-status
1045 */
1046 readonly status: string;
1047 }
1048}
1049export declare namespace CfnProject {
1050 /**
1051 * `Source` is a property of the [AWS::CodeBuild::Project](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html) resource that specifies the source code settings for the project, such as the source code's repository type and location.
1052 *
1053 * @struct
1054 * @stability external
1055 *
1056 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html
1057 */
1058 interface SourceProperty {
1059 /**
1060 * Information about the authorization settings for AWS CodeBuild to access the source code to be built.
1061 *
1062 * This information is for the AWS CodeBuild console's use only. Your code should not get or set `Auth` directly.
1063 *
1064 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html#cfn-codebuild-project-source-auth
1065 */
1066 readonly auth?: CfnProject.SourceAuthProperty | cdk.IResolvable;
1067 /**
1068 * The build specification for the project. If this value is not provided, then the source code must contain a buildspec file named `buildspec.yml` at the root level. If this value is provided, it can be either a single string containing the entire build specification, or the path to an alternate buildspec file relative to the value of the built-in environment variable `CODEBUILD_SRC_DIR` . The alternate buildspec file can have a name other than `buildspec.yml` , for example `myspec.yml` or `build_spec_qa.yml` or similar. For more information, see the [Build Spec Reference](https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec-ref-example) in the *AWS CodeBuild User Guide* .
1069 *
1070 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html#cfn-codebuild-project-source-buildspec
1071 */
1072 readonly buildSpec?: string;
1073 /**
1074 * Contains information that defines how the build project reports the build status to the source provider. This option is only used when the source provider is `GITHUB` , `GITHUB_ENTERPRISE` , or `BITBUCKET` .
1075 *
1076 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html#cfn-codebuild-project-source-buildstatusconfig
1077 */
1078 readonly buildStatusConfig?: CfnProject.BuildStatusConfigProperty | cdk.IResolvable;
1079 /**
1080 * The depth of history to download. Minimum value is 0. If this value is 0, greater than 25, or not provided, then the full history is downloaded with each build project. If your source type is Amazon S3, this value is not supported.
1081 *
1082 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html#cfn-codebuild-project-source-gitclonedepth
1083 */
1084 readonly gitCloneDepth?: number;
1085 /**
1086 * Information about the Git submodules configuration for the build project.
1087 *
1088 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html#cfn-codebuild-project-source-gitsubmodulesconfig
1089 */
1090 readonly gitSubmodulesConfig?: CfnProject.GitSubmodulesConfigProperty | cdk.IResolvable;
1091 /**
1092 * This is used with GitHub Enterprise only. Set to true to ignore SSL warnings while connecting to your GitHub Enterprise project repository. The default value is `false` . `InsecureSsl` should be used for testing purposes only. It should not be used in a production environment.
1093 *
1094 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html#cfn-codebuild-project-source-insecuressl
1095 */
1096 readonly insecureSsl?: boolean | cdk.IResolvable;
1097 /**
1098 * Information about the location of the source code to be built. Valid values include:
1099 *
1100 * - For source code settings that are specified in the source action of a pipeline in CodePipeline, `location` should not be specified. If it is specified, CodePipeline ignores it. This is because CodePipeline uses the settings in a pipeline's source action instead of this value.
1101 * - For source code in an CodeCommit repository, the HTTPS clone URL to the repository that contains the source code and the buildspec file (for example, `https://git-codecommit.<region-ID>.amazonaws.com/v1/repos/<repo-name>` ).
1102 * - For source code in an Amazon S3 input bucket, one of the following.
1103 *
1104 * - The path to the ZIP file that contains the source code (for example, `<bucket-name>/<path>/<object-name>.zip` ).
1105 * - The path to the folder that contains the source code (for example, `<bucket-name>/<path-to-source-code>/<folder>/` ).
1106 * - For source code in a GitHub repository, the HTTPS clone URL to the repository that contains the source and the buildspec file. You must connect your AWS account to your GitHub account. Use the AWS CodeBuild console to start creating a build project. When you use the console to connect (or reconnect) with GitHub, on the GitHub *Authorize application* page, for *Organization access* , choose *Request access* next to each repository you want to allow AWS CodeBuild to have access to, and then choose *Authorize application* . (After you have connected to your GitHub account, you do not need to finish creating the build project. You can leave the AWS CodeBuild console.) To instruct AWS CodeBuild to use this connection, in the `source` object, set the `auth` object's `type` value to `OAUTH` .
1107 * - For source code in a Bitbucket repository, the HTTPS clone URL to the repository that contains the source and the buildspec file. You must connect your AWS account to your Bitbucket account. Use the AWS CodeBuild console to start creating a build project. When you use the console to connect (or reconnect) with Bitbucket, on the Bitbucket *Confirm access to your account* page, choose *Grant access* . (After you have connected to your Bitbucket account, you do not need to finish creating the build project. You can leave the AWS CodeBuild console.) To instruct AWS CodeBuild to use this connection, in the `source` object, set the `auth` object's `type` value to `OAUTH` .
1108 *
1109 * If you specify `CODEPIPELINE` for the `Type` property, don't specify this property. For all of the other types, you must specify `Location` .
1110 *
1111 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html#cfn-codebuild-project-source-location
1112 */
1113 readonly location?: string;
1114 /**
1115 * Set to true to report the status of a build's start and finish to your source provider. This option is valid only when your source provider is GitHub, GitHub Enterprise, or Bitbucket. If this is set and you use a different source provider, an `invalidInputException` is thrown.
1116 *
1117 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html#cfn-codebuild-project-source-reportbuildstatus
1118 */
1119 readonly reportBuildStatus?: boolean | cdk.IResolvable;
1120 /**
1121 * An identifier for this project source. The identifier can only contain alphanumeric characters and underscores, and must be less than 128 characters in length.
1122 *
1123 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html#cfn-codebuild-project-source-sourceidentifier
1124 */
1125 readonly sourceIdentifier?: string;
1126 /**
1127 * The type of repository that contains the source code to be built. Valid values include:
1128 *
1129 * - `BITBUCKET` : The source code is in a Bitbucket repository.
1130 * - `CODECOMMIT` : The source code is in an CodeCommit repository.
1131 * - `CODEPIPELINE` : The source code settings are specified in the source action of a pipeline in CodePipeline.
1132 * - `GITHUB` : The source code is in a GitHub or GitHub Enterprise Cloud repository.
1133 * - `GITHUB_ENTERPRISE` : The source code is in a GitHub Enterprise Server repository.
1134 * - `NO_SOURCE` : The project does not have input source code.
1135 * - `S3` : The source code is in an Amazon S3 bucket.
1136 *
1137 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html#cfn-codebuild-project-source-type
1138 */
1139 readonly type: string;
1140 }
1141}
1142export declare namespace CfnProject {
1143 /**
1144 * `SourceAuth` is a property of the [AWS CodeBuild Project Source](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html) property type that specifies authorization settings for AWS CodeBuild to access the source code to be built.
1145 *
1146 * `SourceAuth` is for use by the CodeBuild console only. Do not get or set it directly.
1147 *
1148 * @struct
1149 * @stability external
1150 *
1151 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-sourceauth.html
1152 */
1153 interface SourceAuthProperty {
1154 /**
1155 * The resource value that applies to the specified authorization type.
1156 *
1157 * > This data type is used by the AWS CodeBuild console only.
1158 *
1159 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-sourceauth.html#cfn-codebuild-project-sourceauth-resource
1160 */
1161 readonly resource?: string;
1162 /**
1163 * The authorization type to use. The only valid value is `OAUTH` , which represents the OAuth authorization type.
1164 *
1165 * > This data type is used by the AWS CodeBuild console only.
1166 *
1167 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-sourceauth.html#cfn-codebuild-project-sourceauth-type
1168 */
1169 readonly type: string;
1170 }
1171}
1172export declare namespace CfnProject {
1173 /**
1174 * `VpcConfig` is a property of the [AWS::CodeBuild::Project](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html) resource that enable AWS CodeBuild to access resources in an Amazon VPC. For more information, see [Use AWS CodeBuild with Amazon Virtual Private Cloud](https://docs.aws.amazon.com/codebuild/latest/userguide/vpc-support.html) in the *AWS CodeBuild User Guide* .
1175 *
1176 * @struct
1177 * @stability external
1178 *
1179 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-vpcconfig.html
1180 */
1181 interface VpcConfigProperty {
1182 /**
1183 * A list of one or more security groups IDs in your Amazon VPC. The maximum count is 5.
1184 *
1185 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-vpcconfig.html#cfn-codebuild-project-vpcconfig-securitygroupids
1186 */
1187 readonly securityGroupIds?: string[];
1188 /**
1189 * A list of one or more subnet IDs in your Amazon VPC. The maximum count is 16.
1190 *
1191 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-vpcconfig.html#cfn-codebuild-project-vpcconfig-subnets
1192 */
1193 readonly subnets?: string[];
1194 /**
1195 * The ID of the Amazon VPC.
1196 *
1197 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-vpcconfig.html#cfn-codebuild-project-vpcconfig-vpcid
1198 */
1199 readonly vpcId?: string;
1200 }
1201}
1202export declare namespace CfnProject {
1203 /**
1204 * `WebhookFilter` is a structure of the `FilterGroups` property on the [AWS CodeBuild Project ProjectTriggers](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projecttriggers.html) property type that specifies which webhooks trigger an AWS CodeBuild build.
1205 *
1206 * > The Webhook feature isn't available in AWS CloudFormation for GitHub Enterprise projects. Use the AWS CLI or AWS CodeBuild console to create the webhook.
1207 *
1208 * @struct
1209 * @stability external
1210 *
1211 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-webhookfilter.html
1212 */
1213 interface WebhookFilterProperty {
1214 /**
1215 * Used to indicate that the `pattern` determines which webhook events do not trigger a build. If true, then a webhook event that does not match the `pattern` triggers a build. If false, then a webhook event that matches the `pattern` triggers a build.
1216 *
1217 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-webhookfilter.html#cfn-codebuild-project-webhookfilter-excludematchedpattern
1218 */
1219 readonly excludeMatchedPattern?: boolean | cdk.IResolvable;
1220 /**
1221 * For a `WebHookFilter` that uses `EVENT` type, a comma-separated string that specifies one or more events. For example, the webhook filter `PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED` allows all push, pull request created, and pull request updated events to trigger a build.
1222 *
1223 * For a `WebHookFilter` that uses any of the other filter types, a regular expression pattern. For example, a `WebHookFilter` that uses `HEAD_REF` for its `type` and the pattern `^refs/heads/` triggers a build when the head reference is a branch with a reference name `refs/heads/branch-name` .
1224 *
1225 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-webhookfilter.html#cfn-codebuild-project-webhookfilter-pattern
1226 */
1227 readonly pattern: string;
1228 /**
1229 * The type of webhook filter. There are six webhook filter types: `EVENT` , `ACTOR_ACCOUNT_ID` , `HEAD_REF` , `BASE_REF` , `FILE_PATH` , and `COMMIT_MESSAGE` .
1230 *
1231 * - **EVENT** - A webhook event triggers a build when the provided `pattern` matches one of five event types: `PUSH` , `PULL_REQUEST_CREATED` , `PULL_REQUEST_UPDATED` , `PULL_REQUEST_REOPENED` , and `PULL_REQUEST_MERGED` . The `EVENT` patterns are specified as a comma-separated string. For example, `PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED` filters all push, pull request created, and pull request updated events.
1232 *
1233 * > The `PULL_REQUEST_REOPENED` works with GitHub and GitHub Enterprise only.
1234 * - **ACTOR_ACCOUNT_ID** - A webhook event triggers a build when a GitHub, GitHub Enterprise, or Bitbucket account ID matches the regular expression `pattern` .
1235 * - **HEAD_REF** - A webhook event triggers a build when the head reference matches the regular expression `pattern` . For example, `refs/heads/branch-name` and `refs/tags/tag-name` .
1236 *
1237 * Works with GitHub and GitHub Enterprise push, GitHub and GitHub Enterprise pull request, Bitbucket push, and Bitbucket pull request events.
1238 * - **BASE_REF** - A webhook event triggers a build when the base reference matches the regular expression `pattern` . For example, `refs/heads/branch-name` .
1239 *
1240 * > Works with pull request events only.
1241 * - **FILE_PATH** - A webhook triggers a build when the path of a changed file matches the regular expression `pattern` .
1242 *
1243 * > Works with GitHub and Bitbucket events push and pull requests events. Also works with GitHub Enterprise push events, but does not work with GitHub Enterprise pull request events.
1244 * - **COMMIT_MESSAGE** - A webhook triggers a build when the head commit message matches the regular expression `pattern` .
1245 *
1246 * > Works with GitHub and Bitbucket events push and pull requests events. Also works with GitHub Enterprise push events, but does not work with GitHub Enterprise pull request events.
1247 *
1248 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-webhookfilter.html#cfn-codebuild-project-webhookfilter-type
1249 */
1250 readonly type: string;
1251 }
1252}
1253/**
1254 * Properties for defining a `CfnReportGroup`
1255 *
1256 * @struct
1257 * @stability external
1258 *
1259 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-reportgroup.html
1260 */
1261export interface CfnReportGroupProps {
1262 /**
1263 * Information about the destination where the raw data of this `ReportGroup` is exported.
1264 *
1265 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-reportgroup.html#cfn-codebuild-reportgroup-exportconfig
1266 */
1267 readonly exportConfig: CfnReportGroup.ReportExportConfigProperty | cdk.IResolvable;
1268 /**
1269 * The type of the `ReportGroup` . This can be one of the following values:
1270 *
1271 * - **CODE_COVERAGE** - The report group contains code coverage reports.
1272 * - **TEST** - The report group contains test reports.
1273 *
1274 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-reportgroup.html#cfn-codebuild-reportgroup-type
1275 */
1276 readonly type: string;
1277 /**
1278 * When deleting a report group, specifies if reports within the report group should be deleted.
1279 *
1280 * - **true** - Deletes any reports that belong to the report group before deleting the report group.
1281 * - **false** - You must delete any reports in the report group. This is the default value. If you delete a report group that contains one or more reports, an exception is thrown.
1282 *
1283 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-reportgroup.html#cfn-codebuild-reportgroup-deletereports
1284 */
1285 readonly deleteReports?: boolean | cdk.IResolvable;
1286 /**
1287 * The name of the `ReportGroup` .
1288 *
1289 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-reportgroup.html#cfn-codebuild-reportgroup-name
1290 */
1291 readonly name?: string;
1292 /**
1293 * A list of tag key and value pairs associated with this report group.
1294 *
1295 * These tags are available for use by AWS services that support AWS CodeBuild report group tags.
1296 *
1297 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-reportgroup.html#cfn-codebuild-reportgroup-tags
1298 */
1299 readonly tags?: cdk.CfnTag[];
1300}
1301/**
1302 * A CloudFormation `AWS::CodeBuild::ReportGroup`
1303 *
1304 * Represents a report group. A report group contains a collection of reports.
1305 *
1306 * @cloudformationResource AWS::CodeBuild::ReportGroup
1307 * @stability external
1308 *
1309 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-reportgroup.html
1310 */
1311export declare class CfnReportGroup extends cdk.CfnResource implements cdk.IInspectable {
1312 /**
1313 * The CloudFormation resource type name for this resource class.
1314 */
1315 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CodeBuild::ReportGroup";
1316 /**
1317 * A factory method that creates a new instance of this class from an object
1318 * containing the CloudFormation properties of this resource.
1319 * Used in the @aws-cdk/cloudformation-include module.
1320 *
1321 * @internal
1322 */
1323 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnReportGroup;
1324 /**
1325 * The ARN of the AWS CodeBuild report group, such as `arn:aws:codebuild:region:123456789012:report-group/myReportGroupName` .
1326 * @cloudformationAttribute Arn
1327 */
1328 readonly attrArn: string;
1329 /**
1330 * Information about the destination where the raw data of this `ReportGroup` is exported.
1331 *
1332 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-reportgroup.html#cfn-codebuild-reportgroup-exportconfig
1333 */
1334 exportConfig: CfnReportGroup.ReportExportConfigProperty | cdk.IResolvable;
1335 /**
1336 * The type of the `ReportGroup` . This can be one of the following values:
1337 *
1338 * - **CODE_COVERAGE** - The report group contains code coverage reports.
1339 * - **TEST** - The report group contains test reports.
1340 *
1341 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-reportgroup.html#cfn-codebuild-reportgroup-type
1342 */
1343 type: string;
1344 /**
1345 * When deleting a report group, specifies if reports within the report group should be deleted.
1346 *
1347 * - **true** - Deletes any reports that belong to the report group before deleting the report group.
1348 * - **false** - You must delete any reports in the report group. This is the default value. If you delete a report group that contains one or more reports, an exception is thrown.
1349 *
1350 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-reportgroup.html#cfn-codebuild-reportgroup-deletereports
1351 */
1352 deleteReports: boolean | cdk.IResolvable | undefined;
1353 /**
1354 * The name of the `ReportGroup` .
1355 *
1356 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-reportgroup.html#cfn-codebuild-reportgroup-name
1357 */
1358 name: string | undefined;
1359 /**
1360 * A list of tag key and value pairs associated with this report group.
1361 *
1362 * These tags are available for use by AWS services that support AWS CodeBuild report group tags.
1363 *
1364 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-reportgroup.html#cfn-codebuild-reportgroup-tags
1365 */
1366 readonly tags: cdk.TagManager;
1367 /**
1368 * Create a new `AWS::CodeBuild::ReportGroup`.
1369 *
1370 * @param scope - scope in which this resource is defined
1371 * @param id - scoped id of the resource
1372 * @param props - resource properties
1373 */
1374 constructor(scope: cdk.Construct, id: string, props: CfnReportGroupProps);
1375 /**
1376 * Examines the CloudFormation resource and discloses attributes.
1377 *
1378 * @param inspector - tree inspector to collect and process attributes
1379 *
1380 */
1381 inspect(inspector: cdk.TreeInspector): void;
1382 protected get cfnProperties(): {
1383 [key: string]: any;
1384 };
1385 protected renderProperties(props: {
1386 [key: string]: any;
1387 }): {
1388 [key: string]: any;
1389 };
1390}
1391export declare namespace CfnReportGroup {
1392 /**
1393 * Information about the location where the run of a report is exported.
1394 *
1395 * @struct
1396 * @stability external
1397 *
1398 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-reportgroup-reportexportconfig.html
1399 */
1400 interface ReportExportConfigProperty {
1401 /**
1402 * The export configuration type. Valid values are:
1403 *
1404 * - `S3` : The report results are exported to an S3 bucket.
1405 * - `NO_EXPORT` : The report results are not exported.
1406 *
1407 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-reportgroup-reportexportconfig.html#cfn-codebuild-reportgroup-reportexportconfig-exportconfigtype
1408 */
1409 readonly exportConfigType: string;
1410 /**
1411 * A `S3ReportExportConfig` object that contains information about the S3 bucket where the run of a report is exported.
1412 *
1413 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-reportgroup-reportexportconfig.html#cfn-codebuild-reportgroup-reportexportconfig-s3destination
1414 */
1415 readonly s3Destination?: CfnReportGroup.S3ReportExportConfigProperty | cdk.IResolvable;
1416 }
1417}
1418export declare namespace CfnReportGroup {
1419 /**
1420 * Information about the S3 bucket where the raw data of a report are exported.
1421 *
1422 * @struct
1423 * @stability external
1424 *
1425 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-reportgroup-s3reportexportconfig.html
1426 */
1427 interface S3ReportExportConfigProperty {
1428 /**
1429 * The name of the S3 bucket where the raw data of a report are exported.
1430 *
1431 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-reportgroup-s3reportexportconfig.html#cfn-codebuild-reportgroup-s3reportexportconfig-bucket
1432 */
1433 readonly bucket: string;
1434 /**
1435 * The AWS account identifier of the owner of the Amazon S3 bucket. This allows report data to be exported to an Amazon S3 bucket that is owned by an account other than the account running the build.
1436 *
1437 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-reportgroup-s3reportexportconfig.html#cfn-codebuild-reportgroup-s3reportexportconfig-bucketowner
1438 */
1439 readonly bucketOwner?: string;
1440 /**
1441 * A boolean value that specifies if the results of a report are encrypted.
1442 *
1443 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-reportgroup-s3reportexportconfig.html#cfn-codebuild-reportgroup-s3reportexportconfig-encryptiondisabled
1444 */
1445 readonly encryptionDisabled?: boolean | cdk.IResolvable;
1446 /**
1447 * The encryption key for the report's encrypted raw data.
1448 *
1449 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-reportgroup-s3reportexportconfig.html#cfn-codebuild-reportgroup-s3reportexportconfig-encryptionkey
1450 */
1451 readonly encryptionKey?: string;
1452 /**
1453 * The type of build output artifact to create. Valid values include:
1454 *
1455 * - `NONE` : CodeBuild creates the raw data in the output bucket. This is the default if packaging is not specified.
1456 * - `ZIP` : CodeBuild creates a ZIP file with the raw data in the output bucket.
1457 *
1458 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-reportgroup-s3reportexportconfig.html#cfn-codebuild-reportgroup-s3reportexportconfig-packaging
1459 */
1460 readonly packaging?: string;
1461 /**
1462 * The path to the exported report's raw data results.
1463 *
1464 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-reportgroup-s3reportexportconfig.html#cfn-codebuild-reportgroup-s3reportexportconfig-path
1465 */
1466 readonly path?: string;
1467 }
1468}
1469/**
1470 * Properties for defining a `CfnSourceCredential`
1471 *
1472 * @struct
1473 * @stability external
1474 *
1475 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-sourcecredential.html
1476 */
1477export interface CfnSourceCredentialProps {
1478 /**
1479 * The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, or PERSONAL_ACCESS_TOKEN.
1480 *
1481 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-sourcecredential.html#cfn-codebuild-sourcecredential-authtype
1482 */
1483 readonly authType: string;
1484 /**
1485 * The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, or BITBUCKET.
1486 *
1487 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-sourcecredential.html#cfn-codebuild-sourcecredential-servertype
1488 */
1489 readonly serverType: string;
1490 /**
1491 * For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password.
1492 *
1493 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-sourcecredential.html#cfn-codebuild-sourcecredential-token
1494 */
1495 readonly token: string;
1496 /**
1497 * The Bitbucket username when the `authType` is BASIC_AUTH. This parameter is not valid for other types of source providers or connections.
1498 *
1499 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-sourcecredential.html#cfn-codebuild-sourcecredential-username
1500 */
1501 readonly username?: string;
1502}
1503/**
1504 * A CloudFormation `AWS::CodeBuild::SourceCredential`
1505 *
1506 * Information about the credentials for a GitHub, GitHub Enterprise, or Bitbucket repository. We strongly recommend that you use AWS Secrets Manager to store your credentials. If you use Secrets Manager , you must have secrets in your secrets manager. For more information, see [Using Dynamic References to Specify Template Values](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/dynamic-references.html#dynamic-references-secretsmanager) .
1507 *
1508 * > For security purposes, do not use plain text in your AWS CloudFormation template to store your credentials.
1509 *
1510 * @cloudformationResource AWS::CodeBuild::SourceCredential
1511 * @stability external
1512 *
1513 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-sourcecredential.html
1514 */
1515export declare class CfnSourceCredential extends cdk.CfnResource implements cdk.IInspectable {
1516 /**
1517 * The CloudFormation resource type name for this resource class.
1518 */
1519 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CodeBuild::SourceCredential";
1520 /**
1521 * A factory method that creates a new instance of this class from an object
1522 * containing the CloudFormation properties of this resource.
1523 * Used in the @aws-cdk/cloudformation-include module.
1524 *
1525 * @internal
1526 */
1527 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnSourceCredential;
1528 /**
1529 * The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, or PERSONAL_ACCESS_TOKEN.
1530 *
1531 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-sourcecredential.html#cfn-codebuild-sourcecredential-authtype
1532 */
1533 authType: string;
1534 /**
1535 * The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, or BITBUCKET.
1536 *
1537 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-sourcecredential.html#cfn-codebuild-sourcecredential-servertype
1538 */
1539 serverType: string;
1540 /**
1541 * For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password.
1542 *
1543 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-sourcecredential.html#cfn-codebuild-sourcecredential-token
1544 */
1545 token: string;
1546 /**
1547 * The Bitbucket username when the `authType` is BASIC_AUTH. This parameter is not valid for other types of source providers or connections.
1548 *
1549 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-sourcecredential.html#cfn-codebuild-sourcecredential-username
1550 */
1551 username: string | undefined;
1552 /**
1553 * Create a new `AWS::CodeBuild::SourceCredential`.
1554 *
1555 * @param scope - scope in which this resource is defined
1556 * @param id - scoped id of the resource
1557 * @param props - resource properties
1558 */
1559 constructor(scope: cdk.Construct, id: string, props: CfnSourceCredentialProps);
1560 /**
1561 * Examines the CloudFormation resource and discloses attributes.
1562 *
1563 * @param inspector - tree inspector to collect and process attributes
1564 *
1565 */
1566 inspect(inspector: cdk.TreeInspector): void;
1567 protected get cfnProperties(): {
1568 [key: string]: any;
1569 };
1570 protected renderProperties(props: {
1571 [key: string]: any;
1572 }): {
1573 [key: string]: any;
1574 };
1575}