如何解决自定义注册表的示例对象路径
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
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。