UNPKG

102 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 * @cloudformationResource AWS::CodeBuild::Project
185 * @stability external
186 *
187 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html
188 */
189export declare class CfnProject extends cdk.CfnResource implements cdk.IInspectable {
190 /**
191 * The CloudFormation resource type name for this resource class.
192 */
193 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CodeBuild::Project";
194 /**
195 * A factory method that creates a new instance of this class from an object
196 * containing the CloudFormation properties of this resource.
197 * Used in the @aws-cdk/cloudformation-include module.
198 *
199 * @internal
200 */
201 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnProject;
202 /**
203 * The ARN of the AWS CodeBuild project, such as `arn:aws:codebuild:us-west-2:123456789012:project/myProjectName` .
204 * @cloudformationAttribute Arn
205 */
206 readonly attrArn: string;
207 /**
208 * `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.
209 *
210 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-artifacts
211 */
212 artifacts: CfnProject.ArtifactsProperty | cdk.IResolvable;
213 /**
214 * The build environment settings for the project, such as the environment type or the environment variables to use for the build environment.
215 *
216 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-environment
217 */
218 environment: CfnProject.EnvironmentProperty | cdk.IResolvable;
219 /**
220 * The ARN of the IAM role that enables AWS CodeBuild to interact with dependent AWS services on behalf of the AWS account.
221 *
222 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-servicerole
223 */
224 serviceRole: string;
225 /**
226 * The source code settings for the project, such as the source code's repository type and location.
227 *
228 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-source
229 */
230 source: CfnProject.SourceProperty | cdk.IResolvable;
231 /**
232 * 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* .
233 *
234 * > 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.
235 *
236 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-badgeenabled
237 */
238 badgeEnabled: boolean | cdk.IResolvable | undefined;
239 /**
240 * A `ProjectBuildBatchConfig` object that defines the batch build options for the project.
241 *
242 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-buildbatchconfig
243 */
244 buildBatchConfig: CfnProject.ProjectBuildBatchConfigProperty | cdk.IResolvable | undefined;
245 /**
246 * Settings that AWS CodeBuild uses to store and reuse build dependencies.
247 *
248 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-cache
249 */
250 cache: CfnProject.ProjectCacheProperty | cdk.IResolvable | undefined;
251 /**
252 * The maximum number of concurrent builds that are allowed for this project.
253 *
254 * 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.
255 *
256 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-concurrentbuildlimit
257 */
258 concurrentBuildLimit: number | undefined;
259 /**
260 * A description that makes the build project easy to identify.
261 *
262 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-description
263 */
264 description: string | undefined;
265 /**
266 * The AWS Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts.
267 *
268 * > You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.
269 *
270 * 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).
271 *
272 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-encryptionkey
273 */
274 encryptionKey: string | undefined;
275 /**
276 * 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.
277 *
278 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-filesystemlocations
279 */
280 fileSystemLocations: Array<CfnProject.ProjectFileSystemLocationProperty | cdk.IResolvable> | cdk.IResolvable | undefined;
281 /**
282 * Information about logs for the build project. A project can create logs in CloudWatch Logs, an S3 bucket, or both.
283 *
284 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-logsconfig
285 */
286 logsConfig: CfnProject.LogsConfigProperty | cdk.IResolvable | undefined;
287 /**
288 * The name of the build project. The name must be unique across all of the projects in your AWS account .
289 *
290 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-name
291 */
292 name: string | undefined;
293 /**
294 * The number of minutes a build is allowed to be queued before it times out.
295 *
296 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-queuedtimeoutinminutes
297 */
298 queuedTimeoutInMinutes: number | undefined;
299 /**
300 * The ARN of the IAM role that enables CodeBuild to access the CloudWatch Logs and Amazon S3 artifacts for the project's builds.
301 *
302 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-resourceaccessrole
303 */
304 resourceAccessRole: string | undefined;
305 /**
306 * A list of `Artifacts` objects. Each artifacts object specifies output settings that the project generates during a build.
307 *
308 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-secondaryartifacts
309 */
310 secondaryArtifacts: Array<CfnProject.ArtifactsProperty | cdk.IResolvable> | cdk.IResolvable | undefined;
311 /**
312 * An array of `ProjectSource` objects.
313 *
314 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-secondarysources
315 */
316 secondarySources: Array<CfnProject.SourceProperty | cdk.IResolvable> | cdk.IResolvable | undefined;
317 /**
318 * An array of `ProjectSourceVersion` objects. If `secondarySourceVersions` is specified at the build level, then they take over these `secondarySourceVersions` (at the project level).
319 *
320 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-secondarysourceversions
321 */
322 secondarySourceVersions: Array<CfnProject.ProjectSourceVersionProperty | cdk.IResolvable> | cdk.IResolvable | undefined;
323 /**
324 * 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:
325 *
326 * - For CodeCommit: the commit ID, branch, or Git tag to use.
327 * - 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.
328 * - 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.
329 * - For Amazon S3: the version ID of the object that represents the build input ZIP file to use.
330 *
331 * If `sourceVersion` is specified at the build level, then that version takes precedence over this `sourceVersion` (at the project level).
332 *
333 * 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* .
334 *
335 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-sourceversion
336 */
337 sourceVersion: string | undefined;
338 /**
339 * An arbitrary set of tags (key-value pairs) for the AWS CodeBuild project.
340 *
341 * These tags are available for use by AWS services that support AWS CodeBuild build project tags.
342 *
343 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-tags
344 */
345 readonly tags: cdk.TagManager;
346 /**
347 * 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.
348 *
349 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-timeoutinminutes
350 */
351 timeoutInMinutes: number | undefined;
352 /**
353 * 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.
354 *
355 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-triggers
356 */
357 triggers: CfnProject.ProjectTriggersProperty | cdk.IResolvable | undefined;
358 /**
359 * Specifies the visibility of the project's builds. Possible values are:
360 *
361 * - **PUBLIC_READ** - The project builds are visible to the public.
362 * - **PRIVATE** - The project builds are not visible to the public.
363 *
364 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-visibility
365 */
366 visibility: string | undefined;
367 /**
368 * `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* .
369 *
370 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-vpcconfig
371 */
372 vpcConfig: CfnProject.VpcConfigProperty | cdk.IResolvable | undefined;
373 /**
374 * Create a new `AWS::CodeBuild::Project`.
375 *
376 * @param scope - scope in which this resource is defined
377 * @param id - scoped id of the resource
378 * @param props - resource properties
379 */
380 constructor(scope: cdk.Construct, id: string, props: CfnProjectProps);
381 /**
382 * Examines the CloudFormation resource and discloses attributes.
383 *
384 * @param inspector - tree inspector to collect and process attributes
385 *
386 */
387 inspect(inspector: cdk.TreeInspector): void;
388 protected get cfnProperties(): {
389 [key: string]: any;
390 };
391 protected renderProperties(props: {
392 [key: string]: any;
393 }): {
394 [key: string]: any;
395 };
396}
397export declare namespace CfnProject {
398 /**
399 * `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.
400 *
401 * @struct
402 * @stability external
403 *
404 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-artifacts.html
405 */
406 interface ArtifactsProperty {
407 /**
408 * An identifier for this artifact definition.
409 *
410 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-artifacts.html#cfn-codebuild-project-artifacts-artifactidentifier
411 */
412 readonly artifactIdentifier?: string;
413 /**
414 * 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.
415 *
416 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-artifacts.html#cfn-codebuild-project-artifacts-encryptiondisabled
417 */
418 readonly encryptionDisabled?: boolean | cdk.IResolvable;
419 /**
420 * Information about the build output artifact location:
421 *
422 * - 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 .
423 * - If `type` is set to `NO_ARTIFACTS` , this value is ignored if specified, because no build output is produced.
424 * - If `type` is set to `S3` , this is the name of the output bucket.
425 *
426 * 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.
427 *
428 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-artifacts.html#cfn-codebuild-project-artifacts-location
429 */
430 readonly location?: string;
431 /**
432 * Along with `path` and `namespaceType` , the pattern that AWS CodeBuild uses to name and store the output artifact:
433 *
434 * - 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 .
435 * - If `type` is set to `NO_ARTIFACTS` , this value is ignored if specified, because no build output is produced.
436 * - 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.
437 *
438 * For example:
439 *
440 * - 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` .
441 * - 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.
442 * - 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*` .
443 *
444 * 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.
445 *
446 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-artifacts.html#cfn-codebuild-project-artifacts-name
447 */
448 readonly name?: string;
449 /**
450 * Along with `path` and `name` , the pattern that AWS CodeBuild uses to determine the name and location to store the output artifact:
451 *
452 * - 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 .
453 * - If `type` is set to `NO_ARTIFACTS` , this value is ignored if specified, because no build output is produced.
454 * - If `type` is set to `S3` , valid values include:
455 *
456 * - `BUILD_ID` : Include the build ID in the location of the build output artifact.
457 * - `NONE` : Do not include the build ID. This is the default if `namespaceType` is not specified.
458 *
459 * 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` .
460 *
461 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-artifacts.html#cfn-codebuild-project-artifacts-namespacetype
462 */
463 readonly namespaceType?: string;
464 /**
465 * 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.
466 *
467 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-artifacts.html#cfn-codebuild-project-artifacts-overrideartifactname
468 */
469 readonly overrideArtifactName?: boolean | cdk.IResolvable;
470 /**
471 * The type of build output artifact to create:
472 *
473 * - 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 .
474 * - If `type` is set to `NO_ARTIFACTS` , this value is ignored if specified, because no build output is produced.
475 * - If `type` is set to `S3` , valid values include:
476 *
477 * - `NONE` : AWS CodeBuild creates in the output bucket a folder that contains the build output. This is the default if `packaging` is not specified.
478 * - `ZIP` : AWS CodeBuild creates in the output bucket a ZIP file that contains the build output.
479 *
480 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-artifacts.html#cfn-codebuild-project-artifacts-packaging
481 */
482 readonly packaging?: string;
483 /**
484 * Along with `namespaceType` and `name` , the pattern that AWS CodeBuild uses to name and store the output artifact:
485 *
486 * - 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 .
487 * - If `type` is set to `NO_ARTIFACTS` , this value is ignored if specified, because no build output is produced.
488 * - If `type` is set to `S3` , this is the path to the output artifact. If `path` is not specified, `path` is not used.
489 *
490 * 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` .
491 *
492 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-artifacts.html#cfn-codebuild-project-artifacts-path
493 */
494 readonly path?: string;
495 /**
496 * The type of build output artifact. Valid values include:
497 *
498 * - `CODEPIPELINE` : The build project has build output generated through CodePipeline.
499 *
500 * > The `CODEPIPELINE` type is not supported for `secondaryArtifacts` .
501 * - `NO_ARTIFACTS` : The build project does not produce any build output.
502 * - `S3` : The build project stores build output in Amazon S3.
503 *
504 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-artifacts.html#cfn-codebuild-project-artifacts-type
505 */
506 readonly type: string;
507 }
508}
509export declare namespace CfnProject {
510 /**
511 * Specifies restrictions for the batch build.
512 *
513 * @struct
514 * @stability external
515 *
516 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-batchrestrictions.html
517 */
518 interface BatchRestrictionsProperty {
519 /**
520 * 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.
521 *
522 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-batchrestrictions.html#cfn-codebuild-project-batchrestrictions-computetypesallowed
523 */
524 readonly computeTypesAllowed?: string[];
525 /**
526 * Specifies the maximum number of builds allowed.
527 *
528 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-batchrestrictions.html#cfn-codebuild-project-batchrestrictions-maximumbuildsallowed
529 */
530 readonly maximumBuildsAllowed?: number;
531 }
532}
533export declare namespace CfnProject {
534 /**
535 * Contains information that defines how the AWS CodeBuild build project reports the build status to the source provider.
536 *
537 * @struct
538 * @stability external
539 *
540 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-buildstatusconfig.html
541 */
542 interface BuildStatusConfigProperty {
543 /**
544 * Specifies the context of the build status CodeBuild sends to the source provider. The usage of this parameter depends on the source provider.
545 *
546 * - **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.
547 * - **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.
548 *
549 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-buildstatusconfig.html#cfn-codebuild-project-buildstatusconfig-context
550 */
551 readonly context?: string;
552 /**
553 * Specifies the target url of the build status CodeBuild sends to the source provider. The usage of this parameter depends on the source provider.
554 *
555 * - **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.
556 * - **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.
557 *
558 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-buildstatusconfig.html#cfn-codebuild-project-buildstatusconfig-targeturl
559 */
560 readonly targetUrl?: string;
561 }
562}
563export declare namespace CfnProject {
564 /**
565 * `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.
566 *
567 * @struct
568 * @stability external
569 *
570 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-cloudwatchlogsconfig.html
571 */
572 interface CloudWatchLogsConfigProperty {
573 /**
574 * 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) .
575 *
576 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-cloudwatchlogsconfig.html#cfn-codebuild-project-cloudwatchlogsconfig-groupname
577 */
578 readonly groupName?: string;
579 /**
580 * The current status of the logs in CloudWatch Logs for a build project. Valid values are:
581 *
582 * - `ENABLED` : CloudWatch Logs are enabled for this build project.
583 * - `DISABLED` : CloudWatch Logs are not enabled for this build project.
584 *
585 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-cloudwatchlogsconfig.html#cfn-codebuild-project-cloudwatchlogsconfig-status
586 */
587 readonly status: string;
588 /**
589 * 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) .
590 *
591 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-cloudwatchlogsconfig.html#cfn-codebuild-project-cloudwatchlogsconfig-streamname
592 */
593 readonly streamName?: string;
594 }
595}
596export declare namespace CfnProject {
597 /**
598 * `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.
599 *
600 * @struct
601 * @stability external
602 *
603 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environment.html
604 */
605 interface EnvironmentProperty {
606 /**
607 * 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* .
608 *
609 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environment.html#cfn-codebuild-project-environment-certificate
610 */
611 readonly certificate?: string;
612 /**
613 * The type of compute environment. This determines the number of CPU cores and memory the build environment uses. Available values include:
614 *
615 * - `BUILD_GENERAL1_SMALL` : Use up to 3 GB memory and 2 vCPUs for builds.
616 * - `BUILD_GENERAL1_MEDIUM` : Use up to 7 GB memory and 4 vCPUs for builds.
617 * - `BUILD_GENERAL1_LARGE` : Use up to 15 GB memory and 8 vCPUs for builds.
618 *
619 * 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.*
620 *
621 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environment.html#cfn-codebuild-project-environment-computetype
622 */
623 readonly computeType: string;
624 /**
625 * A set of environment variables to make available to builds for this build project.
626 *
627 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environment.html#cfn-codebuild-project-environment-environmentvariables
628 */
629 readonly environmentVariables?: Array<CfnProject.EnvironmentVariableProperty | cdk.IResolvable> | cdk.IResolvable;
630 /**
631 * The image tag or image digest that identifies the Docker image to use for this build project. Use the following formats:
632 *
633 * - 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` .
634 * - For an image digest: `<registry>/<repository>@<digest>` . For example, to specify an image with the digest "sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0382cfbdbf," use `<registry>/<repository>@sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0382cfbdbf` .
635 *
636 * 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* .
637 *
638 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environment.html#cfn-codebuild-project-environment-image
639 */
640 readonly image: string;
641 /**
642 * The type of credentials AWS CodeBuild uses to pull images in your build. There are two valid values:
643 *
644 * - `CODEBUILD` specifies that AWS CodeBuild uses its own credentials. This requires that you modify your ECR repository policy to trust AWS CodeBuild service principal.
645 * - `SERVICE_ROLE` specifies that AWS CodeBuild uses your build project's service role.
646 *
647 * 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.
648 *
649 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environment.html#cfn-codebuild-project-environment-imagepullcredentialstype
650 */
651 readonly imagePullCredentialsType?: string;
652 /**
653 * 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` .
654 *
655 * 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:
656 *
657 * If the operating system's base image is Ubuntu Linux:
658 *
659 * `- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --storage-driver=overlay&`
660 *
661 * `- timeout 15 sh -c "until docker info; do echo .; sleep 1; done"`
662 *
663 * If the operating system's base image is Alpine Linux and the previous command does not work, add the `-t` argument to `timeout` :
664 *
665 * `- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --storage-driver=overlay&`
666 *
667 * `- timeout -t 15 sh -c "until docker info; do echo .; sleep 1; done"`
668 *
669 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environment.html#cfn-codebuild-project-environment-privilegedmode
670 */
671 readonly privilegedMode?: boolean | cdk.IResolvable;
672 /**
673 * `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:
674 *
675 * - `imagePullCredentialsType` must be set to `SERVICE_ROLE` .
676 * - images cannot be curated or an Amazon ECR image.
677 *
678 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environment.html#cfn-codebuild-project-environment-registrycredential
679 */
680 readonly registryCredential?: CfnProject.RegistryCredentialProperty | cdk.IResolvable;
681 /**
682 * The type of build environment to use for related builds.
683 *
684 * - 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).
685 * - 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).
686 * - 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).
687 *
688 * - 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).
689 *
690 * 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* .
691 *
692 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environment.html#cfn-codebuild-project-environment-type
693 */
694 readonly type: string;
695 }
696}
697export declare namespace CfnProject {
698 /**
699 * `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.
700 *
701 * @struct
702 * @stability external
703 *
704 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environmentvariable.html
705 */
706 interface EnvironmentVariableProperty {
707 /**
708 * The name or key of the environment variable.
709 *
710 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environmentvariable.html#cfn-codebuild-project-environmentvariable-name
711 */
712 readonly name: string;
713 /**
714 * The type of environment variable. Valid values include:
715 *
716 * - `PARAMETER_STORE` : An environment variable stored in Systems Manager Parameter Store. To learn how to specify a parameter store environment variable, 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* .
717 * - `PLAINTEXT` : An environment variable in plain text format. This is the default value.
718 * - `SECRETS_MANAGER` : An environment variable stored in AWS Secrets Manager . To learn how to specify a secrets manager environment variable, 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* .
719 *
720 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environmentvariable.html#cfn-codebuild-project-environmentvariable-type
721 */
722 readonly type?: string;
723 /**
724 * The value of the environment variable.
725 *
726 * > We strongly discourage the use of `PLAINTEXT` environment variables to store sensitive values, especially AWS secret key IDs. `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` .
727 *
728 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-environmentvariable.html#cfn-codebuild-project-environmentvariable-value
729 */
730 readonly value: string;
731 }
732}
733export declare namespace CfnProject {
734 /**
735 * `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.
736 *
737 * @struct
738 * @stability external
739 *
740 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-gitsubmodulesconfig.html
741 */
742 interface GitSubmodulesConfigProperty {
743 /**
744 * Set to true to fetch Git submodules for your AWS CodeBuild build project.
745 *
746 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-gitsubmodulesconfig.html#cfn-codebuild-project-gitsubmodulesconfig-fetchsubmodules
747 */
748 readonly fetchSubmodules: boolean | cdk.IResolvable;
749 }
750}
751export declare namespace CfnProject {
752 /**
753 * `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.
754 *
755 * @struct
756 * @stability external
757 *
758 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-logsconfig.html
759 */
760 interface LogsConfigProperty {
761 /**
762 * Information about CloudWatch Logs for a build project. CloudWatch Logs are enabled by default.
763 *
764 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-logsconfig.html#cfn-codebuild-project-logsconfig-cloudwatchlogs
765 */
766 readonly cloudWatchLogs?: CfnProject.CloudWatchLogsConfigProperty | cdk.IResolvable;
767 /**
768 * Information about logs built to an S3 bucket for a build project. S3 logs are not enabled by default.
769 *
770 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-logsconfig.html#cfn-codebuild-project-logsconfig-s3logs
771 */
772 readonly s3Logs?: CfnProject.S3LogsConfigProperty | cdk.IResolvable;
773 }
774}
775export declare namespace CfnProject {
776 /**
777 * Contains configuration information about a batch build project.
778 *
779 * @struct
780 * @stability external
781 *
782 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectbuildbatchconfig.html
783 */
784 interface ProjectBuildBatchConfigProperty {
785 /**
786 * 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.
787 *
788 * - **REPORT_AGGREGATED_BATCH** - (Default) Aggregate all of the build statuses into a single status report.
789 * - **REPORT_INDIVIDUAL_BUILDS** - Send a separate status report for each individual build.
790 *
791 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectbuildbatchconfig.html#cfn-codebuild-project-projectbuildbatchconfig-batchreportmode
792 */
793 readonly batchReportMode?: string;
794 /**
795 * Specifies if the build artifacts for the batch build should be combined into a single artifact location.
796 *
797 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectbuildbatchconfig.html#cfn-codebuild-project-projectbuildbatchconfig-combineartifacts
798 */
799 readonly combineArtifacts?: boolean | cdk.IResolvable;
800 /**
801 * A `BatchRestrictions` object that specifies the restrictions for the batch build.
802 *
803 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectbuildbatchconfig.html#cfn-codebuild-project-projectbuildbatchconfig-restrictions
804 */
805 readonly restrictions?: CfnProject.BatchRestrictionsProperty | cdk.IResolvable;
806 /**
807 * Specifies the service role ARN for the batch build project.
808 *
809 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectbuildbatchconfig.html#cfn-codebuild-project-projectbuildbatchconfig-servicerole
810 */
811 readonly serviceRole?: string;
812 /**
813 * Specifies the maximum amount of time, in minutes, that the batch build must be completed in.
814 *
815 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectbuildbatchconfig.html#cfn-codebuild-project-projectbuildbatchconfig-timeoutinmins
816 */
817 readonly timeoutInMins?: number;
818 }
819}
820export declare namespace CfnProject {
821 /**
822 * `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` .
823 *
824 * @struct
825 * @stability external
826 *
827 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectcache.html
828 */
829 interface ProjectCacheProperty {
830 /**
831 * Information about the cache location:
832 *
833 * - `NO_CACHE` or `LOCAL` : This value is ignored.
834 * - `S3` : This is the S3 bucket name/prefix.
835 *
836 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectcache.html#cfn-codebuild-project-projectcache-location
837 */
838 readonly location?: string;
839 /**
840 * 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.
841 *
842 * Possible values are:
843 *
844 * - **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.
845 * - **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.
846 *
847 * > - You can use a Docker layer cache in the Linux environment only.
848 * > - The `privileged` flag must be set so that your project has the required Docker permissions.
849 * > - You should consider the security implications before you use a Docker layer cache.
850 * - **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:
851 *
852 * - Only directories can be specified for caching. You cannot specify individual files.
853 * - Symlinks are used to reference cached directories.
854 * - 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.
855 *
856 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectcache.html#cfn-codebuild-project-projectcache-modes
857 */
858 readonly modes?: string[];
859 /**
860 * The type of cache used by the build project. Valid values include:
861 *
862 * - `NO_CACHE` : The build project does not use any cache.
863 * - `S3` : The build project reads and writes from and to S3.
864 * - `LOCAL` : The build project stores a cache locally on a build host that is only available to that build host.
865 *
866 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectcache.html#cfn-codebuild-project-projectcache-type
867 */
868 readonly type: string;
869 }
870}
871export declare namespace CfnProject {
872 /**
873 * 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)
874 *
875 * @struct
876 * @stability external
877 *
878 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectfilesystemlocation.html
879 */
880 interface ProjectFileSystemLocationProperty {
881 /**
882 * 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` .
883 *
884 * The `identifier` is used to mount your file system.
885 *
886 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectfilesystemlocation.html#cfn-codebuild-project-projectfilesystemlocation-identifier
887 */
888 readonly identifier: string;
889 /**
890 * 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` .
891 *
892 * 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.
893 *
894 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectfilesystemlocation.html#cfn-codebuild-project-projectfilesystemlocation-location
895 */
896 readonly location: string;
897 /**
898 * 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) .
899 *
900 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectfilesystemlocation.html#cfn-codebuild-project-projectfilesystemlocation-mountoptions
901 */
902 readonly mountOptions?: string;
903 /**
904 * The location in the container where you mount the file system.
905 *
906 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectfilesystemlocation.html#cfn-codebuild-project-projectfilesystemlocation-mountpoint
907 */
908 readonly mountPoint: string;
909 /**
910 * The type of the file system. The one supported type is `EFS` .
911 *
912 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectfilesystemlocation.html#cfn-codebuild-project-projectfilesystemlocation-type
913 */
914 readonly type: string;
915 }
916}
917export declare namespace CfnProject {
918 /**
919 * A source identifier and its corresponding version.
920 *
921 * @struct
922 * @stability external
923 *
924 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectsourceversion.html
925 */
926 interface ProjectSourceVersionProperty {
927 /**
928 * 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.
929 *
930 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectsourceversion.html#cfn-codebuild-project-projectsourceversion-sourceidentifier
931 */
932 readonly sourceIdentifier: string;
933 /**
934 * The source version for the corresponding source identifier. If specified, must be one of:
935 *
936 * - For CodeCommit: the commit ID, branch, or Git tag to use.
937 * - 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.
938 * - 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.
939 * - For Amazon S3: the version ID of the object that represents the build input ZIP file to use.
940 *
941 * 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* .
942 *
943 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectsourceversion.html#cfn-codebuild-project-projectsourceversion-sourceversion
944 */
945 readonly sourceVersion?: string;
946 }
947}
948export declare namespace CfnProject {
949 /**
950 * `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.
951 *
952 * @struct
953 * @stability external
954 *
955 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projecttriggers.html
956 */
957 interface ProjectTriggersProperty {
958 /**
959 * Specifies the type of build this webhook will trigger. Allowed values are:
960 *
961 * - **BUILD** - A single build
962 * - **BUILD_BATCH** - A batch build
963 *
964 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projecttriggers.html#cfn-codebuild-project-projecttriggers-buildtype
965 */
966 readonly buildType?: string;
967 /**
968 * 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.
969 *
970 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projecttriggers.html#cfn-codebuild-project-projecttriggers-filtergroups
971 */
972 readonly filterGroups?: Array<Array<CfnProject.WebhookFilterProperty | cdk.IResolvable> | cdk.IResolvable | cdk.IResolvable> | cdk.IResolvable;
973 /**
974 * Specifies whether or not to begin automatically rebuilding the source code every time a code change is pushed to the repository.
975 *
976 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projecttriggers.html#cfn-codebuild-project-projecttriggers-webhook
977 */
978 readonly webhook?: boolean | cdk.IResolvable;
979 }
980}
981export declare namespace CfnProject {
982 /**
983 * `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:
984 *
985 * - `imagePullCredentialsType` must be set to `SERVICE_ROLE` .
986 * - images cannot be curated or an Amazon ECR image.
987 *
988 * 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) .
989 *
990 * @struct
991 * @stability external
992 *
993 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-registrycredential.html
994 */
995 interface RegistryCredentialProperty {
996 /**
997 * The Amazon Resource Name (ARN) or name of credentials created using AWS Secrets Manager .
998 *
999 * > The `credential` can use the name of the credentials only if they exist in your current AWS Region .
1000 *
1001 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-registrycredential.html#cfn-codebuild-project-registrycredential-credential
1002 */
1003 readonly credential: string;
1004 /**
1005 * The service that created the credentials to access a private Docker registry. The valid value, SECRETS_MANAGER, is for AWS Secrets Manager .
1006 *
1007 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-registrycredential.html#cfn-codebuild-project-registrycredential-credentialprovider
1008 */
1009 readonly credentialProvider: string;
1010 }
1011}
1012export declare namespace CfnProject {
1013 /**
1014 * `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.
1015 *
1016 * @struct
1017 * @stability external
1018 *
1019 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-s3logsconfig.html
1020 */
1021 interface S3LogsConfigProperty {
1022 /**
1023 * Set to true if you do not want your S3 build log output encrypted. By default S3 build logs are encrypted.
1024 *
1025 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-s3logsconfig.html#cfn-codebuild-project-s3logsconfig-encryptiondisabled
1026 */
1027 readonly encryptionDisabled?: boolean | cdk.IResolvable;
1028 /**
1029 * 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` .
1030 *
1031 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-s3logsconfig.html#cfn-codebuild-project-s3logsconfig-location
1032 */
1033 readonly location?: string;
1034 /**
1035 * The current status of the S3 build logs. Valid values are:
1036 *
1037 * - `ENABLED` : S3 build logs are enabled for this build project.
1038 * - `DISABLED` : S3 build logs are not enabled for this build project.
1039 *
1040 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-s3logsconfig.html#cfn-codebuild-project-s3logsconfig-status
1041 */
1042 readonly status: string;
1043 }
1044}
1045export declare namespace CfnProject {
1046 /**
1047 * `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.
1048 *
1049 * @struct
1050 * @stability external
1051 *
1052 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html
1053 */
1054 interface SourceProperty {
1055 /**
1056 * Information about the authorization settings for AWS CodeBuild to access the source code to be built.
1057 *
1058 * This information is for the AWS CodeBuild console's use only. Your code should not get or set `Auth` directly.
1059 *
1060 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html#cfn-codebuild-project-source-auth
1061 */
1062 readonly auth?: CfnProject.SourceAuthProperty | cdk.IResolvable;
1063 /**
1064 * 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* .
1065 *
1066 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html#cfn-codebuild-project-source-buildspec
1067 */
1068 readonly buildSpec?: string;
1069 /**
1070 * 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` .
1071 *
1072 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html#cfn-codebuild-project-source-buildstatusconfig
1073 */
1074 readonly buildStatusConfig?: CfnProject.BuildStatusConfigProperty | cdk.IResolvable;
1075 /**
1076 * 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.
1077 *
1078 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html#cfn-codebuild-project-source-gitclonedepth
1079 */
1080 readonly gitCloneDepth?: number;
1081 /**
1082 * Information about the Git submodules configuration for the build project.
1083 *
1084 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html#cfn-codebuild-project-source-gitsubmodulesconfig
1085 */
1086 readonly gitSubmodulesConfig?: CfnProject.GitSubmodulesConfigProperty | cdk.IResolvable;
1087 /**
1088 * 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.
1089 *
1090 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html#cfn-codebuild-project-source-insecuressl
1091 */
1092 readonly insecureSsl?: boolean | cdk.IResolvable;
1093 /**
1094 * Information about the location of the source code to be built. Valid values include:
1095 *
1096 * - 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.
1097 * - 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>` ).
1098 * - For source code in an Amazon S3 input bucket, one of the following.
1099 *
1100 * - The path to the ZIP file that contains the source code (for example, `<bucket-name>/<path>/<object-name>.zip` ).
1101 * - The path to the folder that contains the source code (for example, `<bucket-name>/<path-to-source-code>/<folder>/` ).
1102 * - 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` .
1103 * - 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` .
1104 *
1105 * If you specify `CODEPIPELINE` for the `Type` property, don't specify this property. For all of the other types, you must specify `Location` .
1106 *
1107 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html#cfn-codebuild-project-source-location
1108 */
1109 readonly location?: string;
1110 /**
1111 * 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.
1112 *
1113 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html#cfn-codebuild-project-source-reportbuildstatus
1114 */
1115 readonly reportBuildStatus?: boolean | cdk.IResolvable;
1116 /**
1117 * An identifier for this project source. The identifier can only contain alphanumeric characters and underscores, and must be less than 128 characters in length.
1118 *
1119 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html#cfn-codebuild-project-source-sourceidentifier
1120 */
1121 readonly sourceIdentifier?: string;
1122 /**
1123 * The type of repository that contains the source code to be built. Valid values include:
1124 *
1125 * - `BITBUCKET` : The source code is in a Bitbucket repository.
1126 * - `CODECOMMIT` : The source code is in an CodeCommit repository.
1127 * - `CODEPIPELINE` : The source code settings are specified in the source action of a pipeline in CodePipeline.
1128 * - `GITHUB` : The source code is in a GitHub or GitHub Enterprise Cloud repository.
1129 * - `GITHUB_ENTERPRISE` : The source code is in a GitHub Enterprise Server repository.
1130 * - `NO_SOURCE` : The project does not have input source code.
1131 * - `S3` : The source code is in an Amazon S3 bucket.
1132 *
1133 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-source.html#cfn-codebuild-project-source-type
1134 */
1135 readonly type: string;
1136 }
1137}
1138export declare namespace CfnProject {
1139 /**
1140 * `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.
1141 *
1142 * `SourceAuth` is for use by the CodeBuild console only. Do not get or set it directly.
1143 *
1144 * @struct
1145 * @stability external
1146 *
1147 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-sourceauth.html
1148 */
1149 interface SourceAuthProperty {
1150 /**
1151 * The resource value that applies to the specified authorization type.
1152 *
1153 * > This data type is used by the AWS CodeBuild console only.
1154 *
1155 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-sourceauth.html#cfn-codebuild-project-sourceauth-resource
1156 */
1157 readonly resource?: string;
1158 /**
1159 * The authorization type to use. The only valid value is `OAUTH` , which represents the OAuth authorization type.
1160 *
1161 * > This data type is used by the AWS CodeBuild console only.
1162 *
1163 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-sourceauth.html#cfn-codebuild-project-sourceauth-type
1164 */
1165 readonly type: string;
1166 }
1167}
1168export declare namespace CfnProject {
1169 /**
1170 * `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* .
1171 *
1172 * @struct
1173 * @stability external
1174 *
1175 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-vpcconfig.html
1176 */
1177 interface VpcConfigProperty {
1178 /**
1179 * A list of one or more security groups IDs in your Amazon VPC. The maximum count is 5.
1180 *
1181 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-vpcconfig.html#cfn-codebuild-project-vpcconfig-securitygroupids
1182 */
1183 readonly securityGroupIds?: string[];
1184 /**
1185 * A list of one or more subnet IDs in your Amazon VPC. The maximum count is 16.
1186 *
1187 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-vpcconfig.html#cfn-codebuild-project-vpcconfig-subnets
1188 */
1189 readonly subnets?: string[];
1190 /**
1191 * The ID of the Amazon VPC.
1192 *
1193 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-vpcconfig.html#cfn-codebuild-project-vpcconfig-vpcid
1194 */
1195 readonly vpcId?: string;
1196 }
1197}
1198export declare namespace CfnProject {
1199 /**
1200 * `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.
1201 *
1202 * @struct
1203 * @stability external
1204 *
1205 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-webhookfilter.html
1206 */
1207 interface WebhookFilterProperty {
1208 /**
1209 * 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.
1210 *
1211 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-webhookfilter.html#cfn-codebuild-project-webhookfilter-excludematchedpattern
1212 */
1213 readonly excludeMatchedPattern?: boolean | cdk.IResolvable;
1214 /**
1215 * 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.
1216 *
1217 * 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` .
1218 *
1219 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-webhookfilter.html#cfn-codebuild-project-webhookfilter-pattern
1220 */
1221 readonly pattern: string;
1222 /**
1223 * The type of webhook filter. There are six webhook filter types: `EVENT` , `ACTOR_ACCOUNT_ID` , `HEAD_REF` , `BASE_REF` , `FILE_PATH` , and `COMMIT_MESSAGE` .
1224 *
1225 * - **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.
1226 *
1227 * > The `PULL_REQUEST_REOPENED` works with GitHub and GitHub Enterprise only.
1228 * - **ACTOR_ACCOUNT_ID** - A webhook event triggers a build when a GitHub, GitHub Enterprise, or Bitbucket account ID matches the regular expression `pattern` .
1229 * - **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` .
1230 *
1231 * Works with GitHub and GitHub Enterprise push, GitHub and GitHub Enterprise pull request, Bitbucket push, and Bitbucket pull request events.
1232 * - **BASE_REF** - A webhook event triggers a build when the base reference matches the regular expression `pattern` . For example, `refs/heads/branch-name` .
1233 *
1234 * > Works with pull request events only.
1235 * - **FILE_PATH** - A webhook triggers a build when the path of a changed file matches the regular expression `pattern` .
1236 *
1237 * > 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.
1238 * - **COMMIT_MESSAGE** - A webhook triggers a build when the head commit message matches the regular expression `pattern` .
1239 *
1240 * > 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.
1241 *
1242 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-webhookfilter.html#cfn-codebuild-project-webhookfilter-type
1243 */
1244 readonly type: string;
1245 }
1246}
1247/**
1248 * Properties for defining a `CfnReportGroup`
1249 *
1250 * @struct
1251 * @stability external
1252 *
1253 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-reportgroup.html
1254 */
1255export interface CfnReportGroupProps {
1256 /**
1257 * Information about the destination where the raw data of this `ReportGroup` is exported.
1258 *
1259 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-reportgroup.html#cfn-codebuild-reportgroup-exportconfig
1260 */
1261 readonly exportConfig: CfnReportGroup.ReportExportConfigProperty | cdk.IResolvable;
1262 /**
1263 * The type of the `ReportGroup` . This can be one of the following values:
1264 *
1265 * - **CODE_COVERAGE** - The report group contains code coverage reports.
1266 * - **TEST** - The report group contains test reports.
1267 *
1268 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-reportgroup.html#cfn-codebuild-reportgroup-type
1269 */
1270 readonly type: string;
1271 /**
1272 * When deleting a report group, specifies if reports within the report group should be deleted.
1273 *
1274 * - **true** - Deletes any reports that belong to the report group before deleting the report group.
1275 * - **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.
1276 *
1277 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-reportgroup.html#cfn-codebuild-reportgroup-deletereports
1278 */
1279 readonly deleteReports?: boolean | cdk.IResolvable;
1280 /**
1281 * The name of the `ReportGroup` .
1282 *
1283 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-reportgroup.html#cfn-codebuild-reportgroup-name
1284 */
1285 readonly name?: string;
1286 /**
1287 * A list of tag key and value pairs associated with this report group.
1288 *
1289 * These tags are available for use by AWS services that support AWS CodeBuild report group tags.
1290 *
1291 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-reportgroup.html#cfn-codebuild-reportgroup-tags
1292 */
1293 readonly tags?: cdk.CfnTag[];
1294}
1295/**
1296 * A CloudFormation `AWS::CodeBuild::ReportGroup`
1297 *
1298 * Represents a report group. A report group contains a collection of reports.
1299 *
1300 * @cloudformationResource AWS::CodeBuild::ReportGroup
1301 * @stability external
1302 *
1303 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-reportgroup.html
1304 */
1305export declare class CfnReportGroup extends cdk.CfnResource implements cdk.IInspectable {
1306 /**
1307 * The CloudFormation resource type name for this resource class.
1308 */
1309 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CodeBuild::ReportGroup";
1310 /**
1311 * A factory method that creates a new instance of this class from an object
1312 * containing the CloudFormation properties of this resource.
1313 * Used in the @aws-cdk/cloudformation-include module.
1314 *
1315 * @internal
1316 */
1317 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnReportGroup;
1318 /**
1319 * The ARN of the AWS CodeBuild report group, such as `arn:aws:codebuild:region:123456789012:report-group/myReportGroupName` .
1320 * @cloudformationAttribute Arn
1321 */
1322 readonly attrArn: string;
1323 /**
1324 * Information about the destination where the raw data of this `ReportGroup` is exported.
1325 *
1326 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-reportgroup.html#cfn-codebuild-reportgroup-exportconfig
1327 */
1328 exportConfig: CfnReportGroup.ReportExportConfigProperty | cdk.IResolvable;
1329 /**
1330 * The type of the `ReportGroup` . This can be one of the following values:
1331 *
1332 * - **CODE_COVERAGE** - The report group contains code coverage reports.
1333 * - **TEST** - The report group contains test reports.
1334 *
1335 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-reportgroup.html#cfn-codebuild-reportgroup-type
1336 */
1337 type: string;
1338 /**
1339 * When deleting a report group, specifies if reports within the report group should be deleted.
1340 *
1341 * - **true** - Deletes any reports that belong to the report group before deleting the report group.
1342 * - **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.
1343 *
1344 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-reportgroup.html#cfn-codebuild-reportgroup-deletereports
1345 */
1346 deleteReports: boolean | cdk.IResolvable | undefined;
1347 /**
1348 * The name of the `ReportGroup` .
1349 *
1350 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-reportgroup.html#cfn-codebuild-reportgroup-name
1351 */
1352 name: string | undefined;
1353 /**
1354 * A list of tag key and value pairs associated with this report group.
1355 *
1356 * These tags are available for use by AWS services that support AWS CodeBuild report group tags.
1357 *
1358 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-reportgroup.html#cfn-codebuild-reportgroup-tags
1359 */
1360 readonly tags: cdk.TagManager;
1361 /**
1362 * Create a new `AWS::CodeBuild::ReportGroup`.
1363 *
1364 * @param scope - scope in which this resource is defined
1365 * @param id - scoped id of the resource
1366 * @param props - resource properties
1367 */
1368 constructor(scope: cdk.Construct, id: string, props: CfnReportGroupProps);
1369 /**
1370 * Examines the CloudFormation resource and discloses attributes.
1371 *
1372 * @param inspector - tree inspector to collect and process attributes
1373 *
1374 */
1375 inspect(inspector: cdk.TreeInspector): void;
1376 protected get cfnProperties(): {
1377 [key: string]: any;
1378 };
1379 protected renderProperties(props: {
1380 [key: string]: any;
1381 }): {
1382 [key: string]: any;
1383 };
1384}
1385export declare namespace CfnReportGroup {
1386 /**
1387 * Information about the location where the run of a report is exported.
1388 *
1389 * @struct
1390 * @stability external
1391 *
1392 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-reportgroup-reportexportconfig.html
1393 */
1394 interface ReportExportConfigProperty {
1395 /**
1396 * The export configuration type. Valid values are:
1397 *
1398 * - `S3` : The report results are exported to an S3 bucket.
1399 * - `NO_EXPORT` : The report results are not exported.
1400 *
1401 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-reportgroup-reportexportconfig.html#cfn-codebuild-reportgroup-reportexportconfig-exportconfigtype
1402 */
1403 readonly exportConfigType: string;
1404 /**
1405 * A `S3ReportExportConfig` object that contains information about the S3 bucket where the run of a report is exported.
1406 *
1407 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-reportgroup-reportexportconfig.html#cfn-codebuild-reportgroup-reportexportconfig-s3destination
1408 */
1409 readonly s3Destination?: CfnReportGroup.S3ReportExportConfigProperty | cdk.IResolvable;
1410 }
1411}
1412export declare namespace CfnReportGroup {
1413 /**
1414 * Information about the S3 bucket where the raw data of a report are exported.
1415 *
1416 * @struct
1417 * @stability external
1418 *
1419 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-reportgroup-s3reportexportconfig.html
1420 */
1421 interface S3ReportExportConfigProperty {
1422 /**
1423 * The name of the S3 bucket where the raw data of a report are exported.
1424 *
1425 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-reportgroup-s3reportexportconfig.html#cfn-codebuild-reportgroup-s3reportexportconfig-bucket
1426 */
1427 readonly bucket: string;
1428 /**
1429 * 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.
1430 *
1431 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-reportgroup-s3reportexportconfig.html#cfn-codebuild-reportgroup-s3reportexportconfig-bucketowner
1432 */
1433 readonly bucketOwner?: string;
1434 /**
1435 * A boolean value that specifies if the results of a report are encrypted.
1436 *
1437 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-reportgroup-s3reportexportconfig.html#cfn-codebuild-reportgroup-s3reportexportconfig-encryptiondisabled
1438 */
1439 readonly encryptionDisabled?: boolean | cdk.IResolvable;
1440 /**
1441 * The encryption key for the report's encrypted raw data.
1442 *
1443 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-reportgroup-s3reportexportconfig.html#cfn-codebuild-reportgroup-s3reportexportconfig-encryptionkey
1444 */
1445 readonly encryptionKey?: string;
1446 /**
1447 * The type of build output artifact to create. Valid values include:
1448 *
1449 * - `NONE` : CodeBuild creates the raw data in the output bucket. This is the default if packaging is not specified.
1450 * - `ZIP` : CodeBuild creates a ZIP file with the raw data in the output bucket.
1451 *
1452 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-reportgroup-s3reportexportconfig.html#cfn-codebuild-reportgroup-s3reportexportconfig-packaging
1453 */
1454 readonly packaging?: string;
1455 /**
1456 * The path to the exported report's raw data results.
1457 *
1458 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-reportgroup-s3reportexportconfig.html#cfn-codebuild-reportgroup-s3reportexportconfig-path
1459 */
1460 readonly path?: string;
1461 }
1462}
1463/**
1464 * Properties for defining a `CfnSourceCredential`
1465 *
1466 * @struct
1467 * @stability external
1468 *
1469 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-sourcecredential.html
1470 */
1471export interface CfnSourceCredentialProps {
1472 /**
1473 * The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, or PERSONAL_ACCESS_TOKEN.
1474 *
1475 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-sourcecredential.html#cfn-codebuild-sourcecredential-authtype
1476 */
1477 readonly authType: string;
1478 /**
1479 * The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, or BITBUCKET.
1480 *
1481 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-sourcecredential.html#cfn-codebuild-sourcecredential-servertype
1482 */
1483 readonly serverType: string;
1484 /**
1485 * For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password.
1486 *
1487 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-sourcecredential.html#cfn-codebuild-sourcecredential-token
1488 */
1489 readonly token: string;
1490 /**
1491 * The Bitbucket username when the `authType` is BASIC_AUTH. This parameter is not valid for other types of source providers or connections.
1492 *
1493 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-sourcecredential.html#cfn-codebuild-sourcecredential-username
1494 */
1495 readonly username?: string;
1496}
1497/**
1498 * A CloudFormation `AWS::CodeBuild::SourceCredential`
1499 *
1500 * 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) .
1501 *
1502 * > For security purposes, do not use plain text in your AWS CloudFormation template to store your credentials.
1503 *
1504 * @cloudformationResource AWS::CodeBuild::SourceCredential
1505 * @stability external
1506 *
1507 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-sourcecredential.html
1508 */
1509export declare class CfnSourceCredential extends cdk.CfnResource implements cdk.IInspectable {
1510 /**
1511 * The CloudFormation resource type name for this resource class.
1512 */
1513 static readonly CFN_RESOURCE_TYPE_NAME = "AWS::CodeBuild::SourceCredential";
1514 /**
1515 * A factory method that creates a new instance of this class from an object
1516 * containing the CloudFormation properties of this resource.
1517 * Used in the @aws-cdk/cloudformation-include module.
1518 *
1519 * @internal
1520 */
1521 static _fromCloudFormation(scope: cdk.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnSourceCredential;
1522 /**
1523 * The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, or PERSONAL_ACCESS_TOKEN.
1524 *
1525 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-sourcecredential.html#cfn-codebuild-sourcecredential-authtype
1526 */
1527 authType: string;
1528 /**
1529 * The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, or BITBUCKET.
1530 *
1531 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-sourcecredential.html#cfn-codebuild-sourcecredential-servertype
1532 */
1533 serverType: string;
1534 /**
1535 * For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password.
1536 *
1537 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-sourcecredential.html#cfn-codebuild-sourcecredential-token
1538 */
1539 token: string;
1540 /**
1541 * The Bitbucket username when the `authType` is BASIC_AUTH. This parameter is not valid for other types of source providers or connections.
1542 *
1543 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-sourcecredential.html#cfn-codebuild-sourcecredential-username
1544 */
1545 username: string | undefined;
1546 /**
1547 * Create a new `AWS::CodeBuild::SourceCredential`.
1548 *
1549 * @param scope - scope in which this resource is defined
1550 * @param id - scoped id of the resource
1551 * @param props - resource properties
1552 */
1553 constructor(scope: cdk.Construct, id: string, props: CfnSourceCredentialProps);
1554 /**
1555 * Examines the CloudFormation resource and discloses attributes.
1556 *
1557 * @param inspector - tree inspector to collect and process attributes
1558 *
1559 */
1560 inspect(inspector: cdk.TreeInspector): void;
1561 protected get cfnProperties(): {
1562 [key: string]: any;
1563 };
1564 protected renderProperties(props: {
1565 [key: string]: any;
1566 }): {
1567 [key: string]: any;
1568 };
1569}