// SNSへのエンドポイント登録処理
if let deviceToken = (UIApplication.sharedApplication().delegate as? AppDelegate)?.deviceToken {
	let sns = AWSSNS.defaultSNS()

	// 登録内容の設定
	let request = AWSSNSCreatePlatformEndpointInput()
	request.token = deviceToken // デバイストークン
	request.platformApplicationArn = "＜SNS Platform ApplicationのARN＞"

	// エンドポイントの登録
	sns.createPlatformEndpoint(request).continueWithBlock {(task: AWSTask!) -> AnyObject! in
		if let endpointArn = (
			task.result as? AWSSNSCreateEndpointResponse)?.endpointArn
			where nil == task.error
			{
				print("エンドポイント登録成功：ARN=\(endpointArn)")
			} else {
				print("エンドポイント登録失敗")
			}
		return nil
	}
}