construct-hub 0.4.415 → 0.4.416
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +182 -61
- package/.jsii.tabl.json +1 -1
- package/API.md +98 -0
- package/lib/api.d.ts +20 -0
- package/lib/api.js +8 -1
- package/lib/backend/orchestration/index.d.ts +5 -0
- package/lib/backend/orchestration/index.js +5 -3
- package/lib/construct-hub.d.ts +5 -1
- package/lib/construct-hub.js +4 -3
- package/lib/monitoring/index.d.ts +2 -1
- package/lib/monitoring/index.js +18 -1
- package/lib/package-sources/code-artifact.js +1 -1
- package/lib/package-sources/npmjs.d.ts +5 -0
- package/lib/package-sources/npmjs.js +5 -3
- package/lib/package-tag/index.js +3 -3
- package/lib/package-tag-group/index.js +2 -2
- package/lib/preload-file/index.js +1 -1
- package/lib/s3/storage.js +1 -1
- package/lib/spdx-license.js +1 -1
- package/package.json +1 -1
package/.jsii.tabl.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":"2","toolVersion":"5.8.11","snippets":{"25e685846489a7c8f9621a4c3239be2be62ae31758f0147822166a15d4afb416":{"translations":{"python":{"source":"from aws_cdk import App, Stack\nfrom construct_hub import ConstructHub\n\n# The usual... you might have used `cdk init app` instead!\napp = App()\nstack = Stack(app, \"StackName\")\n\n# Now to business!\nConstructHub(stack, \"ConstructHub\")","version":"2"},"csharp":{"source":"using Amazon.CDK;\nusing Construct.Hub;\n\n// The usual... you might have used `cdk init app` instead!\nvar app = new App();\nvar stack = new Stack(app, \"StackName\", new StackProps { });\n\n// Now to business!\n// Now to business!\nnew ConstructHub(stack, \"ConstructHub\");","version":"1"},"java":{"source":"import software.amazon.awscdk.App;\nimport software.amazon.awscdk.Stack;\nimport construct.hub.ConstructHub;\n\n// The usual... you might have used `cdk init app` instead!\nApp app = new App();\nStack stack = Stack.Builder.create(app, \"StackName\").build();\n\n// Now to business!\n// Now to business!\nnew ConstructHub(stack, \"ConstructHub\");","version":"1"},"go":{"source":"import \"github.com/aws/aws-cdk-go/awscdk\"\nimport \"github.com/aws-samples/dummy/constructhub\"\n\n// The usual... you might have used `cdk init app` instead!\napp := awscdk.NewApp()\nstack := awscdk.NewStack(app, jsii.String(\"StackName\"), &StackProps{\n})\n\n// Now to business!\n// Now to business!\nconstructhub.NewConstructHub(stack, jsii.String(\"ConstructHub\"))","version":"1"},"$":{"source":"import { App, Stack } from 'aws-cdk-lib/core';\nimport { ConstructHub } from 'construct-hub';\n\n// The usual... you might have used `cdk init app` instead!\nconst app = new App();\nconst stack = new Stack(app, 'StackName', { /* ... */ });\n\n// Now to business!\nnew ConstructHub(stack, 'ConstructHub');","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"construct-hub"},"field":{"field":"markdown","line":45}},"didCompile":true,"fqnsReferenced":["aws-cdk-lib.App","aws-cdk-lib.Stack","aws-cdk-lib.StackProps","construct-hub.ConstructHub"],"fullSource":"import { App, Stack } from 'aws-cdk-lib/core';\nimport { ConstructHub } from 'construct-hub';\n\n// The usual... you might have used `cdk init app` instead!\nconst app = new App();\nconst stack = new Stack(app, 'StackName', { /* ... */ });\n\n// Now to business!\nnew ConstructHub(stack, 'ConstructHub');","syntaxKindCounter":{"11":4,"80":10,"210":1,"214":3,"243":2,"244":1,"260":2,"261":2,"272":2,"273":2,"275":2,"276":3,"307":1},"fqnsFingerprint":"2f9fe98f7bc1d238e085919ac1296d71386f48c668983f5916264c4d270eaee0"},"ebafb072daebb584d8863973cd882175d746c5cbda4464c37f5f0fc7976b5090":{"translations":{"python":{"source":"import aws_cdk.aws_codeartifact as codeartifact\nfrom aws_cdk import App, Stack\nfrom construct_hub import sources, ConstructHub\n\n# The usual... you might have used `cdk init app` instead!\napp = App()\nstack = Stack(app, \"StackName\")\n\n# Now to business!\nrepository = codeartifact.CfnRepository(stack, \"Repository\",\n domain_name=\"my-domain\",\n repository_name=\"my-repo\"\n)\nConstructHub(stack, \"ConstructHub\",\n package_sources=[\n sources.NpmJs(), # Remove if you do NOT want npmjs.com packages\n sources.CodeArtifact(repository=repository)\n ]\n)","version":"2"},"csharp":{"source":"using Amazon.CDK.AWS.CodeArtifact;\nusing Amazon.CDK;\nusing Construct.Hub.Sources;\nusing Construct.Hub;\n\n// The usual... you might have used `cdk init app` instead!\nvar app = new App();\nvar stack = new Stack(app, \"StackName\", new StackProps { });\n\n// Now to business!\nvar repository = new CfnRepository(stack, \"Repository\", new CfnRepositoryProps {\n DomainName = \"my-domain\",\n RepositoryName = \"my-repo\"\n});\nnew ConstructHub(stack, \"ConstructHub\", new ConstructHubProps {\n PackageSources = new [] {\n new NpmJs(), // Remove if you do NOT want npmjs.com packages\n new CodeArtifact(new CodeArtifactProps { Repository = repository }) }\n});","version":"1"},"java":{"source":"import software.amazon.awscdk.services.codeartifact.*;\nimport software.amazon.awscdk.App;\nimport software.amazon.awscdk.Stack;\nimport construct.hub.sources.*;\nimport construct.hub.ConstructHub;\n\n// The usual... you might have used `cdk init app` instead!\nApp app = new App();\nStack stack = Stack.Builder.create(app, \"StackName\").build();\n\n// Now to business!\nCfnRepository repository = CfnRepository.Builder.create(stack, \"Repository\")\n .domainName(\"my-domain\")\n .repositoryName(\"my-repo\")\n .build();\nConstructHub.Builder.create(stack, \"ConstructHub\")\n .packageSources(List.of(\n new NpmJs(), // Remove if you do NOT want npmjs.com packages\n CodeArtifact.Builder.create().repository(repository).build()))\n .build();","version":"1"},"go":{"source":"import codeartifact \"github.com/aws/aws-cdk-go/awscdk\"\nimport \"github.com/aws/aws-cdk-go/awscdk\"\nimport \"github.com/aws-samples/dummy/constructhub\"\n\n// The usual... you might have used `cdk init app` instead!\napp := awscdk.NewApp()\nstack := awscdk.NewStack(app, jsii.String(\"StackName\"), &StackProps{\n})\n\n// Now to business!\nrepository := codeartifact.NewCfnRepository(stack, jsii.String(\"Repository\"), &CfnRepositoryProps{\n\tDomainName: jsii.String(\"my-domain\"),\n\tRepositoryName: jsii.String(\"my-repo\"),\n})\nconstructhub.NewConstructHub(stack, jsii.String(\"ConstructHub\"), &ConstructHubProps{\n\tPackageSources: []iPackageSource{\n\t\t*constructhub.Sources.NewNpmJs(),\n\t\t // Remove if you do NOT want npmjs.com packages\n\t\t*constructhub.*Sources.NewCodeArtifact(&CodeArtifactProps{\n\t\t\tRepository: *Repository,\n\t\t}),\n\t},\n})","version":"1"},"$":{"source":"import * as codeartifact from 'aws-cdk-lib/aws-codeartifact';\nimport { App, Stack } from 'aws-cdk-lib/core';\nimport { sources, ConstructHub } from 'construct-hub';\n\n// The usual... you might have used `cdk init app` instead!\nconst app = new App();\nconst stack = new Stack(app, 'StackName', { /* ... */ });\n\n// Now to business!\nconst repository = new codeartifact.CfnRepository(stack, 'Repository', {\n domainName: 'my-domain',\n repositoryName: 'my-repo',\n // ....\n});\nnew ConstructHub(stack, 'ConstructHub', {\n packageSources: [\n new sources.NpmJs(), // Remove if you do NOT want npmjs.com packages\n new sources.CodeArtifact({ repository }),\n ],\n});","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"construct-hub"},"field":{"field":"markdown","line":86}},"didCompile":true,"fqnsReferenced":["aws-cdk-lib.App","aws-cdk-lib.Stack","aws-cdk-lib.StackProps","aws-cdk-lib.aws_codeartifact.CfnRepository","aws-cdk-lib.aws_codeartifact.CfnRepositoryProps","construct-hub.ConstructHub","construct-hub.ConstructHubProps","construct-hub.sources.CodeArtifact","construct-hub.sources.CodeArtifactProps","construct-hub.sources.NpmJs"],"fullSource":"import * as codeartifact from 'aws-cdk-lib/aws-codeartifact';\nimport { App, Stack } from 'aws-cdk-lib/core';\nimport { sources, ConstructHub } from 'construct-hub';\n\n// The usual... you might have used `cdk init app` instead!\nconst app = new App();\nconst stack = new Stack(app, 'StackName', { /* ... */ });\n\n// Now to business!\nconst repository = new codeartifact.CfnRepository(stack, 'Repository', {\n domainName: 'my-domain',\n repositoryName: 'my-repo',\n // ....\n});\nnew ConstructHub(stack, 'ConstructHub', {\n packageSources: [\n new sources.NpmJs(), // Remove if you do NOT want npmjs.com packages\n new sources.CodeArtifact({ repository }),\n ],\n});","syntaxKindCounter":{"11":8,"80":24,"209":1,"210":4,"211":3,"214":6,"243":3,"244":1,"260":3,"261":3,"272":3,"273":3,"274":1,"275":2,"276":4,"303":3,"304":1,"307":1},"fqnsFingerprint":"2247ec310d98239c26b91e5af4fb52af34bb21d9702a60e9ce6bff0f2992e604"},"6b13b6fdb8d630fd0d73ad93f143273c787b9e0e749158c00c3cf96c5c685f1f":{"translations":{"python":{"source":"from construct_hub import DenyListRule, DenyListRule\nfrom aws_cdk import App, Stack\nfrom construct_hub import ConstructHub\n\n# The usual... you might have used `cdk init app` instead!\napp = App()\nstack = Stack(app, \"StackName\")\n\n# Now to business!\nConstructHub(stack, \"ConstructHub\",\n deny_list=[DenyListRule(package_name=\"sneaky-hackery\", reason=\"Mines bitcoins wherever it gets installed\"), DenyListRule(package_name=\"bad-release\", version=\"1.2.3\", reason=\"CVE-####-#####\")\n ]\n)","version":"2"},"csharp":{"source":"using Amazon.CDK;\nusing Construct.Hub;\n\n// The usual... you might have used `cdk init app` instead!\nvar app = new App();\nvar stack = new Stack(app, \"StackName\", new StackProps { });\n\n// Now to business!\n// Now to business!\nnew ConstructHub(stack, \"ConstructHub\", new ConstructHubProps {\n DenyList = new [] { new DenyListRule { PackageName = \"sneaky-hackery\", Reason = \"Mines bitcoins wherever it gets installed\" }, new DenyListRule { PackageName = \"bad-release\", Version = \"1.2.3\", Reason = \"CVE-####-#####\" } }\n});","version":"1"},"java":{"source":"import software.amazon.awscdk.App;\nimport software.amazon.awscdk.Stack;\nimport construct.hub.ConstructHub;\n\n// The usual... you might have used `cdk init app` instead!\nApp app = new App();\nStack stack = Stack.Builder.create(app, \"StackName\").build();\n\n// Now to business!\n// Now to business!\nConstructHub.Builder.create(stack, \"ConstructHub\")\n .denyList(List.of(DenyListRule.builder().packageName(\"sneaky-hackery\").reason(\"Mines bitcoins wherever it gets installed\").build(), DenyListRule.builder().packageName(\"bad-release\").version(\"1.2.3\").reason(\"CVE-####-#####\").build()))\n .build();","version":"1"},"go":{"source":"import \"github.com/aws/aws-cdk-go/awscdk\"\nimport \"github.com/aws-samples/dummy/constructhub\"\n\n// The usual... you might have used `cdk init app` instead!\napp := awscdk.NewApp()\nstack := awscdk.NewStack(app, jsii.String(\"StackName\"), &StackProps{\n})\n\n// Now to business!\n// Now to business!\nconstructhub.NewConstructHub(stack, jsii.String(\"ConstructHub\"), &ConstructHubProps{\n\tDenyList: []denyListRule{\n\t\t&denyListRule{\n\t\t\tPackageName: jsii.String(\"sneaky-hackery\"),\n\t\t\tReason: jsii.String(\"Mines bitcoins wherever it gets installed\"),\n\t\t},\n\t\t&denyListRule{\n\t\t\tPackageName: jsii.String(\"bad-release\"),\n\t\t\tVersion: jsii.String(\"1.2.3\"),\n\t\t\tReason: jsii.String(\"CVE-####-#####\"),\n\t\t},\n\t},\n})","version":"1"},"$":{"source":"import { App, Stack } from 'aws-cdk-lib/core';\nimport { ConstructHub } from 'construct-hub';\n\n// The usual... you might have used `cdk init app` instead!\nconst app = new App();\nconst stack = new Stack(app, 'StackName', { /* ... */ });\n\n// Now to business!\nnew ConstructHub(stack, 'ConstructHub', {\n denyList: [\n // Denying _all_ versions of the \"sneaky-hackery\" package\n { packageName: 'sneaky-hackery', reason: 'Mines bitcoins wherever it gets installed' },\n // Denying _a specific_ version of the \"bad-release\" package\n { packageName: 'bad-release', version: '1.2.3', reason: 'CVE-####-#####' },\n ],\n});","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"construct-hub"},"field":{"field":"markdown","line":131}},"didCompile":true,"fqnsReferenced":["aws-cdk-lib.App","aws-cdk-lib.Stack","aws-cdk-lib.StackProps","construct-hub.ConstructHub","construct-hub.ConstructHubProps"],"fullSource":"import { App, Stack } from 'aws-cdk-lib/core';\nimport { ConstructHub } from 'construct-hub';\n\n// The usual... you might have used `cdk init app` instead!\nconst app = new App();\nconst stack = new Stack(app, 'StackName', { /* ... */ });\n\n// Now to business!\nnew ConstructHub(stack, 'ConstructHub', {\n denyList: [\n // Denying _all_ versions of the \"sneaky-hackery\" package\n { packageName: 'sneaky-hackery', reason: 'Mines bitcoins wherever it gets installed' },\n // Denying _a specific_ version of the \"bad-release\" package\n { packageName: 'bad-release', version: '1.2.3', reason: 'CVE-####-#####' },\n ],\n});","syntaxKindCounter":{"11":9,"80":16,"209":1,"210":4,"214":3,"243":2,"244":1,"260":2,"261":2,"272":2,"273":2,"275":2,"276":3,"303":6,"307":1},"fqnsFingerprint":"3c2273b1107170c14b31f0d11eef995a18339115a7995260d3af3dbf009e3e99"},"4d197b3af4e5af3c177e46123bb5bc4475ca36b348d16ac0159ad83618562f7c":{"translations":{"python":{"source":"import aws_cdk.aws_route53 as r53\n\n\nmy_domain_zone = r53.HostedZone.from_hosted_zone_attributes(self, \"MyDomainZone\",\n hosted_zone_id=\"AZ1234\",\n zone_name=\"my.domain.com\"\n)\n\nConstructHub(self, \"ConstructHub\",\n additional_domains=[DomainRedirectSource(hosted_zone=my_domain_zone)]\n)","version":"2"},"csharp":{"source":"using Amazon.CDK.AWS.Route53;\n\n\nvar myDomainZone = HostedZone.FromHostedZoneAttributes(this, \"MyDomainZone\", new HostedZoneAttributes {\n HostedZoneId = \"AZ1234\",\n ZoneName = \"my.domain.com\"\n});\n\nnew ConstructHub(this, \"ConstructHub\", new ConstructHubProps {\n AdditionalDomains = new [] { new DomainRedirectSource { HostedZone = myDomainZone } }\n});","version":"1"},"java":{"source":"import software.amazon.awscdk.services.route53.*;\n\n\nIHostedZone myDomainZone = HostedZone.fromHostedZoneAttributes(this, \"MyDomainZone\", HostedZoneAttributes.builder()\n .hostedZoneId(\"AZ1234\")\n .zoneName(\"my.domain.com\")\n .build());\n\nConstructHub.Builder.create(this, \"ConstructHub\")\n .additionalDomains(List.of(DomainRedirectSource.builder().hostedZone(myDomainZone).build()))\n .build();","version":"1"},"go":{"source":"import r53 \"github.com/aws/aws-cdk-go/awscdk\"\n\n\nmyDomainZone := r53.HostedZone_FromHostedZoneAttributes(this, jsii.String(\"MyDomainZone\"), &HostedZoneAttributes{\n\tHostedZoneId: jsii.String(\"AZ1234\"),\n\tZoneName: jsii.String(\"my.domain.com\"),\n})\n\nconstructhub.NewConstructHub(this, jsii.String(\"ConstructHub\"), &ConstructHubProps{\n\tAdditionalDomains: []domainRedirectSource{\n\t\t&domainRedirectSource{\n\t\t\tHostedZone: myDomainZone,\n\t\t},\n\t},\n})","version":"1"},"$":{"source":"import * as r53 from 'aws-cdk-lib/aws-route53';\n\nconst myDomainZone = r53.HostedZone.fromHostedZoneAttributes(this, 'MyDomainZone', {\n hostedZoneId: 'AZ1234',\n zoneName: 'my.domain.com',\n});\n\nnew ConstructHub(this, 'ConstructHub', {\n additionalDomains: [ { hostedZone: myDomainZone } ]\n});","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"construct-hub"},"field":{"field":"markdown","line":155}},"didCompile":true,"fqnsReferenced":["aws-cdk-lib.aws_route53.HostedZone","aws-cdk-lib.aws_route53.HostedZone#fromHostedZoneAttributes","aws-cdk-lib.aws_route53.HostedZoneAttributes","aws-cdk-lib.aws_route53.IHostedZone","construct-hub.ConstructHub","construct-hub.ConstructHubProps"],"fullSource":"// Hoisted imports begin after !show marker below\n/// !show\nimport * as r53 from 'aws-cdk-lib/aws-route53';\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { App, Stack } from 'aws-cdk-lib';\nimport * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';\nimport { ConstructHub, FilterType, PackageTagGroup, TagCondition } from 'construct-hub';\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 myDomainZone = r53.HostedZone.fromHostedZoneAttributes(this, 'MyDomainZone', {\n hostedZoneId: 'AZ1234',\n zoneName: 'my.domain.com',\n});\n\nnew ConstructHub(this, 'ConstructHub', {\n additionalDomains: [ { hostedZone: myDomainZone } ]\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n","syntaxKindCounter":{"11":5,"80":11,"110":2,"209":1,"210":3,"211":2,"213":1,"214":1,"243":1,"244":1,"260":1,"261":1,"272":1,"273":1,"274":1,"303":4,"307":1},"fqnsFingerprint":"a500b372a28b100a51718f0534d294822966aff658033038d0991b025f4791b2"},"22c8c6ecdc6ee4ee613ca39d5d011b92bd3f8c40360f066806c9e6ba55512b05":{"translations":{"python":{"source":"import aws_cdk.aws_codeartifact as codeartifact\nfrom aws_cdk import App, Duration, Stack\nfrom construct_hub import sources, ConstructHub\n\napp = App()\nstack = Stack(app, \"StackName\")\n\nConstructHub(stack, \"ConstructHub\",\n # ...\n package_sources=[\n # ...\n sources.NpmJs(\n enable_canary=True, # This is the default\n canary_package=\"@acme/my-constructhub-probe\",\n canary_sla=Duration.minutes(30)\n )\n ]\n)","version":"2"},"csharp":{"source":"using Amazon.CDK.AWS.CodeArtifact;\nusing Amazon.CDK;\nusing Construct.Hub.Sources;\nusing Construct.Hub;\n\nvar app = new App();\nvar stack = new Stack(app, \"StackName\", new StackProps { });\n\nnew ConstructHub(stack, \"ConstructHub\", new ConstructHubProps {\n // ...\n PackageSources = new [] {\n // ...\n new NpmJs(new NpmJsProps {\n EnableCanary = true, // This is the default\n CanaryPackage = \"@acme/my-constructhub-probe\",\n CanarySla = Duration.Minutes(30)\n }) }\n});","version":"1"},"java":{"source":"import software.amazon.awscdk.services.codeartifact.*;\nimport software.amazon.awscdk.App;\nimport software.amazon.awscdk.Duration;\nimport software.amazon.awscdk.Stack;\nimport construct.hub.sources.*;\nimport construct.hub.ConstructHub;\n\nApp app = new App();\nStack stack = Stack.Builder.create(app, \"StackName\").build();\n\nConstructHub.Builder.create(stack, \"ConstructHub\")\n // ...\n .packageSources(List.of(\n // ...\n NpmJs.Builder.create()\n .enableCanary(true) // This is the default\n .canaryPackage(\"@acme/my-constructhub-probe\")\n .canarySla(Duration.minutes(30))\n .build()))\n .build();","version":"1"},"go":{"source":"import codeartifact \"github.com/aws/aws-cdk-go/awscdk\"\nimport \"github.com/aws/aws-cdk-go/awscdk\"\nimport \"github.com/aws-samples/dummy/constructhub\"\n\napp := awscdk.NewApp()\nstack := awscdk.NewStack(app, jsii.String(\"StackName\"), &StackProps{\n})\n\nconstructhub.NewConstructHub(stack, jsii.String(\"ConstructHub\"), &ConstructHubProps{\n\t// ...\n\tPackageSources: []iPackageSource{\n\t\t// ...\n\t\t*constructhub.Sources.NewNpmJs(&NpmJsProps{\n\t\t\tEnableCanary: jsii.Boolean(true),\n\t\t\t // This is the default\n\t\t\tCanaryPackage: jsii.String(\"@acme/my-constructhub-probe\"),\n\t\t\tCanarySla: awscdk.Duration_Minutes(jsii.Number(30)),\n\t\t}),\n\t},\n})","version":"1"},"$":{"source":"import * as codeartifact from 'aws-cdk-lib/aws-codeartifact';\nimport { App, Duration, Stack } from 'aws-cdk-lib/core';\nimport { sources, ConstructHub } from 'construct-hub';\n\nconst app = new App();\nconst stack = new Stack(app, 'StackName', { /* ... */ });\n\nnew ConstructHub(stack, 'ConstructHub', {\n // ...\n packageSources: [\n // ...\n new sources.NpmJs({\n enableCanary: true, // This is the default\n canaryPackage: '@acme/my-constructhub-probe',\n canarySla: Duration.minutes(30),\n }),\n // ...\n ],\n // ...\n});","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"construct-hub"},"field":{"field":"markdown","line":228}},"didCompile":true,"fqnsReferenced":["aws-cdk-lib.App","aws-cdk-lib.Duration","aws-cdk-lib.Duration#minutes","aws-cdk-lib.Stack","aws-cdk-lib.StackProps","construct-hub.ConstructHub","construct-hub.ConstructHubProps","construct-hub.sources.NpmJs","construct-hub.sources.NpmJsProps"],"fullSource":"import * as codeartifact from 'aws-cdk-lib/aws-codeartifact';\nimport { App, Duration, Stack } from 'aws-cdk-lib/core';\nimport { sources, ConstructHub } from 'construct-hub';\n\nconst app = new App();\nconst stack = new Stack(app, 'StackName', { /* ... */ });\n\nnew ConstructHub(stack, 'ConstructHub', {\n // ...\n packageSources: [\n // ...\n new sources.NpmJs({\n enableCanary: true, // This is the default\n canaryPackage: '@acme/my-constructhub-probe',\n canarySla: Duration.minutes(30),\n }),\n // ...\n ],\n // ...\n});","syntaxKindCounter":{"9":1,"11":6,"80":21,"112":1,"209":1,"210":3,"211":2,"213":1,"214":4,"243":2,"244":1,"260":2,"261":2,"272":3,"273":3,"274":1,"275":2,"276":5,"303":4,"307":1},"fqnsFingerprint":"65bdb21aceb6b7cbc8fc9e9a4289adc80d846008ea77a0e7a24f4fcfe53f13c7"},"e78bdd3f6618080d2d205f53de8bfbcd0ea2a0baeb0c4388572e52231545ee68":{"translations":{"python":{"source":"ConstructHub(self, \"ConstructHub\",\n package_tags=[PackageTag(\n id=\"official\",\n condition=TagCondition.field(\"name\").eq(\"construct-hub\"),\n keyword=Keyword(\n label=\"Official\",\n color=\"#00FF00\"\n ),\n highlight=Highlight(\n label=\"Vended by AWS\",\n color=\"#00FF00\"\n )\n )]\n)","version":"2"},"csharp":{"source":"new ConstructHub(this, \"ConstructHub\", new ConstructHubProps {\n PackageTags = new [] { new PackageTag {\n Id = \"official\",\n Condition = TagCondition.Field(\"name\").Eq(\"construct-hub\"),\n Keyword = new Keyword {\n Label = \"Official\",\n Color = \"#00FF00\"\n },\n Highlight = new Highlight {\n Label = \"Vended by AWS\",\n Color = \"#00FF00\"\n }\n } }\n});","version":"1"},"java":{"source":"ConstructHub.Builder.create(this, \"ConstructHub\")\n .packageTags(List.of(PackageTag.builder()\n .id(\"official\")\n .condition(TagCondition.field(\"name\").eq(\"construct-hub\"))\n .keyword(Keyword.builder()\n .label(\"Official\")\n .color(\"#00FF00\")\n .build())\n .highlight(Highlight.builder()\n .label(\"Vended by AWS\")\n .color(\"#00FF00\")\n .build())\n .build()))\n .build();","version":"1"},"go":{"source":"constructhub.NewConstructHub(this, jsii.String(\"ConstructHub\"), &ConstructHubProps{\n\tPackageTags: []packageTag{\n\t\t&packageTag{\n\t\t\tId: jsii.String(\"official\"),\n\t\t\tCondition: *constructhub.TagCondition_Field(jsii.String(\"name\")).Eq(jsii.String(\"construct-hub\")),\n\t\t\tKeyword: &Keyword{\n\t\t\t\tLabel: jsii.String(\"Official\"),\n\t\t\t\tColor: jsii.String(\"#00FF00\"),\n\t\t\t},\n\t\t\tHighlight: &Highlight{\n\t\t\t\tLabel: jsii.String(\"Vended by AWS\"),\n\t\t\t\tColor: jsii.String(\"#00FF00\"),\n\t\t\t},\n\t\t},\n\t},\n})","version":"1"},"$":{"source":"new ConstructHub(this, \"ConstructHub\", {\n packageTags: [{\n id: 'official',\n condition: TagCondition.field('name').eq('construct-hub'),\n keyword: {\n label: 'Official',\n color: '#00FF00',\n },\n highlight: {\n label: 'Vended by AWS',\n color: '#00FF00',\n }\n }]\n});","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"construct-hub"},"field":{"field":"markdown","line":274}},"didCompile":true,"fqnsReferenced":["construct-hub.ConstructHub","construct-hub.ConstructHubProps","construct-hub.Highlight","construct-hub.Keyword","construct-hub.TagCondition","construct-hub.TagCondition#field","construct-hub.TagConditionField#eq"],"fullSource":"// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { App, Stack } from 'aws-cdk-lib';\nimport * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';\nimport { ConstructHub, FilterType, PackageTagGroup, TagCondition } from 'construct-hub';\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 ConstructHub(this, \"ConstructHub\", {\n packageTags: [{\n id: 'official',\n condition: TagCondition.field('name').eq('construct-hub'),\n keyword: {\n label: 'Official',\n color: '#00FF00',\n },\n highlight: {\n label: 'Vended by AWS',\n color: '#00FF00',\n }\n }]\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n","syntaxKindCounter":{"11":8,"80":13,"110":1,"209":1,"210":4,"211":2,"213":2,"214":1,"244":1,"303":9},"fqnsFingerprint":"f792b5a2f4561cca026b9846b8d8e35de9ff599e5a17d25ab9a82413b9936814"},"dadbf82a659becce57c566dbc5c0d7a91712450bc8ce2fffad6a1ea87476741c":{"translations":{"python":{"source":"authors_group = PackageTagGroup(\"authors\",\n label=\"Authors\",\n tooltip=\"Information about the authors filter\",\n filter_type=FilterType.checkbox()\n)\n\nis_aws = TagCondition.field(\"name\").eq(\"construct-hub\")\nConstructHub(self, \"ConstructHub\",\n package_tags=[PackageTag(\n id=\"AWS\",\n condition=is_aws,\n search_filter=SearchFilter(\n group=authors_group,\n display=\"AWS\"\n )\n ), PackageTag(\n id=\"Community\",\n condition=TagCondition.not(is_aws),\n search_filter=SearchFilter(\n group=authors_group,\n display=\"AWS\"\n )\n )]\n)","version":"2"},"csharp":{"source":"var authorsGroup = new PackageTagGroup(\"authors\", new PackageTagGroupProps {\n Label = \"Authors\",\n Tooltip = \"Information about the authors filter\",\n FilterType = FilterType.Checkbox()\n});\n\nvar isAws = TagCondition.Field(\"name\").Eq(\"construct-hub\");\nnew ConstructHub(this, \"ConstructHub\", new ConstructHubProps {\n PackageTags = new [] { new PackageTag {\n Id = \"AWS\",\n Condition = isAws,\n SearchFilter = new SearchFilter {\n Group = authorsGroup,\n Display = \"AWS\"\n }\n }, new PackageTag {\n Id = \"Community\",\n Condition = TagCondition.Not(isAws),\n SearchFilter = new SearchFilter {\n Group = authorsGroup,\n Display = \"AWS\"\n }\n } }\n});","version":"1"},"java":{"source":"PackageTagGroup authorsGroup = PackageTagGroup.Builder.create(\"authors\")\n .label(\"Authors\")\n .tooltip(\"Information about the authors filter\")\n .filterType(FilterType.checkbox())\n .build();\n\nTagCondition isAws = TagCondition.field(\"name\").eq(\"construct-hub\");\nConstructHub.Builder.create(this, \"ConstructHub\")\n .packageTags(List.of(PackageTag.builder()\n .id(\"AWS\")\n .condition(isAws)\n .searchFilter(SearchFilter.builder()\n .group(authorsGroup)\n .display(\"AWS\")\n .build())\n .build(), PackageTag.builder()\n .id(\"Community\")\n .condition(TagCondition.not(isAws))\n .searchFilter(SearchFilter.builder()\n .group(authorsGroup)\n .display(\"AWS\")\n .build())\n .build()))\n .build();","version":"1"},"go":{"source":"authorsGroup := constructhub.NewPackageTagGroup(jsii.String(\"authors\"), &PackageTagGroupProps{\n\tLabel: jsii.String(\"Authors\"),\n\tTooltip: jsii.String(\"Information about the authors filter\"),\n\tFilterType: *constructhub.FilterType_Checkbox(),\n})\n\nisAws := constructhub.TagCondition_Field(jsii.String(\"name\")).Eq(jsii.String(\"construct-hub\"))\nconstructhub.NewConstructHub(this, jsii.String(\"ConstructHub\"), &ConstructHubProps{\n\tPackageTags: []packageTag{\n\t\t&packageTag{\n\t\t\tId: jsii.String(\"AWS\"),\n\t\t\tCondition: isAws,\n\t\t\tSearchFilter: &SearchFilter{\n\t\t\t\tGroup: authorsGroup,\n\t\t\t\tDisplay: jsii.String(\"AWS\"),\n\t\t\t},\n\t\t},\n\t\t&packageTag{\n\t\t\tId: jsii.String(\"Community\"),\n\t\t\tCondition: *constructhub.TagCondition_Not(isAws),\n\t\t\tSearchFilter: &SearchFilter{\n\t\t\t\tGroup: authorsGroup,\n\t\t\t\tDisplay: jsii.String(\"AWS\"),\n\t\t\t},\n\t\t},\n\t},\n})","version":"1"},"$":{"source":"const authorsGroup = new PackageTagGroup(\"authors\", {\n label: \"Authors\",\n tooltip: \"Information about the authors filter\",\n filterType: FilterType.checkbox(),\n});\n\nconst isAws = TagCondition.field('name').eq('construct-hub');\nnew ConstructHub(this, \"ConstructHub\", {\n packageTags: [{\n id: 'AWS',\n condition: isAws,\n searchFilter: {\n group: authorsGroup,\n display: 'AWS',\n },\n }, {\n id: 'Community',\n condition: TagCondition.not(isAws),\n searchFilter: {\n group: authorsGroup,\n display: 'AWS',\n },\n }]\n});","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"construct-hub"},"field":{"field":"markdown","line":299}},"didCompile":true,"fqnsReferenced":["construct-hub.ConstructHub","construct-hub.ConstructHubProps","construct-hub.FilterType","construct-hub.FilterType#checkbox","construct-hub.PackageTagGroup","construct-hub.PackageTagGroupProps","construct-hub.SearchFilter","construct-hub.TagCondition","construct-hub.TagCondition#field","construct-hub.TagCondition#not","construct-hub.TagConditionField#eq"],"fullSource":"// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { App, Stack } from 'aws-cdk-lib';\nimport * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';\nimport { ConstructHub, FilterType, PackageTagGroup, TagCondition } from 'construct-hub';\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 authorsGroup = new PackageTagGroup(\"authors\", {\n label: \"Authors\",\n tooltip: \"Information about the authors filter\",\n filterType: FilterType.checkbox(),\n});\n\nconst isAws = TagCondition.field('name').eq('construct-hub');\nnew ConstructHub(this, \"ConstructHub\", {\n packageTags: [{\n id: 'AWS',\n condition: isAws,\n searchFilter: {\n group: authorsGroup,\n display: 'AWS',\n },\n }, {\n id: 'Community',\n condition: TagCondition.not(isAws),\n searchFilter: {\n group: authorsGroup,\n display: 'AWS',\n },\n }]\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n","syntaxKindCounter":{"11":10,"80":29,"110":1,"209":1,"210":6,"211":4,"213":4,"214":2,"243":2,"244":1,"260":2,"261":2,"303":14},"fqnsFingerprint":"477a807d9866e7334a90fd7557e572bc162ed425dfa06c47fb5055c7c2fad6e8"},"e0dd3e5b738240f26f98ed431cfb14b215241c724e0957fe0ddc33d74164d53c":{"translations":{"python":{"source":"ConstructHub(self, \"ConstructHub\",\n package_tags=[PackageTag(\n id=\"official\",\n keyword=Keyword(\n label=\"Official\",\n color=\"#00FF00\"\n ),\n condition=TagCondition.or(\n TagCondition.field(\"name\").eq(\"construct-hub\"),\n TagCondition.field(\"name\").eq(\"construct-hub-webapp\"))\n )]\n)","version":"2"},"csharp":{"source":"new ConstructHub(this, \"ConstructHub\", new ConstructHubProps {\n PackageTags = new [] { new PackageTag {\n Id = \"official\",\n Keyword = new Keyword {\n Label = \"Official\",\n Color = \"#00FF00\"\n },\n Condition = TagCondition.Or(TagCondition.Field(\"name\").Eq(\"construct-hub\"), TagCondition.Field(\"name\").Eq(\"construct-hub-webapp\"))\n } }\n});","version":"1"},"java":{"source":"ConstructHub.Builder.create(this, \"ConstructHub\")\n .packageTags(List.of(PackageTag.builder()\n .id(\"official\")\n .keyword(Keyword.builder()\n .label(\"Official\")\n .color(\"#00FF00\")\n .build())\n .condition(TagCondition.or(TagCondition.field(\"name\").eq(\"construct-hub\"), TagCondition.field(\"name\").eq(\"construct-hub-webapp\")))\n .build()))\n .build();","version":"1"},"go":{"source":"constructhub.NewConstructHub(this, jsii.String(\"ConstructHub\"), &ConstructHubProps{\n\tPackageTags: []packageTag{\n\t\t&packageTag{\n\t\t\tId: jsii.String(\"official\"),\n\t\t\tKeyword: &Keyword{\n\t\t\t\tLabel: jsii.String(\"Official\"),\n\t\t\t\tColor: jsii.String(\"#00FF00\"),\n\t\t\t},\n\t\t\tCondition: *constructhub.TagCondition_Or(*constructhub.TagCondition_Field(jsii.String(\"name\")).Eq(jsii.String(\"construct-hub\")), *constructhub.TagCondition_*Field(jsii.String(\"name\")).*Eq(jsii.String(\"construct-hub-webapp\"))),\n\t\t},\n\t},\n})","version":"1"},"$":{"source":"new ConstructHub(this, \"ConstructHub\", {\n packageTags: [{\n id: 'official',\n keyword: {\n label: 'Official',\n color: '#00FF00',\n },\n condition: TagCondition.or(\n TagCondition.field('name').eq('construct-hub'),\n TagCondition.field('name').eq('construct-hub-webapp'),\n ),\n }]\n});","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"construct-hub"},"field":{"field":"markdown","line":332}},"didCompile":true,"fqnsReferenced":["construct-hub.ConstructHub","construct-hub.ConstructHubProps","construct-hub.Keyword","construct-hub.TagCondition","construct-hub.TagCondition#field","construct-hub.TagCondition#or","construct-hub.TagConditionField#eq"],"fullSource":"// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { App, Stack } from 'aws-cdk-lib';\nimport * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';\nimport { ConstructHub, FilterType, PackageTagGroup, TagCondition } from 'construct-hub';\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 ConstructHub(this, \"ConstructHub\", {\n packageTags: [{\n id: 'official',\n keyword: {\n label: 'Official',\n color: '#00FF00',\n },\n condition: TagCondition.or(\n TagCondition.field('name').eq('construct-hub'),\n TagCondition.field('name').eq('construct-hub-webapp'),\n ),\n }]\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n","syntaxKindCounter":{"11":8,"80":15,"110":1,"209":1,"210":3,"211":5,"213":5,"214":1,"244":1,"303":6},"fqnsFingerprint":"3a7f4e6a7448fc208674d6538a94ba3a94f00932396dca7fce0acc0105694426"},"0daaf1c79f3c42c1959f9880414a94224a9eb7647334eb52ae9a82525ee962bd":{"translations":{"python":{"source":"TagCondition.field(\"constructHub\", \"nested\", \"key\").eq(\"value\")","version":"2"},"csharp":{"source":"TagCondition.Field(\"constructHub\", \"nested\", \"key\").Eq(\"value\");","version":"1"},"java":{"source":"TagCondition.field(\"constructHub\", \"nested\", \"key\").eq(\"value\");","version":"1"},"go":{"source":"constructhub.TagCondition_Field(jsii.String(\"constructHub\"), jsii.String(\"nested\"), jsii.String(\"key\")).Eq(jsii.String(\"value\"))","version":"1"},"$":{"source":"TagCondition.field('constructHub', 'nested', 'key').eq('value');\n\n// checks the following:\n// packageJson?.constructHub?.nested?.key === value;","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"construct-hub"},"field":{"field":"markdown","line":350}},"didCompile":true,"fqnsReferenced":["construct-hub.TagCondition#field","construct-hub.TagConditionField#eq"],"fullSource":"// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { App, Stack } from 'aws-cdk-lib';\nimport * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';\nimport { ConstructHub, FilterType, PackageTagGroup, TagCondition } from 'construct-hub';\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\nTagCondition.field('constructHub', 'nested', 'key').eq('value');\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n","syntaxKindCounter":{"11":4,"80":3,"211":2,"213":2,"244":1},"fqnsFingerprint":"2724b9ada935782c2c3724ab1c4b2c442df6184ee4b4a6a04dfc99ea9b916315"},"2f057e56e6c0d4eda33039950957b91227a96f65d279b2a4af04c2d662c9ad08":{"translations":{"python":{"source":"TagCondition.readme().includes(\"ECS\")\nTagCondition.readme().includes(\"fargate\", at_least=3, case_sensitive=False)","version":"2"},"csharp":{"source":"TagCondition.Readme().Includes(\"ECS\");\nTagCondition.Readme().Includes(\"fargate\", new TagConditionIncludesOptions { AtLeast = 3, CaseSensitive = false });","version":"1"},"java":{"source":"TagCondition.readme().includes(\"ECS\");\nTagCondition.readme().includes(\"fargate\", TagConditionIncludesOptions.builder().atLeast(3).caseSensitive(false).build());","version":"1"},"go":{"source":"constructhub.TagCondition_Readme().Includes(jsii.String(\"ECS\"))\nconstructhub.TagCondition_Readme().Includes(jsii.String(\"fargate\"), &TagConditionIncludesOptions{\n\tAtLeast: jsii.Number(3),\n\tCaseSensitive: jsii.Boolean(false),\n})","version":"1"},"$":{"source":"TagCondition.readme().includes('ECS');\nTagCondition.readme().includes('fargate', { atLeast: 3, caseSensitive: false });","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"construct-hub"},"field":{"field":"markdown","line":360}},"didCompile":true,"fqnsReferenced":["construct-hub.TagCondition#readme","construct-hub.TagConditionIncludesOptions","construct-hub.TagConditionReadme#includes"],"fullSource":"// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { App, Stack } from 'aws-cdk-lib';\nimport * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';\nimport { ConstructHub, FilterType, PackageTagGroup, TagCondition } from 'construct-hub';\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\nTagCondition.readme().includes('ECS');\nTagCondition.readme().includes('fargate', { atLeast: 3, caseSensitive: false });\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n","syntaxKindCounter":{"9":1,"11":2,"80":8,"97":1,"210":1,"211":4,"213":4,"244":2,"303":2},"fqnsFingerprint":"8a39e20c1f736f1f7df2eab53d028b6462b3b2069aa97b45d97fce44e3088e5b"},"d5eba64f81f60d90c405b4259df295944332dc664fb3b64c44d9976aa3dd3aff":{"translations":{"python":{"source":"ConstructHub(self, \"ConstructHub\",\n package_links=[PackageLinkConfig(\n link_label=\"Service Level Agreement\",\n config_key=\"SLA\"\n ), PackageLinkConfig(\n link_label=\"Contact\",\n config_key=\"Contact\",\n link_text=\"Email Me!\",\n allowed_domains=[\"me.com\"]\n )]\n)","version":"2"},"csharp":{"source":"new ConstructHub(this, \"ConstructHub\", new ConstructHubProps {\n PackageLinks = new [] { new PackageLinkConfig {\n LinkLabel = \"Service Level Agreement\",\n ConfigKey = \"SLA\"\n }, new PackageLinkConfig {\n LinkLabel = \"Contact\",\n ConfigKey = \"Contact\",\n LinkText = \"Email Me!\",\n AllowedDomains = new [] { \"me.com\" }\n } }\n});","version":"1"},"java":{"source":"ConstructHub.Builder.create(this, \"ConstructHub\")\n .packageLinks(List.of(PackageLinkConfig.builder()\n .linkLabel(\"Service Level Agreement\")\n .configKey(\"SLA\")\n .build(), PackageLinkConfig.builder()\n .linkLabel(\"Contact\")\n .configKey(\"Contact\")\n .linkText(\"Email Me!\")\n .allowedDomains(List.of(\"me.com\"))\n .build()))\n .build();","version":"1"},"go":{"source":"constructhub.NewConstructHub(this, jsii.String(\"ConstructHub\"), &ConstructHubProps{\n\tPackageLinks: []packageLinkConfig{\n\t\t&packageLinkConfig{\n\t\t\tLinkLabel: jsii.String(\"Service Level Agreement\"),\n\t\t\tConfigKey: jsii.String(\"SLA\"),\n\t\t},\n\t\t&packageLinkConfig{\n\t\t\tLinkLabel: jsii.String(\"Contact\"),\n\t\t\tConfigKey: jsii.String(\"Contact\"),\n\t\t\tLinkText: jsii.String(\"Email Me!\"),\n\t\t\tAllowedDomains: []*string{\n\t\t\t\tjsii.String(\"me.com\"),\n\t\t\t},\n\t\t},\n\t},\n})","version":"1"},"$":{"source":"new ConstructHub(this, \"ConstructHub\", {\n packageLinks: [{\n linkLabel: 'Service Level Agreement',\n configKey: 'SLA',\n }, {\n linkLabel: 'Contact',\n configKey: 'Contact',\n linkText: 'Email Me!',\n allowedDomains: ['me.com'],\n }]\n});","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"construct-hub"},"field":{"field":"markdown","line":372}},"didCompile":true,"fqnsReferenced":["construct-hub.ConstructHub","construct-hub.ConstructHubProps"],"fullSource":"// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { App, Stack } from 'aws-cdk-lib';\nimport * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';\nimport { ConstructHub, FilterType, PackageTagGroup, TagCondition } from 'construct-hub';\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 ConstructHub(this, \"ConstructHub\", {\n packageLinks: [{\n linkLabel: 'Service Level Agreement',\n configKey: 'SLA',\n }, {\n linkLabel: 'Contact',\n configKey: 'Contact',\n linkText: 'Email Me!',\n allowedDomains: ['me.com'],\n }]\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n","syntaxKindCounter":{"11":7,"80":8,"110":1,"209":2,"210":3,"214":1,"244":1,"303":7},"fqnsFingerprint":"49041513eead52d733da66375168be7767ab29d8189613f4e93a36650ff9bc3b"},"b5216fc62f03b6fe1438a302d0375c35f0ecd730f3606dae58919ea52374ed91":{"translations":{"python":{"source":"ConstructHub(self, \"ConstructHub\",\n feed_configuration=FeedConfiguration(\n github_token_secret=secretsmanager.Secret.from_secret_complete_arn(self, \"GitHubToken\", \"<arn:aws:secretsmanager:us-east-2:11111111111:secret:releaseNotesFetcherGitHubToken-abCd1>\"),\n feed_description=\"Latest Constructs in the construct hub\",\n feed_title=\"Latest constructs\"\n )\n)","version":"2"},"csharp":{"source":"new ConstructHub(this, \"ConstructHub\", new ConstructHubProps {\n FeedConfiguration = new FeedConfiguration {\n GithubTokenSecret = Secret.FromSecretCompleteArn(this, \"GitHubToken\", \"<arn:aws:secretsmanager:us-east-2:11111111111:secret:releaseNotesFetcherGitHubToken-abCd1>\"),\n FeedDescription = \"Latest Constructs in the construct hub\",\n FeedTitle = \"Latest constructs\"\n }\n});","version":"1"},"java":{"source":"ConstructHub.Builder.create(this, \"ConstructHub\")\n .feedConfiguration(FeedConfiguration.builder()\n .githubTokenSecret(Secret.fromSecretCompleteArn(this, \"GitHubToken\", \"<arn:aws:secretsmanager:us-east-2:11111111111:secret:releaseNotesFetcherGitHubToken-abCd1>\"))\n .feedDescription(\"Latest Constructs in the construct hub\")\n .feedTitle(\"Latest constructs\")\n .build())\n .build();","version":"1"},"go":{"source":"constructhub.NewConstructHub(this, jsii.String(\"ConstructHub\"), &ConstructHubProps{\n\tFeedConfiguration: &FeedConfiguration{\n\t\tGithubTokenSecret: secretsmanager.Secret_FromSecretCompleteArn(this, jsii.String(\"GitHubToken\"), jsii.String(\"<arn:aws:secretsmanager:us-east-2:11111111111:secret:releaseNotesFetcherGitHubToken-abCd1>\")),\n\t\tFeedDescription: jsii.String(\"Latest Constructs in the construct hub\"),\n\t\tFeedTitle: jsii.String(\"Latest constructs\"),\n\t},\n})","version":"1"},"$":{"source":"new ConstructHub(this, \"ConstructHub\", {\n feedConfiguration: {\n githubTokenSecret: secretsmanager.Secret.fromSecretCompleteArn(this, 'GitHubToken', '<arn:aws:secretsmanager:us-east-2:11111111111:secret:releaseNotesFetcherGitHubToken-abCd1>'),\n feedDescription: 'Latest Constructs in the construct hub',\n feedTitle: 'Latest constructs',\n }\n }\n);","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"construct-hub"},"field":{"field":"markdown","line":409}},"didCompile":true,"fqnsReferenced":["aws-cdk-lib.aws_secretsmanager.ISecret","aws-cdk-lib.aws_secretsmanager.Secret","aws-cdk-lib.aws_secretsmanager.Secret#fromSecretCompleteArn","construct-hub.ConstructHub","construct-hub.ConstructHubProps","construct-hub.FeedConfiguration"],"fullSource":"// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { App, Stack } from 'aws-cdk-lib';\nimport * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';\nimport { ConstructHub, FilterType, PackageTagGroup, TagCondition } from 'construct-hub';\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 ConstructHub(this, \"ConstructHub\", {\n feedConfiguration: {\n githubTokenSecret: secretsmanager.Secret.fromSecretCompleteArn(this, 'GitHubToken', '<arn:aws:secretsmanager:us-east-2:11111111111:secret:releaseNotesFetcherGitHubToken-abCd1>'),\n feedDescription: 'Latest Constructs in the construct hub',\n feedTitle: 'Latest constructs',\n }\n }\n);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n","syntaxKindCounter":{"11":5,"80":8,"110":2,"210":2,"211":2,"213":1,"214":1,"244":1,"303":4},"fqnsFingerprint":"e5355eb61b2582ef8c2e1a8bb3ca6db38f1f00112e6fd4f5538373b741c749a9"},"a7a46b5b6e6ba5c8ed9306cc089dcbb161c9550c9296be34309e708257f1f622":{"translations":{"python":{"source":"ConstructHub(self, \"ConstructHub\",\n featured_packages=FeaturedPackages(\n sections=[FeaturedPackagesSection(\n name=\"Recently updated\",\n show_last_updated=4\n ), FeaturedPackagesSection(\n name=\"From the AWS CDK\",\n show_packages=[FeaturedPackagesDetail(\n name=\"@aws-cdk/core\"\n ), FeaturedPackagesDetail(\n name=\"@aws-cdk/aws-s3\",\n comment=\"One of the most popular AWS CDK libraries!\"\n ), FeaturedPackagesDetail(\n name=\"@aws-cdk/aws-lambda\"\n ), FeaturedPackagesDetail(\n name=\"@aws-cdk/pipelines\",\n comment=\"The pipelines L3 construct library abstracts away many of the details of managing software deployment within AWS.\"\n )\n ]\n )\n ]\n )\n)","version":"2"},"csharp":{"source":"new ConstructHub(this, \"ConstructHub\", new ConstructHubProps {\n FeaturedPackages = new FeaturedPackages {\n Sections = new [] { new FeaturedPackagesSection {\n Name = \"Recently updated\",\n ShowLastUpdated = 4\n }, new FeaturedPackagesSection {\n Name = \"From the AWS CDK\",\n ShowPackages = new [] { new FeaturedPackagesDetail {\n Name = \"@aws-cdk/core\"\n }, new FeaturedPackagesDetail {\n Name = \"@aws-cdk/aws-s3\",\n Comment = \"One of the most popular AWS CDK libraries!\"\n }, new FeaturedPackagesDetail {\n Name = \"@aws-cdk/aws-lambda\"\n }, new FeaturedPackagesDetail {\n Name = \"@aws-cdk/pipelines\",\n Comment = \"The pipelines L3 construct library abstracts away many of the details of managing software deployment within AWS.\"\n } }\n } }\n }\n});","version":"1"},"java":{"source":"ConstructHub.Builder.create(this, \"ConstructHub\")\n .featuredPackages(FeaturedPackages.builder()\n .sections(List.of(FeaturedPackagesSection.builder()\n .name(\"Recently updated\")\n .showLastUpdated(4)\n .build(), FeaturedPackagesSection.builder()\n .name(\"From the AWS CDK\")\n .showPackages(List.of(FeaturedPackagesDetail.builder()\n .name(\"@aws-cdk/core\")\n .build(), FeaturedPackagesDetail.builder()\n .name(\"@aws-cdk/aws-s3\")\n .comment(\"One of the most popular AWS CDK libraries!\")\n .build(), FeaturedPackagesDetail.builder()\n .name(\"@aws-cdk/aws-lambda\")\n .build(), FeaturedPackagesDetail.builder()\n .name(\"@aws-cdk/pipelines\")\n .comment(\"The pipelines L3 construct library abstracts away many of the details of managing software deployment within AWS.\")\n .build()))\n .build()))\n .build())\n .build();","version":"1"},"go":{"source":"constructhub.NewConstructHub(this, jsii.String(\"ConstructHub\"), &ConstructHubProps{\n\tFeaturedPackages: &FeaturedPackages{\n\t\tSections: []featuredPackagesSection{\n\t\t\t&featuredPackagesSection{\n\t\t\t\tName: jsii.String(\"Recently updated\"),\n\t\t\t\tShowLastUpdated: jsii.Number(4),\n\t\t\t},\n\t\t\t&featuredPackagesSection{\n\t\t\t\tName: jsii.String(\"From the AWS CDK\"),\n\t\t\t\tShowPackages: []featuredPackagesDetail{\n\t\t\t\t\t&featuredPackagesDetail{\n\t\t\t\t\t\tName: jsii.String(\"@aws-cdk/core\"),\n\t\t\t\t\t},\n\t\t\t\t\t&featuredPackagesDetail{\n\t\t\t\t\t\tName: jsii.String(\"@aws-cdk/aws-s3\"),\n\t\t\t\t\t\tComment: jsii.String(\"One of the most popular AWS CDK libraries!\"),\n\t\t\t\t\t},\n\t\t\t\t\t&featuredPackagesDetail{\n\t\t\t\t\t\tName: jsii.String(\"@aws-cdk/aws-lambda\"),\n\t\t\t\t\t},\n\t\t\t\t\t&featuredPackagesDetail{\n\t\t\t\t\t\tName: jsii.String(\"@aws-cdk/pipelines\"),\n\t\t\t\t\t\tComment: jsii.String(\"The pipelines L3 construct library abstracts away many of the details of managing software deployment within AWS.\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n})","version":"1"},"$":{"source":"new ConstructHub(this, \"ConstructHub\", {\n featuredPackages: {\n sections: [\n {\n name: \"Recently updated\",\n showLastUpdated: 4\n },\n {\n name: \"From the AWS CDK\",\n showPackages: [\n {\n name: \"@aws-cdk/core\"\n },\n {\n name: \"@aws-cdk/aws-s3\",\n comment: \"One of the most popular AWS CDK libraries!\"\n },\n {\n name: \"@aws-cdk/aws-lambda\"\n },\n {\n name: \"@aws-cdk/pipelines\",\n comment: \"The pipelines L3 construct library abstracts away many of the details of managing software deployment within AWS.\"\n }\n ]\n }\n ]\n }\n});","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"construct-hub"},"field":{"field":"markdown","line":428}},"didCompile":true,"fqnsReferenced":["construct-hub.ConstructHub","construct-hub.ConstructHubProps","construct-hub.FeaturedPackages"],"fullSource":"// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { App, Stack } from 'aws-cdk-lib';\nimport * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';\nimport { ConstructHub, FilterType, PackageTagGroup, TagCondition } from 'construct-hub';\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 ConstructHub(this, \"ConstructHub\", {\n featuredPackages: {\n sections: [\n {\n name: \"Recently updated\",\n showLastUpdated: 4\n },\n {\n name: \"From the AWS CDK\",\n showPackages: [\n {\n name: \"@aws-cdk/core\"\n },\n {\n name: \"@aws-cdk/aws-s3\",\n comment: \"One of the most popular AWS CDK libraries!\"\n },\n {\n name: \"@aws-cdk/aws-lambda\"\n },\n {\n name: \"@aws-cdk/pipelines\",\n comment: \"The pipelines L3 construct library abstracts away many of the details of managing software deployment within AWS.\"\n }\n ]\n }\n ]\n }\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n","syntaxKindCounter":{"9":1,"11":9,"80":13,"110":1,"209":2,"210":8,"214":1,"244":1,"303":12},"fqnsFingerprint":"fc6c1b008c9e8723792216a70ca74f4a9c547eaf36358946c2ba08fb0c8ecc65"},"8ff5b711c8eaa11aeba183a5910aafb33b9250d444225e98bbf647f0f6ba12bf":{"translations":{"python":{"source":"ConstructHub(self, \"ConstructHub\",\n categories=[Category(title=\"Databases\", url=\"?keywords=databases\"), Category(title=\"Monitoring\", url=\"?q=monitoring\"), Category(title=\"Partners\", url=\"?tags=aws-partner\")\n ]\n)","version":"2"},"csharp":{"source":"new ConstructHub(this, \"ConstructHub\", new ConstructHubProps {\n Categories = new [] { new Category { Title = \"Databases\", Url = \"?keywords=databases\" }, new Category { Title = \"Monitoring\", Url = \"?q=monitoring\" }, new Category { Title = \"Partners\", Url = \"?tags=aws-partner\" } }\n});","version":"1"},"java":{"source":"ConstructHub.Builder.create(this, \"ConstructHub\")\n .categories(List.of(Category.builder().title(\"Databases\").url(\"?keywords=databases\").build(), Category.builder().title(\"Monitoring\").url(\"?q=monitoring\").build(), Category.builder().title(\"Partners\").url(\"?tags=aws-partner\").build()))\n .build();","version":"1"},"go":{"source":"constructhub.NewConstructHub(this, jsii.String(\"ConstructHub\"), &ConstructHubProps{\n\tCategories: []category{\n\t\t&category{\n\t\t\tTitle: jsii.String(\"Databases\"),\n\t\t\tUrl: jsii.String(\"?keywords=databases\"),\n\t\t},\n\t\t&category{\n\t\t\tTitle: jsii.String(\"Monitoring\"),\n\t\t\tUrl: jsii.String(\"?q=monitoring\"),\n\t\t},\n\t\t&category{\n\t\t\tTitle: jsii.String(\"Partners\"),\n\t\t\tUrl: jsii.String(\"?tags=aws-partner\"),\n\t\t},\n\t},\n})","version":"1"},"$":{"source":"new ConstructHub(this, \"ConstructHub\", {\n categories: [\n { title: 'Databases', url: '?keywords=databases' },\n { title: 'Monitoring', url: '?q=monitoring' },\n { title: 'Partners', url: '?tags=aws-partner' }\n ]\n});","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"construct-hub"},"field":{"field":"markdown","line":470}},"didCompile":true,"fqnsReferenced":["construct-hub.ConstructHub","construct-hub.ConstructHubProps"],"fullSource":"// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { App, Stack } from 'aws-cdk-lib';\nimport * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';\nimport { ConstructHub, FilterType, PackageTagGroup, TagCondition } from 'construct-hub';\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 ConstructHub(this, \"ConstructHub\", {\n categories: [\n { title: 'Databases', url: '?keywords=databases' },\n { title: 'Monitoring', url: '?q=monitoring' },\n { title: 'Partners', url: '?tags=aws-partner' }\n ]\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n","syntaxKindCounter":{"11":7,"80":8,"110":1,"209":1,"210":4,"214":1,"244":1,"303":7},"fqnsFingerprint":"49041513eead52d733da66375168be7767ab29d8189613f4e93a36650ff9bc3b"},"0f173c6f76b309b8557e11b2b4e79907d6a33296089148537b0627a64e4c3dcf":{"translations":{"python":{"source":"\"/search?keywords=monitoring\"","version":"2"},"csharp":{"source":"\"/search?keywords=monitoring\";","version":"1"},"java":{"source":"\"/search?keywords=monitoring\";","version":"1"},"go":{"source":"\"/search?keywords=monitoring\"","version":"1"},"$":{"source":"\"/search?keywords=monitoring\"","version":"0"}},"location":{"api":{"api":"member","fqn":"construct-hub.Category","memberName":"url"},"field":{"field":"example"}},"didCompile":true,"fqnsReferenced":[],"fullSource":"// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { App, Stack } from 'aws-cdk-lib';\nimport * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';\nimport { ConstructHub, FilterType, PackageTagGroup, TagCondition } from 'construct-hub';\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\"/search?keywords=monitoring\"\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n","syntaxKindCounter":{"11":1,"244":1},"fqnsFingerprint":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}}}
|
1
|
+
{"version":"2","toolVersion":"5.8.11","snippets":{"25e685846489a7c8f9621a4c3239be2be62ae31758f0147822166a15d4afb416":{"translations":{"python":{"source":"from aws_cdk import App, Stack\nfrom construct_hub import ConstructHub\n\n# The usual... you might have used `cdk init app` instead!\napp = App()\nstack = Stack(app, \"StackName\")\n\n# Now to business!\nConstructHub(stack, \"ConstructHub\")","version":"2"},"csharp":{"source":"using Amazon.CDK;\nusing Construct.Hub;\n\n// The usual... you might have used `cdk init app` instead!\nvar app = new App();\nvar stack = new Stack(app, \"StackName\", new StackProps { });\n\n// Now to business!\n// Now to business!\nnew ConstructHub(stack, \"ConstructHub\");","version":"1"},"java":{"source":"import software.amazon.awscdk.App;\nimport software.amazon.awscdk.Stack;\nimport construct.hub.ConstructHub;\n\n// The usual... you might have used `cdk init app` instead!\nApp app = new App();\nStack stack = Stack.Builder.create(app, \"StackName\").build();\n\n// Now to business!\n// Now to business!\nnew ConstructHub(stack, \"ConstructHub\");","version":"1"},"go":{"source":"import \"github.com/aws/aws-cdk-go/awscdk\"\nimport \"github.com/aws-samples/dummy/constructhub\"\n\n// The usual... you might have used `cdk init app` instead!\napp := awscdk.NewApp()\nstack := awscdk.NewStack(app, jsii.String(\"StackName\"), &StackProps{\n})\n\n// Now to business!\n// Now to business!\nconstructhub.NewConstructHub(stack, jsii.String(\"ConstructHub\"))","version":"1"},"$":{"source":"import { App, Stack } from 'aws-cdk-lib/core';\nimport { ConstructHub } from 'construct-hub';\n\n// The usual... you might have used `cdk init app` instead!\nconst app = new App();\nconst stack = new Stack(app, 'StackName', { /* ... */ });\n\n// Now to business!\nnew ConstructHub(stack, 'ConstructHub');","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"construct-hub"},"field":{"field":"markdown","line":45}},"didCompile":true,"fqnsReferenced":["aws-cdk-lib.App","aws-cdk-lib.Stack","aws-cdk-lib.StackProps","construct-hub.ConstructHub"],"fullSource":"import { App, Stack } from 'aws-cdk-lib/core';\nimport { ConstructHub } from 'construct-hub';\n\n// The usual... you might have used `cdk init app` instead!\nconst app = new App();\nconst stack = new Stack(app, 'StackName', { /* ... */ });\n\n// Now to business!\nnew ConstructHub(stack, 'ConstructHub');","syntaxKindCounter":{"11":4,"80":10,"210":1,"214":3,"243":2,"244":1,"260":2,"261":2,"272":2,"273":2,"275":2,"276":3,"307":1},"fqnsFingerprint":"50511a2d8d29c9ad7524eaaca08a1564eeaaa71cd21dffdda197f4cc4fe9893e"},"ebafb072daebb584d8863973cd882175d746c5cbda4464c37f5f0fc7976b5090":{"translations":{"python":{"source":"import aws_cdk.aws_codeartifact as codeartifact\nfrom aws_cdk import App, Stack\nfrom construct_hub import sources, ConstructHub\n\n# The usual... you might have used `cdk init app` instead!\napp = App()\nstack = Stack(app, \"StackName\")\n\n# Now to business!\nrepository = codeartifact.CfnRepository(stack, \"Repository\",\n domain_name=\"my-domain\",\n repository_name=\"my-repo\"\n)\nConstructHub(stack, \"ConstructHub\",\n package_sources=[\n sources.NpmJs(), # Remove if you do NOT want npmjs.com packages\n sources.CodeArtifact(repository=repository)\n ]\n)","version":"2"},"csharp":{"source":"using Amazon.CDK.AWS.CodeArtifact;\nusing Amazon.CDK;\nusing Construct.Hub.Sources;\nusing Construct.Hub;\n\n// The usual... you might have used `cdk init app` instead!\nvar app = new App();\nvar stack = new Stack(app, \"StackName\", new StackProps { });\n\n// Now to business!\nvar repository = new CfnRepository(stack, \"Repository\", new CfnRepositoryProps {\n DomainName = \"my-domain\",\n RepositoryName = \"my-repo\"\n});\nnew ConstructHub(stack, \"ConstructHub\", new ConstructHubProps {\n PackageSources = new [] {\n new NpmJs(), // Remove if you do NOT want npmjs.com packages\n new CodeArtifact(new CodeArtifactProps { Repository = repository }) }\n});","version":"1"},"java":{"source":"import software.amazon.awscdk.services.codeartifact.*;\nimport software.amazon.awscdk.App;\nimport software.amazon.awscdk.Stack;\nimport construct.hub.sources.*;\nimport construct.hub.ConstructHub;\n\n// The usual... you might have used `cdk init app` instead!\nApp app = new App();\nStack stack = Stack.Builder.create(app, \"StackName\").build();\n\n// Now to business!\nCfnRepository repository = CfnRepository.Builder.create(stack, \"Repository\")\n .domainName(\"my-domain\")\n .repositoryName(\"my-repo\")\n .build();\nConstructHub.Builder.create(stack, \"ConstructHub\")\n .packageSources(List.of(\n new NpmJs(), // Remove if you do NOT want npmjs.com packages\n CodeArtifact.Builder.create().repository(repository).build()))\n .build();","version":"1"},"go":{"source":"import codeartifact \"github.com/aws/aws-cdk-go/awscdk\"\nimport \"github.com/aws/aws-cdk-go/awscdk\"\nimport \"github.com/aws-samples/dummy/constructhub\"\n\n// The usual... you might have used `cdk init app` instead!\napp := awscdk.NewApp()\nstack := awscdk.NewStack(app, jsii.String(\"StackName\"), &StackProps{\n})\n\n// Now to business!\nrepository := codeartifact.NewCfnRepository(stack, jsii.String(\"Repository\"), &CfnRepositoryProps{\n\tDomainName: jsii.String(\"my-domain\"),\n\tRepositoryName: jsii.String(\"my-repo\"),\n})\nconstructhub.NewConstructHub(stack, jsii.String(\"ConstructHub\"), &ConstructHubProps{\n\tPackageSources: []iPackageSource{\n\t\t*constructhub.Sources.NewNpmJs(),\n\t\t // Remove if you do NOT want npmjs.com packages\n\t\t*constructhub.*Sources.NewCodeArtifact(&CodeArtifactProps{\n\t\t\tRepository: *Repository,\n\t\t}),\n\t},\n})","version":"1"},"$":{"source":"import * as codeartifact from 'aws-cdk-lib/aws-codeartifact';\nimport { App, Stack } from 'aws-cdk-lib/core';\nimport { sources, ConstructHub } from 'construct-hub';\n\n// The usual... you might have used `cdk init app` instead!\nconst app = new App();\nconst stack = new Stack(app, 'StackName', { /* ... */ });\n\n// Now to business!\nconst repository = new codeartifact.CfnRepository(stack, 'Repository', {\n domainName: 'my-domain',\n repositoryName: 'my-repo',\n // ....\n});\nnew ConstructHub(stack, 'ConstructHub', {\n packageSources: [\n new sources.NpmJs(), // Remove if you do NOT want npmjs.com packages\n new sources.CodeArtifact({ repository }),\n ],\n});","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"construct-hub"},"field":{"field":"markdown","line":86}},"didCompile":true,"fqnsReferenced":["aws-cdk-lib.App","aws-cdk-lib.Stack","aws-cdk-lib.StackProps","aws-cdk-lib.aws_codeartifact.CfnRepository","aws-cdk-lib.aws_codeartifact.CfnRepositoryProps","construct-hub.ConstructHub","construct-hub.ConstructHubProps","construct-hub.sources.CodeArtifact","construct-hub.sources.CodeArtifactProps","construct-hub.sources.NpmJs"],"fullSource":"import * as codeartifact from 'aws-cdk-lib/aws-codeartifact';\nimport { App, Stack } from 'aws-cdk-lib/core';\nimport { sources, ConstructHub } from 'construct-hub';\n\n// The usual... you might have used `cdk init app` instead!\nconst app = new App();\nconst stack = new Stack(app, 'StackName', { /* ... */ });\n\n// Now to business!\nconst repository = new codeartifact.CfnRepository(stack, 'Repository', {\n domainName: 'my-domain',\n repositoryName: 'my-repo',\n // ....\n});\nnew ConstructHub(stack, 'ConstructHub', {\n packageSources: [\n new sources.NpmJs(), // Remove if you do NOT want npmjs.com packages\n new sources.CodeArtifact({ repository }),\n ],\n});","syntaxKindCounter":{"11":8,"80":24,"209":1,"210":4,"211":3,"214":6,"243":3,"244":1,"260":3,"261":3,"272":3,"273":3,"274":1,"275":2,"276":4,"303":3,"304":1,"307":1},"fqnsFingerprint":"b798416d79aef4bebc52ae22a260cd51b1a906485c3dad48eb4c924f45b5adc0"},"6b13b6fdb8d630fd0d73ad93f143273c787b9e0e749158c00c3cf96c5c685f1f":{"translations":{"python":{"source":"from construct_hub import DenyListRule, DenyListRule\nfrom aws_cdk import App, Stack\nfrom construct_hub import ConstructHub\n\n# The usual... you might have used `cdk init app` instead!\napp = App()\nstack = Stack(app, \"StackName\")\n\n# Now to business!\nConstructHub(stack, \"ConstructHub\",\n deny_list=[DenyListRule(package_name=\"sneaky-hackery\", reason=\"Mines bitcoins wherever it gets installed\"), DenyListRule(package_name=\"bad-release\", version=\"1.2.3\", reason=\"CVE-####-#####\")\n ]\n)","version":"2"},"csharp":{"source":"using Amazon.CDK;\nusing Construct.Hub;\n\n// The usual... you might have used `cdk init app` instead!\nvar app = new App();\nvar stack = new Stack(app, \"StackName\", new StackProps { });\n\n// Now to business!\n// Now to business!\nnew ConstructHub(stack, \"ConstructHub\", new ConstructHubProps {\n DenyList = new [] { new DenyListRule { PackageName = \"sneaky-hackery\", Reason = \"Mines bitcoins wherever it gets installed\" }, new DenyListRule { PackageName = \"bad-release\", Version = \"1.2.3\", Reason = \"CVE-####-#####\" } }\n});","version":"1"},"java":{"source":"import software.amazon.awscdk.App;\nimport software.amazon.awscdk.Stack;\nimport construct.hub.ConstructHub;\n\n// The usual... you might have used `cdk init app` instead!\nApp app = new App();\nStack stack = Stack.Builder.create(app, \"StackName\").build();\n\n// Now to business!\n// Now to business!\nConstructHub.Builder.create(stack, \"ConstructHub\")\n .denyList(List.of(DenyListRule.builder().packageName(\"sneaky-hackery\").reason(\"Mines bitcoins wherever it gets installed\").build(), DenyListRule.builder().packageName(\"bad-release\").version(\"1.2.3\").reason(\"CVE-####-#####\").build()))\n .build();","version":"1"},"go":{"source":"import \"github.com/aws/aws-cdk-go/awscdk\"\nimport \"github.com/aws-samples/dummy/constructhub\"\n\n// The usual... you might have used `cdk init app` instead!\napp := awscdk.NewApp()\nstack := awscdk.NewStack(app, jsii.String(\"StackName\"), &StackProps{\n})\n\n// Now to business!\n// Now to business!\nconstructhub.NewConstructHub(stack, jsii.String(\"ConstructHub\"), &ConstructHubProps{\n\tDenyList: []denyListRule{\n\t\t&denyListRule{\n\t\t\tPackageName: jsii.String(\"sneaky-hackery\"),\n\t\t\tReason: jsii.String(\"Mines bitcoins wherever it gets installed\"),\n\t\t},\n\t\t&denyListRule{\n\t\t\tPackageName: jsii.String(\"bad-release\"),\n\t\t\tVersion: jsii.String(\"1.2.3\"),\n\t\t\tReason: jsii.String(\"CVE-####-#####\"),\n\t\t},\n\t},\n})","version":"1"},"$":{"source":"import { App, Stack } from 'aws-cdk-lib/core';\nimport { ConstructHub } from 'construct-hub';\n\n// The usual... you might have used `cdk init app` instead!\nconst app = new App();\nconst stack = new Stack(app, 'StackName', { /* ... */ });\n\n// Now to business!\nnew ConstructHub(stack, 'ConstructHub', {\n denyList: [\n // Denying _all_ versions of the \"sneaky-hackery\" package\n { packageName: 'sneaky-hackery', reason: 'Mines bitcoins wherever it gets installed' },\n // Denying _a specific_ version of the \"bad-release\" package\n { packageName: 'bad-release', version: '1.2.3', reason: 'CVE-####-#####' },\n ],\n});","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"construct-hub"},"field":{"field":"markdown","line":131}},"didCompile":true,"fqnsReferenced":["aws-cdk-lib.App","aws-cdk-lib.Stack","aws-cdk-lib.StackProps","construct-hub.ConstructHub","construct-hub.ConstructHubProps"],"fullSource":"import { App, Stack } from 'aws-cdk-lib/core';\nimport { ConstructHub } from 'construct-hub';\n\n// The usual... you might have used `cdk init app` instead!\nconst app = new App();\nconst stack = new Stack(app, 'StackName', { /* ... */ });\n\n// Now to business!\nnew ConstructHub(stack, 'ConstructHub', {\n denyList: [\n // Denying _all_ versions of the \"sneaky-hackery\" package\n { packageName: 'sneaky-hackery', reason: 'Mines bitcoins wherever it gets installed' },\n // Denying _a specific_ version of the \"bad-release\" package\n { packageName: 'bad-release', version: '1.2.3', reason: 'CVE-####-#####' },\n ],\n});","syntaxKindCounter":{"11":9,"80":16,"209":1,"210":4,"214":3,"243":2,"244":1,"260":2,"261":2,"272":2,"273":2,"275":2,"276":3,"303":6,"307":1},"fqnsFingerprint":"3e982d6727963b85782127a22e6ad4c24a349a51cd5049d40893b595b768e428"},"4d197b3af4e5af3c177e46123bb5bc4475ca36b348d16ac0159ad83618562f7c":{"translations":{"python":{"source":"import aws_cdk.aws_route53 as r53\n\n\nmy_domain_zone = r53.HostedZone.from_hosted_zone_attributes(self, \"MyDomainZone\",\n hosted_zone_id=\"AZ1234\",\n zone_name=\"my.domain.com\"\n)\n\nConstructHub(self, \"ConstructHub\",\n additional_domains=[DomainRedirectSource(hosted_zone=my_domain_zone)]\n)","version":"2"},"csharp":{"source":"using Amazon.CDK.AWS.Route53;\n\n\nvar myDomainZone = HostedZone.FromHostedZoneAttributes(this, \"MyDomainZone\", new HostedZoneAttributes {\n HostedZoneId = \"AZ1234\",\n ZoneName = \"my.domain.com\"\n});\n\nnew ConstructHub(this, \"ConstructHub\", new ConstructHubProps {\n AdditionalDomains = new [] { new DomainRedirectSource { HostedZone = myDomainZone } }\n});","version":"1"},"java":{"source":"import software.amazon.awscdk.services.route53.*;\n\n\nIHostedZone myDomainZone = HostedZone.fromHostedZoneAttributes(this, \"MyDomainZone\", HostedZoneAttributes.builder()\n .hostedZoneId(\"AZ1234\")\n .zoneName(\"my.domain.com\")\n .build());\n\nConstructHub.Builder.create(this, \"ConstructHub\")\n .additionalDomains(List.of(DomainRedirectSource.builder().hostedZone(myDomainZone).build()))\n .build();","version":"1"},"go":{"source":"import r53 \"github.com/aws/aws-cdk-go/awscdk\"\n\n\nmyDomainZone := r53.HostedZone_FromHostedZoneAttributes(this, jsii.String(\"MyDomainZone\"), &HostedZoneAttributes{\n\tHostedZoneId: jsii.String(\"AZ1234\"),\n\tZoneName: jsii.String(\"my.domain.com\"),\n})\n\nconstructhub.NewConstructHub(this, jsii.String(\"ConstructHub\"), &ConstructHubProps{\n\tAdditionalDomains: []domainRedirectSource{\n\t\t&domainRedirectSource{\n\t\t\tHostedZone: myDomainZone,\n\t\t},\n\t},\n})","version":"1"},"$":{"source":"import * as r53 from 'aws-cdk-lib/aws-route53';\n\nconst myDomainZone = r53.HostedZone.fromHostedZoneAttributes(this, 'MyDomainZone', {\n hostedZoneId: 'AZ1234',\n zoneName: 'my.domain.com',\n});\n\nnew ConstructHub(this, 'ConstructHub', {\n additionalDomains: [ { hostedZone: myDomainZone } ]\n});","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"construct-hub"},"field":{"field":"markdown","line":155}},"didCompile":true,"fqnsReferenced":["aws-cdk-lib.aws_route53.HostedZone","aws-cdk-lib.aws_route53.HostedZone#fromHostedZoneAttributes","aws-cdk-lib.aws_route53.HostedZoneAttributes","aws-cdk-lib.aws_route53.IHostedZone","construct-hub.ConstructHub","construct-hub.ConstructHubProps"],"fullSource":"// Hoisted imports begin after !show marker below\n/// !show\nimport * as r53 from 'aws-cdk-lib/aws-route53';\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { App, Stack } from 'aws-cdk-lib';\nimport * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';\nimport { ConstructHub, FilterType, PackageTagGroup, TagCondition } from 'construct-hub';\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 myDomainZone = r53.HostedZone.fromHostedZoneAttributes(this, 'MyDomainZone', {\n hostedZoneId: 'AZ1234',\n zoneName: 'my.domain.com',\n});\n\nnew ConstructHub(this, 'ConstructHub', {\n additionalDomains: [ { hostedZone: myDomainZone } ]\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n","syntaxKindCounter":{"11":5,"80":11,"110":2,"209":1,"210":3,"211":2,"213":1,"214":1,"243":1,"244":1,"260":1,"261":1,"272":1,"273":1,"274":1,"303":4,"307":1},"fqnsFingerprint":"968d71f0daf8d3b880bbcc4563abda3a9d6790a2d9bf380900bcdad8aa015d03"},"22c8c6ecdc6ee4ee613ca39d5d011b92bd3f8c40360f066806c9e6ba55512b05":{"translations":{"python":{"source":"import aws_cdk.aws_codeartifact as codeartifact\nfrom aws_cdk import App, Duration, Stack\nfrom construct_hub import sources, ConstructHub\n\napp = App()\nstack = Stack(app, \"StackName\")\n\nConstructHub(stack, \"ConstructHub\",\n # ...\n package_sources=[\n # ...\n sources.NpmJs(\n enable_canary=True, # This is the default\n canary_package=\"@acme/my-constructhub-probe\",\n canary_sla=Duration.minutes(30)\n )\n ]\n)","version":"2"},"csharp":{"source":"using Amazon.CDK.AWS.CodeArtifact;\nusing Amazon.CDK;\nusing Construct.Hub.Sources;\nusing Construct.Hub;\n\nvar app = new App();\nvar stack = new Stack(app, \"StackName\", new StackProps { });\n\nnew ConstructHub(stack, \"ConstructHub\", new ConstructHubProps {\n // ...\n PackageSources = new [] {\n // ...\n new NpmJs(new NpmJsProps {\n EnableCanary = true, // This is the default\n CanaryPackage = \"@acme/my-constructhub-probe\",\n CanarySla = Duration.Minutes(30)\n }) }\n});","version":"1"},"java":{"source":"import software.amazon.awscdk.services.codeartifact.*;\nimport software.amazon.awscdk.App;\nimport software.amazon.awscdk.Duration;\nimport software.amazon.awscdk.Stack;\nimport construct.hub.sources.*;\nimport construct.hub.ConstructHub;\n\nApp app = new App();\nStack stack = Stack.Builder.create(app, \"StackName\").build();\n\nConstructHub.Builder.create(stack, \"ConstructHub\")\n // ...\n .packageSources(List.of(\n // ...\n NpmJs.Builder.create()\n .enableCanary(true) // This is the default\n .canaryPackage(\"@acme/my-constructhub-probe\")\n .canarySla(Duration.minutes(30))\n .build()))\n .build();","version":"1"},"go":{"source":"import codeartifact \"github.com/aws/aws-cdk-go/awscdk\"\nimport \"github.com/aws/aws-cdk-go/awscdk\"\nimport \"github.com/aws-samples/dummy/constructhub\"\n\napp := awscdk.NewApp()\nstack := awscdk.NewStack(app, jsii.String(\"StackName\"), &StackProps{\n})\n\nconstructhub.NewConstructHub(stack, jsii.String(\"ConstructHub\"), &ConstructHubProps{\n\t// ...\n\tPackageSources: []iPackageSource{\n\t\t// ...\n\t\t*constructhub.Sources.NewNpmJs(&NpmJsProps{\n\t\t\tEnableCanary: jsii.Boolean(true),\n\t\t\t // This is the default\n\t\t\tCanaryPackage: jsii.String(\"@acme/my-constructhub-probe\"),\n\t\t\tCanarySla: awscdk.Duration_Minutes(jsii.Number(30)),\n\t\t}),\n\t},\n})","version":"1"},"$":{"source":"import * as codeartifact from 'aws-cdk-lib/aws-codeartifact';\nimport { App, Duration, Stack } from 'aws-cdk-lib/core';\nimport { sources, ConstructHub } from 'construct-hub';\n\nconst app = new App();\nconst stack = new Stack(app, 'StackName', { /* ... */ });\n\nnew ConstructHub(stack, 'ConstructHub', {\n // ...\n packageSources: [\n // ...\n new sources.NpmJs({\n enableCanary: true, // This is the default\n canaryPackage: '@acme/my-constructhub-probe',\n canarySla: Duration.minutes(30),\n }),\n // ...\n ],\n // ...\n});","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"construct-hub"},"field":{"field":"markdown","line":228}},"didCompile":true,"fqnsReferenced":["aws-cdk-lib.App","aws-cdk-lib.Duration","aws-cdk-lib.Duration#minutes","aws-cdk-lib.Stack","aws-cdk-lib.StackProps","construct-hub.ConstructHub","construct-hub.ConstructHubProps","construct-hub.sources.NpmJs","construct-hub.sources.NpmJsProps"],"fullSource":"import * as codeartifact from 'aws-cdk-lib/aws-codeartifact';\nimport { App, Duration, Stack } from 'aws-cdk-lib/core';\nimport { sources, ConstructHub } from 'construct-hub';\n\nconst app = new App();\nconst stack = new Stack(app, 'StackName', { /* ... */ });\n\nnew ConstructHub(stack, 'ConstructHub', {\n // ...\n packageSources: [\n // ...\n new sources.NpmJs({\n enableCanary: true, // This is the default\n canaryPackage: '@acme/my-constructhub-probe',\n canarySla: Duration.minutes(30),\n }),\n // ...\n ],\n // ...\n});","syntaxKindCounter":{"9":1,"11":6,"80":21,"112":1,"209":1,"210":3,"211":2,"213":1,"214":4,"243":2,"244":1,"260":2,"261":2,"272":3,"273":3,"274":1,"275":2,"276":5,"303":4,"307":1},"fqnsFingerprint":"43caec0f4345569327dce6ef531b0857ccf5084302dd6ac34b282f7fff36786f"},"e78bdd3f6618080d2d205f53de8bfbcd0ea2a0baeb0c4388572e52231545ee68":{"translations":{"python":{"source":"ConstructHub(self, \"ConstructHub\",\n package_tags=[PackageTag(\n id=\"official\",\n condition=TagCondition.field(\"name\").eq(\"construct-hub\"),\n keyword=Keyword(\n label=\"Official\",\n color=\"#00FF00\"\n ),\n highlight=Highlight(\n label=\"Vended by AWS\",\n color=\"#00FF00\"\n )\n )]\n)","version":"2"},"csharp":{"source":"new ConstructHub(this, \"ConstructHub\", new ConstructHubProps {\n PackageTags = new [] { new PackageTag {\n Id = \"official\",\n Condition = TagCondition.Field(\"name\").Eq(\"construct-hub\"),\n Keyword = new Keyword {\n Label = \"Official\",\n Color = \"#00FF00\"\n },\n Highlight = new Highlight {\n Label = \"Vended by AWS\",\n Color = \"#00FF00\"\n }\n } }\n});","version":"1"},"java":{"source":"ConstructHub.Builder.create(this, \"ConstructHub\")\n .packageTags(List.of(PackageTag.builder()\n .id(\"official\")\n .condition(TagCondition.field(\"name\").eq(\"construct-hub\"))\n .keyword(Keyword.builder()\n .label(\"Official\")\n .color(\"#00FF00\")\n .build())\n .highlight(Highlight.builder()\n .label(\"Vended by AWS\")\n .color(\"#00FF00\")\n .build())\n .build()))\n .build();","version":"1"},"go":{"source":"constructhub.NewConstructHub(this, jsii.String(\"ConstructHub\"), &ConstructHubProps{\n\tPackageTags: []packageTag{\n\t\t&packageTag{\n\t\t\tId: jsii.String(\"official\"),\n\t\t\tCondition: *constructhub.TagCondition_Field(jsii.String(\"name\")).Eq(jsii.String(\"construct-hub\")),\n\t\t\tKeyword: &Keyword{\n\t\t\t\tLabel: jsii.String(\"Official\"),\n\t\t\t\tColor: jsii.String(\"#00FF00\"),\n\t\t\t},\n\t\t\tHighlight: &Highlight{\n\t\t\t\tLabel: jsii.String(\"Vended by AWS\"),\n\t\t\t\tColor: jsii.String(\"#00FF00\"),\n\t\t\t},\n\t\t},\n\t},\n})","version":"1"},"$":{"source":"new ConstructHub(this, \"ConstructHub\", {\n packageTags: [{\n id: 'official',\n condition: TagCondition.field('name').eq('construct-hub'),\n keyword: {\n label: 'Official',\n color: '#00FF00',\n },\n highlight: {\n label: 'Vended by AWS',\n color: '#00FF00',\n }\n }]\n});","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"construct-hub"},"field":{"field":"markdown","line":274}},"didCompile":true,"fqnsReferenced":["construct-hub.ConstructHub","construct-hub.ConstructHubProps","construct-hub.Highlight","construct-hub.Keyword","construct-hub.TagCondition","construct-hub.TagCondition#field","construct-hub.TagConditionField#eq"],"fullSource":"// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { App, Stack } from 'aws-cdk-lib';\nimport * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';\nimport { ConstructHub, FilterType, PackageTagGroup, TagCondition } from 'construct-hub';\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 ConstructHub(this, \"ConstructHub\", {\n packageTags: [{\n id: 'official',\n condition: TagCondition.field('name').eq('construct-hub'),\n keyword: {\n label: 'Official',\n color: '#00FF00',\n },\n highlight: {\n label: 'Vended by AWS',\n color: '#00FF00',\n }\n }]\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n","syntaxKindCounter":{"11":8,"80":13,"110":1,"209":1,"210":4,"211":2,"213":2,"214":1,"244":1,"303":9},"fqnsFingerprint":"244f3c1464a01c3d3471ee579c90eff5df66915102fe5970251ebefce0f72cfd"},"dadbf82a659becce57c566dbc5c0d7a91712450bc8ce2fffad6a1ea87476741c":{"translations":{"python":{"source":"authors_group = PackageTagGroup(\"authors\",\n label=\"Authors\",\n tooltip=\"Information about the authors filter\",\n filter_type=FilterType.checkbox()\n)\n\nis_aws = TagCondition.field(\"name\").eq(\"construct-hub\")\nConstructHub(self, \"ConstructHub\",\n package_tags=[PackageTag(\n id=\"AWS\",\n condition=is_aws,\n search_filter=SearchFilter(\n group=authors_group,\n display=\"AWS\"\n )\n ), PackageTag(\n id=\"Community\",\n condition=TagCondition.not(is_aws),\n search_filter=SearchFilter(\n group=authors_group,\n display=\"AWS\"\n )\n )]\n)","version":"2"},"csharp":{"source":"var authorsGroup = new PackageTagGroup(\"authors\", new PackageTagGroupProps {\n Label = \"Authors\",\n Tooltip = \"Information about the authors filter\",\n FilterType = FilterType.Checkbox()\n});\n\nvar isAws = TagCondition.Field(\"name\").Eq(\"construct-hub\");\nnew ConstructHub(this, \"ConstructHub\", new ConstructHubProps {\n PackageTags = new [] { new PackageTag {\n Id = \"AWS\",\n Condition = isAws,\n SearchFilter = new SearchFilter {\n Group = authorsGroup,\n Display = \"AWS\"\n }\n }, new PackageTag {\n Id = \"Community\",\n Condition = TagCondition.Not(isAws),\n SearchFilter = new SearchFilter {\n Group = authorsGroup,\n Display = \"AWS\"\n }\n } }\n});","version":"1"},"java":{"source":"PackageTagGroup authorsGroup = PackageTagGroup.Builder.create(\"authors\")\n .label(\"Authors\")\n .tooltip(\"Information about the authors filter\")\n .filterType(FilterType.checkbox())\n .build();\n\nTagCondition isAws = TagCondition.field(\"name\").eq(\"construct-hub\");\nConstructHub.Builder.create(this, \"ConstructHub\")\n .packageTags(List.of(PackageTag.builder()\n .id(\"AWS\")\n .condition(isAws)\n .searchFilter(SearchFilter.builder()\n .group(authorsGroup)\n .display(\"AWS\")\n .build())\n .build(), PackageTag.builder()\n .id(\"Community\")\n .condition(TagCondition.not(isAws))\n .searchFilter(SearchFilter.builder()\n .group(authorsGroup)\n .display(\"AWS\")\n .build())\n .build()))\n .build();","version":"1"},"go":{"source":"authorsGroup := constructhub.NewPackageTagGroup(jsii.String(\"authors\"), &PackageTagGroupProps{\n\tLabel: jsii.String(\"Authors\"),\n\tTooltip: jsii.String(\"Information about the authors filter\"),\n\tFilterType: *constructhub.FilterType_Checkbox(),\n})\n\nisAws := constructhub.TagCondition_Field(jsii.String(\"name\")).Eq(jsii.String(\"construct-hub\"))\nconstructhub.NewConstructHub(this, jsii.String(\"ConstructHub\"), &ConstructHubProps{\n\tPackageTags: []packageTag{\n\t\t&packageTag{\n\t\t\tId: jsii.String(\"AWS\"),\n\t\t\tCondition: isAws,\n\t\t\tSearchFilter: &SearchFilter{\n\t\t\t\tGroup: authorsGroup,\n\t\t\t\tDisplay: jsii.String(\"AWS\"),\n\t\t\t},\n\t\t},\n\t\t&packageTag{\n\t\t\tId: jsii.String(\"Community\"),\n\t\t\tCondition: *constructhub.TagCondition_Not(isAws),\n\t\t\tSearchFilter: &SearchFilter{\n\t\t\t\tGroup: authorsGroup,\n\t\t\t\tDisplay: jsii.String(\"AWS\"),\n\t\t\t},\n\t\t},\n\t},\n})","version":"1"},"$":{"source":"const authorsGroup = new PackageTagGroup(\"authors\", {\n label: \"Authors\",\n tooltip: \"Information about the authors filter\",\n filterType: FilterType.checkbox(),\n});\n\nconst isAws = TagCondition.field('name').eq('construct-hub');\nnew ConstructHub(this, \"ConstructHub\", {\n packageTags: [{\n id: 'AWS',\n condition: isAws,\n searchFilter: {\n group: authorsGroup,\n display: 'AWS',\n },\n }, {\n id: 'Community',\n condition: TagCondition.not(isAws),\n searchFilter: {\n group: authorsGroup,\n display: 'AWS',\n },\n }]\n});","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"construct-hub"},"field":{"field":"markdown","line":299}},"didCompile":true,"fqnsReferenced":["construct-hub.ConstructHub","construct-hub.ConstructHubProps","construct-hub.FilterType","construct-hub.FilterType#checkbox","construct-hub.PackageTagGroup","construct-hub.PackageTagGroupProps","construct-hub.SearchFilter","construct-hub.TagCondition","construct-hub.TagCondition#field","construct-hub.TagCondition#not","construct-hub.TagConditionField#eq"],"fullSource":"// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { App, Stack } from 'aws-cdk-lib';\nimport * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';\nimport { ConstructHub, FilterType, PackageTagGroup, TagCondition } from 'construct-hub';\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 authorsGroup = new PackageTagGroup(\"authors\", {\n label: \"Authors\",\n tooltip: \"Information about the authors filter\",\n filterType: FilterType.checkbox(),\n});\n\nconst isAws = TagCondition.field('name').eq('construct-hub');\nnew ConstructHub(this, \"ConstructHub\", {\n packageTags: [{\n id: 'AWS',\n condition: isAws,\n searchFilter: {\n group: authorsGroup,\n display: 'AWS',\n },\n }, {\n id: 'Community',\n condition: TagCondition.not(isAws),\n searchFilter: {\n group: authorsGroup,\n display: 'AWS',\n },\n }]\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n","syntaxKindCounter":{"11":10,"80":29,"110":1,"209":1,"210":6,"211":4,"213":4,"214":2,"243":2,"244":1,"260":2,"261":2,"303":14},"fqnsFingerprint":"194e65d5424a5f07d6830675dc8481199075dcf39993143b18b74188a021f3da"},"e0dd3e5b738240f26f98ed431cfb14b215241c724e0957fe0ddc33d74164d53c":{"translations":{"python":{"source":"ConstructHub(self, \"ConstructHub\",\n package_tags=[PackageTag(\n id=\"official\",\n keyword=Keyword(\n label=\"Official\",\n color=\"#00FF00\"\n ),\n condition=TagCondition.or(\n TagCondition.field(\"name\").eq(\"construct-hub\"),\n TagCondition.field(\"name\").eq(\"construct-hub-webapp\"))\n )]\n)","version":"2"},"csharp":{"source":"new ConstructHub(this, \"ConstructHub\", new ConstructHubProps {\n PackageTags = new [] { new PackageTag {\n Id = \"official\",\n Keyword = new Keyword {\n Label = \"Official\",\n Color = \"#00FF00\"\n },\n Condition = TagCondition.Or(TagCondition.Field(\"name\").Eq(\"construct-hub\"), TagCondition.Field(\"name\").Eq(\"construct-hub-webapp\"))\n } }\n});","version":"1"},"java":{"source":"ConstructHub.Builder.create(this, \"ConstructHub\")\n .packageTags(List.of(PackageTag.builder()\n .id(\"official\")\n .keyword(Keyword.builder()\n .label(\"Official\")\n .color(\"#00FF00\")\n .build())\n .condition(TagCondition.or(TagCondition.field(\"name\").eq(\"construct-hub\"), TagCondition.field(\"name\").eq(\"construct-hub-webapp\")))\n .build()))\n .build();","version":"1"},"go":{"source":"constructhub.NewConstructHub(this, jsii.String(\"ConstructHub\"), &ConstructHubProps{\n\tPackageTags: []packageTag{\n\t\t&packageTag{\n\t\t\tId: jsii.String(\"official\"),\n\t\t\tKeyword: &Keyword{\n\t\t\t\tLabel: jsii.String(\"Official\"),\n\t\t\t\tColor: jsii.String(\"#00FF00\"),\n\t\t\t},\n\t\t\tCondition: *constructhub.TagCondition_Or(*constructhub.TagCondition_Field(jsii.String(\"name\")).Eq(jsii.String(\"construct-hub\")), *constructhub.TagCondition_*Field(jsii.String(\"name\")).*Eq(jsii.String(\"construct-hub-webapp\"))),\n\t\t},\n\t},\n})","version":"1"},"$":{"source":"new ConstructHub(this, \"ConstructHub\", {\n packageTags: [{\n id: 'official',\n keyword: {\n label: 'Official',\n color: '#00FF00',\n },\n condition: TagCondition.or(\n TagCondition.field('name').eq('construct-hub'),\n TagCondition.field('name').eq('construct-hub-webapp'),\n ),\n }]\n});","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"construct-hub"},"field":{"field":"markdown","line":332}},"didCompile":true,"fqnsReferenced":["construct-hub.ConstructHub","construct-hub.ConstructHubProps","construct-hub.Keyword","construct-hub.TagCondition","construct-hub.TagCondition#field","construct-hub.TagCondition#or","construct-hub.TagConditionField#eq"],"fullSource":"// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { App, Stack } from 'aws-cdk-lib';\nimport * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';\nimport { ConstructHub, FilterType, PackageTagGroup, TagCondition } from 'construct-hub';\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 ConstructHub(this, \"ConstructHub\", {\n packageTags: [{\n id: 'official',\n keyword: {\n label: 'Official',\n color: '#00FF00',\n },\n condition: TagCondition.or(\n TagCondition.field('name').eq('construct-hub'),\n TagCondition.field('name').eq('construct-hub-webapp'),\n ),\n }]\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n","syntaxKindCounter":{"11":8,"80":15,"110":1,"209":1,"210":3,"211":5,"213":5,"214":1,"244":1,"303":6},"fqnsFingerprint":"4c5b03d9c0914150da3a77d27778c36991f87fafcf3239f212d37b7279d06c6b"},"0daaf1c79f3c42c1959f9880414a94224a9eb7647334eb52ae9a82525ee962bd":{"translations":{"python":{"source":"TagCondition.field(\"constructHub\", \"nested\", \"key\").eq(\"value\")","version":"2"},"csharp":{"source":"TagCondition.Field(\"constructHub\", \"nested\", \"key\").Eq(\"value\");","version":"1"},"java":{"source":"TagCondition.field(\"constructHub\", \"nested\", \"key\").eq(\"value\");","version":"1"},"go":{"source":"constructhub.TagCondition_Field(jsii.String(\"constructHub\"), jsii.String(\"nested\"), jsii.String(\"key\")).Eq(jsii.String(\"value\"))","version":"1"},"$":{"source":"TagCondition.field('constructHub', 'nested', 'key').eq('value');\n\n// checks the following:\n// packageJson?.constructHub?.nested?.key === value;","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"construct-hub"},"field":{"field":"markdown","line":350}},"didCompile":true,"fqnsReferenced":["construct-hub.TagCondition#field","construct-hub.TagConditionField#eq"],"fullSource":"// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { App, Stack } from 'aws-cdk-lib';\nimport * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';\nimport { ConstructHub, FilterType, PackageTagGroup, TagCondition } from 'construct-hub';\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\nTagCondition.field('constructHub', 'nested', 'key').eq('value');\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n","syntaxKindCounter":{"11":4,"80":3,"211":2,"213":2,"244":1},"fqnsFingerprint":"2724b9ada935782c2c3724ab1c4b2c442df6184ee4b4a6a04dfc99ea9b916315"},"2f057e56e6c0d4eda33039950957b91227a96f65d279b2a4af04c2d662c9ad08":{"translations":{"python":{"source":"TagCondition.readme().includes(\"ECS\")\nTagCondition.readme().includes(\"fargate\", at_least=3, case_sensitive=False)","version":"2"},"csharp":{"source":"TagCondition.Readme().Includes(\"ECS\");\nTagCondition.Readme().Includes(\"fargate\", new TagConditionIncludesOptions { AtLeast = 3, CaseSensitive = false });","version":"1"},"java":{"source":"TagCondition.readme().includes(\"ECS\");\nTagCondition.readme().includes(\"fargate\", TagConditionIncludesOptions.builder().atLeast(3).caseSensitive(false).build());","version":"1"},"go":{"source":"constructhub.TagCondition_Readme().Includes(jsii.String(\"ECS\"))\nconstructhub.TagCondition_Readme().Includes(jsii.String(\"fargate\"), &TagConditionIncludesOptions{\n\tAtLeast: jsii.Number(3),\n\tCaseSensitive: jsii.Boolean(false),\n})","version":"1"},"$":{"source":"TagCondition.readme().includes('ECS');\nTagCondition.readme().includes('fargate', { atLeast: 3, caseSensitive: false });","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"construct-hub"},"field":{"field":"markdown","line":360}},"didCompile":true,"fqnsReferenced":["construct-hub.TagCondition#readme","construct-hub.TagConditionIncludesOptions","construct-hub.TagConditionReadme#includes"],"fullSource":"// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { App, Stack } from 'aws-cdk-lib';\nimport * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';\nimport { ConstructHub, FilterType, PackageTagGroup, TagCondition } from 'construct-hub';\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\nTagCondition.readme().includes('ECS');\nTagCondition.readme().includes('fargate', { atLeast: 3, caseSensitive: false });\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n","syntaxKindCounter":{"9":1,"11":2,"80":8,"97":1,"210":1,"211":4,"213":4,"244":2,"303":2},"fqnsFingerprint":"8a39e20c1f736f1f7df2eab53d028b6462b3b2069aa97b45d97fce44e3088e5b"},"d5eba64f81f60d90c405b4259df295944332dc664fb3b64c44d9976aa3dd3aff":{"translations":{"python":{"source":"ConstructHub(self, \"ConstructHub\",\n package_links=[PackageLinkConfig(\n link_label=\"Service Level Agreement\",\n config_key=\"SLA\"\n ), PackageLinkConfig(\n link_label=\"Contact\",\n config_key=\"Contact\",\n link_text=\"Email Me!\",\n allowed_domains=[\"me.com\"]\n )]\n)","version":"2"},"csharp":{"source":"new ConstructHub(this, \"ConstructHub\", new ConstructHubProps {\n PackageLinks = new [] { new PackageLinkConfig {\n LinkLabel = \"Service Level Agreement\",\n ConfigKey = \"SLA\"\n }, new PackageLinkConfig {\n LinkLabel = \"Contact\",\n ConfigKey = \"Contact\",\n LinkText = \"Email Me!\",\n AllowedDomains = new [] { \"me.com\" }\n } }\n});","version":"1"},"java":{"source":"ConstructHub.Builder.create(this, \"ConstructHub\")\n .packageLinks(List.of(PackageLinkConfig.builder()\n .linkLabel(\"Service Level Agreement\")\n .configKey(\"SLA\")\n .build(), PackageLinkConfig.builder()\n .linkLabel(\"Contact\")\n .configKey(\"Contact\")\n .linkText(\"Email Me!\")\n .allowedDomains(List.of(\"me.com\"))\n .build()))\n .build();","version":"1"},"go":{"source":"constructhub.NewConstructHub(this, jsii.String(\"ConstructHub\"), &ConstructHubProps{\n\tPackageLinks: []packageLinkConfig{\n\t\t&packageLinkConfig{\n\t\t\tLinkLabel: jsii.String(\"Service Level Agreement\"),\n\t\t\tConfigKey: jsii.String(\"SLA\"),\n\t\t},\n\t\t&packageLinkConfig{\n\t\t\tLinkLabel: jsii.String(\"Contact\"),\n\t\t\tConfigKey: jsii.String(\"Contact\"),\n\t\t\tLinkText: jsii.String(\"Email Me!\"),\n\t\t\tAllowedDomains: []*string{\n\t\t\t\tjsii.String(\"me.com\"),\n\t\t\t},\n\t\t},\n\t},\n})","version":"1"},"$":{"source":"new ConstructHub(this, \"ConstructHub\", {\n packageLinks: [{\n linkLabel: 'Service Level Agreement',\n configKey: 'SLA',\n }, {\n linkLabel: 'Contact',\n configKey: 'Contact',\n linkText: 'Email Me!',\n allowedDomains: ['me.com'],\n }]\n});","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"construct-hub"},"field":{"field":"markdown","line":372}},"didCompile":true,"fqnsReferenced":["construct-hub.ConstructHub","construct-hub.ConstructHubProps"],"fullSource":"// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { App, Stack } from 'aws-cdk-lib';\nimport * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';\nimport { ConstructHub, FilterType, PackageTagGroup, TagCondition } from 'construct-hub';\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 ConstructHub(this, \"ConstructHub\", {\n packageLinks: [{\n linkLabel: 'Service Level Agreement',\n configKey: 'SLA',\n }, {\n linkLabel: 'Contact',\n configKey: 'Contact',\n linkText: 'Email Me!',\n allowedDomains: ['me.com'],\n }]\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n","syntaxKindCounter":{"11":7,"80":8,"110":1,"209":2,"210":3,"214":1,"244":1,"303":7},"fqnsFingerprint":"43c8eb05c91d1ae4b5975364814912d6158cbc3a46b4a12e76e519e32a3a137c"},"b5216fc62f03b6fe1438a302d0375c35f0ecd730f3606dae58919ea52374ed91":{"translations":{"python":{"source":"ConstructHub(self, \"ConstructHub\",\n feed_configuration=FeedConfiguration(\n github_token_secret=secretsmanager.Secret.from_secret_complete_arn(self, \"GitHubToken\", \"<arn:aws:secretsmanager:us-east-2:11111111111:secret:releaseNotesFetcherGitHubToken-abCd1>\"),\n feed_description=\"Latest Constructs in the construct hub\",\n feed_title=\"Latest constructs\"\n )\n)","version":"2"},"csharp":{"source":"new ConstructHub(this, \"ConstructHub\", new ConstructHubProps {\n FeedConfiguration = new FeedConfiguration {\n GithubTokenSecret = Secret.FromSecretCompleteArn(this, \"GitHubToken\", \"<arn:aws:secretsmanager:us-east-2:11111111111:secret:releaseNotesFetcherGitHubToken-abCd1>\"),\n FeedDescription = \"Latest Constructs in the construct hub\",\n FeedTitle = \"Latest constructs\"\n }\n});","version":"1"},"java":{"source":"ConstructHub.Builder.create(this, \"ConstructHub\")\n .feedConfiguration(FeedConfiguration.builder()\n .githubTokenSecret(Secret.fromSecretCompleteArn(this, \"GitHubToken\", \"<arn:aws:secretsmanager:us-east-2:11111111111:secret:releaseNotesFetcherGitHubToken-abCd1>\"))\n .feedDescription(\"Latest Constructs in the construct hub\")\n .feedTitle(\"Latest constructs\")\n .build())\n .build();","version":"1"},"go":{"source":"constructhub.NewConstructHub(this, jsii.String(\"ConstructHub\"), &ConstructHubProps{\n\tFeedConfiguration: &FeedConfiguration{\n\t\tGithubTokenSecret: secretsmanager.Secret_FromSecretCompleteArn(this, jsii.String(\"GitHubToken\"), jsii.String(\"<arn:aws:secretsmanager:us-east-2:11111111111:secret:releaseNotesFetcherGitHubToken-abCd1>\")),\n\t\tFeedDescription: jsii.String(\"Latest Constructs in the construct hub\"),\n\t\tFeedTitle: jsii.String(\"Latest constructs\"),\n\t},\n})","version":"1"},"$":{"source":"new ConstructHub(this, \"ConstructHub\", {\n feedConfiguration: {\n githubTokenSecret: secretsmanager.Secret.fromSecretCompleteArn(this, 'GitHubToken', '<arn:aws:secretsmanager:us-east-2:11111111111:secret:releaseNotesFetcherGitHubToken-abCd1>'),\n feedDescription: 'Latest Constructs in the construct hub',\n feedTitle: 'Latest constructs',\n }\n }\n);","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"construct-hub"},"field":{"field":"markdown","line":409}},"didCompile":true,"fqnsReferenced":["aws-cdk-lib.aws_secretsmanager.ISecret","aws-cdk-lib.aws_secretsmanager.Secret","aws-cdk-lib.aws_secretsmanager.Secret#fromSecretCompleteArn","construct-hub.ConstructHub","construct-hub.ConstructHubProps","construct-hub.FeedConfiguration"],"fullSource":"// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { App, Stack } from 'aws-cdk-lib';\nimport * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';\nimport { ConstructHub, FilterType, PackageTagGroup, TagCondition } from 'construct-hub';\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 ConstructHub(this, \"ConstructHub\", {\n feedConfiguration: {\n githubTokenSecret: secretsmanager.Secret.fromSecretCompleteArn(this, 'GitHubToken', '<arn:aws:secretsmanager:us-east-2:11111111111:secret:releaseNotesFetcherGitHubToken-abCd1>'),\n feedDescription: 'Latest Constructs in the construct hub',\n feedTitle: 'Latest constructs',\n }\n }\n);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n","syntaxKindCounter":{"11":5,"80":8,"110":2,"210":2,"211":2,"213":1,"214":1,"244":1,"303":4},"fqnsFingerprint":"ca57955bd5d3e929ba50b186efc12b14b6126de50260fd2e71cbf6b7d29cf6d2"},"a7a46b5b6e6ba5c8ed9306cc089dcbb161c9550c9296be34309e708257f1f622":{"translations":{"python":{"source":"ConstructHub(self, \"ConstructHub\",\n featured_packages=FeaturedPackages(\n sections=[FeaturedPackagesSection(\n name=\"Recently updated\",\n show_last_updated=4\n ), FeaturedPackagesSection(\n name=\"From the AWS CDK\",\n show_packages=[FeaturedPackagesDetail(\n name=\"@aws-cdk/core\"\n ), FeaturedPackagesDetail(\n name=\"@aws-cdk/aws-s3\",\n comment=\"One of the most popular AWS CDK libraries!\"\n ), FeaturedPackagesDetail(\n name=\"@aws-cdk/aws-lambda\"\n ), FeaturedPackagesDetail(\n name=\"@aws-cdk/pipelines\",\n comment=\"The pipelines L3 construct library abstracts away many of the details of managing software deployment within AWS.\"\n )\n ]\n )\n ]\n )\n)","version":"2"},"csharp":{"source":"new ConstructHub(this, \"ConstructHub\", new ConstructHubProps {\n FeaturedPackages = new FeaturedPackages {\n Sections = new [] { new FeaturedPackagesSection {\n Name = \"Recently updated\",\n ShowLastUpdated = 4\n }, new FeaturedPackagesSection {\n Name = \"From the AWS CDK\",\n ShowPackages = new [] { new FeaturedPackagesDetail {\n Name = \"@aws-cdk/core\"\n }, new FeaturedPackagesDetail {\n Name = \"@aws-cdk/aws-s3\",\n Comment = \"One of the most popular AWS CDK libraries!\"\n }, new FeaturedPackagesDetail {\n Name = \"@aws-cdk/aws-lambda\"\n }, new FeaturedPackagesDetail {\n Name = \"@aws-cdk/pipelines\",\n Comment = \"The pipelines L3 construct library abstracts away many of the details of managing software deployment within AWS.\"\n } }\n } }\n }\n});","version":"1"},"java":{"source":"ConstructHub.Builder.create(this, \"ConstructHub\")\n .featuredPackages(FeaturedPackages.builder()\n .sections(List.of(FeaturedPackagesSection.builder()\n .name(\"Recently updated\")\n .showLastUpdated(4)\n .build(), FeaturedPackagesSection.builder()\n .name(\"From the AWS CDK\")\n .showPackages(List.of(FeaturedPackagesDetail.builder()\n .name(\"@aws-cdk/core\")\n .build(), FeaturedPackagesDetail.builder()\n .name(\"@aws-cdk/aws-s3\")\n .comment(\"One of the most popular AWS CDK libraries!\")\n .build(), FeaturedPackagesDetail.builder()\n .name(\"@aws-cdk/aws-lambda\")\n .build(), FeaturedPackagesDetail.builder()\n .name(\"@aws-cdk/pipelines\")\n .comment(\"The pipelines L3 construct library abstracts away many of the details of managing software deployment within AWS.\")\n .build()))\n .build()))\n .build())\n .build();","version":"1"},"go":{"source":"constructhub.NewConstructHub(this, jsii.String(\"ConstructHub\"), &ConstructHubProps{\n\tFeaturedPackages: &FeaturedPackages{\n\t\tSections: []featuredPackagesSection{\n\t\t\t&featuredPackagesSection{\n\t\t\t\tName: jsii.String(\"Recently updated\"),\n\t\t\t\tShowLastUpdated: jsii.Number(4),\n\t\t\t},\n\t\t\t&featuredPackagesSection{\n\t\t\t\tName: jsii.String(\"From the AWS CDK\"),\n\t\t\t\tShowPackages: []featuredPackagesDetail{\n\t\t\t\t\t&featuredPackagesDetail{\n\t\t\t\t\t\tName: jsii.String(\"@aws-cdk/core\"),\n\t\t\t\t\t},\n\t\t\t\t\t&featuredPackagesDetail{\n\t\t\t\t\t\tName: jsii.String(\"@aws-cdk/aws-s3\"),\n\t\t\t\t\t\tComment: jsii.String(\"One of the most popular AWS CDK libraries!\"),\n\t\t\t\t\t},\n\t\t\t\t\t&featuredPackagesDetail{\n\t\t\t\t\t\tName: jsii.String(\"@aws-cdk/aws-lambda\"),\n\t\t\t\t\t},\n\t\t\t\t\t&featuredPackagesDetail{\n\t\t\t\t\t\tName: jsii.String(\"@aws-cdk/pipelines\"),\n\t\t\t\t\t\tComment: jsii.String(\"The pipelines L3 construct library abstracts away many of the details of managing software deployment within AWS.\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n})","version":"1"},"$":{"source":"new ConstructHub(this, \"ConstructHub\", {\n featuredPackages: {\n sections: [\n {\n name: \"Recently updated\",\n showLastUpdated: 4\n },\n {\n name: \"From the AWS CDK\",\n showPackages: [\n {\n name: \"@aws-cdk/core\"\n },\n {\n name: \"@aws-cdk/aws-s3\",\n comment: \"One of the most popular AWS CDK libraries!\"\n },\n {\n name: \"@aws-cdk/aws-lambda\"\n },\n {\n name: \"@aws-cdk/pipelines\",\n comment: \"The pipelines L3 construct library abstracts away many of the details of managing software deployment within AWS.\"\n }\n ]\n }\n ]\n }\n});","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"construct-hub"},"field":{"field":"markdown","line":428}},"didCompile":true,"fqnsReferenced":["construct-hub.ConstructHub","construct-hub.ConstructHubProps","construct-hub.FeaturedPackages"],"fullSource":"// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { App, Stack } from 'aws-cdk-lib';\nimport * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';\nimport { ConstructHub, FilterType, PackageTagGroup, TagCondition } from 'construct-hub';\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 ConstructHub(this, \"ConstructHub\", {\n featuredPackages: {\n sections: [\n {\n name: \"Recently updated\",\n showLastUpdated: 4\n },\n {\n name: \"From the AWS CDK\",\n showPackages: [\n {\n name: \"@aws-cdk/core\"\n },\n {\n name: \"@aws-cdk/aws-s3\",\n comment: \"One of the most popular AWS CDK libraries!\"\n },\n {\n name: \"@aws-cdk/aws-lambda\"\n },\n {\n name: \"@aws-cdk/pipelines\",\n comment: \"The pipelines L3 construct library abstracts away many of the details of managing software deployment within AWS.\"\n }\n ]\n }\n ]\n }\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n","syntaxKindCounter":{"9":1,"11":9,"80":13,"110":1,"209":2,"210":8,"214":1,"244":1,"303":12},"fqnsFingerprint":"bcff5934f9620ee882679eeca19a1b87b7f4b07361784e7b9418d5104cc9856a"},"8ff5b711c8eaa11aeba183a5910aafb33b9250d444225e98bbf647f0f6ba12bf":{"translations":{"python":{"source":"ConstructHub(self, \"ConstructHub\",\n categories=[Category(title=\"Databases\", url=\"?keywords=databases\"), Category(title=\"Monitoring\", url=\"?q=monitoring\"), Category(title=\"Partners\", url=\"?tags=aws-partner\")\n ]\n)","version":"2"},"csharp":{"source":"new ConstructHub(this, \"ConstructHub\", new ConstructHubProps {\n Categories = new [] { new Category { Title = \"Databases\", Url = \"?keywords=databases\" }, new Category { Title = \"Monitoring\", Url = \"?q=monitoring\" }, new Category { Title = \"Partners\", Url = \"?tags=aws-partner\" } }\n});","version":"1"},"java":{"source":"ConstructHub.Builder.create(this, \"ConstructHub\")\n .categories(List.of(Category.builder().title(\"Databases\").url(\"?keywords=databases\").build(), Category.builder().title(\"Monitoring\").url(\"?q=monitoring\").build(), Category.builder().title(\"Partners\").url(\"?tags=aws-partner\").build()))\n .build();","version":"1"},"go":{"source":"constructhub.NewConstructHub(this, jsii.String(\"ConstructHub\"), &ConstructHubProps{\n\tCategories: []category{\n\t\t&category{\n\t\t\tTitle: jsii.String(\"Databases\"),\n\t\t\tUrl: jsii.String(\"?keywords=databases\"),\n\t\t},\n\t\t&category{\n\t\t\tTitle: jsii.String(\"Monitoring\"),\n\t\t\tUrl: jsii.String(\"?q=monitoring\"),\n\t\t},\n\t\t&category{\n\t\t\tTitle: jsii.String(\"Partners\"),\n\t\t\tUrl: jsii.String(\"?tags=aws-partner\"),\n\t\t},\n\t},\n})","version":"1"},"$":{"source":"new ConstructHub(this, \"ConstructHub\", {\n categories: [\n { title: 'Databases', url: '?keywords=databases' },\n { title: 'Monitoring', url: '?q=monitoring' },\n { title: 'Partners', url: '?tags=aws-partner' }\n ]\n});","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"construct-hub"},"field":{"field":"markdown","line":470}},"didCompile":true,"fqnsReferenced":["construct-hub.ConstructHub","construct-hub.ConstructHubProps"],"fullSource":"// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { App, Stack } from 'aws-cdk-lib';\nimport * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';\nimport { ConstructHub, FilterType, PackageTagGroup, TagCondition } from 'construct-hub';\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 ConstructHub(this, \"ConstructHub\", {\n categories: [\n { title: 'Databases', url: '?keywords=databases' },\n { title: 'Monitoring', url: '?q=monitoring' },\n { title: 'Partners', url: '?tags=aws-partner' }\n ]\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n","syntaxKindCounter":{"11":7,"80":8,"110":1,"209":1,"210":4,"214":1,"244":1,"303":7},"fqnsFingerprint":"43c8eb05c91d1ae4b5975364814912d6158cbc3a46b4a12e76e519e32a3a137c"},"0f173c6f76b309b8557e11b2b4e79907d6a33296089148537b0627a64e4c3dcf":{"translations":{"python":{"source":"\"/search?keywords=monitoring\"","version":"2"},"csharp":{"source":"\"/search?keywords=monitoring\";","version":"1"},"java":{"source":"\"/search?keywords=monitoring\";","version":"1"},"go":{"source":"\"/search?keywords=monitoring\"","version":"1"},"$":{"source":"\"/search?keywords=monitoring\"","version":"0"}},"location":{"api":{"api":"member","fqn":"construct-hub.Category","memberName":"url"},"field":{"field":"example"}},"didCompile":true,"fqnsReferenced":[],"fullSource":"// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { App, Stack } from 'aws-cdk-lib';\nimport * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';\nimport { ConstructHub, FilterType, PackageTagGroup, TagCondition } from 'construct-hub';\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\"/search?keywords=monitoring\"\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n","syntaxKindCounter":{"11":1,"244":1},"fqnsFingerprint":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}}}
|
package/API.md
CHANGED
@@ -449,6 +449,51 @@ This must be an ARN that can be used with CloudWatch alarms.
|
|
449
449
|
|
450
450
|
---
|
451
451
|
|
452
|
+
### AlarmSeverities <a name="AlarmSeverities" id="construct-hub.AlarmSeverities"></a>
|
453
|
+
|
454
|
+
Configure severities for various alarms.
|
455
|
+
|
456
|
+
Alarms not included here are currently not configurable.
|
457
|
+
|
458
|
+
#### Initializer <a name="Initializer" id="construct-hub.AlarmSeverities.Initializer"></a>
|
459
|
+
|
460
|
+
```typescript
|
461
|
+
import { AlarmSeverities } from 'construct-hub'
|
462
|
+
|
463
|
+
const alarmSeverities: AlarmSeverities = { ... }
|
464
|
+
```
|
465
|
+
|
466
|
+
#### Properties <a name="Properties" id="Properties"></a>
|
467
|
+
|
468
|
+
| **Name** | **Type** | **Description** |
|
469
|
+
| --- | --- | --- |
|
470
|
+
| <code><a href="#construct-hub.AlarmSeverities.property.backendOrchestrationFailed">backendOrchestrationFailed</a></code> | <code><a href="#construct-hub.AlarmSeverity">AlarmSeverity</a></code> | *No description.* |
|
471
|
+
| <code><a href="#construct-hub.AlarmSeverities.property.packageCanarySLABreached">packageCanarySLABreached</a></code> | <code><a href="#construct-hub.AlarmSeverity">AlarmSeverity</a></code> | *No description.* |
|
472
|
+
|
473
|
+
---
|
474
|
+
|
475
|
+
##### `backendOrchestrationFailed`<sup>Optional</sup> <a name="backendOrchestrationFailed" id="construct-hub.AlarmSeverities.property.backendOrchestrationFailed"></a>
|
476
|
+
|
477
|
+
```typescript
|
478
|
+
public readonly backendOrchestrationFailed: AlarmSeverity;
|
479
|
+
```
|
480
|
+
|
481
|
+
- *Type:* <a href="#construct-hub.AlarmSeverity">AlarmSeverity</a>
|
482
|
+
- *Default:* AlarmSeverity.HIGH
|
483
|
+
|
484
|
+
---
|
485
|
+
|
486
|
+
##### `packageCanarySLABreached`<sup>Optional</sup> <a name="packageCanarySLABreached" id="construct-hub.AlarmSeverities.property.packageCanarySLABreached"></a>
|
487
|
+
|
488
|
+
```typescript
|
489
|
+
public readonly packageCanarySLABreached: AlarmSeverity;
|
490
|
+
```
|
491
|
+
|
492
|
+
- *Type:* <a href="#construct-hub.AlarmSeverity">AlarmSeverity</a>
|
493
|
+
- *Default:* AlarmSeverity.LOW
|
494
|
+
|
495
|
+
---
|
496
|
+
|
452
497
|
### Category <a name="Category" id="construct-hub.Category"></a>
|
453
498
|
|
454
499
|
A category of packages.
|
@@ -611,6 +656,7 @@ const constructHubProps: ConstructHubProps = { ... }
|
|
611
656
|
| --- | --- | --- |
|
612
657
|
| <code><a href="#construct-hub.ConstructHubProps.property.additionalDomains">additionalDomains</a></code> | <code><a href="#construct-hub.DomainRedirectSource">DomainRedirectSource</a>[]</code> | Additional domains which will be set up to redirect to the primary construct hub domain. |
|
613
658
|
| <code><a href="#construct-hub.ConstructHubProps.property.alarmActions">alarmActions</a></code> | <code><a href="#construct-hub.AlarmActions">AlarmActions</a></code> | Actions to perform when alarms are set. |
|
659
|
+
| <code><a href="#construct-hub.ConstructHubProps.property.alarmSeverities">alarmSeverities</a></code> | <code><a href="#construct-hub.AlarmSeverities">AlarmSeverities</a></code> | Configure the severities of various alarms. |
|
614
660
|
| <code><a href="#construct-hub.ConstructHubProps.property.allowedLicenses">allowedLicenses</a></code> | <code><a href="#construct-hub.SpdxLicense">SpdxLicense</a>[]</code> | The allowed licenses for packages indexed by this instance of ConstructHub. |
|
615
661
|
| <code><a href="#construct-hub.ConstructHubProps.property.appRegistryApplication">appRegistryApplication</a></code> | <code>boolean</code> | Create an AppRegistry application associated with the stack containing this construct. |
|
616
662
|
| <code><a href="#construct-hub.ConstructHubProps.property.backendDashboardName">backendDashboardName</a></code> | <code>string</code> | The name of the CloudWatch dashboard that represents the health of backend systems. |
|
@@ -661,6 +707,18 @@ Actions to perform when alarms are set.
|
|
661
707
|
|
662
708
|
---
|
663
709
|
|
710
|
+
##### `alarmSeverities`<sup>Optional</sup> <a name="alarmSeverities" id="construct-hub.ConstructHubProps.property.alarmSeverities"></a>
|
711
|
+
|
712
|
+
```typescript
|
713
|
+
public readonly alarmSeverities: AlarmSeverities;
|
714
|
+
```
|
715
|
+
|
716
|
+
- *Type:* <a href="#construct-hub.AlarmSeverities">AlarmSeverities</a>
|
717
|
+
|
718
|
+
Configure the severities of various alarms.
|
719
|
+
|
720
|
+
---
|
721
|
+
|
664
722
|
##### `allowedLicenses`<sup>Optional</sup> <a name="allowedLicenses" id="construct-hub.ConstructHubProps.property.allowedLicenses"></a>
|
665
723
|
|
666
724
|
```typescript
|
@@ -1579,6 +1637,7 @@ const npmJsProps: sources.NpmJsProps = { ... }
|
|
1579
1637
|
|
1580
1638
|
| **Name** | **Type** | **Description** |
|
1581
1639
|
| --- | --- | --- |
|
1640
|
+
| <code><a href="#construct-hub.sources.NpmJsProps.property.alarmSeverities">alarmSeverities</a></code> | <code><a href="#construct-hub.AlarmSeverities">AlarmSeverities</a></code> | Configure alarm severities. |
|
1582
1641
|
| <code><a href="#construct-hub.sources.NpmJsProps.property.canaryPackage">canaryPackage</a></code> | <code>string</code> | The package that is monitored by the package canary, if enabled by `enableCanary`. |
|
1583
1642
|
| <code><a href="#construct-hub.sources.NpmJsProps.property.canarySla">canarySla</a></code> | <code>aws-cdk-lib.Duration</code> | The maximum amount of time it is supposed to take for packages to become visible in this ConstructHub instance. |
|
1584
1643
|
| <code><a href="#construct-hub.sources.NpmJsProps.property.enableCanary">enableCanary</a></code> | <code>boolean</code> | Registers a package canary, which will track availability of a canary package in ConstructHub, and emit dedicated metrics. |
|
@@ -1586,6 +1645,18 @@ const npmJsProps: sources.NpmJsProps = { ... }
|
|
1586
1645
|
|
1587
1646
|
---
|
1588
1647
|
|
1648
|
+
##### `alarmSeverities`<sup>Optional</sup> <a name="alarmSeverities" id="construct-hub.sources.NpmJsProps.property.alarmSeverities"></a>
|
1649
|
+
|
1650
|
+
```typescript
|
1651
|
+
public readonly alarmSeverities: AlarmSeverities;
|
1652
|
+
```
|
1653
|
+
|
1654
|
+
- *Type:* <a href="#construct-hub.AlarmSeverities">AlarmSeverities</a>
|
1655
|
+
|
1656
|
+
Configure alarm severities.
|
1657
|
+
|
1658
|
+
---
|
1659
|
+
|
1589
1660
|
##### `canaryPackage`<sup>Optional</sup> <a name="canaryPackage" id="construct-hub.sources.NpmJsProps.property.canaryPackage"></a>
|
1590
1661
|
|
1591
1662
|
```typescript
|
@@ -13961,6 +14032,33 @@ the id of the external connection (i.e: `public:npmjs`).
|
|
13961
14032
|
|
13962
14033
|
## Enums <a name="Enums" id="Enums"></a>
|
13963
14034
|
|
14035
|
+
### AlarmSeverity <a name="AlarmSeverity" id="construct-hub.AlarmSeverity"></a>
|
14036
|
+
|
14037
|
+
#### Members <a name="Members" id="Members"></a>
|
14038
|
+
|
14039
|
+
| **Name** | **Description** |
|
14040
|
+
| --- | --- |
|
14041
|
+
| <code><a href="#construct-hub.AlarmSeverity.HIGH">HIGH</a></code> | *No description.* |
|
14042
|
+
| <code><a href="#construct-hub.AlarmSeverity.MEDIUM">MEDIUM</a></code> | *No description.* |
|
14043
|
+
| <code><a href="#construct-hub.AlarmSeverity.LOW">LOW</a></code> | *No description.* |
|
14044
|
+
|
14045
|
+
---
|
14046
|
+
|
14047
|
+
##### `HIGH` <a name="HIGH" id="construct-hub.AlarmSeverity.HIGH"></a>
|
14048
|
+
|
14049
|
+
---
|
14050
|
+
|
14051
|
+
|
14052
|
+
##### `MEDIUM` <a name="MEDIUM" id="construct-hub.AlarmSeverity.MEDIUM"></a>
|
14053
|
+
|
14054
|
+
---
|
14055
|
+
|
14056
|
+
|
14057
|
+
##### `LOW` <a name="LOW" id="construct-hub.AlarmSeverity.LOW"></a>
|
14058
|
+
|
14059
|
+
---
|
14060
|
+
|
14061
|
+
|
13964
14062
|
### Isolation <a name="Isolation" id="construct-hub.Isolation"></a>
|
13965
14063
|
|
13966
14064
|
How possibly risky operations (such as doc-generation, which requires installing the indexed packages in order to trans-literate sample code) are isolated to mitigate possible arbitrary code execution vulnerabilities in and around `npm install` or the transliterator's use of the TypeScript compiler.
|
package/lib/api.d.ts
CHANGED
@@ -29,6 +29,26 @@ export interface Domain {
|
|
29
29
|
*/
|
30
30
|
readonly monitorCertificateExpiration?: boolean;
|
31
31
|
}
|
32
|
+
export declare enum AlarmSeverity {
|
33
|
+
HIGH = 0,
|
34
|
+
MEDIUM = 1,
|
35
|
+
LOW = 2
|
36
|
+
}
|
37
|
+
/**
|
38
|
+
* Configure severities for various alarms.
|
39
|
+
*
|
40
|
+
* Alarms not included here are currently not configurable.
|
41
|
+
*/
|
42
|
+
export interface AlarmSeverities {
|
43
|
+
/**
|
44
|
+
* @default AlarmSeverity.HIGH
|
45
|
+
*/
|
46
|
+
readonly backendOrchestrationFailed?: AlarmSeverity;
|
47
|
+
/**
|
48
|
+
* @default AlarmSeverity.LOW
|
49
|
+
*/
|
50
|
+
readonly packageCanarySLABreached?: AlarmSeverity;
|
51
|
+
}
|
32
52
|
/**
|
33
53
|
* CloudWatch alarm actions to perform.
|
34
54
|
*/
|
package/lib/api.js
CHANGED
@@ -15,9 +15,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
16
16
|
};
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
18
|
+
exports.AlarmSeverity = void 0;
|
18
19
|
__exportStar(require("./backend/deny-list/api"), exports);
|
19
20
|
__exportStar(require("./backend/license-list/api"), exports);
|
20
21
|
__exportStar(require("./codeartifact/api"), exports);
|
21
22
|
__exportStar(require("./monitoring/api"), exports);
|
22
23
|
__exportStar(require("./overview-dashboard/api"), exports);
|
23
|
-
|
24
|
+
var AlarmSeverity;
|
25
|
+
(function (AlarmSeverity) {
|
26
|
+
AlarmSeverity[AlarmSeverity["HIGH"] = 0] = "HIGH";
|
27
|
+
AlarmSeverity[AlarmSeverity["MEDIUM"] = 1] = "MEDIUM";
|
28
|
+
AlarmSeverity[AlarmSeverity["LOW"] = 2] = "LOW";
|
29
|
+
})(AlarmSeverity || (exports.AlarmSeverity = AlarmSeverity = {}));
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEscUVBQXFFOzs7Ozs7Ozs7Ozs7Ozs7OztBQU1yRSwwREFBd0M7QUFDeEMsNkRBQTJDO0FBQzNDLHFEQUFtQztBQUNuQyxtREFBaUM7QUFDakMsMkRBQXlDO0FBNEJ6QyxJQUFZLGFBSVg7QUFKRCxXQUFZLGFBQWE7SUFDdkIsaURBQUksQ0FBQTtJQUNKLHFEQUFNLENBQUE7SUFDTiwrQ0FBRyxDQUFBO0FBQ0wsQ0FBQyxFQUpXLGFBQWEsNkJBQWIsYUFBYSxRQUl4QiIsInNvdXJjZXNDb250ZW50IjpbIi8vIHRoaXMgZmlsZSBpbmNsdWRlcyB0eXBlcyB0aGF0IGFyZSBwYXJ0IG9mIHRoZSBsaWJyYXJ5J3MgcHVibGljIEFQSVxuXG5pbXBvcnQgKiBhcyBjZXJ0aWZpY2F0ZW1hbmFnZXIgZnJvbSAnYXdzLWNkay1saWIvYXdzLWNlcnRpZmljYXRlbWFuYWdlcic7XG5pbXBvcnQgeyBJQWxhcm1BY3Rpb24gfSBmcm9tICdhd3MtY2RrLWxpYi9hd3MtY2xvdWR3YXRjaCc7XG5pbXBvcnQgKiBhcyByb3V0ZTUzIGZyb20gJ2F3cy1jZGstbGliL2F3cy1yb3V0ZTUzJztcblxuZXhwb3J0ICogZnJvbSAnLi9iYWNrZW5kL2RlbnktbGlzdC9hcGknO1xuZXhwb3J0ICogZnJvbSAnLi9iYWNrZW5kL2xpY2Vuc2UtbGlzdC9hcGknO1xuZXhwb3J0ICogZnJvbSAnLi9jb2RlYXJ0aWZhY3QvYXBpJztcbmV4cG9ydCAqIGZyb20gJy4vbW9uaXRvcmluZy9hcGknO1xuZXhwb3J0ICogZnJvbSAnLi9vdmVydmlldy1kYXNoYm9hcmQvYXBpJztcblxuLyoqXG4gKiBEb21haW4gY29uZmlndXJhdGlvbiBmb3IgdGhlIHdlYnNpdGUuXG4gKi9cbmV4cG9ydCBpbnRlcmZhY2UgRG9tYWluIHtcbiAgLyoqXG4gICAqIFRoZSByb290IGRvbWFpbiBuYW1lIHdoZXJlIHRoaXMgaW5zdGFuY2Ugb2YgQ29uc3RydWN0IEh1YiB3aWxsIGJlIHNlcnZlZC5cbiAgICovXG4gIHJlYWRvbmx5IHpvbmU6IHJvdXRlNTMuSUhvc3RlZFpvbmU7XG5cbiAgLyoqXG4gICAqIFRoZSBjZXJ0aWZpY2F0ZSB0byB1c2UgZm9yIHNlcnZpbmcgdGhlIENvbnN0cnVjdCBIdWIgb3ZlciBhIGN1c3RvbSBkb21haW4uXG4gICAqXG4gICAqIEBkZWZhdWx0IC0gYSBETlMtVmFsaWRhdGVkIGNlcnRpZmljYXRlIHdpbGwgYmUgcHJvdmlzaW9uZWQgdXNpbmcgdGhlXG4gICAqICAgICAgICAgICAgcHJvdmlkZWQgYGhvc3RlZFpvbmVgLlxuICAgKi9cbiAgcmVhZG9ubHkgY2VydDogY2VydGlmaWNhdGVtYW5hZ2VyLklDZXJ0aWZpY2F0ZTtcblxuICAvKipcbiAgICogV2hldGhlciB0aGUgY2VydGlmaWNhdGUgc2hvdWxkIGJlIG1vbml0b3JlZCBmb3IgZXhwaXJhdGlvbiwgbWVhbmluZyBoaWdoXG4gICAqIHNldmVyaXR5IGFsYXJtcyB3aWxsIGJlIHJhaXNlZCBpZiBpdCBpcyBkdWUgdG8gZXhwaXJlIGluIGxlc3MgdGhhbiA0NSBkYXlzLlxuICAgKlxuICAgKiBAZGVmYXVsdCB0cnVlXG4gICAqL1xuICByZWFkb25seSBtb25pdG9yQ2VydGlmaWNhdGVFeHBpcmF0aW9uPzogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGVudW0gQWxhcm1TZXZlcml0eSB7XG4gIEhJR0gsXG4gIE1FRElVTSxcbiAgTE9XLFxufVxuXG4vKipcbiAqIENvbmZpZ3VyZSBzZXZlcml0aWVzIGZvciB2YXJpb3VzIGFsYXJtcy5cbiAqIFxuICogQWxhcm1zIG5vdCBpbmNsdWRlZCBoZXJlIGFyZSBjdXJyZW50bHkgbm90IGNvbmZpZ3VyYWJsZS5cbiAqL1xuZXhwb3J0IGludGVyZmFjZSBBbGFybVNldmVyaXRpZXMge1xuXG4gIC8qKlxuICAgKiBAZGVmYXVsdCBBbGFybVNldmVyaXR5LkhJR0hcbiAgICovXG4gIHJlYWRvbmx5IGJhY2tlbmRPcmNoZXN0cmF0aW9uRmFpbGVkPzogQWxhcm1TZXZlcml0eTtcblxuICAvKipcbiAgICogQGRlZmF1bHQgQWxhcm1TZXZlcml0eS5MT1dcbiAgICovXG4gIHJlYWRvbmx5IHBhY2thZ2VDYW5hcnlTTEFCcmVhY2hlZD86IEFsYXJtU2V2ZXJpdHk7XG5cbn1cblxuLyoqXG4gKiBDbG91ZFdhdGNoIGFsYXJtIGFjdGlvbnMgdG8gcGVyZm9ybS5cbiAqL1xuZXhwb3J0IGludGVyZmFjZSBBbGFybUFjdGlvbnMge1xuICAvKipcbiAgICogVGhlIEFSTiBvZiB0aGUgQ2xvdWRXYXRjaCBhbGFybSBhY3Rpb24gdG8gdGFrZSBmb3IgYWxhcm1zIG9mIGhpZ2gtc2V2ZXJpdHlcbiAgICogYWxhcm1zLlxuICAgKlxuICAgKiBUaGlzIG11c3QgYmUgYW4gQVJOIHRoYXQgY2FuIGJlIHVzZWQgd2l0aCBDbG91ZFdhdGNoIGFsYXJtcy5cbiAgICogQHNlZSBodHRwczovL2RvY3MuYXdzLmFtYXpvbi5jb20vQW1hem9uQ2xvdWRXYXRjaC9sYXRlc3QvbW9uaXRvcmluZy9BbGFybVRoYXRTZW5kc0VtYWlsLmh0bWwjYWxhcm1zLWFuZC1hY3Rpb25zXG4gICAqL1xuICByZWFkb25seSBoaWdoU2V2ZXJpdHk/OiBzdHJpbmc7XG5cbiAgLyoqXG4gICAqIFRoZSBDbG91ZFdhdGNoIGFsYXJtIGFjdGlvbiB0byB0YWtlIGZvciBhbGFybXMgb2YgaGlnaC1zZXZlcml0eSBhbGFybXMuXG4gICAqXG4gICAqIFRoaXMgbXVzdCBiZSBhbiBBUk4gdGhhdCBjYW4gYmUgdXNlZCB3aXRoIENsb3VkV2F0Y2ggYWxhcm1zLlxuICAgKiBAc2VlIGh0dHBzOi8vZG9jcy5hd3MuYW1hem9uLmNvbS9BbWF6b25DbG91ZFdhdGNoL2xhdGVzdC9tb25pdG9yaW5nL0FsYXJtVGhhdFNlbmRzRW1haWwuaHRtbCNhbGFybXMtYW5kLWFjdGlvbnNcbiAgICovXG4gIHJlYWRvbmx5IGhpZ2hTZXZlcml0eUFjdGlvbj86IElBbGFybUFjdGlvbjtcblxuICAvKipcbiAgICogVGhlIEFSTiBvZiB0aGUgQ2xvdWRXYXRjaCBhbGFybSBhY3Rpb24gdG8gdGFrZSBmb3IgYWxhcm1zIG9mIG1lZGl1bS1zZXZlcml0eVxuICAgKiBhbGFybXMuXG4gICAqXG4gICAqIFRoaXMgbXVzdCBiZSBhbiBBUk4gdGhhdCBjYW4gYmUgdXNlZCB3aXRoIENsb3VkV2F0Y2ggYWxhcm1zLlxuICAgKiBAc2VlIGh0dHBzOi8vZG9jcy5hd3MuYW1hem9uLmNvbS9BbWF6b25DbG91ZFdhdGNoL2xhdGVzdC9tb25pdG9yaW5nL0FsYXJtVGhhdFNlbmRzRW1haWwuaHRtbCNhbGFybXMtYW5kLWFjdGlvbnNcbiAgICovXG4gIHJlYWRvbmx5IG1lZGl1bVNldmVyaXR5Pzogc3RyaW5nO1xuXG4gIC8qKlxuICAgKiBUaGUgQ2xvdWRXYXRjaCBhbGFybSBhY3Rpb24gdG8gdGFrZSBmb3IgYWxhcm1zIG9mIG1lZGl1bS1zZXZlcml0eSBhbGFybXMuXG4gICAqXG4gICAqIFRoaXMgbXVzdCBiZSBhbiBBUk4gdGhhdCBjYW4gYmUgdXNlZCB3aXRoIENsb3VkV2F0Y2ggYWxhcm1zLlxuICAgKiBAc2VlIGh0dHBzOi8vZG9jcy5hd3MuYW1hem9uLmNvbS9BbWF6b25DbG91ZFdhdGNoL2xhdGVzdC9tb25pdG9yaW5nL0FsYXJtVGhhdFNlbmRzRW1haWwuaHRtbCNhbGFybXMtYW5kLWFjdGlvbnNcbiAgICovXG4gIHJlYWRvbmx5IG1lZGl1bVNldmVyaXR5QWN0aW9uPzogSUFsYXJtQWN0aW9uO1xuXG4gIC8qKlxuICAgKiBUaGUgQVJOIG9mIHRoZSBDbG91ZFdhdGNoIGFsYXJtIGFjdGlvbiB0byB0YWtlIGZvciBhbGFybXMgb2Ygbm9ybWFsXG4gICAqIHNldmVyaXR5LlxuICAgKlxuICAgKiBUaGlzIG11c3QgYmUgYW4gQVJOIHRoYXQgY2FuIGJlIHVzZWQgd2l0aCBDbG91ZFdhdGNoIGFsYXJtcy5cbiAgICogQHNlZSBodHRwczovL2RvY3MuYXdzLmFtYXpvbi5jb20vQW1hem9uQ2xvdWRXYXRjaC9sYXRlc3QvbW9uaXRvcmluZy9BbGFybVRoYXRTZW5kc0VtYWlsLmh0bWwjYWxhcm1zLWFuZC1hY3Rpb25zXG4gICAqXG4gICAqIEBkZWZhdWx0IC0gbm8gYWN0aW9ucyBhcmUgdGFrZW4gaW4gcmVzcG9uc2UgdG8gYWxhcm1zIG9mIG5vcm1hbCBzZXZlcml0eVxuICAgKi9cbiAgcmVhZG9ubHkgbm9ybWFsU2V2ZXJpdHk/OiBzdHJpbmc7XG5cbiAgLyoqXG4gICAqIFRoZSBDbG91ZFdhdGNoIGFsYXJtIGFjdGlvbiB0byB0YWtlIGZvciBhbGFybXMgb2Ygbm9ybWFsIHNldmVyaXR5LlxuICAgKlxuICAgKiBUaGlzIG11c3QgYmUgYW4gQVJOIHRoYXQgY2FuIGJlIHVzZWQgd2l0aCBDbG91ZFdhdGNoIGFsYXJtcy5cbiAgICogQHNlZSBodHRwczovL2RvY3MuYXdzLmFtYXpvbi5jb20vQW1hem9uQ2xvdWRXYXRjaC9sYXRlc3QvbW9uaXRvcmluZy9BbGFybVRoYXRTZW5kc0VtYWlsLmh0bWwjYWxhcm1zLWFuZC1hY3Rpb25zXG4gICAqXG4gICAqIEBkZWZhdWx0IC0gbm8gYWN0aW9ucyBhcmUgdGFrZW4gaW4gcmVzcG9uc2UgdG8gYWxhcm1zIG9mIG5vcm1hbCBzZXZlcml0eVxuICAgKi9cbiAgcmVhZG9ubHkgbm9ybWFsU2V2ZXJpdHlBY3Rpb24/OiBJQWxhcm1BY3Rpb247XG59XG4iXX0=
|
@@ -15,6 +15,7 @@ import { DenyList } from '../deny-list';
|
|
15
15
|
import { EcsTaskMonitor } from '../ecs-task-monitor';
|
16
16
|
import { FeedBuilder } from '../feed-builder';
|
17
17
|
import { Transliterator, TransliteratorVpcEndpoints } from '../transliterator';
|
18
|
+
import { AlarmSeverities } from '../../api';
|
18
19
|
export interface OrchestrationProps {
|
19
20
|
/**
|
20
21
|
* The bucket in which to source assemblies to transliterate.
|
@@ -62,6 +63,10 @@ export interface OrchestrationProps {
|
|
62
63
|
* The construct that generates RSS/ATOM feed
|
63
64
|
*/
|
64
65
|
readonly feedBuilder: FeedBuilder;
|
66
|
+
/**
|
67
|
+
* Configure alarm severities.
|
68
|
+
*/
|
69
|
+
readonly alarmSeverities?: AlarmSeverities;
|
65
70
|
}
|
66
71
|
/**
|
67
72
|
* Orchestrates the backend processing tasks using a StepFunctions State Machine.
|