node-red-contrib-aws-signature-request
Version:
Request node using AWS Signature type
99 lines (94 loc) • 3.01 kB
HTML
<script type="text/x-red" data-template-name="aws-signature">
<div class="form-row">
<label for="node-input-aws"><i class="fa fa-user"></i> AWS keys</label>
<input type="text" id="node-input-aws">
</div>
<div class="form-row">
<label for="node-input-method">Method</label>
<select type="text" name="node-input-method" id="node-input-method" style="width: 70%">
<option value="GET" selected="true">GET</option>
<option value="POST">POST</option>
</select>
</div>
<div class="form-row">
<label for="node-input-region">Region</label>
<input type="text" id="node-input-region">
</div>
<div class="form-row">
<label for="node-input-service">Service</label>
<input type="text" id="node-input-service">
</div>
<div class="form-row">
<label for="node-input-host">Host</label>
<input type="text" id="node-input-host">
</div>
<div class="form-row">
<label for="node-input-path">Path</label>
<input type="text" id="node-input-path">
</div>
</script>
<script type="text/x-red" data-help-name="aws-signature">
<p>AWS signature request.</p>
<h3>Inputs</h3>
<dl class="message-properties">
<dt>method
<span class="property-type">string</span>
</dt>
<dd>GET | POST</dd>
</dl>
<dl class="message-properties">
<dt>region
<span class="property-type">string</span>
</dt>
<dd>AWS region</dd>
</dl>
<dl class="message-properties">
<dt>service
<span class="property-type">string</span>
</dt>
<dd>Service name</dd>
</dl>
<dl class="message-properties">
<dt>host
<span class="property-type">string</span>
</dt>
<dd>Host of API</dd>
</dl>
<dl class="message-properties">
<dt>path
<span class="property-type">string</span>
</dt>
<dd>Path of API</dd>
</dl>
<h3>Outputs</h3>
<dl class="message-properties">
<dt>payload
<span class="property-type">array</span>
</dt>
<dd>Default response from API</dd>
</dl>
</script>
<script type="text/javascript">
RED.nodes.registerType('aws-signature', {
category: 'AWS',
color: "#EEE",
defaults: {
aws: { type: "aws-signature-auth", required: true },
region: { value: "" },
service: { value: "" },
host: { value: "" },
path: { value: "" },
method: { value: "GET" }
},
inputs: 1,
outputs: 1,
icon: "amazon.png",
align: "left",
label: 'AWS signature',
paletteLabel: 'AWS signature',
oneditprepare: function () {
},
oneditsave: function () {
}
});
</script>