Skip to content

DeliverConfigSnapshot

Source: src/AWS/Config/DeliverConfigSnapshot.ts

Runtime binding for config:DeliverConfigSnapshot — trigger an on-demand delivery of a configuration snapshot to the bound DeliveryChannel’s S3 bucket; the channel name is injected automatically. Requires a running configuration recorder.

Provide Config.DeliverConfigSnapshotHttp on the hosting Lambda Function to satisfy the requirement.

// init — grants config:DeliverConfigSnapshot
const deliverSnapshot = yield* AWS.Config.DeliverConfigSnapshot(channel);
// runtime
const result = yield* deliverSnapshot();
console.log(result.configSnapshotId);