Commit 69442a8
authored
feat(mixins-preview): vended log deliveries (#36138)
### Reason for this change
Utility classes that will be needed for the VendedLogs Mixin.
### Description of changes
Implements 4 classes, one for each destination resource Vended Logs can delivery data to. These classes are instantiated with the resource they are affiliated with and all have a bind method that takes care of setting up each deliveryDestination and the delivery connection between the source of the logs and the destination where logs are consumed.
We are using a bind method to set up the delivery and the deliveryDestination instead of having these be set up in the constructor because of complications surrounding the lack of a resource in XRays.
### Describe any new or updated permissions being added
**S3:**
Adds the permissions defined here to an existing bucket policy or creates a bucket policy on the current bucket with these permissions: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-infrastructure-S3.html
Adds different permissions based on whether the service sending logs uses V1 or V2 permissions.
**Firehose:**
No new permissions. Adds tag to each Kinesis Firehose DeliveryStream that enables `LogDelivery`.
**Cloudwatch:**
Adds these permissions to existing Cloudwatch Logs policy or creates a new one with these permissions: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-infrastructure-CWL.html
Each Log Group that is involved with Vended Logs will need these permissions.
**XRays:**
Adds permissions specified here to existing XRay policy or creates a new one if one doesn't exist: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-infrastructure-V2-XRayTraces.html
### Description of how you validated changes
Extensive unit tests. Integ tests to follow.
### 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 3ef337d commit 69442a8
File tree
277 files changed
+1659
-8
lines changed- packages/@aws-cdk/mixins-preview
- lib
- core
- mixins/private
- 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
- scripts
- test
- core
- services/aws-logs
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
277 files changed
+1659
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
22 | 29 | | |
23 | 30 | | |
24 | 31 | | |
| |||
107 | 114 | | |
108 | 115 | | |
109 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
Lines changed: 47 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments