LoginSignup
0
0
お題は不問!Qiita Engineer Festa 2023で記事投稿!

AWS EventBridge AppFlowの実行レポートを取得するJSONパターン

Posted at

JSONパターン

{
  "source": ["aws.appflow"],
  "detail-type": ["AppFlow End Flow Run Report"],
  "detail": {
    "flow-name": [{
      "prefix": "lambda-catch-flow"
    }]
  }
}

当該イベントをlambdadで取得して出力

2023-06-23T12:24:02.359Z	xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx	INFO	{
  version: '0',
  id: 'yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy',
  'detail-type': 'AppFlow End Flow Run Report',
  source: 'aws.appflow',
  account: '000000000000',
  time: '2023-06-23T12:24:01Z',
  region: 'ap-northeast-1',
  resources: [ 'zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz' ],
  detail: {
    'flow-name': 'lambda-catch-flow',
    'created-by': 'arn:aws:iam::000000000000:user/shun_okawa',
    'flow-arn': 'arn:aws:appflow:ap-northeast-1:000000000000:flow/lambda-catch-flow',
    source: 'S3',
    destination: 'S3',
    'source-object': 's3://miriwo-appflow-test/in',
    'destination-object': 's3://miriwo-appflow-test/out',
    'trigger-type': 'ONDEMAND',
    'num-of-records-processed': '4',
    'execution-id': 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa',
    'num-of-records-filtered': '0',
    'start-time': '2023-06-23T12:23:53.893Z[UTC]',
    'num-of-documents-processed': '0',
    'end-time': '2023-06-23T12:24:01.628Z[UTC]',
    'num-of-record-failures': '0',
    'data-processed': '1032',
    status: 'Execution Successful'
  }
}

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0