// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`dataLakeExporter 1`] = ` Object { "Conditions": Object { "AwsCdkKinesisEncryptedStreamsUnsupportedRegions": Object { "Fn::Or": Array [ Object { "Fn::Equals": Array [ Object { "Ref": "AWS::Region", }, "cn-north-1", ], }, Object { "Fn::Equals": Array [ Object { "Ref": "AWS::Region", }, "cn-northwest-1", ], }, ], }, }, "Description": "undefined (uksb-1sljh1bja)", "Parameters": Object { "BootstrapVersion": Object { "Default": "/cdk-bootstrap/hnb659fds/version", "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]", "Type": "AWS::SSM::Parameter::Value", }, }, "Resources": Object { "Bucket83908E77": Object { "DeletionPolicy": "Retain", "Type": "AWS::S3::Bucket", "UpdateReplacePolicy": "Retain", }, "testDB74E9B281": Object { "Properties": Object { "CatalogId": Object { "Ref": "AWS::AccountId", }, "DatabaseInput": Object { "Name": "test_db", }, }, "Type": "AWS::Glue::Database", }, "testExporterdataLakeExporter51BD8EA9": Object { "DependsOn": Array [ "testExporterdataLakeExporterRoleDefaultPolicy3EEE6D56", ], "Properties": Object { "DeliveryStreamType": "KinesisStreamAsSource", "ExtendedS3DestinationConfiguration": Object { "BucketARN": Object { "Fn::GetAtt": Array [ "Bucket83908E77", "Arn", ], }, "BufferingHints": Object { "IntervalInSeconds": 900, "SizeInMBs": 128, }, "CloudWatchLoggingOptions": Object { "LogGroupName": Object { "Ref": "testExporterdataLakeExporterLogGroup610F71C7", }, "LogStreamName": Object { "Ref": "testExporterdataLakeExporterLogStreamF2BE8809", }, }, "CompressionFormat": "UNCOMPRESSED", "DataFormatConversionConfiguration": Object { "Enabled": true, "InputFormatConfiguration": Object { "Deserializer": Object { "OpenXJsonSerDe": Object {}, }, }, "OutputFormatConfiguration": Object { "Serializer": Object { "ParquetSerDe": Object {}, }, }, "SchemaConfiguration": Object { "CatalogId": Object { "Ref": "AWS::AccountId", }, "DatabaseName": Object { "Ref": "testDB74E9B281", }, "Region": Object { "Ref": "AWS::Region", }, "RoleARN": Object { "Fn::GetAtt": Array [ "testExporterdataLakeExporterRole1BEE617B", "Arn", ], }, "TableName": Object { "Ref": "testTable12C06BD8", }, }, }, "ErrorOutputPrefix": "test-error", "Prefix": "test", "RoleARN": Object { "Fn::GetAtt": Array [ "testExporterdataLakeExporterRole1BEE617B", "Arn", ], }, "S3BackupMode": "Disabled", }, "KinesisStreamSourceConfiguration": Object { "KinesisStreamARN": Object { "Fn::GetAtt": Array [ "testStream8BCA7523", "Arn", ], }, "RoleARN": Object { "Fn::GetAtt": Array [ "testExporterdataLakeExporterRole1BEE617B", "Arn", ], }, }, }, "Type": "AWS::KinesisFirehose::DeliveryStream", }, "testExporterdataLakeExporterLogGroup610F71C7": Object { "DeletionPolicy": "Delete", "Properties": Object { "LogGroupName": "/aws/data-lake-exporter/", "RetentionInDays": 7, }, "Type": "AWS::Logs::LogGroup", "UpdateReplacePolicy": "Delete", }, "testExporterdataLakeExporterLogStreamF2BE8809": Object { "DeletionPolicy": "Delete", "Properties": Object { "LogGroupName": Object { "Ref": "testExporterdataLakeExporterLogGroup610F71C7", }, "LogStreamName": "firehose-stream", }, "Type": "AWS::Logs::LogStream", "UpdateReplacePolicy": "Delete", }, "testExporterdataLakeExporterRole1BEE617B": Object { "DependsOn": Array [ "testExportermanagedPolicyKinesisFirehoseE66FDFBA", ], "Properties": Object { "AssumeRolePolicyDocument": Object { "Statement": Array [ Object { "Action": "sts:AssumeRole", "Effect": "Allow", "Principal": Object { "Service": "firehose.amazonaws.com", }, }, ], "Version": "2012-10-17", }, "ManagedPolicyArns": Array [ Object { "Ref": "testExportermanagedPolicyKinesisFirehoseE66FDFBA", }, ], }, "Type": "AWS::IAM::Role", }, "testExporterdataLakeExporterRoleDefaultPolicy3EEE6D56": Object { "DependsOn": Array [ "testExportermanagedPolicyKinesisFirehoseE66FDFBA", ], "Properties": Object { "PolicyDocument": Object { "Statement": Array [ Object { "Action": Array [ "s3:DeleteObject*", "s3:PutObject", "s3:PutObjectLegalHold", "s3:PutObjectRetention", "s3:PutObjectTagging", "s3:PutObjectVersionTagging", "s3:Abort*", ], "Effect": "Allow", "Resource": Array [ Object { "Fn::GetAtt": Array [ "Bucket83908E77", "Arn", ], }, Object { "Fn::Join": Array [ "", Array [ Object { "Fn::GetAtt": Array [ "Bucket83908E77", "Arn", ], }, "/*", ], ], }, ], }, Object { "Action": Array [ "kinesis:DescribeStreamSummary", "kinesis:GetRecords", "kinesis:GetShardIterator", "kinesis:ListShards", "kinesis:SubscribeToShard", "kinesis:DescribeStream", "kinesis:ListStreams", "kinesis:DescribeStreamConsumer", ], "Effect": "Allow", "Resource": Object { "Fn::GetAtt": Array [ "testStream8BCA7523", "Arn", ], }, }, Object { "Action": Array [ "glue:BatchGetPartition", "glue:GetPartition", "glue:GetPartitions", "glue:GetTable", "glue:GetTables", "glue:GetTableVersion", "glue:GetTableVersions", ], "Effect": "Allow", "Resource": Object { "Fn::Join": Array [ "", Array [ "arn:", Object { "Ref": "AWS::Partition", }, ":glue:", Object { "Ref": "AWS::Region", }, ":", Object { "Ref": "AWS::AccountId", }, ":table/", Object { "Ref": "testDB74E9B281", }, "/", Object { "Ref": "testTable12C06BD8", }, ], ], }, }, Object { "Action": Array [ "s3:GetObject*", "s3:GetBucket*", "s3:List*", ], "Effect": "Allow", "Resource": Array [ Object { "Fn::GetAtt": Array [ "testTableBucket030117E6", "Arn", ], }, Object { "Fn::Join": Array [ "", Array [ Object { "Fn::GetAtt": Array [ "testTableBucket030117E6", "Arn", ], }, "/*", ], ], }, ], }, Object { "Action": "glue:GetTableVersions", "Effect": "Allow", "Resource": Array [ Object { "Fn::Join": Array [ "", Array [ "arn:", Object { "Ref": "AWS::Partition", }, ":glue:", Object { "Ref": "AWS::Region", }, ":", Object { "Ref": "AWS::AccountId", }, ":table/", Object { "Ref": "testDB74E9B281", }, "/", Object { "Ref": "testTable12C06BD8", }, ], ], }, Object { "Fn::Join": Array [ "", Array [ "arn:", Object { "Ref": "AWS::Partition", }, ":glue:", Object { "Ref": "AWS::Region", }, ":", Object { "Ref": "AWS::AccountId", }, ":catalog", ], ], }, Object { "Fn::Join": Array [ "", Array [ "arn:", Object { "Ref": "AWS::Partition", }, ":glue:", Object { "Ref": "AWS::Region", }, ":", Object { "Ref": "AWS::AccountId", }, ":database/", Object { "Ref": "testDB74E9B281", }, ], ], }, ], }, ], "Version": "2012-10-17", }, "PolicyName": "testExporterdataLakeExporterRoleDefaultPolicy3EEE6D56", "Roles": Array [ Object { "Ref": "testExporterdataLakeExporterRole1BEE617B", }, ], }, "Type": "AWS::IAM::Policy", }, "testExportermanagedPolicyKinesisFirehoseE66FDFBA": Object { "Properties": Object { "Description": "", "Path": "/", "PolicyDocument": Object { "Statement": Array [ Object { "Action": "logs:PutLogEvents", "Effect": "Allow", "Resource": Object { "Fn::Join": Array [ "", Array [ Object { "Fn::GetAtt": Array [ "testExporterdataLakeExporterLogGroup610F71C7", "Arn", ], }, ":log-stream:", Object { "Ref": "testExporterdataLakeExporterLogStreamF2BE8809", }, ], ], }, }, ], "Version": "2012-10-17", }, }, "Type": "AWS::IAM::ManagedPolicy", }, "testStream8BCA7523": Object { "Properties": Object { "RetentionPeriodHours": 24, "ShardCount": 1, "StreamEncryption": Object { "Fn::If": Array [ "AwsCdkKinesisEncryptedStreamsUnsupportedRegions", Object { "Ref": "AWS::NoValue", }, Object { "EncryptionType": "KMS", "KeyId": "alias/aws/kinesis", }, ], }, }, "Type": "AWS::Kinesis::Stream", }, "testTable12C06BD8": Object { "Properties": Object { "CatalogId": Object { "Ref": "AWS::AccountId", }, "DatabaseName": Object { "Ref": "testDB74E9B281", }, "TableInput": Object { "Description": "test_table generated by CDK", "Name": "test_table", "Parameters": Object { "classification": "json", "has_encrypted_data": true, }, "StorageDescriptor": Object { "Columns": Array [ Object { "Name": "a", "Type": "STRING", }, ], "Compressed": false, "InputFormat": "org.apache.hadoop.mapred.TextInputFormat", "Location": Object { "Fn::Join": Array [ "", Array [ "s3://", Object { "Ref": "testTableBucket030117E6", }, "/", ], ], }, "OutputFormat": "org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat", "SerdeInfo": Object { "SerializationLibrary": "org.openx.data.jsonserde.JsonSerDe", }, "StoredAsSubDirectories": false, }, "TableType": "EXTERNAL_TABLE", }, }, "Type": "AWS::Glue::Table", }, "testTableBucket030117E6": Object { "DeletionPolicy": "Retain", "Properties": Object { "BucketEncryption": Object { "ServerSideEncryptionConfiguration": Array [ Object { "ServerSideEncryptionByDefault": Object { "SSEAlgorithm": "AES256", }, }, ], }, }, "Type": "AWS::S3::Bucket", "UpdateReplacePolicy": "Retain", }, }, "Rules": Object { "CheckBootstrapVersion": Object { "Assertions": Array [ Object { "Assert": Object { "Fn::Not": Array [ Object { "Fn::Contains": Array [ Array [ "1", "2", "3", "4", "5", ], Object { "Ref": "BootstrapVersion", }, ], }, ], }, "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI.", }, ], }, }, } `;