问题描述
CloudFormation注册表列出了可在您的CloudFormation帐户中使用的私有和公共(AWS)资源。
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry.html
文档中提到了此命令...
function flatten(array) {
let result = [];
array.forEach(el => {
if(el instanceof Array){
result.push(...flatten(el));
}else result.push(el)
});
return result
}
console.log(flatten([1,[2,3,[4]]]));
是否有[s3对象路径]的示例?
解决方法
在github上,模式的语法为here和full-version。
开发资源类型的示例是Walkthrough: Develop a resource type
还有{'title': "Ahead of dropping his BE Concept Photos,BTS' J Hope proves once again why he's the 'King of Mirror Selfies'",'media': 'PINKVILLA','date': 'Hace 1 hora','desc': "BTS member J-Hope aka Hobi shared two handsome mirror selfies
of himself on Twitter as he updated BTS ARMY that he's all dressed up and ready for winter.",'link': 'https://www.pinkvilla.com/entertainment/ahead-dropping-his-be-concept-photos-bts-j-hope-proves-once-again-why-hes-king-mirror-selfies-572955','img': 'data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=='}
is的示例:
[s3 object path]
,
[s3 object path]
只是 s3 协议、存储桶名称和 s3 目标密钥的组合。
用一个例子来说明这一点;说:
存储桶名称:my-bucket-name
目标密钥:my-s3-destination-key.zip
命令看起来像:
aws cloudformation register-type --type-name My::Resource::Example --schema-handler-package s3://my-bucket-name/my-s3-destination-key.zip --type RESOURCE