This ObjC package is automatically generated by the Swagger Codegen project:
- API version:
- Package version:
- Build date:
- Build package:
var AWS = require('aws-sdk'); | |
AWS.config.update({region: 'ap-northeast-1'}); | |
var codedeploy = new AWS.CodeDeploy(); | |
// getDeployment | |
function getDeployment(deploymentId, callback) { | |
var status = ''; | |
var params = { | |
deploymentId: deploymentId | |
}; |
cat UserData.sh |sed 's/\"/\\\"/g' | sed 's/^/\"/g' | sed 's/$/\\n\",/g' | sed '$s/.$//' |
var https = require('https'); | |
var zlib = require('zlib'); | |
var crypto = require('crypto'); | |
var endpoint = 'search-elb-accesslog-aaaaaaaaaaa.ap-northeast-1.es.amazonaws.com'; | |
exports.handler = function(input, context) { | |
// decode input from base64 | |
var zippedInput = new Buffer(input.awslogs.data, 'base64'); |
// Load the SDK and UUID | |
var AWS = require('aws-sdk'); | |
AWS.config.update({region: 'ap-northeast-1'}) | |
// Create an S3 client | |
//var s3 = new AWS.S3(); | |
var ec2 = new AWS.EC2(); | |
ec2.describeInstances({}, function(err, data) { | |
if (err) console.log(err, err.stack); | |
else { |
var im = require('imagemagick'); | |
var fs = require('fs'); | |
var postProcessResource = function(resource, fn) { | |
var ret = null; | |
if (resource) { | |
if (fn) { | |
ret = fn(resource); | |
} |
# O(n) | |
def binarytree(array, target) | |
right = array[0] | |
left = array[array.length - 1] | |
while right != left do | |
sum = right + left | |
return "find" if sum == target | |
if sum > target | |
left = left - 1 |
def get(array, target) | |
i = 0 | |
j = i + 1 | |
while i < array.length - 1 do | |
while j < array.length do | |
sum = array[i] + array[j] | |
return "index1 = #{i} , index2 = #{j}" if sum == target | |
j += 1 | |
end |
This ObjC package is automatically generated by the Swagger Codegen project:
The generated SDK depends on the AWS Mobile SDK for iOS. There are three ways to import it into your project:
You should use one of these two ways to import the AWS Mobile SDK but not both. Importing both ways loads two copies of the SDK into the project and causes compiler errors.
{ | |
"schemaVersion": "2.2", | |
"description": "Scans for or installs patches from a patch baseline to a Linux or Windows operating system.", | |
"parameters": { | |
"Operation": { | |
"type": "String", | |
"description": "(Required) The update or configuration to perform on the instance. The system checks if patches specified in the patch baseline are installed on the instance. The install operation installs patches missing from the baseline.", | |
"allowedValues": [ | |
"Scan", | |
"Install" |