KPR5CDIMZP5I6MH76IJMRFWBEA7YMGXL2QOMLVLDDM3AKXXGOEGAC
YZFURBROIQ3SQIJ44BCZSZ6NJLXVF4I34BSI6XLFOTWK62TDJZMQC
RXCY7LD6ZRIOIKZEYKLMCYPMQPXF4DOEEFBDLVR2B22BXLZJFFBQC
A3TVGLVHSVLMEHLHB3TPBSD3QGNVGX3DIK6BEBDTTHWBNW4ALMRAC
VVLGOC2NYNBINOTTPFUI46A5O4LXBHBROAYUPK7URDLMQHLEQL5AC
HGGMS7P6BRIGWP6DZS3KLRXQPRETMB2GUULCQZAED6IYD5ENK2DQC
CZF3ARKCHYCAOF4XF7MR5H234PTL75YX2MXBX3ELMYJRMSVSIG5QC
ZIZORUH6UNA67S6DRRGGCTSOCYENTHGODHJ5JP3UUPLIKGYU5UVAC
(defun fwoar/doc-for-resource-type (resource-type)
(cl-format nil
"https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/~{~a~^-~}"
(list* "aws" "resource"
(cdr (s-split "::" (s-downcase resource-type))))))
(defun fwoar/document-cf (min max)
"Jump to AWS Cloudformation docs for a resource type.
MIN: the point in the buffer where the resource type starts
MAX: the point in the buffer where the resource type ends
This uses (interactive \"r\") to automagically populate the arguments
from the selected region."
(interactive "r")
(browse-url
(fwoar/doc-for-resource-type
(buffer-substring min max))))
;; Some snippets not currently used but possibly useful
(defun fwoar:doc-for-resource-type (resource-type)
(cl-format nil
"https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/~{~a~^-~}"
(list* "aws" "resource"
(cdr (s-split "::" (s-downcase resource-type))))))
(defun fwoar:document-cf (min max)
"Jump to AWS Cloudformation docs for a resource type.
MIN: the point in the buffer where the resource type starts
MAX: the point in the buffer where the resource type ends
This uses (interactive \"r\") to automagically populate the arguments
from the selected region."
(interactive "r")
(browse-url
(fwoar/doc-for-resource-type
(buffer-substring min max))))
;; Some snippets not currently used but possibly useful
(defun fwoar:doc-for-resource-type (resource-type)
(cl-format nil
"https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/~{~a~^-~}"
(list* "aws" "resource"
(cdr (s-split "::" (s-downcase resource-type))))))
(defun fwoar:document-cf (min max)
"Jump to AWS Cloudformation docs for a resource type.
MIN: the point in the buffer where the resource type starts
MAX: the point in the buffer where the resource type ends
This uses (interactive \"r\") to automagically populate the arguments
from the selected region."
(interactive "r")
(browse-url
(fwoar/doc-for-resource-type
(buffer-substring min max))))