construct-hub 0.4.475 → 0.4.476

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 CHANGED
@@ -21376,7 +21376,7 @@
21376
21376
  },
21377
21377
  "locationInModule": {
21378
21378
  "filename": "src/package-sources/npmjs.ts",
21379
- "line": 110
21379
+ "line": 120
21380
21380
  },
21381
21381
  "parameters": [
21382
21382
  {
@@ -21394,7 +21394,7 @@
21394
21394
  "kind": "class",
21395
21395
  "locationInModule": {
21396
21396
  "filename": "src/package-sources/npmjs.ts",
21397
- "line": 109
21397
+ "line": 119
21398
21398
  },
21399
21399
  "methods": [
21400
21400
  {
@@ -21404,7 +21404,7 @@
21404
21404
  },
21405
21405
  "locationInModule": {
21406
21406
  "filename": "src/package-sources/npmjs.ts",
21407
- "line": 112
21407
+ "line": 122
21408
21408
  },
21409
21409
  "name": "bind",
21410
21410
  "overrides": "construct-hub.IPackageSource",
@@ -21435,7 +21435,7 @@
21435
21435
  },
21436
21436
  "locationInModule": {
21437
21437
  "filename": "src/package-sources/npmjs.ts",
21438
- "line": 371
21438
+ "line": 382
21439
21439
  },
21440
21440
  "name": "metricBatchProcessingTime",
21441
21441
  "parameters": [
@@ -21460,7 +21460,7 @@
21460
21460
  },
21461
21461
  "locationInModule": {
21462
21462
  "filename": "src/package-sources/npmjs.ts",
21463
- "line": 384
21463
+ "line": 395
21464
21464
  },
21465
21465
  "name": "metricChangeCount",
21466
21466
  "parameters": [
@@ -21486,7 +21486,7 @@
21486
21486
  },
21487
21487
  "locationInModule": {
21488
21488
  "filename": "src/package-sources/npmjs.ts",
21489
- "line": 398
21489
+ "line": 409
21490
21490
  },
21491
21491
  "name": "metricLastSeq",
21492
21492
  "parameters": [
@@ -21510,7 +21510,7 @@
21510
21510
  },
21511
21511
  "locationInModule": {
21512
21512
  "filename": "src/package-sources/npmjs.ts",
21513
- "line": 408
21513
+ "line": 419
21514
21514
  },
21515
21515
  "name": "metricNpmJsChangeAge",
21516
21516
  "parameters": [
@@ -21535,7 +21535,7 @@
21535
21535
  },
21536
21536
  "locationInModule": {
21537
21537
  "filename": "src/package-sources/npmjs.ts",
21538
- "line": 421
21538
+ "line": 432
21539
21539
  },
21540
21540
  "name": "metricPackageVersionAge",
21541
21541
  "parameters": [
@@ -21560,7 +21560,7 @@
21560
21560
  },
21561
21561
  "locationInModule": {
21562
21562
  "filename": "src/package-sources/npmjs.ts",
21563
- "line": 434
21563
+ "line": 445
21564
21564
  },
21565
21565
  "name": "metricPackageVersionCount",
21566
21566
  "parameters": [
@@ -21585,7 +21585,7 @@
21585
21585
  },
21586
21586
  "locationInModule": {
21587
21587
  "filename": "src/package-sources/npmjs.ts",
21588
- "line": 447
21588
+ "line": 458
21589
21589
  },
21590
21590
  "name": "metricRelevantPackageVersions",
21591
21591
  "parameters": [
@@ -21610,7 +21610,7 @@
21610
21610
  },
21611
21611
  "locationInModule": {
21612
21612
  "filename": "src/package-sources/npmjs.ts",
21613
- "line": 461
21613
+ "line": 472
21614
21614
  },
21615
21615
  "name": "metricRemainingTime",
21616
21616
  "parameters": [
@@ -21635,7 +21635,7 @@
21635
21635
  },
21636
21636
  "locationInModule": {
21637
21637
  "filename": "src/package-sources/npmjs.ts",
21638
- "line": 475
21638
+ "line": 486
21639
21639
  },
21640
21640
  "name": "metricUnprocessableEntity",
21641
21641
  "parameters": [
@@ -21682,7 +21682,7 @@
21682
21682
  "immutable": true,
21683
21683
  "locationInModule": {
21684
21684
  "filename": "src/package-sources/npmjs.ts",
21685
- "line": 103
21685
+ "line": 113
21686
21686
  },
21687
21687
  "name": "alarmSeverities",
21688
21688
  "optional": true,
@@ -21690,6 +21690,25 @@
21690
21690
  "fqn": "construct-hub.AlarmSeverities"
21691
21691
  }
21692
21692
  },
21693
+ {
21694
+ "abstract": true,
21695
+ "docs": {
21696
+ "default": "Duration.days(1)",
21697
+ "remarks": "If exceeded, an alarm will fire indicating the\ncanary package may have stopped publishing, which would leave the SLA\nalarm blind.",
21698
+ "stability": "experimental",
21699
+ "summary": "The maximum amount of time the canary package is expected to go without publishing a new version."
21700
+ },
21701
+ "immutable": true,
21702
+ "locationInModule": {
21703
+ "filename": "src/package-sources/npmjs.ts",
21704
+ "line": 108
21705
+ },
21706
+ "name": "canaryMaxStale",
21707
+ "optional": true,
21708
+ "type": {
21709
+ "fqn": "aws-cdk-lib.Duration"
21710
+ }
21711
+ },
21693
21712
  {
21694
21713
  "abstract": true,
21695
21714
  "docs": {
@@ -21767,6 +21786,6 @@
21767
21786
  "symbolId": "src/package-sources/npmjs:NpmJsProps"
21768
21787
  }
21769
21788
  },
21770
- "version": "0.4.475",
21771
- "fingerprint": "nhyjtwQdSWWZHpPmMYT3FC3cO6zKE1YfKvJ5g5drL1U="
21789
+ "version": "0.4.476",
21790
+ "fingerprint": "jhowcy6BiF/TVpvUne+jHop1qNglr8RodExOOBSq61Y="
21772
21791
  }
package/.jsii.tabl.json CHANGED
@@ -1 +1 @@
1
- {"version":"2","toolVersion":"5.9.37","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,"211":1,"215":3,"244":2,"245":1,"261":2,"262":2,"273":2,"274":2,"276":2,"277":3,"308":1},"fqnsFingerprint":"4801710805d0915a09841140781ba23dac975723bde81fae8d61f4670d173233"},"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,"210":1,"211":4,"212":3,"215":6,"244":3,"245":1,"261":3,"262":3,"273":3,"274":3,"275":1,"276":2,"277":4,"304":3,"305":1,"308":1},"fqnsFingerprint":"bea65abe16cbe2fd18c579e2ed5e23a42a3c460b9e82225e1ddf2a8a9c2913a5"},"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,"210":1,"211":4,"215":3,"244":2,"245":1,"261":2,"262":2,"273":2,"274":2,"276":2,"277":3,"304":6,"308":1},"fqnsFingerprint":"f9989debbe45e35056eaec21a80f7bcfb683230f32a0df3078617a7b1a31674d"},"4d197b3af4e5af3c177e46123bb5bc4475ca36b348d16ac0159ad83618562f7c":{"translations":{"python":{"source":"from construct_hub import DomainRedirectSource\nimport 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,"210":1,"211":3,"212":2,"214":1,"215":1,"244":1,"245":1,"261":1,"262":1,"273":1,"274":1,"275":1,"304":4,"308":1},"fqnsFingerprint":"85f0b39fa842493130538de19e6cef7dde169554f738c87a1a97c66cbf7498c8"},"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,"210":1,"211":3,"212":2,"214":1,"215":4,"244":2,"245":1,"261":2,"262":2,"273":3,"274":3,"275":1,"276":2,"277":5,"304":4,"308":1},"fqnsFingerprint":"6f5d919e357d0547f7be89f3389b77b6a95ee65fff855d04ca7198c71bc15d5b"},"e78bdd3f6618080d2d205f53de8bfbcd0ea2a0baeb0c4388572e52231545ee68":{"translations":{"python":{"source":"from construct_hub import PackageTag, Keyword, Highlight\nConstructHub(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,"210":1,"211":4,"212":2,"214":2,"215":1,"245":1,"304":9},"fqnsFingerprint":"2705ec1f4f311fd2751c109246ffdb6da0ee12c531cdf2fa75fbbf9a87621f53"},"dadbf82a659becce57c566dbc5c0d7a91712450bc8ce2fffad6a1ea87476741c":{"translations":{"python":{"source":"from construct_hub import PackageTag, SearchFilter, PackageTag, SearchFilter\nauthors_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,"210":1,"211":6,"212":4,"214":4,"215":2,"244":2,"245":1,"261":2,"262":2,"304":14},"fqnsFingerprint":"ceb2b505f10018e4ddf534001e3c302c4ddc708f3bc47fab1d218ac150d25c83"},"e0dd3e5b738240f26f98ed431cfb14b215241c724e0957fe0ddc33d74164d53c":{"translations":{"python":{"source":"from construct_hub import PackageTag, Keyword\nConstructHub(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,"210":1,"211":3,"212":5,"214":5,"215":1,"245":1,"304":6},"fqnsFingerprint":"7ca1d8d65f8a62b5f69deaa08d764f7bec2679b7d2a6b6df00a0ca5a0e92e899"},"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,"212":2,"214":2,"245":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,"211":1,"212":4,"214":4,"245":2,"304":2},"fqnsFingerprint":"8a39e20c1f736f1f7df2eab53d028b6462b3b2069aa97b45d97fce44e3088e5b"},"d5eba64f81f60d90c405b4259df295944332dc664fb3b64c44d9976aa3dd3aff":{"translations":{"python":{"source":"from construct_hub import PackageLinkConfig, PackageLinkConfig\nConstructHub(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,"210":2,"211":3,"215":1,"245":1,"304":7},"fqnsFingerprint":"adbd40a1895e66b8802e2059e751c3510f8b409e7c7b9914e2d394a3d83e66a6"},"b5216fc62f03b6fe1438a302d0375c35f0ecd730f3606dae58919ea52374ed91":{"translations":{"python":{"source":"from construct_hub import FeedConfiguration\nConstructHub(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,"211":2,"212":2,"214":1,"215":1,"245":1,"304":4},"fqnsFingerprint":"ffb7133a62b0a8cdd764522ab4eb727e162caeb2586dd48626adbb73273e4797"},"a7a46b5b6e6ba5c8ed9306cc089dcbb161c9550c9296be34309e708257f1f622":{"translations":{"python":{"source":"from construct_hub import FeaturedPackages, FeaturedPackagesSection, FeaturedPackagesSection, FeaturedPackagesDetail, FeaturedPackagesDetail, FeaturedPackagesDetail, FeaturedPackagesDetail\nConstructHub(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,"210":2,"211":8,"215":1,"245":1,"304":12},"fqnsFingerprint":"9cd72900f72580ae7033048ddd5cd5765e409a634253491ab09cd7cb051f5efe"},"8ff5b711c8eaa11aeba183a5910aafb33b9250d444225e98bbf647f0f6ba12bf":{"translations":{"python":{"source":"from construct_hub import Category, Category, Category\nConstructHub(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,"210":1,"211":4,"215":1,"245":1,"304":7},"fqnsFingerprint":"adbd40a1895e66b8802e2059e751c3510f8b409e7c7b9914e2d394a3d83e66a6"},"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,"245":1},"fqnsFingerprint":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}}}
1
+ {"version":"2","toolVersion":"5.9.37","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,"211":1,"215":3,"244":2,"245":1,"261":2,"262":2,"273":2,"274":2,"276":2,"277":3,"308":1},"fqnsFingerprint":"4801710805d0915a09841140781ba23dac975723bde81fae8d61f4670d173233"},"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,"210":1,"211":4,"212":3,"215":6,"244":3,"245":1,"261":3,"262":3,"273":3,"274":3,"275":1,"276":2,"277":4,"304":3,"305":1,"308":1},"fqnsFingerprint":"e1d5a970a8eac30ae7ab0d770f586b14aefc0ef0d65917048ca3546acf692430"},"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,"210":1,"211":4,"215":3,"244":2,"245":1,"261":2,"262":2,"273":2,"274":2,"276":2,"277":3,"304":6,"308":1},"fqnsFingerprint":"f9989debbe45e35056eaec21a80f7bcfb683230f32a0df3078617a7b1a31674d"},"4d197b3af4e5af3c177e46123bb5bc4475ca36b348d16ac0159ad83618562f7c":{"translations":{"python":{"source":"from construct_hub import DomainRedirectSource\nimport 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,"210":1,"211":3,"212":2,"214":1,"215":1,"244":1,"245":1,"261":1,"262":1,"273":1,"274":1,"275":1,"304":4,"308":1},"fqnsFingerprint":"85f0b39fa842493130538de19e6cef7dde169554f738c87a1a97c66cbf7498c8"},"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,"210":1,"211":3,"212":2,"214":1,"215":4,"244":2,"245":1,"261":2,"262":2,"273":3,"274":3,"275":1,"276":2,"277":5,"304":4,"308":1},"fqnsFingerprint":"7b65af5540a51dc5cc41288c0cf9692d4084ff7a8c83b243bf3a48616849ab8f"},"e78bdd3f6618080d2d205f53de8bfbcd0ea2a0baeb0c4388572e52231545ee68":{"translations":{"python":{"source":"from construct_hub import PackageTag, Keyword, Highlight\nConstructHub(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,"210":1,"211":4,"212":2,"214":2,"215":1,"245":1,"304":9},"fqnsFingerprint":"2705ec1f4f311fd2751c109246ffdb6da0ee12c531cdf2fa75fbbf9a87621f53"},"dadbf82a659becce57c566dbc5c0d7a91712450bc8ce2fffad6a1ea87476741c":{"translations":{"python":{"source":"from construct_hub import PackageTag, SearchFilter, PackageTag, SearchFilter\nauthors_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,"210":1,"211":6,"212":4,"214":4,"215":2,"244":2,"245":1,"261":2,"262":2,"304":14},"fqnsFingerprint":"ceb2b505f10018e4ddf534001e3c302c4ddc708f3bc47fab1d218ac150d25c83"},"e0dd3e5b738240f26f98ed431cfb14b215241c724e0957fe0ddc33d74164d53c":{"translations":{"python":{"source":"from construct_hub import PackageTag, Keyword\nConstructHub(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,"210":1,"211":3,"212":5,"214":5,"215":1,"245":1,"304":6},"fqnsFingerprint":"7ca1d8d65f8a62b5f69deaa08d764f7bec2679b7d2a6b6df00a0ca5a0e92e899"},"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,"212":2,"214":2,"245":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,"211":1,"212":4,"214":4,"245":2,"304":2},"fqnsFingerprint":"8a39e20c1f736f1f7df2eab53d028b6462b3b2069aa97b45d97fce44e3088e5b"},"d5eba64f81f60d90c405b4259df295944332dc664fb3b64c44d9976aa3dd3aff":{"translations":{"python":{"source":"from construct_hub import PackageLinkConfig, PackageLinkConfig\nConstructHub(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,"210":2,"211":3,"215":1,"245":1,"304":7},"fqnsFingerprint":"adbd40a1895e66b8802e2059e751c3510f8b409e7c7b9914e2d394a3d83e66a6"},"b5216fc62f03b6fe1438a302d0375c35f0ecd730f3606dae58919ea52374ed91":{"translations":{"python":{"source":"from construct_hub import FeedConfiguration\nConstructHub(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,"211":2,"212":2,"214":1,"215":1,"245":1,"304":4},"fqnsFingerprint":"ffb7133a62b0a8cdd764522ab4eb727e162caeb2586dd48626adbb73273e4797"},"a7a46b5b6e6ba5c8ed9306cc089dcbb161c9550c9296be34309e708257f1f622":{"translations":{"python":{"source":"from construct_hub import FeaturedPackages, FeaturedPackagesSection, FeaturedPackagesSection, FeaturedPackagesDetail, FeaturedPackagesDetail, FeaturedPackagesDetail, FeaturedPackagesDetail\nConstructHub(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,"210":2,"211":8,"215":1,"245":1,"304":12},"fqnsFingerprint":"9cd72900f72580ae7033048ddd5cd5765e409a634253491ab09cd7cb051f5efe"},"8ff5b711c8eaa11aeba183a5910aafb33b9250d444225e98bbf647f0f6ba12bf":{"translations":{"python":{"source":"from construct_hub import Category, Category, Category\nConstructHub(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,"210":1,"211":4,"215":1,"245":1,"304":7},"fqnsFingerprint":"adbd40a1895e66b8802e2059e751c3510f8b409e7c7b9914e2d394a3d83e66a6"},"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,"245":1},"fqnsFingerprint":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}}}
package/API.md CHANGED
@@ -1710,6 +1710,7 @@ const npmJsProps: sources.NpmJsProps = { ... }
1710
1710
  | **Name** | **Type** | **Description** |
1711
1711
  | --- | --- | --- |
1712
1712
  | <code><a href="#construct-hub.sources.NpmJsProps.property.alarmSeverities">alarmSeverities</a></code> | <code><a href="#construct-hub.AlarmSeverities">AlarmSeverities</a></code> | Configure alarm severities. |
1713
+ | <code><a href="#construct-hub.sources.NpmJsProps.property.canaryMaxStale">canaryMaxStale</a></code> | <code>aws-cdk-lib.Duration</code> | The maximum amount of time the canary package is expected to go without publishing a new version. |
1713
1714
  | <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`. |
1714
1715
  | <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. |
1715
1716
  | <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. |
@@ -1729,6 +1730,23 @@ Configure alarm severities.
1729
1730
 
1730
1731
  ---
1731
1732
 
1733
+ ##### `canaryMaxStale`<sup>Optional</sup> <a name="canaryMaxStale" id="construct-hub.sources.NpmJsProps.property.canaryMaxStale"></a>
1734
+
1735
+ ```typescript
1736
+ public readonly canaryMaxStale: Duration;
1737
+ ```
1738
+
1739
+ - *Type:* aws-cdk-lib.Duration
1740
+ - *Default:* Duration.days(1)
1741
+
1742
+ The maximum amount of time the canary package is expected to go without publishing a new version.
1743
+
1744
+ If exceeded, an alarm will fire indicating the
1745
+ canary package may have stopped publishing, which would leave the SLA
1746
+ alarm blind.
1747
+
1748
+ ---
1749
+
1732
1750
  ##### `canaryPackage`<sup>Optional</sup> <a name="canaryPackage" id="construct-hub.sources.NpmJsProps.property.canaryPackage"></a>
1733
1751
 
1734
1752
  ```typescript
@@ -821,6 +821,32 @@ to determine what is happening and resolve the problem.
821
821
  Once the canary starts running normally again, the alarm will clear itself
822
822
  without requiring any further intervention.
823
823
 
824
+ ### `ConstructHub/Sources/NpmJs/Canary/StaleCanaryPackage`
825
+
826
+ #### Description
827
+
828
+ This alarm fires when the canary package (by default, `construct-hub-probe`) has
829
+ not published a new version to npm within the configured staleness threshold (by
830
+ default, 1 day). When the canary package stops publishing, the SLA alarm becomes
831
+ blind — no new versions flow through the system, so SLA breaches cannot be
832
+ detected.
833
+
834
+ #### Investigation
835
+
836
+ 1. Check whether the canary package is still being published to npm. Visit the
837
+ package page on `npmjs.com` and verify recent publish activity.
838
+ 2. If the package is not being published its likely that the publishing mechanism
839
+ is broken.
840
+ 2. If the package is being published but the metric is still high, the canary
841
+ Lambda may not be running or may be failing to fetch the latest version from
842
+ the npm registry. Check the canary Lambda logs for errors.
843
+ 3. Review the `TimeSinceLastPublish` metric in the `ConstructHub/PackageCanary`
844
+ CloudWatch namespace to see the trend.
845
+
846
+ #### Resolution
847
+
848
+ The alarm will clear automatically once a new version is published and the canary picks it up.
849
+
824
850
  ### `ConstructHub/PackageStats/Failures`
825
851
 
826
852
  #### Description
@@ -412,7 +412,7 @@ class ConstructHub extends constructs_1.Construct {
412
412
  }
413
413
  exports.ConstructHub = ConstructHub;
414
414
  _a = JSII_RTTI_SYMBOL_1;
415
- ConstructHub[_a] = { fqn: "construct-hub.ConstructHub", version: "0.4.475" };
415
+ ConstructHub[_a] = { fqn: "construct-hub.ConstructHub", version: "0.4.476" };
416
416
  /**
417
417
  * How possibly risky operations (such as doc-generation, which requires
418
418
  * installing the indexed packages in order to trans-literate sample code) are