// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`QS custom resource creation 1`] = ` { "Parameters": { "AssetParameters74b315508e16dff1d7bc33aaa3802917e06b160ec133077b33effdc758a6e316ArtifactHash51AAB4E4": { "Description": "Artifact hash for asset "74b315508e16dff1d7bc33aaa3802917e06b160ec133077b33effdc758a6e316"", "Type": "String", }, "AssetParameters74b315508e16dff1d7bc33aaa3802917e06b160ec133077b33effdc758a6e316S3Bucket69E383EB": { "Description": "S3 bucket for asset "74b315508e16dff1d7bc33aaa3802917e06b160ec133077b33effdc758a6e316"", "Type": "String", }, "AssetParameters74b315508e16dff1d7bc33aaa3802917e06b160ec133077b33effdc758a6e316S3VersionKeyCAFA29EC": { "Description": "S3 key for asset version "74b315508e16dff1d7bc33aaa3802917e06b160ec133077b33effdc758a6e316"", "Type": "String", }, }, "Resources": { "testQSConstructCustomResource61E8811D": { "DependsOn": [ "testQSConstructQSCustomResourcePolicy4A5596ED", "testRole836465CB", ], "Metadata": { "cfn_nag": { "rules_to_suppress": [ { "id": "W89", "reason": "This is not a rule for the general case, just for specific use cases/industries", }, { "id": "W92", "reason": "Impossible for us to define the correct concurrency for clients", }, ], }, }, "Properties": { "Code": { "S3Bucket": { "Ref": "AssetParameters74b315508e16dff1d7bc33aaa3802917e06b160ec133077b33effdc758a6e316S3Bucket69E383EB", }, "S3Key": { "Fn::Join": [ "", [ { "Fn::Select": [ 0, { "Fn::Split": [ "||", { "Ref": "AssetParameters74b315508e16dff1d7bc33aaa3802917e06b160ec133077b33effdc758a6e316S3VersionKeyCAFA29EC", }, ], }, ], }, { "Fn::Select": [ 1, { "Fn::Split": [ "||", { "Ref": "AssetParameters74b315508e16dff1d7bc33aaa3802917e06b160ec133077b33effdc758a6e316S3VersionKeyCAFA29EC", }, ], }, ], }, ], ], }, }, "Handler": "lambda_function.handler", "Role": { "Fn::GetAtt": [ "testRole836465CB", "Arn", ], }, "Runtime": "python3.8", "Timeout": 30, }, "Type": "AWS::Lambda::Function", }, "testQSConstructQSCustomResourcePolicy4A5596ED": { "Properties": { "PolicyDocument": { "Statement": [ { "Action": [ "quicksight:CreateAnalysis", "quicksight:DeleteAnalysis", "quicksight:CreateDataSet", "quicksight:DeleteDataSet", "quicksight:CreateDataSource", "quicksight:DeleteDataSource", "quicksight:Describe*", "quicksight:Get*", "quicksight:List*", "quicksight:PassDataSet", "quicksight:PassDataSource", "quicksight:RestoreAnalysis", "quicksight:SearchAnalyses", "quicksight:CreateDashboard", "quicksight:DeleteDashboard", ], "Effect": "Allow", "Resource": { "Fn::Join": [ "", [ "arn:", { "Ref": "AWS::Partition", }, ":quicksight:", { "Ref": "AWS::Region", }, ":", { "Ref": "AWS::AccountId", }, ":*/*", ], ], }, }, { "Action": "quicksight:DescribeTemplate", "Effect": "Allow", "Resource": "arn:some-parition:quicksight:some-region:fakeaccountid:template/solution_solution-name-v_1_0", }, ], "Version": "2012-10-17", }, "PolicyName": "testQSConstructQSCustomResourcePolicy4A5596ED", "Roles": [ { "Ref": "testRole836465CB", }, ], }, "Type": "AWS::IAM::Policy", }, "testQSConstructQuickSightResourcesA23CC3B0": { "DeletionPolicy": "Delete", "DependsOn": [ "testQSConstructQSCustomResourcePolicy4A5596ED", ], "Properties": { "ApplicationName": "solution-name", "LogLevel": "INFO", "QuickSightPrincipalArn": "arn:some-partition:quicksight:some-region:fakeaccountid:user/namespace/some-role/some-user", "QuickSightSourceTemplateArn": "arn:some-parition:quicksight:some-region:fakeaccountid:template/solution_solution-name-v_1_0", "Resource": "all", "ServiceToken": { "Fn::GetAtt": [ "testQSConstructCustomResource61E8811D", "Arn", ], }, "StackName": { "Ref": "AWS::StackName", }, "WorkGroupName": "testGroup", }, "Type": "Custom::QuickSightResources", "UpdateReplacePolicy": "Delete", }, "testRole836465CB": { "Properties": { "AssumeRolePolicyDocument": { "Statement": [ { "Action": "sts:AssumeRole", "Effect": "Allow", "Principal": { "Service": "lambda.amazonaws.com", }, }, ], "Version": "2012-10-17", }, }, "Type": "AWS::IAM::Role", }, }, } `;