1
+ {
2
+ "Resources" : {
3
+ "AwsApiCallEventBridgedescribeEventBus" : {
4
+ "Type" : " Custom::DeployAssert@SdkCallEventBridgedescribeEventBus" ,
5
+ "Properties" : {
6
+ "ServiceToken" : {
7
+ "Fn::GetAtt" : [
8
+ " SingletonFunction1488541a7b23466481b69b4408076b81HandlerCD40AE9F" ,
9
+ " Arn"
10
+ ]
11
+ },
12
+ "service" : " EventBridge" ,
13
+ "api" : " describeEventBus" ,
14
+ "flattenResponse" : " true" ,
15
+ "salt" : " 1666817700798"
16
+ },
17
+ "UpdateReplacePolicy" : " Delete" ,
18
+ "DeletionPolicy" : " Delete"
19
+ },
20
+ "AwsApiCallEventBridgedescribeEventBusAssertEqualsEventBridgedescribeEventBusB063C036" : {
21
+ "Type" : " Custom::DeployAssert@AssertEquals" ,
22
+ "Properties" : {
23
+ "ServiceToken" : {
24
+ "Fn::GetAtt" : [
25
+ " SingletonFunction1488541a7b23466481b69b4408076b81HandlerCD40AE9F" ,
26
+ " Arn"
27
+ ]
28
+ },
29
+ "actual" : {
30
+ "Fn::GetAtt" : [
31
+ " AwsApiCallEventBridgedescribeEventBus" ,
32
+ " apiCallResponse.Policy"
33
+ ]
34
+ },
35
+ "expected" : " {\" $ObjectLike\" :{\" Statement\" :{\" $ArrayWith\" :[{\" $ObjectLike\" :{\" Sid\" :{\" $StringLike\" :\" Allow-account-987654321\" },\" Principal\" :{\" AWS\" :\" arn:aws:iam::987654321:root\" },\" Resource\" :{\" $StringLike\" :\" arn:aws:events:us-east-1:12345678\" }}}]}}}" ,
36
+ "salt" : " 1666817700798"
37
+ },
38
+ "UpdateReplacePolicy" : " Delete" ,
39
+ "DeletionPolicy" : " Delete"
40
+ },
41
+ "SingletonFunction1488541a7b23466481b69b4408076b81Role37ABCE73" : {
42
+ "Type" : " AWS::IAM::Role" ,
43
+ "Properties" : {
44
+ "AssumeRolePolicyDocument" : {
45
+ "Version" : " 2012-10-17" ,
46
+ "Statement" : [
47
+ {
48
+ "Action" : " sts:AssumeRole" ,
49
+ "Effect" : " Allow" ,
50
+ "Principal" : {
51
+ "Service" : " lambda.amazonaws.com"
52
+ }
53
+ }
54
+ ]
55
+ },
56
+ "ManagedPolicyArns" : [
57
+ {
58
+ "Fn::Sub" : " arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
59
+ }
60
+ ],
61
+ "Policies" : [
62
+ {
63
+ "PolicyName" : " Inline" ,
64
+ "PolicyDocument" : {
65
+ "Version" : " 2012-10-17" ,
66
+ "Statement" : [
67
+ {
68
+ "Action" : [
69
+ " eventbridge:DescribeEventBus"
70
+ ],
71
+ "Effect" : " Allow" ,
72
+ "Resource" : [
73
+ " *"
74
+ ]
75
+ },
76
+ {
77
+ "Action" : [
78
+ " events:DescribeEventBus"
79
+ ],
80
+ "Effect" : " Allow" ,
81
+ "Resource" : [
82
+ " *"
83
+ ]
84
+ }
85
+ ]
86
+ }
87
+ }
88
+ ]
89
+ }
90
+ },
91
+ "SingletonFunction1488541a7b23466481b69b4408076b81HandlerCD40AE9F" : {
92
+ "Type" : " AWS::Lambda::Function" ,
93
+ "Properties" : {
94
+ "Runtime" : " nodejs14.x" ,
95
+ "Code" : {
96
+ "S3Bucket" : {
97
+ "Fn::Sub" : " cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
98
+ },
99
+ "S3Key" : " 2a53dc40a7dae81c8850e125ab49e5f55d80b7b8ceac86976f2a4119393cab72.zip"
100
+ },
101
+ "Timeout" : 120 ,
102
+ "Handler" : " index.handler" ,
103
+ "Role" : {
104
+ "Fn::GetAtt" : [
105
+ " SingletonFunction1488541a7b23466481b69b4408076b81Role37ABCE73" ,
106
+ " Arn"
107
+ ]
108
+ }
109
+ }
110
+ }
111
+ },
112
+ "Outputs" : {
113
+ "AssertionResultsAssertEqualsEventBridgedescribeEventBusfd3cf7d971587606ecf8442a4cb30f1b" : {
114
+ "Value" : {
115
+ "Fn::GetAtt" : [
116
+ " AwsApiCallEventBridgedescribeEventBusAssertEqualsEventBridgedescribeEventBusB063C036" ,
117
+ " data"
118
+ ]
119
+ }
120
+ }
121
+ },
122
+ "Parameters" : {
123
+ "BootstrapVersion" : {
124
+ "Type" : " AWS::SSM::Parameter::Value<String>" ,
125
+ "Default" : " /cdk-bootstrap/hnb659fds/version" ,
126
+ "Description" : " Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
127
+ }
128
+ },
129
+ "Rules" : {
130
+ "CheckBootstrapVersion" : {
131
+ "Assertions" : [
132
+ {
133
+ "Assert" : {
134
+ "Fn::Not" : [
135
+ {
136
+ "Fn::Contains" : [
137
+ [
138
+ " 1" ,
139
+ " 2" ,
140
+ " 3" ,
141
+ " 4" ,
142
+ " 5"
143
+ ],
144
+ {
145
+ "Ref" : " BootstrapVersion"
146
+ }
147
+ ]
148
+ }
149
+ ]
150
+ },
151
+ "AssertDescription" : " CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
152
+ }
153
+ ]
154
+ }
155
+ }
156
+ }
0 commit comments