Commit 6607ce9
authored
feat(mixins-preview): adds LogDelivery Mixins for 47 resources (#36158)
### Reason for this change
Adds vended logs delivery for supported resources to various destinations:
```typescript
import '@aws-cdk/mixins-preview/with';
import * as cloudfrontMixins from '@aws-cdk/mixins-preview/aws_cloudfront/mixins';
// Create CloudFront distribution
declare const bucket: s3.Bucket;
const distribution = new cloudfront.Distribution(scope, 'Distribution', {
defaultBehavior: {
origin: origins.S3BucketOrigin.withOriginAccessControl(bucket),
},
});
// Create log destination
const logGroup = new logs.LogGroup(scope, 'DeliveryLogGroup');
// Configure log delivery using the mixin
distribution
.with(cloudfrontMixins.CfnDistributionLogsMixin.CONNECTION_LOGS.toLogGroup(logGroup));
```
### Description of changes
Adds codegen for VendedLogs Mixins classes.
Creates a VendedLogs Mixin class for each resource that supports vended logs and creates helper classes for each log type a resource supports.
### Description of how you validated changes
snapshot and integ tests
### Checklist
- [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*1 parent d8c324a commit 6607ce9
File tree
295 files changed
+2398
-357
lines changed- packages/@aws-cdk/mixins-preview
- lib/services
- alexa-ask
- aws-accessanalyzer
- aws-acmpca
- aws-aiops
- aws-amazonmq
- aws-amplifyuibuilder
- aws-amplify
- aws-apigatewayv2
- aws-apigateway
- aws-appconfig
- aws-appflow
- aws-appintegrations
- aws-applicationautoscaling
- aws-applicationinsights
- aws-applicationsignals
- aws-appmesh
- aws-apprunner
- aws-appstream
- aws-appsync
- aws-apptest
- aws-aps
- aws-arcregionswitch
- aws-arczonalshift
- aws-athena
- aws-auditmanager
- aws-autoscalingplans
- aws-autoscaling
- aws-b2bi
- aws-backupgateway
- aws-backup
- aws-batch
- aws-bcmdataexports
- aws-bedrockagentcore
- aws-bedrock
- aws-billingconductor
- aws-billing
- aws-budgets
- aws-cassandra
- aws-certificatemanager
- aws-ce
- aws-chatbot
- aws-cleanroomsml
- aws-cleanrooms
- aws-cloud9
- aws-cloudformation
- aws-cloudfront
- aws-cloudtrail
- aws-cloudwatch
- aws-codeartifact
- aws-codebuild
- aws-codecommit
- aws-codeconnections
- aws-codedeploy
- aws-codeguruprofiler
- aws-codegurureviewer
- aws-codepipeline
- aws-codestarconnections
- aws-codestarnotifications
- aws-codestar
- aws-cognito
- aws-comprehend
- aws-config
- aws-connectcampaignsv2
- aws-connectcampaigns
- aws-connect
- aws-controltower
- aws-cur
- aws-customerprofiles
- aws-databrew
- aws-datapipeline
- aws-datasync
- aws-datazone
- aws-dax
- aws-deadline
- aws-detective
- aws-devicefarm
- aws-devopsguru
- aws-directoryservice
- aws-dlm
- aws-dms
- aws-docdbelastic
- aws-docdb
- aws-dsql
- aws-dynamodb
- aws-ec2
- aws-ecr
- aws-ecs
- aws-efs
- aws-eks
- aws-elasticache
- aws-elasticbeanstalk
- aws-elasticloadbalancingv2
- aws-elasticloadbalancing
- aws-elasticsearch
- aws-emrcontainers
- aws-emrserverless
- aws-emr
- aws-entityresolution
- aws-eventschemas
- aws-events
- aws-evidently
- aws-evs
- aws-finspace
- aws-fis
- aws-fms
- aws-forecast
- aws-frauddetector
- aws-fsx
- aws-gameliftstreams
- aws-gamelift
- aws-globalaccelerator
- aws-glue
- aws-grafana
- aws-greengrassv2
- aws-greengrass
- aws-groundstation
- aws-guardduty
- aws-healthimaging
- aws-healthlake
- aws-iam
- aws-identitystore
- aws-imagebuilder
- aws-inspectorv2
- aws-inspector
- aws-internetmonitor
- aws-invoicing
- aws-iotanalytics
- aws-iotcoredeviceadvisor
- aws-iotevents
- aws-iotfleethub
- aws-iotfleetwise
- aws-iotsitewise
- aws-iotthingsgraph
- aws-iottwinmaker
- aws-iotwireless
- aws-iot
- aws-ivschat
- aws-ivs
- aws-kafkaconnect
- aws-kendraranking
- aws-kendra
- aws-kinesisanalyticsv2
- aws-kinesisanalytics
- aws-kinesisfirehose
- aws-kinesisvideo
- aws-kinesis
- aws-kms
- aws-lakeformation
- aws-lambda
- aws-launchwizard
- aws-lex
- aws-licensemanager
- aws-lightsail
- aws-location
- aws-logs
- aws-lookoutequipment
- aws-lookoutmetrics
- aws-lookoutvision
- aws-m2
- aws-macie
- aws-managedblockchain
- aws-mediaconnect
- aws-mediaconvert
- aws-medialive
- aws-mediapackagev2
- aws-mediapackage
- aws-mediastore
- aws-mediatailor
- aws-memorydb
- aws-mpa
- aws-msk
- aws-mwaa
- aws-neptunegraph
- aws-neptune
- aws-networkfirewall
- aws-networkmanager
- aws-nimblestudio
- aws-notificationscontacts
- aws-notifications
- aws-oam
- aws-observabilityadmin
- aws-odb
- aws-omics
- aws-opensearchserverless
- aws-opensearchservice
- aws-opsworkscm
- aws-opsworks
- aws-organizations
- aws-osis
- aws-panorama
- aws-paymentcryptography
- aws-pcaconnectorad
- aws-pcaconnectorscep
- aws-pcs
- aws-personalize
- aws-pinpointemail
- aws-pinpoint
- aws-pipes
- aws-proton
- aws-qbusiness
- aws-qldb
- aws-quicksight
- aws-ram
- aws-rbin
- aws-rds
- aws-redshiftserverless
- aws-redshift
- aws-refactorspaces
- aws-rekognition
- aws-resiliencehub
- aws-resourceexplorer2
- aws-resourcegroups
- aws-robomaker
- aws-rolesanywhere
- aws-route53profiles
- aws-route53recoverycontrol
- aws-route53recoveryreadiness
- aws-route53resolver
- aws-route53
- aws-rtbfabric
- aws-rum
- aws-s3express
- aws-s3objectlambda
- aws-s3outposts
- aws-s3tables
- aws-s3vectors
- aws-s3
- aws-sagemaker
- aws-sam
- aws-scheduler
- aws-sdb
- aws-secretsmanager
- aws-securityhub
- aws-securitylake
- aws-servicecatalogappregistry
- aws-servicecatalog
- aws-servicediscovery
- aws-ses
- aws-shield
- aws-signer
- aws-simspaceweaver
- aws-smsvoice
- aws-sns
- aws-sqs
- aws-ssmcontacts
- aws-ssmguiconnect
- aws-ssmincidents
- aws-ssmquicksetup
- aws-ssm
- aws-sso
- aws-stepfunctions
- aws-supportapp
- aws-synthetics
- aws-systemsmanagersap
- aws-timestream
- aws-transfer
- aws-verifiedpermissions
- aws-voiceid
- aws-vpclattice
- aws-wafregional
- aws-wafv2
- aws-waf
- aws-wisdom
- aws-workspacesinstances
- aws-workspacesthinclient
- aws-workspacesweb
- aws-workspaces
- aws-xray
- rosetta
- scripts
- spec2logs
- spec2mixins
- test
- codegen
- __snapshots__
- services/aws-logs
- integ.delivery-mixin.js.snapshot
- asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6
- tools/@aws-cdk/spec2cdk/lib/cdk
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
295 files changed
+2398
-357
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments