@@ -1242,3 +1242,86 @@ export const esServerlessMinimumRos = {
12421242 } ,
12431243 } ,
12441244} ;
1245+
1246+ export const bucketMinimumIac = {
1247+ version : '0.0.1' ,
1248+ provider : {
1249+ name : 'aliyun' ,
1250+ region : 'cn-hangzhou' ,
1251+ } ,
1252+ service : 'my-bucket-service' ,
1253+ buckets : [
1254+ {
1255+ key : 'my_bucket' ,
1256+ name : 'my-bucket' ,
1257+ } ,
1258+ ] ,
1259+ } as unknown as ServerlessIac ;
1260+
1261+ export const bucketMinimumRos = {
1262+ Description : 'my-bucket-service stack' ,
1263+ Metadata : { 'ALIYUN::ROS::Interface' : { TemplateTags : [ 'Create by ROS CDK' ] } } ,
1264+ ROSTemplateFormatVersion : '2015-09-01' ,
1265+ Resources : {
1266+ my_bucket : {
1267+ Properties : {
1268+ BucketName : 'my-bucket' ,
1269+ AccessControl : 'private' ,
1270+ DeletionForce : false ,
1271+ EnableOssHdfsService : false ,
1272+ RedundancyType : 'LRS' ,
1273+ } ,
1274+ Type : 'ALIYUN::OSS::Bucket' ,
1275+ } ,
1276+ } ,
1277+ } ;
1278+
1279+ export const bucketWithWebsiteIac = {
1280+ version : '0.0.1' ,
1281+ provider : {
1282+ name : 'aliyun' ,
1283+ region : 'cn-hangzhou' ,
1284+ } ,
1285+ service : 'my-bucket-service' ,
1286+ buckets : [
1287+ {
1288+ key : 'my_bucket' ,
1289+ name : 'my-bucket' ,
1290+ website : {
1291+ index : 'index.html' ,
1292+ error_page : '404.html' ,
1293+ error_code : 404 ,
1294+ } ,
1295+ } ,
1296+ ] ,
1297+ } as ServerlessIac ;
1298+
1299+ export const bucketWithWebsiteRos = {
1300+ Description : 'my-bucket-service stack' ,
1301+ Metadata : { 'ALIYUN::ROS::Interface' : { TemplateTags : [ 'Create by ROS CDK' ] } } ,
1302+ ROSTemplateFormatVersion : '2015-09-01' ,
1303+ Resources : {
1304+ my_bucket : {
1305+ Properties : {
1306+ BucketName : 'my-bucket' ,
1307+ AccessControl : 'private' ,
1308+ DeletionForce : false ,
1309+ EnableOssHdfsService : false ,
1310+ RedundancyType : 'LRS' ,
1311+
1312+ WebsiteConfigurationV2 : {
1313+ ErrorDocument : {
1314+ HttpStatus : '404' ,
1315+ Key : '404.html' ,
1316+ } ,
1317+ IndexDocument : {
1318+ Suffix : 'index.html' ,
1319+ SupportSubDir : 'true' ,
1320+ Type : '0' ,
1321+ } ,
1322+ } ,
1323+ } ,
1324+ Type : 'ALIYUN::OSS::Bucket' ,
1325+ } ,
1326+ } ,
1327+ } ;
0 commit comments