{"app":{"id":16,"summary":"Amazon S3 Bucket Manager","versions":[60,61],"created_by":"trevor sullivan188","created_at":"2023-07-09T23:00:34.840Z","votes":0,"approved":false,"apps":["aws","cloud","s3"],"app_type":"openapp","external_embed_url":null,"value":{"css":{"app":{"grid":{"class":"","style":""},"viewer":{"class":"","style":""},"component":{"class":"","style":""}}},"grid":[{"3":{"h":1,"w":1,"x":0,"y":0,"fixed":false},"12":{"h":1,"w":2,"x":0,"y":0,"fixed":false},"id":"btnCreateBucket","data":{"id":"btnCreateBucket","type":"buttoncomponent","customCss":{},"recomputeIds":["d","bg_0"],"configuration":{"size":{"type":"static","value":"xs"},"color":{"type":"static","value":"blue"},"label":{"type":"static","value":"Create S3 Bucket"},"onError":{"type":"oneOf","selected":"errorOverlay","configuration":{"setTab":{"setTab":{"type":"static","value":[]}},"gotoUrl":{"url":{"type":"static","value":""},"newTab":{"type":"static","value":true}},"errorOverlay":{},"sendErrorToast":{"message":{"type":"static","value":""},"appendError":{"type":"static","value":true}}}},"disabled":{"type":"static","value":false},"afterIcon":{"type":"static","value":""},"onSuccess":{"type":"oneOf","selected":"none","configuration":{"none":{},"setTab":{"setTab":{"type":"static","value":[]}},"gotoUrl":{"url":{"type":"static","value":""},"newTab":{"type":"static","value":true}},"sendToast":{"message":{"type":"static","value":""}}}},"beforeIcon":{"type":"static","value":""},"fillContainer":{"type":"static","value":true},"triggerOnAppLoad":{"type":"static","value":false}},"componentInput":{"type":"runnable","fields":{"AWS_REGION":{"type":"connected","value":"us-west-2","fieldType":"string","connection":{"path":"result","componentId":"selectAwsRegion"}},"BUCKET_NAME":{"type":"connected","value":"BucketName","fieldType":"string","connection":{"path":"result","componentId":"newBucketName"}}},"runnable":{"name":"Create an Amazon S3 Bucket, in the specified region.","path":"u/trevor/aws_s3_create_bucket","type":"runnableByPath","schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["BUCKET_NAME","AWS_REGION"],"properties":{"AWS_REGION":{"type":"string","default":"us-west-2","description":""},"BUCKET_NAME":{"type":"string","default":"BucketName","description":""}}},"runType":"script"},"fieldType":"any","autoRefresh":false,"recomputeOnInputChanged":false},"verticalAlignment":"center","horizontalAlignment":"center"}},{"3":{"h":1,"w":2,"x":0,"y":1,"fixed":false},"12":{"h":1,"w":5,"x":2,"y":0,"id":"b","fixed":false},"id":"newBucketName","data":{"id":"newBucketName","type":"textinputcomponent","customCss":{},"configuration":{"placeholder":{"type":"static","value":"Person's first name ...."},"defaultValue":{"type":"static","value":"FirstName"}},"verticalAlignment":"center"}},{"3":{"h":1,"w":2,"x":0,"y":2,"fixed":false},"12":{"h":1,"w":3,"x":2,"y":1,"fixed":false},"id":"selectAwsRegion","data":{"id":"selectAwsRegion","type":"selectcomponent","customCss":{},"recomputeIds":[],"configuration":{"items":{"type":"static","value":[{"label":"us-west-2","value":"us-west-2"},{"label":"us-west-1","value":"us-west-1"}]},"create":{"type":"static","value":false},"fullWidth":{"type":"static","value":true},"placeholder":{"type":"static","value":"Select an item"},"defaultValue":{"type":"static"},"preselectFirst":{"type":"static","value":true}},"verticalAlignment":"center"}},{"3":{"h":1,"w":1,"x":0,"y":3,"id":"loadBuckets","fixed":false},"12":{"h":1,"w":2,"x":0,"y":1,"id":"loadBuckets","fixed":false},"id":"loadBuckets","data":{"id":"loadBuckets","type":"buttoncomponent","customCss":{},"recomputeIds":[],"configuration":{"size":{"type":"static","value":"xs"},"color":{"type":"static","value":"blue"},"label":{"type":"static","value":"Load S3 Buckets"},"onError":{"type":"oneOf","selected":"errorOverlay","configuration":{"setTab":{"setTab":{"type":"static","value":[]}},"gotoUrl":{"url":{"type":"static","value":""},"newTab":{"type":"static","value":true}},"errorOverlay":{},"sendErrorToast":{"message":{"type":"static","value":""},"appendError":{"type":"static","value":true}}}},"disabled":{"type":"static","value":false},"afterIcon":{"type":"static","value":""},"onSuccess":{"type":"oneOf","selected":"none","configuration":{"none":{},"setTab":{"setTab":{"type":"static","value":[]}},"gotoUrl":{"url":{"type":"static","value":""},"newTab":{"type":"static","value":true}},"sendToast":{"message":{"type":"static","value":""}}}},"beforeIcon":{"type":"static","value":""},"fillContainer":{"type":"static","value":true},"triggerOnAppLoad":{"type":"static","value":true}},"componentInput":{"type":"runnable","value":0,"fields":{},"runnable":{"name":"Inline Script 0","type":"runnableByName","inlineScript":{"path":"u/trevor/aws_s3_manager/Inline Script 0","content":"if (bg_0.result) {\r\n  state.s3BucketList = JSON.parse(bg_0.result);\r\n}\r\nreturn 0;","language":"frontend"}},"fieldType":"any","autoRefresh":false,"recomputeOnInputChanged":false},"verticalAlignment":"center","horizontalAlignment":"center"}},{"3":{"h":12,"w":3,"x":0,"y":4,"id":"s3BucketList","fixed":false},"12":{"h":8,"w":12,"x":0,"y":2,"id":"s3BucketList","fixed":false},"id":"s3BucketList","data":{"id":"s3BucketList","type":"listcomponent","customCss":{},"configuration":{"width":{"type":"oneOf","selected":"card","configuration":{"row":{},"card":{"minWidthPx":{"type":"static","value":300}}}},"heightPx":{"type":"static","value":120}},"componentInput":{"type":"connected","value":[{"foo":1},{"foo":2},{"foo":3}],"fieldType":"array","connection":{"path":"s3BucketList","componentId":"state"},"subFieldType":"object"},"numberOfSubgrids":1}}],"subgrids":{"s3BucketList-0":[{"3":{"h":1,"w":3,"x":0,"y":0,"id":"c","fixed":false},"12":{"h":1,"w":12,"x":0,"y":0,"id":"c","fixed":false},"id":"c","data":{"id":"c","type":"textcomponent","customCss":{},"configuration":{"style":{"type":"static","value":"Body"},"tooltip":{"type":"static","value":""},"copyButton":{"type":"static","value":true}},"componentInput":{"eval":"Bucket: ${iter.value.Name}","type":"template","value":"Hello ${ctx.username}","fieldType":"template"},"verticalAlignment":"top","horizontalAlignment":"left"}},{"3":{"h":1,"w":3,"x":0,"y":1,"id":"e","fixed":false},"12":{"h":1,"w":12,"x":0,"y":1,"id":"e","fixed":false},"id":"e","data":{"id":"e","type":"buttoncomponent","customCss":{},"recomputeIds":["bg_0"],"configuration":{"size":{"type":"static","value":"xs"},"color":{"type":"static","value":"blue"},"label":{"type":"static","value":"Delete Bucket"},"onError":{"type":"oneOf","selected":"errorOverlay","configuration":{"setTab":{"setTab":{"type":"static","value":[]}},"gotoUrl":{"url":{"type":"static","value":""},"newTab":{"type":"static","value":true}},"errorOverlay":{},"sendErrorToast":{"message":{"type":"static","value":""},"appendError":{"type":"static","value":true}}}},"disabled":{"type":"static","value":false},"afterIcon":{"type":"static","value":""},"onSuccess":{"type":"oneOf","selected":"none","configuration":{"none":{},"setTab":{"setTab":{"type":"static","value":[]}},"gotoUrl":{"url":{"type":"static","value":""},"newTab":{"type":"static","value":true}},"sendToast":{"message":{"type":"static","value":""}}}},"beforeIcon":{"type":"static","value":""},"fillContainer":{"type":"static","value":true},"triggerOnAppLoad":{"type":"static","value":false}},"componentInput":{"type":"runnable","fields":{"BUCKET_NAME":{"expr":"iter.value.Name","type":"eval","value":null,"fieldType":"string"}},"runnable":{"name":"Deletes an Amazon S3 bucket","path":"u/trevor/aws_s3_delete_bucket","type":"runnableByPath","schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["BUCKET_NAME"],"properties":{"BUCKET_NAME":{"type":"string","default":null,"description":""}}},"runType":"script"},"fieldType":"any","autoRefresh":false,"recomputeOnInputChanged":false},"verticalAlignment":"center","horizontalAlignment":"center"}}]},"fullscreen":false,"norefreshbar":false,"hiddenInlineScripts":[{"name":"Lists Amazon S3 buckets","path":"u/trevor/aws_s3_list_buckets","type":"runnableByPath","fields":{},"schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":[],"properties":{}},"runType":"script","autoRefresh":true,"recomputeIds":["loadBuckets"],"noBackendValue":"[{\"Name\":\"artofshell\",\"CreationDate\":\"2023-07-08T16:41:12+00:00\"}]","recomputeOnInputChanged":true}],"unusedInlineScripts":[]},"description":"Creates or deletes Amazon S3 buckets from an AWS account.","vcreated_at":"2023-07-10T05:46:08.539Z","vcreated_by":"rubenfiszel","comments":[]}}