@aws-cdk/aws-codebuild
Version:
The CDK Construct Library for AWS::CodeBuild
707 lines (706 loc) • 690 kB
JSON
{
"version": "2",
"toolVersion": "1.74.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": 33
}
},
"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": 52
}
},
"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": "a73371b2f00a6b23bb0a5d791c6ad2258b58724b6bfd99b19ca6f58d0151e9e0"
},
"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\nRepository 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": 71
}
},
"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": "2ef02bbaff7124ce260bd9f21f5b32a3666ebcbfbcd0fbf761e13054345bb68a"
},
"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": "Bucket 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": 84
}
},
"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": "89dcaa8acf6df97e222940b5690a2539dea48829517629426e92bdebc75d9edf"
},
"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": "ISource 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": 102
}
},
"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": "ISource 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": 129
}
},
"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": "ISource 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": 140
}
},
"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\nProject 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": 152
}
},
"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": "a7f9b2c9d1a2de404ef12ef3a658133451ab176f2c61e363f62e48261d155015"
},
"9ee1cc80c888172237de1bf978384fb3c090dbb8fb656f7ee27a2ee51207e075": {
"translations": {
"python": {
"source": "project = codebuild.PipelineProject(self, \"Project\")",
"version": "2"
},
"csharp": {
"source": "PipelineProject 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": 186
}
},
"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": "c703df5aca356d7c361109210d1d591ab5b4c172ac6aea524e3d44256af571dc"
},
"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": 205
}
},
"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": "294b5a4d7943d39155baf9ccf010639a72f8f290f76ce2694fb17670afa88f15"
},
"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": 252
}
},
"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": "121cf8be73f3f175a7b1ca5213da4ef5f8fb8b8928e3a05cbb1f39bcd86108b1"
},
"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": 326
}
},
"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",