Skip to content

Commit

Permalink
Merge pull request #299 from aws-samples/add-anonymous-tracking-code
Browse files Browse the repository at this point in the history
匿名トラッキングコードの追加
  • Loading branch information
wadabee authored Jan 29, 2024
2 parents b94251d + efa31fa commit ed8d706
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions packages/cdk/bin/generative-ai-use-cases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ if (
});
}

const anonymousUsageTracking: boolean = !!app.node.tryGetContext(
'anonymousUsageTracking'
);

const generativeAiUseCasesStack = new GenerativeAiUseCasesStack(
app,
'GenerativeAiUseCasesStack',
Expand All @@ -61,6 +65,9 @@ const generativeAiUseCasesStack = new GenerativeAiUseCasesStack(
allowedIpV4AddressRanges,
allowedIpV6AddressRanges,
allowedCountryCodes,
description: anonymousUsageTracking
? 'Generative AI Use Cases JP (uksb-1tupboc48)'
: undefined,
}
);

Expand Down
3 changes: 2 additions & 1 deletion packages/cdk/cdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"allowedIpV6AddressRanges": null,
"allowedCountryCodes": null,
"dashboard": false,
"anonymousUsageTracking": true,
"@aws-cdk/aws-lambda:recognizeLayerVersion": true,
"@aws-cdk/core:checkSecretUsage": true,
"@aws-cdk/core:target-partitions": [
Expand Down Expand Up @@ -71,4 +72,4 @@
"@aws-cdk/core:includePrefixInUniqueNameGeneration": true,
"@aws-cdk/aws-opensearchservice:enableOpensearchMultiAzWithStandby": true
}
}
}

0 comments on commit ed8d706

Please sign in to comment.