@aws-cdk/aws-codebuild
Version:
The CDK Construct Library for AWS::CodeBuild
1 lines • 614 kB
JSON
{"version":"2","toolVersion":"1.84.0","snippets":{"59de3f29276699716966954464d5d541f50ecc96424793d9e62a92a9253649ff":{"translations":{"python":{"source":"import aws_cdk.aws_codebuild as codebuild","version":"2"},"csharp":{"source":"using Amazon.CDK.AWS.CodeBuild;","version":"1"},"java":{"source":"import software.amazon.awscdk.services.codebuild.*;","version":"1"},"go":{"source":"import codebuild \"github.com/aws-samples/dummy/awscdkawscodebuild\"","version":"1"},"$":{"source":"import * as codebuild from '@aws-cdk/aws-codebuild';","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"@aws-cdk/aws-codebuild"},"field":{"field":"markdown","line":38}},"didCompile":true,"fqnsReferenced":[],"fullSource":"import * as codebuild from '@aws-cdk/aws-codebuild';","syntaxKindCounter":{"10":1,"75":1,"254":1,"255":1,"256":1,"290":1},"fqnsFingerprint":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"},"3970ad5bd47707446409ba245638da5596c2b45f360633ea7af617726920f3bb":{"translations":{"python":{"source":"codebuild.Project(self, \"MyProject\",\n build_spec=codebuild.BuildSpec.from_object({\n \"version\": \"0.2\",\n \"phases\": {\n \"build\": {\n \"commands\": [\"echo \\\"Hello, CodeBuild!\\\"\"\n ]\n }\n }\n })\n)","version":"2"},"csharp":{"source":"new Project(this, \"MyProject\", new ProjectProps {\n BuildSpec = BuildSpec.FromObject(new Dictionary<string, object> {\n { \"version\", \"0.2\" },\n { \"phases\", new Dictionary<string, IDictionary<string, string[]>> {\n { \"build\", new Struct {\n Commands = new [] { \"echo \\\"Hello, CodeBuild!\\\"\" }\n } }\n } }\n })\n});","version":"1"},"java":{"source":"Project.Builder.create(this, \"MyProject\")\n .buildSpec(BuildSpec.fromObject(Map.of(\n \"version\", \"0.2\",\n \"phases\", Map.of(\n \"build\", Map.of(\n \"commands\", List.of(\"echo \\\"Hello, CodeBuild!\\\"\"))))))\n .build();","version":"1"},"go":{"source":"codebuild.NewProject(this, jsii.String(\"MyProject\"), &ProjectProps{\n\tBuildSpec: codebuild.BuildSpec_FromObject(map[string]interface{}{\n\t\t\"version\": jsii.String(\"0.2\"),\n\t\t\"phases\": map[string]map[string][]*string{\n\t\t\t\"build\": map[string][]*string{\n\t\t\t\t\"commands\": []*string{\n\t\t\t\t\tjsii.String(\"echo \\\"Hello, CodeBuild!\\\"\"),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t}),\n})","version":"1"},"$":{"source":"new codebuild.Project(this, 'MyProject', {\n buildSpec: codebuild.BuildSpec.fromObject({\n version: '0.2',\n phases: {\n build: {\n commands: [\n 'echo \"Hello, CodeBuild!\"',\n ],\n },\n },\n }),\n});","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"@aws-cdk/aws-codebuild"},"field":{"field":"markdown","line":57}},"didCompile":true,"fqnsReferenced":["@aws-cdk/aws-codebuild.BuildSpec","@aws-cdk/aws-codebuild.BuildSpec#fromObject","@aws-cdk/aws-codebuild.Project","@aws-cdk/aws-codebuild.ProjectProps","constructs.Construct"],"fullSource":"import * as cdk from '@aws-cdk/core';\nimport * as codebuild from '../lib';\n\nclass TestStack extends cdk.Stack {\n constructor(scope: cdk.App, id: string) {\n super(scope, id);\n\n /// !show\n new codebuild.Project(this, 'MyProject', {\n buildSpec: codebuild.BuildSpec.fromObject({\n version: '0.2',\n phases: {\n build: {\n commands: [\n 'echo \"Hello, CodeBuild!\"',\n ],\n },\n },\n }),\n });\n /// !hide\n }\n}\n\nconst app = new cdk.App();\n\nnew TestStack(app, 'codebuild-default-project');\n\napp.synth();\n","syntaxKindCounter":{"10":3,"75":10,"104":1,"192":1,"193":4,"194":3,"196":1,"197":1,"226":1,"281":5},"fqnsFingerprint":"427f31882f441f3e2a837af2f4a002557ea6776adb6113d2504eb9f9d33c00e1"},"5d79ef20e7ffe45d90b05d1de72bb6bb228a9a5c4db298c44179a59a2fb323c4":{"translations":{"python":{"source":"import aws_cdk.aws_codecommit as codecommit\n\n\nrepository = codecommit.Repository(self, \"MyRepo\", repository_name=\"foo\")\ncodebuild.Project(self, \"MyFirstCodeCommitProject\",\n source=codebuild.Source.code_commit(repository=repository)\n)","version":"2"},"csharp":{"source":"using Amazon.CDK.AWS.CodeCommit;\n\n\nvar repository = new Repository(this, \"MyRepo\", new RepositoryProps { RepositoryName = \"foo\" });\nnew Project(this, \"MyFirstCodeCommitProject\", new ProjectProps {\n Source = Source.CodeCommit(new CodeCommitSourceProps { Repository = repository })\n});","version":"1"},"java":{"source":"import software.amazon.awscdk.services.codecommit.*;\n\n\nRepository repository = Repository.Builder.create(this, \"MyRepo\").repositoryName(\"foo\").build();\nProject.Builder.create(this, \"MyFirstCodeCommitProject\")\n .source(Source.codeCommit(CodeCommitSourceProps.builder().repository(repository).build()))\n .build();","version":"1"},"go":{"source":"import codecommit \"github.com/aws-samples/dummy/awscdkawscodecommit\"\n\n\nrepository := codecommit.NewRepository(this, jsii.String(\"MyRepo\"), &RepositoryProps{\n\tRepositoryName: jsii.String(\"foo\"),\n})\ncodebuild.NewProject(this, jsii.String(\"MyFirstCodeCommitProject\"), &ProjectProps{\n\tSource: codebuild.Source_CodeCommit(&CodeCommitSourceProps{\n\t\tRepository: *Repository,\n\t}),\n})","version":"1"},"$":{"source":"import * as codecommit from '@aws-cdk/aws-codecommit';\n\nconst repository = new codecommit.Repository(this, 'MyRepo', { repositoryName: 'foo' });\nnew codebuild.Project(this, 'MyFirstCodeCommitProject', {\n source: codebuild.Source.codeCommit({ repository }),\n});","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"@aws-cdk/aws-codebuild"},"field":{"field":"markdown","line":76}},"didCompile":true,"fqnsReferenced":["@aws-cdk/aws-codebuild.CodeCommitSourceProps","@aws-cdk/aws-codebuild.ISource","@aws-cdk/aws-codebuild.Project","@aws-cdk/aws-codebuild.ProjectProps","@aws-cdk/aws-codebuild.Source","@aws-cdk/aws-codebuild.Source#codeCommit","@aws-cdk/aws-codecommit.IRepository","@aws-cdk/aws-codecommit.Repository","@aws-cdk/aws-codecommit.RepositoryProps","constructs.Construct"],"fullSource":"// Hoisted imports begin after !show marker below\n/// !show\nimport * as codecommit from '@aws-cdk/aws-codecommit';\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Stack, Duration, SecretValue } from '@aws-cdk/core';\nimport codebuild = require('@aws-cdk/aws-codebuild');\nimport iam = require('@aws-cdk/aws-iam');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport lambda = require('@aws-cdk/aws-lambda');\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as ecr from '@aws-cdk/aws-ecr';\nimport * as logs from '@aws-cdk/aws-logs';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst repository = new codecommit.Repository(this, 'MyRepo', { repositoryName: 'foo' });\nnew codebuild.Project(this, 'MyFirstCodeCommitProject', {\n source: codebuild.Source.codeCommit({ repository }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n","syntaxKindCounter":{"10":4,"75":12,"104":2,"193":3,"194":4,"196":1,"197":2,"225":1,"226":1,"242":1,"243":1,"254":1,"255":1,"256":1,"281":2,"282":1,"290":1},"fqnsFingerprint":"69b78987a78ef9442a73365342a37b08feabc28e4cdb6875db85c1e79d511ae2"},"8187801863c4733be74d82111cdfad1bfbde8c5920dc2fa622ecc347337f2531":{"translations":{"python":{"source":"bucket = s3.Bucket(self, \"MyBucket\")\n\ncodebuild.Project(self, \"MyProject\",\n source=codebuild.Source.s3(\n bucket=bucket,\n path=\"path/to/file.zip\"\n )\n)","version":"2"},"csharp":{"source":"var bucket = new Bucket(this, \"MyBucket\");\n\nnew Project(this, \"MyProject\", new ProjectProps {\n Source = Source.S3(new S3SourceProps {\n Bucket = bucket,\n Path = \"path/to/file.zip\"\n })\n});","version":"1"},"java":{"source":"Bucket bucket = new Bucket(this, \"MyBucket\");\n\nProject.Builder.create(this, \"MyProject\")\n .source(Source.s3(S3SourceProps.builder()\n .bucket(bucket)\n .path(\"path/to/file.zip\")\n .build()))\n .build();","version":"1"},"go":{"source":"bucket := s3.NewBucket(this, jsii.String(\"MyBucket\"))\n\ncodebuild.NewProject(this, jsii.String(\"MyProject\"), &ProjectProps{\n\tSource: codebuild.Source_S3(&S3SourceProps{\n\t\tBucket: bucket,\n\t\tPath: jsii.String(\"path/to/file.zip\"),\n\t}),\n})","version":"1"},"$":{"source":"const bucket = new s3.Bucket(this, 'MyBucket');\n\nnew codebuild.Project(this, 'MyProject', {\n source: codebuild.Source.s3({\n bucket: bucket,\n path: 'path/to/file.zip',\n }),\n});","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"@aws-cdk/aws-codebuild"},"field":{"field":"markdown","line":89}},"didCompile":true,"fqnsReferenced":["@aws-cdk/aws-codebuild.ISource","@aws-cdk/aws-codebuild.Project","@aws-cdk/aws-codebuild.ProjectProps","@aws-cdk/aws-codebuild.S3SourceProps","@aws-cdk/aws-codebuild.Source","@aws-cdk/aws-codebuild.Source#s3","@aws-cdk/aws-s3.Bucket","@aws-cdk/aws-s3.IBucket","constructs.Construct"],"fullSource":"// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Stack, Duration, SecretValue } from '@aws-cdk/core';\nimport codebuild = require('@aws-cdk/aws-codebuild');\nimport iam = require('@aws-cdk/aws-iam');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport lambda = require('@aws-cdk/aws-lambda');\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as ecr from '@aws-cdk/aws-ecr';\nimport * as logs from '@aws-cdk/aws-logs';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst bucket = new s3.Bucket(this, 'MyBucket');\n\nnew codebuild.Project(this, 'MyProject', {\n source: codebuild.Source.s3({\n bucket: bucket,\n path: 'path/to/file.zip',\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n","syntaxKindCounter":{"10":3,"75":12,"104":2,"193":2,"194":4,"196":1,"197":2,"225":1,"226":1,"242":1,"243":1,"281":3},"fqnsFingerprint":"400e6d7579f2b1681c86a70878f5449a6f6bf2cedce917d5ae9a92e439329551"},"e2da1a73c78678cc6f5af77c56de51a4abccd13a5293e8e263bf7da2fb18ed2d":{"translations":{"python":{"source":"git_hub_source = codebuild.Source.git_hub(\n owner=\"awslabs\",\n repo=\"aws-cdk\",\n webhook=True, # optional, default: true if `webhookFilters` were provided, false otherwise\n webhook_triggers_batch_build=True, # optional, default is false\n webhook_filters=[\n codebuild.FilterGroup.in_event_of(codebuild.EventAction.PUSH).and_branch_is(\"master\").and_commit_message_is(\"the commit message\")\n ]\n)","version":"2"},"csharp":{"source":"var gitHubSource = Source.GitHub(new GitHubSourceProps {\n Owner = \"awslabs\",\n Repo = \"aws-cdk\",\n Webhook = true, // optional, default: true if `webhookFilters` were provided, false otherwise\n WebhookTriggersBatchBuild = true, // optional, default is false\n WebhookFilters = new [] { FilterGroup.InEventOf(EventAction.PUSH).AndBranchIs(\"master\").AndCommitMessageIs(\"the commit message\") }\n});","version":"1"},"java":{"source":"ISource gitHubSource = Source.gitHub(GitHubSourceProps.builder()\n .owner(\"awslabs\")\n .repo(\"aws-cdk\")\n .webhook(true) // optional, default: true if `webhookFilters` were provided, false otherwise\n .webhookTriggersBatchBuild(true) // optional, default is false\n .webhookFilters(List.of(FilterGroup.inEventOf(EventAction.PUSH).andBranchIs(\"master\").andCommitMessageIs(\"the commit message\")))\n .build());","version":"1"},"go":{"source":"gitHubSource := codebuild.Source_GitHub(&GitHubSourceProps{\n\tOwner: jsii.String(\"awslabs\"),\n\tRepo: jsii.String(\"aws-cdk\"),\n\tWebhook: jsii.Boolean(true),\n\t // optional, default: true if `webhookFilters` were provided, false otherwise\n\tWebhookTriggersBatchBuild: jsii.Boolean(true),\n\t // optional, default is false\n\tWebhookFilters: []filterGroup{\n\t\tcodebuild.*filterGroup_InEventOf(codebuild.EventAction_PUSH).AndBranchIs(jsii.String(\"master\")).AndCommitMessageIs(jsii.String(\"the commit message\")),\n\t},\n})","version":"1"},"$":{"source":"const gitHubSource = codebuild.Source.gitHub({\n owner: 'awslabs',\n repo: 'aws-cdk',\n webhook: true, // optional, default: true if `webhookFilters` were provided, false otherwise\n webhookTriggersBatchBuild: true, // optional, default is false\n webhookFilters: [\n codebuild.FilterGroup\n .inEventOf(codebuild.EventAction.PUSH)\n .andBranchIs('master')\n .andCommitMessageIs('the commit message'),\n ], // optional, by default all pushes and Pull Requests will trigger a build\n});","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"@aws-cdk/aws-codebuild"},"field":{"field":"markdown","line":107}},"didCompile":true,"fqnsReferenced":["@aws-cdk/aws-codebuild.EventAction","@aws-cdk/aws-codebuild.EventAction#PUSH","@aws-cdk/aws-codebuild.FilterGroup","@aws-cdk/aws-codebuild.FilterGroup#andBranchIs","@aws-cdk/aws-codebuild.FilterGroup#andCommitMessageIs","@aws-cdk/aws-codebuild.FilterGroup#inEventOf","@aws-cdk/aws-codebuild.GitHubSourceProps","@aws-cdk/aws-codebuild.ISource","@aws-cdk/aws-codebuild.Source","@aws-cdk/aws-codebuild.Source#gitHub"],"fullSource":"// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Stack, Duration, SecretValue } from '@aws-cdk/core';\nimport codebuild = require('@aws-cdk/aws-codebuild');\nimport iam = require('@aws-cdk/aws-iam');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport lambda = require('@aws-cdk/aws-lambda');\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as ecr from '@aws-cdk/aws-ecr';\nimport * as logs from '@aws-cdk/aws-logs';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst gitHubSource = codebuild.Source.gitHub({\n owner: 'awslabs',\n repo: 'aws-cdk',\n webhook: true, // optional, default: true if `webhookFilters` were provided, false otherwise\n webhookTriggersBatchBuild: true, // optional, default is false\n webhookFilters: [\n codebuild.FilterGroup\n .inEventOf(codebuild.EventAction.PUSH)\n .andBranchIs('master')\n .andCommitMessageIs('the commit message'),\n ], // optional, by default all pushes and Pull Requests will trigger a build\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n","syntaxKindCounter":{"10":4,"75":17,"106":2,"192":1,"193":1,"194":8,"196":4,"225":1,"242":1,"243":1,"281":5},"fqnsFingerprint":"c2a469d3826f98e620b2706c312ec6addc6e37cc63d95f37daeb8c060a601a5a"},"472459439f1eb9ec3fe2c925771012d81b6316028d6f18953d33fa0ba0e005fa":{"translations":{"python":{"source":"bb_source = codebuild.Source.bit_bucket(\n owner=\"owner\",\n repo=\"repo\"\n)","version":"2"},"csharp":{"source":"var bbSource = Source.BitBucket(new BitBucketSourceProps {\n Owner = \"owner\",\n Repo = \"repo\"\n});","version":"1"},"java":{"source":"ISource bbSource = Source.bitBucket(BitBucketSourceProps.builder()\n .owner(\"owner\")\n .repo(\"repo\")\n .build());","version":"1"},"go":{"source":"bbSource := codebuild.Source_BitBucket(&BitBucketSourceProps{\n\tOwner: jsii.String(\"owner\"),\n\tRepo: jsii.String(\"repo\"),\n})","version":"1"},"$":{"source":"const bbSource = codebuild.Source.bitBucket({\n owner: 'owner',\n repo: 'repo',\n});","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"@aws-cdk/aws-codebuild"},"field":{"field":"markdown","line":134}},"didCompile":true,"fqnsReferenced":["@aws-cdk/aws-codebuild.BitBucketSourceProps","@aws-cdk/aws-codebuild.ISource","@aws-cdk/aws-codebuild.Source","@aws-cdk/aws-codebuild.Source#bitBucket"],"fullSource":"// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Stack, Duration, SecretValue } from '@aws-cdk/core';\nimport codebuild = require('@aws-cdk/aws-codebuild');\nimport iam = require('@aws-cdk/aws-iam');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport lambda = require('@aws-cdk/aws-lambda');\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as ecr from '@aws-cdk/aws-ecr';\nimport * as logs from '@aws-cdk/aws-logs';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst bbSource = codebuild.Source.bitBucket({\n owner: 'owner',\n repo: 'repo',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n","syntaxKindCounter":{"10":2,"75":6,"193":1,"194":2,"196":1,"225":1,"242":1,"243":1,"281":2},"fqnsFingerprint":"2d0e2f696e3c82d352a60da4a497a32ce5a141ce2c7bbec345bf80517bb37872"},"050d470b4e7dff1a04d98e73687df3fe6ef11f3a89c615aa368f19954ad6cba9":{"translations":{"python":{"source":"git_hub_source = codebuild.Source.git_hub(\n owner=\"awslabs\",\n repo=\"aws-cdk\",\n fetch_submodules=True\n)","version":"2"},"csharp":{"source":"var gitHubSource = Source.GitHub(new GitHubSourceProps {\n Owner = \"awslabs\",\n Repo = \"aws-cdk\",\n FetchSubmodules = true\n});","version":"1"},"java":{"source":"ISource gitHubSource = Source.gitHub(GitHubSourceProps.builder()\n .owner(\"awslabs\")\n .repo(\"aws-cdk\")\n .fetchSubmodules(true)\n .build());","version":"1"},"go":{"source":"gitHubSource := codebuild.Source_GitHub(&GitHubSourceProps{\n\tOwner: jsii.String(\"awslabs\"),\n\tRepo: jsii.String(\"aws-cdk\"),\n\tFetchSubmodules: jsii.Boolean(true),\n})","version":"1"},"$":{"source":"const gitHubSource = codebuild.Source.gitHub({\n owner: 'awslabs',\n repo: 'aws-cdk',\n fetchSubmodules: true,\n});","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"@aws-cdk/aws-codebuild"},"field":{"field":"markdown","line":145}},"didCompile":true,"fqnsReferenced":["@aws-cdk/aws-codebuild.GitHubSourceProps","@aws-cdk/aws-codebuild.ISource","@aws-cdk/aws-codebuild.Source","@aws-cdk/aws-codebuild.Source#gitHub"],"fullSource":"// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Stack, Duration, SecretValue } from '@aws-cdk/core';\nimport codebuild = require('@aws-cdk/aws-codebuild');\nimport iam = require('@aws-cdk/aws-iam');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport lambda = require('@aws-cdk/aws-lambda');\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as ecr from '@aws-cdk/aws-ecr';\nimport * as logs from '@aws-cdk/aws-logs';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst gitHubSource = codebuild.Source.gitHub({\n owner: 'awslabs',\n repo: 'aws-cdk',\n fetchSubmodules: true,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n","syntaxKindCounter":{"10":2,"75":7,"106":1,"193":1,"194":2,"196":1,"225":1,"242":1,"243":1,"281":3},"fqnsFingerprint":"b46c48bbd23e9f4282a231b6e7d7ce4421135d5d196fcd81d956f4f695c81a9c"},"085bab3997a9782fe5d20d3896437ac8b3d8ecaeecc743c2f6569b035e0baca9":{"translations":{"python":{"source":"# bucket: s3.Bucket\n\n\nproject = codebuild.Project(self, \"MyProject\",\n build_spec=codebuild.BuildSpec.from_object({\n \"version\": \"0.2\"\n }),\n artifacts=codebuild.Artifacts.s3(\n bucket=bucket,\n include_build_id=False,\n package_zip=True,\n path=\"another/path\",\n identifier=\"AddArtifact1\"\n )\n)","version":"2"},"csharp":{"source":"Bucket bucket;\n\n\nvar project = new Project(this, \"MyProject\", new ProjectProps {\n BuildSpec = BuildSpec.FromObject(new Dictionary<string, object> {\n { \"version\", \"0.2\" }\n }),\n Artifacts = Artifacts.S3(new S3ArtifactsProps {\n Bucket = bucket,\n IncludeBuildId = false,\n PackageZip = true,\n Path = \"another/path\",\n Identifier = \"AddArtifact1\"\n })\n});","version":"1"},"java":{"source":"Bucket bucket;\n\n\nProject project = Project.Builder.create(this, \"MyProject\")\n .buildSpec(BuildSpec.fromObject(Map.of(\n \"version\", \"0.2\")))\n .artifacts(Artifacts.s3(S3ArtifactsProps.builder()\n .bucket(bucket)\n .includeBuildId(false)\n .packageZip(true)\n .path(\"another/path\")\n .identifier(\"AddArtifact1\")\n .build()))\n .build();","version":"1"},"go":{"source":"var bucket bucket\n\n\nproject := codebuild.NewProject(this, jsii.String(\"MyProject\"), &ProjectProps{\n\tBuildSpec: codebuild.BuildSpec_FromObject(map[string]interface{}{\n\t\t\"version\": jsii.String(\"0.2\"),\n\t}),\n\tArtifacts: codebuild.Artifacts_S3(&S3ArtifactsProps{\n\t\tBucket: *Bucket,\n\t\tIncludeBuildId: jsii.Boolean(false),\n\t\tPackageZip: jsii.Boolean(true),\n\t\tPath: jsii.String(\"another/path\"),\n\t\tIdentifier: jsii.String(\"AddArtifact1\"),\n\t}),\n})","version":"1"},"$":{"source":"declare const bucket: s3.Bucket;\n\nconst project = new codebuild.Project(this, 'MyProject', {\n buildSpec: codebuild.BuildSpec.fromObject({\n version: '0.2',\n }),\n artifacts: codebuild.Artifacts.s3({\n bucket,\n includeBuildId: false,\n packageZip: true,\n path: 'another/path',\n identifier: 'AddArtifact1',\n }),\n});","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"@aws-cdk/aws-codebuild"},"field":{"field":"markdown","line":157}},"didCompile":true,"fqnsReferenced":["@aws-cdk/aws-codebuild.Artifacts","@aws-cdk/aws-codebuild.Artifacts#s3","@aws-cdk/aws-codebuild.BuildSpec","@aws-cdk/aws-codebuild.BuildSpec#fromObject","@aws-cdk/aws-codebuild.IArtifacts","@aws-cdk/aws-codebuild.Project","@aws-cdk/aws-codebuild.ProjectProps","@aws-cdk/aws-codebuild.S3ArtifactsProps","@aws-cdk/aws-s3.IBucket","constructs.Construct"],"fullSource":"// Hoisted imports begin after !show marker below\n/// !show\ndeclare const bucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Stack, Duration, SecretValue } from '@aws-cdk/core';\nimport codebuild = require('@aws-cdk/aws-codebuild');\nimport iam = require('@aws-cdk/aws-iam');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport lambda = require('@aws-cdk/aws-lambda');\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as ecr from '@aws-cdk/aws-ecr';\nimport * as logs from '@aws-cdk/aws-logs';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst project = new codebuild.Project(this, 'MyProject', {\n buildSpec: codebuild.BuildSpec.fromObject({\n version: '0.2',\n }),\n artifacts: codebuild.Artifacts.s3({\n bucket,\n includeBuildId: false,\n packageZip: true,\n path: 'another/path',\n identifier: 'AddArtifact1',\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n","syntaxKindCounter":{"10":4,"75":20,"91":1,"104":1,"106":1,"130":1,"153":1,"169":1,"193":3,"194":5,"196":2,"197":1,"225":2,"242":2,"243":2,"281":7,"282":1,"290":1},"fqnsFingerprint":"f6793d3a58cc704a66d97dbc8cdd7fd73d3183885d57121ea23047cb429a024b"},"9ee1cc80c888172237de1bf978384fb3c090dbb8fb656f7ee27a2ee51207e075":{"translations":{"python":{"source":"project = codebuild.PipelineProject(self, \"Project\")","version":"2"},"csharp":{"source":"var project = new PipelineProject(this, \"Project\", new PipelineProjectProps { });","version":"1"},"java":{"source":"PipelineProject project = PipelineProject.Builder.create(this, \"Project\").build();","version":"1"},"go":{"source":"project := codebuild.NewPipelineProject(this, jsii.String(\"Project\"), &PipelineProjectProps{\n})","version":"1"},"$":{"source":"const project = new codebuild.PipelineProject(this, 'Project', {\n // properties as above...\n})","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"@aws-cdk/aws-codebuild"},"field":{"field":"markdown","line":191}},"didCompile":true,"fqnsReferenced":["@aws-cdk/aws-codebuild.PipelineProject","@aws-cdk/aws-codebuild.PipelineProjectProps","constructs.Construct"],"fullSource":"// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Stack, Duration, SecretValue } from '@aws-cdk/core';\nimport codebuild = require('@aws-cdk/aws-codebuild');\nimport iam = require('@aws-cdk/aws-iam');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport lambda = require('@aws-cdk/aws-lambda');\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as ecr from '@aws-cdk/aws-ecr';\nimport * as logs from '@aws-cdk/aws-logs';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst project = new codebuild.PipelineProject(this, 'Project', {\n // properties as above...\n})\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n","syntaxKindCounter":{"10":1,"75":3,"104":1,"193":1,"194":1,"197":1,"225":1,"242":1,"243":1},"fqnsFingerprint":"0b6d06ea45bb6b240101c96ca56e17acc1b5edbc1521757c90f3016c8ece55c4"},"c081d3235425908f1614a405543c91f4d49a9b98c80a24d50488156deea0bfac":{"translations":{"python":{"source":"# my_caching_bucket: s3.Bucket\n\n\ncodebuild.Project(self, \"Project\",\n source=codebuild.Source.bit_bucket(\n owner=\"awslabs\",\n repo=\"aws-cdk\"\n ),\n\n cache=codebuild.Cache.bucket(my_caching_bucket),\n\n # BuildSpec with a 'cache' section necessary for S3 caching. This can\n # also come from 'buildspec.yml' in your source.\n build_spec=codebuild.BuildSpec.from_object({\n \"version\": \"0.2\",\n \"phases\": {\n \"build\": {\n \"commands\": [\"...\"]\n }\n },\n \"cache\": {\n \"paths\": [\"/root/cachedir/**/*\"\n ]\n }\n })\n)","version":"2"},"csharp":{"source":"Bucket myCachingBucket;\n\n\nnew Project(this, \"Project\", new ProjectProps {\n Source = Source.BitBucket(new BitBucketSourceProps {\n Owner = \"awslabs\",\n Repo = \"aws-cdk\"\n }),\n\n Cache = Cache.Bucket(myCachingBucket),\n\n // BuildSpec with a 'cache' section necessary for S3 caching. This can\n // also come from 'buildspec.yml' in your source.\n BuildSpec = BuildSpec.FromObject(new Dictionary<string, object> {\n { \"version\", \"0.2\" },\n { \"phases\", new Dictionary<string, IDictionary<string, string[]>> {\n { \"build\", new Struct {\n Commands = new [] { \"...\" }\n } }\n } },\n { \"cache\", new Dictionary<string, string[]> {\n { \"paths\", new [] { \"/root/cachedir/**/*\" } }\n } }\n })\n});","version":"1"},"java":{"source":"Bucket myCachingBucket;\n\n\nProject.Builder.create(this, \"Project\")\n .source(Source.bitBucket(BitBucketSourceProps.builder()\n .owner(\"awslabs\")\n .repo(\"aws-cdk\")\n .build()))\n\n .cache(Cache.bucket(myCachingBucket))\n\n // BuildSpec with a 'cache' section necessary for S3 caching. This can\n // also come from 'buildspec.yml' in your source.\n .buildSpec(BuildSpec.fromObject(Map.of(\n \"version\", \"0.2\",\n \"phases\", Map.of(\n \"build\", Map.of(\n \"commands\", List.of(\"...\"))),\n \"cache\", Map.of(\n \"paths\", List.of(\"/root/cachedir/**/*\")))))\n .build();","version":"1"},"go":{"source":"var myCachingBucket bucket\n\n\ncodebuild.NewProject(this, jsii.String(\"Project\"), &ProjectProps{\n\tSource: codebuild.Source_BitBucket(&BitBucketSourceProps{\n\t\tOwner: jsii.String(\"awslabs\"),\n\t\tRepo: jsii.String(\"aws-cdk\"),\n\t}),\n\n\tCache: codebuild.Cache_Bucket(myCachingBucket),\n\n\t// BuildSpec with a 'cache' section necessary for S3 caching. This can\n\t// also come from 'buildspec.yml' in your source.\n\tBuildSpec: codebuild.BuildSpec_FromObject(map[string]interface{}{\n\t\t\"version\": jsii.String(\"0.2\"),\n\t\t\"phases\": map[string]map[string][]*string{\n\t\t\t\"build\": map[string][]*string{\n\t\t\t\t\"commands\": []*string{\n\t\t\t\t\tjsii.String(\"...\"),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\t\"cache\": map[string][]*string{\n\t\t\t\"paths\": []*string{\n\t\t\t\tjsii.String(\"/root/cachedir/**/*\"),\n\t\t\t},\n\t\t},\n\t}),\n})","version":"1"},"$":{"source":"declare const myCachingBucket: s3.Bucket;\n\nnew codebuild.Project(this, 'Project', {\n source: codebuild.Source.bitBucket({\n owner: 'awslabs',\n repo: 'aws-cdk',\n }),\n\n cache: codebuild.Cache.bucket(myCachingBucket),\n\n // BuildSpec with a 'cache' section necessary for S3 caching. This can\n // also come from 'buildspec.yml' in your source.\n buildSpec: codebuild.BuildSpec.fromObject({\n version: '0.2',\n phases: {\n build: {\n commands: ['...'],\n },\n },\n cache: {\n paths: [\n // The '**/*' is required to indicate all files in this directory\n '/root/cachedir/**/*',\n ],\n },\n }),\n});","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"@aws-cdk/aws-codebuild"},"field":{"field":"markdown","line":210}},"didCompile":true,"fqnsReferenced":["@aws-cdk/aws-codebuild.BitBucketSourceProps","@aws-cdk/aws-codebuild.BuildSpec","@aws-cdk/aws-codebuild.BuildSpec#fromObject","@aws-cdk/aws-codebuild.Cache","@aws-cdk/aws-codebuild.Cache#bucket","@aws-cdk/aws-codebuild.ISource","@aws-cdk/aws-codebuild.Project","@aws-cdk/aws-codebuild.ProjectProps","@aws-cdk/aws-codebuild.Source","@aws-cdk/aws-codebuild.Source#bitBucket","@aws-cdk/aws-s3.IBucket","constructs.Construct"],"fullSource":"// Hoisted imports begin after !show marker below\n/// !show\ndeclare const myCachingBucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Stack, Duration, SecretValue } from '@aws-cdk/core';\nimport codebuild = require('@aws-cdk/aws-codebuild');\nimport iam = require('@aws-cdk/aws-iam');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport lambda = require('@aws-cdk/aws-lambda');\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as ecr from '@aws-cdk/aws-ecr';\nimport * as logs from '@aws-cdk/aws-logs';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nnew codebuild.Project(this, 'Project', {\n source: codebuild.Source.bitBucket({\n owner: 'awslabs',\n repo: 'aws-cdk',\n }),\n\n cache: codebuild.Cache.bucket(myCachingBucket),\n\n // BuildSpec with a 'cache' section necessary for S3 caching. This can\n // also come from 'buildspec.yml' in your source.\n buildSpec: codebuild.BuildSpec.fromObject({\n version: '0.2',\n phases: {\n build: {\n commands: ['...'],\n },\n },\n cache: {\n paths: [\n // The '**/*' is required to indicate all files in this directory\n '/root/cachedir/**/*',\n ],\n },\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n","syntaxKindCounter":{"10":6,"75":26,"104":1,"130":1,"153":1,"169":1,"192":2,"193":6,"194":7,"196":3,"197":1,"225":1,"226":1,"242":1,"243":1,"281":11,"290":1},"fqnsFingerprint":"7afdfdd9d4d30f9c4bb12555fcd3781277cac2df3fb322f8b1122fd6bbb0ac53"},"49ba5fc28107f7c5b9111da310b960dafb8432ec94240e6fb1ace9f78a8e0f41":{"translations":{"python":{"source":"codebuild.Project(self, \"Project\",\n source=codebuild.Source.git_hub_enterprise(\n https_clone_url=\"https://my-github-enterprise.com/owner/repo\"\n ),\n\n # Enable Docker AND custom caching\n cache=codebuild.Cache.local(codebuild.LocalCacheMode.DOCKER_LAYER, codebuild.LocalCacheMode.CUSTOM),\n\n # BuildSpec with a 'cache' section necessary for 'CUSTOM' caching. This can\n # also come from 'buildspec.yml' in your source.\n build_spec=codebuild.BuildSpec.from_object({\n \"version\": \"0.2\",\n \"phases\": {\n \"build\": {\n \"commands\": [\"...\"]\n }\n },\n \"cache\": {\n \"paths\": [\"/root/cachedir/**/*\"\n ]\n }\n })\n)","version":"2"},"csharp":{"source":"new Project(this, \"Project\", new ProjectProps {\n Source = Source.GitHubEnterprise(new GitHubEnterpriseSourceProps {\n HttpsCloneUrl = \"https://my-github-enterprise.com/owner/repo\"\n }),\n\n // Enable Docker AND custom caching\n Cache = Cache.Local(LocalCacheMode.DOCKER_LAYER, LocalCacheMode.CUSTOM),\n\n // BuildSpec with a 'cache' section necessary for 'CUSTOM' caching. This can\n // also come from 'buildspec.yml' in your source.\n BuildSpec = BuildSpec.FromObject(new Dictionary<string, object> {\n { \"version\", \"0.2\" },\n { \"phases\", new Dictionary<string, IDictionary<string, string[]>> {\n { \"build\", new Struct {\n Commands = new [] { \"...\" }\n } }\n } },\n { \"cache\", new Dictionary<string, string[]> {\n { \"paths\", new [] { \"/root/cachedir/**/*\" } }\n } }\n })\n});","version":"1"},"java":{"source":"Project.Builder.create(this, \"Project\")\n .source(Source.gitHubEnterprise(GitHubEnterpriseSourceProps.builder()\n .httpsCloneUrl(\"https://my-github-enterprise.com/owner/repo\")\n .build()))\n\n // Enable Docker AND custom caching\n .cache(Cache.local(LocalCacheMode.DOCKER_LAYER, LocalCacheMode.CUSTOM))\n\n // BuildSpec with a 'cache' section necessary for 'CUSTOM' caching. This can\n // also come from 'buildspec.yml' in your source.\n .buildSpec(BuildSpec.fromObject(Map.of(\n \"version\", \"0.2\",\n \"phases\", Map.of(\n \"build\", Map.of(\n \"commands\", List.of(\"...\"))),\n \"cache\", Map.of(\n \"paths\", List.of(\"/root/cachedir/**/*\")))))\n .build();","version":"1"},"go":{"source":"codebuild.NewProject(this, jsii.String(\"Project\"), &ProjectProps{\n\tSource: codebuild.Source_GitHubEnterprise(&GitHubEnterpriseSourceProps{\n\t\tHttpsCloneUrl: jsii.String(\"https://my-github-enterprise.com/owner/repo\"),\n\t}),\n\n\t// Enable Docker AND custom caching\n\tCache: codebuild.Cache_Local(codebuild.LocalCacheMode_DOCKER_LAYER, codebuild.LocalCacheMode_CUSTOM),\n\n\t// BuildSpec with a 'cache' section necessary for 'CUSTOM' caching. This can\n\t// also come from 'buildspec.yml' in your source.\n\tBuildSpec: codebuild.BuildSpec_FromObject(map[string]interface{}{\n\t\t\"version\": jsii.String(\"0.2\"),\n\t\t\"phases\": map[string]map[string][]*string{\n\t\t\t\"build\": map[string][]*string{\n\t\t\t\t\"commands\": []*string{\n\t\t\t\t\tjsii.String(\"...\"),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\t\"cache\": map[string][]*string{\n\t\t\t\"paths\": []*string{\n\t\t\t\tjsii.String(\"/root/cachedir/**/*\"),\n\t\t\t},\n\t\t},\n\t}),\n})","version":"1"},"$":{"source":"new codebuild.Project(this, 'Project', {\n source: codebuild.Source.gitHubEnterprise({\n httpsCloneUrl: 'https://my-github-enterprise.com/owner/repo',\n }),\n\n // Enable Docker AND custom caching\n cache: codebuild.Cache.local(codebuild.LocalCacheMode.DOCKER_LAYER, codebuild.LocalCacheMode.CUSTOM),\n\n // BuildSpec with a 'cache' section necessary for 'CUSTOM' caching. This can\n // also come from 'buildspec.yml' in your source.\n buildSpec: codebuild.BuildSpec.fromObject({\n version: '0.2',\n phases: {\n build: {\n commands: ['...'],\n },\n },\n cache: {\n paths: [\n // The '**/*' is required to indicate all files in this directory\n '/root/cachedir/**/*',\n ],\n },\n }),\n});","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"@aws-cdk/aws-codebuild"},"field":{"field":"markdown","line":257}},"didCompile":true,"fqnsReferenced":["@aws-cdk/aws-codebuild.BuildSpec","@aws-cdk/aws-codebuild.BuildSpec#fromObject","@aws-cdk/aws-codebuild.Cache","@aws-cdk/aws-codebuild.Cache#local","@aws-cdk/aws-codebuild.GitHubEnterpriseSourceProps","@aws-cdk/aws-codebuild.ISource","@aws-cdk/aws-codebuild.LocalCacheMode","@aws-cdk/aws-codebuild.LocalCacheMode#CUSTOM","@aws-cdk/aws-codebuild.LocalCacheMode#DOCKER_LAYER","@aws-cdk/aws-codebuild.Project","@aws-cdk/aws-codebuild.ProjectProps","@aws-cdk/aws-codebuild.Source","@aws-cdk/aws-codebuild.Source#gitHubEnterprise","constructs.Construct"],"fullSource":"// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Stack, Duration, SecretValue } from '@aws-cdk/core';\nimport codebuild = require('@aws-cdk/aws-codebuild');\nimport iam = require('@aws-cdk/aws-iam');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport lambda = require('@aws-cdk/aws-lambda');\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as ecr from '@aws-cdk/aws-ecr';\nimport * as logs from '@aws-cdk/aws-logs';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nnew codebuild.Project(this, 'Project', {\n source: codebuild.Source.gitHubEnterprise({\n httpsCloneUrl: 'https://my-github-enterprise.com/owner/repo',\n }),\n\n // Enable Docker AND custom caching\n cache: codebuild.Cache.local(codebuild.LocalCacheMode.DOCKER_LAYER, codebuild.LocalCacheMode.CUSTOM),\n\n // BuildSpec with a 'cache' section necessary for 'CUSTOM' caching. This can\n // also come from 'buildspec.yml' in your source.\n buildSpec: codebuild.BuildSpec.fromObject({\n version: '0.2',\n phases: {\n build: {\n commands: ['...'],\n },\n },\n cache: {\n paths: [\n // The '**/*' is required to indicate all files in this directory\n '/root/cachedir/**/*',\n ],\n },\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n","syntaxKindCounter":{"10":5,"75":27,"104":1,"192":2,"193":6,"194":11,"196":3,"197":1,"226":1,"281":10},"fqnsFingerprint":"c37a940be7c6214308cb780996130a3bde8233055c834e8c57d5f34151fb8c0c"},"2fde47a725abd4b31e5e7b55933be824ea191a7ff58774802cb539b3f5fc63f1":{"translations":{"python":{"source":"# ecr_repository: ecr.Repository\n\n\ncodebuild.Project(self, \"Project\",\n environment=codebuild.BuildEnvironment(\n build_image=codebuild.WindowsBuildImage.from_ecr_repository(ecr_repository, \"v1.0\", codebuild.WindowsImageType.SERVER_2019),\n # optional certificate to include in the build image\n certificate=codebuild.BuildEnvironmentCertificate(\n bucket=s3.Bucket.from_bucket_name(self, \"Bucket\", \"my-bucket\"),\n object_key=\"path/to/cert.pem\"\n )\n )\n)","version":"2"},"csharp":{"source":"Repository ecrRepository;\n\n\nnew Project(this, \"Project\", new ProjectProps {\n Environment = new BuildEnvironment {\n BuildImage = WindowsBuildImage.FromEcrRepository(ecrRepository, \"v1.0\", WindowsImageType.SERVER_2019),\n // optional certificate to include in the build image\n Certificate = new BuildEnvironmentCertificate {\n Bucket = Bucket.FromBucketName(this, \"Bucket\", \"my-bucket\"),\n ObjectKey = \"path/to/cert.pem\"\n }\n }\n});","version":"1"},"java":{"source":"Repository ecrRepository;\n\n\nProject.Builder.create(this, \"Project\")\n .environment(BuildEnvironment.builder()\n .buildImage(WindowsBuildImage.fromEcrRepository(ecrRepository, \"v1.0\", WindowsImageType.SERVER_2019))\n // optional certificate to include in the build image\n .certificate(BuildEnvironmentCertificate.builder()\n .bucket(Bucket.fromBucketName(this, \"Bucket\", \"my-bucket\"))\n .objectKey(\"path/to/cert.pem\")\n .build())\n .build())\n .build();","version":"1"},"go":{"source":"var ecrRepository repository\n\n\ncodebuild.NewProject(this, jsii.String(\"Project\"), &ProjectProps{\n\tEnvironment: &BuildEnvironment{\n\t\tBuildImage: codebuild.WindowsBuildImage_FromEcrRepository(ecrRepository, jsii.String(\"v1.0\"), codebuild.WindowsImageType_SERVER_2019),\n\t\t// optional certificate to include in the build image\n\t\tCertificate: &BuildEnvironmentCertificate{\n\t\t\tBucket: s3.Bucket_FromBucketName(this, jsii.String(\"Bucket\"), jsii.String(\"my-bucket\")),\n\t\t\tObjectKey: jsii.String(\"path/to/cert.pem\"),\n\t\t},\n\t},\n})","version":"1"},"$":{"source":"declare const ecrRepository: ecr.Repository;\n\nnew codebuild.Project(this, 'Project', {\n environment: {\n buildImage: codebuild.WindowsBuildImage.fromEcrRepository(ecrRepository, 'v1.0', codebuild.WindowsImageType.SERVER_2019),\n // optional certificate to include in the build image\n certificate: {\n bucket: s3.Bucket.fromBucketName(this, 'Bucket', 'my-bucket'),\n objectKey: 'path/to/cert.pem',\n },\n },\n // ...\n})","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"@aws-cdk/aws-codebuild"},"field":{"field":"markdown","line":331}},"didCompile":true,"fqnsReferenced":["@aws-cdk/aws-codebuild.BuildEnvironment","@aws-cdk/aws-codebuild.BuildEnvironmentCertificate","@aws-cdk/aws-codebuild.IBuildImage","@aws-cdk/aws-codebuild.Project","@aws-cdk/aws-codebuild.ProjectProps","@aws-cdk/aws-codebuild.WindowsBuildImage","@aws-cdk/aws-codebuild.WindowsBuildImage#fromEcrRepository","@aws-cdk/aws-codebuild.WindowsImageType","@aws-cdk/aws-codebuild.WindowsImageType#SERVER_2019","@aws-cdk/aws-ecr.IRepository","@aws-cdk/aws-s3.Bucket","@aws-cdk/aws-s3.Bucket#fromBucketName","@aws-cdk/aws-s3.IBucket","constructs.Construct"],"fullSource":"// Hoisted imports begin after !show marker below\n/// !show\ndeclare const ecrRepository: ecr.Repository;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Stack, Duration, SecretValue } from '@aws-cdk/core';\nimport codebuild = require('@aws-cdk/aws-codebuild');\nimport iam = require('@aws-cdk/aws-iam');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport lambda = require('@aws-cdk/aws-lambda');\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as ecr from '@aws-cdk/aws-ecr';\nimport * as logs from '@aws-cdk/aws-logs';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nnew codebuild.Project(this, 'Project', {\n environment: {\n buildImage: codebuild.WindowsBuildImage.fromEcrRepository(ecrRepository, 'v1.0', codebuild.WindowsImageType.SERVER_2019),\n // optional certificate to include in the build image\n certificate: {\n bucket: s3.Bucket.fromBucketName(this, 'Bucket', 'my-bucket'),\n objectKey: 'path/to/cert.pem',\n },\n },\n // ...\n})\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n","syntaxKindCounter":{"10":5,"75":20,"104":2,"130":1,"153":1,"169":1,"193":3,"194":7,"196":2,"197":1,"225":1,"226":1,"242":1,"243":1,"281":5,"290":1},"fqnsFingerprint":"3e60e0590760861bb2626d88505b23935be03b2c5a37866d6d0358f0f4f6e31d"},"06821509fd03f9107ebbb67c99e6a3ddddafacd047771212a5b941ef1fd59d48":{"translations":{"python":{"source":"environment=codebuild.BuildEnvironment(\n build_image=codebuild.LinuxBuildImage.from_asset(self, \"MyImage\",\n directory=path.join(__dirname, \"demo-image\")\n )\n)","version":"2"},"csharp":{"source":"Environment = new BuildEnvironment {\n BuildImage = LinuxBuildImage.FromAsset(this, \"MyImage\", new DockerImageAssetProps {\n Directory = Join(__dirname, \"demo-image\")\n })\n}","version":"1"},"java":{"source":".environment(BuildEnvironment.builder()\n .buildImage(LinuxBuildImage.fromAsset(this, \"MyImage\", DockerImageAssetProps.builder()\n .directory(join(__dirname, \"demo-image\"))\n .build()))\n .build())\n.build();","version":"1"},"go":{"source":"Environment: &BuildEnvironment{\n\tBuildImage: codebuild.LinuxBuildImage_FromAsset(this, jsii.String(\"MyImage\"), &DockerImageAssetProps{\n\t\tDirectory: path.join(__dirname, jsii.String(\"demo-image\")),\n\t}),\n},","version":"1"},"$":{"source":"environment: {\n buildImage: codebuild.LinuxBuildImage.fromAsset(this, 'MyImage', {\n directory: path.join(__dirname, 'demo-image'),\n }),\n},","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"@aws-cdk/aws-codebuild"},"field":{"field":"markdown","line":349}},"didCompile":true,"fqnsReferenced":["@aws-cdk/aws-codebuild.BuildEnvironment","@aws-cdk/aws-codebuild.BuildSpec","@aws-cdk/aws-codebuild.IBuildImage","@aws-cdk/aws-codebuild.LinuxBuildImage","@aws-cdk/aws-codebuild.LinuxBuildImage#fromAsset","@aws-cdk/aws-ecr-assets.DockerImageAssetProps","constructs.Construct"],"fullSource":"import * as path from 'path';\nimport * as cdk from '@aws-cdk/core';\nimport * as codebuild from '../lib';\n\nclass TestStack extends cdk.Stack {\n constructor(scope: cdk.App, id: string) {\n super(scope, id);\n\n new codebuild.Project(this, 'MyProject', {\n buildSpec: codebuild.BuildSpec.fromObject({\n version: '0.2',\n phases: {\n build: {\n commands: ['ls'],\n },\n },\n }),\n grantReportGroupPermissions: false,\n /// !show\n environment: {\n buildImage: codebuild.LinuxBuildImage.fromAsset(this, 'MyImage', {\n directory: path.join(__dirname, 'demo-image'),\n }),\n },\n /// !hide\n });\n }\n}\n\nconst app = new cdk.App();\n\nnew TestStack(app, 'test-codebuild-docker-asset');\n\napp.synth();\n","syntaxKindCounter":{"10":2,"75":9,"104":1,"193":2,"194":3,"196":2,"281":3},"fqnsFingerprint":"eb9c705224ff40aa5e923d04a26da8227acb4a3150ba828c1d065a1fc9836257"},"e57c6d976be31743cd46e9669624bbbd14740e4c68e0fe43bc23801cbdefbd96":{"translations":{"python":{"source":"environment=codebuild.BuildEnvironment(\n build_image=codebuild.LinuxBuildImage.from_ecr_repository(ecr_repository, \"v1.0\")\n)","version":"2"},"csharp":{"source":"Environment = new BuildEnvironment {\n BuildImage = LinuxBuildImage.FromEcrRepository(ecrRepository, \"v1.0\")\n}","version":"1"},"java":{"source":".environment(BuildEnvironment.builder()\n .buildImage(LinuxBuildImage.fromEcrRepository(ecrRepository, \"v1.0\"))\n .build())\n.build();","version":"1"},"go":{"source":"Environment: &BuildEnvironment{\n\tBuildImage: codebuild.LinuxBuildImage_FromEcrRepository(ecrRepository, jsii.String(\"v1.0\")),\n},","version":"1"},"$":{"source":"environment: {\n buildImage: codebuild.LinuxBuildImage.fromEcrRepository(ecrRepository, 'v1.0'),\n},","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"@aws-cdk/aws-codebuild"},"field":{"field":"markdown","line":359}},"didCompile":true,"fqnsReferenced":["@aws-cdk/aws-codebuild.BuildEnvironment","@aws-cdk/aws-codebuild.BuildSpec","@aws-cdk/aws-codebuild.IBuildImage","@aws-cdk/aws-codebuild.LinuxBuildImage","@aws-cdk/aws-codebuild.LinuxBuildImage#fromEcrRepository","@aws-cdk/aws-ecr.IRepository"],"fullSource":"import * as ecr from '@aws-cdk/aws-ecr';\nimport * as cdk from '@aws-cdk/core';\nimport * as codebuild from '../lib';\n\nclass TestStack extends cdk.Stack {\n constructor(scope: cdk.App, id: string) {\n super(scope, id);\n\n const ecrRepository = new ecr.Repository(this, 'MyRepo');\n\n new codebuild.Project(this, 'MyProject', {\n buildSpec: codebuild.BuildSpec.fromObject({\n version: '0.2',\n phases: {\n build: {\n commands: ['ls'],\n },\n },\n }),\n grantReportGroupPermissions: false,\n /// !show\n environment: {\n buildImage: codebuild.LinuxBuildImage.fromEcrRepository(ecrRepository, 'v1.0'),\n },\n /// !hide\n });\n }\n}\n\nconst app = new cdk.App();\n\nnew TestStack(app, 'test-codebuild-docker-asset');\n\napp.synth();\n","syntaxKindCounter":{"10":1,"75":6,"193":1,"194":2,"196":1,"281":2},"fqnsFingerprint":"7fb1123d38c6d7788f0144377cf1b9600b8e10f3f2b78f881282fbf23ec35e16"},"d1afbafd1cc338ff