1+ {
2+ "Resources" : {
3+ "FunctionServiceRole675BB04A" : {
4+ "Type" : " AWS::IAM::Role" ,
5+ "Properties" : {
6+ "AssumeRolePolicyDocument" : {
7+ "Statement" : [
8+ {
9+ "Action" : " sts:AssumeRole" ,
10+ "Effect" : " Allow" ,
11+ "Principal" : {
12+ "Service" : " lambda.amazonaws.com"
13+ }
14+ }
15+ ],
16+ "Version" : " 2012-10-17"
17+ },
18+ "ManagedPolicyArns" : [
19+ {
20+ "Fn::Join" : [
21+ " " ,
22+ [
23+ " arn:" ,
24+ {
25+ "Ref" : " AWS::Partition"
26+ },
27+ " :iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
28+ ]
29+ ]
30+ }
31+ ]
32+ }
33+ },
34+ "Function76856677" : {
35+ "Type" : " AWS::Lambda::Function" ,
36+ "Properties" : {
37+ "Code" : {
38+ "ZipFile" : " foo"
39+ },
40+ "Handler" : " index.handler" ,
41+ "Role" : {
42+ "Fn::GetAtt" : [
43+ " FunctionServiceRole675BB04A" ,
44+ " Arn"
45+ ]
46+ },
47+ "Runtime" : " nodejs18.x"
48+ },
49+ "DependsOn" : [
50+ " FunctionServiceRole675BB04A"
51+ ]
52+ },
53+ "Role1ABCC5F0" : {
54+ "Type" : " AWS::IAM::Role" ,
55+ "Properties" : {
56+ "AssumeRolePolicyDocument" : {
57+ "Statement" : [
58+ {
59+ "Action" : " sts:AssumeRole" ,
60+ "Effect" : " Allow" ,
61+ "Principal" : {
62+ "Service" : " scheduler.amazonaws.com"
63+ }
64+ }
65+ ],
66+ "Version" : " 2012-10-17"
67+ }
68+ }
69+ },
70+ "DefaultSchedule597B0B2C" : {
71+ "Type" : " AWS::Scheduler::Schedule" ,
72+ "Properties" : {
73+ "FlexibleTimeWindow" : {
74+ "Mode" : " OFF"
75+ },
76+ "ScheduleExpression" : " rate(12 hours)" ,
77+ "State" : " ENABLED" ,
78+ "Target" : {
79+ "Arn" : {
80+ "Fn::GetAtt" : [
81+ " Function76856677" ,
82+ " Arn"
83+ ]
84+ },
85+ "RoleArn" : {
86+ "Fn::GetAtt" : [
87+ " Role1ABCC5F0" ,
88+ " Arn"
89+ ]
90+ }
91+ }
92+ }
93+ },
94+ "DisabledScheduleA1DF7F0F" : {
95+ "Type" : " AWS::Scheduler::Schedule" ,
96+ "Properties" : {
97+ "FlexibleTimeWindow" : {
98+ "Mode" : " OFF"
99+ },
100+ "ScheduleExpression" : " rate(12 hours)" ,
101+ "State" : " DISABLED" ,
102+ "Target" : {
103+ "Arn" : {
104+ "Fn::GetAtt" : [
105+ " Function76856677" ,
106+ " Arn"
107+ ]
108+ },
109+ "RoleArn" : {
110+ "Fn::GetAtt" : [
111+ " Role1ABCC5F0" ,
112+ " Arn"
113+ ]
114+ }
115+ }
116+ }
117+ }
118+ },
119+ "Parameters" : {
120+ "BootstrapVersion" : {
121+ "Type" : " AWS::SSM::Parameter::Value<String>" ,
122+ "Default" : " /cdk-bootstrap/hnb659fds/version" ,
123+ "Description" : " Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
124+ }
125+ },
126+ "Rules" : {
127+ "CheckBootstrapVersion" : {
128+ "Assertions" : [
129+ {
130+ "Assert" : {
131+ "Fn::Not" : [
132+ {
133+ "Fn::Contains" : [
134+ [
135+ " 1" ,
136+ " 2" ,
137+ " 3" ,
138+ " 4" ,
139+ " 5"
140+ ],
141+ {
142+ "Ref" : " BootstrapVersion"
143+ }
144+ ]
145+ }
146+ ]
147+ },
148+ "AssertDescription" : " CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
149+ }
150+ ]
151+ }
152+ }
153+ }
0 commit comments